Link to home
Start Free TrialLog in
Avatar of gc0626
gc0626

asked on

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!
ASKER CERTIFIED SOLUTION
Avatar of Naveen Kumar
Naveen Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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

Hi will Dead Connection detection would be helpful?

Try setting sqlnet.expire_time ( in sqlnet.ora) and try
i think i have given the correct solution but no response.