Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Pkg Body variables

RE: Pkg Body variables

From: Stephane Faroult <sfaroult_at_oriolecorp.com>
Date: Mon, 03 Jun 2002 02:38:20 -0800
Message-ID: <F001.00472286.20020603023820@fatcity.com>

 ('binary' encoding is not supported, stored as-is)

>
>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).
Received on Mon Jun 03 2002 - 05:38:20 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US