How do I check the Oracle enviornment variables for a connection?

I am using Oracle JDBC 10.2.0.4 and trying to output the Oracle enviornment variables for a connection.
I am trying to determine if the values output from sqlplus from the following two SQL select statements are different in the connection object:
SELECT * from NLS_SESSION_PARAMETERS order by 1;
NLS_CALENDAR GREGORIAN
NLS_COMP BINARY
NLS_CURRENCY $
NLS_DATE_FORMAT MM/DD/YYYY HH24:MI:SS
NLS_DATE_LANGUAGE AMERICAN
NLS_DUAL_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_LANGUAGE AMERICAN
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NUMERIC_CHARACTERS .,
NLS_SORT BINARY
NLS_TERRITORY AMERICA
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
SELECT sys_context('userenv','language') from dual;
AMERICAN_AMERICA.WE8ISO8859P1
Is there a way to do this in the API or do I just need to run the SQL statements in a Class and output the values to a log?
Thanks,
--Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

So try it.
Create a connection with no settings.
Alter all of the (session only)
Query again and see.
Either the query will return the altered values or it won't.

Similar Messages

  • How do I check the oracle client version?

    Hi All,
         How do I check the oracle client version installed from the OS level. I do know my database version I need to check which client is being used. Is there a table where this information is stored.
    Thanks
    Shabna

    disp+work.exe -V will tell you which OCI version was used during compiling and linking.
    Oracle uses release independent DLL Names (Unix people would say Shared Libraries) and therefore the SAP Kernel will dynamically load any Oracle Client Version found in the standard DLL Load Path during startup.
    If you have more versions installed on your computer and you are not shure which one is loaded you can use Process Explorer (freeware, see www.sysinternals.com) to find out which one is loaded. If they belong to an Oracle_home (up to release 9.2) refere to Oracle Universal Installers Inventory information in order to find out which exact version is used.
    If an Oracle10 Instant Client is used, there is no corresponding Oracle_Home. In this case you can use Windows Explorer (right click on the  DLL -for example oci.dll), select properties, the Version Tab and File Version).
    But unfortunately Oracle is not updating the File Version every time they are patching something.
    An SAP ABAP Server Integrated Resource is the version information disp+work.exe -V is listing (evquivalent to SM51 - Release Information).
    <b>Datenbank Client Library : OCI_10201_SHARE (10.2.0.2.0)</b>
    OCI_10201_SHARE is telling us the compile/link environment, the number in brackets (only available starting with Oracle10) tells us the the result of an Oracle Client GetVersion call. Unfortunately this one does also not reflect the installed Minipatch version up to now.
    Here are some results on 10.2.0.2 Windows X86_64:
    SM51: Datenbank Client Library : OCI_10201_SHARE (10.2.0.2.0)
    Explorer (OCI.DLL located in the same directory as disp+work.exe):
       10.2.0.2.0 Patch2
    Explorer (oraociicus10.dll - the instant client implementation, this version is the one actual since mini patch 10.2.0.2.5 and it was definitely changed in 10.2.0.2.5):
       OraOCIICUS10.dll - 10.2.0.1.0
       oracore10.dll - 10.2.0.1.0 Production
       oranls10.dll - 10.2.0.1.0 Production
       orasnls10.dll - 10.2.0.1.0 Production
       oraunls10.dll - 10.2.0.1.0 Production
       oravsn10.dll - 10.2.0.1.0 Production
       oracommon10.dll - 10.2.0.1.0 Patch1
       orageneric10.dll - 10.2.0.2.0 Patch2
       oraclient10.dll - 10.2.0.2.0 Patch2
       orapls10.dll - 10.2.0.1.0 Patch1
       orasql10.dll - 10.2.0.1.0 Production
       oraxml10.dll - 10.1.0.2.0
       orahasgen10.dll - 10.2.0.1.0 Production
       oraocrutl10.dll - 10.2.0.1.0 Production
       oraocr10.dll - 10.2.0.1.0 Production
       oraocrb10.dll - 10.2.0.1.0 Production
       oranbeq10.dll - 10.2.0.1.0 Production
       orantcp10.dll - 10.2.0.1.0 Production
    oracommon10.dll from the rdbms server does report 10.2.0.2.0 Patch5 at the same time. compare it with the version information of oracommon10.dll included in oraociicus10.dll. Both patches are included in the same patchset (10.2.0.2.5).
    there are two possible conclusions about this:
    1. the version infomation is not very reliable.
    2. the Oracle Patch and Build environment is not very reliable
    Peter

  • How can I check the date of purchase for my MacBook Pro?

    I need to fill out a claim in order to get OS X Mountain Lion and I need the date of purchase. I have tried putting in the serial code under check your service and support coverage but it just gave me a vague statement thatit was purchased mid 2012. Could someone please tell me how I can check the date of purchase?

    Well, correction, just checked mine...
    Tells you exipry date of warranty, simply take 1 year off of this or 3 if you have AppleCare.
    There is your purchase date.

  • How can I use the same Sound variable for multiple sounds?

    I need my program to play many different mp3 files at different times.  I'm reading that you can not load different mp3 files into the same Sound variable.  But there must be a way around this right?  Can I Unload mp3 files some how?  Or can I delete the Sound variable and declare it again?  I don't want to have hundreds of Sound variables so what do I do?  Thank you.

    delete doesn't work in as3.  you must remove all listeners and references including nulling the variables.  for displayobjects, they need to be removed from the display list.
    p.s.  you don't need to create a sound instance until you need to load an mp3 using one.  so, if you're waiting for user input to start loading an mp3, you should wait for that input to create that sound instance.

  • Check the bex queries results for creating dashboards?

    Hi All,
    How can i check the bex query results for creating dashboards, is it possible to view the bex query results before creating the dashboards?
    help me the steps...
    Thanks in advance..

    Yes you can check the query result first in SAP BW Server first using RSRT -TCODE with your query name, where you can do complete debug and  check the query result.
    Create a query, drag and drop the dimensions and keyfigure in the window and click the preview window to check the query result at the bottom of the window.
    Revert for any assistance.

  • How to check the Oracle Release?

    Hi,
    How to check the release version in Oracle AS ?
    And
    How to find what oracle AS release has happened in year (example 2005)?
    Best Regards

    There are a couple of ways I use to find the version:
    1. Open the Oracle Universal Installer on the machine where the OAS is installed, click on Installed Products. That should display the product and the version number.
    2. Set the oracle environment variables, then run the command below
    +$ORACLE_HOME/jdk/jre/bin/java -jar $ORACLE_HOME/j2ee/home/oc4j.jar -version+
    This should display the version of the OC4J which generally is the version of the OAS (unless you have applied any one-off patches)
    Have no idea about the second part of your question. Sorry.
    - Steve

  • How can I check the version of Oracle in Linux?

    Dear all :
    How can I check the version of Oracle in Linux ?
    Regards
    Terry

    Hi terry;
    How can I check the version of Oracle in Linux ?You mean your db version or something else? If you mean you want to control your version issue is:
    source env file as oramgr
    sqlplus "/as sysdba"
    when u login sqlplus it will give u something as below:
    SQL*Plus: Release 10.2.0.4.0 - Production on
    Regard
    Helios

  • How to check the Oracle Apps version 11.5.10.2 or 11.5.10.1

    Hi,
    I have a basic question. How can I check the version fo my oracle apps instances. Whether it is 11.5.10 or CU1 or CU2.
    Also, how to find what all patchsets were included in each version.
    Thanks.

    I have a basic question. How can I check the version
    fo my oracle apps instances. Whether it is 11.5.10 or
    CU1 or CU2.- From the application, navigate to Help > About
    - Check "s_apps_version" value in the context file
    - Run the following query:
    SQL> select release_name
    from fnd_product_groups;
    Also, how to find what all patchsets were included in each version.Check "List of Included Patches" section:
    Note: 298352.1 - 11.5.10 Oracle E-Business Suite Consolidated Update 1
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showNOT?p_id=298352.1
    Note: 316366.1 - 11.5.10 Oracle E-Business Suite Consolidated Update 2
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showNOT?p_id=316366.1
    Note that the patches included in CU2 are cummulative -- they include the contents of CU1.

  • How can i check the duplicate NPD project name?

    Dear all,
    I would like to know on how i can check the duplicate NPD's project name? I found that some NPD's project is initiate serveral time with the same or semilar name from user name. Supposing the project name was "Smart Pilot". I always found that project may type differently such as "Smart PILOT","smart pilot" or even "Smart Pilots". Supposing i would like to validate all of these name before save by using validation framework, or custom validation. Is it possible?
    Supposing it was possible, can you please guiding me on how?
    Thank you so much in advance for all of the answer.
    Phaithoon W.

    So here is some example code for a quick validator. Note that this uses a hard coded English error message, rather than a translation. If you want to use translations instead, look at some of the examples in the ReferenceImplementations\Validation\SourceCode\ReferenceValidation folder in the Extensibility Pack, and review the Validation Training as well (in the ReferenceImplementations\Validation\Documentation folder).
    Note that the provided code is for demonstration purposes only and is not supported by Oracle.
    The classes:
    using System;
    using System.Data;
    using System.Xml;
    using Xeno.Data.NPD;
    using Xeno.Prodika.Application;
    using Xeno.Prodika.Services;
    using Xeno.Prodika.Validation;
    using Xeno.Prodika.Validation.Validators;
    namespace Oracle.Agile.PlmProcess.Validation
        public class NPDUniqueProjectNameValidatorFactory : XmlConfigValidatorFactoryBase
            protected override IValidator Create_Internal(XmlNode configNode)
                return new NPDUniqueProjectNameValidator();
        public class NPDUniqueProjectNameValidator : BaseValidator
            private const string sql = @"select 1 as dup from NPDPROJECTML where UPPER(title) = UPPER ('{0}') and FKPROJECT <> '{1}' and LANGID = {2}";
            public override bool Validate(IValidationContext ctx)
                var project = ctx.ValidationTarget as INPDProjectDO;
                bool hasDuplicate = false;
                string sqlToExecute = String.Format(sql, project.ProjectML.Title, project.PKID, UserService.UserContext.User.PreferredLanguage);
                using (IDataReader reader = AppPlatformHelper.DataManager.newQuery().execute(sqlToExecute))
                    if (reader.Read())
                        hasDuplicate = true;
                if (hasDuplicate)
                    ctx.AddError(String.Format("A project already exists with the name '{0}'.", project.ProjectML.Title));
                return hasDuplicate;
            private IUserService UserService
                get { return AppPlatformHelper.ServiceManager.GetServiceByType<IUserService>(); }
    Next, add the following to the ValidationSettings.xml file in config\Extensions:
    1. add the validator factory, with a reference name in the config:
    <ValidatorFactories>
            <!-- Custom  Validator Factory declaration goes here -->       
            <add key="NPD_CheckProjectNameForDuplicate" value="Class:Oracle.Agile.PlmProcess.Validation.NPDUniqueProjectNameValidatorFactory,ReferenceValidation" />
    </ValidatorFactories>
    2. Add a rule for NPD project Save event:
    <rule type="3202">
                <condition event="save">
                    <if type="NPD_CheckProjectNameForDuplicate" require="true" report="true" />
                </condition>
    </rule>
    Compile the reference example into a dll, and add that dll into web\npd\bin
    When you try to save a project with a duplicate name, it should now give you the error message.

  • How can I check the version of the rdf file?

    Dear all:
    How can I check the version of the rdf file? such like CEXRECRE.rdf .
    my environment is : oracle 11.5.9
    platform : Linux red hat 4.0
    Regards
    Terry

    Terry,
    Use "adident" or "strings -a" commands -- See (Note: 125922.1 - How To Find Oracle Application File Versions) for details.
    Thanks,
    Hussein

  • How to start checking the bottle necks in PL/SQL for benchmarking?

    How to start checking the bottle necks in PL/SQL for benchmarking? Can anbody post me the instructions to start tuning the Oracle PL/SQL code..
    Thanks & Regards,
    VJ

    you can use DBMS_PROFILER to do this. This built in package is very well documented:
    http://www.oracle.com/pls/db102/ranked?word=dbms_profiler&remark=federated_search
    Depending on your IDE, you could get a visual representation of the profile. Something like:
    http://technology.amis.nl/blog/2327/dbms_profiler-report-for-sql-developer

  • How can I check the all schedule CM jobs' time?

    Dear all:
    How can I check the all schedule CM jobs' schedule time?
    my environment is : EBS 11.5.9 | DB:ORACLE 9.2.0.8 | PLATFORM: LINUX redhat 4.0*
    Regards
    Terry
    Edited by: Terry Chen on 2010/4/14 下午 7:12

    Terry,
    Please see (Note: 170107.1 - How to Determine Scheduled Concurrent Requests).
    Regards,
    Hussein

  • When i try to add DownloadHelper it comes up with unexpected installation error review the error console log for more details - 203, how to it check the log and how do i fix this problem?

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    When i tried to install DownloadHelper this happened Firefox could not install the file at
    https://addons.mozilla.org/en-US/firefox/downloads/latest/3006/addon-3006-latest.xpi?src=addondetail
    because: Unexpected installation error
    Review the Error Console log for more details.
    -203
    , how do i check the log and how do i resolve this problem? thank you
    == This happened
    ==
    Just once or twice
    == today
    ==
    == Troubleshooting information
    ==
    Application Basics
    Name
    Firefox
    Version
    3.6.3
    Profile Directory
    Open Containing Folder
    Installed Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Ask Toolbar for Firefox
    2.1.0.5
    true
    AVG Safe Search
    9.0.0.783
    true
    {3f963a5b-e555-4543-90e2-c3908898db71}
    Java Console
    6.0.17
    true
    Microsoft .NET Framework Assistant
    1.1
    true
    {20a82645-c095-46ed-80e3-08825760534b}
    BitDefender Antiphishing Toolbar
    2.0
    true
    [email protected]
    Modified Preferences
    Name
    Value
    accessibility.typeaheadfind.flashBar
    0
    browser.places.smartBookmarksVersion
    2
    browser.startup.homepage_override.mstone
    rv:1.9.2.3
    extensions.lastAppVersion
    3.6.3
    general.useragent.extra.microsoftdotnet
    (.NET CLR 3.5.30729)
    network.cookie.prefsMigrated
    true
    places.last_vacuum
    1276351876
    print.print_printer
    HP Photosmart D5300 series
    print.printer_HP_Photosmart_D5300_series.print_bgcolor
    false
    print.printer_HP_Photosmart_D5300_series.print_bgimages
    false
    print.printer_HP_Photosmart_D5300_series.print_command
    print.printer_HP_Photosmart_D5300_series.print_downloadfonts
    false
    print.printer_HP_Photosmart_D5300_series.print_edge_bottom
    0
    print.printer_HP_Photosmart_D5300_series.print_edge_left
    0
    print.printer_HP_Photosmart_D5300_series.print_edge_right
    0
    print.printer_HP_Photosmart_D5300_series.print_edge_top
    0
    print.printer_HP_Photosmart_D5300_series.print_evenpages
    true
    print.printer_HP_Photosmart_D5300_series.print_footercenter
    print.printer_HP_Photosmart_D5300_series.print_footerleft
    &PT
    print.printer_HP_Photosmart_D5300_series.print_footerright
    &D
    print.printer_HP_Photosmart_D5300_series.print_headercenter
    print.printer_HP_Photosmart_D5300_series.print_headerleft
    &T
    print.printer_HP_Photosmart_D5300_series.print_headerright
    &U
    print.printer_HP_Photosmart_D5300_series.print_in_color
    true
    print.printer_HP_Photosmart_D5300_series.print_margin_bottom
    0.5
    print.printer_HP_Photosmart_D5300_series.print_margin_left
    0.5
    print.printer_HP_Photosmart_D5300_series.print_margin_right
    0.5
    print.printer_HP_Photosmart_D5300_series.print_margin_top
    0.5
    print.printer_HP_Photosmart_D5300_series.print_oddpages
    true
    print.printer_HP_Photosmart_D5300_series.print_orientation
    0
    print.printer_HP_Photosmart_D5300_series.print_pagedelay
    500
    print.printer_HP_Photosmart_D5300_series.print_paper_data
    9
    print.printer_HP_Photosmart_D5300_series.print_paper_height
    11.00
    print.printer_HP_Photosmart_D5300_series.print_paper_size_type
    0
    print.printer_HP_Photosmart_D5300_series.print_paper_size_unit
    1
    print.printer_HP_Photosmart_D5300_series.print_paper_width
    8.50
    print.printer_HP_Photosmart_D5300_series.print_reversed
    false
    print.printer_HP_Photosmart_D5300_series.print_scaling
    1.00
    print.printer_HP_Photosmart_D5300_series.print_shrink_to_fit
    true
    print.printer_HP_Photosmart_D5300_series.print_to_file
    false
    print.printer_HP_Photosmart_D5300_series.print_unwriteable_margin_bottom
    0
    print.printer_HP_Photosmart_D5300_series.print_unwriteable_margin_left
    0
    print.printer_HP_Photosmart_D5300_series.print_unwriteable_margin_right
    0
    print.printer_HP_Photosmart_D5300_series.print_unwriteable_margin_top
    0
    privacy.sanitize.migrateFx3Prefs
    true
    security.warn_viewing_mixed
    false
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows Vista
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-npdivxplayerplugin
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *6.0.12.732
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *RealJukebox Netscape Plugin
    *Shockwave Flash 10.0 r45
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *iTunes Detector Plug-in
    *DivX Web Player version 2.0.0.254
    *GEPlugin
    *4.0.50524.0
    *Office Live Update v1.4
    *NPWLPG
    *Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
    *RealPlayer(tm) HTML5VideoShim Plug-In
    *Google Update
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers

    Mark Leary:
    As TXGuy posted above:
    See:
    https://support.mozilla.com/en-US/kb/Unexpected+installation+error+-203+when+installing+add-ons
    http://kb.mozillazine.org/Unable_to_install_themes_or_extensions_-_Firefox#Unexpected_installation_error_-203
    Also see:
    http://support.mozilla.com/en-US/kb/Profiles#How_to_find_your_profile
    http://kb.mozillazine.org/Show_hidden_files_and_folders

  • IP Job in BW finished, but how can I check the IDoc receive status in BW ?

    Hi,experts
    After I execute a Infopackage with loading more than 200000 records data, the infopackage monitor show me yellow light, 186020 from 200000 records. this infomation still show me till now, seaval hours,it looks pause here.
    And I check the request in the R/3, the Job has finished. as you know it means the R/3 push the IDoc already finished.
    and how can I do now ? or how can I check the IDoc receive status in BW side?

    Hi,
    I too had the same problem, i executed the following to solve the proble, may be this will help you:
    1) Go to T-code SM58 and select TRFC and press F6,
    2) For manual push of I-Docs, GO to T-COde BD87 select perticular idoc and see the status if it is not executed properly then do the manual push by pressing Execute option,
    Thanks,

  • I have two email accounts. It is only letting me check one. How can I check the other?

    I registered two different email accounts on my iPad mini. It's only letting me check one. How can I check the other one too?

    Congratuations on your new iPad!
    Since your device is so new, I can state categorically that this an issue with configuration. Delete the account that doesn't work, and enter the information anew.
    If you're still having problems, check that your email address and password are correct, and if possible, verify it by checking your ISP's settings.

Maybe you are looking for

  • Attachment/Link woes in Presenter

    I'm having issues with attachments and links in Presenter. We are publishing locally and not necessarily using the LMS to distribute the courseware. I have read the online help file's disclaimer and the TechNote about attachments not working in local

  • Summary Column Question

    Hi! I set up a summary column with function COUNT and Reset At Report. I placed this field in the repeating frame but it is only displaying the total number of records not a running count of the records ... I'm getting something like this: 3 Record 3

  • Identification of Mapping program at runtime

    Hi, I have a requirement in which based upon the value in a particular field I need to call the different mapping program. I already have the different scenrios with these mapping programs, now that if the value is "A", it needs to call the mapping p

  • PO Third Party History  - Amount Error

    Hi, I am having a big problem with a PO Third Party History which has the same value in Quantity and Amount. The amount value is incorrect. Please your help. I've checked MB51 report and the amount is Ok Thnks, Luis G. Edited by: Luis  Ganoza on Aug

  • Videos not opening

    The Videos app that comes with the iPad just stopped working. When I click on it, it just opens to a black screen. I tried powering down the iPad and restarting, I tried removing the videos and re-syncing them. Nothing has worked. It doesn't freeze t