ORA-00911: Ungültiges Zeichen

Hello developer fellows!
I have a problem using Oracle in Java 1.5.
I try to do some inserts with a single statement.executeUpdate call separated by ' ; ' but all I get is this ORA-00911 error refering to the semikolon as an invalid symbol.
Is there any possibility to use a single call of the method executeUpdate with a String which contains more than one SQL statement?

No. This does not work with normal JDBC (are you in the Oracle JVM?).
You would have to use statement.addBatch() to group multiple insert statements but sending to the database only one statement.
However, do note, that Oracle only supports batching when used with a PreparedStatement (even the syntax allows to use the JDBC Statement, you should not recognize any batching performance benefit).
You can read more about Oracle Update Batching and JDBC Normal Batching support in Oracle JDBC developers guide and reference.
Oracle Update Batching is best used with multiple of Inserts (5-30 and upwards).
There is a Oreilly book, Oracle and JDBC which describes some very interesting facts about JDBC performance: http://www.oreilly.com/catalog/jorajdbc/chapter/ch19.html
I have been implementing a JDBC interface which has to do inserts into three tables, whereas the last table will be at least 5-15 parameter inserts (key-value pairs).
As our JDBC interface runs within BEA WebLogic and uses a Datasource JDBC 2.0 pool (PreparedStatement caching enabled), I choose to use Prepared Statement with Normal Batching (not Oracle Update Batching).
Have fun :)
Thomas

Similar Messages

  • Ungültiger Wert in Feld (ODBC-1016) [131-183]

    Hallo zusammen,
    habe hier das folgende Problem und ich bin mir nicht sicher ob ich das schon mal gefragt habe.
    Wenn ein Lieferschein für einen Kunden erzeugt werden soll , erscheint, wenn die Kundennummer eingeben wird sofort folgende Fehlermeldung:
    Ungültiger Wert in Feld (ODBC-1016)
    Was könnnte das sein?
    Viele Grüße
    Indira Siebmanns

    Der Fehler kann auftreten wenn ein Kunden/Lieferranten Konto (Kontierung) mit mehr als 16 Zeichen angesprochen wird.
    Nutzn man nach amerikanischem Vorbild beispielsweise eine Konten-Segemtnierung kann es durch diese Verkettung von Konten zu mehr als 16 Zeichen kommen. Siehe hierzu auch SAP Note 787958
    Entsprechend sollten die Einstellungen unter:
    ADMINISTRATION -> FIRMENDETAILS - > Karteikarte "Basisinitialisierung"
    sowie bspw. Abstimmungskonten usw. beim Kunden überprüft werden.
    Viel Erfolg und viele Grüße aus dem hohen Norden
    Heiko szendeleit

  • ORA-00911: invalid character using multiple select statements

    I am getting an ORA-00911: invalid character error when trying to execute 2 select statements using ODP.NET.
    cmd.CommandText = "select sysdate from dual;select sysdate from dual;";
    cmd.Connection = conn;
    cmd.CommandType = System.Data.CommandType.Text;
    conn.Open();
    OracleDataReader dr = cmd.ExecuteReader();
    This works in SQL server but for some reason it appears this does not work in Oracle?
    If this is the case what is a vaiable workaround? Wrapping the 2 statements in a transaction?
    Seems strange that you can't return multiple result sets using in-line sql statements.

    Oracle doesn't support passing multiple statements like that, and this is unrelated to ODP.NET.
    SQL> select * from emp;select * from dept;
    select * from emp;select * from dept
    ERROR at line 1:
    ORA-00911: invalid character
    You could do it via an anonymous block and ref cursors though if you dont want to do it via a stored procedure..
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    public class test
    public static void Main()
        using (OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger;"))
            con.Open();
            string strSql = "begin open :refcur1 for select * from emp;" +
                "open :refcur2 for select * from dept;" +
                "open :refcur3 for select * from salgrade;end;";
            using (OracleCommand cmd = new OracleCommand(strSql, con))
                cmd.Parameters.Add("refcur1", OracleDbType.RefCursor, ParameterDirection.Output);
                cmd.Parameters.Add("refcur2", OracleDbType.RefCursor, ParameterDirection.Output);
                cmd.Parameters.Add("refcur3", OracleDbType.RefCursor, ParameterDirection.Output);
                OracleDataAdapter da = new OracleDataAdapter(cmd);
                DataSet ds = new DataSet();
                da.Fill(ds);
                cmd.Parameters["refcur1"].Dispose();
                cmd.Parameters["refcur2"].Dispose();
                cmd.Parameters["refcur3"].Dispose();
                foreach (DataTable dt in ds.Tables)
                    Console.WriteLine("\nProcessing {0} resultset...", dt.ToString());
                    foreach (DataRow row in dt.Rows)
                        Console.WriteLine("column 1: {0}", row[0]);
    }Hope it helps,
    Greg

  • ORA-00911 Error code in JDBC where no special character is used - Oracle 10

    Hi,
    I am using Oracle 10G and Tomcat 5.5. I am trying to update a the CONFIRMED column of a table called LISTSERV_WAITING_LIST_TABLE. Please see my code below.
    public void doPost(HttpServletRequest request, HttpServletResponse response){
         String resRef = getServletContext().getInitParameter("java.comp.env");
         String jdbcDbRef = getServletContext().getInitParameter("jdbc.database");
         Context dbInitContext = null;
         Context dbEnvContext = null;
         DataSource dbSource = null;
         Connection conn = null;
    PreparedStatement prepStatement = null;
    String uemail = request.getParameter("email").toUpperCase();
         String userId = request.getParameter("userId");
         String waitingListTable = getServletContext().getInitParameter("db.waiting.list.table.name");
         try{ 
              dbInitContext = new InitialContext();
              dbEnvContext = (Context)dbInitContext.lookup(resRef);
              dbSource = (DataSource)dbEnvContext.lookup(jdbcDbRef);
              conn = dbSource.getConnection();
    String sqlcmd = "update " + waitingListTable + " SET CONFIRMED = 'YES' WHERE UEMAIL = '" + uemail + "' and USERID = '" + userId + "';";
    prepStatement = conn.prepareStatement(sqlcmd);
    prepStatement.executeUpdate();
         }catch(NamingException e){
              log("Area 4A: NamingException occured");
         }catch( SQLException e){
         log("Area 4B: Exception occured", e);
    When I run the code, I receive the following error message:
    SEVERE: FinalSubscriber: Area 4B: Exception occured
    java.sql.SQLException: ORA-00911: invalid character
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:213)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:952)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1160)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3368)
         at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
         at com.sainc.nsb.FinalSubscriber.doPost(FinalSubscriber.java:40)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)
         at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
         at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)
         at java.lang.Thread.run(Unknown Source)
    However, when I type the value of the string sqlcmd (used in the PreparedStatement) directly into Oracle, the update works. An example of that string is:
    update listserv_waiting_list SET CONFIRMED = 'YES' WHERE UEMAIL = '[email protected]' and USERID = '1142369642862';
    It contains no stange character and rows are inserted successfully in another class of the program that uses the same mechanism. The problem comes when I update the table.
    Any idea as to what is wrong? Your help will be appreciated.
    Thanks,
    Nguessan

    buddy, why don't you use a stored procedure and make your update, i hate that upkeeping.
    callablestatement and the power of Plsql are ur saviours.
    regards, djoudi.

  • Can't figure out why: ORA-00911 on dynamic SQL

    Hi everyone,
    I have a report that is generated with the HTMLDB_ITEM toolkit. The report generates a checkbox, a hidden field, a text field, two select lists, and a select field.
    There is a button in the region that activates a process to update two tables with the values in the fields. I have simplified the generated code by putting in variables that allow me to print a meaningful debug statement. The generated statement causes an ORA-00911; invalid character error. However, running the generated statement in the SQL Workshop works fine.
    Here is the code (only slightly sanitized):
    DECLARE
    v_update_string varchar2(2000);
    v_project_name  varchar2(2000);
    v_IT_dependant varchar2(1);
    v_gxp_relevant  varchar2(1);
    v_project_id    varchar2(10);
    v_pm_id         varchar2(10);
    BEGIN
    for i in 1..HTMLDB_APPLICATION.G_F01.COUNT
    loop
    v_update_string := null;
    v_project_name  := HTMLDB_APPLICATION.G_F03(HTMLDB_APPLICATION.G_F01(i));
    v_IT_dependant := HTMLDB_APPLICATION.G_F04(HTMLDB_APPLICATION.G_F01(i));
    v_gxp_relevant   := HTMLDB_APPLICATION.G_F05(HTMLDB_APPLICATION.G_F01(i));
    v_project_id    := HTMLDB_APPLICATION.G_F02(HTMLDB_APPLICATION.G_F01(i));
    v_pm_id         := HTMLDB_APPLICATION.G_F06(HTMLDB_APPLICATION.G_F01(i));
    v_update_string := 'update abc_project set ';
    v_update_string := v_update_string || 'project_name = '''   || v_project_name || ''',';
    v_update_string := v_update_string || ' it_dependant = '''  || v_IT_dependant|| ''',';
    v_update_string := v_update_string || ' gxp_relevant = '''  || v_gxp_relevant|| '''';
    v_update_string := v_update_string || ' where id = '      || v_project_id || ';' ;
    -- This statement is debug output.
    wwv_flow.debug('UPDATE_PROJECT_DATA v_update_string for ABC_PROJECT:' || v_update_string);
    execute immediate v_update_string;
    v_update_string := null;
    v_update_string := 'update abc_project_monthly set ';
    v_update_string := v_update_string || 'project_manager = ' || v_pm_id;
    v_update_string := v_update_string || ' where project_id = ' || v_project_id || ' and ';
    v_update_string := v_update_string || 'trunc(record_date, ''MON'') = trunc(SYSDATE, ''MON'');';
    -- This statement is debug output.
    wwv_flow.debug('UPDATE_PROJECT_DATA v_update_string contents for
    ABC_PROJECT_MONTHLY:' || v_update_string);
    execute immediate v_update_string;
    end loop;
    END;Here is the generated statement from the wwv_flow.debug statement:
    0.05: UPDATE_PROJECT_DATA v_update_string for ABC_PROJECT:update abc_project set project_name = 'Test Project 4', it_dependant = 'N', gxp_relevant = 'N' where id = 425;
    The next statement is "SHOW ERROR page..."
    I have the feeling that I'm barking up the wrong tree. I've not been able to find anything helpful regarding the ORA-00911 error and wonder if I've been mislead and am looking in the wrong place.
    As mentioned, running the generated SQL works fine in the SQL Worksop and in SQL Developer, just cut and paste. Could this have something to do with the "execute immedate"? You might have noticed that two statements should be generated, but we never get past the first one.
    I would greatly appreciate any thoughts.
    Thanks,
    Petie
    Message was edited by:
    Petie

    Hi Vikas and Vishal,
    Thanks so much for your time in responding to my question.
    Removing the extraneous semicolon indeed solved the problem. It was clear, with only a little thought, that with the semicolon in the generated statement the result was something like:
    execute immediate update this set that = the_other;;which clearly is a problem.
    I will look at the bind variables, Vikas, and start migrating the code in that direction. Thanks for your suggestion.
    Yours,
    Petie

  • Error while reading: 'ungültiges Anmerkungsobjekt' (invalid annotation(al object))

    Dear users,
    I am currently reading and taking notes (highlighting and commentary) on a pdf document.
    Since last week, whenever I open it and reach the page where I stopped reading I get an error:
    'ungültiges Anmerkungsobjekt' (=invalid annotation(al object)). When I click on ok it reappears several times.
    As soon as I scroll it starts over. Other pdf documents works properly.
    What can I do?
    Thanks a lot
    Cristy

    On 3/24/2015 same problems, after Adobe Acrobat 9 pro. crashed while I added text boxes.. When I opened Adobe again, Yes to open the last file which didn't save correctly, then "Invalid Annotation Object" errors on my .pdf file of 96 pages
    - first, I had to acknowledge/click the OK button until all " invalid annotation objects" error pop-up windows are gone
    (for my file with 96 pages, i had to hit the OK button more than hundreds times - need patience)
    - then found out (later) that what I did turn out to be the same steps as following post by davidsdomingo in adobe.forums
    davidsdomingo May 28, 2009 1:39 PM (in response to (Holger_Wulf))
    Here is a technique for identifying all the pages that have invalid annotation objects on them:
    1. Document > Extract Pages ...
    •Select the checkbox for "Extract Pages As Separate Files"
    •Set the destination to a 'dedicated' folder that won't contain any other files -- that way, you can simply delete the folder when this process is done.
    •Click OK.
    2. During the extraction, click OK in all the message boxes that appear.
    3. After the extraction, look in the destination folder to see which pages are missing. Those are the pages that have invalid annotation objects.
    From this point you can try to delete the objects, or simply delete and replace the pages, or implement a different solution. Hope this helps someone.
    - after extract the 96-pages file into individual files into a dedicated folder, only 95 got extracted and page 1 was not/can not be extracted.
    - I then combined the 95 good extracted pages into a new file name .pdf
    - then inserted a good page 1 without error (from the file that was saved previous day, prior to all the changes I made on the corrupted file), re work on page 1
    - delete the bad file.
    Hope this helps someone.

  • ORA-00911 error creating a view with PL/SQL

    Hello. Working with SQL Developer, I'm trying to write a procedure that creates a view.
    After a successful compilation, each time I try to execute it I get an ORA-00911 error and I'm not able to find the reason.
    Here's my code. Thanks in advance.
      CREATE OR REPLACE PROCEDURE "DWH_STAR"."STORICO_DATA" (
      DATA_INPUT IN VARCHAR2
    )AS
    BEGIN
      EXECUTE IMMEDIATE '
        CREATE OR REPLACE FORCE VIEW DWH_STAR.V_PORT_STOR_DATA (DATA_DESC, CLIENTE_KEY, PRODOTTO_KEY, AGENTE_KEY, TIPOLOGIA_KEY,
        NUM_ORDINE, NUM_UNITA, RICAVO_LORDO, RICAVO_NETTO, COSTO_STD_TOTALE, GROSS_PROFIT) AS
        SELECT
          dt.DATA_DESC,
          fv.CLIENTE_KEY,
          fv.PRODOTTO_KEY,
          fv.AGENTE_KEY,
          fv.TIPOLOGIA_KEY,
          fv.NUM_ORDINE,
          SUM (NUM_UNITA) NUM_UNITA,
          SUM (RICAVO_LORDO) RICAVO_LORDO,
          SUM (RICAVO_NETTO) RICAVO_NETTO,
          SUM (COSTO_STD_TOTALE) COSTO_STD_TOTALE,
          SUM (GROSS_PROFIT) GROSS_PROFIT
        FROM
          F_VENDUTO fv, D_TEMPO dt
        WHERE
          fv.TEMPO_KEY = dt.TEMPO_KEY
          AND TO_NUMBER(TO_CHAR(dt.DATA_DESC,''YYYYMMDD'')) <=' || DATA_INPUT ||'
        GROUP BY
          fv.CLIENTE_KEY,
          fv.PRODOTTO_KEY,
          fv.AGENTE_KEY,
          fv.TIPOLOGIA_KEY,
          fv.NUM_ORDINE,
          dt.DATA_DESC
        ORDER BY
          dt.DATA_DESC,
          fv.CLIENTE_KEY,
          fv.PRODOTTO_KEY,
          fv.AGENTE_KEY,
          fv.TIPOLOGIA_KEY,
          fv.NUM_ORDINE;
        UNION
        SELECT
          dt.DATA_DESC,
          fs.CLIENTE_KEY,
          fs.PRODOTTO_KEY,
          fs.AGENTE_KEY,
          fs.TIPOLOGIA_KEY,
          fs.NUM_ORDINE,
          - SUM (NUM_UNITA) NUM_UNITA,
          - SUM (RICAVO_LORDO) RICAVO_LORDO,
          - SUM (RICAVO_NETTO) RICAVO_NETTO,
          - SUM (COSTO_STD_TOTALE) COSTO_STD_TOTALE,
          - SUM (GROSSO_PROFIT) GROSS_PROFIT
        FROM
          F_SPEDITO fs, D_TEMPO dt
        WHERE
          (fs.CAUSA_RESO_KEY = 0
           AND fs.TEMPO_KEY = dt.TEMPO_KEY
           AND TO_NUMBER(TO_CHAR(dt.DATA_DESC,''YYYYMMDD'')) <=' || DATA_INPUT ||'
        GROUP BY
          fs.CLIENTE_KEY,
          fs.PRODOTTO_KEY,
          fs.AGENTE_KEY,
          fs.TIPOLOGIA_KEY,
          fs.NUM_ORDINE,
          dt.DATA_DESC
        ORDER BY
          dt.DATA_DESC,
          fs.CLIENTE_KEY,
          fs.PRODOTTO_KEY,
          fs.AGENTE_KEY,
          fs.TIPOLOGIA_KEY,
          fs.NUM_ORDINE
    END;

    remove the order by and semi-colon (;) from the first select. I hope you know that union operator needs the same set of columns to be selected.
    But try avoid creating objects on the fly unless and until it's absolutely necessary and unavoidable.
    Regards
    Raj
    Edited by: R.Subramanian on Jun 21, 2010 7:52 AM
    Edited by: R.Subramanian on Jun 21, 2010 7:53 AM

  • SQLException : query java.sql.SQLException: ORA-00911: invalid character

    Hi folks
    I am not sure why this is happening. Only thing I can think of is field table_name has spaces then when I tried trim it does not like it.
    Please help
    Thanks a lot!
    --------Here's the code ---------------
    I have simple query (oracle database table names to extract and count the number of rows in each table) . This is the code snippet.
    try {  // creating a table in the database
    // querying mytable
    String query;
    query = "select table_name from user_tables;";
    ResultSet rs = stmt1.executeQuery(query);
    ResultSet rs1 =null;
    Statement stmt2 = null;
    while (rs.next())
    System.out.println("table name : " + rs.getString(1) );
    rs1 = stmt2.executeQuery("select count(*) from " + rs.getString(1));
    } catch (SQLException e)
    { System.out.println("SQLException : query " + e);
    }

    ORA-00911 invalid character
    Cause: Special characters are valid only in certain places. If special characters other than $, _, and # are used in a name and the name is not enclosed in double quotation marks (�), this message will be issued. One exception to this rule is for database names; in this case, double quotes are stripped out and ignored.
    Action: Remove the invalid character from the statement or enclose the object name in double quotation marks.
    So, I think you problem is a semicolon at then end of your query.
    Hope this helps,
    Boris

  • BC4J VSM on OC4J 10.1.2 - jdbc error ORA-00911: invalid character

    Hello,
    I have been trying to run the Virtual Shopping Mall application on OC4J Standalone 10.1.2. I have deployed the application from a JDeveloper 10.1.2 release. When i try to login the OC4J log presents the following information and login fails:
    C:\oracle\oc4j_1012\j2ee\home>java -jar oc4j.jar
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
    Statement: SELECT Users.USER_NAME, Users.FIRST_NAME, Users.LAST
    NAME,          Users.EMAIL, Users.ADDRESS, Users.CITY,
    Users.STATE, Users.COUNTRY, Users.ZIP, Users.PHONE,
    Users.ROLE, Users.PASSWORD, Users.CARD_PROVIDER,
    Users.CARD_NUMBER, Users.CARD_EXPIRY_DATE FROM USERS Users WHERE (USER
    _NAME=?)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java...
    which has a root cause of:
    ## Detail 0 ##
    java.sql.SQLException: ORA-00911: invalid character
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :137)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.
    java:181)
    at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPrepa
    redStatement.java:661)
    I've read some posts that suggest it could be the jdbc driver or the 'use ? style variables' option on the view definition. Your assistance is appreciated.
    Thanks
    David

    Thanks Luke,
    I changed
    vo.setWhereClause(" USER_NAME=?");
    to
    vo.setWhereClause(" USER_NAME=:0");
    And that particular segment worked as expected.
    Thanks
    David

  • SQL Developer 2.1.1 ORA-00911: invalid character in Data Grid

    Hi,
    When I try to view data in Data Grid from table that has column name in format underscoreNAMEunderscore I get ORA-00911: invalid character.
    As far as I can tell the problem is same with all 2.x versions. Version 1.5.5 works OK.
    Is there a way around the problem?
    Thank you for your help.
    Silvio

    I see no answers :-(
    Is there a chance this gets listed as a bug and fixed?
    Thank you

  • ORA-00911: invalid character - Calling a function from Java..

    Hi to all.. I have an issue when calling an oracle function from Java..
    This is my Java code:
    final StringBuffer strSql = new StringBuffer();
    strSql.append("SELECT GET_TBL('II_2_1_6_5') AS TABLA FROM DUAL;");
    st = conexion.createStatement();
    rs = st.executeQuery(strSql.toString());
    and in the executeQuery a SQLException is throwed:
    java.sql.SQLException: ORA-00911: invalid character
    I paste the query in TOAD and it works.. :S
    anybody knows how can I solve this?

    Remove the Semicolon after Dual.
    strSql.append("SELECT GET_TBL('II_2_1_6_5') AS TABLA FROM DUAL");
    Sushant

  • Dynamic pl/sql - Error -911: ORA-00911: invalid character

    This is the first time I am using dynamic pl/sql for self education. I am getting
    Error -911: ORA-00911: invalid character
    Here is my code;
    PROCEDURE DYNAMIC_SQL (table_name in varchar2,
    column1 in varchar2,
    column2 in varchar2,
    v_no out number)
    is
    dyn_cur integer;
    v_table varchar2(2000);
    v_field1 varchar2(20);
    v_field2 varchar2(20);
    v_select varchar2(2000);
    v_cursor integer;
    begin
    DBMS_OUTPUT.enable;
    dyn_cur := DBMS_SQL.open_cursor;
    v_table := table_name;
    v_field1 := column1;
    v_field2 := column2;
    v_select := 'select '&#0124; &#0124;v_field1&#0124; &#0124;','&#0124; &#0124;
    v_field2&#0124; &#0124;' from '&#0124; &#0124;v_table;
    DBMS_SQL.parse(dyn_cur,v_select,DBMS_SQL.V7);
    v_no := DBMS_SQL.execute(dyn_cur);
    DBMS_OUTPUT.put_line(v_select);
    end;
    ANY IDEAS????
    Mayur
    Thanx
    null

    Hi Mayur,
    I don't exatly know your problem. It seems the syntax is correct. I too got the similar error when I was writing PL/SQL script few years ago. That time after few rounds of investigations, I found that I copied the code from some editor, due to which certain characters are not identified by Oracle. So just retype the code in any editor like (notepad, PF Editor) and compile.
    I think this may solve problem.
    Cheers!!
    r@m@

  • CS4 Design Standard - Seriennummer ungültig nach Computerwechsel

    Hallo,
    ich habe 2010 CS4 Design Standard gekauft und dieses bei Adobe registriert. Nachdem ich mir nun ein neues Macbook Pro gekauft habe möchte ich CS4  auf dem neuen Mac installieren.
    Auf dem alten Computer habe ich CS4 bereits deinstalliert und die Seriennummer deaktiviert.
    Da der neue Mac kein CD Laufwerk hat, habe ich das Installationsprogramm bei Adobe heruntergeladen. Nun sagt mir das Programm, dass meine Seriennummer ungültig ist.
    Was ist da los? Freu mich über Hilfe!

    Ich hatte tatsächlich die falsche Sprachversion heruntergeladen... Es hat jetzt funktioniert, indem ich ein Image von meiner Installations CD auf dem alten mac erstellt habe und dieses per Stick rübergezogen habe. Vielen Dank!
    CS4 läuft auf dem aktuellen Betriebssystem einwandfrei!

  • Fehler beim WMI-Anbieter für den Berichtsserver: Ungültiger Namespace

    hi
    the following error comes up in, sql2012, & sharepoint 2010,
    in centraladmin > Reporting Services-Integration
    for SSRS use i try to set up a new "Reporting Services Integration" always the following error comes up!
    Fehler beim WMI-Anbieter für den Berichtsserver: Ungültiger Namespace   (invalid namespace)
    what is wrong in the set-up installation?
    hanks for your help,
    marcel

    The language is set to German.
    Related blog: 
    Help with Sharepoint Foundation 2013 and SQL 2012 SP1 SSRS integration setup (invalid namespace)?
    BOL:
    http://technet.microsoft.com/de-de/library/ms156468(v=sql.105).aspx
    http://msdn.microsoft.com/de-de/library/ms157133.aspx
    http://technet.microsoft.com/de-de/library/ms159704(v=sql.105).aspx
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • ORA-00911 w/create table

    I'm trying to execute an SQL file with the following code:
    create table "t_ap_xml"
    "XML_ID" NUMBER,
    "XML_NAME" VARCHAR2(128),
    "XML_TYPE" VARCHAR(32),
    "XML_CONTENT" "SYS"."XML_TYPE",
    "XML_DESCRIPTION" VARCHAR2(4000)
    ..And i'm receiving the following error:
    ERROR at line 8:
    ORA-00911: invalid character
    It is pointing to the semicolon as the problem. If i remove the semicolon, it seems to work. But if I place that code in a DDL with other create table commands, it gives me a ORA-00922 error at the line with the next create statement. Any ideas? Thanks.

    I guess I should have been a bit more clear..
    I am using SQL*Plus, and GET-ing a text .sql file made in a text editor.
    It seems to work without the semicolon and only creating that single table. However, a problem occurs when trying to use multiple CREATE TABLE statements in the same sql file.
    So for example.. here is an excerpt:
    create table t_ap_xml
    create table another_table
    Generates the following error:
    ORA-00922: missing or invalid option
    ..That error occurs on the line in which the second CREATE TABLE statement was issued.
    Thanks for any help!

Maybe you are looking for