Table does not exist error

create table dytab(x number);
    create or replace procedure p_testdytab(p_tab in varchar2)
    is
    begin
    execute immediate ' create table dytab2 as select x from p_tab';
    end p_testdytab;
    begin
    p_testdytab('dytab');
    end;
    /why the procedure is not replacing parameter p_tab with the table name ? I get table does not exist error

Hi,
user650888 wrote:
create table dytab(x number);
create or replace procedure p_testdytab(p_tab in varchar2)
is
begin
execute immediate ' create table dytab2 as select x from p_tab';
end p_testdytab;
begin
p_testdytab('dytab');
end;
/why the procedure is not replacing parameter p_tab with the table name ? I get table does not exist errorAnything inside single-quotes is literally what is written. In this case, p_tab is inside single-quotes, so p_tab doesn't stand for some other value, such as 'dytab'; it literally means p_tab,
If you really must use EXECUTE IMMEDIATE, then don't put the variable name inside the single-quotes.
dynamic_txt := 'create table dytab2 as select x from ' || p_tab;
dbms_output.put_line (dynamic_txt || ' = dynamic_txt');
EXECUTE IMMEDIATE dynamic_txt;Whenever you write dynamic SQL, display it before executing it, at least during testing. That way, you can see exactly what is being executed, which is a huge help when it causes an error.
As Tubby said, creating tables in PL/SQL is usually a very bad idea. Whatever you need to do, Oracle probably has a simpler, more robust way to do it. Say what your business requirements are, and someone will help you find a good way to do what you need.

Similar Messages

  • Merchandising Deployment Fails w/ Table does not exist error

    Very intermittently, our Merchandising Deployments fail.
    After successfully inserting records into a target table (e.g. dcs_sku), it suddenly fails and the logs show an Oracle error about said table missing.
    The table exists. It's there. We realize this is very strange.
    Has anybody else encountered this? The stacktrace is below:
    09:29:24,077 ERROR [ProductCatalog_staging] SQL Statement Failed: [++SQLInsert++]
    INSERT INTO dcs_sku(sku_id,version,creation_date,start_date,end_date,display_name,description,sku_type,fulfiller,nonreturnable)
    VALUES(?,?,?,?,?,?,?,?,?,?)
    -- Parameters --
    p[1] = {pd} sku12345 (java.lang.String)
    p[2] = {pd: version} 1 (java.lang.Integer)
    p[3] = {pd: creationDate} 2011-08-08 11:54:59.0 (java.sql.Timestamp)
    p[4] = {pd: startDate} null
    p[5] = {pd: endDate} null
    p[6] = {pd: displayName} Sku Description (java.lang.String)p[7] = {pd: description} null
    p[8] = {pd: type} 0 (java.lang.Integer)
    p[9] = {pd: fulfiller} 0 (java.lang.Integer)
    p[10] = {pd: nonreturnable} false (java.lang.Boolean)
    [--SQLInsert--]
    09:29:24,197 ERROR [DeploymentManager] item = repositoryMarker:mark2455397 cause = CONTAINER:atg.deployment.DistributedDeploymentException; SOURCE:CONTAINER:atg.repository.RepositoryException; SOURCE:java.sql.SQLException
    : ORA-00604: error occurred at recursive SQL level 1
    ORA-00942: table or view does not exist
    at atg.deployment.repository.RepositoryWorkerThread.processMarkerForAddUpdatePhase(RepositoryWorkerThread.java:245)
    at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:521)
    at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:300)
    message = Deployment Failed time = Fri Aug 12 09:29:24 PDT 2011 atg.deployment.DeploymentFailure@3d938aa9
    CAUGHT AT:
    CONTAINER:atg.deployment.DistributedDeploymentException; SOURCE:CONTAINER:atg.repository.RepositoryException; SOURCE:java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-00942: table or view does not exist
    at atg.deployment.repository.RepositoryWorkerThread.processMarkerForAddUpdatePhase(RepositoryWorkerThread.java:245)
    at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:521)
    at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:300)
    Caused by: CONTAINER:atg.repository.RepositoryException; SOURCE:java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-00942: table or view does not exist
    at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:6416)
    at atg.adapter.gsa.GSARepository.addItem(GSARepository.java:1010)
    at atg.deployment.repository.RepositoryWorkerThread.deployItem(RepositoryWorkerThread.java:1071)
    at atg.deployment.repository.RepositoryWorkerThread.processMarkerForAddUpdatePhase(RepositoryWorkerThread.java:233)
    ... 2 more
    Caused by: java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-00942: table or view does not exist
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:131)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:204)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3468)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1062)
    at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:278)
    at atg.adapter.gsa.SQLStatement.executeUpdate(SQLStatement.java:725)
    at atg.adapter.gsa.Table.insert(Table.java:1378)
    at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:6339)
    ... 5 more
    thanks!
    Joe

    We ran into a similar ORA-00942 issue when statements hitting the same table with the same SQL worked fine before and after. This was happening to us in production, and flushing the shared pool made them go away immediately.
    Research led to this link that has a patch that you can try to apply: http://www.freelists.org/post/oracle-l/Not-as-straightforward-as-it-would-appear-exec-java-javasqlSQLException-ORA00942-table-or-view-does-not-exist,3

  • 10gLiteR3 publishing ORA-00942: table or view does not exist error

    Hi All,
    I am encountering table or view does not exist error while publishing using the api.
    Below is the code:
    try {
    consolidatorManager.openConnection("MOBILEADMIN","PASSWORD", ADMIN_JDBC_URL);
    mobileResourceManager = new MobileResourceManager("MOBILEADMIN","PASSWORD",ADMIN_JDBC_URL);
    consolidatorManager.createPublicationItem(EXT_CONN, "RMT_TEST_TABLE" , "MOBILEADMIN","RMT_TEST_TABLE", "F", "SELECT * FROM MOBILEADMIN.RMT_TEST_TABLE", null, null);
    consolidatorManager.addPublicationItem(mobileResourceManager.getPublication("/mobileApp"),"RMT_TEST_TABLE",null, null, "S", null, null);
    } catch (Exception e) {
    e.printStackTrace();
    When I execute the above code it does not throw any exceptions but I see the below error in err.log. I,U,D triggers are getting created on the remote table, CMP, CFM, CVR,CLG tables are also created, I also see primary key for this table in VPKS. Publishing seems to be fine but I see the below error in err.log.
    java.sql.SQLException: ORA-00942: table or view does not exist
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1451)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:651)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2117)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2331)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:422)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:366)
         at oracle.lite.sync.Subscription.getVirtualTablePrimaryKey(Subscription.java:7522)
         at oracle.lite.sync.Subscription.getTablePrimaryKey(Subscription.java:7365)
         at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2334)
         at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2157)
         at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2129)
         at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2108)
         at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2093)
         at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2079)
         at oracle.lite.sync.ConsolidatorManager.createPublicationItem(ConsolidatorManager.java:1253)
    I am not able to figure out what table it is looking for. Any ideas why this is happening?

    check the MGP compose process, is it also showing the error?
    If it is them at some point in 10.2 Oracle introduced a 'feature' (ie: bug) that causes problems to the housekeeping routines when new versions of publication items are published
    In 10.0 and early 10.2 when making changes to publication items VIEWS called CPV$.. were created to log the column list for each version of a publication item, and check if you are making changes when you publish. In the case of old versions, once all clients have synchronised and been moved to the latest version it tries to delete this view.
    at some point the publish started creating TABLES instead of views (but using the same naming convention ie: CPV$..). This works fine as far as the logging of changes and old column lists, but the housekeeping called at the end of the publish and GP process still trieds to do a DROP VIEW and this causes the error.
    The only way of clearing this i have found is to look at the log file to get the name of the object that it is trying to drop, set up a view script to create a dummy view with the list of columns in the table, drop the table and then create the view. It then gets dropped on the next MGP cycle and the error goes away
    If the error is not showing up in the MGP process, only in the publish, and your changes appear to be publishing OK, then the problem is likely to be with a snapshot definition AFTER the change you have made - real pain to identify on re-publish - possibly missing schema name in the snapshot definition

  • Short dump 'Table does not exist in database'

    Hello All,
    When a report is executing it is going to short dump by saying 'Table does not exist in database'. As per the short dump analysis this issue is happening because of the following   Native SQL statement statement :
    Program :  %_T050N0 (This is a dynamic  program generating by SAP )
    Form Name :  DYN_LIC_SEL_TOT
    exec sql performing LOOP_MOVE_WRITE_ISAP.
    select single_plate, itm_num, ctry_code, model_lot,
    lic_hold_flg, qty into :dcat-lplate, :dcat-matnr,
    :dcat-werks, :dcat-charg, :dcat-holdflag,
    :dcat-qty from ZLICENSE_R2 where itm_num   = :p_matnr and
                    model_lot = :p_charg
    endexec.
    As per the customer this issue occurring since they migrated the SAP  back-end data base from Oralce to DB6. Here I felt that ZLICENSE_R2 is not migrated from the  Oracle to DB6. But as per the BASIS Team, even this table was not maintained in Oracle also. If the table was not maintained in the Oracle, this issue should have been there even before migration also.
    Following is the short dump details:
    Short text
        Table does not exist in database.
    What happened?
        The table or view name used does not
        exist in the database.
        The error occurred in the current database connection "DEFAULT".
    What can you do?
        Check the spelling of the table names in your report.
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_NATIVE_SQL_ERROR', was not
         caught in
       procedure "DYN_LIC_SEL_TOT" "(FORM)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    Triggering SQL statement: "select single_plate, itm_num, ctry_code, model_lot,
    lic_hold_flg, qty from ZLICENSE_R2 where itm_num = ? and model_lot = ? "
    Database error code: "-204"
    Could you please  let me know what might be the reason for this issue.
    Many Thanks in Advance.

    Transaction SE11, input ZLICENSE_R2 for table name, and display the table. Did the table display? If not, that is the main problem.
    If the table displays, go to menu item Utilities -> Database Object -> Database Utility
    In the resulting screen, under the "Status" fields, you should see text "Exists in the database." If you don't, then the table exists in the dictionary, but doesn't exist in the database system. Click the "Create database table" button and then you should be able to run the program.
    You may need basis team's help to carryout some of these actions.

  • The VersionEntity table does not exist in the LiveCycle database. Please bootstrap LiveCycle db

    I am using Livecycle 8.2 running on JBOSS. I get this error in server log
    2013-07-25 13:48:33,809 ERROR [com.adobe.idp.config.AdobePreferenceFactory] UserM:GENERIC_ERROR: [Thread Hashcode: 5001776] Problem with system root| [com.adobe.idp.storeprovider.jdbc.DBStoreFactory] errorCode:12293 errorCodeHEX:0x3005 message:The VersionEntity table does not exist in the LiveCycle database. Please bootstrap LiveCycle database.
    2013-07-25 13:48:33,809 INFO  [STDOUT] java.lang.RuntimeException: The VersionEntity table does not exist in the LiveCycle database. Please bootstrap LiveCycle database.null
    Also not able to login using Administrator password. Assuming above error is the cause. Please any help is appreciated. Thnks.

    Is this observed on a running server or have you made any changes to LC server or database after which this error is seen?
    --Santosh

  • Table does not Exist in Unix OS after it has been created In HTML_DB

    I created a table in HTML_DB and can see the table fine in my HTML_DB application. However, when I go to the Unix OS and try to look up the database using SQL*Plus, I am getting an error saying the table does not exist. Any help as to why this is happening would be appreciated.
    Kelly

    When I go to the Unix OS, I then try and search for the table in the exact schema that I used in >HTML_DB.I don't see what the Unix OS has to do with it here...do you mean you're connecting via SQLPlus?
    If you're connecting via SQLPlus, which schema are you connecting to? (i.e. are you certain you're connecting to the same schema that the table was created under when you were connected to Application Express).

  • Native SQL "Table does not exist in database"

    Hi Developers,
    I'm doing a database connection to an Oracle db and trying to read data using native SQL - I keep getting the runtime error "table does not exist in database" on the statement Fetch Next Cursor. The following is the code snippet (I've commented out the Exec SQL and Fetch Next to make sure I have a connection and I do). HR is a schema in the database and T_Donation is a table in HR.
    Data: w1(3),
             c1 type cursor.
    start-of-selection.
      if con_name is initial.
        write: 'No connection specified'.                       "#EC NOTEXT
        return.
      endif.
    try to open the connection and catch the errors (if any)
      try.
          con_ref = cl_sql_connection=>get_connection( con_name ).
        catch cx_sql_exception into sqlerr_ref.
        error occured
          write:
            'Could not open connection', con_name, '.'.         "#EC NOTEXT
          if sqlerr_ref->unknown_connection = 'X'.
            write:
              / con_name, 'is not defined in DBCON'.            "#EC NOTEXT
          elseif sqlerr_ref->db_error = 'X'.
            write:
              / 'sql error', sqlerr_ref->sql_code, 'occured:',
              / sqlerr_ref->sql_message.                        "#EC NOTEXT
          else.
            perform get_trace_file using dev_file.
            write:
              / 'DBI error', sqlerr_ref->internal_error, 'occured.',
              / 'See trace file for further info:',
                icon_read_file as icon hotspot, dev_file.       "#EC NOTEXT
          endif.
          return.
      endtry.
    connection successfully opened
      write:
        / 'Connection', con_name, 'successfully opened.'.       "#EC NOTEXT
    *- Get the data from MS-SQL Server
      EXEC SQL.
        open C1 for
        SELECT HR.T_DONATION.DN_DONATIONYEAR
        FROM HR.T_DONATION
      ENDEXEC.
      do.
        EXEC SQL.
          FETCH NEXT C1 into :w1
        ENDEXEC.
        if sy-subrc = 0.
          perform loop_output.
        else.
          exit.
        endif.
      enddo.
      EXEC SQL.
        CLOSE C1
      ENDEXEC.
    close connection again
      con_ref->close( ).
      write:
        / 'Connection', con_name, 'closed'.                     "#EC NOTEXT
    end-of-selection.
    *& Form LOOP_OUTPUT
    Output
    form loop_output .
      write: /5 w1.
    endform. " LOOP_OUTPUT
    Thanks for your help.
    Jim
    Message was edited by:
            James Barnes

    Well my advice is to check the question in the sql tutorial, it will be quicker then getting an answere.

  • Table does not exist odbc -2004

    Hi,
    I'm updating a UDO in SBO 9. PL11 by GeneralService via DI API
    The code worked without problems, but I activated the option LOG from customizing options and get the following error:
    "Table does not exist odbc -2004 "
    sCmp = AccCommon.Main.Company.GetCompanyService
                oGeneralService = sCmp.GetGeneralService(LocalConstants.UDO_Colegiados)
                oGeneralParams = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)
                oGeneralData = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralData)
                oGeneralParams.SetProperty(LocalConstants.CAB_Colegiados.cCode, sNumCol)
                oGeneralData = oGeneralService.GetByParams(oGeneralParams)
                oGeneralData.SetProperty(LocalConstants.CAB_Colegiados.cEstado, LocalConstants.Colegiados.Keys_Estado.cInactivo)
                oGeneralService.Update(oGeneralData)
    Any Idea?
    Thanks!

    Thanks,
    We delete the UDO and returned  to generate. We assume that there were changes in the structure that was not reflected.
    Without changing the code works
    Regards

  • EXP-00011 table does not exist

    Hi guru's,
    My DB Version: 10.2.0.2.0
    OS Version: Solaris 10
    While trying to export a table from a schema i am getting error:
    exp-00011 table does not exist
    when i check the source database i found that table name as 'abc' exists there
    but when i log on to schema and try to check the info about the abc table with below mentioned query i got below error:
    SQL> select table_name from user_tables where table_name='rtx';
    no rows selected
    i also checked with table_name='RTX'
    i am getting the same error.
    Can anyone help me out

    sorry the table name is rtx
    C:\Documents and Settings\Administrator>exp userid=sysadm/rtxprod@rtxprod tables=sysadm.rtx file='E:\rtx.dmp' buffer=1000000 feedback=10000 statistics=none
    Export: Release 10.2.0.1.0 - Production on Thu May 10 14:36:34 2012
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options^C
    C:\Documents and Settings\Administrator>exp userid=sysadm/rtxprod@rtxprod tables=sysadm.rtx file='E:\rtx.dmp' buffer=1000000 feedback=10000 statistics=none
    Export: Release 10.2.0.1.0 - Production on Thu May 10 14:37:05 2012
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    EXP-00011: SYSADM.RTX does not exist
    Export terminated successfully with warnings.

  • Cannot retrieve table metadata - Table does not exist: ODP source 0WRKCNT_CATG_TEXT does not exist

    Hi, when i able to import the 0WRKCNT_CATG_TEXT extractor into source system i am getting the above bug Cannot retrieve table metadata - Table does not exist: ODP source <0WRKCNT_CATG_TEXT> does not exist, i have been checked in RSA5 T code to check the object is active or not, its active and its available in ROOSATTR table with enabled mode,but still its showing the error, can anyone help on this ..

    Hi Airings,
    'ORA-00942: table or view does not exist'
    According to the error message, it seems that the migrating table or view does not exist in the database, or SSMA does not have access to it. To troubleshoot the issue, please check the following things.
     1. Verify that if the spelling of the table or view name is correct.
     2. If the table or view exists but is in a different schema from the current schema where the SQL is executing (in other word, the table doesn’t own by you, but owned by other user), the ORA-00942 error will return too. Resolve this by
    explicitly reference the table or view by specifying the schema name (schema_name.table_name).
    3. SSMA queries some additional catalog tables that you may not have permission to, please make sure that you grant the account permission to
     read sys.mlog$. For more details, please review this similar thread:
    Bug in SSMA For Oracle 6.0 for non-dba Oracle user.
    Reference:
    ORA-00942 Table or View Does Not Exist Oracle Error
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Table does not exists.

    I M TRYING TO TAKE EXPORT OF A TABLE BUT I M GETTING ERROR THAT TABLE DOES NOT EXISTS BUT ACTUALLY TABLE EXISTS... PLEASE SUGGEST Y I M GETTING THIS ERROR.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    SQL> select table_name from user_tables where table_name='CSCNF';
    TABLE_NAME
    CSCNF
    SQL> select object_name,object_type from user_objects where object_name='CSCNF';
    OBJECT_NAME OBJECT_TYPE
    CSCNF TABLE
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    [oracle@~]$exp musr/musr file=tab.dmp tables=CSCNF
    Export: Release 11.2.0.1.0 - Production on Thu Jun 17 16:28:51 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing option
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    EXP-00011: MUSR.CSCNF does not exist
    Export terminated successfully with warnings.

    [oracle@~]$sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Thu Jun 17 16:40:48 2010
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    SQL> conn musr/musr
    Connected.
    SQL> sho user
    USER is "musr"
    SQL> select table_name from user_tables where table_name='CSCNF'
      2  ;
    TABLE_NAME
    CSCNF
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    [oracle@~]$

  • Why an "ORA-01006: bind variable does not exist" error when no dynamic SQL?

    Hi all,
    While running PL/SQL in SQL Developer 3.2.09, I got the following error after adding a section of code. Note that nothing I'm doing has anything to do with dynamic SQL (which is what 01006 is supposedly about).
    Error report:
    ORA-01006: bind variable does not exist
    01006. 00000 - "bind variable does not exist"
    *Cause:   
    *Action:
    After commenting out the new chunk of code that caused the error, the error persisted.
    After deleting the new code, the error went away.
    What the heck!?!? If you have any ideas, please lay 'em on me.
    Thanks so much,
    Kim
    P.S. It's a few hundred lines of code, so I didn't append it to this post and I don't see how to attach a file.

    Let's review a few facts:
    1. You post a question in the sql developer forum that has no apparent relation to sql developer. You could confirm this by doing the test using sql*plus or some other tool.
    2. You provide NO information about what database you are even using. The only clue is an ORA -xxx message that means SOME version of Oracle is involved.
    3. You provide NO information about what the four digit version of Oracle DB is being used.
    4. You provide NO information about what the code in general or what that specific section of the code is even doing. The code could be doing literally anything that Oracle is capable of doing.
    That's a bit like calling a mechanic you don't know, telling them your car is making a funny noise and asking them what the problem with your car is.
    >
    While running PL/SQL in SQL Developer 3.2.09, I got the following error after adding a section of code. Note that nothing I'm doing has anything to do with dynamic SQL (which is what 01006 is supposedly about).
    Error report:
    ORA-01006: bind variable does not exist
    01006. 00000 - "bind variable does not exist"
    *Cause:
    *Action:
    The error gives no indication of where the error occurred in the code.
    >
    Your first clue that your troubleshooting method is seriously flawed is when you make statements that aren't supported by any evidence at all but appear to be nothing but your opinion.
    Your second clue is when those statements appear to directly contradict what Oracle is telling you.
    I'm talking about these two statements you make; which you state as if they were universal truths
    >
    nothing I'm doing has anything to do with dynamic SQL
    (which is what 01006 is supposedly about).
    >
    If thoe were true then your 'unstated' conclusion appears to be that Oracle is wrong in saying 'bind variable does not exist'
    Sorry - but I would place my money on Oracle.
    I'm sure the above may sound harsh - it is intended to be. My four major rules (there are more) when troubleshooting Oracle problems.
    1. Assume that Oracle is CORRECT when it tells you there is a problem.
    2. Assume that you are WRONG if your opinion conflicts with what Oracle is telling you - see rule #1.
    3. Don't make ANY other assumptions. You can form hypotheses but don't state them as facts until they are proven.
    4. Your 'opinion' is only useful to the extent that it can help you form meaningful hypotheses - see rule #3.
    >
    To reiterate, there is no dynamic SQL in the code.
    >
    To reiterate - if, as you state, that error relates to dynamic SQL and bind variables then it can not be disputed that:
    ORACLE DOESN'T AGREE WITH YOU!
    So let's try it my way and hypothesize that Oracle is correct (see rule #1 above).
    Then by definition this statement by Oracle is correct
    >
    ORA-01006: bind variable does not exist
    >
    And that should immediately raise this question:
    1. where might there be a bind variable that does not exist?
    which leads to a prerequisite question:
    2. where are ALL of the bind variables that might be being used?
    Question #2 is where you need to start your search. Here are at least five possibilities (there are more)
    1. your code - this should be easiest to check and you state that your 'anonymous' block does not have any.
    2. a table trigger - triggers that use the :NEW, :OLD or :PARENT pseudocolumns. Those psuedocolumns are BIND variables and the trigger code that uses them is, by definition, dynamic sql.
    3. a pl/sql package/function/procedure - any of these might be being called from trigger code or a view that is involved in the transaction. Any of these could take a parameter and/or use bind variables and cause your problem if that bind variable does 'not exist'.
    4. a functional index - can also trigger code from #3 above
    5. an audit trigger that logs the audit activity that your user or your code is performing. This code could be trying to use a SYS_CONTEXT environment variable that has not been created and cause a 'bind variable does not exist' error.
    See rule #1 - Oracle is CORRECT. Until you have identified and examined ALL of the code (not just your anonymous block) being executed and ruled it out you should continue with the hypotheses that Oracle is CORRECT.
    In the (extremely) unlikely event that you can show that Oracle is NOT correct you should file a SOR with Oracle.

  • /BIC/Y______ tables does not exist

    Ladies/Gents
    I am trying to delete master data from an InfoObject in RSD1. When I try to delete a row I get an error that the /BIC/Y______ table does not exist. I suppose SAP is looking for the time (Y-table)....but the check-box u201Ctexts are time-depu201D is NOT checked for this Info Object?
    How can I solve this problem? Thanks!

    Hello,
    Install this note 1110324, I had the same problem and after putting the problem to sap they created that note.
    Please assign points,
    Diogo.

  • Can't initialize iptables : table does not exist

    Error when running ettercap : iptables v1.4.18: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
                                              Perhaps iptables or your kernel needs to be upgraded.
    Different commands tried, all as ROOT:
    iptables -nvL
    iptables v1.4.18: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.
    modprobe ip_tables
    modprobe ip_conntrack
    modprobe iptable-filter
    modprobe ipt_state
    iptables -nvL
    iptables v1.4.18: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.
    zgrep IPTABLES /proc/config.gz
    CONFIG_IP_NF_IPTABLES=m
    CONFIG_IP6_NF_IPTABLES=m
    ls /lib/modules/*/kernel/net/*/netfilter/
    /lib/modules/3.8.4-1-ARCH/kernel/net/bridge/netfilter/:
    ebt_802_3.ko.gz ebt_ip6.ko.gz ebt_pkttype.ko.gz ebtable_broute.ko.gz
    ebt_among.ko.gz ebt_limit.ko.gz ebt_redirect.ko.gz ebtable_filter.ko.gz
    ebt_arp.ko.gz ebt_log.ko.gz ebt_snat.ko.gz ebtable_nat.ko.gz
    ebt_arpreply.ko.gz ebt_mark.ko.gz ebt_stp.ko.gz ebtables.ko.gz
    ebt_dnat.ko.gz ebt_mark_m.ko.gz ebt_ulog.ko.gz
    ebt_ip.ko.gz ebt_nflog.ko.gz ebt_vlan.ko.gz
    /lib/modules/3.8.4-1-ARCH/kernel/net/ipv4/netfilter/:
    arp_tables.ko.gz ipt_ULOG.ko.gz nf_conntrack_ipv4.ko.gz
    arpt_mangle.ko.gz ipt_ah.ko.gz nf_defrag_ipv4.ko.gz
    arptable_filter.ko.gz ipt_rpfilter.ko.gz nf_nat_h323.ko.gz
    ip_tables.ko.gz iptable_filter.ko.gz nf_nat_ipv4.ko.gz
    ipt_CLUSTERIP.ko.gz iptable_mangle.ko.gz nf_nat_pptp.ko.gz
    ipt_ECN.ko.gz iptable_nat.ko.gz nf_nat_proto_gre.ko.gz
    ipt_MASQUERADE.ko.gz iptable_raw.ko.gz nf_nat_snmp_basic.ko.gz
    ipt_REJECT.ko.gz iptable_security.ko.gz
    /lib/modules/3.8.4-1-ARCH/kernel/net/ipv6/netfilter/:
    ip6_tables.ko.gz ip6t_eui64.ko.gz ip6t_rpfilter.ko.gz ip6table_raw.ko.gz
    ip6t_MASQUERADE.ko.gz ip6t_frag.ko.gz ip6t_rt.ko.gz ip6table_security.ko.gz
    ip6t_NPT.ko.gz ip6t_hbh.ko.gz ip6table_filter.ko.gz nf_conntrack_ipv6.ko.gz
    ip6t_REJECT.ko.gz ip6t_ipv6header.ko.gz ip6table_mangle.ko.gz nf_defrag_ipv6.ko.gz
    ip6t_ah.ko.gz ip6t_mh.ko.gz ip6table_nat.ko.gz nf_nat_ipv6.ko.gz
    /lib/modules/3.8.4-1-ck/kernel/net/bridge/netfilter/:
    ebt_802_3.ko.gz ebt_ip6.ko.gz ebt_pkttype.ko.gz ebtable_broute.ko.gz
    ebt_among.ko.gz ebt_limit.ko.gz ebt_redirect.ko.gz ebtable_filter.ko.gz
    ebt_arp.ko.gz ebt_log.ko.gz ebt_snat.ko.gz ebtable_nat.ko.gz
    ebt_arpreply.ko.gz ebt_mark.ko.gz ebt_stp.ko.gz ebtables.ko.gz
    ebt_dnat.ko.gz ebt_mark_m.ko.gz ebt_ulog.ko.gz
    ebt_ip.ko.gz ebt_nflog.ko.gz ebt_vlan.ko.gz
    /lib/modules/3.8.4-1-ck/kernel/net/ipv4/netfilter/:
    arp_tables.ko.gz ipt_ULOG.ko.gz nf_conntrack_ipv4.ko.gz
    arpt_mangle.ko.gz ipt_ah.ko.gz nf_defrag_ipv4.ko.gz
    arptable_filter.ko.gz ipt_rpfilter.ko.gz nf_nat_h323.ko.gz
    ip_tables.ko.gz iptable_filter.ko.gz nf_nat_ipv4.ko.gz
    ipt_CLUSTERIP.ko.gz iptable_mangle.ko.gz nf_nat_pptp.ko.gz
    ipt_ECN.ko.gz iptable_nat.ko.gz nf_nat_proto_gre.ko.gz
    I'm not sure but I think the problem might be here, I don't totally understand the command but my ettercap was working fine one month ago (when I still had the original Arch kernel) and it seems there is modules from 2 kernels here...
    Can anyone help me please? thanks for your patience

    @mich41 Oops I forgot to mention I'm running the ck kernel for duo core CPU
    lsmod
    Module Size Used by
    nfnetlink_log 8037 0
    nfnetlink 3489 1 nfnetlink_log
    fuse 69258 2
    iTCO_wdt 5447 0
    iTCO_vendor_support 1929 1 iTCO_wdt
    joydev 9727 0
    snd_hda_codec_analog 79922 1
    coretemp 6198 0
    arc4 2007 2
    kvm 392193 0
    btusb 14804 0
    bluetooth 301098 2 btusb
    pcmcia 46292 0
    microcode 14465 0
    psmouse 76175 0
    iwl3945 55148 0
    i2c_i801 11077 0
    pcspkr 1995 0
    serio_raw 5105 0
    evdev 10136 13
    battery 7098 0
    yenta_socket 32921 0
    lpc_ich 11601 0
    pcmcia_rsrc 9273 1 yenta_socket
    pcmcia_core 14173 3 pcmcia,pcmcia_rsrc,yenta_socket
    thinkpad_acpi 62433 0
    ac 2568 0
    iwlegacy 48804 1 iwl3945
    nvram 5906 1 thinkpad_acpi
    mac80211 467685 2 iwl3945,iwlegacy
    tpm_tis 10570 0
    tpm 14476 1 tpm_tis
    tpm_bios 9937 1 tpm
    i915 558838 3
    cfg80211 433688 3 iwl3945,iwlegacy,mac80211
    snd_hda_intel 34194 3
    rfkill 15996 4 cfg80211,thinkpad_acpi,bluetooth
    snd_hda_codec 102453 2 snd_hda_intel,snd_hda_codec_analog
    drm_kms_helper 35517 1 i915
    snd_hwdep 6428 1 snd_hda_codec
    snd_pcm 78018 3 snd_hda_codec,snd_hda_intel
    drm 225975 4 i915,drm_kms_helper
    acpi_cpufreq 10630 1
    mperf 1235 1 acpi_cpufreq
    i2c_algo_bit 5391 1 i915
    snd_page_alloc 7394 2 snd_pcm,snd_hda_intel
    snd_timer 18934 2 snd_pcm
    wmi 8379 0
    snd 60156 11 snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel,thinkpad_acpi,snd_hda_codec_analog
    e1000e 213584 0
    thermal 8577 0
    video 11363 1 i915
    i2c_core 23171 5 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit
    soundcore 5442 1 snd
    intel_agp 10872 1 i915
    intel_gtt 12566 3 i915,intel_agp
    processor 27431 3 acpi_cpufreq
    button 4701 1 i915
    ext4 478210 2
    crc16 1359 2 ext4,bluetooth
    jbd2 77917 1 ext4
    mbcache 6026 1 ext4
    sr_mod 14823 0
    cdrom 35520 1 sr_mod
    sd_mod 31258 4
    ata_generic 3338 0
    pata_acpi 3451 0
    ata_piix 24760 3
    libata 168683 3 pata_acpi,ata_generic,ata_piix
    scsi_mod 130797 3 libata,sd_mod,sr_mod
    firewire_ohci 32325 0
    firewire_core 53333 1 firewire_ohci
    crc_itu_t 1363 1 firewire_core
    ehci_pci 4120 0
    uhci_hcd 24972 0
    ehci_hcd 47391 1 ehci_pci
    usbcore 175029 4 btusb,uhci_hcd,ehci_hcd,ehci_pci
    usb_common 954 1 usbcore
    strace iptables -nvL
    execve("/usr/sbin/iptables", ["iptables", "-nvL"], [/* 27 vars */]) = 0
    brk(0) = 0x1a45000
    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=134403, ...}) = 0
    mmap(NULL, 134403, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8b44b09000
    close(3) = 0
    open("/usr/lib/libip4tc.so.0", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\32\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=27344, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b44b08000
    mmap(NULL, 2122536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8b44702000
    mprotect(0x7f8b44708000, 2093056, PROT_NONE) = 0
    mmap(0x7f8b44907000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7f8b44907000
    close(3) = 0
    open("/usr/lib/libip6tc.so.0", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\33\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=31504, ...}) = 0
    mmap(NULL, 2126696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8b444fa000
    mprotect(0x7f8b44500000, 2097152, PROT_NONE) = 0
    mmap(0x7f8b44700000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f8b44700000
    close(3) = 0
    open("/usr/lib/libxtables.so.10", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2204\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=47896, ...}) = 0
    mmap(NULL, 2144896, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8b442ee000
    mprotect(0x7f8b442f9000, 2093056, PROT_NONE) = 0
    mmap(0x7f8b444f8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7f8b444f8000
    close(3) = 0
    open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \33\2\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=2035539, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b44b07000
    mmap(NULL, 3853456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8b43f41000
    mprotect(0x7f8b440e5000, 2093056, PROT_NONE) = 0
    mmap(0x7f8b442e4000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a3000) = 0x7f8b442e4000
    mmap(0x7f8b442ea000, 15504, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f8b442ea000
    close(3) = 0
    open("/usr/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\16\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=14648, ...}) = 0
    mmap(NULL, 2109720, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8b43d3d000
    mprotect(0x7f8b43d40000, 2093056, PROT_NONE) = 0
    mmap(0x7f8b43f3f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f8b43f3f000
    close(3) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b44b06000
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b44b05000
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b44b04000
    arch_prctl(ARCH_SET_FS, 0x7f8b44b05700) = 0
    mprotect(0x7f8b442e4000, 16384, PROT_READ) = 0
    mprotect(0x7f8b43f3f000, 4096, PROT_READ) = 0
    mprotect(0x7f8b444f8000, 4096, PROT_READ) = 0
    mprotect(0x7f8b44700000, 4096, PROT_READ) = 0
    mprotect(0x7f8b44907000, 4096, PROT_READ) = 0
    mprotect(0x613000, 4096, PROT_READ) = 0
    mprotect(0x7f8b44b2a000, 4096, PROT_READ) = 0
    munmap(0x7f8b44b09000, 134403) = 0
    socket(PF_INET, SOCK_RAW, IPPROTO_RAW) = -1 EPERM (Operation not permitted)
    lstat("/proc/net/ip_tables_names", 0x7fff863e5cc0) = -1 ENOENT (No such file or directory)
    open("/proc/sys/kernel/modprobe", O_RDONLY) = 3
    fcntl(3, F_SETFD, FD_CLOEXEC) = 0
    brk(0) = 0x1a45000
    brk(0x1a66000) = 0x1a66000
    read(3, "/sbin/modprobe\n", 1024) = 15
    close(3) = 0
    vfork() = 12371
    wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 12371
    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12371, si_status=1, si_utime=0, si_stime=0} ---
    write(2, "iptables v1.4.18: ", 18iptables v1.4.18: ) = 18
    write(2, "can't initialize iptables table "..., 87can't initialize iptables table `filter': Table does not exist (do you need to insmod?)) = 87
    write(2, "\n", 1
    ) = 1
    write(2, "Perhaps iptables or your kernel "..., 54Perhaps iptables or your kernel needs to be upgraded.
    ) = 54
    exit_group(3) = ?
    +++ exited with 3 +++
    I don't have a ip_tables_names file in /proc/net
    thanks for the help guys

  • Table does not exist - DbLink

    Hello, I have 2 instances, into production environment, instance A and instance B. Into instance A I have a dblink to instance B...
    The problem appear when I want to see the indexes of a table of instance B from instance A, to do this I press F4 into TOAD over:
    owner.table@dblink
    and when I click into tab "Indexes", Oracle said me: "The table does not exist", I review the grants, and this is ok, and the table exist in instance B.
    One explanation, I have the same environment into testing, and there work perfectly, I have the same dblinks, the same users and the same grants.
    Any suggestion to help me.

    You may want to contact the folks that make TOAD.
    My guess is that TOAD is querying the local USER_/ ALL_/ DBA_INDEXES table rather than the USER_/ ALL/ DBA_INDEXES table at the remote server. You could run a client-side SQL trace to see what SQL is being generated to see if the problem is that TOAD is generating the incorrect SQL or whether there is some problem with the database. But I'm not sure how productive that would be since it's not like you could fix the SQL TOAD is submitting. If there is an option in TOAD that changes the behavior here, it's certainly possible that someone here will know it. But TOAD support is probably more likely.
    Justin

Maybe you are looking for

  • Error while creating new tab/user...

    hi there ... I have this error while creating using this <a href="http://https://www.sdn.sap.com/irj/sdn/message?messageID=3171191">https://www.sdn.sap.com/irj/sdn/message?messageID=3171191</a> that i have posted for help... I have encountered this e

  • Ipod photo skipping songs

    have been having a problem with my 30GB ipod photo for a couple of weeks. basically, when i turn it on, and play a track, more often than not it will show that it is playing the track, and after about 5 seconds it will skip to the next track, without

  • IMac - how to disable "sleep" for USD drives ...?

    HI Folks, I'm running a 2 year old iMac / osX 10.6.8 I have 2 or 3 USB terabyte drives plugged in for video and audio work. Many times when I'm doing any kind of "finder-related" task (file management), or even switching back & forth between apps, th

  • Sound is fine but video not showing up - what gives?

    I have the most recent version of iTunes + Quicktime, and thus far, I've had no trouble with iTunes or music purchases from the iTunes store. Recently, I purchased Season 1 of the TV show "The Tudors" from the iTunes store. When I play an episode, th

  • Changing administrator on  a MacBook

    I bought this MacBook at a discount last Christmas because it was a display model in the shop and the last one in stock. The sales assistant said she would clear everything left by the Apple Store but she didn't. The Administrator, although I managed