cancel
Showing results for 
Search instead for 
Did you mean: 

How to close DBlink session in sap using code

Former Member
0 Kudos

Hi All,

I am facing issue in sap while using Dblink. sessions not getting closed..

we are using Dblink tables to get the data from External oracle database and when we use Select query the Dblink session is getting opened and its in active mode but after extracting data from table still its in inactive state. session not getting closed .

so, what will be the issue and how to resolve this issue.

regards,

Vinod

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

thanks David,

The above syntax is to close the connection for Native SQL.

can you please let me know how to close for open SQL statements,

Regards,

Vinod.

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos
former_member235395
Contributor
0 Kudos

Hi Vinod,

Check SAP Note 25383 - Database links, synonyms, remote DB.

Oracle recommends to use "ALTER SESSION CLOSE DATABASE LINK linkname;"

Regards,