Nls_lang and nvarchar2

I setup several tables in a database as nvarchar2... The default charset and nls_charset are both japanese (I forget the actual name sjis or something)... At any rate... Whenever I try to insert 20 japanese characters into a nvarchar2(20) field it blows up on the ora-01401 error (data too long for column)... if nvarchar2(20) gives me the same thing as varchar2(20) what's the point??? Am I missing something???

Well... Even when I used US7ASCII for the charset and JA16SJIS for the nls_charset I still got 20 bytes instead of 20 chars for a nvarchar2(20) field... Upon reading some oracle docs I see... (quoting the 8i nls guide)
"When using the NCHAR, NVARCHAR2, and NCLOB data types, the width specification can be in terms of bytes or characters depending on the encoding scheme used. If the NCHAR character set uses a variable-width multibyte encoding scheme, the width specification refers to bytes. If the NCHAR character set uses a fixed-width multibyte encoding scheme, the width specification will be in characters. For example, NCHAR(20), using the variable-width multibyte character set JA16EUC, will allocate 20 bytes while NCHAR(20) using the fixed-width multibyte character set JA16EUCFIXED will allocate 40 bytes."
So that says to me that if I use a variable-width MULTI-byte charset I still only get single byte storage (ie 20 bytes instead of 20 chars).. That makes no sense to me...
Basically what I'm trying to do is decide on a database schema for a product that will end up in client's databases.. I'm not so sure that I can gaurantee that a Japanese client will use the JA16SJISFIXED charset versus the JA16SJIS charset.... I want to allow for any supported language but I also don't want to waste space by making all my fields triple thier current size (to allow for triple byte charsets)...
null

Similar Messages

  • How to know the existing NLS_LANG and Character Set

    Dear all
    How can I know about the existing NLS_LANG and Character set setting for Oracle 8 (Unix platform)
    Thank you
    Kwan

    You can see this from the following
    NLS_DATABASE_PARAMETERS (i think it is how database was created)
    NLS_INSTANCE_PARAMETERS (this instance)
    NLS_SESSION_PARAMETERS (this you can set just for your login session).
    HTH
    Srinivasa Medam

  • Question about NCHAR and NVARCHAR2 in Oracle 8.1.7

    I am using Oracle 8.1.7 on Red Hat 7.2. The database encoding is UTF8.
    I created a table with a field: col1 nvarchar2(5).
    But I can insert only ONE Chinese character to that field.
    Doesn't it supposed to be 5?
    (I can insert a 5 english characters into the field)
    It seems that a Chinese character occupies 3 bytes in UTF8.
    Doesn't the size of NCHAR and NVARCHAR2 refer to the size of CHARACTERS not bytes?
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_CHARACTERSET UTF8
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZH:TZM
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZH:TZM
    NLS_DUAL_CURRENCY $
    NLS_NCHAR_CHARACTERSET UTF8
    NLS_COMP BINARY

    The National Character Set in 8i was only meant to support a few special Asian character sets. Though it is set to whatever you set the database to the NCHAR columns will not work properly for UTF8. You will need to use SQL CHAR fields in order to support UTF8 in 8i. And the semantics are byte. In Oracle9i the National Character Set exclusively supports Unicode via the character sets UTF8 and Al16UTF16. The default is Al16UTF16 which is UTF-16. The 9i NCHAR fields are character semantics so field(5) would be 5 characters not bytes. There are a couple of papers on our home page that talk about unicode support at:
    http://technet.oracle.com/tech/globalization/content.html
    Oracle Unicode Database Support
    Migration to Unicode Datatypes for Multilingual Databases and Applications in Oracle9i

  • Difference between NLS_LANG and LANG

    Hi all,
    May i know the difference between NLS_LANG and LANG? Currently they are set as NLS_LANG=american.america.WE8ISO8859P1 and LANG=c as my environment variables. Will it post any problem for the future usage of Oracle? Thanks.

    AFAIK, LANG is not related to Oracle. For an explanation of NLS_LANG, see MOS Doc 158577.1 (NLS_LANG Explained (How does Client-Server Character Conversion Work?))
    HTH
    Srini

  • To_number() with format pattern and nvarchar2

    Hi,
    I've had a problem with converting a number in US format in to a number. Due to the settings of our Oracle we have German locale settings. Thus I use the NLS format parameters in the to_number function. It works pretty well if I set the number string directly into the function call. However it did not work a the column of type nvarchar2 (which is actually permitted according to the documentation). This simple statement shows the problem:
    alter session set NLS_NUMERIC_CHARACTERS = ',.';
    DECLARE
    evalue NVARCHAR2(20);
    evalue2 NUMBER(25, 15);
    BEGIN
    SELECT '5.124' INTO evalue FROM dual;
    SELECT to_number(evalue,
    '9G990D9999999999999999999',
    'NLS_NUMERIC_CHARACTERS = ''.,''') s
    INTO evalue2
    FROM dual;
    dbms_output.put_line(evalue2);
    END;
    It gives me an ORA-01722 invalid number. It can be fixed by changing the column to e.g. VARCHAR(20) or just use an cast before passing to the to_number()
    DECLARE
    evalue NVARCHAR2(20);
    evalue2 NUMBER(25, 15);
    BEGIN
    SELECT '5.1234' INTO evalue FROM dual;
    SELECT to_number(cast(evalue as varchar2(20)),
    '9G990D9999999999999999999',
    'NLS_NUMERIC_CHARACTERS = ''.,''') s
    INTO evalue2
    FROM dual;
    dbms_output.put_line(evalue2);
    END;
    I played around with the number and found out that the specified NLS_NUMERIC_CHARACTERS is not applied when the column type is NVARCHAR2 and is still trying to convert it using the session's locale settings.
    Does anybody know if this is fixed already in a later version?
    System: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
    Kind regards,
    Mario

    Hi,
    It seems to work if you first make it a char before the to_number :DECLARE
    evalue NVARCHAR2(20);
    evalue2 NUMBER(25, 15);
    BEGIN
    SELECT '5.124' INTO evalue FROM dual;
    SELECT to_number(to_char(evalue),          <--- to_char added here
    '9G990D9999999999999999999',
    'NLS_NUMERIC_CHARACTERS = ''.,''') s
    INTO evalue2
    FROM dual;
    dbms_output.put_line(evalue2);
    END;
    /

  • NLS_LANG and the Thin Driver

    Does the Java JDBC thin driver make use of the NLS_LANG parameter in the client?
    As I understood so far, it doesn't (good) - but is the NLS_LANG parameter used on the server?
    null

    The JDBC Thin driver does not make use of the NLS_LANG on the client, because there is no ORACLE_HOME.
    The client character set is set to the database character set. The client Oracle LANGUAGE and TERRITORY settings are based on the local Java Locale settings.

  • Bea and nvarchar2 data type in oracle

    Does weblogic server supports nvarchar2 data type in Oracle?..
    I use CMP with java data type String mapped to nvarchar2 data type to oracle.when
    i try to create a bean it throws "java.sql.SQLException: ORA-12704: character set
    mismatch". Is there any configuration in the server to set the character set?..
    can anyone help me on this?...

    Does weblogic server supports nvarchar2 data type in Oracle?..
    I use CMP with java data type String mapped to nvarchar2 data type to oracle.when
    i try to create a bean it throws "java.sql.SQLException: ORA-12704: character set
    mismatch". Is there any configuration in the server to set the character set?..
    can anyone help me on this?...

  • Euro-sign (and Greek) doesn't work even with nchar/nvarchar2

    This is something that has been blocking me for a few days now, and I'm running out of ideas.
    Basically, the problem can be summarised as follows:
    declare
        text nvarchar2(100) := 'Make €€€ fast!';
    begin
      dbms_output.put_line( text );
    end;And the output (both in SQL Developer and Toad) is:
    Make ¿¿¿ fast!See, I was under the impression that by using nchar and nvarchar2, you avoid the problems you get with character sets. What I need this for is to check (in PL/SQL) what the length of a string is in 7-bit units when converted to the GSM 03.38 character set. In that character set, there are 128 characters: mostly Latin characters, a couple of Greek characters that differ from the Latin ones, and some Scandinavian glyphs.
    Some 10 other characters, including square brackets and the euro sign, are escaped and take two 7-bit units. So, the above message takes 17 7-bit spaces.
    However, if I make a PL/SQL function that defines an nvarchar2(128) with the 128 standard characters and another nvarchar2(10) for the extended characters like the euro sign (the ones that take two 7-bit units), and I do an instr() for each character in the source string, the euro sign gets converted to an upside-down question mark, and because the delta (the first Greek character in the GSM 03.38 character set) also becomes an upside-down question mark, the function thinks that the euro sign is in fact a delta, and so assigns a length of 1.
    To try to solve it, I created a table with an nchar(1) for the character and a smallint for the number of units it occupies. The characters are entered correctly, and show as euro signs and Greek letters, but as soon as I do a query, I get the same problem again. The code for the function is below:
      function get_gsm_0338_length(
        text_content in nvarchar2
      ) return integer
      as
        v_offset integer;
        v_length integer := 0;
        v_char nchar(1);
      begin
        for i in 1..length(text_content)
        loop
          v_char := substr( text_content, i, 1 );
          select l
          into v_offset
          from gsm_0338_charset
          where ch = v_char;
          v_length := v_length + v_offset;
        end loop;
        return v_length;
        exception
          when no_data_found then
            return length(text_content) * 2;
      end get_gsm_0338_length;Does anybody have any idea how I can get this to work properly?
    Thanks,
    - Peter

    Well, the person there used a varchar2, whereas I'm using an nvarchar2. I understand that you need the right codepage and such between the client and the database if you use varchar2, which is exactly the reason why I used the nvarchar2.
    However, if I call the function from /Java/, it does work (I found out just now). But this doesn't explain why SQL Developer and Toad are being difficult, and I'm afraid that, because this function is part of a much bigger application, I'll run into the same problem.
    - Peter

  • Help Oracle 10g+PHP and Bengali language support !!!!

    Hi All:
    i have a emp having a column names namewhich is of nvarchar2 datatype. What I want is to insert a value from a html from which will insert Bengali language as my input to the name filed in my database and show me the same on the browser when required.
    Here am attaching a sample code which am using to connect/insert and show my table. This is working perfectly fine.
    Please help me as am unable to insert data in local language. Please guide me the steps how to configure the NLS_LANG and how to do it.
    ht.html
    =====
    <form action="insert.php" method="post">
    <p> Your ID : <input type="number" name="id" /></p>
    <p> Your NAME: <input type="text" name="name" /></p>
    <p><input type="submit" /></p>
    insert.php
    =======
    <?php
    # if ($REQUEST_METHOD=="POST")
    // Before running, create the table:
    // CREATE TABLE MYTABLE (mid NUMBER, myd VARCHAR2(20));
    $dbuser = "bob";
    $dbpass = "bob";
    #$dbtsn = "orcl"
    $dbconn = oci_connect($dbuser, $dbpass);
    echo "The Oracle Database established";
    $query = "INSERT INTO demo
         (id,name)
    VALUES('".$_POST['id']."','".$_POST['name']."')";
    $resultSet = oci_parse($dbconn,$query);
    if (oci_execute($resultSet))
    echo ("<BR> Record inserted");
    else
    echo ("<BR> error!!!!!!");
    ?>
    showv.php
    ========
    <?php
    $conn = oci_connect('bob', 'bob', 'orcl');
    if (!$conn) {
    $e = oci_error();
    print htmlentities($e['message']);
    exit;
    $query = 'SELECT * FROM demo';
    $stid = oci_parse($conn, $query);
    if (!$stid) {
    $e = oci_error($conn);
    print htmlentities($e['message']);
    exit;
    $r = oci_execute($stid, OCI_DEFAULT);
    if (!$r) {
    $e = oci_error($stid);
    echo htmlentities($e['message']);
    exit;
    print '<table border="2">';
    while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS)) {
    print '<tr>';
    foreach ($row as $item) {
    print '<td>'.($item?htmlentities($item):' ').'</td>';
    print '</tr>';
    print '</table>';
    oci_close($conn);
    ?>
    I am using RedHat Enterprise linux 4 update 1 and Oracle 10g.
    Regards,
    Pradyumna

    Right... I found out how you can solve this, well not through the web interface... but oh well it is possible though...
    the error I was getting was: ORA-01704:     string literal too long.
    the keyword/phrase is "bind variables"... Did a little more searching and found this site:
    http://www.akadia.com/services/ora_bind_variables.html
    So basically you use bind variables to insert data which fills more than 4000 bytes...
    Since the data I will be inserting will be inserted via Java/.NET application I found the section called "Bind Variables in VB, Java and other applications" the most interesting... During my testing and I had neglected to use PreparedStatements in Java, and according to the site, using PreparedStatement provided an easier solution as the API does most of the work for you. My solution was to create a small program which read the large amounts of data from a file then feed this to a PreparedStatement, setObject or setASCIIStream/setCharacterStream, then execute it.
    Well I hope this helps other people who get the same error code.

  • Client in UTF8 and database in we8iso8859p1

    Hi men,
    this is the situation:
    - the database is in we8iso8859P1
    - i have some clients with NLS_LANG= French_France.we8iso8859p1
    - i have some new clients which will use new tables with nvarchar2 type with NLS_LANG=American_America.UTF8 (client side)
    and with NLS_NCHAR_CHARACTERSET=UTF8 (database side) to support japaneese character.
    my questions are:
    - is all correct ?
    - is it possible for the client (with NLS_LANG=American_America.UTF8 (client side)) to insert or read data without japaneese characters on the we8iso8859p1 database (insert with japaneese characters wil be only in tables with nvarchar2) ?
    - can i have some problems with the old client screens with the field lenght (UTF8 is 1 to 3 bytes we8iso8859p1 is fixed lenght) ?
    Thank's by advance.

    - is all correct ?
    What is the client platform? If it is Windows, then both NLS_LANG and the database character set should actually be WE8MSWIN1252.
    Also, the recommended approach is to migrate your database character set to AL32UTF8 and not use NVARCHAR2. Also, Japanese characters would occupy less space in the default NCHAR character set AL16UTF6 (I am assuming you use Oracle database 9.0 or higher).
    - is it possible for the client (with NLS_LANG=American_America.UTF8 (client side)) to insert or read data without japaneese characters on the we8iso8859p1 database (insert with japaneese characters wil be only in tables with nvarchar2) ?
    This depends on the technology in which the client application is written, the Oracle API in use, the operating platform and its locale settings, etc. In general, it is possible, but it does not mean that it is correct in your environment. NLS_LANG must match the operating system and API. You cannot set it as you like, only because the selected character set fits your needs.
    - can i have some problems with the old client screens with the field lenght (UTF8 is 1 to 3 bytes we8iso8859p1 is fixed lenght) ?
    Again, it depends on implementation details of your application.
    -- Sergiusz

  • R12.1.3 :- XML concurrent request giving completed and "WARNING"

    Dear All,
    One particular Concurrent request was not running fine.
    Its show compleated* in Phase and in Status it showing *"warning"*.
    Actually its a "Supplier Invoice Aging"
    and the log file says like below
    :++---------------------------------------------------------------------------++
    XXXXX Custom Application: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXOMNSOS module: XXXXX Supplier Invoice Aging report
    ++---------------------------------------------------------------------------++
    Current system time is 18-FEB-2011 11:24:40
    ++---------------------------------------------------------------------------++
    ++-----------------------------+
    +| Starting concurrent program execution...+
    ++-----------------------------+
    Arguments
    P_COMP_FR='008'
    P_COMP_TO='008'
    P_VENDOR_ID='115'
    p_account='320001'
    P_PERIOD_TYPE='Weekly Aging'
    p_as_of_date='2009/08/19 00:00:00'
    +-- Start of Reports Command --+
    +/ebiz/apps/TEST/inst/apps/TEST_odhdbtest/ora/10.1.2/bin/appsrwrun.sh+
    P_CONC_REQUEST_ID=1429988
    P_COMP_FR='008'
    P_COMP_TO='008'
    P_VENDOR_ID='115'
    p_account='320001'
    P_PERIOD_TYPE='Weekly Aging'
    p_as_of_date='2009/08/19 00:00:00'
    report=/ebiz/apps/TEST/apps/apps_st/appl/xxomn/12.0.0/reports/US/XXOMNSOS.rdf
    batch=yes
    destype=file
    desname=/ebiz/apps/TEST/inst/apps/TEST_odhdbtest/logs/appl/conc/out/o1429988.out
    desformat=XML
    +-- End of Reports Command --+
    Request language is :
    AMERICAN
    Request territory is :
    AMERICA
    Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
    APPLLCSP Environment Variable set to :
    Previous NLS_LANG Environment Variable was :
    American_America.UTF8
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    +'.,'+
    Enter Password:
    Report Builder: Release 10.1.2.3.0 - Production on Fri Feb 18 11:24:41 2011
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Reset original NLS_LANG in environment as :
    American_America.UTF8
    ++---------------------------------------------------------------------------++
    Start of log messages from FND_FILE
    ++---------------------------------------------------------------------------++
    ++---------------------------------------------------------------------------++
    End of log messages from FND_FILE
    ++---------------------------------------------------------------------------++
    ++---------------------------------------------------------------------------++
    Executing request completion options...
    Output file size:
    +12664+
    ++------------- 1) PUBLISH -------------++
    Beginning post-processing of request 1429988 on node ODHDBTEST at 18-FEB-2011 11:24:55.
    Post-processing of request 1429988 failed at 18-FEB-2011 11:24:56 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ++--------------------------------------++
    ++------------- 2) PRINT -------------++
    Not printing the output of this request because post-processing failed.
    ++--------------------------------------++
    Finished executing request completion options.
    ++---------------------------------------------------------------------------++
    Concurrent request completed
    Current system time is 18-FEB-2011 11:24:56
    ++---------------------------------------------------------------------------++
    i have traced the concurrent request log file and its log says;-
    [2/18/11 11:06:41 AM] [1926299:RT1429947] Completed post-processing actions for request 1429947.
    [2/18/11 11:24:56 AM] [OPPServiceThread1] Post-processing request 1429988.
    [2/18/11 11:24:56 AM] [1926299:RT1429988] Executing post-processing actions for request 1429988.
    [2/18/11 11:24:56 AM] [1926299:RT1429988] Starting XML Publisher post-processing action.
    [2/18/11 11:24:56 AM] [1926299:RT1429988]
    Template code: XXOMNSOS
    Template app: XXOMN
    Language: en
    Territory: US
    Output type: RTF
    [2/18/11 11:24:56 AM] [1926299:RT1429988] Output file was found but is zero sized - Deleted
    [2/18/11 11:24:56 AM] [UNEXPECTED] [1926299:RT1429988] java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:570)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:235)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:302)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:176)
    Caused by: org.xml.sax.SAXParseException: <Line 1, Column 3>: XML-20108: (Fatal Error) Start of root element expected.
    at oracle.xdo.parser.v2.XMLError.flushErrorHandler(XMLError.java:441)
    at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:303)
    at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:343)
    at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:285)
    at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
    ... 16 more
    [2/18/11 11:24:56 AM] [1926299:RT1429988] Completed post-processing actions for request 1429988.
    [2/18/11 12:19:47 PM] [OPPServiceThread1] Post-processing request 1430104.
    [2/18/11 12:19:47 PM] [1926299:RT1430104] Executing post-processing actions for request 1430104.
    [2/18/11 12:19:47 PM] [1926299:RT1430104] Starting XML Publisher post-processing action.
    I am not able to understand this,, Is this a issue of DBA or Functional or Developers ??
    i have refered few documents here i would like to mention
    1) Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite [ID 364547.1]
    2) R12: Tax Reconciliation By Taxable Account: Post-Processing Action Failed [ID 740223.1]
    3) Statement Generation Program ending in XDOException "java.lang.reflect.InvocationTargetException" [ID 869522.1]
    i througly checked with the above 3rd Document, ever settings are very fine,, no changes in this,, then i bounced the concurrent. the notes says ths problem may occure because of insufficient of space or not proper setup of xml, !;(
    Can any one kindly tell me from where i have to start,, ;(
    Thanks in Advance
    Hameed
    Edited by: Hameed on Feb 18, 2011 6:37 AM

    Yes ,, there is some data's
    encoding="UTF-8"?>
    +<!-- Generated by Oracle Reports version 10.1.2.3.0 -->+
    +<T04101344>+
    +<LIST_G_COM_ACC>+
    +<G_COM_ACC>+
    +<COMACC>008320001</COMACC>+
    +<ACCOUNT>Trade Payables[320001]</ACCOUNT>+
    +<COMPANY>OP08-BINARY</COMPANY>+
    +<LIST_G_VEN>+
    +<G_VEN>+
    +<VENDOR_NAME>XXXXXXX</VENDOR_NAME>+
    +<LIST_G_INV>+
    +<G_INV>+
    +<INV_CURR>AED</INV_CURR>+
    +<VENDOR_NAME1>XXXXXX</VENDOR_NAME1>+
    +<PAID_AMOUNT>404167</PAID_AMOUNT>+
    +<INVOICE_NUM>2652</INVOICE_NUM>+
    +<DUE_DATE>27-NOV-08</DUE_DATE>+
    +<INVOICE_AMOUNT>416668</INVOICE_AMOUNT>+
    +<DUE_DAYS>265</DUE_DAYS>+
    +<AMOUNT_REMAINING>12501</AMOUNT_REMAINING>+
    +<AMT_PER>3</AMT_PER>+
    +<DUE1></DUE1>+
    +<DUE2></DUE2>+
    +<DUE3></DUE3>+
    +<DUE4></DUE4>+
    +<DUE5>12501</DUE5>+
    +<DUE6></DUE6>+
    +<DUE7></DUE7>+
    +<CF_1></CF_1>+
    +</G_INV>+
    +<G_INV>+
    +<INV_CURR>AED</INV_CURR>+
    +<VENDOR_NAME1>XXXXXX</VENDOR_NAME1>+
    +<PAID_AMOUNT>104167</PAID_AMOUNT>+
    +<INVOICE_NUM>2668</INVOICE_NUM>+
    +<DUE_DATE>27-NOV-08</DUE_DATE>+
    +<INVOICE_AMOUNT>208334</INVOICE_AMOUNT>+
    +<DUE_DAYS>265</DUE_DAYS>+
    +<AMOUNT_REMAINING>104167</AMOUNT_REMAINING>+
    +<AMT_PER>50</AMT_PER>+
    +<DUE1></DUE1>+
    +<DUE2></DUE2>+
    +<DUE3></DUE3>+
    +<DUE4></DUE4>+
    +<DUE5>104167</DUE5>+
    +<DUE6></DUE6>+
    +<DUE7></DUE7>+
    +<CF_1></CF_1>+
    +</G_INV>+
    +<G_INV>+
    +<INV_CURR>AED</INV_CURR>+
    +<VENDOR_NAME1>XXXXXX</VENDOR_NAME1>+
    +<PAID_AMOUNT>104167</PAID_AMOUNT>+
    +<INVOICE_NUM>2696</INVOICE_NUM>+
    +<DUE_DATE>29-NOV-08</DUE_DATE>+
    +<INVOICE_AMOUNT>208334</INVOICE_AMOUNT>+
    +<DUE_DAYS>263</DUE_DAYS>+
    +<AMOUNT_REMAINING>104167</AMOUNT_REMAINING>+
    +<AMT_PER>50</AMT_PER>+
    +<DUE1></DUE1>+
    +<DUE2></DUE2>+
    +<DUE3></DUE3>+
    +<DUE4></DUE4>+
    +<DUE5>104167</DUE5>+
    +<DUE6></DUE6>+
    +<DUE7></DUE7>+
    +<CF_1></CF_1>+
    +</G_INV>+
    +<G_INV>+
    Tail of the .out file
    +</LIST_G_COM_ACC>+
    +<DUE1_RANGE_FR>1</DUE1_RANGE_FR>+
    +<DUE2_RANGE_FR>8</DUE2_RANGE_FR>+
    +<DUE3_RANGE_FR>15</DUE3_RANGE_FR>+
    +<DUE4_RANGE_FR>22</DUE4_RANGE_FR>+
    +<DUE5_RANGE_FR>29</DUE5_RANGE_FR>+
    +<DUE6_RANGE_FR></DUE6_RANGE_FR>+
    +<DUE7_RANGE_FR></DUE7_RANGE_FR>+
    +<DUE1_RANGE_TO>7</DUE1_RANGE_TO>+
    +<DUE2_RANGE_TO>14</DUE2_RANGE_TO>+
    +<DUE3_RANGE_TO>21</DUE3_RANGE_TO>+
    +<DUE4_RANGE_TO>28</DUE4_RANGE_TO>+
    +<DUE5_RANGE_TO>9999</DUE5_RANGE_TO>+
    +<DUE6_RANGE_TO></DUE6_RANGE_TO>+
    +<DUE7_RANGE_TO></DUE7_RANGE_TO>+
    +<TITLE1>1 Week</TITLE1>+
    +<TITLE2>2 Weeks</TITLE2>+
    +<TITLE3>3 Weeks</TITLE3>+
    +<TITLE4>4 Weeks</TITLE4>+
    +<TITLE5>Over 4 weeks</TITLE5>+
    +<TITLE6></TITLE6>+
    +<TITLE7></TITLE7>+
    +<DUE1_NET>325307.5</DUE1_NET>+
    +<DUE2_NET></DUE2_NET>+
    +<DUE3_NET></DUE3_NET>+
    +<DUE4_NET></DUE4_NET>+
    +<DUE5_NET>1071029</DUE5_NET>+
    +<DUE6_NET></DUE6_NET>+
    +<DUE7_NET></DUE7_NET>+
    +<AMT_REM_NET>1396336.5</AMT_REM_NET>+
    +<P_VENDOR_NAME>XXXXXX</P_VENDOR_NAME>+
    +<P_COMPANY_FR>OP08-BINARY</P_COMPANY_FR>+
    +<P_COMPANY_TO>OP08-BINARY</P_COMPANY_TO>+
    +<P_PERIOD_NAME>Weekly Aging</P_PERIOD_NAME>+
    +<P_ACCOUNT_NAME>Trade Payables</P_ACCOUNT_NAME>+
    +<P_DATE>2009/08/19 00:00:00</P_DATE>+
    +</T04101344>+
    These are the data's its showing.. :(
    Regards,
    Hameed

  • Cannot Input and Display Chinese Characters by using ODBC Applications

    Dear all,
    I am trying to input the Simplified Chinese Characters in the Oracle Database Ver 9.2 running on a UNIX AIX server. The client application we are using is th MS Access 2003 running on a MS Windows XP English version SP 2 without multi-language pack. MS Office 2003 is also an English version.
    Database setting is:
    NLS_CHARACTERSET=US7ASCII
    NLS_NCHAR_CHARACTERSET=AL16UTF16
    The Oracle Client used is also ver 9.2 with the ODBC driver ver 9.2. I have tried the following NLS_LANG settings by chaging the registry without any NLS_LANG environment settings:
    AMERICAN_AMERICA.ZHT16MSWIN950
    AMERICAN_AMERICA.ZHS16GBK
    AMERICAN_AMERICA.ZHT16HKSCS
    AMERICAN_AMERICA.AL32UTF8
    I have tied to load some Chinese Characters in by sqlload and by using the NLS_LANG AMERICAN_AMERICA.ZHT16MSWIN950, AMERICAN_AMERICA.ZHS16GBK and AMERICAN_AMERICA.ZHT16HKSCS, they can be display perfectly in SQLPLUS. But when using the same NLS_LANGs and display in the ACCESS, only ???? are displayed.
    When I tried to insert Chinese in ACCESS, the character changed to ???? again. No matter what Chinese characters I inserted by MS ACCESS, the ???? code can be dump with the binary code "03, 0f".
    Are there any methods or settings I need to change to make ACCESS an application for inserting and displaying Chinese characters from the Oracle database?
    I have tried to set the Non-Unicode setting in the Windows Locale setting:
    Chinese (Taiwan) (With AMERICAN_AMERICA.ZHT16MSWIN950),
    Chinese (Hong Kong S.A.R) (with AMERICAN_AMERICA.ZHT16HKSCS) and
    Chinese (PRC) (with AMERICAN_AMERICA.ZHS16GBK)
    when inserting the Chinese Characters by Access. But they all failed with ???? inserted in the DB.
    Please kindly advise what should be done.
    Thanks.

    Are you trying to store the character data in char/varchar2 columns?
    If that's the case then you have a problem, since a US7ASCII character set can only handle, well, ascii data.
    If you are trying to store the data in columns of nchar datatypes, then there might be a problem with literals because literals are converted to database character set first, before conversion to national (nchar) character set. Such data loss can also happen depending on how binds or oci calls are performed.
    You could use the dump() function to verify what's actually stored in a database column, without a db - client conversion happening that may distort the facts.
    Example:
    SQL> select col, dump(col, 1016) from table where some_condition;

  • XML Report completing in warning and not displaying output

    Hi
    XML report for particular period completing in warning, throwing error:
    Beginning post-processing of request 60011540 on node TSGSD4901 at 03-JUL-2012 10:55:56.
    Post-processing of request 60011540 failed at 03-JUL-2012 10:55:57 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Checked OPP logs:
    Language: en
    Territory: US
    Output type: EXCEL
    [6/20/12 3:07:01 PM] [UNEXPECTED] [1657868:RT60695905] java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor716.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:673)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:421)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:240)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5926)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3458)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3547)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:290)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert to number.
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
         ... 17 more
    But i am unable to trace . Appreciate your help!!!
    Thanks

    Thanks Rutvi
    Log file is as below:
    Custom Account Receivable: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    GEPSPRGBILREC_DD module: GEPS Progress Billing to GL Reconciliation Report
    Current system time is 21-JUN-2012 12:37:15
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_PERIOD_NAME='JUN-12'
    P_SOB_ID='21'
    P_REP_SOB_ID='9'
    APPLLCSP Environment Variable set to :
    XML_REPORTS_XENVIRONMENT is :
    /gpsescp1/erpapp/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /gpsescp1/erpapp/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    MSG-00100: DEBUG: AfterPForm_Trigger -
    Report Builder: Release 6.0.8.28.0 - Production on Thu Jun 21 12:37:15 2012
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 60751035 on node TSGSP4101 at 21-JUN-2012 12:37:46.
    Post-processing of request 60751035 failed at 21-JUN-2012 12:37:46 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ------------- 2) PRINT   -------------
    Not printing the output of this request because post-processing failed.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 21-JUN-2012 12:37:46
    2 Point) How can i get OPP CONCURRENT Responce time & OPP CONCURRENT Process time?
    Thanks

  • Report Servers with different NLS_LANGs

    Is it possible to have one (default) in-process report server set to one NLS_LANG and another added in-process report server set to a different NLS_LANG? If so, what config needs to be set to accomplish it?

    Why do you want to use the inline server? Better would be to create a Report Server for each language (I think). Just set the NLS_LANG before starting each Report Server.
    In most cases it's always good to create an own dedicated Report Server instead of using the inline server. It doesn't cost more resources if that's your worry!
    Also worth investigating Franks hint (above). I too have heard of it, although never tested it.
    Regards,
    Martin Malmström

  • NLS_LANG setting for a client with multiple Oracle servers

    Hello!
    We have a web application which has to connect to one of the Oracle servers with different charactersets. When the NLS_LANG on the client is a single byte encoding and the server has a single byte encoding there are no problems. We have now a server with NLS_CHARACTERSET UTF8 and all special (hungarian accented) character are replaced.
    When we set the client to UTF8 the rest of servers does not work.
    What is the solution for one client and multiple servers with different encoding?
    Is there a special key in connection string?
    I tried to change the nls_lang with an alter session statement but without success.
    Regards,
    emeriqus

    NLS_LANG is not depending on the database side, it's a CLIENT setting to "let Oracle know what encoding is used on the CLIENT" so that Oracle can do the conversion from the client encoding to the database (NLS_CHARACTERSET) encoding.
    for ONE application/client the is only ONE correct NLS_LANG value, regardless of the database NLS_CHARACTERSET
    If you web application is really an UTF8 application (check with your vendor) then you can perfectly use a UTF8 client setting and a 8 bit database
    Of course, you will be limited to the database side in this case seen the 8 bit characterset does not know all the characters in UTF8
    The fact that setting the NLS_LANG to UTF8 "does not work" with your web application is simply the fact your application is not a UTF8 env.
    Setting nls_lang to UTF8 will not "magically" make your application UTF8, NLS_LANG is depending on the encoding used in the web server.
    But the first thing to ask yourself is if CURRENT data is correctly in the Oracle database.
    use SQLdeveloper to check the data, this is a "know good client" that needs no NLS configuration.
    You can download it from http://www.oracle.com/technology/products/database/sql_developer/
    If the data is displayed correctly in SQLdeveloper then you are sure it's correct in the database.
    If data is WRONG in the database then that needs to be corrected first, "trying" different client side configurations will only make matter worse (even if they make the data "look good" )
    Regards,
    Gunther
    Client side notes on mentalink:
    Note:158577.1> NLS_LANG Explained (How does Client-Server Character Conversion Work?)
    1.2 What is this NLS_LANG thing anyway?
    3.2 A detailed example of a wrong nls setup to understand what's going on.
    4.2 How can I Check the Client's NLS_LANG Setting?
    5.1 My windows sqlplus is not showing all my extended characters.
    Note:179133.1> The correct NLS_LANG in a Windows Environment
    Note:264157.1> The correct NLS_LANG setting in Unix Environments
    Note:229786.1> NLS_LANG and webservers explained.
    Note 115001.1> NLS_LANG Client Settings and JDBC Drivers
    When using Unicode start here:
    Note:788156.1> AL32UTF8 / UTF8 (Unicode) Database Character Set Implications
    Setting NLs parameters: <Note:241047.1> The Priority of NLS Parameters Explained.

Maybe you are looking for

  • Palm Quick Install in Windows 7

        OK I have posted that you can use the Palm desktop 4 versions on windows 7 and they work. They do but the only way to load a file was to right click on it and chose send to / Palm Powered (TM) Handheld. I decided to see if I could make everything

  • Safari logging into hotmail bug.

    i've been experiencing problems with logging into hotmail. I'm currently running safari 1.3.2 on osx 10.39. i can no longer leave hotmail as my homepage because it seems to time out after a while and the only way to log back in is to delete all the h

  • Button process with DBMS_SCHEDULER.run_job

    Hi, I need to execute the DBMS_SCHEDULER.run_job on click of a button . I tried creating a process (On submit) with DBMS_SCHEDULER.run_job('JOBNAME') when i tried executing directly in db there is no problem, but when i create the process in apex i a

  • Buttons don't navigate properly in Apple DVD Player!

    Hello there, This is extraordinarily frustrating! Can somebody please help ASAP? We're running DVD Studio Pro 4.0.2 on Mac OS X 10.3.9, and we just finished authoring a DVD with a layered menu created from a Photoshop document. When we put the DVD in

  • Error while uploading the error

    Hi All, We made customization to a standar workflow POQWFRQAG, but When trying to upload the workflow we are getting the following Error 'POWFRQAG' cannot be accessed while synchronous process in progress. Does any onw know about this, Pls help. Than