Automatic configuration of nls_sort setting Oracle session?

Hello

Is it possible to automatically create the session setting Oracle then connect to Oracle?
Much like the .profile file done by connecting to Linux.
The session in question setting is nls_sort. It seems the only way to nls_sort BINARY_CI
is to invoke the command after login:
ALTER session set nls_sort = "BINARY_CI."

But if I use third party jdbc connection that does not allow the insertion of the alter session command
I'm out of luck. I can't launch the sort that uses case insensitive mode.
Is there any other alternative that would allow the BINARY_CI.
I tried to put it in initXXX.ora, but it did not work.

I appreciate the responses and assistance.

Andrew K

Yes, write a trigger "AFTER LOGIN".
: p

Tags: Database

Similar Questions

  • Windows could not start error 1068: dependency or group was able to start the automatic configuration of WLAN set the local computer.

    I am not able to start some services to get connected wireless.  In Device Manager the poster adapter works correctly.  The WIFI light is on.  Start Windows Wireless Service bar lights up, but the service does not just start.  I have run chkdsk and several other parts but registry cleaners I keep coming up empty.  Help, please.

    I've been sarching for hours and hours... and it's already after hours of working offline with the client in their home... no restoration of the system or the backups... typical noob... but not their fault it happened... I did EVERYTHING suggested. Nothing has worked... Almost abandoned and prepared for a re - install... then I found it at the last second...

    «OMG 911techmedics...» You're crazy GENIUS!

    Finally, something works and does not require a complete reinstall of the OS. I was so scared of it because Asus does not save a physical copy of the Recovery Manager on the hard drive, and somehow my backup discs (6 disks, waste of my DVD: O) don't work at all after spending an hour by burning.

    What happened was I used RegTweaker to do a cleaning of registry on my Win7, my computer worked faster, but I lost my WLan service and no matter what I was doing nothing worked, until I stumbled upon your post! I have read more than 50 pages of Web/forum sites and tried probably suggested and none of them worked.

    I tried:

    (1) Microsoft Winsock32 Fix
    (2) replacing Winsock dll
    (3) Yes Netsh wlan with the set command
    (4) order of Netsh reset catalog
    (5) LSP Fix.exe
    (6) right click 'Manage' on computer and everything related to the WLAN + dependencies on "automatic".

    I spent 8 hours and none of the above worked. Apparently a lot of people have the same problem after using a registry cleaner. He has tried, tested and proven. I did the registry cleaning on 2 computers and next thing I know on reboot, it is that the WLAN Service went AWOL. My first suspicion is gone to a missing or corrupted Winsock, but I never thought that a simple change of 2 files in the registry would solve the problem. Your piece of text was scary to look at in the beginning, but I was so desperate that I was willing to try anything and it really paid off. Microsoft should pay you the man! Their stupid suggestions do not work. For those who like me, I break down the instructions for you:

    Step 1: Click the button START
    Step 2: In the search box, type "regedt32" (of course, do not include the ""), right-click on the result of the research and the "Run as Administrator".

    Step 3: Click 'HKEY_LOCAL_MACHINE', should extend out to a list of things
    Step 4: Next, choose 'SYSTEM', is expected to increase again
    Step 5: Choose "CurrentControlSet", develops again
    Step 6: Select 'Services', develops into a great big list of things

    Step 7: Click on "Dhcp", the right window shows the files in this folder
    Step 8: Double click on "DependOnService".
    Step 9: Remove all the words in the text, except "Afd" box, and then click OK. You are done here

    Step 10: Then under 'Services', are looking for "EapHost", this should be a few records below Dhcp step 11: same thing, double-click on the file "DependOnService".
    Step 12: Delete everything in the text are and click OK. You are finished.

    Now close everything and RESTART WINDOWS. Your WLan should be back and work once at startup of your computer. Hope that makes you win like he saved me. Thanks to an original poster for the wonderful of the resolution. Your message has been almost too obscure to find, but I'm glad that this has been RESOLVED! I will be passing the word around to save people from the constant agony of WLAN SVC goes ballistic every time after a cleaning the registry. »

    Now then... I was about to wipe the machine flowering in any case, I thought ' what the *', and just did the 12 steps without even a reg backup... AND THIS DO FEAR WORKED!

    911techmedics saved our skins...

    Thank you!!!

    The Lady Sharrow...

  • Oracle 10gAS 10.1.2.3 patch update - support of configuration is not set

    Hi all

    That I improve the 10gAS 10.1.2.0.2 for game patches 10.1.2.3 and Installer went well with questions, but during the execution of the assistance of configuration I got the below error

    "Output generated by the configuration wizard"Wizard of Configuration Patch Oracle Internet Directory ":

    Configuration wizard "Wizard Patch Oracle Internet Directory" failed"


    I tried to stop the listener and again the listener and retried the configuration, but it failed again.

    Please advice.

    Thank you and best regards,
    Rakesh

    Rakesh,

    Any errors in the log file?

    Try the solution proposed in the following document and see if it helps.

    Note: 735784.1 - "internal server error" and more after patching
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=735784.1

    Kind regards
    Hussein

  • Layout NLS_COMP and NLS_SORT for all Sessions

    Hi all

    I looked in the Forum/Google/etc, but unfortunaly I can't find a solution.

    For our Application, we need a research case insenstive. So, if we define Session settings changing to NLS_COMP = LINGUISTIC and NLS_SORT = BINARY_CI, it works fine. Now define two stamped in the NLS_INSTANCE_PARAMETERS.
    Now, when I start SQLPLUS and check the NLS_SESSION_PAREMTERS they NLS_COMP is OK but is the NLS_SORT NLS_SORT = GERMAN.

    Is there a way to force this INSTANCE of Paremters so that each Client always use NLS_INSTANCE_PARAMETERS setting?

    The reason this isn't a clean Application, we cannot use ALTER SESSION SET...

    concerning
    Thomas

    You can set this in a logon trigger. You can check the user name and configure the settings of a session for the user of the application only.
    There is an example here for example http://www.dba-oracle.com/oracle_tips_ault_custom_parameters_users.htm
    or even a better here: http://psoug.org/reference/system_trigger.html

    BTW, if your application uses a connection pool it has a function of session settings or auto run a sql script of close connection information in the session configuration settings...

  • Using an automatic configuration file to create bookmarks

    I use an example provided by Mike Kaply to change my automatic configuration file to add bookmarks to the profiles of the users. However, whenever I run FF, instead of bookmarks should be replaced, I get an extra game. So after 5 revival, I have 5 sets of bookmarks that I added.
    Is there a way to avoid this?
    Here is the code I use:
    Add bookmarks
    Components.utils.Import ("resource://gre/modules/Services.jsm");
    var uri = Services.io.newURI ("http://mike.kaply.com", null, null);
    var navBook = Components.classes["@mozilla.org/browser/nav-bookmarks-service;1"].getService(Components.interfaces.nsINavBookmarksService);
    create new folder
    var FolderId = navBook.createFolder (navBook.bookmarksMenuFolder, "New folder", 0);
    Add bookmark to newly created folder
    navBook.insertBookmark (SCCCFolderId, uri,-1, "Mike's Blog");

    In the end, I had to write code using a loop with an if statement then look for an existing bookmark. Of course it's a little more complicated than that.
    It was not easy, but I am able to do what I have to.

  • Automatic configuration of the HP w17e monitor active at random

    Currently using an hp w17e flat, wide LCD screen connected to a NVIDIA 9500 GT video card located in a computer that is running Windows Vista Edition home premium (32 bit).  Running on 1440 x 900, 60 Hz frequency suggested by the insertion of the packaging of refreshment. Also in the 32-bit color setting.

    (Other computer stats available at http://www.compusa.com/applications/searchtools/item-Details.asp?EdpNo=4419976&sku=T71-3446%20ON&srkey=3000%20H210%2057088788)

    Tuesday night (13/10/2009) let my computer playing music with the monitor off.  Morning, Weds(10/14/2009) and any platform is off.  Turn it turn it back on and seems to update windows pushed a lot of updates.  Then I noticed the problem.  Randomly, the automatic configuration of hardware on the monitor turns on.  Tried different applications (games, firefox [windowed and full screen], or just sitting on the desktop), and the Automatic Configuration dialog box appears in the center of my screen and shakes the screen.

    Monitor checked button, it is not blocked (before this, don't think I hit a few months...)

    No change, I tried older drivers I had before the update of windows, still didn't try to update the NVIDIA drivers, arrives.

    Reset the monitor through the monitor menu.  Still happens.

    Reset the NVIDIA graphics settings, still happens.

    Installed the update optional windows update for the hp w17e LCD wide display.

    Monitor connection video Cable disconnected to the video card, checked pins, pins are good.  Reconnected.  Still happens.

    Tried to connect to another video on the port of the video card (always the same type of connection).  A reduced frequency, but screen looks flatter and more gray/less dynamic.

    She returned after swapping the video ports when I open the NVIDIA Control Panel.  Didn't jump once while typing this.

    Suggestions?

    Updated several days later.

    After the passage of the screen to the other video port on the back of the computer (vid card has 2 ports I could use, been using a) and disconnect / reinstalling the power cord on the monitor itself, auto config jumped just once shortly after reconnection of everything and not since.

    Weird and intrigues me, but hey, if it works now, will to run with him.

  • Automatic configuration does not...

    I bought a 2nd wre54g and automatic configuration does not work... I tried for an hour... light remains red link... I tried the reset button but same thing... My only other works fine... all ideas except repair... I have only one at a time if it is not the problem... Thank you

    Thanks for your reply... I managed to do work using the ethernet cable to set it up, and now it works.

  • VBscript - how to disable 'Use Automatic configuration Script'

    Hello

    I currently have the script in a vbs file. below

    Const HKEY_CURRENT_USER = & H80000001
    Set objShell = CreateObject ("WScript.Shell")
    strPC = objShell.ExpandEnvironmentStrings("%COMPUTERNAME%") "

    On Error Resume Next

    Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")

    strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet settings"
    strValueName = "ProxyEnable".

    objReg.GetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName and dwValue

    '#==============================================================================
    '# Proxy of IE if is currently on display message and ask the user if he
    '# should then be disabled
    '#==============================================================================
    If dwValue = 1 Then
    IEPrompt = MsgBox ("Hello David.") Your Proxy is on, you want to turn it off? (", vbQuestion + vbYesNo,"disable IE Proxy")
    If IEPrompt = vbYes Then
    dwValue = 0
    objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName and dwValue
    MsgBox "Thank you David, your proxy is now off.» "Have a nice day" & _
    ".", vbInformation, "off of the Proxy IE.
    ElseIf IEPrompt = vbNo Then
    MsgBox "David, your Proxy is always on" & _
    ".", vbInformation, "off of the Proxy IE.
    End If
    '#==============================================================================
    '# If IE Proxy is currently disabled display message and ask the user if he
    '# must then be activated
    '#==============================================================================
    Else if dwValue = 0 Then
    IEPrompt = MsgBox ("Hello David.") Your Proxy Server is turned off, you want to turn on? (", vbQuestion + vbYesNo,"activate IE Proxy")
    If IEPrompt = vbYes Then
    dwValue = 1
    objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName and dwValue
    MsgBox "Thank you David, your proxy is now on." Have a wonderful day"& _
    ".", vbInformation, "enable Proxy from IE.
    ElseIf IEPrompt = vbNo Then
    MsgBox "David, your Proxy is always on" & _
    ".", vbInformation, "enable Proxy from IE.
    End If
    End If

    This only disables the proxy server in Internet Explorer/Tools/Options/connections/Lan Settings.

    I get this same code to enable check boxes "Automatic Configuration" instead of or as well?

    Thank you very much

    Luke

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.msdn.Microsoft.com/forums/en-us/home

  • How do I know what Oracle sessions

    Is there an easy way to save time of end Oracle sessions?

    We have a persistent problem with a web application written by a third party. Hundreds of users online on demand, which channels all requests through a few dozen Oracle sessions that persist for hours. The Oracle listener.log file shows that sometimes the unexpected application establishes a hundred or more connections in about 20 seconds. A check from v$ session shows that almost all of these sessions are disappearing quickly. Is it possible for me to save automatically when each of these end sessions? I don't want to know when all Oracle sessions end, only those coming from this particular server. I know his address I.P. and two user IDS in the name of which sessions are created.

    I want to have this information so that I can go to the software company and show them what made their request. It goes to show that some of their last sessions for hours and these chips other last only seconds.

    Thank you

    Bill

    Bill, sure, you can audit logs, but this would be followed by everyone and since you are interested in sessions only for a specific application you can consider to write a trigger opening and closing session of database to capture the sessions of interest.

    - -

    stolen from http://www.adp-gmbh.ch/ora/sql/trigger/logoff.html

    create trigger trg_logoff

    before Logoff on database

    Start

    insert into logoff_tbl values (sys_context('userenv','session_user'), sysdate);

    end;

    /

    - -

    Of course, you do not want to add the logic to determine whether the user is a user of interest.

    - -

    HTH - Mark D Powell.

    Ed - journal-online logic

  • Activate the automatic configuration.

    After migration DB to 11g release how to re-enable AutoConfig.

    Please suggest some docs to activate the automatic configuration.

    Kind regards.

    Published by: 836778 on April 26, 2011 21:10

    For 11i, please see (by using AutoConfig to manage the Configurations of the system with the Oracle Applications 11i [165195.1 ID]).

    For R12, please see (using AutoConfig to manage system Configurations in Oracle E-Business Suite Release 12 [387859.1 ID])-"" 3.2. Section activation on a new Oracle Home AutoConfig".

    You can also check:

    How to recreate the directory/scripts / / appsutil [377495.1 ID]
    How to find the .env file after the upgrade to EBS 11.5.10.2 with 9i and 10g database? [1295567.1 ID]

    Thank you
    Hussein

  • Change the NLS_SORT setting

    Hello

    I need to sort Chinese characters in my database, without changing the NLS_LANG setting.
    At first, I just changed the NLS_SORT setting for my session.

    SQL > alter session set NLS_SORT = SCHINESE_STROKE_M;

    After I questioned the table and made an order, I had a specific word order, which was different from the order I got when NLS_SORT = BINARY.
    I have no way of knowing if the order is correct or not, that I do not understand the Chinese, but I assumed that it is correct.

    Then, I changed the NLS_SORT for the system.

    SQL > alter system set NLS_SORT = 'SCHINESE_STROKE_M' scope = spfile;
    SQL > SHUTDOWN IMMEDIATE;
    SQL > STARTUP;

    When I do one-
    SQL > show parameter NLS_SORT; I get the following result-
    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    nls_sort string SCHINESE_STROKE_M

    But when I ask the database with an order by clause, the data can't be in the order that I received when I had changed the session parameter. In fact, the order is the same when the NLS_SORT = BINARY.

    I'm doing something wrong?
    Help, please.

    You can do this in two ways:

    Set with an operating system environment variable
    Windows: SET NLS_SORT = value
    * nix: setenv NLS_SORT value
    or run it after each connection (this can be placed on the logon trigger)

    ALTER SESSION SET NLS_SORT = value;

    With greetings
    Krystian Zieja

  • automatic configuration error: afcpctx.sh INSTE8_PRF 1

    Hi Hussein.

    I have a question. On a 11.5.9 example, when I run the autoconfig on the application layer, I get the error
    afcpctx.sh INSTE8_PRF 1

    As documented, when I look at the log file, I see that the error is PL/SQL being too small buffer.
    I put under patch 3377508 - AFCPCTX. SH FAILS WITH ORA - 6502 WHEN FNDCPUCF RUNS, ran autoconfig and same error.
    I applied patch 3810902 -AUTOCONFIG OUT WITH ERRORS, ran autoconfig and still finished with error.

    This time, I get the following:

    "Analysis of the context... file.
    Serial number in the context file contains a lower value than the copy of the database.

    Cause: The file editing by Oracle Applications Manager context did not complete synchronization of file system. If please correct errors that caused when editing and run this program again. (FILE$ APPL_TOP/admin / < CONTEXT_FILE > .xml)
    Serial number in the context file contains a lower value than the copy of the database.

    Cause: The file editing by Oracle Applications Manager context did not complete synchronization of file system. Please correct the errors that caused during editin ".


    As a backdrop, last night when I tried to stop the application, I got an error saying that there is a corruption with my contextfile. I rebuild it earlier before you run the automatic configuration.


    Any idea?

    Thank you

    Felix

    Hi Felix,.

    The cause of the error and the patch are described in the following document.

    Note: 316475.1 - Autoconfig poster with afcpctx.sh Script error
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=316475.1

    Kind regards
    Hussein

  • Fate of automatic configuration with State 1

    Hello

    After you apply T2K patch 6372396 when I tried to run the autoconfig his mistake to launch the message in the file autoconfiglog below

    -----

    The following report lists the errors autoconfig met in each
    execution phase. Errors are grouped by directory and by phase.
    The format of the report is:
    & lt; filename & gt; & lt; phase & gt; & lt; code back, the case & gt;


    [PROFILE PHASE | http://forums.oracle.com/forums/]
    AutoConfig could not successfully run the following scripts:
    Directory: / xxx/app/xxxx/admin/install/xxxxx



    bisdblrp.sh; INSTE8_PRF 1



    Fate of automatic configuration with State 1


    Patch was completed successfully with warnings,

    Applications: 11.5.10.2
    OPERATING SYSTEM: HP UX

    Published by: appsguyflorence on November 11, 2008 02:41

    Appsguy,

    Can you please mark the thread as an answer.

    Thank you.

  • How can I change the setting on my Apple to change the settings for automatic renewal at normal setting

    How can I change the setting on my Apple to change the settings for automatic renewal at normal setting

    I get a fresh fresh message on my credit card and I need to stop this setting automatic renewal for apple applications.

    If you mean cancel the renewal auto-renewal subscription and then follow these instructions: view, change or cancel your subscription - Apple Support

    (I asked for your message to be moved to the forum of the iTunes Store, where you have posted is for questions about the iTunes U app.)

  • Cookie set as session expire when closing does not work correctly.

    Cookie set as session expire when closing works but if history restore previous session is clicked on the last page that was saved shown by logging in successfully.

    Thank you very much

Maybe you are looking for