Is Collection APEX session specific

I think I know the answer to this but I want to be 100% sure. My application uses a collection that gets populated and is then the source SQL for the region. What happens if two users are running the applicaiton at the same time? Will I run into any problems, or is a colleciton local to each specific Apex session?
Thanks!

Hi,
Yes, collection is application and session specific
Regards,
Jari
Edited by: jarola on Oct 28, 2010 8:05 PM
>
Collections enable you to temporarily capture one or more nonscalar values. You can use collections to store rows and columns currently in session state so they can be accessed, manipulated, or processed during a user's specific session. You can think of a collection as a bucket in which you temporarily store and name rows of information.
>
http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm#CACFAICJ

Similar Messages

  • Want to get ApEx session in JSP

    Hi Pals,
    From my ApEx application, I am calling a JSP by providing a direct URL.
    THe JSP does some specific function here.
    If the user get the JSP url by right click and view source, they can very well use this outside my ApEx application.
    I want to apply security like, the JSP url only works inside my ApEx application.
    My thought, if I can share ApEx session with JSP session I can impose the security check in JSP level.
    Any idea would be appreciable.

    Hi,
    Im using below method to call jsp page and passing UserName, application id and Session as
    <iframe src="http://apex.oracle.com/pls/otn/...javaapplication.jsp?userId=&USER.&appId=&APP_ID.&sessId=&SESSION."></iframe>
    Vailidation is done against the table "wwv_flow_sessions$" of schema : flows_030100 ,whether those values are exist in table.
    But if user is already logged into apex application, he can run the jsp independantly taking the url from "view source".
    Im also looking for more solid validation
    Regards,
    Benz

  • Anyone created an apex session in a plsql procedure in 4.1

    Hi all,
    Was wondering if anyone has been able to create a procedure that creates an apex session that allows using collections after upgrading to 4.1
    Our procedure which we used for nightly processing worked fine in 4.0.1 is no longer working after upgrading.
    Thanks for any suggestions or help
    Wayne
    We were using:
    htp.init;
    l_cgivar_name(1) := 'REQUEST_PROTOCOL';
    l_cgivar_val(1) := 'HTTP';
    owa.init_cgi_env(
    num_params => 1,
    param_name => l_cgivar_name,
    param_val => l_cgivar_val );
    for c1 in (select workspace_id from apex_applications where application_id = l_application_id) loop
    l_workspace_id := c1.workspace_id;
    dbms_output.put_line('l_workspace_id:'||l_workspace_id);
    end loop;
    wwv_flow_api.set_security_group_id(l_workspace_id);
    apex_application.g_instance := 1;
    apex_application.g_flow_id := l_application_id;
    apex_application.g_flow_step_id := 999;
    wwv_flow_custom_auth_std.post_login(
    p_uname => l_user,
    p_session_id => null,
    p_flow_page => apex_application.g_flow_id||':'||999);
    wwv_flow.show (
    p_flow_id => apex_application.g_flow_id,
    p_flow_step_id => apex_application.g_flow_step_id,
    p_instance => apex_application.g_instance,
    p_request => 'FSP_SHOW_POPUPLOV'
    execute procedure_XXXX (this procedure contains the code to create an apex collection)

    Not for sure how I did it, but the user handle should have been wcoleku.
    Wayne

  • What is killing my Apex Session?

    Hi,
    as far as I understand it, the Session lasts 24 hours after the last submit? I can shut down the DB or the Apache and after I have them up again my session is still valid. I can also work on the next day with my session. But at least once a day suddenly my sessions are gone and I have to reconnect.
    Can anyone explain this behaviour?
    Thanks, Juergen

    Also, there is nothing magic about 24 hours, feel free to modify that DBMS_JOB to increase or decrease this frequency as appropriate for your environment.
    Remember that in most cases, the Apex session is tied back to a specific (browser-session) cookie, chances are that your client machine and/or browser is likely to be rebooted/restarted long before 24 hours so this issue is moot anyway.

  • APEX 3.1 "Apex Session Timeout"

    Hi all,
    I have been trying to find out how I can set a session to timeout in APEX 3.1 i.e. 30 minutes. I have reviewed Shared Components etc and haven't been able to find anything to control this timeout value. I am aware of the procedure SET_SESSION_MAX_IDLE_SECONDS but i am unable to find it in any of the wwv_* packages. Is it available in 3.1? If not, how can i set this value? Also, can the timeout value be set per application rather than globally?
    Thanks!

    Thanks for that (again). So it looks like I have 3 options:
    1)     Incorporate a JS timeout script
    2)     Build an APEX session package (api_apex_session.pck) that would handle this
    3)     Install APEX 3.2 where all this is supported
    What about the web server or cookie management...is there anything that could be used there?

  • How to create an apex session in e.g. SQL*Plus?

    I would like to establish an apex session using a tool different from SQL Workshop.
    How can I achieve this using e.g. SQL*Plus or SQL Developer?
    Is there some document on the internet which addresses this question? I couldn't find it yet.

    First and foremost you need to set the Security Group ID (SGID)
    begin
    APEX_UTIL.SET_SECURITY_GROUP_ID(APEX_UTIL.FIND_SECURITY_GROUP_ID('MY_WORKSPACE'));  -- replace MY_WORKSPACE with yours
    end;
    then you might need to set an application_id for certain features to work:
    select application_id
        into apex_application.g_flow_id
        from apex_applications
       where application_name = 'my_app_name';  -- replace my_app_name with yours
    If you need to create a session id, you can get a fresh one with
    DECLARE
      VAL NUMBER;
    BEGIN
      VAL := APEX_CUSTOM_AUTH.GET_NEXT_SESSION_ID;
    END;
    Flavio
    http://oraclequirks.blogspot.com
    http://www.yocoya.com

  • Collection query for specific SCCM client version - Parameters?

    Good morning,
    I need to upgrade my older clients as I recently upgraded SCCM to SP2.  I can't seem to find the parameters in query builder to populate a collection with a specific SCCM client version.  Can anyone help me out or point me in the right direction?  I can't find anything using "The Google".  You'd think lots of people would want this that there'd be a default query in SCCM already.  Thanks.

    Here is a query of all clients running sp1 version:
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_SMS_ADVANCED_CLIENT_STATE on SMS_G_System_SMS_ADVANCED_CLIENT_STATE.ResourceId = SMS_R_System.ResourceId where SMS_G_System_SMS_ADVANCED_CLIENT_STATE.Version = "4.0.6221.1000"
    JonL

  • Create a User Collection with installed specific software

    Can someone help with Query to Create a User Collection with installed specific software.
    I have created a collection for Computer Collection with installed specific software but i need to push apps on users and for that i need to create a user collection with specific software installed.
    Thanks

    Yes. I have created device collection with
    installed specific software and used  this collection to pull report from out the box report for Primary Device users( Not sure about exact report name but similar) for
    this collection. Did some excel work to find primary device user.
    But looks like there is no straight forward solution. It would be great if i know how to import multiple users from a text/csv file into a User collection.
    Thanks

  • Session Specific Materialized Views...

    Its my understanding that when creating a materialized view, the default table the data is loaded into (from the query of the materialized view) is not session specific. Is there any way to make it session specific? Below is a view I just created... I want it to be session specific using the user currently logged into the system
    CREATE MATERIALIZED VIEW DATA_PERMISSION_SETS
    BUILD IMMEDIATE
    REFRESH ON DEMAND AS
    SELECT A.TRD_TRADER_LOGIN,
    A.CY_COMPANY_KEY,
    A.SID,
    A.SERIAL_ID,
    A.STRUCTURE_LEVEL,
    A.STRUCTURE_KEY
    FROM TRADER_DATA_PERMITS A
    WHERE TRD_TRADER_LOGIN = USER;
    If user "A" logs into the database, the data from the MV should be completely different than "B". I tried something close to this a few months ago using global temporary tables but it seems like oracle forms closes a session when using the built in "exit_form".. any help guys? Let me know your thoughts.
    Thanks in advance.
    Mo

    Okay here is some details of what im trying to do. In my database is a security system, and within the security system is table which holds data permits for a row-level security system (oracle VPD using security context). So when a user logs in, he picks a security clearance, and based on the security clearance rows of data are populated into the filtering tables for the VPD context to decide which rows a user can see and not see... so heres an example...
    Security clearance level 1 has access to
    GVF Portfolio
    RANDOM Portfolio
    Subprime Portfolio
    Security clearance level 2 has access to
    1 Portfolio
    RANDOM Portfolio
    4 Portfolio
    User 1 logs in using security clearance 1...
    User 2 logs in using security clearance 2..
    the filtering table will look like this for its permissions..
    USER 1, GVF Portfolio
    USER 1, RANDOM Portfolio
    USER 1, Subprime Portfolio
    USER 2, 1 Portfolio
    USER 2, RANDOM Portfolio
    USER 2, 4 Portfolio
    now this example is assuming 2 users are in the system, with the minimal privledges inside the system. The current database can hold as many as 10k in users at a time all with entries in this table at login. If the VPD context has to sort through 150k + records for each row of a query, the run time is going to be EXTREMELY SLOW.
    This is why I want to use a session specific materialized view or global table. It will minimize the records down to a few records, and the VPD context can use the materialized view as the filtering table instead of the full table.
    The problem is the view data is not session specific. So if user 1 populates the materialized view and user 2 logs in to do the same, user 1's data from the materialized view will change from user 2's refresh...
    Its a little hard to understand... let me know if you get me on this idea..
    Mo

  • What is an APEX session?  Where is it documented?

    Exactly what defines an Oracle APEX session? Is it documented somewhere? (I can't see blogs because they filter them out here.)
    I ask because I find global variables persisting when I've logged out of APEX and logged back in again. Connectivity is "hit and miss" here. So I often duplicate browers tabs (sessions?) which are timing out. I'm wondering if that's not leaving disconnected session(s) that I log back into. I noticed that the initialization process ("on new session") is not executing, so I presume when I log back in I'm not starting a new session.
    Thanks -- Howard

    Hi,
    This might help
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_ses.htm#sthref103
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_ses_val.htm#sthref124
    I ask because I find global variables persisting when I've logged out of APEX and logged back in again. Connectivity is "hit and miss" here. So I often duplicate browers tabs (sessions?) which are timing out. I'm wondering if that's not leaving disconnected session(s) that I log back into. I noticed that the initialization process ("on new session") is not executing, so I presume when I log back in I'm not starting a new session. Can you create some example to apex.oracle.com to demonstrate what you mean?
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Trace Apex session from sqlplus

    Hi,
    Apex 4.2.4, Oracle 11.2.0.3, Apex Listener 2.0.5
    How to start Apex session trace from sqlplus command line? I know thread Trace with &p_trace=YES but this is not a solution because I want to start from sqlplus (PL/SQL code).
    Any help?
    Brg
    Damir

    Your question has changed.
    Your question now:  "How do I identify a session in the database that belongs to an APEX page?"
    Use the session tables to match your APEX connection to the information in the gv$session table.
    Yes - this is a "free" information in the database, but it is also secure.  You will need elevated privileges to do this.  Use with caution.
    You will not find a PLUG-IN that can do tracing if the base user can not do tracing.  The reason the URL feature is there from APEX is because APEX (the framework) has the access and ability - but that is not passed down to each workspace / schema without using the framework.
    I have no details of your installation or your application, so you will need to determine what types of calls are being made to the database and with what method (EPG, OHS, ORDS, etc..)
    select SID, SERIAL#,inst_id,program,module,event,Action,machine, client_info, CLIENT_IDENTIFIER
    from gv$session s where type!='BACKGROUND'
    and status='ACTIVE' and sql_id is not null;
    The CLIENT_IDENTIFIER will show you SESSION and USER
    The MODULE will show you APP and PAGE
    From there, you can do all your SID related tracing you need.

  • APEX sessions at 2008 Oracle Open World 9/21 - 9/25?

    I looked for but could not find a public posting of APEX sessions scheduled at Open World next week to pass along to an associate who will be attending - something like [this resource from http://dgielis.blogspot.com|http://apex.oracle.com/pls/otn/f?p=39802] would be great. Thanks in advance for any direction on this anyone may be able to provide, GR

    Hello,
    David Peake posted something on his blog a while back when he created an Apex app listing the Apex sessions -
    http://dpeake.blogspot.com/2008/08/oracle-openworld-2008-apex-update.html
    http://apex.oracle.com/pls/otn/f?p=338:1:0
    Hope this helps,
    John.
    http://jes.blogs.shellprompt.net
    http://www.apex-evangelists.com

  • Example to see all site collections in a specific content DB in sharepoint 2010

    Can someone give an example to see all site collections in a specific content DB
    in SharePoint 2010.
    I've tried the below ones but it gives all content DB's with all site collections.
    Get-SPContentDatabase | %{Write-Output "- $($_.Name)”; foreach($site in $_.sites){write-Output $site.url}}
    Appreciate your help

    Use Get-SPSite cmdlet
    $spAssgn = Start-SPAssignment;
    Get-SPSite -ContentDatabase "<SPContentDBName>" -Limit ALL -AssignmentCollection $spAssgn|Select Title,Url;
    Stop-SPAssignment $spAssgn;
    Get-SPSite
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Looking for the right collection for a specific problem

    Hi guys,
    Just wanted to say great work you guys are doing here. the forum has definitely helped me a lot in the past.
    I am currently having a problem selecting a collection for this specific application that i have to do for my final year project. I am looking for a way to store a bunch of strings a collection that uses the actual string as its key and stores the number of times that the string have been added to the collection as its value.
    so for e.g
    String a = "a";
    String b = "b";
    String a2 = "a";
    String c = "c";
    /**Here is where i create my collection */
    // Collection mycollection = new collection
    // mycollection.add(a);
    // mycollection.add(b);
    // mycollection.add(a2);
    // mycollection.add(c);
    /**if you request for the string a or a2 the collection should return the number of times that string appead e.g */
    // System.out.println(mycollection.get(a));
    //this should print 2
    Does such a collection exist? I remember using something similar when i was learning c++ but i havent been able to find what i am looking for in the API documentation. Please help.
    Frank

    I think what the OP is looking for is probably a Bag. Unfortunately the default collections framework does not provide a Bag interface or implementation. You could look into using the Jakarta Commons Collection, they do provide those (look at the API[url] as well.

  • Is sequence session specific ?

    Is sequence session specific ? if yes/no then WHY ?

    Is sequence session specific ? if yes/no then WHY ?
    When an interviewer asks you a question you can't answer the first place to look for information is the Oracle documentation
    A search of the web for 'Oracle 11g sequence' lists the link for CREATE SEQUENCE in the SQL Language doc as the very first hit:
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_6015.htm
    CREATE SEQUENCE
    Purpose
    Use the CREATESEQUENCE statement to create a sequence, which is a database object from which multiple users may generate unique integers. You can use sequences to automatically generate primary key values.
    The first skill you need to learn as a new developer is how to FIND information. If you have trouble understanding the infomation that you find then ask for help in the forums.

Maybe you are looking for