Urgent case on NLS setting

I want to write a program to extract data from one oracle database and put that into another. Source is US7ASCII, and target is ZHS16GBK. Since OCI library will only read NLS_LANG env setting when initializing, there are only one NLS_LANG setting will work in single process. Is there any SQL statement can apply to client charset setting? How can access two charset database at same time with handcode programming? The language is C through OCI libarary.
Is that possible?
Many thx.

If your client and server character set are different, try this:
1. Call OCICharSetToUnicode by using OCI environment handle, which will convert characters from the client set into Unicode;
2. Call OCIUnicodeToCharSet by using user session handle, which will convert characters from Unicode into database server character set.
Anyway, by using OCI environment or user session handle, you can work on three characters in one session.
good luck,

Similar Messages

  • What is the different with the NLS setting in installation

    I mean,
    1.when I install the Oracle, set the native LANG to one(call it A), and client access it with the NLS set to another(call it B), what the different between if I install it with B directly? the client can get same result, isn't it?
    2.For I upgrade a Oracle7 to oracle8i, the NLS keep unchanged(ASCII), both the server and the Client(developed with developer2000) runs OK. But I need exchange data with another Oracle8, whose NLS is different(ZHKGB2312,I forget it). when I upgraded the server(change to the same one,zhkgb2312), the original table size changed from 6 to 12, so the client can not run correctly.
    Did anybody meet the same thing? and any advice for me to solve this problem?

    >>when I install the Oracle, set the native LANG to one(call it A),
    You mean your database was created using character set A ?
    >>and client access it with the NLS set to another(call it B)
    You mean your client NLS_LANG character set is B ?
    what the different between if I install it with B directly? the client can get same result, isn't it?
    From reading your 2nd question, I am guessing that you have Chinese data in both of your USA7ASCII and ZHKGB2312 database, and you want to exchange data between them. I am sure that this is working for all your English ASCII data, but not for the Chinese 2 byte data. This is because Oracle handles the character set conversions between the databases (character set conversion occurs only when the 2 character sets are different),the real problem is that you are using the wrong database character set to store your chinese data; US7ASCII can not process Chinese data correctly, they got into your database because you set the client character set to be the same as the database character set, hence you are fooling Oracle that you are feeding in US7ASCII data.
    When you try to exchange data between databases, Oracle does not know how to receive or send these Chinese character from inside an US7ASCII database, it does not know what character set these 8 bit characters are encoded in, US7ASCII should contain 128 characters only.
    Please refer to the Globalization Support FAQ - on the Globalization Support website http://technet.oracle.com/tech/globalization/content.html
    for more information on Database character set and NLS_LANG client character set.

  • NLS setting with class4 JDBC thin driver

    Hi,
    we have a NLS setting for defining the charset which we need for compatibility setting in our system. The problem is that we have a default behaviour with that setting that works well using the SQLPlus command line tool. The JDBC driver seems to ignore the NLS settings.
    Is there a way to tell the driver to read out the DB NLS settings?
    Maybe is there a way to tell the driver by argument the NLS setting?
    It would be best not to have code changes as we do compile the source against multiple databases wich would be a problem for Oracle!
    Thanks!

    Hi,
    we have a NLS setting for defining the charset which we need for compatibility setting in our system. The problem is that we have a default behaviour with that setting that works well using the SQLPlus command line tool. The JDBC driver seems to ignore the NLS settings.
    Is there a way to tell the driver to read out the DB NLS settings?
    Maybe is there a way to tell the driver by argument the NLS setting?
    It would be best not to have code changes as we do compile the source against multiple databases wich would be a problem for Oracle!
    Thanks!

  • Can I re-use a parameterized manual test case with different set of parameters in a different test plan?

    Can I re-use a parameterized manual test case with different set of parameters in a different test plan without impacting the parameters in the first test plan?

    Hi ssteele_1,
    Thank you for posting in MSDN forum.
    Generally, I know that if you want to re-use a parameterized manual test case and without impacting the parameters in the first test plan.
    I suggest you could try to right click this parameterized manual test case ->Select the Create copy and add to suite option like the following screen shot.
    Then the parameterized manual test case can be re-used as a new test case in this MTM and it will did not impact the original parameterized manual test case.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • About nls setting

    Hi Guys
    actually i am inserting a date value in my column
    as
    insert into data tran_date values(localtimestamp)
    so it inserts date according to 12hrs
    as my nls setting is
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    but i want to insert date as hh24 means 1 pm should be 13 hrs
    i do not have the sys rights & i want the format of 24 at system level
    so is their any other way out
    Regards

    Hi,
    It all about displaying the data.
    You can change the setting at session level to display the format the way you want.
    alter session set NLS_TIMESTAMP_FORMAT='DD-MON-RR HH24.MI.SSXFF'You can view the data you have inserted
    select to_char(tran_date,'DD-MON-RR HH24.MI.SSXFF') from dataRegards
    Anurag Tibrewal.

  • NLS-Setting in APEX 3.2.1

    Hi all
    I have installed XE-Universal 10.2 on a XP-Pro.
    I have installed Apex 3.2.1 successfully in the same database.
    in the registry, the value in oracle->key-xe->nls_lang as well as in all other ORACLE is AMERICAN_AMERICA.WE8ISO8859P1.
    The query
    select parameter,value from nls_database_parameters
    where parameter in ('NLS_CHARACTERSET','NLS_LANGUAGE','NLS_TERRITORY');
    shows American_America.AL32UTFS
    In the Explorer-Pages of APEX, it shows "Language: de-ch"
    The windows-regional-settings are German-Switzerland. But even when I change the settings to American-America the APEX still shows
    (bottom left corner) "Language: de-ch".
    Where is apex getting this info from and how to change?
    When I try to import the OEHR-Sample-Application, it first shows "The export file has been imported successfully"
    After some time with the screen showing "Installing application", it aborts with the message
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.
    ORA-01756: Anführungsstrich fehlt bei Zeichenfolge <pre>
    begin execute immediate 'alter session set nls_numeric_characters='''||wwv_flow_api.g_nls_numeric_chars||''''; end; </pre>
    I had the same problem first with the installation of apex 3.2. It turned out that the problem is, that in Switzerland the Numeric
    Group Separator is "'" which seems not to work, therefore i changed nls to GERMAN_GERMANY, where the group separator is ','. This worked fine.
    Any help is very much appreciated.
    Regards
    Urs
    Latest update: the same error applies when trying to install OEHR - sample application in the hosted demo environment
    Edited by: user1131151 on 06.10.2009 02:04

    Urs,
    This has been logged with development as the following bug.
    BUG 9081503 - ORA-20001 & ORA-01756 : WHEN TRYING TO IMPORT APPLICATION WITH DE-CH BROWSER
    Currently there is no fix as it is being worked on. However, the workaround of setting the browser to something else other than DE-CH will be just fine to get the application imported.
    Regards,
    Sunny Patel.

  • Getting NLS setting issues when calling procedure

    Hi,
    Can anybody suggest me what could the problem in the below issue?.
    i am invokeing procedure using DBAdapter. My soa version is 11.1.1.5. When i am calling procedure first time it is working fine. But when i am invoke second time
    it is showing below error. I observed that i am getting error alternativly. So kinldy advice me what could be the issue.
    Error:
    Cause: java.sql.SQLException: ORA-20001: Oracle error -20001: ORA-20001: Oracle error -2074: ORA-02074: cannot SET NLS in a distributed transaction has been detected in fnd_global.set_nls.set_parameter('NLS_LANGUAGE','AMERICAN'). has been detected in fnd_global.set_nls. ORA-06512: at "APPS.APP_EXCEPTION", line 72 ORA-06512: at "APPS.FND_GLOBAL", line 240 ORA-06512: at "APPS.FND_GLOBAL", line 1410 ORA-06512: at "APPS.FND_GLOBAL", line 1655 ORA-06512: at "APPS.FND_GLOBAL", line 2171 ORA-06512: at "APPS.FND_GLOBAL", line 2313 ORA-06512: at "APPS.FND_GLOBAL", line 2251 ORA-06512: at
    Regards,
    Adhi

    Hi:
    Another way to avoid this, is to use an Non-XA Datasource.
    Hope this helps
    best

  • Urgent..Please..setting node as selected programmatically

    Hi,
    Can somebody tell me how to set a tree node as selected programmatically?..
    i.e. I have tree in which all the nodes bear a name of the color. I have a thread which keeps changing the selected node, and based on the selection the color will be displayed in my right panel.(JSplitPane). This should happen automatically and user will keep seeing the node selection changed in the tree and corresponding color in the right side. I have used DefaultTreeModel to loop thro' the tree nodes. But I am unable to make a node as selected in the tree..Can anyone help me please..Its urgent..
    Thanx in advance.

    I couldn't remember, so I looked in the API documentation for JTree. It wasn't long before I came to a method "addSelectionPath(TreePath)", which is what you want. I leave it as an exercise for you to figure out how to get a TreePath from your node.

  • Urgent!How to set the default selected date for an OAMessageDateFieldBean

    Hi,
    There is messagetextinput on the page.the dataType is Date.
    if I do not input anything on this messagetextinput ,when I click on the date icon,the default selected date is today.
    But I want to set the default selected date base on another messagechoice.
    Is that possible?
    binghao.

    Sumit/Binghao,
    When u set deafult date in the OAMessageDateFieldBean, the OAInlineDatePickerBean (which are referring as datepicker popup windows), takes the default value from OAMessageDateFieldBean.
    If you explore OAMessageDateFieldBean in framework, u will find its nothing but a onClick js event is called on the imageicon attached with messagetextinput bean(in case the type is Date) and OAInlineDatePickerBean is opened in a modal js window.
    So, here is code for setting default value both in both in OAMessageDateFieldBean and OAInlineDatePickerBean :
    OAMessageDateFieldBean dateField = (OAMessageDateFieldBean)webBean.findIndexedChildRecursive(<item id>);
    dateField.setValue(pageContext,new Date(100, 06, 04)/* 4th July 2000*/);
    One more important thing, here Date class is java.sql.Date.I hope i am clear.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • NLS Setting of Oracle Client

    Can anybody let me know how to find the NLS Settings for an Oracle Client running on Win2K machine?
    Thanks in Advance.

    I am sorry my question was very brief. Let me write in more detail.
    I have two web servers, both accessing the same Oracle Database.
    One server is WinNT, which we are planning to decommission.
    The second server is Win2K, which is going to replace WinNT.
    In the database I have a table, say SSRFANC, whose two columns are of type CHAR.
    Column 1: TRAN_PERIOD CHAR (10)
    Column 2: PERIOD CHAR(8)
    Now when inserting to this table, in the ASP we are setting the parameter type for these two columns as ORATYPE_DATE.
    If I want to insert the value 003/2005 into the column PERIOD column, it works properly from WinNT Server but it does not work in Win2K. Through Win2K the value is saved as 05-03-01.
    Secondly if I want to insert the value 2005/06/22 in the column TRAN_PERIOD, it is saved as 05-06-22 in Win2K, but in WinNT its saved correctly.
    FYI, the ASP pages in both the servers are 100% same.
    The Locale setting in Win2K and WinNT are same. Both the machines have Japanese OS.
    Hope you can help me in this.

  • Urgently need help on setting up the ESM MANAGEMENT CONSOLE

    Gooday everyone,
    As i was trying to setup a demo ESM just to test out something before it goes into production server .
    and i always hit up into issue where everytime i will receive a message which is : Object reference not set to an instance of an object .
    after this message appear , i was unable to complete the ESM MANAGEMENT CONSOLE setup .
    moreover we have the NOVELL Edirectory server setup wizard , so i was using the we have no idea what was going on about it . Besides that , the login user name and password seems to be correct our system using are NOVELL ENDPOINT SECURITY 3.5 ( need to upgrade to 4.1IR in later after the 3.5 version are setup .. )
    is there any PRO will come to help ? we need this setup to run as usual ASAP :(any PRO can help will be much appreciated .
    thanks .
    from : NX ( a normal user start to use NOVELL ESM :( )

    nxgame,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • NLS setting chnage Issue

    Hi
    I did the following steps to change the session parameter. Even though I got the same results after doing so.
    Any suggestions....
    DB - 10gR2 on vista
    SELECT * FROM nls_session_parameters  --> DD.MM.YYYY HH24:MI:SS
    SELECT SYSDATE FROM dual  -->  21-Nov-2009 11:26:11
    ALTER SESSION SET nls_date_format = 'DD.MM.YYYY HH24:MI:SS';
    SELECT * FROM nls_session_parameters --> MM.DD.YYYY HH24:MI:SS
    SELECT SYSDATE FROM dual   --> 21-Nov-2009 11:26:11rgds
    shabar

    Hi,
    For me its working on 10GXE on XP.
    SQL> select sysdate from dual;
    SYSDATE
    23.11.2009 04:56:53
    SQL>  alter session set nls_date_format ='MM.DD.YYYY HH24:MI:SS';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    11.23.2009 04:57:50
    SQL>Regards,

  • Urgent-loading sound and setting cue point

    I'm trying to load an mps into a mediaDisplay component as i
    need to set cue points on the MP3, when i play the file there is a
    blip and the beginning:
    _root.createClassObject(MediaDisplay, "mdAudio",
    _global.intMovieDepth);
    _root.["mdAudio"].autoPlay = true;
    _root["mdAudio" + _global.intMovieDepth].setMedia(strMedia,
    "MP3");
    any ideas what i'm doing wrong?

    anyone?

  • Urgent Help - Criteria Based Set Help

    Hey all,
         I maybe going crazy here but i cant seem to figure out the following set. What I need is to do is create a set for disabled accounts which would consists of the following all users of have expired which is based on a business rule that
    states if you account "extract_date is older then 90 days from todays date" and your have an "Employee ID" your account will be disabled. Or if the EmployeeStatus dropdown is set to "disabled". 
        Below is a screenshot of what I am trying to do but I am having trouble with the finding employees who have Employee ID's based on that criteria.
         Any advice is greatly appreciated. 

    Check out Paul Williams blog on set criteria and see if any apply to your criteria.  http://blog.msresource.net/2011/10/06/set-and-group-criteria-filters/

  • Urgent. Unable to set up JSP in Weblogic server

              Hi,
              I wish to enable JSPs in the weblogic server. i went thru the bea documentation and
              added the following lines in hte weblogic.properties file :
              weblogic.httpd.documentRoot=XXX (The root directory for the jsps.
              weblogic.httpd.register.*.jsp=\ weblogic.servlet.JSPServlet
              weblogic.httpd.initArgs.*.jsp=\ pageCheckSeconds=1,\
              compileCommand=/opt/java1.2/bin/javac,\
              workingDir=XXX,\
              verbose =true
              After this, i started the weblogic. But apparently, it says that all the above properties are undeclared.
              I am not able to go further on this. Could anyone help me out on this.
              I am working on a HP machine.
              thanks in advance. prashant
              

    Hi,
              It is really hard to tell exactly what is going on without more information. If all you are using are JSPs, try
              removing the servlet classpath altogether. Put any helper classes into the weblogic classpath.
              Can you get one of the example JSPs working in your environment? This would be a good place to start just to verify
              that your environment is set up correctly.
              Can you post your JSP file that is not working?
              Hope this helps,
              Robert
              prashant wrote:
              > Good Morning.
              >
              > I just changed the path as you had said. now it stands as :
              >
              > weblogic.httpd.documentRoot=/sclNewArch/weblogic/pgupta/jsp
              >
              > workingDir=/sclNewArch/weblogic/pgupta/jspworkingdir
              >
              > weblogic.httpd.servlet.classpath=/sclNewArch/weblogic/pgupta/jspclass
              >
              > But still it gives the same error : javax.servlet.ServletException: Servlet class: could not be loaded - the reques
              > ted class wasn't found in the classpath
              >
              > Pleae help.
              >
              > Prashant
              >
              > Robert Patrick <[email protected]> wrote:
              > >1.) Do not make the working directory the same as the document root (or a subdirectory of the document root
              > >hierarchy).
              > >2.) Do not put the working directory in the servlet classpath.
              > >
              > >prashant wrote:
              > >
              > >> Hi,
              > >> Sorry, that was an error on my part while writing to this forum. i had actually done it correctly.
              > >> To tell you in more details, among other things, i have set the following parameters :
              > >>
              > >> weblogic.httpd.documentRoot=/sclNewArch/weblogic/pgupta/jsp
              > >>
              > >> workingDir=/sclNewArch/weblogic/pgupta/jsp
              > >>
              > >> weblogic.httpd.servlet.classpath=/sclNewArch/weblogic/pgupta/jsp
              > >>
              > >> Now, a small jsp that i made is in the same directory. When i try to run the directory with the following :
              > >> http://localhost:8013/a.jsp, it gives the error as given below. I am not able to understand what is the
              > >> problem, since my jsp is in the same directory where the class file is to be made.
              > >>
              > >> Please help.
              > >>
              > >> Thanks,prashant
              > >>
              > >> Fri Jan 05 17:31:45 CST 2001:<E> <ServletContext-General> Servlet failed with Ex
              > >> ception
              > >> javax.servlet.ServletException: Servlet class: could not be loaded - the reques
              > >> ted class wasn't found in the classpath
              > >> /sclNewArch/weblogic/pgupta/jsp
              > >> at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
              > >> mpl.java:299)
              > >> at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              > >> java:164)
              > >> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > >> pl.java:99)
              > >> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > >> textImpl.java:742)
              > >> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > >> textImpl.java:686)
              > >> at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              > >> ContextManager.java:247)
              > >> at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              > >> a:361)
              > >> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > >>
              > >>
              > >> "Tamilselvan Ramasamy" <[email protected]> wrote:
              > >> >"\" means that property continue in the next line.
              > >> >
              > >> >so your changes as follows
              > >> >
              > >> >weblogic.httpd.documentRoot = /opt/app1/jspdir
              > >> >
              > >> >weblogic.httpd.register.*.jsp=\
              > >> > weblogic.servlet.JSPServlet
              > >> >weblogic.httpd.initArgs.*.jsp=pageCheckSeconds=1,\
              > >> >compileCommand=/opt/java1.2/bin/javac,\
              > >> > workingDir=XXX,\
              > >> > verbose =true
              > >> >
              > >> >/selvan
              > >> >Captura Software Inc
              > >> >
              > >> >"prashant" <[email protected]> wrote in message
              > >> >news:[email protected]...
              > >> >>
              > >> >> Hi,
              > >> >>
              > >> >> I wish to enable JSPs in the weblogic server. i went thru the bea
              > >> >documentation and
              > >> >> added the following lines in hte weblogic.properties file :
              > >> >>
              > >> >> weblogic.httpd.documentRoot=XXX (The root directory for the jsps.
              > >> >>
              > >> >> weblogic.httpd.register.*.jsp=\ weblogic.servlet.JSPServlet
              > >> >> weblogic.httpd.initArgs.*.jsp=\ pageCheckSeconds=1,\
              > >> >> compileCommand=/opt/java1.2/bin/javac,\
              > >> >> workingDir=XXX,\
              > >> >> verbose =true
              > >> >> After this, i started the weblogic. But apparently, it says that all the
              > >> >above properties are undeclared.
              > >> >>
              > >> >> I am not able to go further on this. Could anyone help me out on this.
              > >> >>
              > >> >> I am working on a HP machine.
              > >> >>
              > >> >> thanks in advance. prashant
              > >> >
              > >> >
              > >
              

Maybe you are looking for

  • ColdFusion 8 Fails to start after update Java for Mac OSX 10.5 Update 4

    I have been using ColdFusion on a Mac for years. Now CF fails to start after I updated Java for Mac OS X 10.5 Update 4. I usually start by typing in the terminal window sudo /Applications/ColdFusion8/bin/ColdFusion start. There is a crash report but

  • Pages 5.2 file is password protected but doesn't ask for password and is locked and not accessible.

    MacBook Pro, OS X 10.9.2, Pages 5.2 File is password protected but when I go to open it I'm not asked for password and therefore the file can't be opened.  It shows up in the list of files as locked.  I have opened this file with the password many ti

  • CS3 JavaScript error on startup

    Hi! I've been playing around with startup scripts, and everything was nice until I've tried to make indesign alert a variable and some string. After that I get the following JavaScript error messages on startup: Error number: 45 Error String: Object

  • Unassign Server from a Corrupted Oracle VM Manage 3.1.1 instance

    My problem is that the Oracle Database holding the metadata of the VM Manager that currently owns my VM Server died completely and I'm unable to log in to the VM Manager to manage the VMs living in the Server. I have no (explicit) backup from the Man

  • Very urgent-----help in performance tuning

    hai all, I had used inner join for getting data from 5 tables. performance is very low in this case. now i want to increase the performance. how can i do this. coding for the select statement is ...... SELECT agpnr bname1 bname2 bpstlz bort01 bstras