Inserting Chinese character using sqlplus

I am not able to insert Chinese character using sqlplus .
Am getting disconnected when trying to insert.
with no error
message coming
is disconnected form oracle enterpise 10.2.0.2.0 with .. mining..
Please help.

sql is simple insert statement
insert into t5(txt) values ('中中 中 中 中 中 中 中 中 中 ');
os is AIX
I wonder when i using sql developer I am able to insert.
regarding environmental variable , I am not setting any variable regarding NLS.
I simply connect sqlplus username/password
when I execute following statement
sqlplus disconnect without giving any error.
question is why sql developer is able able to insert and sqlplus not
Thanks for reply

Similar Messages

  • How to download the chinese character using GUI_DOWNLOAD

    How to download the chinese character using GUI_DOWNLOAD from SAP 4.6c

    Hi,
       Make sure that the chinese font is installed in your system, because when you download in excel, the character formats are taken from the Frontend.  For detail see the below thread.
    [link1|Re: Download Chinese character]
    Thanks,
    Asit Purbey.

  • Cannot insert Chinese character into nvarchar2 field

    I have tested in two environments:
    1. Database Character Set: ZHS16CGB231280
    National Character Set: AL16UTF8
    If the field type of datatable is varchar2 or nvarchar2, the provider can read and write Chinese correctly.
    2. Database Character Set:WE8MSWIN1252
    National Character Set: AL16UTF8
    The provider can not read and write Chinese correctly even the field type of datatable is nvarchar2
    I find that for the second one, both MS .NET Managed Provider for Oracle and Oracle Managed Data Provider cannot read and write NCHAR or NVARCHAR2 fields. The data inserted into these fields become question marks.
    Even if I changed the NLS_LANG registry to SIMPLIFIED CHINESE_CHINA.ZHS16CGB231280, the result is the same.
    For the second situation, only after I change the Database Character Set to ZHS16CGB231280 with ALTER DATABASE CHARACTER SET statement, can I insert Chinese correctly.
    Does any know why I cannot insert Chinese characters into Unicode fields when the Database Character Set is WE8MSWIN1252? Thanks.
    Regards,
    Jason

    Hi Jason,
    First of all, I am not familiar with MS .NET Managed Provider for Oracle or Oracle Managed Data Provider.
    How did you insert these Simplified Chinese characters into the NVARCHAR2 column ? Are they hardcoded as string literals as part of the SQL INSERT statement ? If so, this could be because, all SQL statements are converted into the database character set before they are parsed by the SQL engine; hence these Chinese characters would be lost if your db character set was WE8MSWIN1252 but not when it was ZHS16CGB231280.
    Two workarounds, both involved the removal of hardcoding chinese characters.
    1. Rewrite your string literal using the SQL function UNISTR().
    2. Use bind variables instead of text literals in the SQL.
    Thanks
    Nat

  • Display Chinese Character in SQLPLUS

    Anyone have any idea how to display a chinese character from the database? Is it possible to display from sqlplus.
    null

    It is possible to display Chinese characters in SQL*Plus. The reference manual at http://www.oradoc.com/ora817/server.817/a76966/toc.htm would be a good starting place to learn more.
    - CJ

  • Inserting Special Character using SQL*Plus

    I am trying to insert special character like ® using SQL*Plus but it is inserting a .(dot) instead.
    Environment:
    Oracle Enterprise version : 9.2.0.3.0
    Sun Solaris 8
    Any help will be appreciated.
    Regards,
    Nirmalya

    That's the reason I use ASCII values always for special characters.
    SQL> create table sample1(col1 varchar2(50))
      2  /
    Table created.
    SQL> insert into sample1
      2  select 'The temperature outside is 20'||chr(176)||' centigrade' col1
      3  from dual
      4  /
    1 row created.
    SQL> commit
      2  /
    Commit complete.
    SQL> select * from sample1
      2  /
    COL1
    The temperature outside is 20° centigrade
    1 row selected.
    SQL> drop table sample1 purge
      2  /
    Table dropped.
    SQL> Cheers
    Sarma.

  • Chinese character using HttpURLConnection

    Hi,
    I am trying to retrieve a chinese page using HttpURLConnection and as a result getting all chinese characters as ???.
    I know it has to be something with the fonts but cannot figure out exactly what. Any help in this regard will be great.
    Below is my sample code...
    URL connect = new URL("http://chinese.site.url");
    HttpURLConnection connect = (HttpURLConnection) connect.openConnection();
    connect.setRequestProperty("content-type", "text/html;charset=gb2312");
    BufferedReader in = new BufferedReader(new InputStreamReader(connect.getInputStream()));
    String inputLine;
    while ( (inputLine = in.readLine()) != null) {
    System.out.println(inputLine);
    }

    Hi,
    I am trying to retrieve a chinese page using
    HttpURLConnection and as a result getting all chinese
    characters as ???.
    I know it has to be something with the fonts but
    cannot figure out exactly what. Any help in this
    regard will be great.
    Below is my sample code...
    URL connect = new URL("http://chinese.site.url");
    HttpURLConnection connect = (HttpURLConnection)
    connect.openConnection();
    connect.setRequestProperty("content-type",
    "text/html;charset=gb2312");
    BufferedReader in = new BufferedReader(new
    InputStreamReader(connect.getInputStream()));
    String inputLine;
    while ( (inputLine = in.readLine()) != null) {
    System.out.println(inputLine);
    }u forgot to set the encoding for the inputstreamreader.
         public static String readTextFiles (String filename)     {
              String data="";
              File file = new File(filename);
              char[] chars = new char[(int) file.length()];
              try {
                   FileInputStream readingfile = new FileInputStream(file);
                   BufferedReader in = new BufferedReader(new InputStreamReader(readingfile, "gb2312"));
                   in.read(chars);          // org
                   in.close();
              } catch (FileNotFoundException e) {
                    System.out.println("File Not Found " + e.getMessage());
              } catch (IOException e) {
                    System.out.println("IO exce " + e.getMessage());
              data = new String(chars);
              return data;
         }     // end readTextFile

  • Insert chinese font using css?

    How do insert default chinese font into my website using css, and what are the web-safe chinese font available?
    let say I have my dafault english font set like this
    body{
              font-family:Arial, Helvetica, sans-serif;
    where do I add in the chinese font?
    I try doing like this
    body{
         font-family:Arial, "黑体" ,Helvetica, sans-serif;
    But it doesnt seem to be working...

    It is because you did not specify the charset=utf-8
    try inserting this line between the head section:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    and I also notice you did not declare your doctypes properly, which you will also include this line(if youare using transition):
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    so overall your code will be like this:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>About</title>
    <link href="css/styles.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
    <div id="outer">
        <div id="wrapper">
            <div id="banner">
            <h1 id="chi1">首頁</h1>
            <h1 id="eng1">Welcome</h1>
            </div>
            <div id="topnav">
                <ul id="left">
                <li><a href="home.html">HOME</a></li>
                <li><a href="about.html">ABOUT</a></li>
                   <li><a href="events.html">EVENTS</a></li>
                   <li><a href="pictures.html">PICTURES</a></li>
                    <li><a href="media.html">MEDIA</a></li>
                <li><a href="contact.html">CONTACT</a></li>
                </ul>
                  <ul id="right">
                 <li><a href="home.html">首頁</a></li>
                <li><a href="about.html">有關</a></li>
                <li><a href="events.html">事件</a></li>
                   <li><a href="pictures.html">照片</a></li>
                <li><a href="media.html">媒體</a></li>
                <li><a href="contact.html">連絡</a></li>
                </ul>
            </div>

  • Display Chinese Character jsp page  by using UTF-8

    hi all,
    I have one jsp page have Chinese character, need to allow user input Chinese character into db, right now my situation is if I set <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> , the Chinese character in my jsp page I can't display correcly, but the inser is okI have to set encoding to big5, then I can't insert chinese character into my db correctly.
    can I use UTF-8 to display my jsp page, which have Chinese Character in there?Thank you!

    Hi Niklas
    thank you for the suggestion. somebody told me UTF-8 suppose work, only if you typing your Chiness character in UTF-8 formate, i don't know that is true or not, but that realy a challenge for me, I using jdbc , some time ago, and then stop, and on that period,if I got free time, I did try to learn some tutorials on struct, hibernate, like http://javaboutique.internet.com/tutorials/Struts/; http://courses.coreservlets.com/Course-Materials/struts.html
    recently I need to deal with some online form , first I want to use struct, but I keep got forwad problem, I forget the detail error message, and found not place to ask questions, so , I pick jdbc again, so ,if you have some useful link in struct or a nice community for people to learn struct, I am look forward to
    know that,
    by the way I set *<meta http-equiv="Content-Type" content="text/html; charset=big5" /> in my jsp*
    String dbURL="jdbc:mysql://localhost/survey?useBig5=true&characterEncoding=Big5"; in jdbc
    keep UTF-8 setting in mysql, it looks solute the problem that I had, hope that can enhabce our knowledge in that
    thank you for the help and wish good luck for future.

  • How to insert chinese or Japanese character into database

    Hi,
    Can any one please let me know how to insert chinese character to database.
    We tried to insert some chinese character by copying but the characters are showing different while selecting from the database.
    Should we install any font or something into database server for getting the character???

    Hi,
    If your NLS_NCHAR_CHARACTERSET is set as AL16UTF16, then you can create a table with datatype NCHAR or NVARCHAR in the same instance and will be able to store foreign characters provided your client termional is configured to enter chinese characters.
    Regards,
    Mario Alcaide
    http://marioalcaide.wordpress.com

  • GUI Download Chinese Character to Excel gibberish character

    Hi Experts,
    I'm facing a problem where I'm using FM gui_download to save Chinese Character into Excel file.
    Upon double click to open the excel file, funny character shows up.
    But if I were to open the same file using a blank Ms Excel application (Go to File->Open->choose file),
    Excel will prompt me to select a proper encoding (GB2312 in this case), and the Chinese character can be seen thereafter.
    But, my user doesn't want to go through this.
    I've browsed through the forum and someone has posted about this before and it's unanswered.
    How to download the chinese character using GUI_DOWNLOAD - unanswered
    And, Re: GUI_DOWNLOAD give 2 bytes for each chinese character - I need fixed len which is not related to my problem.
    Below is my code:
    DATA: lv_codepage   TYPE cpcodepage,
            lv_char_cpage TYPE abap_encod,
            lv_encoding   TYPE abap_encod.
    Get Code Page for Chinese Character Spras = '1' or 'ZH'
      CALL FUNCTION 'NLS_GET_FRONTEND_CP'
        EXPORTING
          langu                 = '1'   " Chinese Simplified Table T002
          fetype                = 'MS'  " Manufacturer is Microsoft Table TCP05
        IMPORTING
          frontend_codepage     = lv_codepage
        EXCEPTIONS
          illegal_syst_codepage = 1
          no_frontend_cp_found  = 2
          internal_or_db_error  = 3
          OTHERS                = 4.
    Conversion c(4) = n(10)
      lv_char_cpage = lv_codepage.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'                       "tried ASC and not working as well
          codepage                = lv_char_cpage   "8404 in this case tried 8400 and same result
          replacement             = '#'
          write_field_separator   = 'X'
        TABLES
          data_tab                = i_data_cnvr        "table content
          fieldnames              = i_data_head      "table header
    Please help. Does this has something to do with utf-8 encoding?
    Thank you.
    Thanks,
    ZY See

    Hi Nitesh,
    Is there a way to check the Excel codepage? Do you mean by codepage = 936 for GB2312 encoding?
    Anyway, this issue is fixed. Issue is related to unicode system.
    Below codes for gui_download solved the problem.
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
          codepage                = '4103'
          replacement             = '#'
          write_field_separator   = 'X'
          write_bom               = 'X'
        TABLES
          data_tab                = i_data_cnvr
          fieldnames              = i_data_head
    Codepage = 4103 for utf-16 Unicode system.
    Write-bom = 'X' to write Byte-Order-Mark.
    Thanks,
    ZY See

  • How to read text file contain chinese character ?

    Hi XI Expert,
    I have scenario to read text file contain Chinese Character using sender file adapter. but every i was check from sxmb_moni all the chinese character looks different. and also the target file also i has changes.
    Please advise me how to maintaine the chinese character in PI 7.0 SP17.
    Thank You and Best Regards
    Fernand

    Hi,
    Refer these threads..
    Receiver file adapter corrupting characters
    Problem in converting special characters in input text file
    Here is one more useful guide..
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42
    Regards,
    Sarvesh
    Edited by: Sarvesh Singh on Nov 17, 2008 3:47 PM

  • Chinese Character Support On MediaSource Organi

    Hi,
    I have MP3 song with filename in Chinese characters. On my Windows XP, I can view the filename in Chinese character using Windows File Explorer. Even the ID Tag also no problem. But when I use MediaSource Organizer, all my chinese character MP3 filename displayed as rubbish. Is there anyway I can make MediaSource to display chinese character without resorting to third party software since by nati've, Windows XP support chinese character viewing features.
    Thanks,Felix

    caniggia wrote:
    Hi guys. I'm using Win2000 version and it's diff. from XP.
    Anyone can help on this? Thks!
    You will need to install a language viewer. For example, to view Chinese/Korean/Janpanese, you can install NJ Star viewer.

  • Inserting non-ascii characters to ORACLE using SQLPLUS

    Hi
    I'm using Oracle 10.2.
    I would like to insert data with non-ascii characters, like éñ etc.
    For example:
    INSERT INTO FOO(NAME) VALUES ('abcñ');
    The problem is this - when I use SQLDeveloper with this query - there's no problem. However when I use SQLPLUS - I see the ñ character messed up.
    Most environments use some kind of escaping mechanism (like the \uXXXX in JAVA or %XX in URL escaping), but I simply can't find how to do so in SQLPLUS.
    Can somebody help please?

    Are you using "char" or "nchar" character datatypes? Make sure that the database character set defines the language script you need to support (see nls_database_parameters).

  • Insert Chinese Data(Character Set

    Can any Chinese DBA tell me how to store chinese data in Oracle 8.1.5.0.0 Database.
    I tried the combination of UTF8 database character set with UTF8 national character set and UTF8 database character set with ZHS16MACCGB231280 national character set. A column in a table was defined as nchar/nvarchar2. But when I tried to insert chinese data into the column using insert into... command, I always got the error message 'Character Set Mismatch'.

    Originally NCHAR was defined for a few selective fixed with Aisan character sets. In 9i it was redefined to support unicode. For 8.1.5 you will need to store your Chinese data in char, varchar, and CLOB data types.

  • How to Insert Character using Prepared statement

    Hi All,
    Can anyone let me know how can I insert character using prepared statement.
    Thanks
    Sameer

    In the future JDBC related questions should be posted into the JDBC forum.
    Can you please provide some more information about what you are trying to do? It isn't clear to me. Are you trying to update a CHAR field?

Maybe you are looking for

  • Regarding Extended star schema

    Hi Friends, In Extended star schema,master data will load separately ,which will connect through sid's to dimension table . My question is.. This master data tables can be used other than this cube ? Please tell me i am in confusion. Thanks in advace

  • Need more info for the ag34405 DMM VI's

    Hi ! I'm working with the Agilent 34405a multimeter and made a little VI for data-logging. The problem is, I want to choose between 4.5 & 5.5 resolution and the is no litterature about it. I'm using the NI drivers and VI's made for this application.

  • Clicking on a link box window minimizes instead of going to the link

    50% of the time when i click on a link box, the window minimizes instead of going to the link. I tried adjusting mouse click, etc. Nothing helps. Drives me crazy!!! Is there an adjustment or is this an inherent problem with this system?

  • Doing sendRedirect in doPost gives me the standard error

    Hi, When I use response.sendRedirect within doPost I get the following error .. message HTTP method GET is not supported by this URLbut when I change that to doGet, the redirect works fine. How do I resolve this issue, as I need to use doPost in my a

  • Select into using  parameters versus real values

    Can anyone please explain how PL/SQL operates in a condition where you pass in a value versus hardcoding it ? When it's hard coded, I get a 1 row response and the correct information When I pass in the value through the call statement, I get exact fe