How to save Chinese&Japanise Character through JDBC or Hibernate in ORACLE

Dear all,
How to save chinese and japanise character in oracle 9i database through JDBC or Hibernate.
Please let us know if you have any source code.
Thanks in advance.
Thanks,
Sundararaman.V.S.

http://forums.oracle.com/forums/ann.jspa?annID=599
C.

Similar Messages

  • How to save Custom control records through module pool program ?

    Hi guru ,
    1. How to save Custom control records through module pool program ?
    I wrote multiple lines of record in custom control
    Who to save that records ?
    thanking you.
    Regards,
    Subash.

    Hi,
    can refer following code -
    IN PAI , CODE is as follows-
    *&      Form  editor_output
    FORM editor_output .
    NARRATION1 is name of custom controller
      IF v_editor IS INITIAL.
      Create obejct for custom container
        CREATE OBJECT v_custom_container
          EXPORTING
            container_name              = 'NARRATION1'
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      Create obejct for the TextEditor control
        CREATE OBJECT v_editor
          EXPORTING
            wordwrap_mode              = cl_gui_textedit=>wordwrap_at_fixed_position
            wordwrap_position          = line_length
            wordwrap_to_linebreak_mode = cl_gui_textedit=>true
            parent                     = v_custom_container
          EXCEPTIONS
            error_cntl_create          = 1
            error_cntl_init            = 2
            error_cntl_link            = 3
            error_dp_create            = 4
            gui_type_not_supported     = 5
            OTHERS                     = 6.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    ENDFORM.                    " editor_output
    getting textdata in internal table as follows
    *&      Form  create_text
    FORM create_text .
      REFRESH : it_texttable,
                it_text.
      IF v_doc_number IS NOT INITIAL.
        IF v_editor IS NOT INITIAL.
          CALL METHOD v_editor->get_text_as_r3table
            IMPORTING
              table                  = it_texttable
            EXCEPTIONS
              error_dp               = 1
              error_cntl_call_method = 2
              error_dp_create        = 3
              potential_data_loss    = 4
              OTHERS                 = 5.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                       WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
    Now, our final text data is in internal table it_texttable.
    pls, Reward if found helpful.

  • How to Insert Hastables Into Database Through JDBC

    hi all,
    I have place the Data from the Hashtables Into the Database.I can place it by Iterating through the Hastables.I would Like to Place the Entire Hashtable Itself Into the Database.
    Can Any one tell me how?
    bye.

    Hi,
    Can anyone help me out how to insert image into
    database using struts...with dao n dto classes?If it matters whether or not you are using struts then you might have something wrong.
    Make sure you separate the database logic out.
    I know these types of questions are asked frequently, you might want to search the forum for additional examples.
    Here is a good one:
    http://forum.java.sun.com/thread.jspa?threadID=620455&messageID=3495899

  • How to handle ORA-28001 error with JDBC thin driver ?

    Dear reader,
    As you all know, ORACLE returns error ORA-28001 upon a connection attempt when the user's password has expired.
    Handling the error in OCI is quite simple, thanks to the function OCIPasswordChange(). However, I have not been able to find a JAVA equivalent in the Oracle JDBC library.
    I have found a field called oracle.jdbc.driver.OracleDriver.set_new_password_string, and a field oracle.jdbc.OracleConnection.CONNECTION_PROPERTY_SET_NEW_PASSWORD, but I have really no idea on how to use them (if appropriate) so as to allow the user to change his/her password on the fly.
    I greatly appreciate having any advice from anyone who happened to be faced with that problem.
    Best regards.
    Georges BREFORT

    Hi,
    according to Note [124970.1 Example: How to Change an Expired Password in JDBC?|https://metalink2.oracle.com/metalink/plsql/f?p=130:14:2181952130729466734::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,124970.1,1,1,1,helvetica] it's possible with JDBC Thick (OCI) driver only.

  • HELP!!!! How to save xml file!!!Anyone can help???

    Hi,
    It is urgent for me to know how to save xml file. I use VC++6.0, Oracle xdk 9.0.0.0.0 or 9.0.0.0.0Abeta under windows98.
    It is OK to compile the program with print() method. But system will tell me there is illegal operation when I run it. If I delete the line with print(), the result will be normal.
    in class node, there is two functions
    void print(ostream *out = &cout, uword level = 0,uword step = 4);
    void print(DOMString buffer, size_t bufsize, uword level = 0, uword step = 4);
    Is there anyone who may tell me how to use them? to write back specific xml file?
    Without print(), I can not save the xml file...It seems in Oracle xdk9.0.0.0.0, there is no obvious function to save the file.(or because I am a new comer , not familier with DOM)
    Can anyone tell me how to save xml file? or just paste an example! It is very a little urgent to me...Hope you give me some ideas....
    Many thanks in advance!!!!
    yours,
    Fiena

    Hi,
    goto sxmb_adm > intergration engine configration > specific configration
    go in edit mode > new entry
    choose
    Category -> IDoc
    Parameters -> XML_CONVERSION
    current value -> 2
    Regards,
    Manisha

  • How to type chinese character in Oracle Report builder 6i?

    Hi,
    Does anyone know how to include the chinese character in the rdf file under Oracle Report Builder 6i?

    Hi,
    please check with this link
    [https://blogs.oracle.com/ankitkaushik/entry/displaying_multilingual_data_i ]
    Hope this link will help you
    Thanks & Regards,
    pallis

  • How to connect informix database from informatica through JDBC instead of ODBC

    How to connect informix database from informatica through JDBC instead of ODBC.

    Hi mate,
    You may get fast reply for this in informatica forums.
    Thanks
    http://mkashu.blogspot.com

  • How to print Chinese character in Zebra printer?

    Hi,
    Could you please advise how to print Chinese in Zebra printer, I have added below ZPL command line in SAPSCRIPT, but it did not work.
    ^CW1,B:MSUNG.FNT
    FO711,60A1N,47,79CI17F8FB1561,3,0,LFN998^FS

    Hi,
    go through the following links.
    [Printing Chinese Characters on Labels using ZEBRA;
    I hope it helps.
    Regards,
    Rohit

  • 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

  • How to save any file in iphone through programming.

    Hi Developers,
    I have written some code to download the image from net.
    If i want to store that image in my folder.so how can
    save or store in my folder programatically.
    Or which Api helps me regarding this.
    Please help me....

    Have a look at this thread:
    http://discussions.apple.com/thread.jspa?messageID=7541192

  • How to Insert  Chinese characters in Japanese Database

    Hi all,
    I am having following characteristics on my computer
    Machine OS --Windows Server 2003
    OS language --Japanese
    Oracle
    Oracle9i Release 9.2.0.1.0 - Production
    NLS_LANGUAGE     JAPANESE
    NLS_CHARACTERSET     JA16SJIS
    Now, i want to insert into database chinese characters. Please guide me how to do the following thing.
    How to insert chinese characters on local machine and if i want to insert on the remote databse (i can not create database link for remote database). I have to send batch file or SQL file and they will execute it on their side.
    if i use this command
    alter session set nls_language = "SIMPLIFIED CHINESE"
    and then insert the records and revert back to japanese character set. Is this correct way....?
    Thanks in advance,
    Pal

    As dombrooks has pointed out, unless all the Chinese characters you are trying to store can be represented in the Shift-JIS character set, which seems unlikely, but I'm not an expert on East Asian languages and I believe there are some glyphs that are shared between various languages, then you're not going to be able to store this data in this database in CHAR or VARCHAR2 columns.
    Depending on the national character set, you may be able to store the data in NCHAR/ NVARCHAR2 columns, though using these data types can substantially increase application complexities since various languages and libraries don't support NCHAR/ NVARCHAR2 columns or require you to jump through some hoops to use them. Your applications would also have to support both character sets, so your applications would all have to be Unicode enabled most likely, which is certainly possible but it may not be a trivial change.
    Justin

  • How to process Chinese when Oracle charset is US7ASCII

    I'm using Oracle8.1.7 with charset in server is AMERICAN_AMERICA.US7ASCII. I can process Chinese with sqlplus, as well as the environment variable NLS_LANG in client is set as AMERICAN_AMERICA.US7ASCII. By with my java application,also with JBuilder's database pilot, I get the wrong character. I have tried thin driver and oci driver. The major difference is that with oci driver, the result
    altered when the NLS_LANG is changed. But I can't get normal Chinese words until now. Could anyone tell me how can I handle this? BTW, the charset in DB server can't be changed because some other reason. Thanks in advance.

    Thank you for your replying. Does that mean as the
    database character set is US7ASCII, no Chinese
    character will be saved into db correctlly at all? Depends on what you mean. Except for EBCDIC most (if not all) character sets (the computer term) use ascii as the base. There are certainly multi-byte chinese character sets that do that. So certainly parts of those will be correctly saved.
    And it might also depend on exactly what "US7ASCII" means. In particular if it means that only 7 bits of each byte are saved then you have to use a mapping strategy. If it doesn't really mean that, and 8 bits are used, then multibyte character sets would be saved correctly because a multibyte chinese character set doesn't really do anything except add more 8 bit bytes.
    But you still have to get it from java into the database. Java will map it into the character set regardless. One way around this might be to extract string values as bytes using a multibyte character set name (see the String.getBytes(String) method.) Then save that using Statement.setObject() into a string field.
    At first, I also think Chinese character will lost it's
    high bit when saved into ASCII DB. But another fact
    puzzled me. Why sqlplus can save and retrive Chinese
    correctlly? Could you please explain to me how does
    sqlplus do that. Does it also execute some
    transformation before saving into db.I couldn't help you there. It is possible that you just haven't tested enough - you haven't tested the entire character set. Or like I said, it is using an 8 bit ASCII character set and a chinese multibyte character set.
    If you search this forum you will find some discussions about using foreign language character sets which might help. I don't recall any with this specific problem though.

  • How to save my voice memos in windows laptop as I already know how to synchronise ?

    How to save my voice memos from iPhone to windows laptop after syncronising with iTunes which memos are 1hr longer?

    Usually it goes to the last folder used or the folder the current PDF was opened from (I am getting the latter in my current Acrobat). If you want a different folder, you will have to go through the tree to your desired folder process.

  • How to save pdf file in database

    Dear All,
    my application is forms 6i and database is 8i,requirement is that how to save pdf file in database and users can view through forms

    I'll apologize up front for the length of this post. I have a few database procedures I created that write a file to a BLOB column in a table as well as retrieve the BLOB from the column after it stored there. I have successfully stored many different types of binary file to the database using these procedures - including PDF files. I have not used these procedures in a Form so I can confirm that they will work, but theoretically they should work. I'm including the code for each procedure in this posting - hence the apology for the long post! :-)
    Also, since these procedures reside on the database you will need to use Forms TEXT_IO built-in package to write your file to the server before you can use these procedures to store and retrieve the file from the database.
    These procedures reads and writes a binary file to a table called "LOB_TABLE." You will need to modify the procedure to write to your table.
    -- Author :  Craig J. Butts (CJB)
    -- Name   :  load_file_to_blob.sql
    --        :  This procedure uses an Oracle Directory called "IN_FILE_LOC".  If you
    --           already have a directory defined in the database or would prefer to use
    --           a different Directory name, make sure you modify line 21 to reflect the
    --           new Directory name.
    -- ==================================================================================
    -- History
    -- DATE        WHO         DESCRIPTION
    -- 12/11/07    CJB         Created.
    CREATE OR REPLACE PROCEDURE load_file_to_blob (p_filename IN VARCHAR2) IS
       out_blob    BLOB;
       in_file     BFILE;
       blob_length INTEGER;
       vErrMsg     VARCHAR2(2000);
    BEGIN
       -- set the in_file
       in_file := BFILENAME('IN_FILE_LOC',p_filename);
       -- Get the size of the file
       dbms_lob.fileopen(in_file, dbms_lob.file_readonly);
       blob_length := dbms_lob.getlength(in_file);
       dbms_lob.fileclose(in_file);
       -- Insert a new Record into the tabel containing the
       -- filename specified in P_FILENAME and a LOB_LOCATOR.
       -- Return the LOB_LOCATOR and assign it to out_blob.
       INSERT INTO lob_table (filename, blobdata)
          VALUES (p_filename, EMPTY_BLOB())
          RETURNING blobdata INTO out_blob;
       -- Load the file into the database as a blob.
       dbms_lob.open(in_file, dbms_lob.lob_readonly);
       dbms_lob.open(out_blob, dbms_lob.lob_readwrite);
       dbms_lob.loadfromfile(out_blob, in_file, blob_length);
       -- Close handles to blob and file
       dbms_lob.close(out_blob);
       dbms_lob.close(in_file);
       commit;
       -- Confirm insert by querying the database
       -- for Lob Length information and output results
       blob_length := 0;
       BEGIN
          SELECT dbms_lob.getlength(blobdata) into blob_length
            FROM lob_table
           WHERE filename = p_filename;
       EXCEPTION WHEN OTHERS THEN
          vErrMsg := 'No data Found';
       END;
       vErrMsg := 'Successfully inserted BLOB '''||p_filename||''' of size '||blob_length||' bytes.';
       dbms_output.put_line(vErrMsg);
    END;
    -- Author   :  Craig J. Butts (CJB)
    -- Name     :  write_blob_to_file.sql
    -- Descrip  :  This procedure takes a BLOB object from a database table and writes it
    --             to the file system
    -- ==================================================================================
    -- History
    -- DATE        WHO         DESCRIPTION
    -- 12/11/07    CJB         Created.
    CREATE OR REPLACE PROCEDURE write_blob_to_file ( p_filename IN VARCHAR2 ) IS
       v_blob      BLOB;
       blob_length INTEGER;
       out_file    UTL_FILE.FILE_TYPE;
       v_buffer    RAW(32767);
       chunk_size  BINARY_INTEGER := 32767;
       blob_position INTEGER := 1;
       vErrMsg     VARCHAR2(2000);
    BEGIN
       -- Retrieve the BLOB for reading
       BEGIN
          SELECT blobdata
            INTO v_blob
            FROM lob_table
           WHERE filename = p_filename;
       EXCEPTION WHEN OTHERS THEN
          vErrMsg := 'No data found';
       END;
       -- Retrieve the SIZE of the BLOB
       blob_length := DBMS_LOB.GETLENGTH(v_blob);
       -- Open a handle to the location where you are going to write the blob
       -- Note:  The 'WB' parameter means "Write in Byte Mode" and is only
       --          available in the UTL_FILE pkg with Oracle 10g or later.
       --        USE 'W' instead for pre Oracle 10q databases.
       out_file := UTL_FILE.FOPEN('OUT_FILE_LOC',p_filename, 'wb', chunk_size);
       -- Write the BLOB to the file in chunks
       WHILE blob_position <= blob_length LOOP
          IF ( ( blob_position + chunk_size - 1 ) > blob_length ) THEN
             chunk_size := blob_length - blob_position + 1;
          END IF;
          dbms_lob.read(v_blob, chunk_size, blob_position, v_buffer );
          UTL_FILE.put_raw ( out_file, v_buffer, TRUE);
          blob_position := blob_position + chunk_size;     
       END LOOP;  
    END;Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks!

  • How to install Chinese fonts on my application server

    Hi Experts,
    We are facing an issue in which the Adobe services PDF couldn't able to recognize chinese characters
    So, we want to install chinese fonts CNSONG,CNHEI etc on our application server (which is ABAP only system)
    Can any one share me the steps to perform for the same.
    Thanks in Advance !
    Regards
    Sandy

    Sandy,
    Read this sap note first: 195442 - Language import and Support Packages
    Refer to below forum & VIdeo on how to install chinese language in SAP system.
    how to install chinese language in sap ecc 6.0 unicode system
    www.youtube.com/watch?v=UDw_-ObL0z0
    Procedure
    Language Installation steps (make sure all Support Packages up to date)
    1. /nSMLT
    Select from menu LANGUAGE -> CLASSIFY
    Language = China
    Supplementation Language = English (please note this only allow to set ONCE ONLY!!)
    click SAVE disk icon
    highlight THAI then select LANGUAGE -> IMPORT PACKAGE
    Language = China
    Path = (the CD above, must be UNIX path if backend is UNIX server!)
    2. /nRZ10
    Profile = select INSTANCE PROFILE
    Click EXTENDED MAINTENANCE
    -> then click CHANGE
    -> click PARAMETER button at top bar
    set install/codepage/appl_server = 8600 (note: 86=Thai, 00=English)
    3. /nSE38
    execute Program = RSCPINST -> click execute icon
    under Enter Languages -> remove German(DE) & add China (CH) {please note ONLY allow TWO languages max)
    click SIMULATE button at top bar (this will tell you if any errors, example Code Page not match)
    If simulate OK then click ACTIVATE button on top bar.
    FINISH u2013 your language is installed & activated!!!!!!!

Maybe you are looking for

  • Need to default text string values to null and leave numeric values as are

    Hi, This may be a simple question but I have the following query: select gis.province, ce.place_id from  cla_event ce Left join (select * from rbn_gis_area where version = 10) gis on ce.place_id  = gis.sp_codeProblem is place_id has text fields since

  • Embed image into email (not attachments)

    Hi all, i need to embed images into an HTML table of an email. Can anyone help me, please? Sergio

  • Problems upgrading to Lion with 2010-vintage MacBook Pro?

    I'm seeinhg horror stories. I would like to upgrade so I can use iCloud from my computer, but I'm nervous. What's up?

  • Hp is saying suspected water damage

    I have a hp dv6, i was working on my PowerPoint at my desk and the computer shuts off with no warning. A power chord will not power it back on. I called hp, they sent a box out, I have a factory warranty on it. I called and talk to someone who says t

  • [UNSOLVED] multi monitor question

    Is this possible? I have a laptop. right now the lap screen is disabled and I have a 19' LCD hooked to it via a vga port. Is it possible to have 2 seperate logins/wm's on each screen or have my GUI on one screen and have an actual terminal on the oth