• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3040
  • Last Modified:

DBLINK session can't be automatically closed ?

SAP  program(DB: ORACLE 9.2.0.7) using DBLINK to access remote ORACLE DB(10.2.0.1).
After SAP progarm end, the dblink session (in remote db) is still alive.
Why? How to correct it ?
Please help ,thanks a lot!
0
gc0626
Asked:
gc0626
  • 3
1 Solution
 
Naveen KumarProduction Manager / Application Support ManagerCommented:
Hi,
 
In PRO*C precompiler prorams, we say commit work release; at the end of the program if everything is successful.
This will commit the changes to the database and then release the connection.

If you code has commit or rollback then add ' work release' and try, though i am not sure whether it will help you or not.

Thanks
0
 
Naveen KumarProduction Manager / Application Support ManagerCommented:
you can use

ALTER SESSION CLOSE DATABASE LINK <name>;

or

DBMS_SESSION.CLOSE_DATABASE_LINK ( dblink VARCHAR2);

Refer to the url below :

http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_sessi2.htm#1002316

in this url , search for 'This procedure closes an open database' and read the information given there.

Thanks

0
 
Pradeepgv03Commented:
Hi will Dead Connection detection would be helpful?

Try setting sqlnet.expire_time ( in sqlnet.ora) and try
0
 
Naveen KumarProduction Manager / Application Support ManagerCommented:
i think i have given the correct solution but no response.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now