What file format Oracle Database 11g can spool data w chinese characters?

Hi,
I have a batch job that spools data into a text file for further processing but now I have data that contains chinese characters.
From what I know text file (.txt) cannot support chinese characters.
Anyone has any idea what file format Oracle Database 11g can spool data with chinese characters?
Thank you!
Regards,
Fel

I'm not sure this can work with SQL*Plus in character mode on Windows DOS mode. But this should work with SQL Developer: see Re: How to display Chinese characters in Oracle?
I can also make this work with Linux:
$ locale
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=
$ cat chinese.sql
cat tchinese.sql
set echo on
spool tchinese.log
select * from v$version;
select unistr('\8349') from dual;
exit
$ cat tchinese.log
SQL> select * from v$version;
BANNER                                                                         
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod               
PL/SQL Release 10.2.0.1.0 - Production                                         
CORE     10.2.0.1.0     Production                                                     
TNS for Linux: Version 10.2.0.1.0 - Production                                 
NLSRTL Version 10.2.0.1.0 - Production                                         
SQL> select unistr('\8349') from dual;
UNIS                                                                           
草                                                                              Edited by: P. Forstmann on May 27, 2009 10:30 AM
Edited by: P. Forstmann on May 27, 2009 10:33 AM

Similar Messages

  • How to mail pdf file from oracle database 11g

    Hi,
    Using following code to send pdf file from oracle database.
    DECLARE
    v_From VARCHAR2(80) := '[email protected]';
    v_Recipient VARCHAR2(80) := '[email protected]';
    v_Subject VARCHAR2(80) := 'test subject';
    v_Mail_Host VARCHAR2(30) := '116.214.31.249';
    v_Mail_Conn sys.utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    BEGIN
    v_Mail_Conn := sys.utl_smtp.Open_Connection(v_Mail_Host, 26);
    sys.utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
    sys.utl_smtp.Mail(v_Mail_Conn, v_From);
    sys.utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
    sys.utl_smtp.Data(v_Mail_Conn,
    'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
    'From: ' || v_From || crlf ||
    'Subject: '|| v_Subject || crlf ||
    'To: ' || v_Recipient || crlf ||
    'MIME-Version: 1.0'|| crlf ||     -- Use MIME mail standard
    'Content-Type: multipart/mixed;'|| crlf ||
    ' boundary="-----SECBOUND"'|| crlf ||
    crlf ||
    '-------SECBOUND'|| crlf ||
    'Content-Type: text/plain;'|| crlf ||
    'Content-Transfer_Encoding: 7bit'|| crlf ||
    crlf ||
    'some message text'|| crlf ||     -- Message body
    'more message text'|| crlf ||
    crlf ||
    '-------SECBOUND'|| crlf ||
    'Content-Type: file;'|| crlf ||
    ' name="D:\mail\pdfSample.pdf"'|| crlf ||
    'Content-Transfer_Encoding: 8bit'|| crlf ||
    'Content-Disposition: attachment;'|| crlf ||
    ' filename="D:\mail\pdfSample.pdf"'|| crlf ||
    crlf ||
    'CSV,file,attachement'|| crlf ||     -- Content of attachment
    crlf ||
    '-------SECBOUND--'               -- End MIME mail
    sys.utl_smtp.Quit(v_mail_conn);
    EXCEPTION
    WHEN sys.utl_smtp.Transient_Error OR sys.utl_smtp.Permanent_Error then
    raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    Above code executed successfully and mail is send to recipient but file is corrupted.
    I think it doesn't pick file from specified location, attachment name is appearing like this 'D:mailpdfsample.pdf
    Oracle Database : 11g R2
    O.S : windows 7 Professional
    Thanks in Advance

    parapr wrote:
    sys.utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);The above violates RFC 5321 section 4.1.1.1
    '-------SECBOUND'|| crlf ||
    'Content-Type: file;'|| crlf ||
    ' name="D:\mail\pdfSample.pdf"'|| crlf ||
    'Content-Transfer_Encoding: 8bit'|| crlf ||
    'Content-Disposition: attachment;'|| crlf ||
    ' filename="D:\mail\pdfSample.pdf"'|| crlf ||Invalid Mime header above. Filename are logical. Not physical. Loose the drive and directory names. The filename is there to name the Mime body's content.
    crlf ||
    'CSV,file,attachement'|| crlf ||     -- Content of attachmentHow is the above PDF content? This is a string containing the text CSV,file,attachement. Which means when this is what is saved as a PDF file by the mail reader.
    EXCEPTION
    WHEN sys.utl_smtp.Transient_Error OR sys.utl_smtp.Permanent_Error then
    raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;Silly. Why change meaningful exceptions into a generic meaningless exception?? That does not make any sense.

  • Oracle Database 11g Release 2 date

    Does anyone know for certain when Oracle Database 11g Release 2 is scheduled for release?
    We keep hearing it was due in mid-summer, then July, then mid-August, and now we are still waiting.
    Any have an official date on this yet?

    I can tell you with absolute certainty Oracle Database 11 Release 2 will be available for download no later than the end of Larry Ellison's keynote address at OpenWorld.
    You can safely mark that date on your calendar. <g>
    No software maker, with even a hint of sanity, ever announces a date by which software will be released.

  • Can not Install Oracle Database 11g Release 2

    This will be my second time trying to install Oracle Database 11g Release 2 on my Computer. I have Windows 7 x64 and when go through the setup phase, I receive numerous errors stating that files are missing and it will never get past that stage. I downloaded both folders for the database:
    Oracle Database 11g Release 2 (11.2.0.1.0) for Microsoft Windows (x64)
    win64_11gR2_database_1of2.zip (1,213,501,989 bytes) (cksum - 3906682109)
    win64_11gR2_database_2of2.zip (1,007,988,954 bytes) (cksum - 1232608515)
    Can anyone tell me what I am doing wrong?

    Pl post the complete error message. Have you unzipped the two files into the same directory ?
    Oracle 11g R2 Windows Installation issue
    Re: 11g R2 install failure
    Srini

  • Oracle Database 11g: Administration Workshop I Lab files

    Hi, I was trying to do the practicals for the above workshop, but i cant seem to locate the lab files from the directory/home/oracle/labs.
    This is what happened when i try to run the lab file script.
    [oracle@localhost ~]$ /home/oracle/labs
    [oracle@localhost ~]$ ls
    Desktop labs
    [oracle@localhost ~]$ cd labs
    [oracle@localhost ~]$ ls
    cloneDBCreation.sql lockAccount.sql postScripts.sql
    CloneRmanRestore.sql orcl.sh rmanRestoreDatafiles.sql
    init.ora orcl.sql ultraSearchCfg.sql
    initorclTemp.ora postDBCreation.sql
    I was told to run the script: $ sqlplus dba1/oracle @lab_06_02_4.sql, but apparently there's no lab files for me to run the script.
    Does anyone know how to resolve this problem?
    Many thanks in advance! :D

    user12201455 wrote:
    Hey all. I'm trying to figure out if the class "Oracle Database 11g: Administration Workshop I Release 2" counts toward OCP certification. I know that "Oracle Database 11g: Administration Workshop I" does from this page: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=244#5 However, Release 2 is not listed there. It'd be a pretty spectacular waste of $3000 to take a class that doesn't count toward OCP if that's what I'm going for. :) Help appreciated!
    From the UK on the link you refer to I currently see (under 11g OCP section .... ) (There is an OCP and OCM section as well).
    * Oracle Database 11g: Introduction to SQL
    * Oracle Database 11g: Introduction to SQL Ed 1 LVC
    * Oracle Database 11g: SQL Fundamentals I
    * Oracle Database 11g: SQL Fundamentals l Ed 1 LVC
    * Oracle Database 11g: SQL and PL/SQL Fundamentals
    * Oracle Database 11g: SQL and PL/SQL Fundamentals Ed 1 LVC
    * Oracle Database 11g: Develop PL/SQL Program Units
    * Oracle Database 11g: Administration Workshop I
    * Oracle Database 11g: Administration Workshop I Ed 1.1 LVC
    * Oracle Database 11g: Administration Workshop II
    * Oracle Database 11g: Data Warehousing Fundamentals
    The course you mention appears to me to be second from bottom.
    Very occasionally these webpages can unintentionally vary from country to country.
    Sorry ... misunderstood, either the (release 1 or release 2 will count). I am not authorative on this but they are not that cruel. The main general issue is 10g classes typically cannot be used for an 11g OCP. Please note I am not authorative on this but I am as sure as I can be about the principle. Check with your local Oracle University if you need to be authoratively sure.
    Edited by: bigdelboy on 20-Apr-2010 16:00

  • Can one import .odarc extention file into oracle database

    Hi All,
    When we asked client for their production data dump, we got a file with .odarc extention. I googled to find out about this file extention and found info mostly referring to User Productivity Kit. I assume that this file cannot be imported in to oracle database. Since my knowledge about this is limited, I want to find out if it's possible to import this file to oracle database or not. If it's possible what's the work around.
    Environment details
    OS : Windows server 2003 sp2
    Oracle version : 11.2.0.1
    Please ask me if the info is insufficient.
    Thanks & Regards

    Oracle can only process files created with :
    1. Oracle exp (export tool) with imp
    2. Oracle expdp (data pump export) with impdp
    3. plain ASCII files with a column based format like CSV with SQL*Loader or external table
    4. file containing Oracle SQL statements with SQL*Plus or similar tool.
    Any other file type cannot be directly processed by Oracle.
    Edited by: P. Forstmann on 17 févr. 2011 09:11

  • Help! My  Oracle Form builder 11g can't conect Oracle database(11g/10g)

    I have installed
    1.Oracle Database 11g Release 2 Standard edtion
    2.WebLogic Server (10.3.3)
    3.Portal, Forms, Reports and Discoverer (11.1.1.3.0)
    after install I try run the test.fmx is ok!
    But I want used form builder 11g connect my database 11g(installed at same host),
    It connect appeared ORA-12154: TNS: could not resolve service name.
    I search all about middleware folder in my PC , then find two tnsnames files and two sqlnet.ora
    the sqlnet.ora content is
    #==============================================================
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    #==============================================================
    the tnsnames.ora content is(copy same content from oracle database 11g's tnsnames.ora)
    #==============================================================
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test1.XXX.com.tw)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.XXX.com.tw)
    #==============================================================
    The I update all of my PC's tnsnames.ora like above string,but it always not work
    somebody help me,thanks!!

    Ronald,
    I was able to connect to a database with Forms 11g by adding an Environment variable TNS_ADMIN and pointing this to the directory where the sqlnet.ora and tnsnames.ora files are located. I was unable to find a Net Configuration Assistant in Forms 11g and placing a copy of .ora files in the /%11G HOME/NETWORK/ADMIN didn't work either. Only after I added the environment variable was I able to connect.
    There might be a "More Appropriate" solution, but this is what worked for me. We are just now testing 11g, but are still developing with 10g R2.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Sep 16, 2010 8:43 AM

  • Where can I download PRO*COBOL for Oracle database 11g ?

    Where can I download PRO*COBOL for Oracle database 11g ? I have downloaded & installed linux.x64_11gR1_database_1013.zip
    It has a procob32 but it gives an ERROR loading shared library libcIntsh.so.11.1 ?
    What should pro*cobol be for my linux 64 bit AMD ? (procob procob32, procob18, procob64)
    Hope somebody can help with this, Thanks, [email protected] www.uvsoftware.ca

    This is not the appropriate forum to post this.
    Kindly post it in the Database General Forum or search in the download section.
    Regards.
    Satyaki De.

  • How to generate .SQL format file from oracle database?

    How to generate .SQL format file from oracle database?
    I have a database of Oracle 8.1.6,now want to generate script file (including table structure,index,etc.) from it,What should I do?
    Thanks.

    Your question pertains to the Database Export/Import. This forum exclusively focusses on the export/import utilities that come along with "Oracle Portal" which is a web-based tool. Could you please post your question under the RDBMS export/import or migration forum.

  • What file format can be used to play 3D videos on Panasonic TVPlasma3D with USB PenDrive?

    What file format can be used to play 3D videos on Panasonic TVPlasma3D with USB PenDrive?
    I writed to Panasonic Italy support about this question:
    "What file format can be used to play 3D videos on Panasonic TVPlasma3D with USB PenDrive?"
    Panasonic writed me in a very poor manner and said me:
    "...riproduce formati: AVCHD (anche 3D), SD-Video, DivXHD, JPEG, MP3, AAC tramite USB e Slot SD/SDHC/SDXC card..."
    "...formato : AVCHD estensione file nella SD: .MTS..."
    I made a few videos edited with PremiereProCS5 and exported as H.264 Coding and .mp4 file extension, all side by side, with layout 1920x1080pixels that includes two stretched frames at 960x1080 pixels.
    This is the same image layout that uses the Panasonic 3D consumer camcorder "HDC-SDT750", that record AVCHD videos with file extension .MTS.
    I also tried to export another video as MPEG2 with .mpg file extension.
    But at the store the tests failed, and I cannot see anything!
    My questions are:
    1) What format can be used by PremiereProCS5 for exporting the Stereoscopic 3D videoclip and play them via USB port on Panasonic TVPlasma3D such "TX-P46VT20"?
    2) What codec should be used? H.264? H.264-bluray?
    3) What file extension should have the movie file? .mp4?
    Many Thanks!
    Horsepower0171.

    -I already read entirely those threads, but nothing about stereoscopic 3D AVCHD movies through USB port, on Panasonic TVPlasma3D.
    (Also, Sony said me that is not possible to play 3D videos on your 3DTV through USB port).
    I tried to made a H.264 videoclip, with .MP4 extension, at 960x1080p side-by-side layout, but nothing was displayed, and black screen.
    I think that just the AVCHD movies, with .MTS extension, that comes from Panasonic consumer camcorder "HDC-SDT750", can play the 3D videos via HDMI cable, not USB port.
    But not the exported videos from PremierePro via USB port.
    I seen this tutorial from David K Helmly:
    http://www.youtube.com/user/dhelmly#p/a/u/1/_YtF0c2bmkw
    Dave export the video from PremiereProCS5 as "MPEG2-bluray" format with "Match Source Attributes (HighQuality)" Preset, and build the Bluray Disc in EncoreCS5, with the footage as MPEG2 with .m2v file extension:
    1) Anyone tried to play correctly in 3D, those MPEG2-.m2v side-by-side files, in Panasonic3DTV, with BlurayDiscReader?
    2) Why MPEG2.m2v side-by-side?
    3) The official standard stereoscopic 3D format, is not the .MVC (MultiViewCoding) for Bluray3D Disc?
    I am confused!
    Help!
    Horsepower0171.

  • What file format can Media Services supports?

    Does Azure Media Services support file format such as rmvb or 3gp ,and so on.I want to know what file format I can play with Azure Media Services exactly,Thanks.

    The encoding for Windows Azure Media Services is currently based on Expression Encoder.  Expression Encoder's supported list is at
    http://msdn.microsoft.com/en-us/library/cc294687(v=Expression.40).aspx.  The formats that require QuickTime aren't currently supported.

  • Oracle Database 11g version 11.1.0.6.0 can be installed on windows 7

    Hi,
    I would like to ask if Oracle Database 11g version 11.1.0.6.0 can be installed on windows 7 32-bit.
    if it could please how?

    Welcome to the forums !
    Officially, Oracle has not certified any database software for Windows 7 as of today.
    That does not prevent folks from trying to install :-) see Oracle 11g on Windows 7 as an example.
    Use the search feature to find other threads.
    Pl note that if you run into issues, you are on your own.
    HTH
    Srini

  • What file format can import?

    imovie version is 7.1. I downloaded some clips from my cell phone onto hard drive and they show up as quick time files, play without difficulty on quicktime player. However, imovie won't import them, says they are not compatible. ?What file formats are compatible? ?Why would apple put quicktime and imovie on my hard drive, but not have them able to use same file type?
    If it is important to know, I imported the files from my cell phone's card; I don't have a cable to attach my phone to USB so I don't have a way to directly try to download from the phone to computer. ?would I be able to import the files from my card to imovie?
    any other solutions?
    all help much appreciated

    The MPEG4 video codec should probably work. However, the audio codec looks like a proprietary codec that is unlikely to work. But it is good news that it will play in QuickTime Player. If QuickTime can read it, you should be able to convert it to a format that iMovie can handle.
    You could do this with QuickTime Pro ($30 from Apple). But there is a free program called MPEG Streamclip (from Squared 5) that will do this. Drag you clip into MPEG Streamclip and then FILE/EXPORT USING QUICKTIME. Choose h.264 or mp4 as your video codec. Choose uncompressed, or AAC, or AIFF, or MP3 as your video codec. AIFF is most likely to work. Keep the dimensions of the clip at "current".
    Be aware that your file is about a quarter of the resolution of a standard definition TV set, so don't expect it to look great. But if you plan to look at it online rather than on a TV or DVD, it should be fine.

  • What file formats can itunes play?

    After looking at hundreds of posts, I got fed up and decided to ask these questions. What file formats does itunes play and how can you change/adjust them? I thought there was a place to do this when I installed itunes, but I haven't been able to find it so far.
    Thanks

    Thanks for the help, but my question is still unanswered, I want to know how to associate different file types with iTunes, maybe I am not asking the question correctly, or don't know the terminology. I know that my real player can be made to associate different file types from the tools menu, I check off the boxes with the different extensions, like, .mp3, wav, midi, .ogg, etc... I thought there was a feature like this on iTunes, but I can't find it, is it only available when I install it?

  • What is the largest MMC and SD card that the Acer C710 can use, and what file formats can be used?

    What is the largest MMC and SD card that the Acer C710 can read from and write to when inserted into the built-in 2-in-1 card reader? What file formats can be used with aforementioned MMC and SD cards?i.e. FAT, FAT 32, exFAT, etc.

    Thank you for you help. I forgot to mention what is the highest class of SD card it can use at top speed, and are there any classes that will simply not work? An example answer would be, the highest speed that it can operate at clase 6, with class 8 being the highest class compatible; class 10 will not work. Also note, there are new cards faster than class 10. I have seen symbols like U1 and U3. I don't expect a discount computer to run an SD card faster than class 10, but it is important to know if U1 and U3 at least work.

Maybe you are looking for

  • Filename in footer

    In Excel, I can easily insert the filename as a footer. It's part of the pull-down menu for footer/header. Can I do this in Numbers?

  • Jsp session variable to call in  java class.

    here i am facing a problem in calling a jsp session varibale to java class. in my code.. i have seperate files for jsp pages and packaged java classes. as i am developing a web tire application. the data entered in the front end i am getting to jsp p

  • How to get name of the month from current date.

    Hi,    How to get the name of the month from current date. Thanks, Senthil

  • How To add Calender

    Hello Every body,Actually I am having a probelem I ant to invoke a calender how to do dis in forms6i............................

  • Plz suggest how to optimized

    Hi i have following scenerio: Oracle Database 10g Release 10.2.0.4.0 - 64bit Production table structure SQL> desc PRODUCTION_HISTORY Name Null? Type FK_COMPANY_ID NOT NULL NUMBER(10) PRODUCTION_HISTORY CLOB SQL> UPDATE PRODUCTION_HISTORY SET PRODUCTI