Automatic setup of Oracle session parameter nls_sort?

Hi,
Is there a way to automatically set up the Oracle session parameter when connecting to Oracle?
Much like the .profile file does when logging into Linux.
The session parameter in question is nls_sort. It seems the only way to set nls_sort to BINARY_CI
is to invoke the command after connection:
alter session set nls_sort = 'BINARY_CI'.
But if I am using third party jdbc connection that does not allow the insertion of the alter session command,
I am out of luck. I cannot run the sort using case insensitive mode.
Is there any other alternative that would enable BINARY_CI.
I tried to put it in initXXX.ora, but it did not work.
I appreciate the replies and helps.
Andrew K

user643072 wrote:
Is there any other alternative that would enable BINARY_CI.
I tried to put it in initXXX.ora, but it did not work.That's maybe because NLS_SORT is derived from NLS_LANGUAGE which is itself derived from NLS_LANG, client setting env variable.
That means, to avoid to use a trigger, and to take in account your init.ora setting, you may need to change the client local settings.
What is the NLS_LANG value of the client ?
Nicolas.
PS: sorry, didn't know what Werner explained earlier : "...because JDBC ignores NLS_LANG settings."
Edited by: N. Gasparotto on Jun 2, 2009 9:33 PM

Similar Messages

  • Old Oracle Session with Tomcat is not kiiling automatically

    Hi,
    I am facing a problem of increasing inactive oracle sessions with tomcat, Old Oracle sessions with tomcat are visible with new one.
    if somebaody did not restarted tomcat gracefully, then does Oracle keep the session connected or is there any way that whenever any one restarted tomcat abnormally, Oracle session can be killed.
    I had restart the database to kill session.

    Could you please tell me that where do i set this parameter in parameter file or sql net file and what is the recommended value, do you have any document on this.
    Another thing tomcat is in other server machine and my database is in different server machine, killing process in tomcat server machine manually may not kill linux process on oracle database machine and therefore oracle sessions are still there.
    Is it possible?
    Edited by: user605066 on 28-Aug-2008 04:59

  • What is the relationship between Process and Session parameter in Oracle

    Hi All
    I ran into a problem
    "ORA-00020: maximum number of processes (150) exceeded " on the other day and I want to fix this temporary by increase the process by some number like 200.
    Someone suggesting the syntax to fix my problem then the database must restart after running this command.
    alter system set processes=200 scope=spfile;
    However, I check the v$Paramenter view I see 2 values I believe they go together are
    Processes: 150
    Sessions:170.
    Here are my questions:
    1. "alter system set processes=200 scope=spfile;" is the correct way to increase the max Processes?
    2. Do I have change the number of Sessions after changing the number of Processes?
    3. Is there other way to increase the processes number without reboot the Oracle database?
    Regards,
    Jdang

    According to the Oracle version# Reference manual which documents the database parameters sessions is set to 1.1 * process + 5 using the 10gR2 version.
    Basically an Oracle process cooresponds to an OS process that performs the actual work for the session.
    An Oracle session is a collection of memory structure entries that identifies and keeps track of what is being done for a client of the Oracle database.
    Sometimes a single background process will support multiple sessions even in dedicated server mode such as when recursive SQL is performed to support the DML statement being done in the session.
    PS - you should consider increasing processes first and only increase sessions if you still have an issue.
    HTH -- Mark D Powell --
    Message was edited by: mdp add PS
    mpowel01

  • Error: Missing initial value for session parameter

    Hi,
    I'm facing a problem while running the ETL process for Complete 11.5.10 Execution Plan in DAC Client. Some tasks are getting failed beacuse of the following error:-
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: VAR_27026 [Error: Missing initial value for session parameter:[$DBConnection_OLAP].].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6270 [Error: Variable parameter expansion error.].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6163 [Error initializing variables and parameters for the paritition.].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6226 [ERROR:  Failed to initialize session [SDE_ORA_Product_Category_Derive_Full]].
    ERROR : LM_36320 [Mon Nov 19 21:02:08 2007] : (2108|2632) Session task instance [SDE_ORA_Product_Category_Derive_Full]: Execution failed.
    When i checked the parameter file i can see the value assigned to the $DBConnection_OLAP. The same tasks ran successfully when i ran the ETL process for Complete 11.5.10 for the first time. I did not change anything after that and also all these are came built-in with the installation of Oracle BI Applications.
    Please anyone give me an idea what is causing the problem.
    Thanks,

    in DAC > Run History > Task Details, query
    Name = SDE_ORA_Product_Category_Temporary
    Open Status Description, look for string -lpf, the file after it is the actual parameter file DAC send to INFA server. E.g
    -lpf D:\DACTOPUS\Informatica\parameters\SDE_ORAR12_Adaptor.SDE_ORA_Product_Category_Temporary.txt
    Open the parameter file, most likely the [session_name] does not match with SDE_ORA_Product_Category_Derive_Full or some parameters are missing.

  • How to display current session parameter value

    Hi,
    How can a db user know value of a session parameter, if he doen't have privilege to access v$parameter?
    SQL> conn hr/hr
    Connected.
    SQL> show parameter QUERY_REWRITE_ENABLED
    ORA-00942: table or view does not exist
    SQL> alter session set QUERY_REWRITE_ENABLED=true ;
    Session altered.
    -- how can the user HR know the value of QUERY_REWRITE_ENABLED

    You can code a PL/SQL function and grant only execute privilege to the user:
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> drop user admin cascade;
    User dropped.
    SQL> create user admin identified by admin;
    User created.
    SQL> grant create session, create procedure to admin;
    Grant succeeded.
    SQL> grant select on sys.v_$parameter to admin;
    Grant succeeded.
    SQL> connect admin/admin
    Connected.
    SQL> show user;
    USER is "ADMIN"
    SQL> create or replace function get_parm (p_pn in varchar2) return varchar2
      2  as
      3  l_val v$parameter.value%type;
      4  begin
      5   if ( UPPER(p_pn) = 'QUERY_REWRITE_ENABLED' )
      6   then
      7        execute immediate 'select value from v$parameter where name = :1 '
      8        into l_val using p_pn;
      9        return l_val;
    10   else
    11      raise_application_error(-20000,'Invalid parameter');
    12      return null;
    13   end if;
    14  end;
    15  /
    Function created.
    SQL> grant execute on get_parm to test;
    Grant succeeded.
    SQL> connect test/test
    Connected.
    SQL> show parameter query
    ORA-00942: table or view does not exist
    SQL> select admin.get_parm('query_rewrite_enabled') from dual;
    ADMIN.GET_PARM('QUERY_REWRITE_ENABLED')
    TRUE
    SQL> select admin.get_parm('compatible') from dual;
    select admin.get_parm('compatible') from dual
    ERROR at line 1:
    ORA-20000: Invalid parameter
    ORA-06512: at "ADMIN.GET_PARM", line 11

  • Sessions parameter

    hello,
    I've installed Oracle 11gR2 to Linux and set sessions parameter to 300.
    But Still sessions parameter value is 322..
    Thanks

    Hi,
    What's set your processes parameter?
    Anyway, this thread may help you.
    <<11G XE sessions parameter
    Regards,

  • Need help resetting the SESSIONS parameter

    Hi Folks,
    Environment: Oracle 10g Rel 2
    I am trying to reduce the number of sessions to the database as follows
    *# Snap shot of existing values*
    show parameters session;
    show parameters processes;
    show parameters transactions;
    sessions     integer  170
    processes    integer  150
    transactions integer  187*# Modifying the SESSION parameter value*
    alter system set sessions=3 scope=spfile;*# Bounce the instance*
    shutdown immediate; *# Startup the instance*
    startup;*# Verify if the new value took effect*
    show parameters session;
    Output: sessions integer     170*# Check if the new value exists in spfile*
    select NAME||','||VALUE||','||DISPLAY_VALUE||','||ISSPECIFIED
    from v$spparameter
    where NAME like 'session%'
    Output: sessions,3,3,TRUE*# Verify, if the database was started with the spfile*
    SELECT DECODE(value, NULL, 'PFILE', 'SPFILE') "Init File Type"
           FROM sys.v_$parameter WHERE name = 'spfile'
    Output:
    Init F
    SPFILEAny ideas as to why the SESSIONS parameter would not take effect?
    Thanks in advance
    rogers42

    The sessions parameter is derived from the processes parameter, and in most cases there should be no reason to set it, and leave it untouched.
    Setting sessions to 3 is utterly, utterly silly as the background processes count as sessions too.
    This might be another reason why Oracle fortunately choose to ignore your change.
    You should spend some more time on reading documentation, to avoid new attempts to wreck Oracle and create more havoc.
    Sybrand Bakker
    Senior Oracle DBA

  • Unit Testing and Oracle Sessions

    We have an issue regarding Oracle session and SQL Developer Unit Testing.
    Every time we run a Unit Test in SQLDeveloper a new Oracle session is created. When closing that Unit Test, the session, however, is not disconnected.
    And the only way to close that "Unit Test" session is to close SQLDeveloper.
    This is causing problems with the no. of sessions available to developers.
    Any help would be much appreciated.
    Subboss

    The focus of this forum is report design. The actual testing of reports would be subject to your own internal policies and procedures.
    Jason

  • How can we achive active/active cluster setup with Oracle

    Hi Experts,
    How can we achieve active/active database setup with oracle WITHOUT USING RAC.. As far as I know it's impossible (unless I'm wrong)..
    We are using Oracle 11.2.0.1 64bit on Windows 2008 server. We deployed Oracle FailSafe but that's more of an active/passive solution based on a windows cluster.
    The other solution we were thinking about is to use DataGuard and replication.. two servers.. the oracle instance running on one server generating logs, and the other server receive the logs and apply them to the physical standby db.. Still, this is not a real active/active setup.
    So, is it possible to run 2 servers in an active/active cluster and have the oracle database in an active/active setup or have the instance running on multiple nodes (at the same time)?
    Thanks

    Let me give you a brief explanation of what the situation is and you can be the judge..
    My client have four databases with the smallest one being 20GB and the biggest around the 35gb (SGA 750mb to 1.4gb (Tiny by DB standards) and probably on a normal day, you can run all four of them on a decent desktop).. The DBs are used to keep track of people information. Through out the year, the databases are almost sitting idle, and by idle I mean, the odd update here and there, the odd report..etc. No hard real processing of any sort. Two days of the year (end of year) we have all the operators consolidating records and what's not and they will be pounding away entering data and updating the tables - with hourly reports that goes to 3rd parties. The client expects a 99.99 up time and availability during those 2 days.
    Now, tell me, How can I justify using RAC and spending hundreds of thousands of dollars in licensing and what ever extra costs introduced by the complexity of the environment for the above scenario knowing that I don't have any real use for RAC for 363 days of the year; and we MIGHT need it for 2 days of the year? This is the dilemma we're facing.
    Thanks
    Edited by: rsar001 on Sep 3, 2010 9:42 AM

  • Question about BC4J data tags, Oracle sessions and Locking!

    Hi ,
    I have seen numerous examples of JSPs using data tags and in all the examples the data tag for the application module has the "username" and "password" harcoded in it.
    My questions are:
    1) For a stateful application should we be including the username and password in every JSP page. I personally believe that we should not.
    2) If we have a username and password in every JSP page will it not start a new ORACLE user session and if so will it not cause locking problems?
    3) If we don't hard code the username and password in every JSP page, will it reuse the same ORACLE session ?
    4) How do we avoid locking problems when we use data tags?
    5)I can understand the inclusion of username and password in every JSP page if it is a stateless application but again Is there a way we can avoid hardcoding the username and password in every single page?
    I would appreciate if some one can let me know if any of my assumptions are incorrect.
    JDeveloper Team/Juan any advice?

    The username and password are optional. They can be provided via the connections.properties file. The multple entries for username and password don't mean that separate connection are made. The first time the ApplicationModule tag is encountered, your application instance is created. If you are running in reserved mode (look at your releasePageResources tag) the application instance is kept until your Http session times out. If you are running in Stateful or Stateless mode, you application instance is returned to the application pool and retrieved the next time you need an instance. Please refer to the application pool documentation and to the source in oracle\jbo\common\ampool provided in jbohtmlsrc.zip.

  • Web dynpro Application session parameter

    Need pointers   for the following queries:
    1.Can I fetch Web Dynpro java application session parameter ?
    2.Is it possible to pass the fetched session parameter of a web Dynpro java application to a URL  while creating  an external window ?
    Regards
    Radhika Kuthiala

    [SAP Network Blog: Never Ever Hijack Internal Web Dynpro Classes and Interfaces|/people/bertram.ganz/blog/2005/02/02/never-ever-hijack-internal-web-dynpro-classes-and-interfaces]
    regards,
    Angelo

  • Web.Show_document and oracle session

    Hi,
    I am uploading a file on to Oracle Portal through web util. After this, I am calling the web.showdocument to view the uploaded file. But I am seeing only a blank page. This is the sequence flow.
    1. Forms call a procedure which will create a dummy record of the document to be uploaded. This insert is happening as an autonomous transaction.
    2. The Forms call webutil and uploads the document
    3. Then I am calling web.show_document to view the document. The browser is opening an empty page. But once I did an explicit commit, I can open and view the document successfully in the same way.
    I am using '_blank' option.
    So, what I infer from this is that web.show_document opens the browser with a new oracle session by passing authentication details internally. Is there any way view the document without doing an explicit commit?
    Thank you.
    Warm Regards,
    Raja.
    Message was edited by:
    Raja M

    Check
    [b]Mozilla Firefox Options
    File Types
    The Download Actions dialog, which can be opened by clicking the
    Manage... button, contains file types that you have downloaded.
    You can choose what Firefox should do when clicking on a specific
    file type by selecting the file type you want to modify and clicking the
    Change Action... button.

  • Priority for Automatic Proccesses in Oracle BPM 10.3

    Hi,
    I'm completely new to the BPM space, and I was just transferred to a team that's using Oracle BPM 10.3, so my apologies if this is a trivial question.
    Does anyone know how to implement priority for automatic activities in Oracle BPM 10.3? Basically, I want high priority instances to be processed before low priority ones.
    I tried kicking off several instances in a loop with the "priority" variable set to different values, with an automatic activity that would log the instance and its priority, and the begin state limiting the process to a single concurrent instance at a time. It did not look like these instance were processed in priority order.
    Thanks!

    The priority predefined variable is an integer that goes from 1 to 5. The visible corresponding values for these integer values when shown to the end user in the WorkSpace run from "Lowest" (1) to "Highest" (5).
    You typically use priority in a view or filter for the Workspace. You'd set the priority column in the WorkSpace to be sorted descending so that the higher the priority, the closer it is to the top of the end user's queue.
    Unless your view or filter is set to show all activity types currently in the process, the only work item instances shown in the WorkSpace are Interactive activities . The benefit to setting a priority to work item instances is that the end users are encouraged to work the interactive work item instances from the top of the list down.
    Bottom line is that the priority predefined variable helps end users sort / prioritize their work, but does not cause the engine to sort the work it has to do with work item instances running in Automatic activities.
    If you have a batch fully automatic process that takes a while to run, I could see a use case where you might want to sort the list of incoming work item instances. If it's a typical process with a mix of automatic and interactive activities, automatic actiivities take a much smaller percentage of time than the interactives do. Work item instances running inside automatic activities normally don't take much time and the need for prioritization doesn't come up. What's your use case where you need to prioritize them?
    Dan

  • CONTENT SERVER SETUP ON ORACLE 10G IAS (10.1.3) oracle E-business R12.1.1

    Hi Experts,
    Quick one -
    I have been requested to Integrate the CONTENT SERVER SETUP ON ORACLE 10G IAS (10.1.3) with
    oracle E-business SUit R12.1.1. Please also let me know do we have to apply any patches on the
    E-business Suit for Integrating Oracle Content Server setup on Oracle 10g IAS 10.1.3.
    Your quick action in this regards will be highly appreciated
    Please advise.
    Regards
    Mohammed.

    Hi Mohammed,
    You can find all the patches/steps in these docs.
    Oracle Learning Management Content Server setup on Oracle 10gAS - Releases 11i and 12 [ID 427311.1]
    Utilizing Content Servers with Oracle Learning Management [ID 374677.1]
    How Does One Obtain Oracle SCORM Adapter Files For Release 12 (R12)? [ID 457538.1]
    Oracle SCORM Adapter for Oracle Learning Management [ID 331572.1]
    How To Verify Setup Of SCORM Adapter For Learning Management ? [ID 1172599.1]
    Installing SCORM Compliant Content on Oracle Learning Management [ID 374715.1]
    Understanding And Troubleshooting Oracle Learning Management Content Server [ID 754454.1]
    Oracle Learning Management Release 12 Known Issues [ID 405319.1]
    Oracle Learning Management Documentation Resources, Release 12 [ID 397168.1]
    Learning Management (formerly Training Administration)
    http://docs.oracle.com/cd/B53825_08/current/html/doclist.html#Learning%20Management_p
    Thanks,
    Hussein

  • Desktop Intelligence XI 3.1 in 3-tier mode and a lot of Oracle sessions

    Hi All,
    I wanted to set BusinessObjects Enterprise XI 3.1 for our customers (they use BOE XI R2 now).
    But I met with some problem for Desktop Intelligence in 3-tier mode (ZABO formerly).
    Configuration:
    BO Server: BusinessObjects Enterprise XI 3.1
    BO Client: Desktop Intelligence version 12.1.0.882
    BOE Connection Server: version 12.1.0.882 (2.0.0.29)
    Product database (Data Warehouse): Oracle Server 10g
    Database client: Oracle Client 10.2.0.1
    Connection type: http (J2EE Portal) u2013 Tomcat
    Customer DI Documents contain 10 queries on average.
    Problem:
    ConnectionServer create a session in Oracle FOR EACH QUERY from Desktop Intelligence document and BY EACH REFRESH.
    e.g.:
    30 users loaded any reports simultaneously and refresh theirs:
    30 users * 10 queries (per 1 doc on average) = 301 Oracle sessions !!! (300 for queries and 1 for connection)
    second refresh: 301 + 300 = 601 Oracle sessions
    third refresh: 601 + 300 = 901 Oracle sessions
    etc. while Oracle server is not down.
    For DI doc in 2-tier mode (client-server) u2013 only 1 sessionu2026
    Thanks.

    Look at the XI3.0 migration guide on that site.
    From page 333 onward some good info on the subject of calc. engine changes.

Maybe you are looking for

  • Fax Setup Problem: Networked MacBook can't find HP 2160 Fax

    I have a recent MacBook Intel Duo OS X (10.4.10) that I have connected to base station via Airport. (Airport Extreme Base station, works fine for everything else) Base station is connected to cable modem (WAN) and Intel iMac is connected to base stat

  • HT204088 I get a blank screen when I click on iTunes app on my ipad2

    I get a blank screen when I click on iTunes app on my iPad how can I rectify?

  • External catalog set-up

    Hello everyone, can anyone let me know what are the steps the vendor needs to do to put the information on theire website in proper way such that when the URL is accessed from our SRM system, required data(product catagory,UOM,supplier ID etc) gets t

  • Disable embedded closed captions from video Asset?

    Hello all, I have imported a H.264 file from Apple Compressor with embedded closed captions (not hardcoded I believe). Is it possible to disable them? The automatic formatting of the captions is not suitable, and I would like to use the native Encore

  • URGENT: OES 10g Admin server not coming up

    Hi All, The environment has OES 10g CP5 setup with WebLogic Server. There were no changes made to the env recently and all of a sudden OES 10g server has stopped working. We are seeing the below exception in logs. Appreciate any help. INFO   | jvm 1