PL/SQL package global variable in Dev. 6i and newer....

Hi,
In db packages , the use of global variable is an appropriate method to keep the value it contains globally... without the danger of being overriden by other session....(as for each session , there is a 'private' section in memory(library cache)).
Is the above also true to pl/sql packaged global variables kept at client's side(forms/reports)...????
Thanks,
Sim

db-package variables are global to your session
forms globals are global to your forms application
In one case you have trouble: When you start a new forms via open_form (, new session, ) then your db-globals are global in that new session, while your forms globals are the same in all forms of the actual forms - session

Similar Messages

  • About package global variable.

    Hi All,
    Could you please anyone tell me from which Data Dictionary tables we can find to definiton of Package global variables which is declared in specification part.
    I tried in ALL_ARGUMENTS but I failed to get it.
    Thanks in advance.

    Thanks James for you reply.
    We written an application using utPLSQL framework, which is used to write unit test cases for Oralce server side programs.
    In one of our Oracle package we have been using global variable and is been referred by all the public members.
    To initailize the package global variable based on our test case we need to know the package global variables.

  • How to build labview global variable into dll?And how to use it in vc++ program?

    Hi!
       I want to build labview application into dll and use vc++ to call it.The labview program is a little complex,for it has many interface to vc++ and has while loop in it.When I use vc++ to call it,I must use vc++ to do other things.That is to say,vc++ creates a new thread to provide for the labview dll to run.the vc main thread goes on to other things.But the vc++ main thread must communicate with the labview dll by setting its inputs' parameters and get the results of running labview dll.Can you advise me how to realize it?
       I think global variable of labview could be useful when realizing the communication betweeb vc thread and labview dll.So I want to ask whether the labview global variable could also be built into dll and use it.Could you please tell me how to realize my idea?
       Thank you!

    [email protected] wrote:
    Hi!
    I want to build labview application into dll and use vc++ to call
    it.The labview program is a little complex,for it has many interface to
    vc++ and has while loop in it.When I use vc++ to call it,I must use
    vc++ to do other things.That is to say,vc++ creates a new thread to
    provide for the labview dll to run.the vc main thread goes on to other
    things.But the vc++ main thread must communicate with the labview dll
    by setting its inputs' parameters and get the results of running
    labview dll.Can you advise me how to realize it?
       I
    think global variable of labview could be useful when realizing the
    communication betweeb vc thread and labview dll.So I want to ask
    whether the labview global variable could also be built into dll and
    use it.Could you please tell me how to realize my idea?
       Thank you!
    You
    can't access LabVIEW globals directly from a caller to the LabVIEW DLL.
    However there is no problem in providing specific accessor VI functions
    to that global and export them as additional functions from the DLL.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • What is the difference between using a global variable,passing a valuee and using a reference?

    I have created a project that consists of several VIs.  Only the main VI has a front panel and the others perform functions.  The function VIs are dependent on controls on the main VI's front panel.  I have several ways of passing the value of the controls.  One is to use a global variable and just place it on the dependent VIs.  Another option is to strictly connect the terminal from the control to a VI connector block and pass the value directly.  My last option is to create a reference of the control and reference it inside the dependent VIs, but this would also require connections to be made to the VI block.
    What are the advantages/disadvantages of these options?
    -Stephen

    5thGen wrote:
    I have created a project that consists of several VIs.  Only the main VI has a front panel and the others perform functions.  The function VIs are dependent on controls on the main VI's front panel.  I have several ways of passing the value of the controls. 
    1) One is to use a global variable and just place it on the dependent VIs.
    2) Another option is to strictly connect the terminal from the control to a VI connector block and pass the value directly. 
    3) My last option is to create a reference of the control and reference it inside the dependent VIs, but this would also require connections to be made to the VI block.
    What are the advantages/disadvantages of these options?
    -Stephen
    1) Globals are evil and introduce race conditions.
    2) The sub-VI only get the value when it was called and updates that occur while the sub-VI is runing are not sensed by the sub-VI
    3) This uses property node "value" or "value signaling" both of which run the user interface thread which is single-threaded and you incur a thread swap hit to performance. You also have a potential for race conditions.
    The are various methods for sharing dat to/from sub-VI which include Queues and Action Engines.
    I hope that hleps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Difference between attachment variable between OSB old and new version

    Hi,
    We have OSB proxy to read the mail box with attachment and then do the further operation.
    Now we are upgrading the same OSB process to new version of OSB 11g. I found that there is various changes in attachment variable
    OLD version of Email Attachment:
    <<anonymous>> <BEA1-72F5B9A3382C86F8F149> <> <1346063760557> <000000> < [PipelinePairNode1, PipelinePairNode1_request, Processing, REQUEST] Email with attachments: <attachment xmlns="http://www.bea.com/wli/sb/context">
    <Content-Type>text/xml;
    name="/usr/appl/sem/data/ESB/Report/archive/2012-08-27-18-35-59-242-FileName_94371";
    charset=utf-8</Content-Type>
    <Content-Disposition>attachment;
    filename="/usr/appl/sem/data/ESB/Report/archive/2012-08-27-18-35-59-242-FileName_94371"</Content-Disposition>
    <body>
    <binary-content ref="file:////usr/appl/sem/data/ESB/Report/archive/2012-08-27-18-35-59-242-FileName_94371" xmlns:con="http://www.bea.com/wli/sb/context"/>
    </body>
    </attachment><attachment xmlns="http://www.bea.com/wli/sb/context">
    <Content-Type>text/xml;
    name="/usr/appl/sem/data/ESB/Report/archive/2012-08-27-18-35-59-242-14-FileName__2010.10.26_.pdf";
    charset=utf-8</Content-Type>
    <Content-Disposition>attachment;
    filename="/usr/appl/sem/data/ESB/Report/archive/2012-08-27-18-35-59-242-14-FileName__2010.10.26_.pdf"</Content-Disposition>
    <body>
    <binary-content ref="file:////usr/appl/sem/data/ESB/Report/archive/2012-08-27-18-35-59-242-14-FileName__2010.10.26_.pdf" xmlns:con="http://www.bea.com/wli/sb/context"/>
    </body>
    </attachment>>
    New Version of Email Attachment:
    <<anonymous>> <BEA1-426F87D2506E3B795149> <0000J_7pu7p3r235znw0yW1GCmZN000002> <1346060008469> <BEA-000000> < [PipelinePairNode1, PipelinePairNode1_request, Processing, REQUEST] fileAttachments:::: <con:attachments xmlns:con="http://www.bea.com/wli/sb/context">
    <con:attachment>
    <con:Content-Type>application/octet-stream;
         name="14-FileName__2010.10.26_.pdf"</con:Content-Type>
    <con:Content-Description>14-FileName__2010.10.26_.pdf</con:Content-Description>
    <con:Content-Disposition>attachment;
         filename="14-FileName__2010.10.26_.pdf"; size=56022;
         creation-date="Tue, 26 Oct 2010 23:32:35 GMT";
         modification-date="Tue, 26 Oct 2010 23:32:35 GMT"</con:Content-Disposition>
    <con:Content-Transfer-Encoding>base64</con:Content-Transfer-Encoding>
    <con:body>
    <con:binary-content ref="cid:14fbe5b6:13947d789f5:12c0"/>
    </con:body>
    </con:attachment>
    </con:attachments>>
    We are find the <Content-Type> is text/xml and in new environment application/octet-stream;
    Is there any way to find the same xml. as previous version.
    Regards,
    Abhishek

    Abhishek,
    You seem to be hitting a known bug. Please log a SR with support.
    Regards,
    Anuj

  • Passing Global Variable in Sql Object

    Hi
    How can i pass my global variable into SQL object? I tried to pass it but then I tried to update the schema it giving me the error at varble
    Please advise me

    The Update schema is used only to get the structure for the Output.
    Once you have a valid structure and the SQL Parses without any variables use the syntax for applying variables as in any Script within DI.
    $GV_MyVar enclosed within square brackets will be replaced by Value of the variable.
    $GV_MyVar enclosed within curly brackets will be replaced by Value of the variable enclosed in single quotes.
    When the job runs, the variables will be replaced with values OR values with quotes. It is at this time, the SQL send to the database is validated for syntax.
    Therefore, you will not know the validity of your SQL with Global Variables until you run the job.
    Hope this helps!
    Thanks & Regards
    Tiji
    Edited by: Tiji Mathew on May 8, 2009 3:40 PM
    The actual syntax was being posted as a link. edited to make the text descriptive.

  • Global variable in Mapping

    Hi,
    Is there a way to declare a global variable in a mapping? e.g if I want to use a counter variable...
    Zahid

    Hi again,
    I've previously used the mapping input parameters successfully to bind a name (read-only) to the value of an expression, which is particularly effective when you want to filter an ODBC source with a non-trivial expression, which otherwise means the filtering is done on the target side (expensive).
    Unfortunately, Zahid wants to change the global variable within a transformation, and that is a side effect I believe is not allowed in SQL (set mode). Also, transformations live in a separate PL/SQL package, which means that the transformations have no access to the mapping input parameters. Hence my (untested) suggestion that using row mode and developing a separate "global variable" package might do the trick.
    Regards, Hans Henrik

  • What are the best practices to use GLOBAL Variables

    Hi,
    Please guide how Global Variables can be declared and how they can be initialized.
    Further please guide what are the impacts of Global Variables(if any) on the memory of CLIENT or SERVER, if they are not initialized or freed up after usage.
    Thanks.
    Regards.

    spilgrim wrote:
    My preference is not to use them and to use parameters or package variables. There is not real control on globals so you can end up with an applicatios that has lots of them that are only used once but persist for the user session.I second that. I don't know how often I searched for bugs caused by typos in the names of global variables. Plus the fact that they are only of datatype VARCHAR2. If you are using share_library_data you could also use Package globals in a forms library to share data between called and calling forms. Or you could use a database package...
    cheers

  • Problems with PL/SQL packages

    Hello,
    I face the following problem with PL/SQL stored procedures. The Oracle
    version is 8.0.5 on Windows NT 4. The PL/SQL package has a set of procedures and functions.
    The main procedure of the PL/SQL package is triggered from VC++ executable. If for some reason,
    an exception is caught in the stored procedure (like no_data_found
    exception), then the following problem occurs.
    If we try to trigger the stored procedure again through the VC++ executable,
    the variables in the stored procedures have the values as in the previous
    execution. They are not getting initialised. (The same database connection
    is used in VC++ executable).
    Currently, only if a new connection to the database is used , the problem is
    solved.
    Also, change in the input parameters of the procedure is not reflected, once the procedure fails because of any exception. Only the input which was given during the time of execution when the procedure failed,is considered.
    What could be the reason for this problem and how can this be corrected?
    Please send in your suggestions.
    Thanks and Regards,
    Ramya Priya
    null

    Hi Keith,
    I am connecting to the database as the package owner..
    I have noticed earlier that I have problems when capturing triggers also.. The content of one large trigger contains 36371 characters and when capturing it from DB, the content was truncated to 28020 characters in Designer.
    Our ideas with capturing the DB packages/procedures were to use the Designer as version control system.
    We wanted to have all objects used in a project in Designer.. entities, tables, triggers, packages, procedures, Forms files, etc. in order to make a configuration for a project release.
    Thank you,
    Claudia

  • Redifne global variable

    Hi
    Please explain how would i redifine a global variable in another package.Please include the syntax as well.
    Thank you

    A package global variable can only be defined in one single package: yoyu cannot redefine it in another package.
    Example : number_processed in :
    CREATE PACKAGE trans_data AS  -- bodiless package
       TYPE TimeRec IS RECORD (
          minutes SMALLINT,
          hours   SMALLINT);
       TYPE TransRec IS RECORD (
          category VARCHAR2,
          account  INT,
          amount   REAL,
          time_of  TimeRec);
       minimum_balance    CONSTANT REAL := 10.00;
       number_processed   INT;
       insufficient_funds EXCEPTION;
    END trans_data;

  • Designer 9.0.2.7 - problems with capturing PL/SQL packages

    Hello,
    I would appreciate any help regarding the following issue:
    We tried to capture in Designer 9.0.2.7 the existing PL/SQL packages from an Oracle 9i database and we have met some problems.
    Even the package has a body containing two public procedures, when capturing, the Designer generates warnings that say the PL/SQL package body is empty. Therefore, the Designer capture the body content and write it in the PL/SQL Block of the PL/SQL Definition property, but the content of the body is preceded with the " character.
    This makes problem when generating the "ddl" for the package (the package is not created correctly in the DB).
    In addition, when generating the "ddl", the "END package_name" is added twice.
    Other problem is that the package specification information from Designer is just "END package_name;"
    For some of the packages containing only a list of public procedures, without any other variables declarations, the Designer does not capture these procedures as separate subprograms in the package definition, as it does other times. In this case, the package body is entirely captured in the PL/SQL Block and with the " character before content.
    Is it some settings that can be done or some rules about the format of the PL/SQL procedures in order for Designer to capture all packages in same manner and correctly?
    Thank you,
    Claudia

    Hi Keith,
    I am connecting to the database as the package owner..
    I have noticed earlier that I have problems when capturing triggers also.. The content of one large trigger contains 36371 characters and when capturing it from DB, the content was truncated to 28020 characters in Designer.
    Our ideas with capturing the DB packages/procedures were to use the Designer as version control system.
    We wanted to have all objects used in a project in Designer.. entities, tables, triggers, packages, procedures, Forms files, etc. in order to make a configuration for a project release.
    Thank you,
    Claudia

  • How to get changes of a custom PL/SQL package updated in ISG?

    Hi All,
    I need some help on how to change a custom PL/SQL package in ISG integration repository:
    I already uploaded my custom PL/SQL package to the integration repositoy some time ago. Now I have made some changes to PL/SQL record/table types defined in the package (added some fields and removed some others). These changed record/table types are used by a procedure I already uploaded to the integration repository. When regenerating the WSDL for my PL/SQL package in integration repository I get an error that the wrapper for respective procedure can't be found. When checking up the SQL types that were automatically generated (by JPublisher) for corresponding PL/SQL types, these generated SQL types are invalid...
    So it seems that in one case JPublisher generated an empty SQL type (with no attributes). In another case JPublisher generated the SQL type with old attribute list, so it didn't adopt the changes of corresponding PL/SQL type in the package...
    Can anybody tell me how to get the changes of a cusotm PL/SQL package updated in ISG? Or is there any possibility to first remove a whole PL/SQL package from the ISG integration repository (and getting rid of all old automatically generated SQL types), so that I can newly upload my PL/SQL package afterwards?
    Thanks
    Konrad
    Edited by: Konrad on 24.10.2011 10:51

    Thanks Daniel, for your reply...
    (-> for info: I'm a colleague of Konrad...)
    Yes, we used a higher version number - and the upload of iLDT file works fine...
    But, the problem occured when generating the WSDL...
    However, I think we have found an approach of how to get the changes of a custom PL/SQL package updated correctly in ISG:
    1. Save a copy of PL/SQL package and then delete it in the database
    2. Regenerate the WSDL for PL/SQL package in ISG (seems that all atutomatically generated JPub wrappers and SQL types are also deleted)
    3. Restart all processes
    4. Create the changed version of PL/SQL package in the database again
    5. upload of iLDT
    6. Regenerate the WSDL for PL/SQL package in ISG
    Best Regards
    Carolin

  • Global variable in an event loop

    Hi,
    I have a global variable from one VI and want to read it in another VI but
    only if the value has changed, i want to do it with an event case but it
    doesn't do any thing when a read my Global variable in an event when the
    value has changed?
    Does anyone knows how to do this?
    Best regards,
    Thijs

    You'll either need to generate a user event, or set the value using a value (signaling) property and let the "listener" create a dynamic value change event based on a reference to the indicator in use.
    With user event:
    Create a user event and give both the VI that is to react to a change event and the global (functional global) a reference to that event. Inside the global you check if the value differs from the previous one whenever it is written to, and if it is then fire the event.
    MTO

  • How to use a global variable for reading a query resultset in JDBC lookup?

    Hi Friends,
    Using JDBC lookup, I am trying to read from a table Emp1 using a user defined function. In PI 7.0, this function returns values of a single column only even if you fire a " Select * " query. I am planning to use a global variable(array) that stores individual column values of the records returned by a "select *" query. Need pointers on as to how a global variable can be declared and used to acheive the above scenario. Kindly explain with an example. Any help would be appreciated.
    Thanks,
    Amit.

    Hi Amit,
    Sounds like a good idea but then you would need an external db and update the table in a thread safe way !.
    Regarding your question as to how to work with global variable please refer https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1352. [original link is broken] [original link is broken] [original link is broken]
    Rgds
    joel

  • How to Decalre Global Variable in UDF

    Hi All,
    Can you please help me, how to declare a Global variable in UDF.
    I am using SAP PI 7.0.
    Regards,
    Manian.

    Hi manian,
    Have a look this thread:
    Global Variable - How to Set and Access
    Carlos

Maybe you are looking for

  • ITunes 7 - 4 problems I've encountered. Please help!

    First, I am not getting any error messages. These are just problems I have noticed. 1.) When I try to "Add folder to Library", it only adds 1 song on the first try, no matter how many new music files I have in the folder that are not already in the l

  • MBP Chimes but screen goes to black.

    Having not used a Mac in many years, I'm not sure what I'm looking at for a problem. There are many postings with similar titles but I haven't found much in the way of details. My son's early 2011 MBP 15" chimes, displays the gray screen with Apple l

  • Java RMI & XML parsing.

    I'm new to Java so any help is greatly appreciated. I trying to develop a distributed application using Java RMI that allows a user to enter a users name and be returned their email address and telephone number. The details of users will be stored in

  • Power button blink twice each time, video included. Laptop won't turn on. help please!

    Hi guys,I opened up my laptop - HP Pavilion dv6 because the fan was full with dust.I cleaned it up and followed the youtube instructions. I know I assembled the laptop correctly, each part in his place, every step went smoothly.When i tried to power

  • Poupulate   using BAPI

    Hello, Please give abap program making used of the BAPI function to create purchase order creation using ME21N after importing the data from an external system. Regards, Sarath.