Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Pkg Body variables
Thanks to all.
-----Original Message-----
Sent: Monday, June 03, 2002 4:08 PM
To: ORACLE-L
Cc: sfaroult
>
>Hi,
> I am calling a packaged function in sql loader
>control file.
>I 've declared a variable in pkg body to hold old
>value . I am comparing
>this with current value obtained from sql ldr
>and also storing last value in the old value
>variable.
>
>My question is will the package variable declared
>above retain its value
>after each run of sqlldr.
>if yes then how to reset this value before the next
>run.
>
>Note : userid remains same for each sqlldr run.
>
>
>Thanks
>Manoj.
Manoj,
Package variables retain their value for the duration of the _session_. Each SQL*Loader run is a new connection, therefore a new session (same user or not, it doesn't matter). The only way to have persistence between sessions is to store your values, well, in one of those good old relational tables. Read the value in the initialization section of your package (executed once per session), and let SQL*Loader roll.
Regards,
Stephane Faroult
Oriole
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Stephane Faroul INET: sfaroult_at_oriolecorp.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: cosltemp-g.manoj_at_orbitech.co.in Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Jun 03 2002 - 06:08:29 CDT
![]() |
![]() |