Difference between EXIT and DISCONN [message #246434] |
Wed, 20 June 2007 23:37 |
srinivasocp
Messages: 91 Registered: December 2005 Location: INDIA
|
Member |
|
|
Hi Pals,
Could you please tell me the difference between EXIT and Disconn.
Firstly i have defined a variable with the DEFINE Keyword in a schema(say Scott).
SQL> define myv='XYZ';
SQL> define myv;
DEFINE MYV = "XYZ" (CHAR)
Just disconn from the schema(SCOTT).I am able to see the value of the defined variable 'myv' even after disconnecting from the shema
SQL> show user
USER is ""
Then again i connected to another schema(say HR).Here also the value of defined variable is persisting.
SQL> show user
USER is "HR"
SQL> define myv;
DEFINE MYV = "XYZ" (CHAR).
Now i typed exit and logged in again as SCOTT,but this time i am unable to see the value of defined variable myv.
My question is why after disconnecting,the value of a defined variable is existing?Doesn't disconnect mean end of the session?
Please clarify.
Thanks
Srini..
|
|
|
|
|
|