>
>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).

Reply via email to