Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Opening Oracle database connection through ABAP Program

Former Member
0 Likes
687

I am trying to connect to Oracle database using NATIVE SQL in ABAP Progarm. For this we have maintained DBCON Table

While executing the statement , CONNECT TO :V_CONN of following code, it is giving sy-subrc = 4.

v_conn = 'MMKNDPAY'.

EXEC SQL.

CONNECT TO :V_CONN

ENDEXEC.

What is required to be maintained in CON_ENV Field of DBCON Table for Oracle server.

Please Help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
626

Hi

U make sure SAP system can reach the oracle database else it's useless to fill the DBCON table, I've never filled that field

Max

4 REPLIES 4
Read only

Former Member
0 Likes
627

Hi

U make sure SAP system can reach the oracle database else it's useless to fill the DBCON table, I've never filled that field

Max

Read only

former_member222860
Active Contributor
0 Likes
626

I think, it is 3 char <SID> of the database server.

ex: DEV

Read only

Former Member
0 Likes
626

Hii Max,

Can you please provide us some documents which will give the step by step procedure to how to connect to the external oracle database using DBCON.

We have already made the entry in DBCON Table. Please let us knw what else setting needs to be done.

Thanks in Advance.

Edited by: Jagdish More on Oct 21, 2009 5:20 PM

Read only

0 Likes
626

Try see here [https://cw.sdn.sap.com/cw/docs/DOC-39830]

Max