How to share an associative array throughout the entire instance?

Hi all

I have an associative array containing a lot of data and it would barely change, I want to keep in memory and share all throughout the entirety of an instance and make sure that all the sessions for all users, get the same table associative, is - it possible?

Thanks in advance.

>

I just want to keep it in memory and share them throughout the entire instance and make sure that all sessions of all users get the same associative array, is it possible?

Why do you want to keep in mind?
Will using a table for it, who has access frequently, almost will always be in the buffer cache, performance of the cause of the problems for you?

The only other way to keep the data in memory in the world FLEURIDAS to all database sessions is to use the global application context functionality. With which you can store [name, value] pairs in memory and easily (read) access using integrated SYS_CONTEXT.

Toon

Tags: Database

Similar Questions

  • How to: compare 2 associative arrays element-by-element

    After playing, I decided to go with the approach of the two sets of data of their own associative array.  The code and the results of this are below.  My question is the comparison.  For each element within the matrix of order, check all the items in the details table to see if there's a football game.  If there is a match > > > move to the next item in the control panel and check all the items in the details table to see if there is a football game.  Go until the whole is considered to be a match (in number of rows and values).  If no match, take the exit.

    Below, you'll see my logic to get both sets of data into their respective tables.  The results with a note attached to one of the elements is also pasted here (hereinafter the code).

    DECLARE

    TYPE details_t () IS RENDERING

    SIDE AUTO_RECIPE_DETAILS. SIDE % TYPE.

    REF_DES AUTO_RECIPE_DETAILS. REF_DES % TYPE,

    PART_NUM AUTO_RECIPE_DETAILS. PART_NUM % TYPE

    );

    TYPE details_type IS TABLE OF details_t INDEX OF AUTO_RECIPE_DETAILS. PART_NUM % TYPE;

    details_recipe details_type;

    pid_recipe details_type;

    compare_result details_type;

    CURSOR details_cur

    IS

    SELECT A FACE, REF_DES, PART_NUM

    OF AUTO_RECIPE_DETAILS

    WHERE RECIPE_NAME =' 40617-000001;

    CURSOR pid_cur

    IS

    SELECT cl. SIDE, lacpa. REF_DES, NVL(oecl.COMPONENT_ID, 'NOT APPLIED') AS PART_NUM

    OF ORDER_ERP_COMPS_LIST lacpa

    RIGHT OUTER JOIN CAD_LOCS cl

    ON cl. REF_DES = LACPA. REF_DES

    WHERE lacpa. ORDER_NUM = "PSY142420."

    AND CL. FAB = '38112';

    counter_d number (10): = 0;

    counter_p number (10): = 0;

    comp_counter number (10): = 0;

    BEGIN

    FOR rec IN details_cur

    LOOP

    counter_d: = counter_d + 1;

    details_recipe (counter_d). SIDE: = rec. SIDE;

    details_recipe (counter_d). REF_DES: = rec. REF_DES;

    details_recipe (counter_d). PART_NUM: = rec. PART_NUM;

    END LOOP;

    FOR rec IN pid_cur

    LOOP

    counter_p: = counter_p + 1;

    pid_recipe (counter_p). SIDE: = rec. SIDE;

    pid_recipe (counter_p). REF_DES: = rec. REF_DES;

    pid_recipe (counter_p). PART_NUM: = rec. PART_NUM;

    END LOOP;

    -for each pid_recipe element, double-check each record in details_recipe to see if there is an item matching (record)...

    FOR indx_d IN details_recipe. FIRST... details_recipe. LAST

    LOOP

    DBMS_OUTPUT. Put_line (details_recipe (indx_d). SIDE | ', ' || details_recipe (indx_d). REF_DES | ', ' || details_recipe (indx_d). PART_NUM);

    END LOOP;

    DBMS_OUTPUT. PUT_LINE ('IN THE SECOND PART OF IT!');

    FOR indx_p IN pid_recipe. FIRST... pid_recipe. LAST

    LOOP

    DBMS_OUTPUT. Put_line (pid_recipe (indx_p). SIDE | ', ' || pid_recipe (indx_p). REF_DES | ', ' || pid_recipe (indx_p). PART_NUM);

    END LOOP;

    END;

    /



    RESULT:


    DETAILS TABLE

    RECIPE FOR THE DETAILS TABLE:

    B, R28, 34315-26R7

    B, R38, 34315-4990

    B, R40, 34152-1R60

    B, R45, 34315-1002

    B, R46, 34315-3011

    B, R48, 34152-1004

    B, R55, 34315-5901

    B, R64, NOT APPLIED

    B, R77, 34315-4992



    CONTROL PANEL

    THE RECIPE IS CALCULATED IN THE ORDER ITSELF:

    B, C01, 39412-334 / / for that one single item-> check all the items from the table (above) details Table and see if an element matches.  Move to the next item if there is a match...

    B, C02, 39412-334

    B, C03, NOT APPLIED

    T, C11, 27249-105

    T, C13, 35404-104

    T, C14, 27531-224

    T, C15, 35404-104

    T, C18, 27249-105

    T, C19, 27531-224

    CHANGED:

    THIS... is the solution to my original question.  I had a little mistake that I set between this and my last post with this code.  Just in case a person who could use an example like that falls on this thread.

    FOR index_p IN pid_recipe. FIRST... pid_recipe. LAST

    LOOP

    Result WHEN the OUTPUT = 1;

    FOR index_d IN details_recipe. FIRST... details_recipe. LAST

    LOOP

    IF (pid_recipe (index_p). SIDE = details_recipe (index_d). SIDE)

    AND (pid_recipe (index_p). REF_DES = details_recipe (index_d). REF_DES)

    AND (pid_recipe (index_p). PART_NUM = details_recipe (index_d). PART_NUM)

    THEN

    EXIT;

    ON THE OTHER

    DBMS_OUTPUT. Put_line("IT WAS NOT a MATCH");

    result: = 1;

    EXIT;

    END IF;

    END LOOP;

    END LOOP;

    DBMS_OUTPUT. Put_line('LOOP OUT');

  • the associative arrays containing the record type, cannot be used first

    I am having trouble with the declaration of an associative array containing the Types of records and iteration using FIRST and NEXT functions.
    This problem of mine is only appear when I use that types of records, the FIRST and FOLLOWING operators work very well when you use the regular NUMBER.

    Trying to get the first element of the array, I get: ORA-06550: line 22, column 40: PLS 00382: expression is of the wrong type

    See the code snippet below. Anyone know if this can be done in PL/SQL?

    -----------------------------------------------------------------------------------------
    DECLARE


    -Set the record structure that will contain information on a post
    TYPE PostRec IS (RECORD
    post_type VARCHAR2 (4) - maybe DEB/CRED
    );

    lr_charge_back_post PostRec;

    TYPE post_table IS TABLE OF PostRec NOT NULL
    INDEX BY VARCHAR2 (4);

    assoc_posts post_table;

    BEGIN


    -lr_charge_back_post.post_type: = "asd";
    assoc_posts('1').post_type: = '1';

    lr_charge_back_post: = assoc_posts.first;

    END;
    /

    Returns the index, not the file FIRST:

    SQL> declare
      2  TYPE PostRec IS RECORD (
      3  post_type VARCHAR2(4) -- Can be DEB/CRED
      4  );
      5
      6  lr_charge_back_post  varchar2(20);
      7  TYPE post_table IS TABLE OF PostRec NOT NULL
      8  INDEX BY VARCHAR2(4);
      9
     10
     11  assoc_posts post_table;
     12
     13  BEGIN
     14
     15
     16  --lr_charge_back_post.post_type := 'asd';
     17  assoc_posts('1').post_type := '1';
     18
     19  lr_charge_back_post := assoc_posts.first;
     20  dbms_output.put_line('idx='||lr_charge_back_post);
     21  END;
     22  /
    idx=1
    
    PL/SQL procedure successfully completed.
    
    SQL> declare
      2  TYPE PostRec IS RECORD (
      3  post_type VARCHAR2(4) -- Can be DEB/CRED
      4  );
      5
      6  lr_charge_back_post  varchar2(20);
      7  TYPE post_table IS TABLE OF PostRec NOT NULL
      8  INDEX BY VARCHAR2(4);
      9
     10
     11  assoc_posts post_table;
     12
     13  BEGIN
     14
     15
     16  --lr_charge_back_post.post_type := 'asd';
     17  assoc_posts('idx').post_type := '1';
     18  lr_charge_back_post := assoc_posts.first;
     19  dbms_output.put_line('idx='||lr_charge_back_post);
     20  END;
     21  /
    idx=idx
    
    PL/SQL procedure successfully completed.
    

    Max
    http://oracleitalia.WordPress.com

  • Dreamweaver allows us to change destination, a link throughout the ENTIRE cluster ofPages?

    I have a link to an external site across the entire cluster of pages on my site.   Is there a command in Dreamweaver CS5 that would allow me to change this link as it appears throughout the entire cluster of pages, at the same time?    That of course would save me a lot of time if it can be done without me having to make the change manually and individually, on a basis of page by page.   Maybe something like this command exists, perhaps?

    "Change all occurrences of the following address of the _ the _ throughout the entire site.

    Suggestions, please?

    Dreamweaver allows three different methods to do so.

    As suggested, you can use the code server to call a page of text you are simply editing in one place.

    Also, as suggested, we can use of Dreamweaver Find and replace tool to replace all occurrences of a particular link. If you are looking for it in the source code, you must be very careful on how you specify what to search for and exactly what you want the replacement code.

    Finally, I started using templates for stuff with recurring information throughout a Web site. Things like the navigation, footers, headers and so on are very useful to automate a change in recurring content. If you have a link to the page that changes in navigation, if you have a model that manages that in all the pages, change you it once and Dreamweaver will ask you if you want to update all files based on this template. Answer 'Yes' and the page any changes will be made.

    Pages can be linked to only one model and it should nest templates.

    So, to fully answer your question, Yes. There are three methods at your disposal.

  • In CC Dramweaver Adobe how to make my Web page fill the entire window?

    In Adobe Dreamweaver CC how to make my Web page fill the entire window?

    A width of 100% CSS.


    Body {width: 100 %}}

    Nancy O.

  • How to create an associative array

    Is it necessary to creat a table associated with?
    index by BINARY_INTEGER
    CREATE OR REPLACE TYPE WEBINST.string_state_table AS TABLE OF varchar2(100) ;

    Yes,

    You must use the index by clause to create an associative array. Other wise, it is called as a nested table.

    Read this

    http://download.Oracle.com/docs/CD/B28359_01/AppDev.111/b28370/Collections.htm#i34563

    See how you can declare the different collections

    http://download.Oracle.com/docs/CD/B28359_01/AppDev.111/b28370/Collections.htm#CJAJEIBA

    G.

  • How to create a CS5 ZXP throughout the CC2014 using ucf.jar

    Hello world

    I use a version of maven to generate a CS5 ZXP throughout the CS6 for InDesign. Now, I would like to add CC and CC this ZXP 2014, while I have a universal ZXP for all my versions supported.

    I use the ucf.jar to generate my current ZXP. I tried to add my mxi CC and CC2014 to install on these versions.

    The ZXP generate well and can be installed without any error in the installation of signage. But when I run the application InDesign CC 2014 for example, my native plugins behaving oddly.

    I noticed in the technical notes on the FCU, which mentioned versions are until CS6:

    Adobe Exchange

    I've seen other technical notes speak ZXPSignCmd to package a ZXP, but with do not mention anything on a supported version:

    http://wwwimages.Adobe.com/content/dam/Adobe/en/DevNet/creativesuite/PDFs/SigningTechNote _ CC.pdf

    I tried my extension with the UCF package, but InDesign CC 2014 seems to not work properly with installed extension once installed. I noticed the symbolic links in plugins installed here where it is replaced by the sharp the link file.

    I tried my extension with ZXPSignCmd of packaging, but Extension Manager CS6 tells me that the ZXP does not contain a valid signature.

    Not there at - it no way to create a universal ZXP works on all these versions?

    Hello world

    I had the chance to talk to Fraser Gregor, developer at Adobe involved in the development of tools of ZXPSignCmd. He told me that it was impossible to generate such ZXP this way.

    UCF.jar is a tool for InDesign CS6 and earlier versions. ZXPSignCmd was designed for the CC and latter versions. The solution, he offered me was to have a ZXP for any version under CS6 and a ZXP for any version of the latter as CC. Then he told me to have a ZXP wrapper to hold both of them. As a result of this way, I can have a universal ZXP.

    It's a little more work, but it should work. To create the universal ZXP, we can use ZXPSignCmd.

  • How to make Web sites to fill the entire window

    Firefox does not use the entire screen, leaving about 1/2 of the emptiness of the screen.

    This has nothing to do with 'full screen '.

    You can use an extension to set a page zoom and the size of the default font on the web pages.

  • How do you keep Windows automatically passing the entire file name when editing?

    When I copy a file to a folder and rename the file, that I right click once on the file name to select it and again to place the cursor where I want to change the name in the name of the original file.  However, until I'm able to start typing the computer automatically highlights the entire file name, so that when I start typing deletes the original file name and replace it with what I typed.  Is there a way to avoid this and allow me to change the name of original rather than delete it and start from scratch?

    If I press ESC to restore the original name and follow the same steps again, that it allows me to change the name of the original file as you wish.  That is to say, I see only this product the first time I try to change the file name.

    After he highlights the entire name, press any cursor movement: home, end, left arrow, right arrow key.  Who will be development of the United Nations name and allow you to move the cursor in the right place to start to edit. Boulder computer Maven
    Most Microsoft Valuable Professional

  • How to share files of Linux as the gust to windows as host operating system?

    Hello

    I'm using vmware workstation 6. My host opering system is windows xp and gust under vmware operating system is linux redhat or Fedora 10. Sometimes I do a few files or download stuff in my guest operating system (Linux). I want to keep the files in my i.e of operating system (Windows xp) host for future needs. I want to know that in vmware how can I share files if the two operating systems (host and guest) are different? VMware brings any facility to share files?

    Thanks in advance,

    mypass

    You can share using file share workstation features or alternatively this URL provide other options: http://www.vmware.com/support/ws3/doc/ws32_running9.html

  • How users share a virtual machine with the level of access under total control?

    Hello

    In our Lab Manager environment, we have created workspaces and users can create and share virtual machines in these workspaces. The problem is the level of access only I can see when users share virtual machines is read-only. How can users share their machines with other users with the full control access level?

    Thank you.

    It is a constraint of security designed to prevent the full control permission, being too easy accidentally to give everyone in a system.

    The answer depends on whether you have PF3 or LM4.

    Behavior of PF3: share to everyone in an org is read-only, while sharing a physical person should give you full read/write/control

    LM4 behavior: share in all the world in an org, individuals selected in an org or anyone in a different workspace == read-only, while in the same workspace gives you the opportunity.

    That said, total control: the ability to deploy/undeploy it or change the settings of the virtual machine, NOT if the specified user has write access the console.  The distinction is quite important.

    Also, page followed, but he had the wrong information, there may be an arbitrary number of connections of the competing console to the same VM (oh, I'm sure that there is a limit, but I did not deliberately try to find).  It does give the impression that several people are faced with the same mouse and keyboard...

  • How to share text and image at the same time using Blackberry invocation framework

    Hello

    I need to share the text and its corresponding picture to FB, Twitter and BBM using the framework of invocation of blackberry. No invocation framework support for images and text sharing simultaneously.

    When I use the mime type as text/plain, the url of the image and the text is shared and when it is image/jpeg is used only the image is shared and not the text. Here is the snippet of code used.

    ShareDataTo=function shareTo(key) {
    //shareImage();
    var text ="";
    
    text = itemObject.myName +"\n My Age : Rs."+itemObject.myAge+"\n Address "+itemObject.address+"\n"
    try
    {
    blackberry.invoke.invoke({
    target: key,
    action: "bb.action.SHARE",
    type: "text/plain",
    data:text
    });
    }
    catch(Error)
    {
    //alert('in ShareDataTo error '+ Error);
    }
    }
    

    Help, please

    Kind regards

    Annuk

    This is not currently supported.  Now, you can make a text or an image, but not both.

  • How to share an IP address between the host and the VM?

    I'm a newbie on VMWare, and I hope that this question has a simple answer... I have a physical machine, I have turned into a VM today and am now running as VM on Workstation 6.5. This physical machine had a static IP address which must remain public, but I can't get a second IP address on the same subnet of the host. How can I get static IP even stay on the virtual machine without attributing an IP address of NIC1 host?

    Or is it possible to assign static IP address to the host NIC1 use somehow fill? That seems still, however, require an IP address on the host and the guest of virtual computer.

    I also looked in NAT, but I do not know how to assign the NAT specifically to NIC1 on the host. I have NIC2 and NIC3 with different IPs on different subnets.

    Thanks in advance.

    drmuzik wrote:

    So with the bridge, the NIC host does not have an IP address?

    Well the exact answer depends on those needs specific and explicit, but assuming that the physical machine will be connected directly to the Internet and the virtual machine uses a static public IP address then the physical machine may not have a public IP address if the only one you have is assigned to the virtual machine.  This is why I said delete everything except Protocolto Bridged from VMware on the physical target network adapter.

    Yet once if you had included the host and Guest OS operating system information it helps us to be more specific with answers to questions and given that you do not I will generalize and do not take the time to explain all the scenarios possible use cases.  In a case like this one containing explicit and specific local network topology details and that it connects to the Internet may also be useful to provide more explicit and specific answers.

    In addition if you have not already read chapters 14 & 15, covering networking, workstation users manual you should as it will help provide toys better understand virtual network infrastructure.

  • How to share banner edge animate in the portfolio online?

    I would like to include examples of banner ads created in Edge animate. I did research online but have not yet succeeded. Someone managed to solve this problem?

    Thus, 2 tools can be used:

    (1) edge API. You must customize an html page ==> API JavaScript Adobe Edge animate CC

    (2) common edge. You have a tutorial here ==> nesting animate compositions with the joint Composition by Edge magazine | EdgeDocks.com

  • Use an associative array with the paragraph

    Hello
    I'm trying to do something like this:

    declare
    l_items parse_pkg.items_tt;
    Enter numbers are the number table.
    n numbers;
    org varchar2 (100): = 1 | 2. 3. 4';
    Start
    l_items: = string_to_list (org); -string_to_list is Steve Feuerstein function that returns a table of varchar2s, items_tt
    Select to bulk org fired n of org_table
    where org table (l_items);
    end;

    This seems like it should work when I look at http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:210612357425
    I'm sure that someone understands what I'm trying to do and can point me to the light.
    Thank you!

    user12020272 wrote:
    Thanks much for the reply. I'm trying to understand your first point.

    All my 'points' are for the second part, which executes the SQL statement. I'll give you a simplified example:

    SQL> declare
      2      type items_tt is table of varchar2(10);
      3      l_items items_tt := items_tt('KING','ALLEN');
      4      type numbers is table of number;
      5      n numbers;
      6  begin
      7      select  sal
      8        bulk collect
      9        into n
     10        from emp
     11        where ename in l_items;
     12  end;
     13  /
          where ename in l_items;
                         *
    ERROR at line 11:
    ORA-06550: line 11, column 22:
    PLS-00642: local collection types not allowed in SQL statements
    
    SQL> 
    

    Now create type items_tt in SQL:

    SQL> declare
      2      l_items items_tt := items_tt('KING','ALLEN');
      3      type numbers is table of number;
      4      n numbers;
      5  begin
      6      select  sal
      7        bulk collect
      8        into n
      9        from emp
     10        where ename in l_items;
     11  end;
     12  /
          where ename in l_items;
                         *
    ERROR at line 10:
    ORA-06550: line 10, column 22:
    PL/SQL: ORA-00932: inconsistent datatypes: expected NUMBER got SCOTT.ITEMS_TT
    ORA-06550: line 6, column 5:
    PL/SQL: SQL Statement ignored
    
    SQL> 
    

    So, we went first issue. Now my second point:

    SQL> declare
      2      l_items items_tt := items_tt('KING','ALLEN');
      3      type numbers is table of number;
      4      n numbers;
      5  begin
      6      select  sal
      7        bulk collect
      8        into n
      9        from emp
     10        where ename member of l_items;
     11  end;
     12  /
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    As I already mentioned, this also works:

    SQL> declare
      2      l_items items_tt := items_tt('KING','ALLEN');
      3      type numbers is table of number;
      4      n numbers;
      5  begin
      6      select  sal
      7        bulk collect
      8        into n
      9        from emp
     10        where ename in (select * from table(l_items));
     11  end;
     12  /
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

Maybe you are looking for

  • MacBook suddenly stops wifi connection

    Hi guys,. ve Ive went through all the restarts, and ideas, I found the Forum and are unable to reconnect. I go through the wizard and he goes on to say that the password is wrong when I have my iPad and connected phone wo wifi with the same password!

  • Loss of FN - key after the installation of the updates from Microsoft on L500 security

    I am using a satellite L500-19U After the installation of Microsoft security updates the FN lost their function except the brightness keys + /-function.also the function keys that appear on the upper border of monitor by pressing the FN key appear af

  • code 80070663 for updates of security failed pls help

    begins to put update security update, then he said fails, I tried several times and continues to be the same thing, seems to be for 6 other programs including 1 of update for office 2007 pls help

  • Windows Media Player not installed correctly and must be reinstaleed

    error message when you try to use WMP11 on Vista. the number of Version 11.0.6002.181111 When the 11.0.6002.18065 number was expected WMP not installed correctly and must be reinstalled. How can I do this?

  • Need to match community

    I had a shoot huge photo and background color changed slightly when I treat them because of the skin tones and variable brightness, etc.   I have 75 images, so how can I match them all to a single image?   I enclose you a couple of them.  So let's sa