Skip to Content
author's profile photo Former Member
Former Member

Connection to external Oracle database failing.

Hi,

I have done the required settings everywhere but the connection is failing.

The tnsname.ora file is located in my Oracle client directory in SAP Server and the settings done there are -

LEVEL2 =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST =

192.167.40.54)(PORT = 1521))

)

(CONNECT_DATA =

(SERVICE_NAME = level2)

)

)

in DBCON i have made the following entry -

1. DB Connection : NEWORA

2. DBMS : ORA

3. User Name : User Name external oracle database

4. DB Password : Password external oracle database

5. Conn Info : level2

and my ABAP code looks like -


DATA: BEGIN OF wa,
ncli(20) TYPE c,
num(20) TYPE c,
END OF wa.
 
DATA: dbs TYPE dbcon-con_name.
DATA : ls_wa LIKE wa.
 
dbs = 'NEWORA'. "DB Connection in DBCO
 
EXEC SQL.
connect to :dbs "Here the connection is failing.
ENDEXEC.
 
EXEC SQL.
GET CONNECTION :dbs
ENDEXEC.
 
WRITE : dbs.
 
EXEC SQL PERFORMING loop_output.
select bundle_cnt, job_id from GHCBRMRT.RML_BUNDLE into :ls_wa
ENDEXEC.
 
 
FORM loop_output.
WRITE: / ls_wa-ncli,
ls_wa-num.
 

now my dilemma is how SAP will recognize in DBCON what really "level2" means ?? as the settings are there in ORACLE directory and not inside SAP system.

the dump error msg that I am getting is -

Runtime Errors DBIF_DSQL2_CONNECTERR

Except. CX_SY_NATIVE_SQL_ERROR

Date and Time 13.08.2008 10:20:47

Short text

Error setting up a secondary database connection

What happened?

Connection to database system not possible with

identifier "NEWORA".

Missing Handling of System Exception

Program YY_NEW_CONN

Kindly help in this regard as where I am going wrong.

Thanks,

Saurabh.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 03:08 PM

    Hi,

    Yes, We have installed Oracle Client.

    No, We couldnt find the libdora.dll file in the SAP Server system. From where can we find this file to install ??

    Thanks & Regards,

    Saurabh.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 09:38 AM

    I missed to inform that we are having MS SQL as our SAP default database and we are trying to connect to external ORACLE db.

    Kindly assist.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.