XML display in SQL*Plus

Hi,
I have a data stored in table in XML format in a clob column. When I query the table containing the XML data only part of the XML is shown in SQL*Plus. Is there anyway that I can view the full XML data in SQL* Plus prompt?
Thanks,
Milton.

The SET LOBOFFSET, SET LONG and SET LONGCHUNKSIZE values affect how SQL*Plus fetches from CLOBs.
See http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a90842/ch13.htm#1012674
-- CJ

Similar Messages

  • Turn off display on sql*plus and increase memory for oracle?

    I want to turn off the output display on SQL*PLUS window and SPOOL the output to a file since the result is very big. i tried to SET TERM OFF but it doesn't work. Anybody knows what's the problem? or is there some other commands to use? My oracle is 9i. thx!!! And anybody knows how to increase the memory usage size for Oracle's jrew.exe? it's too slow when i try to retrieve some big size data from oracle.

    I just answered this question on the OTN -> General forum. You could try the SQL*Plus startup switch -s to startup SQL*Plus in silent mode, eg:
    C:\SQLPLUS -S
    Alison

  • Issue with Taiwanese characters display in SQL*Plus/Toad

    Hi all,
    I have an issue about displaying the Taiwanese characters either in SQl*Plus or Toad tool. Able to view all territory characters properly except it. Whenever i tried to view these characters from Toad, diplay like square box('⃞'), where as it displays as question mark ('?') from SQL*Plus.
    I am not sure what are the parameters i want to alter. Please have a look at the below existed database parameters in the DB and help me to get rid of the issue.
    PARAMETER     VALUE
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY     AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CHARACTERSET     AL32UTF8
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    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 TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY     $
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_RDBMS_VERSION     10.2.0.4.0
    Oracle DB banner:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    NLSRTL Version 10.2.0.4.0 - Production
    Your help would be appreciated!!
    Thanks in advance.
    vissu

    vissu wrote:
    Hi all,
    I have an issue about displaying the Taiwanese characters either in SQl*Plus or Toad tool. Able to view all territory characters properly except it. Whenever i tried to view these characters from Toad, diplay like square box('⃞'), where as it displays as question mark ('?') from SQL*Plus.
    I am not sure what are the parameters i want to alter. Please have a look at the below existed database parameters in the DB and help me to get rid of the issue.
    PARAMETER     VALUE
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY     AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CHARACTERSET     AL32UTF8
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    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 TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY     $
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_RDBMS_VERSION     10.2.0.4.0
    Oracle DB banner:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    NLSRTL Version 10.2.0.4.0 - Production
    Your help would be appreciated!!
    Thanks in advance.
    vissuHow was this data loaded into the database ? If SQL Developer is showing incorrect data, then the data was not loaded correctly into the database and has been corrupted - in such a case, NLS_LANG will not help
    Srini

  • Comments to be displayed in SQL*PLUS....

    Hi ,
    When i issue the following command in PL/SQL Developer(third-party tool) - as user SCOTT :
    SQL> desc user_extents;
    Name            Type              Nullable Default Comments                                           
    SEGMENT_NAME    VARCHAR2(81 BYTE) Y                Name of the segment associated with the extent     
    PARTITION_NAME  VARCHAR2(30 BYTE) Y                Partition/Subpartition Name, if any, of the segment
    SEGMENT_TYPE    VARCHAR2(18 BYTE) Y                Type of the segment                                
    TABLESPACE_NAME VARCHAR2(30 BYTE) Y                Name of the tablespace containing the extent       
    EXTENT_ID       NUMBER            Y                Extent number in the segment                       
    BYTES           NUMBER            Y                Size of the extent in bytes                        
    BLOCKS          NUMBER            Y                Size of the extent in ORACLE blocks    Whereas when i issue the same command in SQL*PLUS....
    SQL> desc user_extents;
    ¼íïìá                                     Null;    Ôýðïò
    SEGMENT_NAME                                       VARCHAR2(81)
    PARTITION_NAME                                     VARCHAR2(30)
    SEGMENT_TYPE                                       VARCHAR2(18)
    TABLESPACE_NAME                                    VARCHAR2(30)
    EXTENT_ID                                          NUMBER
    BYTES                                              NUMBER
    BLOCKS                                             NUMBERHow can i get the comments in SQL*PLUS as well...?????
    I use ORA10g v.2
    Thanks....
    Sim

    Plsql developer probably issue something like this in the background:
    select col.column_name,data_type,nullable,data_default,comments
    from all_tab_columns col,all_col_comments com
    where col.table_name=com.table_name
    and col.owner=com.owner
    and col.column_name=com.column_name
    and col.owner='SYS'
    and col.table_name = 'USER_EXTENTS'You could save similar code in script in your SQLPATH and pass the object that should be described via substitution variable.
    There are really [url http://www.adp-gmbh.ch/blog/2005/september/25.html]interesting approaches on the net regarding describe customization.
    Best regards
    Maxim

  • Getdocument function (Loading an xml document from sql plus)

    Hello,
    I quote from the XML Database Developer's Guide. It appears to be possible to specify an xml file in the query using the following syntax:
    INSERT INTO XMLTABLE
    VALUES(XMLTYPE(getDocument(purchaseorder.xml)));
    Where purchaseorder.xml is a document.
    However I get the following error message when I use this getdocument function:
    ora-00904 "getdocument" invalid identifier.
    Can anyone help?
    Balteo.

    Hi,
    This is the function that has been specified in the developer's guide.
    create or replace function getDocument(filename varchar2) return clob
    authid current_user is
    xbfile bfile;
    xclob clob;
    begin
    xbfile := bfilename(XMLDIR,filename);
    dbms_lob.open(xbfile);
    dbms_lob.createtemporary(xclob,TRUE,dbms_lob.session);
    dbms_lob.loadfromfile(xclob,xbfile, dbms_lob.getlength(xbfile));
    dbms_lob.close(xbfile);
    return xclob;
    end;
    Hope this helps,
    Rajat

  • SQL*Plus variable assignment works for 8i but not 9i

    We have scripts that connect to each database on the box and perform database tasks nightly. The scripts first set the environment then connects to each database with SQL*Plus. This works for 8i but fails in the recently created 9i environment. (Unix Solaris environment)
    Because the SQL*Plus connection appears in many areas in the scripts, we assign the following connection string to a variable:
    SQLPLUS="/usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba'"
    Export SQLPLUS
    echo "$SQLPLUS"
    (This echo out correctly: /usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba')
    It fails when the script calls the assigned variable:
    $SQLPLUS <<-EOF
    with the following error:
    Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
    where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
    <logon> ::= <username>[<password>][@<connect_string>] | / | /NOLOG
    <start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
    "-H" displays the SQL*Plus version banner and usage syntax
    "-V" displays the SQL*Plus version banner
    "-L" attempts log on just once
    "-M <o>" uses HTML markup options <o>
    "-R <n>" uses restricted mode <n>
    "-S" uses silent mode
    However, if I remove the SQLPLUS variable assignment and changed all occurrence of
    $SQLPLUS <<-EOF to
    /usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba' <<-EOF
    Then the script runs successfully. But this solution is cumbersome.
    Any ideas as to how to have the script work with assigning the SQLPLUS variable????
    Any help is appreciated.

    I has an immediate suspicion it might be related to the issue
    mentioned in
    http://otn.oracle.com/support/tech/sql_plus/htdocs/sub_var2.html#2_7
    but this proved wrong: the SP2-306 still occurs in the latest
    SQL*Plus.
    I wonder what version of 8i you had working? With an old SQL*Plus
    8.1.7.0 my connection failed the same as in 9.2 and 10i.
    My solution was to do:
      SQLPLUS='sqlplus -s'
      UNPW='/ as sysdba'
      $SQLPLUS "$UNPW" &lt;&lt;EOF
      EOFThis worked in 9.2.0.5, 10.1.0.2 and 8.1.7.0.
    One common security risk on UNIX remains: putting the username and
    password on the command line. On some systems a "ps" command will
    show the password to any user. If OS authentication cannot be used
    for connection, perhaps putting the username/password in the SQL
    script may be more secure?
    A final note is that in SQL*Plus 10g, no quotes are needed around
    AS SYSDBA, i.e.
      sqlplus / as sysdba works from the OS prompt, whereas in 9.2 you need to do
      sqlplus "/ as sysdba"This makes a solution easy:
      SQLPLUS="/usr/oracle/product/10.1.0/bin/sqlplus -s xxx/xxxxxx@xxxx as sysdba"-- CJ

  • SQL*Plus assignment works for 8i but not 9i

    We have scripts that connect to each database on the box and perform database tasks nightly. The scripts first set the environment then connects to each database with SQL*Plus. This works for 8i but fails in the recently created 9i environment.
    Because the SQL*Plus connection appears in many areas in the scripts, we assign the following connection string to a variable:
    SQLPLUS="/usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba'"
    Export SQLPLUS
    echo "$SQLPLUS"
    (This echo out correctly: /usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba')
    It fails when the script calls the assigned variable:
    $SQLPLUS <<-EOF
    with the following error:
    Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
    where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
    <logon> ::= <username>[<password>][@<connect_string>] | / | /NOLOG
    <start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
    "-H" displays the SQL*Plus version banner and usage syntax
    "-V" displays the SQL*Plus version banner
    "-L" attempts log on just once
    "-M <o>" uses HTML markup options <o>
    "-R <n>" uses restricted mode <n>
    "-S" uses silent mode
    However, if I remove the SQLPLUS variable assignment and changed all occurrence of
    $SQLPLUS <<-EOF to
    /usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba' <<-EOF
    Then the script runs successfully. But this solution is cumbersome.
    Any ideas as to how to have the script work with assigning the SQLPLUS variable????
    Any help is appreciated

    I has an immediate suspicion it might be related to the issue
    mentioned in
    http://otn.oracle.com/support/tech/sql_plus/htdocs/sub_var2.html#2_7
    but this proved wrong: the SP2-306 still occurs in the latest
    SQL*Plus.
    I wonder what version of 8i you had working? With an old SQL*Plus
    8.1.7.0 my connection failed the same as in 9.2 and 10i.
    My solution was to do:
      SQLPLUS='sqlplus -s'
      UNPW='/ as sysdba'
      $SQLPLUS "$UNPW" &lt;&lt;EOF
      EOFThis worked in 9.2.0.5, 10.1.0.2 and 8.1.7.0.
    One common security risk on UNIX remains: putting the username and
    password on the command line. On some systems a "ps" command will
    show the password to any user. If OS authentication cannot be used
    for connection, perhaps putting the username/password in the SQL
    script may be more secure?
    A final note is that in SQL*Plus 10g, no quotes are needed around
    AS SYSDBA, i.e.
      sqlplus / as sysdba works from the OS prompt, whereas in 9.2 you need to do
      sqlplus "/ as sysdba"This makes a solution easy:
      SQLPLUS="/usr/oracle/product/10.1.0/bin/sqlplus -s xxx/xxxxxx@xxxx as sysdba"-- CJ

  • SQL*Plus sysdba remote connection

    Hello all,
    I'm attempting to connect to a remote database via splplus as the sys as sysdba user and am unable to do so. However, I am able to connect as a non-sysdba user. When I attempt to connect as sysdba, I receive no error but only the sqlplus Usage message. Here is some initial information:
    Client
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    U:\>sqlplus regular_user/password@mySID
    SQL*Plus: Release 9.2.0.1.0 - Production on Thu Jul 2 10:05:29 2009
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    U:\>sqlplus sys/password@mySID as sysdba
    Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
    where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
          <logon>  ::= <username>[/<password>][@<connect_string>] | / | /NOLOG
          <start>  ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
            "-H" displays the SQL*Plus version banner and usage syntax
            "-V" displays the SQL*Plus version banner
            "-L" attempts log on just once
            "-M <o>" uses HTML markup options <o>
            "-R <n>" uses restricted mode <n>
            "-S" uses silent modeServer
    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.
    U:\>sqlplus sys/password@mySID as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jul 2 10:21:01 2009
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL>Based upon what I read here: I've found that the server has a PWDmySID.ora file in %ORACLE_HOME%\database. I've updated the %ORACLE_HOME%\database\initmySID.ora file to include the REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE line and have restarted the database.
    Any thoughts? Apparently I'm making some sort of syntax error logging in but I don't know what it is? :) Thanks.
    Edited by: nmd on Jul 2, 2009 9:43 AM

    HI,
    can you please try it like first entrying into the sqlplus and then enter the username and password..
    Also it should be sqlplus "sys/password as sysdba"
    Regards

  • Viewing Binary data in SQL*PLUS

    hi all,
    when i select a table to view the content, i received an error which i shown below.
    SP2-0678: Column or attribute type can not be displayed by SQL*Plus
    the error seems that the binary data cannot be view thru SQL PLUS.
    do anybody have idea to solve this issue.
    thanks in advance
    karthik.J

    Probably you are trying to view BLOB data. Try this to view the data:
    SQL> CREATE TABLE t (a BLOB)
      2  /
    Table created.
    SQL> INSERT INTO t
      2       VALUES (UTL_RAW.cast_to_raw ('Hello World'))
      3  /
    1 row created.
    SQL> SELECT UTL_RAW.cast_to_varchar2 (a) a
      2    FROM t
      3  /
    A
    Hello World

  • Sql plus password typing problem

    Hello there
    I'm trying to access sql plus 11g on windows 7, i correctly write the username but when i try to type the password, nothing is typed at all, not letters nor asteresks!!
    plz help meee

    C:\Users\lord>sqlplus / as sysdba SELECT * V$VERSION;
    SQL*Plus: Release 11.2.0.3.0 Production
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus statements.
    Usage 1: sqlplus -H | -V
    -H Displays the SQL*Plus version and the
    usage help.
    -V Displays the SQL*Plus version.
    Usage 2: sqlplus [ [<option>] [{logon | /nolog}] [<start>] ]
    <option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
    -C <version> Sets the compatibility of affected commands to the
    version specified by <version>. The version has
    the form "x.y[.z]". For example, -C 10.2.0
    -L Attempts to log on just once, instead of
    reprompting on error.
    -M "<options>" Sets automatic HTML markup of output. The options
    have the form:
    HTML ON [HEAD text] [BODY text] [TABLE text]
    [ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] ON]
    -R <level> Sets restricted mode to disable SQL*Plus commands
    that interact with the file system. The level can
    be 1, 2 or 3. The most restrictive is -R 3 which
    disables all user commands interacting with the
    file system.
    -S Sets silent mode which suppresses the display of
    the SQL*Plus banner, prompts, and echoing of
    commands.
    <logon> is: {<username>[<password>][@<connect_identifier>] | / }
    [AS {SYSDBA | SYSOPER | SYSASM}] [EDITION=value]
    Specifies the database account username, password and connect
    identifier for the database connection. Without a connect
    identifier, SQL*Plus connects to the default database.
    The AS SYSDBA, AS SYSOPER and AS SYSASM options are database
    administration privileges.
    <connect_identifier> can be in the form of Net Service Name
    or Easy Connect.
    @[<net_service_name> | [/]Host[:Port]/<service_name>]
    <net_service_name> is a simple name for a service that resolves
    to a connect descriptor.
    Example: Connect to database using Net Service Name and the
    database net service name is ORCL.
    sqlplus myusername/mypassword@ORCL
    Host specifies the host name or IP address of the database
    server computer.
    Port specifies the listening port on the database server.
    <service_name> specifies the service name of the database you
    want to access.
    Example: Connect to database using Easy Connect and the
    Service name is ORCL.
    sqlplus myusername/mypassword@Host/ORCL
    The /NOLOG option starts SQL*Plus without connecting to a
    database.
    The EDITION specifies the value for Session Edition.
    <start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
    Runs the specified SQL*Plus script from a web server (URL) or the
    local file system (filename.ext) with specified parameters that
    will be assigned to substitution variables in the script.
    When SQL*Plus starts, and after CONNECT commands, the site profile
    (e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
    (e.g. login.sql in the working directory) are run. The files may
    contain SQL*Plus commands.
    Refer to the SQL*Plus User's Guide and Reference for more information.
    C:\Users\lord>

  • Can we use xml Publisher reporting for sql* Plus in EBS

    Hello All,
    The current report is designed in Sql* Plus Executable report and the output is in txt format, Now the requirement is to have the output in Excel format.
    So is it possible to use the xml reporting and make the output as Excel from the word template we design from MSword as we do for rdf(I have done few reports created in rdf to xml publisher reports in EBS and stand alone as well.).
    Do the same procedure will suit for Sql*Plus reports tooo or Is there any work around to achieve this.
    Thanks and Regards
    Balaji.

    Hi
    Thanks for the reply..
    I tried to do the follwoing
    1. changed the output to xml in the conc. prog.
    2. ran the same report but i am getting the follwoing error in the output file
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource
    Other reports which are using the Oracle Reports(rdf) as source, i am able to generated the xml as expected....
    So my question is whether we can use sql* reports executable and generate xml in the conc.prog.
    if any one has used the sql*reports for xml publisher reporting... please let me know, so that if its possible i will check my sql needs some validation or tuning...
    thanks in advance
    Balaji.

  • VIEW XML IN SQL*PLUS

    how can we view xml on sql*plus?
    when xmltype is viewed on sql*prompt it shows incomplete xml.
    example:
    SQL> select xmlelement("ROOT",xmlforest(1 as A, 2 as B, 3 as C)) from dual;
    XMLELEMENT("ROOT",XMLFOREST(1ASA,2ASB,3ASC))
    <ROOT>
    <A>1</A>
    <B>2</B>
    <C>3</C>
    </ROOT>
    but i generate an xml from table so it becomes quite huge. say a forest is populated with 6-8 tags. it shows broken output.
    SQL> /
    ID LIST
    <DEPT>
    <EMPLOYEE>
    <ID>2109</ID>
    <ID>3108</ID>
    <ID>4107</ID>
    <ID>5106</ID>
    <ID
    i have tried increasing bufferwidth and bufferlength tp max value (1000 and 2000 respectively) eventhen it displays the output as shown above.
    how can i view my xml?

    use this sql plus command:
    set long 2000000
    You can increase\decrease the value as required.

  • Displaying Chinese characters in SQL*Plus

    DB version: 11.2
    OS Version : AIX 6.1
    DB characterset:AL32UTF8
    To display chinese characters in SQL*Plus, I did the following:
    $ export LANG=zh_CN.UTF-8
    $ export LC_ALL=zh_CN.GB2312
    $ export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
    $
    $ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.2.0 Production on ÐÇÆÚÈý 5ÔÂ 2 15:52:33 2012
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning option
    SQL> ALTER SESSION SET NLS_LANGUAGE='SIMPLIFIED CHINESE';
    Session altered.
    SQL> ALTER SESSION SET NLS_TERRITORY='CHINA';
    Session altered.
    SQL> select unistr('\8349') from dual;  ---- not 100% sure if this is the way to verify if chinese characters can be displayed.
    UN
    ²Ý                 ----------------------------------------> Getting a junk character instead of chinese If I was using putty, are the above steps enough to get chinese characters displayed ?
    Our ssh client is Tectia (not putty).
    According the below ML Note, the SSH client has to configured correctly to use globalization features.
    +The correct NLS_LANG setting in Unix Environments [ID 264157.1]+
    Googling "Tectia + Chinese" didn't return useful results

    I understand that you are talking about Windows SSH Client.
    For Putty, you should set:
    $ export LANG=zh_CN.UTF-8
    $ export LC_ALL=zh_CN.UTF-8
    $ export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"
    and configure Putty in Window->Translation to use UTF-8.
    There is nothing about this subject on Tectia website and in their manuals, so my best guess is that the client requires Windows code page to work correctly. In such case you need to set your Windows system default locale (locale for non-Unicode programs) to Chinese and use the following settings on the server:
    $ export LANG=zh_CN.GBK
    $ export LC_ALL=zh_CN.GBK
    $ export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
    Verify with 'locale -a' that the setting zh_CN.GBK is supported on your system.
    -- Sergiusz

  • Displaying non-ascii characters in SQL Plus Windows

    Hi,
    is it possible to display data from more than language at the same time in SQL Plus? Or can you do this only one language at the time?
    Thanks,
    Cornee van der Linden

    I think this question is better suited to the globalization discussion forum, Technologies -> Architecture -> Globalization and NLS. Sorry I can't be of more help.
    Alison

  • Display TTITLE in SQL*Plus when no rows returned

    I need a SQL*Plus query that would display the TTITLE with Date. My query looked like this at first:
    column TODAY noprint NEW_VALUE p_date
    set feedback off
    select to_char(sysdate, 'mm/dd/yyyy') today from dual;
    set feedback on
    ttitle left 'query.sql' -
    center 'Department Listing ' -
    right 'Date: ' p_date skip 1
    select dept_code, dept_name
    from department
    where dept_code between 200 and 300
    When I run this query, if there's data returned, the title would display on every page.
    When there's no rows selected, the title would NOT display.
    So I moved the ttitle statements to ABOVE the select date section. When there's no rows selected the title would be displayed, where there's data selected, the title would be display TWICE on the first page which is very annoying.
    Then I added TTITLE OFF after the select date section and the query looked like this:
    column TODAY noprint NEW_VALUE p_date
    ttitle left 'query.sql' -
    center 'Department Listing ' -
    right 'Date: ' p_date skip 1
    set feedback off
    select to_char(sysdate, 'mm/dd/yyyy') today from dual;
    set feedback on
    ttitle off
    select dept_code, dept_name
    from department
    where dept_code between 200 and 300
    when no rows selected, the title displayed.
    when rows selected, the title displayed, ONLY ON THE FIRST PAGE.
    Does anyone have any creative ideas to get the ttitle to display: with or without return results, ONCE and on EVERY page?
    Thanks in advance!!!
    Jane

    Hi Jane,
    Just check out this answer might helps u.
    In the final code what u have written u placed the ttitle off above the sql statement for dept.
    Just note these points
    1.U r telling the TTITLE OFF before SQL For Department
    2.In both cases(With Data/Without Data) u r able to see the title once that is of select statement for date.
    so there is no title for Select statement for department
    What ur code telling is U have written a TTITLE that is for Selection of Date not for the Selection of department.
    So in both cases u r getting the title once.
    Put the TTITLE OFF at the end that is after Select stmt of department
    then u will get title for each page.
    In the first Script u told that it is displaying twice(annoying)
    It will display like that only coz there are two select statements in ur Script.
    TTITLE means it will display once on each page per query.
    one is for select statement of date(it will display once because that query result is max of one line)
    second is for select statement for Department(it will display one title in each page)
    so u will find two titles on first page.
    Hope this will clear u
    Revert back for any more clarifications
    Regards
    Kiran

Maybe you are looking for

  • Javax.naming.NameAlreadyBoundException:

    Hi I am getting following error while starting managed server (admin server is already running) in a clustered environment. "javax.naming.NameAlreadyBoundException: AuditTopic is already bound; remaining name 'com.bea.wlpi' " even though there is onl

  • Stage 4 Multiplexing - Media error in Power calibration 0x73,0x03

    Try to burn a DVD the project I made.  Everything is fine until it goes to stage 4 Multiplexing & Burning  - the system shows a Media Error in the Power Calibration  0x73,0x03 when this come up it will eject the dvd.  I never had a problem like this.

  • Store selected days as integer in db using ADF

    Hi, I'm using Jdeveloper 11.1.2.3.0 We're migrating a JSP/Servlet application to ADF. In one of the pages, we let the user select the days on which he would like an operation to be accomplished. Basically, we're using bitwise operations to convert th

  • Customer bounced/NSF check

    How do I void a customer's bounced check that has been deposited with this scenario... The check was deposited 8/28 and then my bank debited my account 9/2 because the check was insufficient. I try to cancel the deposit but the date goes back to the

  • Form is printing two times from MRRL, output type ERS

    Hi, I have copied the standard script MR_PRINT to custom script and done changes in the script to print the invoice form using MRRL transaction (for output type = ERS). Now I am facing two issues. Please help. 1) The form is printing two times on ise