cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

I am accessing a view in DWH system using EXEC ENDEXEC statements and getting the error as mentioned in the subject.

The Oracle error description is

ORA-02019: connection description for remote database not found.

The DB link is given in the format OPS$SMART@VIEW_NAME@dblink.

I think the link name is correct . Is there any other was I can check if the connection is established between the DWH and SAP system?

Any pointers will be appreciated.

Thanks in advance,

Neethu Mohan

0 Likes
View Entire Topic
stefan_koehler
Active Contributor
0 Likes

Hello Neethu,

just a basic question .. is the database link created and specified correct?

Please post the result of the query:


shell> sqlplus / as sysdba
SQL> select * from all_db_links;

Please also check sapnote #25383 for the ABAP native SQL syntax.

Regards

Stefan

Former Member
0 Likes

Hello Stefan,

Thanks for your quick response.

How can we check the link is created ? Is there any place where it will be maintained, to confirm whether it is created ?

I got the link from my functional consultant with the statement that it is created.

When the below mentioned query is executed , it gave the error " Period missing for last statement" , So I tried giving it inside EXEC ENDEXEC. Then it again dumped with ORA-00900: invalid SQL statement.

Please correct me if I am wrong anywhere. I do not have much exposure in writing SQL code.

Thanks.

Neethu Mohan

stefan_koehler
Active Contributor
0 Likes

Hello Neethu,

> How can we check the link is created ? Is there any place where it will be maintained, to confirm whether it is created ?

Take a look at the SQL command from the previous post .. execute it and you will see it.

Regards

Stefan

Former Member
0 Likes

Hi Stefan,

Thanks for your efforts.

The issue is solved now. The major issue was, I was not provided necessary permissionm grants to the required views and the second thing was it should be OPS$SMART.VIEW_NAME@dblink instead of @ before VIEW_NAME.

Once again , thanks.

Neethu