You are on page 1of 4

how a connectivity is established between the SAP database and External Application

database.

1. First step is to provide the network / firewall / security related settings between
these two servers. That is from the SAP system the designated database servers
are accessible.
2. In SAP system – configure the connection detail. Execute T-Code DBCO
3. Enter appropriate details as follows:
 In the box, DB Connection, give any name of the connection. – the name in our
SAP programs to connect to the oracle system.
 In DBMS, choose the option ORA for oracle system.
 In the user name box, give the name of the oracle system user. You will notice
two boxes for DB password – one is the password box and the other one is the
confirm password box. Give the password in both the boxes.
 In Conn. Info box, give the name of the Oracle server – you may ask your
database Administrator to get the name of the server
 Check the check box Permanent to make the connection permanent and
 Finally the connection limit as 5.
4. Go to SE38 – to write a test program

REPORT ZSAP2ORACLE.
data: l_record(20).

* opening the connection to database


EXEC SQL.
CONNECT TO ‘MYCONNECTION’
ENDEXEC.*executing the select command
EXEC SQL.
SELECT ars_no into :l_record FROM arsdata
ENDEXEC.*closing the connection
EXEC SQL.
DISCONNECT :’MYCONNECTION’
ENDEXEC.
WRITE: / l_record.

///////////////////////////////////////////////////////////////////////////

You can create connection to external database with below


processes.

1 – Connection check from SAP to External Database

You have to access external database from SAP network. You can
check firewall, telnet configuration.
2 – Create Database Connection on SAP

Tcode > DBACOCKPIT

Also you can use DBCO tcode to create connection.

SAP Externel DB Connection 1


SAP Externel DB Connection 2
SAP Externel DB Connection 3
You can test connection. If you get an error like ORA-28547 because of
database NLS Charactersets are not match. You have to install oracle
instant client full version on SAP system. You have to download from
SAP web site. After you installed oracle client full version, you can
connect to database without error.

You might also like