Opening a UTF8 file in SqlPlus Worksheet

OS: Win2000 server
Oracle 9: Unicode installation, for multilingual data.
I need to open a script (it's in UTF8) file containing some Japanese characters. I changed the client configuration (NLS_LANG) and also my regional settings to be able to type Japanese characters; but when I open the file it's corrupted.
If I do a copy and paste from Notepad to the SqlPlus Worksheet or if I type the Japanese characters everything works.
Any ideas of what I'm doing wrong?

Your NLS_LANG should reflect the regional setting you have for your Windows 2000 client. SQL*PLUS is not going to be able to handle Unicode files on a Windows 2000 environment. You could use iSQL*PLUS for this purpose. It is a browser based version and can handle UTF-8.

Similar Messages

  • Open/Read UTF8 File - Allignement Issue

    I have a Microsoft Access file that is saved as UTF8 file. This file does contain both English and Chinese characters. Using FTP to move file to AS400 SAP directory. Viewed file in AL11 looks good, can see both English and Chinese characters.
    ABAP pgm uses the following open command/options.
    "Open dataset fname in text mode encoding default ignoring conversion errors"
    No problem openning the file. However, when pgm issues the following read command only the fields containing english align correctly with structure.
    "read dataset fname into structure."
    I have tried setting the local language to '1' and then open the file. Did not change results, alignment continued to occur.
    SAP Info:
    OS = AS400
    Version = 4.7
    Unicode = Yes

    Try with this syntax to open your file
    Open dataset fname in text mode encoding UTF8 ignoring conversion errors
    Regards,
    Naimesh Patel

  • Microsoft Forms and Microsoft Visual Basic while opening the Excel file

    Hello,
    I have issues with 2010 64 bit Office Pro Plus Excel. Whenever I open an Excel file (97-2003 worksheet) which has macros then I get below 2 errors in sequence.
    Please note that all macro settings are enabled and below are my system configs.
    Win 7 Ultimate 64 bit,
    MS Office Pro Plus 2010 64 bit with SP2.
    Googled all and tried but in vein and also note that I dont have any .exd files under ../forms to delete. Please help.
    Please note that for others with same system config/office versions and same 97-2003 worksheet it works so issues is only in my system.
    First Error
    Microsoft Forms
    Could not load an object because it is not available on this machine.
    Second Error
    Microsoft Visual Basic for Applications
    Compile error in hidden module:  MainUtilities2.
    This error commonly occurs when code is incompatible with the version, platform, or architecture of this application.  Click "Help" for information on how to correct this error.
    Thanks.

    Your macro's will not run in a Office 64 environment only in a 32bit environment. The 64bit environment has a whole different setup and macro's created in an earlier 32 bit environment will stop working.
    So if you want to use them in a 64 Office environment you have to rewrite the macro's.
    have a look here:
    http://msdn.microsoft.com/en-us/library/gg264421.aspx
    Maurice

  • Defect:  Sometimes opened sql/txt files are unreadable in worksheet.

    I haven't pinpointed the exact sequence of events yet. Sorry.
    I work on two different machines. One: 64bit running Vista. Two: 32bit running XP.
    They have the same fonts and operating system languages.
    I keep a set of files I'm working on on a usb stick (which appears to be working perfectly).
    Sometimes, but not always, when I open up a one of those files on the key, it shows up as square-box gibberish in the sql worksheet window.
    I can open the same file with notepad just fine, and paste the contents into the same sql worksheet just fine.
    But it's a darned nuisance, not to mention an opportunity to overwrite my work if I forget to close the open file in notepad and save it later.

    I've had a few moments to try to track down more info on this problem.
    I work on a 64bit vista machine at work and a 32bit windows xp machine at home.
    I'm at home, so I'll post what I discovered here, and then post what happens on the 64bit when I get to work tomorrow.
    All the files I'm discussing have only the standard ascii characters in them.
    Both machines have the same fonts and font setup, and the same OS language. I do not believe this is a font or language issue.
    I believe it may be an encoding issue.
    I opened up a .txt file with sql developer. It happened to work fine this time.
    I opened up the same .txt file with notepad, and saved it to a new .sql extension. It opened fine with sql developer.
    I opened up the original .txt file with notepad and saved it to a new .txt filename and chose the unicode encoding instead of the ansi encoding that notepad was defaulting to. I also used notepad to save the file to another .txt file and chose a utf-8 encoding for it.
    I opened up the unicode encoding file using sql developer and got gibberish. Upon closer inspection, I could actually read the code in the file, but each character had a box between it. I'll use [] to represent a box. So, my first line looked like this: [] [] []b[]e[]g[]i[]n[].
    I opened up the utf encoding file using sql developer and got some gibberish, but most of the file looked fine.
    My environment setting had UTF-8 as a setting.
    I changed the environment setting to UTF_16, and re-opened the files.
    The file saved as unicode is now readable and the other files are now complete gibberish.
    I'm guessing that my work machine has a different default encoding scheme at the operating system level, because I believe both are set up with the same settings inside sql developer. (I used the same written instructions for both.)
    I'll post what I find at work tomorrow.
    If this turns out to be correct, it would be nice if sql developer automatically checked the encoding of the file when it was loaded and acted accordingly. That appears to be a possible course of action, because when I open up each of the encoded files in notepad, it (a) displays each of them correctly automatically and (b) when I do a save as, it shows the encoding the file was last saved in as the default value.

  • How to create link for pdf file in discoverer worksheet

    Hi All,
    I would like to create a link for pdf file into discoverer report (worksheet).
    So that i can open linked pdf file using worksheet link.
    Can any one tell me about this?
    Thanks
    Ravi

    Hi,
    I think the best way to do this is to use a database directory so that you can access your pdf file as a bfile. Then create a mod_plsql procedure that sets the mime type and downloads the pdf file. You then create a calculation in the EUL then returns the URL to your mod_plsql procedure. You can then include this calculation as a hyperlink in your worksheet.
    It is not as difficult as it sounds. Please let me know if you need anymore details.
    Rod West

  • Intermittent Error 41106 Error when trying to open an Excel file.

    I am having an intermittent problem while opening an Excel file.  The problem only occurs occasionally during execution of my program.  My program has a cluster of buttons each button opens a sub VI that is part of a calibration process.  The first VI generates an EXCEL filename that is used to save all calibration data.  A template is opened, data is placed in this template, and then it is saved under the generated filename.  Most of the time this seems to work fine, but every once in a while I receive a -41106 error indicating that Microsoft EXCEL did not open.  As far as I can tell when I run each sub VI independently they work fine and no errors are generated.  Does anyone know why this might be happening?  I would appreciate any help.
    Thanks 

    What version of LabVIEW and the Report Generation Toolkit are you using?  I remember adding some code in the 1.1 version of the toolkit to attempt to avoid some Microsoft Excel latencies with opening/closing the application repeatedly, but it was by no means fool proof, since Excel sometimes takes its sweet time leaving memory when the application exits.  Without knowing any more specifics, my best suggestion is for you to add a small delay between successive operations regarding opening/closing Excel and see if that helps.  Also, if you could post a simple VI that demonstrates the behavior, that would be extra helpful.
    Oh yeah, and another suggestion would be to open one report reference at the beginning of your program, and use this reference through the whole thing...I understand that this might not be possible, though, if you're opening different worksheets throughout the course of your application running.
    Good luck,
    -D
    P.S. - For those of you reading this wondering why I would automatically assume MegaMan is using the Report Generation Toolkit, he cites error -41106, which is an error specific to this toolkit.
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Opening an .xls file and writing data to it....

    Hi ,
    I have written the following simple routine... which is supposed to open a .xls file and some data are written...:
    DECLARE
    application ole2.obj_type;
    workbooks ole2.obj_type;
    workbook ole2.obj_type;
    worksheet ole2.obj_type;
    worksheets ole2.obj_type;
    cell ole2.obj_type;
    --Declare handles to OLE argument lists
    args ole2.list_type;
    BEGIN
    application:=OLE2.CREATE_OBJ('Excel.Application');
    OLE2.Set_Property(application,'Visible', 'True');
    workbooks := ole2.get_obj_property(application, 'Workbooks');
    workbook:=OLE2.INVOKE_OBJ(workbooks,'Add');
    args:= ole2.create_arglist;
    ole2.add_arg(args, 'c:\example.XLS');
    workbook := ole2.invoke_obj(workbook, 'Open', args);
    ole2.destroy_arglist(args);
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 1); 
    OLE2.ADD_ARG(args, 1);
    cell:=OLE2.Invoke_Obj(workbooks, 'Cells', args); 
    OLE2.DESTROY_ARGLIST(args);
    OLE2.Set_Property(cell, 'Value', 'Excel');
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 0);
    OLE2.INVOKE(workbook, 'Close', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.RELEASE_OBJ(cell);
    OLE2.RELEASE_OBJ(workbook);
    OLE2.RELEASE_OBJ(workbooks);
    OLE2.RELEASE_OBJ(application);
    OLE2.INVOKE(application,'Quit');
    END; but it does nothing.... it simply opens the Excel application..... How should I modify the routine in order to open the example.xls file and write some data to it .....???????
    Many thanks,
    Simon

    OK... I SOLVED THE PROBLEM.....
    Regards,
    Simon

  • I can't open or save file with Java Web Start

    Hi,
    i can't open or save file with Java Web Start:
    import java.io.*;
    import java.util.*;
    public class MetaDataFileCreator {
    public String fileNameSpace = null;
    public String fileName = null;
    protected Properties file = null;
    public MetaDataFileCreator(String fileNameSpace, String fileName) {
    this.fileNameSpace = fileNameSpace;
    this.fileName = fileName;
    public void createMetaDataFile() {
    try {
    System.out.println("file METADATA");
    ClassLoader cl = this.getClass().getClassLoader();
    String nameFileMetaData = fileNameSpace + fileName + ".txt";
    FileOutputStream fileOS = new FileOutputStream(cl.getResource(nameFileMetaData).getFile());
    file = new Properties();
    file.setProperty("aaaaa", "aaaa");
    file.store(fileOS, "");
    fileOS.close();
    } catch (Exception e) {
    System.out.println("Error writing metadata-file: " + e);
    System.exit(1);
    e.printStackTrace();
    I have try also to open a file like this:
    ClassLoader cl = this.getClass().getClassLoader();
    file.load(cl.getResourceAsStream(nameFile));
    also like this:
    try {
    fos = (FileOpenService)ServiceManager.lookup("javax.jnlp.FileOpenService");
    fss = (FileSaveService)ServiceManager.lookup("javax.jnlp.FileSaveService");
    } catch (UnavailableServiceException e) {
    fss = null;
    fos = null;
    System.out.println("Error with JNLP");
    System.exit(1);
    if (fss != null && fos != null) {
    try {
    // get a FileContents object to work with from the
    // FileOpenService
    FileContents fc = fos.openFileDialog(null, null);
    //FileContents newfc2 = fss.saveAsFileDialog(null, null, fc);
    // get the OutputStream and write the file back out
    if (fc.canWrite()) {
    // don't append
    os = fc.getOutputStream(false);
    } catch (Exception e) {
    e.printStackTrace();
    also like this:
    File f = new File((System.getProperty("user.home")+"x.txt").toString());
    FileOutputStream fileX = new FileOutputStream(f);
    OutputX = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fileX, "UTF8")));
    OutputX.println(....
    but it doesn't work with Java Web Start.
    Can someone help me?
    How can I open or save file?
    thank you.
    Sebastiano

    Did you specify <all-permissions/> in your JNLP file? Did you sign your code? What error are you getting?

  • Libsqlplus.so: cannot open shared object file

    After oracle-instantclient-sqlplus-10.1.0.3-1 rpm install on Red Hat, running sql plus gives:
    sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory
    The fix is to include in the sqlplus rpm the file
    /etc/ld.so.conf.d/oracle-instantclient.conf
    which would contain this line:
    /usr/lib/oracle/10.1.0.3/client/lib/
    Also run ldconfig in post-install script.
    Thanks.

    Alternatively you can set LD_LIBRARY_PATH as mentioned
    in the notes:
    http://www.oracle.com/technology/docs/tech/sql_plus/10103/readme_ic.htm
    This is more flexibile than using ld.so.conf if you have
    another version of Oracle or the Instant Client installed.
    -- CJ

  • Log in SQLplus Worksheet

    Hi,
    I have Juts installedOracle 91 and the SQLplus seems to be wking fine .I can log in using scoot /tiger as the user nae /passowrd.
    I cannot log in the sqlplus worksheet which when i try to connect using the change database connection,i cannot log in caould anyone tell me what is the follwoing to connect to SQl plus worksheet;
    Username
    Password
    Service
    Connect as
    Thanks
    Ig ub have an answer u can also e-mail it to [email protected]
    Thanks

    Hi,
    >>which when i try to connect using the change database connection
    Do you mean, about the "Service" ?
    If you get connect using the scott/tiger account, then there is no problem in order to connect using other accounts. Now, if you need to connect in other database, then maybe you need to create a service "connection string" on your local TNSNAMES.ORA file.
    Cheers

  • Vietnamese in SQLPlus Worksheet

    I have some problem in SQLPlus Worksheet.I don't type Vietnamese in SQLPlus Worksheet although I installed at mode unicode. When I run console manager, I open tab configuration and I choose setting font, I'm only see fonts : Dialog,SansSerif,Serif,Monospaced,DialogInput.
    Why it don't have font Times New Roman for me type Vietnamese ? Can you help me ?
    Thank you very much !!!

    Thank you for you postings - The Member Feedback forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions cannot be answered. However we recommend that you post this thread to the "iSQL*Plus" forum.
    The URL is: iSQL*Plus [ARCHIVE]
    Thanks - The OTN team

  • How to open an Excel file and write data into it.

    Hi All,
    I have an excel template, which has graphs and some tables containing corresponding data. If i change the data in tables it changes the graphs. So, if i have a template in the server, is it possible for me to open this excel file and change the data in the tables to chanage the graphs. How can i go to different worksheets and go to different cells and change the values and save the file.
    Thanx in advance
    Cheers
    Pej

    You can setup an ODBC connection to the Excel file and update the file with JDBC, using the JDBC-ODBC bridge.
    Hope this helps

  • Libclntsh.so.10.1: cannot open shared object file: No such file or director

    Hi,
    I am getting this error when I am running a report in OBIEE. I can login to the .rpd but when I run a request, I am getting:
    libclntsh.so.10.1: cannot open shared object file: No such file or directory
    [nQSError: 46029] Failed to load the DLL /obieesbos1/obi/OBIEE/OracleBI/server/Bin/libnqsdbgatewayoci10g.so. Check if 'Oracle OCI 10G' database client is installed.
    But I can ping to the tnsnames on this server using sqlplus. The envionment is on Linux. Any suggestions?

    yes, in fact I have an Oracle Consultant looking into the issue since three days but of no helpl
    I can connect to the source database using sqlplus on this machine and can run a query. But OBI is throwing error.
    Not sure what else is missing. Any suggestions?
    Here is the user.sh
    # Oracle Parameters
    # Make sure that Oracle DB 32 bit Client is installed
    ORACLE_HOME==/obieesbos1/obi/oracle/product/10.2.0/db_1
    export ORACLE_HOME
    TNS_ADMIN=$ORACLE_HOME/network/admin
    export TNS_ADMIN
    PATH=$ORACLE_HOME/bin:/opt/bin:$PATH
    export PATH
    #LD_LIBRARY_PATH=$OracleBI_HOME/server/Bin:$LD_LIBRARY_PATH
    #export LD_LIBRARY_PATH
    #LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
    #export LD_LIBRARY_PATH
    # If you have Linux 64 bit Platform, and would like to run Oracle BI 32 bit
    # then you must install Oracle DB 64 bit client, and this client comes with
    # 32 bit libraries under $ORACLE_HOME/lib32. The LD_LIBRARY_PATH in this case
    # shall be like this:
    LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH

  • Libclntsh.so.10.1: cannot open shared object file

    Running Redhat EL5.5 with php5.3.13
    Installed Oracle instant client basic, sqlplus, and devel 11.2.0.3.0-1
    edited .bashrc to include
    export ORACLE_HOME=/usr/lib/oracle/11.2/client
    export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib
    export TNS_ADMIN=/usr/include/oracle/11.2
    pecl install oci8
    restarted
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/oci8.so' - libclntsh.so.10.1: cannot open shared object file: No such file or directory in Unknown on line 0
    Why is it looking for libclntsh.so.10.1?
    php -i
    ENV["LDLIBRARY_PATH"] => /usr/lib/oracle/11.2/client/lib
    _ENV["TNS_ADMIN"] => /usr/include/oracle/11.2
    _ENV["ORACLE_HOME"] => /usr/lib/oracle/11.2/client
    I checked ld.so.conf and ld.so.conf.d and nothing mentions oracle at all.
    sqlplus works just fine so the oracle install appears good, just not loading in php right.

    By restart I meant the whole server so that the environmental variables are set in .bashrc, etc.
    from phpinfo() Apache Environment includes:
    TNS_ADMIN     /usr/include/oracle/11.2
    LD_LIBRARY_PATH     /usr/lib/oracle/11.2/client/lib
    PHP variables include:
    SERVER["TNSADMIN"]     /usr/include/oracle/11.2
    _SERVER["LD_LIBRARY_PATH"]     /usr/lib/oracle/11.2/client/lib
    So it doesn't look like I need to explicitly state them again in /etc/sysconfig/httpd
    Why is it looking for liblntsh.so.10.1 instead of the installed 11.1 in /usr/lib/oracle/11.2/client/lib?

  • Login onto SQLPlus worksheet

    I am from the HP3000 world and am new to the oracle world. I want to enter and execute Oracle PL/SQL and SQL statements so as to become familiar with Oracle SQL. That is, build database tables, insert data, and retrieve the data directly and thru views, etc.
    The download and install of Oracle9i Database Release 2 for Microsoft Windows 98/2000/nt/xp via the 92010nt_clt.zip file onto my pc seemed to complete successfully. I have Windows xp on my pc.
    When I start SQLPlus Worksheet, a dialog box comes up with questions for which I do not know the answers.
    The dialog box wants login option (1. login to the oracle management server, or 2. connect directly to a database), username, password, service, and connect&as (normal, sysdba, sysoper) responses.
    During setup, as best as I can recall, there were no requests for, or displays of, this information.
    Any suggestions on how to determine (or generate) the correct answers to the dialog box input requests ?
    Any help provided would be greatly appreciated.

    You can configure the client using the Net Easy Config tool which will create/modify the existing TNSNAMES file contents.
    TQ,
    M M Sheriff

Maybe you are looking for