Single database session by user in the Application of the ADF/BC

Hi, I use ADF with BC (JDeveloper 11.1.1.1). My application will contain several application modules, each connected to the same JDBC data source. On the application server, I configured the data source to use the identity function connection pooling.

My current Setup translates many sessions of database for each user. I have an obligation to use only a single database session by user HTTP session. Is it possible to configure the application modules to achieve this?

Thank you
Brad

Hello

use a single root module Am and make sure that the others are used as nested modules. This will create a single connection

Frank

Tags: Java

Similar Questions

  • not able to connect database to another user of the operating system using the remote?

    Hello

    I want to connect database to another user of the operating system. I am able to connect Oracle database to the outside. but not able to connect different OS user.



    As an ORACLE user:

    [oracle@test1 admin] $ sqlplus /.

    SQL * more: Production of the 11.2.0.2.0 version on Mon Jan 16 19:41:57 2012

    Copyright (c) 1982, 2010, Oracle. All rights reserved.


    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL >



    User not ORACLE:

    [sample@test1 ~] $ export ORACLE_HOME=/u01/app/oracle/product/11.2.0.2/
    [sample@test1 ~] $ export ORACLE_SID = rman
    [sample@test1 ~] $ export PATH = $ORACLE_HOME/bin: $PATH
    [sample@test1 ~] $ sqlplus /.

    SQL * more: Production of the 11.2.0.2.0 version on Mon Jan 16 19:37:42 2012

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux error: 2: no such file or directory
    Process ID: 0
    Session IDs: serial number 0: 0


    Enter the user name:



    Thank you

    Make sure ORACLE_HOME is exactly the same between 2 environments: note that an end "/" is not necessary and that ending ' / ' could trigger ORA-01034.

  • Move from PT8.52 to PT8.53 due to functional database HRCS90: PS user in the browser connection error

    People,

    Hello. I've been installing HCM and Campus Solution 9.0 revision 5 with 8.53 PeopleTools.

    My OS is Oracle Linux 5 and database server Oracle 11 GR 1 material.

    Because functional data is written with 8.52 PeopleTools, I upgraded PT8.52 to PT8.53.

    Tuxedo Application Server boots with 8 process successfully.

    In browser: http://192.168.196.102:8000/psp/ps /? cmd = login, I connect using UserID PS and mypass but the error message as below:


    "An error has occurred. You can try to connect again. If your attampt fail, please contact your system administrator. »


    I followed the http://docs.oracle.com/cd/E37306_02/psft/acrobat/PeopleTools-8.53-Upgrade_02-2013.pdf document and
    have upgraded the instance database functional HRCS90 for 3 times manually. But still the same error of the browser connection PS user.

    I checked the application server log file server current file APPSRV_1219.LOG which indicates the error message as below:

    File:/VOB/PeopleTools/src/pssys/prsmget.cpp a SQL error.
    Stmt #: 'MSG_EVENT_DATALONG': invalid identifier.
    SQL stmt failed:
    Select EVENET_NAME, HTML_FIELD_NAME, MSG_EVENT_TYPE, MSG_EVENT_DATALOG, FIELD_EVENT_TYPE
    of PSMSGEVENTS
    where PORTAL_NAME =: 1
    and PORTAL_OBJNAME =: 2

    The SQL error in the log file above current application server means that the functional database is not being upgraded correctly.

    My question is:

    I need to upgrade the functional database to help change Assistant. Can I use the functional basis upgrade HRCS90 to rerun upgrade scripts?
    Or: what do I have to install a fresh funstional HRCS90 database to run scripts to upgrade the help Wizard to change?


    Thank you.

    I'll try to describe the procedure for the last time.

    Start with a new installation of HRC9.0, which is delivered to 8.52 PeopleTools.

    In PeopleTools installation manual, started 7-2 task: update database to the latest version of PeopleTools, page 188:

    http://docs.Oracle.com/CD/E38921_01/PSFT/Acrobat/PeopleTools_8.53_Installation_for_Oracle.PDF

    skip the task 7-2-1: data cleanup, this is for PT8.47 and low.

    Task 7-2-3: the PeopleTools Tables system update:

    run the following scripts:

    rel853n. SQL or rel853un.sql if you install a Unicode database

    Grant.SQL

    Encrypt.DMS

    msgtlsupg. DMS

    storeddl. DMS

    Follow the steps in Task 7-2-4: update of database objects PeopleTools

    Follow the steps in Task 7-2-5: updated PeopleTools multilingual of objects (if you are installing a multilingual application)

    Follow the steps in Task 7-2-6: remove obsolete PeopleTools Database Objects

    Follow the steps in Task 7-2-8: change in the PeopleTools Tables

    Follow the steps in Task 7-2-9: migration of records of new storage space

    Follow the steps in task 02/07/10: update of system data PeopleTools

    Follow the steps of work 02/07/10: update of PeopleTools system data:

    skip the task 02/07/11: running of the PeopleTools Conversions

    skip the task 7-3: the additional Scripts running Data Mover

    skip the task 7-4: installation of a system of PeopleTools multilingual database

    Follow the steps in Task 7-5: VERSION running engine Application program

    Follow the steps in the 7-6 mission: running reports SQR

    skip the task 7-7: verification of the database

    Follow the steps in Task 7-8: SETSPACE running. SQR

    Follow the steps in Task 7-9: execution of Alter Audit

    And now your PeopleSoft PeopleTools 8.53 application.

    It may seem like a lot, but it should not take you more than a couple of hours instead of weeks.

    Halin

  • Several sessions of users for the purposes of the ADF

    Hi all

    We have an ADF application with 3-4 pages starting with a login screen.

    Suppose we have two users, user1 and user2. In the same system but different browser windows, when two users lorsque deux utilisateurs sont are connected, only User2 session is active. Even though user1 connected first and is able to perform transactions, when User2 connects, the User1 session is too written by user2 (user1 window now shows the information of User2). I saw the URL of the window of the User1 that now changes the URL User2 (parameter _adf.ctrl - state of User2 is displayed in browser User1)

    How to overcome this? We have a requirement to be able to open multiple user sessions.

    We use JDeveloper 11.1.2.3.0 and browsers are IE 8, IE9 and chrome.

    Thank you

    Deepti

    Hello

    just to be clear, we are technically on the same page here:

    ExternalContext ectx is FacesContext.getCurrentInstance () .getExternalContext ();.

    HttpSession httpSession = (HttpSession) ectx.getSession (true);

    ... does not use a single line of ADF but JavaServer Faces only. The code above is intended to access the HTTP application user logon session object. It depends on the window only if the window is in a separate session. I suggest you use PageFlowScope instead of session scope (Yes there are to the unlimited workflow as well).

    You access it from AdfFacesContext.getCurrentInstance () .getPageFlowScope)

    AdfFacesContext (ADF RichClient API 11.1.2.4.0 - SNAPSHOT API)

    Frank

  • Attributes to Active Directory user in the ADF code

    Jdev Version: 11.1.1.7.0

    We are required to remove e-mail from Active Directory for the logged in user information and send an automatic e-mail. Security context exposes ADF LDAP user attributes?

    Is it possible to get the attributes of user without making a LDAP search again and instead of the connected in the context of the user?

    AFAIK you hand o get the attributes.

    This blog could help anything on the Fusion Middleware: retrieve the profile identity store modules

    And this blog Oracle Fusion Middleware security: two or three things you need to know about the API of the user role /

    Timo

  • Use the ADF security to grant access to the application

    Hello

    One of our customers has to move their forms ADF application. The customer also wants to implement SSO using Kerberos. I could implement the ADF to the application security.

    The Application has two types of users whose information is stored in the USERS table in the database-

    1. Users of the application (not a domain user)
    2. Active Directory/domain users.

    What the clients want to do, is that if the user belongs to the domain, while the user must be able to view the home page directly. If the user is not a domain user, then the login page must be displayed and the user must be authenticated before the redirection to the home page.

    The first part, i.e. to implement SSO for users in domain works. But I don't know exactly how to proceed with the Application users.

    Can I create a custom authenticator that connects to the database and authenticate users of the Application?

    Any suggestion and pointers will be helpful.

    Thanks and greetings

    Tinto

    You probably don't need to create the custom authenticator.

    WLS provides already ReadOnlySQLAuthenticator: Configuration of authentication - 11 g Release 1 (10.3.6) providers

    Define "control indicator" for two suppliers of "SUFFICIENT".

    I guess within the Web.XML you have something like:

    CLIENT-CERT

    ?

    WLS supports several methods of connection in the element for you can use something like:

    CLIENT-CERT, FORM

    Login

    errorPage

    (no doubt simpler is to configure the security of form based in the ADF Security Assistant and then manually add CLIENT-CERT in the web.xml file)

    Dario

  • How the management of exceptions in the adf?

    Hi user,

    IAM using jdeveloper 11.1.2.3.0

    I have a requirement how to make the exception handling in the adf

    like Ex: unique constraint violated error can be see in the form of personalized messages

    Hi Sandeep,

    You can use the following link, I think it will be useful for you

    ADF: Custom Error Handler to display custom user messages | The ADF tutorials

  • v$ session - request of exact same different results when it is run with the same user on the same database with the same client application on 2 different PC

    Hello

    Oracle 11.2.0.3

    We have a strange situation - using the pl/sql developer and a pc gui tool when query present at the session of $ v session INACTIVE for a sid given - also on sqlplus for INACTIVE same sid but on

    Another exact same request of pc shows as ACTIVE.

    What happens repeatedly with different sid.

    I thought session $ v must show the same SID as active or inactive desktop client as a database table.

    Someone at - he seen this before?

    Thank you

    When you ask anything about the database, your session will be activated as it does 'something' on the database. For example, when the user queries:

    select status from v$session where osuser = 'HIMSELF_USERNAME';
    

    It questions its own session which is 'something' on the database. So, just try it, run a query on the database using your own username as this, you will have the same results. There is no error on the data dictionary, please stop trying to think that it is a bug.

    Kind regards.

  • Users on the application and the database

    Hi all

    Today a doubt struck in mind, same as I do my own research it doesn't. Well, my doubt is

    Gmail, facebook, OTN as these applications will undergo millions of uses, is what it means at the level of the database as we have same count of users...?

    How it will work. could you please let me know...

    Thank you

    Dedicated server means that there will be a dedicated process running on the server for each session opened by a customer.  The client application servers can open hundreds or thousands of connections at the base, all having the same shared database user to Oracle, to serve users accessing the site.  You would not channel all users through a single database connection and a single server process.

    Justin

  • session per user = 1 does not work in the database?

    Dear all,

    A profile has been configured on the database with the parameter session_per_user = 1 , but it does not work on the database.

    the user can make n number of sessions to the database. What could be the reason profile does not work?
    Please sugeest solution...

    Kind regards
    Rajesh

    Published by: Rajesh.Rathod on March 17, 2009 03:34

    You must change resource_limit true
    Search for details of text fo in metalink Note 745752.1

  • "Kick" application user after the password has been changed.

    Version of Application Express 4.2.4.00.08 apex


    I would like to "kick" current application user once the password has been changed in the database.

    I've customized auth which takes the database password.

    Currently if someone enters my application > after that I change his password > it is still able to go through the application and present things

    I want to make is that after I change his password for the current user gets "expelled" from the app to the login screen.

    Para wrote:

    Version of apex Application Express 4.2.4.00.08

    I would like to "kick" current application user once the password has been changed in the database.

    I've customized auth which takes the database password.

    Currently if someone enters my application > after I have change password > it is still able to go through the application and present things

    I want to make is that after I change his password for the current user gets "expelled" from the app to the login screen.

    Capture logon after user/password hash and store it in a part of the application. Create a On Load: before header process application which runs under condition if the hash of password/user session is different from the one currently in the database, the call apex_custom_auth.logout . This will disconnect the user on the first page is rendered after the password is changed, but will (in most cases), save the changes before you do.

  • System to grant to the user of the application views

    Hi all

    11.2.0.1

    Batch process Tha night encounter problem blocking where their generations report affected and delayed.

    I give this command operators, so that they will kill or stop the process that keeps the lock:

    SELECT TO_CHAR ("sysdate, ' HH24:MI:SS of MON-DD-YYYY"). ' The user '. S1. UserName | | » @'|| S1.machine | | "(SID = ' | s1.sid |)

    ') with the statement: ' | sqlt2.sql_text | |' if it blocks the SQL statement ' | S2. UserName | | » @'|| S2.machine |

    ' (SID ='|) S2.SID | |') Blocked-> SQL ' | sqlt1.sql_text AS blocking_status

    GV $ lock l1, Gv$ session s1, Gv$ lock Gv$ session s2, l2, Gv$ sqlt2, Gv sql $ sql sqlt1

    WHERE s1.sid = l1.sid

    AND s2.sid = l2.sid

    AND sqlt1.sql_id = s2.sql_id

    AND sqlt2.sql_id = s1.prev_sql_id

    AND l1. BLOCK = 1

    AND l2.request > 0

    AND l1.id1 = l2.id1

    AND l2.id2 = l2.id2;

    But this needs system views and you can not run the app user ID.

    On the security audit decision or without having violated, what I have to grant select to all system views accessed by this script to the user of the application, then create synonyms it 1 by 1?

    Or is it a one-time grant for all views of the system? So I is not need to type a plus creating synonyms so that I can't miss any?



    Thank you

    Petra k.

    f55237a7-2c38-4DB3-a7a3-1d77256f0730 wrote:

    Hi all

    11.2.0.1

    Process batch Tha night meets lock problem where their generations report interrupted.

    I give this command operators, so that they will kill or stop the process that keeps the lock:

    SELECT TO_CHAR ("sysdate, ' HH24:MI:SS of MON-DD-YYYY"). ' The user '. S1. UserName | | » @'|| S1.machine | | "(SID = ' | s1.sid |)

    ') with the statement: ' | sqlt2.sql_text | |' if it blocks the SQL statement ' | S2. UserName | | » @'|| S2.machine |

    ' (SID ='|) S2.SID | |') blocked SQL-> ' | sqlt1.sql_text AS blocking_status

    GV $ lock l1, Gv$ session s1, Gv$ lock Gv$ session s2, l2, Gv$ sqlt2, Gv sql $ sql sqlt1

    WHERE s1.sid = l1.sid

    AND s2.sid = l2.sid

    AND sqlt1.sql_id = s2.sql_id

    AND sqlt2.sql_id = s1.prev_sql_id

    AND l1. BLOCK = 1

    AND l2.request > 0

    AND l1.id1 = l2.id1

    AND l2.id2 = l2.id2;

    But this needs system views and you can not run the app user ID.

    In view of the security check or without having violated, what I give select all system views accessed by this script to the user of the application, and then create the names it 1 by 1?

    Or is it a one-time grant for all views of the system? So I no need to type one by one so that I can't miss any?

    Thank you

    Petra k.

    While approach posted will work subsequently, it's like making three left turns around the block;

    instead of making a single term of law.

    Place the SQL desired in a procedure (FIND_LOCKER) owned by the extremely privileged schema; then do as below

    GRANT EXECUTE ON FIND_LOCKER TO OPERATOR_USER;

  • Database contains the session after having disconnected the DB!

    Dear friends,

    I use Oracle10g database (10.2.0.4) than our production server to AIX 6.1. Recently, we buy
    an application that is used for a banking module. The username "INCHEQS" application.

    Now the problem is, when we are connecting through this user from the client end then,
    many users logged on, even if the users are not logged. for example, if a disconnection from the user
    Since his session but it connected session always in my database.

    Please see the output:

    SQL > select count (*) in the session $ v where username = "INCHEQS";

    COUNT (*)
    ----------
    100

    SQL > select username, status from v$ session where username like ' INCHEQS %;

    STATUS OF USER NAME
    ------------------------------ --------
    IDLE INCHEQS
    IDLE INCHEQS
    IDLE INCHEQS
    IDLE INCHEQS
    IDLE INCHEQS
    IDLE INCHEQS
    .......................................
    .......................................

    100 selected lines.


    In the output above of my production database, all users above are not connected, but the
    continuous session on the database. Now, how can I solve the problem. Is there a partners
    Oracle parameter (rather than RESOURCE_LIMT) to remove all INACTIVE users above after awhile.
    Here, I mentioned that it is not possible to activate the 'RESOURCE_LIMIT' parameter in my database.
    Edited by: shipon_97 26 August 2010 14:04

    Hello

    Create a new profile with a few seconds idle (based on your observation and discussion with the owner of the application) and send it back to the user.

    Anand

  • What will happen if immediate restore session / cancel stop of the database?

    I have a long session restoration after I killed him. Session state is 'DEAD' and when I check the transaction of $ v, it will take nearly 24 hours to a complete restoration. We can not wait if a long time because we have another job dependencies need restoration must be completed as soon as possible. In the end, we plan to stop immediately. This will help? What will happen to the restore session if we issue immediate shutdown or shutdown abort? Is the restoration completed successfully?

    If you SHUTDOWN ABORT when there are very many active transactions or be restored, then the default FAST_START_PARALLEL_ROLLBACK that occurs at the start of subsequent proceedings in fact means that the restore is performed more quickly.
    However, if it is a large single transaction as a DELETION on a table with an Index, it is best to disable FAST_START_PARALLEL_ROLLBACK before restarting the Instance immediately after a SHUTDOWN ABORT. Parallel cancellation of a single important transaction with an Index can be slower!

    FAST_START_PARALLEL_ROLLBACK is a parameter instance that LOW as default (IE a value of 2 x CPU_COUNT) and can be set to HIGH or FALSE.

    Note: If you SHUTDOWN ABORT and START the database, Oracle has to do a Rollforward of Redo Logs (for data blocks that have not been updated) before that, an OPEN. It is generally a very fast operation. Uncomitted transaction cancellation is an operation delayed - this means that the restore is initiated by SMON or parallel slaves after the database is OPEN. If a block containing a row that has been updated and not committed is referenced by a database session after OPENING, but before it has been restored, made Oracle a rollback accelerated this line of the block and then continues to the restoration of other lines in the background.

    Thus, if the transaction had been on the Table 'A' and the database is SHUTDOWN ABORT and commissioning, users can still access and update of all other tables other than table 'A', while the transaction is put in place, in the background, after the OPENING.

    Hemant K Collette

  • Error #2041: File that a single browsing session can be performed at the time

    Hello
    I posted this question before, but so far he went unanswered. I would appreciate any help on this:

    My application allows user to do two loads of single or multiple files. There are buttons for each type. Whether you tap on an instance of the FileReference or FileReference class is created.

    It works fine only would be - this one type of successive additions: only of files only single or multiple files. BUT every time that I go from one type to another (I start downloading single files and then press the button to download several ones) I get the following error:

    Error #2041: The file that a single browsing session can be performed at the time.

    How close or delete file browsing sessions? The complete event doesn't do much of anything on this topic.

    Thank you very much.

    Hi Temudzin,

    Thanks for your suggestion and thanks for looking into this... It works the way you suggested. However after some troubleshooting I discovered that you can do the single and multiple downloads without having to charge the flash.

    First of all, once you start download again (or several), you must create a new instance of the class appropriate download (FileReference or FileReferenceList respectively). You will need to make sure that when the downloaded files are complete do you this null instance. This command removes the browsing sessions open.

    With the class instance done upload null the next time that you want to download something, you're basically starting from scratch - and that's why you create a new instance of with any new attempt to download download.

    This is necessary only if you're allowing users to either single or multiple downloads at the same time. If you stick to a single type of downloads (single file or multiple files at any time) you can simply declare the instance of class once and do not need to make null at the end of the download process.

    OK, take care and thank you.

    m.

Maybe you are looking for

  • How to merge bookmarks after 'sync '.

    I ran the sync my laptop and desktop, but in the view of bookmarks, I have two lists of bookmarks.I would now like to merge the two together, don't mind duplicates as can sort through them myself.I tried a program called "bookmark_merger.exe", but th

  • Why send is download 250 messages every time I check for new messages?

    Since the upgrade to iOS 9 on my iPad and iPhone I'm drowning in old email!  My POP with Bell (sympatico) account has eight years of my emails on their server. When I check for new mail, my devices download 250 messages each time.  I tried various op

  • Icons randomly change

    Hello Anyone experienced this? Look at the screenshot... A few days ago the phone app has changed, and even today, same thing happened with Chrome. However, the original icons are shown in the app drawer... Can anyone help? Someone from Motorola? Tha

  • Windows Gadgets

    Hello.  I recently had to charge my cell phone and when I came back to normal, some of my gadgets were missing.  I can't do them to Microsoft that they have abandoned their.  I'm looking for one in particular;  the report on the market.  It has arrow

  • Adobe Acrobat DC - REGEDIT to bDisableSharePointFeatures does not

    I tried to put the reg entry that is provided in the following document: integration of Services for bDisableSharePointFeaturesI tried on two machines, the pop - ups Check out still work to a SharePoint library that is being mapped.  The two machines