Script having Chinese characters throws error when run from SQL PLUS

Dear All,
I have a script file(.sql) which contains Chinese characters ....
I have saved the file in unicode Format.
When I run this file using @D:\filename from SQL PLUS it throws an error "unknown Command at line 1"...
My database is Oracle 10g...
Can anyone suggest anything???
Thanks In Advance
Dev
Edited by: Devarsh on Oct 21, 2009 8:16 AM

I think you may need to set your local NLS_LANG setting for your client (SQL*Plus) to recognize the characters.
You may also consider posting your question on the Globalization forum which pertains more to these types of questions.
Globalization Support

Similar Messages

  • Loading script "script path-name" failed (0xC0000006) error when running scripts from DFS

    We have this issue where any number of random scripts that execute at startup will produce the following error when run from DFS:
    The status code for this error equates to STATUS_IN_PAGE_ERROR - The instruction at 0x%p referenced memory at 0x%p. The required data was not placed into memory because of an I/O error status of 0x%x.
    This does not always happen each time and the script can be random. If we move the script(s) to a non DFS, we do not see this. I believe the issue is being caused by a minute disconnect to the DFS for whatever script is attempting to execute at that
    moment. This happens across a few (consistent) offices on different computers.
    Any ideas?

    Hi,
    According to your description, my understanding is that you run scripts in a shared folder which is added to a DFS Namespace, then the error prompt. However, you can run the scripts when you directly access the shared folder.
    What scripts did you run? Is there any error message in the Event Log? If so, please provide us the detailed error message for our further research.
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Create trigger not audited when run from sql developer Version 3.2.20.09

    Creating or editing a trigger is not being stored in the audit table when run from sql developer.
    Here is a sample script to show the issue:
    Grant Connect,create table,create trigger To testuser Identified By testuser;
    create table testuser.testtab(t1 number);
    Select Count(*) From Dba_Audit_Trail Where Owner='TESTUSER';
    CREATE OR REPLACE TRIGGER testuser.testtab_bi_trg BEFORE
      Insert
          ON testuser.testtab FOR EACH ROW
    begin
      null;
    end;
    Select Count(*) From Dba_Audit_Trail  Where Owner='TESTUSER';
    drop user testuser cascade;
    If I run the script from sql developer the CREATE TRIGGER statement does not get audited.
    If I run the script from sql plus or All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.
    If I edit the trigger from sql developer the CREATE TRIGGER statement does not get audited.
    If I edit the trigger from  All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.

    DoyleFreeman wrote:
    Not sure what you mean by "perform the audit".
    Have you tested my script? Does the "Select Count(*) From Dba_Audit_Trail  Where Owner='TESTUSER';" increment by 1 after each of the ddl statements or only after the Create table statement.
    Your question doesn't have ANYTHING to do with sql developer and should be posted in the Database General forum
    https://forums.oracle.com/community/developer/english/oracle_database/general_questions
    Yes - and it works just fine once you ENABLE AUDITING. Your scripIt  does NOT include the statements or code used to ENABLE auditing and, specifically, enable auditing for triggers.
    Auditing doesn't just 'happen'; you have to enable it and you have to specify any non-default auditing that you want to perform.
    Have you read any of the extensive documentation about auditing to learn how to use it?
    See the Database Security Guide
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm
    Also see 'Auditing Functions, Procedures, Packages, and Triggers
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm#BCGBEAGC
    And see the AUDIT statement in the SQL language doc for how to specify auditing of specific operations.
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_4007.htm
    Select count(*) From Dba_Audit_Trail  Where (Owner='SCOTT' or username = 'SCOTT')
    and action_name = 'CREATE TRIGGER';
    COUNT(*)
    0
    audit create trigger by scott
    CREATE OR REPLACE TRIGGER emp_copy_bi_trg BEFORE
      Insert
          ON emp_copy FOR EACH ROW
    begin
      null;
    end;
    Select count(*) From Dba_Audit_Trail  Where (Owner='SCOTT' or username = 'SCOTT')
    and action_name = 'CREATE TRIGGER';
    COUNT(*)
    1

  • WebI report throwing error when migrated from XIR2 to XI3.1

    I have some webi reports built in BO XIR2 on OLAP universes (SAP BW3.5 based). Recently I have migrated the reports from old XIR2 environment to a new XI3.1 environment.
    The specification of new system is as below:
    BO XI3.1
    SAP BW 3.5
    No SP and FP is installed. (Actually when I tried to install the SP2, it failed)
    After the migration, some of my reports are running for 5 minutes and then throwing an error like below:
    A database error occured. The database error text is: Error in MDDataSetBW.GetCellData. See RFC trace file or SAP system log for more details. (WIS 10901).
    The same report is working fine in old system.
    Has anyone faced this problem yet?
    Regards

    Hi Jacques,
    The transports are already imported.
    What I can see is if there is a query with only dimension objects and no measure, then that is throwing error in XI3.1. But the same query is running fine in XIR2.
    Any Idea?
    Thanks and Regards

  • SSDT package errors when running from non SSIS server

    I am trying to run a 2012 SSIS package on a server that doesn't have Integration services installed and I keep getting the following error:
    "To run a SSIS package outside of SQL Server Data Tools you must install SharePoint List Source 1 of Integration Services or higher."
    It is on a cluster and I was under the understanding that I could run a package without having SSIS engine installed?
    Thanks!

    This is not true. Executing SSIS packages requires the SSIS installation. It is possible though to have a package executed on a remote host, and it will run within that machine memory space, again the target has to have the SSIS installed.
    Besides, SSIS is not a clustered resource.
    Arthur My Blog

  • Error when running a  .sql file

    hello all.
    i keep getting an error when i try to install sample schemes for APEX on XE.
    I was wondering if any could help
    thank you:)
    ================
    ================
    SQL> @oehr_sample_objects_installer.sql
    APPLICATION 543 - OEHR Sample Objects
    Set Credentials...
    Check Compatibility...
    API Last Extended:20090112
    Your Current Version:20090112
    This import is compatible with version: 20060224
    COMPATIBLE (You should be able to run this import without issues.)
    Set Application ID...
    begin
    ERROR at line 1:
    ORA-02291: integrity constraint (APEX_030200.WWV_FLOWS_FK) violated - parent
    key not found
    ORA-06512: at "APEX_030200.WWV_FLOW_API", line 555
    ORA-06512: at line 3
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Produ
    ction
    C:\TEMP\apex>

    i went to that link and tried to insert MOS Doc 949429.1
    as a support identifier and it does not recognize it.
    i tried just 949429.1 and 949429 and still success.
    what is the right code for this support identifier?
    thank you :)

  • Encounter the 0ra-01921 error when run catlog.sql on 11g windows server

    I am using sys account to run catlog.sql there is an error : ERROR at line 1:
    ORA-01921: role name 'IMP_FULL_DATABASE' conflicts with another user or role name
    when I try to run it with my dba account it cause more error????
    Thank You

    I am using sys account to run catlog.sql there is an
    error : ERROR at line 1:
    ORA-01921: role name 'IMP_FULL_DATABASE' conflicts
    with another user or role name
    when I try to run it with my dba account it cause
    more error????
    Thank Youyou mean catalog.sql ?
    What's the reason you want to regenerate database dictionary?
    when you run catalog.sql and catproc.sql on live database you will get these errors because the objects already exists. You can ignore them. You will get other errors when create public synonym etc..

  • Error when upgrading from SQL Server 2005 to SQL Server 2014

    Hello everyone,
    Could you help me, i have an error when i try to upgrade my SQL Server 2005 Enterprise Edition to SQL Server 2014 Enterprise Edition,
    All of prerequisits are available and i dont have a problem,
    before the end of migration process, i have this error: The group name could not be found (0x84BB0001)
    File log:
    Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred during the setup process of the feature.
      Next Step:                     The upgrade process for SQL Server failed. To continue the upgrade process, use the following information to resolve the error. Next, uninstall SQL Server by using this
    command line: setup /q /action=uninstall /instanceid=MSSQLSERVER /features=SQLENGINE,FULLTEXT,REPLICATION. Then, run SQL Server Setup again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x84BB0001
      Error description:             The group name could not be found.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x0AD059E6%400x3FAAA006&EvtType=0x0AD059E6%400x3FAAA006
      Feature:                       Full-Text and Semantic Extractions for Search
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     The upgrade process for SQL Server failed. To continue the upgrade process, use the following information to resolve the error. Next, uninstall SQL Server by using this
    command line: setup /q /action=uninstall /instanceid=MSSQLSERVER /features=SQLENGINE,FULLTEXT,REPLICATION. Then, run SQL Server Setup again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x84BB0001
      Error description:             The group name could not be found.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x0AD059E6%400x3FAAA006&EvtType=0x0AD059E6%400x3FAAA006
      Feature:                       SQL Server Replication
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     The upgrade process for SQL Server failed. To continue the upgrade process, use the following information to resolve the error. Next, uninstall SQL Server by using this
    command line: setup /q /action=uninstall /instanceid=MSSQLSERVER /features=SQLENGINE,FULLTEXT,REPLICATION. Then, run SQL Server Setup again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x84BB0001
      Error description:             The group name could not be found.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x0AD059E6%400x3FAAA006&EvtType=0x0AD059E6%400x3FAAA006
    Best regards,
    Guiga Hafedh

    There are more detailed logs for the various components. The one of interesting is the one for the engine or possibly the one for full-text.
    These logs are extremely verbose, and the errors are rarely crystal clear, but at least give them a try. If you have problems, find a place to upload them (Dropbox, Skrydrive etc), so that we can look.
    The closest at hand is that "group" that cannot be found is an AD group.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • ORA-12154 error when logging into SQL*Plus

    I installed Oracle 10g (10.2.0.3.0) server on a Hyper-V virtual machine running Windows Server 2008 Enterprise as a standalone server. I did a software only install and then ran the Database Configuration Assistant to create a database. I also ran the Oracle Net Configuration Assistant to configure the Listener, Naming Methods, and Local Net Service Name. I ran the test in the Net Configuration Assistant and it was successful after I changed the login credentials to use the SYSTEM account and password. TNSPING of the net service name is successful. I can also successfully connect to the database via Enterprise Manager using the SYSTEM account and password. What I can NOT do is connect locally to the database via SQL*Plus (either through the gui or command line). I get the following error:
    ERROR:
    ORA-12154: TNS: Could not resolve the connect identifier specified
    I've checked and double-checked the LISTENER.ORA, SQLNET.ORA, and TNSNAMES.ORA files. They all seem correct to me, especially since I used the configuration assistants to create them.
    Anyone have an idea what might be wrong or what I can check next? Any help would be appreciated!
    Thanks!

    They all seem correct to me, especially since I used the configuration assistants to create them. Garbage In, Garbage Out.
    Since Oracle throws an error, I strongly suspect you are mistaken.
    Simply put, you are using something like "@REMOTE" someplace & somehow and the error indicates SQL*Net does not know to what @REMOTE refers.
    How many systems are involved, names, OS version, etc?
    post connection string & post contents of tnsnames.ora file.

  • Error when connecting to SQL*PLUS via ODBC to Excel

    OS: Windows 2000 Professional
    Oracle DB: 9i release 2
    SQL*Plus: Release 9.2.0.1.0
    MS Excel: 2000
    ===================
    When I try to connect to SQL*PLUS via ODBC to Excel with "connect scott/tiger@odbc:libro" I get the following error:
    ORA-03121: no interface driver connected - function not performed

    SQL Server objects are commonly case sensitive, so please surround the column and table names by double quotes:
    SELECT "Type_PK_ID" FROM "dbo"."boundaries"@sqlserver
    SIDE NOTE: Oracle is by default not case sensitive and all object names are stored in upper case. To get case sensitive objects they need to be surrounded by double quotes. In HSODBC case sensitive table names were commonly found even when not surrounded by double quotes as the gateway used internal SQL Server methods to find the correct table nameing - this method does not work for column names. So to be able to query a case sensitive column it needs to be surrounded by double quotes and the table name must be written as stored in the source database.

  • Jar file throw errors when running

    Hi all.
    I am working with Eclipse IDE. It has a wizard to create a jar file.
    When I am running the program via the Eclipse it runs fine!!!
    But, when I am running with command line I am getting the following error:
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/starb
    ase/diff/DiffException
    at compareViews.CompareViews$1.run(CompareViews.java:40)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    You need to include the libs you use either into the classpath or into the JAR you create (via ANT, for instance).

  • Bmpanel keeps throwing errors when run

    After finally managing to compile bmpanel, I keep getting the following error, every second. As in, it repeats every single second.
    ***** Imlib2 Developer Warning ***** :
    This program is calling the Imlib call:
    imlib_blend_image_onto_image();
    With the parameter:
    source_image
    being NULL. Please fix your program.
    I have a feeling that this is because I'm not using xcompmgr because my chipset does not support composite rendering...?
    Is there a way I can disable composite support if this is the case, or can I simply close the terminal and ignore the messages and not worry about some buffer filling up and crashing my system?
    Also, two other issues:
    * Where do I put themes? I can't see any info on this anywhere; yaourt deletes a package's source files when it's done compiling them automatically (a very B A D idea, IMHO) so if they're in there, I've no idea.
    * Why is the panel offset by its own height from the bottom of my screen?
    -dav7

    dav7 wrote:
    After finally managing to compile bmpanel, I keep getting the following error, every second. As in, it repeats every single second.
    ***** Imlib2 Developer Warning ***** :
    This program is calling the Imlib call:
    imlib_blend_image_onto_image();
    With the parameter:
    source_image
    being NULL. Please fix your program.
    I have a feeling that this is because I'm not using xcompmgr because my chipset does not support composite rendering...?
    Is there a way I can disable composite support if this is the case, or can I simply close the terminal and ignore the messages and not worry about some buffer filling up and crashing my system?
    Also, two other issues:
    * Where do I put themes? I can't see any info on this anywhere; yaourt deletes a package's source files when it's done compiling them automatically (a very B A D idea, IMHO) so if they're in there, I've no idea.
    * Why is the panel offset by its own height from the bottom of my screen?
    -dav7
    There's no config files för bmpanel, all configuration is done in the theme-files. If you want to disable composite:
    use_composite 0

  • Resman has fatal errors when run from start menu

    I have a VME chassis connected to my computer via an NI MXI-2 bus.  When I run resman out of MAX, it works fine.  When it automatically runs on startup or when I run it from the start menu, it bombs out with a windows fatal error.  This has happened for years, on multiple different computers.  This isn't a huge deal, so I haven't investigated it before.  Is this a known bug?  Is there a way to fix this annoyance?  I'm running latest driver versions of everything, although the VXI driver has remained static for quite some time from NI.
    I just discovered the different operation today - start menu vs. in MAX.  I think it may be a clue...

    This is somewhat of a known issue.  Take a look at the following KB:
    http://digital.ni.com/public.nsf/allkb/851CD72FA50001B0862571100081237B?OpenDocument
    Chad B. » National Instruments » ni.com

  • Error when running BEx;  SQL Eror: 1722

    Hai,
            I made a query on an ODS and when its executed, I get the following error and the query gets terminated.
    error SQL Eror: 1722
    Abort System error:RSDRC/FORM DATA_GET_ODS ERROR IN RSDRO_READ_ODS_DATA ZMLO
    Abort System error in program SAPLRSDRC and form RSDRC/FORM DATA_GET_ODS
    and then when I click "ok", the system gives a window asking "disonnect BW server?"....
    The BW version for us 3.0B SP16.
    Can anybody tell me what could be the reason is?
    Thank you.

    Thank you very much for taking time to reply. I could finally find the problem. Its with my formula. I changed a formula that returned a character that the system couldnot read. So, Its giving this error. When I changed that forumla , everything is working.
    I understood that the error means that the system is not able to read the ODS data and so its giving that kind of error.
    Thanks everybody for your time.

  • ODBC Error when migrating from SQL Server 2008 to SQL Anywhere 12

    Hello community,
    i have the following requirement:
    I need to migrate a Database with some Demo data into a SQL Anywhere 12 Database. The SQL Anywhere 12 Database is part of the SAP BusinessObjects Enterprise XI 3.1 SP7 installation and came with the same as OEM Product.
    The Environment looks like the following:
    DB1 is a MS SQL Server 2008 R2 64 Bit running on Windows Server 2008 R2 64 Bit.
    DB2 is the SAP BusinessObjects Enterprise XI 3.1 SP7 installation with the shipped SQL Anywhere 12 (12.0.1.3873) Database running on SLES 11.3 64 Bit
    CL1 is my Windows 7 64 Bit Client where Sybase Central is installed in 64 Bit. On CL1 i have a 64 Bit System ODBC Connection connecting to DB1 successfully.
    Basically i followed the following (pretty straight forward) tutorial:
    Migrating a SQL Server Database to SQL Anywhere White Paper-Technical: Mobile Enterprise, Database Management iAnywhere …
    When i want to test the connection from inside Sybase Central (During the migration process) i receive the following error:
    From inside Sybase Central my connection looks as follows:
    And from the ODBC Manager the connection looks as follows:
    Personally i found is strange that the Sybase ODBC Driver Manager drops the error. I would expect that the MS SQL ODBC Driver Manager pops the error it its related to the ODBC DSN to DB1.
    Any ideas?
    Thanks and Regards
    -Seb.

    Hi Sebastian,
    The data from the SQL Server database must be migrated to an existing SQL Anywhere database.  Could you please tell me where this SQL Anywhere database resides and how are you connecting to it?
    The error message is saying that the connection to the SQL Anywhere remote database server is failing, as opposed to the connection to the SQL Server database.

Maybe you are looking for

  • Upgrading Oracle EM GC 10.1.0.3.0

    I am running Oracle Enterprise Manager Grid Control Using a New Database 10.1.0.3.0 on Windows 2003 Server. I need to upgrade to the latest version of Grid Control. Looking over Upgrade instructions it appears that the earliest version of Grid Contro

  • BDC: How to enter data in Table control (With wizard) using scrolling?

    Using BDC, I am trying to enter the data in the table control (with wizard). I want to know what is the specific command to scroll down in table control (With Wizard). While recording I am getting these steps: SAPLCKBASCR1     0202     X             

  • 802.1X EAP-PEAP Authentication issue

    Hi Experts, I am experiencing an issue where the authentication process for two of my Wireless networks prompts the user to enter their credentials at least two times before letting them onto the network. The networks in question  are set up identica

  • Why can`t i use the iMessage app in my mac?

    every time i try to sign in, it tells me that there is an error. i dont know why!!! that happens as well with my facetime on my mac!!!

  • Bex reports in Dashobard hangs

    Dear Experts, we have Dashboards Reports for Business Reporting. Each Dashboards consists of multiple Bex Queries. The issue is, while user selecting available values from prompt (F4 help) for one of the fields, the Reports gets non responsive. it ge