ALTER session with ADF App statement

Hello:

11.1.2.3 Jdev
RedHat 5.8
Oracle db 11.2.0.3

When you use a Web of Fusion ADF application, what are the consequences if we issue the command of database:

ALTER session set time_zone = - 6; for a particular user

For example, if the session is passivated? The database session remains with request on passivation module? or weblogic failover?

Or will be session and users mix?

Thank you very much.

Hello

you don't have a 1:1 data association in web applications. If you need to change the database to a user session you will have to do for each request, which means that you override the method of prepareSession AM ADF BC database alter session statement. So to answer your questions

The database session remains with request on passivation module?

N °

or weblogic failover?

N °

Frank

Tags: Java

Similar Questions

  • Apex 5.0 and State of Session with mobile apps

    Hello

    How to display the value of the session state of page to the Apex 5 elements using a mobile application

    When I run the page, there is no toolbar down unlike the version 4.2

    Concerning

    Gus

    Hello Gus,

    When you are in the shared components, you should see a "Flashlight" icon in the toolbar (two icons to the icon to edit the Page xx). This "Find" popup has a tab "Sessions" and "Debug".

    Concerning

    Patrick

  • Several alter session and SQL * Net message from dblink in APEX

    Hello

    I have Apex 4.2.3 and I use Glassfish more listener of the Apex.

    Database is 11.2.0.4 under linux

    Looking for the session active database, I see that apex run several alter session with a lot of expectation as SQL * Net message from dblink the.

    Ex:

    ALTER session set NLS_TERRITORY = "AMERICA."

    call the query of disc elapsed to cpu count current lines

    ------- ------  -------- ---------- ---------- ---------- ----------  ----------

    Parse 58 0.00 0.00 0 0 0 0

    Run 58 0.06 3.53 267 58 0 0

    Fetch        0      0.00       0.00          0          0          0           0

    ------- ------  -------- ---------- ---------- ---------- ----------  ----------

    Total 116 0.06 3.53 267 58 0 0

    Chess in the library during parsing cache: 0

    The analysis of the user id: 277 (recursive depth: 1).

    Elapsed time are waiting on the following events:

    Event waited on times max wait for the Total WHEREAS

    ----------------------------------------   Waited  ----------  ------------

    SQL * Net message to dblink 174 0.00 0.00

    SQL * Net message from dblink 174 3.47 0.03

    ********************************************************************************


    Why he is doing a lot to change session? Why the wait is SQL * Net message from dblink the?

    We have recently to load a new language, but I'm not sure that this is the main problem.



    I think that you have the link db in the workspace schema and data requested by the Apex of this link. For example, it may be

    report which uses db link. Check dba_db_links or user_db_links for the existing links. Check if this link used by Apex.

  • 0xC000021A {fatal system error}, the initial session process or the process of the complete system in unexpected ways with the blocking state 0 x 00000000 (0xc0000034 0x001008ac) the system has been halted

    Hello! I got this message from malware (I clicked to delete) in surfing on firefox and after awhile the explorer.exe closes with an error. I try to open the Task Manager and it says explore cannot be found!
    I rebooted and then I got this message "0xC000021A {fatal system error}, the initial session process or the process of the complete system in unexpected ways with the blocking state 0 x 00000000 (0xc0000034 0x001008ac) the system has been halted" and can't get anywhere.
    I can't even go in safe mode, the same error messages appears.

    Hi James,

    You could try the Startup Repair to see if it solves the problem:

    http://Windows.Microsoft.com/en-us/Windows-Vista/startup-repair-frequently-asked-questions

    Chris
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • ALTER session statement when login

    Hello
    on the 11 G R2,.
    I want the util_3 to change user2 session right on the connection. How is that possible?

    I want to avoid the util_3 of issue:
    ALTER SESSION SET CURRENT_SCHEMA =USER2
    at each connection.

    Thanks for help.

    use
    run immediately "ALTER SESSION SET CURRENT_SCHEMA = SCOTT';"

  • ALTER session in cfquery statement

    Hello world

    Would it not possible to use the alter session in a query?
    I would like to do something like this:
    < cfquery >
    ALTER SESSION SET NLS_COMP = LINGUISTIC;
    ALTER SESSION SET NLS_SORT = GENERIC_BASELETTER;
    Select geo_indication in the eccgis where country_fk = 'PT' and geo_indication like "% O";
    < / cfquery >
    As good in sqlDeveloper (oracle, without cfquery...), the application gives an error in CF (of semicolumns?).
    Did anyone get an idea?

    Thanks in advance,
    Michel

    Thank you very much.

    It is now fixed:
    The sort order also has implications on the SEARCH mechanism
    Looking for Oxxxxxx you can't find Óbidos
    and now:
    Search do not look upcase and focus more.

    Michel

  • ALTER session set current_schema

    Hello

    We have multiple instances of the database (for example, MR01DEP, MR02DEP,...).

    Each instance is composed of more than stores (called schemas): for example, for MR01DEP, we have STORE1, Bank 2, 3, to MR02DEP we STORE5, STORE6,... and so on.

    Now, using developer PL/SQL, SQL Developer or even SQL Plus, when I connect to these databases, I connect using the user SUP_TMP (who has the privileges necessary for the actions that I have to do), and I have something like this:

    Conn SUP_TMP / < password > @STORE1 (I can connect like this and not with @MR01DEP; However, even @MR01DEP is correct).

    Today, all the tables are on these patterns (STORE1, STORE2,..), and when I connect with the SUP_TMP user, each time, at each meeting, I have to write:

    ALTER session set current_schema = STORE1, or

    ALTER session set current_schema = Bank 1

    At the beginning of every script that I have to run, I want to write a little routine so that I don't need every time to this «alter session set current_schema» statement

    If I connect with SUP_TMP / < password > @STORE1.

    so I see in the instance of v$, as the instance_name is (correct) MR01DEP.

    But I need to somehow get that banks '1', which I use when I connect to it (although, normally, I connect to a database, such as MR01DEP, but I'm specifying STORE1 in the connection string).

    So, in other words, I need that at the beginning of each script, to determine the current connection string I'm specifying after '@', and which is the current_schema.

    If I log in as SUP_TMP / < password > @STORE5, then I'll have something like immediate execution "alter session set current_schema = STORE5'."

    SUP_TMP user should be the I connect each time, but the current pattern of each script in each session, must come from the connection string.

    Is this possible?

    Thank you!

    I know, I specify the store, and it will automatically connect to the correct database (this is the case).

    No - NOT sure that connect you to the right base.

    As said ground that alias 'keep' is on the client and can be mapped to ANY DATABASE at all.

    Also - what you specify with is the DATABASE - this isn't a pattern.

    You're talking about two different things.

    You set the current schema - you connect to a database. TWO DIFFERENT THINGS.

    It may not even be a schema with the same name as the database.

    Do not use the same name for the databases and schemas. Oracle is NOT sql server.

    You can create a trigger AFTER the opening of SESSION to define the schema for you, but you must be able to know which schema must be defined.

  • ALTER session nls_date_format not retained

    Hello guys,.

    Here is the environment:

    Oracle 11.2.0.1 on Linux 64-bit RHEL DB

    Oracle 11 g 2 on Windows 2008 R2 32-bit client

    Our product works service (code generated in c ++) and the service opens 5 sessions of database and alter session set nls_date_format questions to HH24:MI:SS DD/MM/YYYY in each of them.

    But searching through the service logs, I see that select statements (to_char (date)) return date in format other than what has been defined via "alter session" i.e. they do not see the part and just JJ-LUN-AA. But the same select instructions out the date in the format of correct/expected (according to alter session statement).

    The problem is that we do an insert in a table taking the current system time and running to_date (< time system >). It is a failure with: ORA-01843: not one month valid. I understand that it must specify a format for the input string, the date system, but we do not and was not a problem for someone else.

    I'm also no disconnected sessions or reconnects.

    Customer Oracle NLS_LANG is: AMERICAN_AMERICA. UTF8.

    This problem occurs for one of our customers who use this product. All other clients do not encounter this problem, as this has been a long-standing code. I'm not saying that the code is perfect and looking at some of the SQLs, we rely on implicit conversion of data in Oracle instead of editing the SQL code, but this has never caused a problem to any other customer.

    I understand the hierarchy of setting NLS_DATE_FORMAT i.e. the database, register of operating system of the customer, the customer Oracle (alter session) and finally to_date/to_char functions.

    It seems that the session format game becomes overloaded as when they restart the service in our product everything is back to normal until a couple of days, when queries in the service connects begin to show the date incorrect without time portion and just JJ-LUN-AA.

    Any help would be appreciated as I had read a lot on the internet with no evidence outside this site including our customer:

    ttp://StackOverflow.com/questions/15396241/CX-Oracle-ora-01843-not-a-valid-month-with-Unicode-parameter h

    Thank you

    Bharath

    Bharath3 wrote:

    ...

    My question is, why the session loses the settings of NLS_DATE when it doesn't happen to anyone else? I think that the format is getting replaced in the sessions but how do I know that? How to find environmental changes to current public meetings?

    Maybe you have a connection pool if every session is used by different... hmm applications or threads. Even if you issue a command of nls alter at the start of the session, some processes could change this setting later. This is why it is best to not depend on any parameter of session happened when the connection was established.

    Best solution: just use the correct format inside the to_Char conversion. Or issue a command to alter session immediately before running the selection.

  • 'ALTER SESSION SET CURRENT_SCHEMA' does not work

    Hello

    in my JAVA application, I need to change a user's session so that it gets access to the tables that are created by the user 'myUser' (see code below).

    The code below shows how I tried to implement with JAVA:

    ---------------------------------------------------------------------------------------------------------
    Statement stmtSchema = con.createStatement ();
    String sql = "ALTER SESSION SET CURRENT_SCHEMA = myUser;"
    check int = stmtSchema.executeUpdate (sql);
    ---------------------------------------------------------------------------------------------------------

    There is no exception later when running the program, but it seems that the SQL in JAVA command will have no effect because when the program tries a SELECT statement after the session I get an exception:

    Java.Sql.SqlException ora-00942: table or view does not exist

    This means that the current_schema has not yet changed.

    When I tried the same command with sqlplus, it works fine.

    Why it does not work with JDBC?

    We use 8.1.3 of Oracle and Oracle 10g Release 2.

    Hello
    just a validation test. You guarantee that the alter session command and the select statement is belonging to the same connection object?
    If the connection object is the same you can post a simple test cases for further investigation?
    Ciao,.
    Giovanni

  • SlateBookx2: I closed my session with wrong password and I can connect is no longer

    Hey,.

    I blocked my Slatebook session with my usual password before you turn it off. I must have typed wrong twice. Earlier this afternoon, I went from the Tablet, entered the password, and the display shows "wrong password". I've tried dozens of variants (including the cap lock), nothing works.

    Is there a way to reset everything, even if that means reformatting of the Tablet?

    Any suggestion is appreciated.

    Thank you

    Hi Sapiens,

    I would off the tablet of the keyboard if you are only working with the tablet. Try now the power button and selecting "Power Off" when it appears on the screen. Once the unit is off, follow these instructions to reset the unit to the power off state: factory reset instructions.

    Please mark this message as the accepted answer if I solved it your problem.

    Thank you

    hsimo

  • SSH session with QNX momentics-&gt; cannot run - permission denied

    Hello everyone I am new to this world to develop a blackberry and I have a question about ssh, it can be quite simple, but a simple tip could save me from going crazy.

    When I open an ssh session with my blackberry and try to execute statements such as ping, it is said:

    Ping $
    SH: ping: cannot run - permission denied

    So my question is: is there a way to access these permissions and run the command?

    I use qnx momentics, a real device and access the ssh by qnx momentics option launch a ssh session.

    I'd appreciate any advice or tips or whatever it is that one can say to help me, thanks in advance

    When you connect via SSH, logged as "devuser". This user has limited permissions... basically these permissions that would be a regular application.

    To run the 'ping', you need a higher level of access. (Check permissions and ownership with "ls-l/usr/bin/ping") This isn't an option, so the answer is no, there is no way to do it.

  • I have CC lightroom and Photoshop subscription but after the expiry of the insralling on my laptop the app States of trial CC - there was a previous trial on this pc

    have CC lightroom and Photoshop subscription but after the expiration of the insralling on my laptop the app States of trial CC - there was a previous trial on this pc

    Hello

    Please refer stop creative Cloud 2015 to return to the mode of trial

    See also problem with CC Photoshop licenses to rename the hosts file if necessary

    It could be useful!

    Kind regards

    Shelly

  • HTTP Session with module GemFire-CS does not work if the session stickiness is not enabled and with spring security

    Hi I have a configured tcServer 2 (Server4, Server5 jvmRoute names) with module gemfire http session, listening to the same gemfire Locator service both with the same name in the region - gemfire_modules_sessions and region attribute id

    I also configured vFabric Web server with Http balancer as a front-end for the HTTP request without activating the rigidity of the session as shown below: I couldn't realize the no session affinity

    <Proxy balancer://tpa-balancer>
         BalancerMember http://localhost:8087 route=Server4 loadfactor=1
         BalancerMember http://localhost:8088 route=Server5 loadfactor=1
         ProxySet lbmethod=bybusyness scolonpathdelim=On
    </Proxy>
    ProxyPass /insurance balancer://tpa-balancer/insurance
    ProxyPassReverse /insurance http://localhost:8087/insurance
    ProxyPassReverse /insurance http://localhost:8088/insurance
    
    

    and I'm using spring security 3.0 for authentication and the flow of the web page is as shown below:

    page connection - "login.htm" and once submitted, it uses ' / j_spring_security_check ' and after successful authentication app redirects to ' / http://www.sigling.is/IMO/imofishing/home.htm '.

    Initially when hits 'login.htm' and anonymousUser user logon is id: 6B21CB15838B2AC1E46F66C0CC7272BE. Server5 and when the form is sent to /j_spring_security_check that the same session id is used and after authentication httpsessionsecuritycontextrepository stores SecurityContext in HttpSession as shown below:

    [09/12/2012-02:00:14][DEBUG][HttpSessionSecurityContextRepository]SecurityContext stored to HttpSession: 
    'org.springframework.security.core.context.SecurityContextImpl@b70b1ef5: 
    Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@b70b1ef5: 
    Principal: com.csc.ace.insurance.security.vo.UserProfile@e26fa325: Username: [email protected]; P
    assword: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: 
    true; 
    Granted Authorities: ADMINISTRATOR,CREATE_CUSTOMER,CREATE_USER_ACCT,DELETE_CUSTOMER,DELETE_USER_ACCT,
    MODIFY_CUSTOMER, MODIFY_USER_ACCT,VIEW_CLAIMS,VIEW_CUSTOMER,VIEW_PAYMENTS,VIEW_POLICIES; 
    Credentials: [PROTECTED]; 
    Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@255f8: 
    RemoteIpAddress: 127.0.0.1; SessionId: 6B21CB15838B2AC1E46F66C0CC7272BE.Server5; 
    Granted Authorities: ADMINISTRATOR, CREATE_CUSTOMER, CREATE_USER_ACCT, DELETE_CUSTOMER, DELETE_USER_ACCT, 
    MODIFY_CUSTOMER, MODIFY_USER_ACCT, VIEW_CLAIMS, VIEW_CUSTOMER, VIEW_PAYMENTS, VIEW_POLICIES'
    

    and when the redirect to http://www.sigling.is/IMO/imofishing/home.htm, it shows HttpSessionSecurityContextRepository: HttpSession returned null for SPRING_SECURITY_CONTEXT object

    com.gemstone.gemfire.modules.session.catalina.DeltaSessionFacade creates a new session with the session id: 6B21CB15838B2AC1E46F66C0CC7272BE. Server4, ideally redirect to the home page go to another server. I have attached the full log file

    I believed that session affinity is not needed when the GemFire Session module is used without local cache and I could see B21CB15838B2AC1E46F66C0CC7272BE. Server5 entry is created in the gemfire_modules_sessions region.

    So why is - this HttpSessionSecurityContextRepository could not get the gemfire session the region object using the id: 6B21CB15838B2AC1E46F66C0CC7272BE. Server5 and directs gemfire DeltaSessionFacade to create a new session

    [09/12/2012-02:00:14][DEBUG][FilterChainProxy]Converted URL to lowercase, from: '/home.htm'; to: '/home.htm'
    [09/12/2012-02:00:14][DEBUG][FilterChainProxy]Candidate is: '/home.htm'; pattern is /**; matched=true
    [09/12/2012-02:00:14][DEBUG][FilterChainProxy]/home.htm at position 1 of 7 in additional filter chain; 
    firing Filter: 'SecurityContextPersistenceFilter'
    [09/12/2012-02:00:14][DEBUG][HttpSessionSecurityContextRepository]No SecurityContext was available from the 
    HttpSession: com.gemstone.gemfire.modules.session.catalina.DeltaSessionFacade@5cca548b. 
    A new one will be created.
    [09/12/2012-02:00:14][DEBUG][FilterChainProxy]/home.htm at position 2 of 7 in additional filter chain; 
    firing Filter: 'UsernamePasswordAuthenticationFilter'
    [09/12/2012-02:00:14][DEBUG][FilterChainProxy]/home.htm at position 3 of 7 in additional filter chain; 
    firing Filter: 'AnonymousAuthenticationFilter'
    [09/12/2012-02:00:14][DEBUG][AnonymousAuthenticationFilter]
    Populated SecurityContextHolder with anonymous token: 
    'org.springframework.security.authentication.AnonymousAuthenticationToken@9054b1a2: 
    Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; 
    Details: org.springframework.security.web.authentication.WebAuthenticationDetails@1c07a: 
    RemoteIpAddress: 127.0.0.1; SessionId: 6B21CB15838B2AC1E46F66C0CC7272BE.Server4; 
    Granted Authorities: ROLE_ANONYMOUS'
    

    Thanks for the additional info.

    Although, in theory, by using sessions not may work for some applications, you will have less sessions unexpected behavior. Any page you visit will result in 10 seconds of additional applications, go to the server. If they are not sticky and bounce between servers, the session will constantly be failed back between the servers. A 'problem' with modern browsers is that they appear simultaneous requests, so you can have the same session failover, at the same time on different servers, that wouldn't be good.

    I'd be curious to know why you choose to have sessions in the first place.

    Nevertheless, it still seems like there is a problem when you have enabled, sessions, so I'll continue to watch it.

    -Jens

  • Inverse of command 'ALTER SESSION SET.

    Hello

    I have a READER user and when I connected with this user that I can set the current session settings such as

    alter SESSION set smtp_out_server = '123.345.134.123';
    
    

    or

    alter session force parallel query parallel N;
    
    

    If it would be sysdba or any other user with grant on parameter $ v we could use:

    select value from v$parameter where name = 'smtp_out_server'
    
    

    Is it possible that I can get the current session settings without going through subsidies on the parameter $ v?

    PS: it seems strange, that we have the setter (alter session set), but haven't Get accessor.

    Maybe the function dbms_utility.get_parameter_value, assuming that you have the privileges.

  • including the extension in jdeveloper with ADF Faces?

    Hello

    We have an application with ADF Faces components that must be migrated to OracleAS weblogic 11 g Server (10.3.5).

    We strive to upgrade the application under jdeveloper 11.1.1.5.0.  I have 3 questions.

    1. which the ADF jdeveloper extension should download us for this purpose?

    We already seem to have the extensions 'Fusion Web Applications (ADF)' and ' Applications Java Desktop (ADF) "."

    2. during the upgrade, we were given an option to upgrade the ADF Faces in Trinidad, when this option has been chosen, we got a "unexpected mistake."

    is it necessary to go to TRINIDAD to be able to deploy successfully on weblogic 10.3.5? If Yes, is the extension for Jdeveloper MAVEN?

    3. in weblogic server, I understand, we need the extension JRF to support the length of the ADF, is there anything else that we need on weblogic server that the adf works?

    Thank you in advance.

    If the origins of your application of jdev 10g and runs on the OAS, you can migrate to Trinidad. No extension is required for this as the required libraries are already there. Maven is useless and will not work for 11.1.1.5.0. First version with the full support of MAVEN is 12 c.

    If you get an unexpected error during the migration from the old app to 11 g, you should try to find out

    (1) projects that is causing the error

    (2) file that is causing the error

    and work from there. There are some configurations that cannot be migrated (check the release notes), however they should not lead to unexpected errors. However, check the release notes.

    If you don't find anything and cannot pass through the error, you must open a SR with support.oracle.com.

    Next question is why migrate to 11.1.1.5.0 which is already obsolete.

    Timo

Maybe you are looking for