RE: Pkg Body variables
BDY.RTF Description: RTF file
RE: Pkg Body variables
> >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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).
Re: Pkg Body variables
Package is initialized when user first time access it on the session level. Think about it like each session has a copy of package. Does not matter which user access it. Alexandre - Original Message - To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]> Sent: Monday, June 03, 2002 11:28 AM > 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. > -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Alexandre Gorbatchev INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).
RE: Pkg Body variables
Pkg Variables are Presistent for the session. They Get Deallocated once the session dies. So It will not be available for the next SQLLDR Run. HTH Best Regards, Ganesh R Tel : +971 (4) 397 3337 Ext 420 Fax : +971 (4) 397 6262 HP : +971 (50) 745 6019 Live to learn... forget... and learn again. -Original Message- [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 1:28 PM To: Multiple recipients of list ORACLE-L 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. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Ganesh Raja INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).