cancel
Showing results for 
Search instead for 
Did you mean: 

SAP - External Oracle Database Connection

Former Member
0 Kudos

I have installed Oracle Client 9.2.0.4.0 on my Linux RedHat.

Now I have SAP System and Oracle Client in the same computer.

I check the file tnsname.ora and it's ok.

Then I tryed to run tnsping and it connect to remote oracle database on Win NT.

I inserted the tnsname (alias) in the conn info field of DBCON table but I still have the same connection problem in the Native Sql EXEC SQL CONNECT TO 'identifier' statement!

Maybe the ABAP Program does not have the environment variable set for Oracle (ex. ORACLE_HOME, ORACLE_BASE),

so it can't find the tnsnames.ora file?

Can anyone help me?

Thank's in advance.

Andrea

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Did you enter the user name and password in the DBCO transaction (dbcon table)?

I used this snipped of code to connect to an external Vertex database ...

REPORT ZCONNECT.

DATA: BEGIN OF wa,

LOCNAMESTATE(30) TYPE C,

LOCGEOSTATE(2) TYPE N,

END OF wa.

EXEC SQL.

CONNECT TO 'VERTEX' AS 'V'

ENDEXEC.

EXEC SQL.

SET CONNECTION 'V'

ENDEXEC.

EXEC SQL PERFORMING LOOP_OUTPUT.

SELECT LOCNAMESTATE, LOCGEOSTATE

INTO :wa

FROM locstate

ENDEXEC.

FORM LOOP_OUTPUT.

WRITE: /, wa.

ENDFORM.

Good luck ...

---Hugo

Former Member
0 Kudos

What do you have inserted into the conn.info field of DBCON table? Maybe this is the problem!

I have inserted the tnsname of my remote oracle database that I try to connect to with tnsping with succesfully response.

Thank you again.

Andrea

Former Member
0 Kudos

I don't know how can I resolve this problem.

I need to access to SAP NOTES (link in the website help.sap.com) but it request a login/password that I don't have.

I try to register to SAP Service MarketPlace to receive login/password but the system give me an error "the specified data was not sufficient to generate the user ID request"!

Can you help me?

Thank's.

Andrea