dbTalk Databases Forums  

ORACLE 10g - Is possible define a instance variable ?

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss ORACLE 10g - Is possible define a instance variable ? in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Santana
 
Posts: n/a

Default ORACLE 10g - Is possible define a instance variable ? - 11-02-2009 , 09:29 AM






Hi guys,
Is possible define a new instance variable ? The idea is get the value
of "UPDATE_FLAG"(I invented this name this dont exists in ORACLE) at
any time ?

I know i can do this thorough a tabela, but i only know if exists this
concept.


Regards,
Paulito

Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: ORACLE 10g - Is possible define a instance variable ? - 11-02-2009 , 10:05 AM






On Nov 2, 9:29*am, Santana <paulito.sant... (AT) gmail (DOT) com> wrote:
Quote:
Hi guys,
Is possible define a new instance variable ? The idea is get the value
of "UPDATE_FLAG"(I invented this name this dont exists in ORACLE) at
any time ?

I know i can do this thorough a tabela, but i only know if exists this
concept.

Regards,
Paulito
This question is not clear, new instance of what? Do you want to know
how to create a variable that can be accessed Oracle database instance
wide or are you asking about knowing when some value changed?

For Oracle instance wide variables you have package specifications and
the Oracle CONTEXT object. Look in the DBA Administration manual and
the SQL manual at (CREATE) CONTEXT. You can use a database event
logon trigger to to set the context value then retrieve it in
application logic.

For table row data changes you have table DML triggers. Update
triggers have access to both the ld and :new values for a column.

If neither of these help please post back with more background
information on what you are trying to do.

HTH -- Mark D Powell --

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.