Error 00942

Hi,
One of our business areas contains custom folders that are created using SQL statements. We found that the database administrator can run query in Viewer. However, when we grant access to users to run query in Discoverer Viewer, it returns the error: Query execution is unsuccessful ORA-00942 Table or view does not exist.
We have shared all the business areas and workbooks with users.
Is there something that we can do?

Hello
You need to GRANT SELECT on the View in question either to individual users or to PUBLIC.
By default your DBA will have all sorts of access that ordiinary end users do not have and he probably has GRANT SELECT ANY TABLE which allows him to see anything.
Some organizations allow their Discoverer users to have this privilege too, but your DBA might object.
Best wishes
Michael

Similar Messages

  • Ides installation error during "perform post-load activities" ORA-00942:

    Dear Guru's
    I am having problem in ides ERP 2005 SR1 installation .with oracle 10g on windows 2003.
    Currently i am facing problem at "perform post-load activities"
    Below is the logs from sapinst_dev.log:-
    TRACE      [iaxohsqlx.hpp:1043]
               COraSQLScriptExec<LoggingStrategy>::executeScript()
    COraSQLScriptExec<LoggingStrategy>::executeScript: Script executed with error message.
    TRACE      [iaxxejsexp.cpp:188]
               EJS_Installer::writeTraceToLogBook()
    OraSqlScript3.execute: Result of SQL:
    ERROR      2011-02-14 10:50:28 [iaxxinscbk.cpp:271]
               abortInstallation
    CJS-00084  SQL statement or script failed.<br>DIAGNOSIS: Error message: ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'APPL1'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'APPL2'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'CLUST'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'DDIM'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3FACT' WHERE TABART = 'DFACT'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3ODS' WHERE TABART = 'DODS'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'POOL'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SDIC'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SDOCU'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3700' WHERE TABART = 'SLDEF'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3700' WHERE TABART = 'SLEXC'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SLOAD'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SPROT'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3700' WHERE TABART = 'SSDEF'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3700' WHERE TABART = 'SSEXC'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SSRC'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'TEMP'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3USR' WHERE TABART = 'USER'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3USR' WHERE TABART = 'USER1'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'APPL0'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'APPL1'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'APPL2'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'CLUST'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'DDIM'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3FACT' WHERE TABART = 'DFACT'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3ODS' WHERE TABART = 'DODS'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'POOL'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SDIC'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSP.<br>SOLUTION: See ora_sql_results.log and the Oracle documentation for details.
    TRACE      [iaxxejsbas.hpp:388]
               handleException<ESAPinstException>()
    Converting exception into JS Exception Exception.
    ERROR      2011-02-14 10:50:28
               CJSlibModule::writeError_impl()
    MUT-03025  Caught ESAPinstException in Modulecall: ESAPinstException: error text undefined.
    TRACE      [iaxxejsbas.hpp:460]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    ERROR      2011-02-14 10:50:28 [iaxxgenimp.cpp:736]
               showDialog()
    FCO-00011  The step runDdicoraSql with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|9|0|NW_Postload|ind|ind|ind|ind|10|0|NW_Postload_ORA|ind|ind|ind|ind|0|0|runDdicoraSql was executed with status ERROR .
    TRACE      [iaxxgenimp.cpp:657]
               showDialog()
    <html><head></head><body><p>An error occurred while processing service <b>SAP ERP 2005 Support Release 1 > SAP Systems > Oracle > Central System > Central System Installation</b>. You may now</p><ul> <li>press <I>Retry</I> to repeat the current step.</li> <li>press the <I>View Log</I> button to get more information about the error.</li> <li>stop the task and continue with it later.</li></ul><p>Log files are written to <b>C:\Program Files/sapinst_instdir/ERP/SYSTEM/ORA/CENTRAL/AS</b>
    TRACE      [iaxxgenimp.cpp:1093]
               showDialog()
    waiting for an answer from gui
    PLEASE HELP.
    Regards
    AKif

    Below is the ora_sql_results.log
    ==============================================================
    2011-02-14, 12:23:39 SAPINST ORACLE start logging for
    @@ddicora.sql
    exit;
    Output of SQL executing program:
    SQL*Plus: Release 10.2.0.4.0 - Production on Mon Feb 14 12:23:39 2011
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Connected.
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'APPL0'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'APPL1'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'APPL2'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'CLUST'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'DDIM'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3FACT' WHERE TABART = 'DFACT'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3ODS' WHERE TABART = 'DODS'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'POOL'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SDIC'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SDOCU'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3700' WHERE TABART = 'SLDEF'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3700' WHERE TABART = 'SLEXC'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SLOAD'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SPROT'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3700' WHERE TABART = 'SSDEF'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3700' WHERE TABART = 'SSEXC'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SSRC'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'TEMP'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3USR' WHERE TABART = 'USER'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.taora SET TABSPACE = 'PSAPSR3USR' WHERE TABART = 'USER1'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'APPL0'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'APPL1'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'APPL2'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'CLUST'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'DDIM'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3FACT' WHERE TABART = 'DFACT'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3ODS' WHERE TABART = 'DODS'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'POOL'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SDIC'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SDOCU'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3700' WHERE TABART = 'SLDEF'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3700' WHERE TABART = 'SLEXC'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SLOAD'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SPROT'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3700' WHERE TABART = 'SSDEF'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3700' WHERE TABART = 'SSEXC'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'SSRC'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3' WHERE TABART = 'TEMP'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3USR' WHERE TABART = 'USER'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    UPDATE SAPSR3.iaora SET TABSPACE = 'PSAPSR3USR' WHERE TABART = 'USER1'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    DELETE FROM SAPSR3.tsora
    ERROR at line 1:
    ORA-00942: table or view does not exist
    INSERT INTO SAPSR3.tsora  (TABSPACE, INDSPACE) VALUES ('PSAPSR3', 'PSAPSR3')
    ERROR at line 1:
    ORA-00942: table or view does not exist
    INSERT INTO SAPSR3.tsora  (TABSPACE, INDSPACE) VALUES ('PSAPSR3FACT', 'PSAPSR3FACT')
    ERROR at line 1:
    ORA-00942: table or view does not exist
    INSERT INTO SAPSR3.tsora  (TABSPACE, INDSPACE) VALUES ('PSAPSR3ODS', 'PSAPSR3ODS')
    ERROR at line 1:
    ORA-00942: table or view does not exist
    INSERT INTO SAPSR3.tsora  (TABSPACE, INDSPACE) VALUES ('PSAPSR3700', 'PSAPSR3700')
    ERROR at line 1:
    ORA-00942: table or view does not exist
    INSERT INTO SAPSR3.tsora  (TABSPACE, INDSPACE) VALUES ('PSAPSR3USR', 'PSAPSR3USR')
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SAPINST: End of output of SQL executing program F:\oracle\IIT\102/bin/sqlplus.
    SAPINST found errors.
    SAPINST The current process environment may be found in sapinst_ora_environment.log.
    2011-02-14, 12:23:42 SAPINST ORACLE stop logging

  • ERROR ORA-00942: table or view does not exist

    Hi:
    I created a .sql file and a loader file. Running the .sql file with sql * plus Worksheet:
    declare
    gr sdo_georaster;
    begin
    select image into gr from gis.RasterImages where geoid=1 for update;
    sdo_geor.generatePyramid(gr,'resampling=NN');
    update gis.RasterImages set image=gr where geoid=1;
    commit;
    end;
    I trying to create a pyramid,but the error appeared:
    ERROR at line 1:
    ORA-29400: DATA CONTROL ERROR ORA-00942: table or view does not exist
    ORA-06512: &#22312; "MDSYS.SDO_GEOR_INT", line 162
    ORA-06512: &#22312; "MDSYS.SDO_GEOR", line 826
    ORA-06512: &#22312; line 5
    I don't know why?
    Anyone can help me?
    Thanks.

    Hi,
    I think you are executing the select statement for schema X and the table is in the schema srnr.
    And schema X is not having select privilege on the table 'students' present in schema srnr.
    Goto schema srnr.
    Execute the following statement:
    grant select on students to X;
    This will give schema X the privilege to query the table students present in srnr.
    Regards,
    Anupama

  • ORA-00942 Error during unicode export of BI 7.0

    Hello Everyone,
    I am doing an export of a non-unicode BI 7.0 system to convert and import it into a Unicode database. All the jobs have passed except one and I see the following error in the log file (SAPAPPL0_3.log)
    /usr/sap/ABD/SYS/exe/run/R3load: START OF LOG: 20080302124247
    /usr/sap/ABD/SYS/exe/run/R3load: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#13 $ SAP
    /usr/sap/ABD/SYS/exe/run/R3load: version R7.00/V1.4
    Compiled Jun  9 2007 09:20:06
    /usr/sap/ABD/SYS/exe/run/R3load -e SAPAPPL0_3.cmd -datacodepage 4102 -l SAPAPPL0_3.log -stop_on_error
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (RSCP) INFO: I18N_NAMETAB_TIMESTAMPS not in env: checks are ON (Note 738858)
    (RSCP) WARN: UMGCONTAINER has 1 problems.
    (RSCP) INFO: UMGSETTINGS nametab creation: ok.
    (RSCP) INFO: Global fallback code page = 1100
    (RSCP) INFO: Common character set is  not  7-bit-ASCII
    (RSCP) INFO: Collision resolution method is 'fine'
    (RSCP) INFO: R3trans code pages = Normal
    (RSCP) INFO: EXPORT TO ... code pages = Normal
    (RSCP) INFO: Check for invalid language keys: active, by default
    (RSCP) INFO: I18N_NAMETAB_NORM_ALLOW = 999999999
    (RSCP) INFO: I18N_NAMETAB_NORM_LOG   = 1000000002
    (RSCP) INFO: I18N_NAMETAB_ALT_ALLOW  = 10000
    (RSCP) INFO: I18N_NAMETAB_ALT_LOG    = 10003
    (RSCP) INFO: I18N_NAMETAB_OLD_ALLOW  = 0
    (RSCP) INFO: I18N_NAMETAB_OLD_LOG    = 500
    (GSI) INFO: dbname   = "ABD20070922100908
    (GSI) INFO: vname    = "ORACLE                          "
    (GSI) INFO: hostname = "ussbbdd5                                                        "
    (GSI) INFO: sysname  = "HP-UX"
    (GSI) INFO: nodename = "ussbbdd5"
    (GSI) INFO: release  = "B.11.23"
    (GSI) INFO: version  = "U"
    (GSI) INFO: machine  = "ia64"
    (GSI) INFO: instno   = "INITIAL   "
    (EXP) ERROR: DbSlExeRead failed
      rc = 103, table "/BIC/SZTERR_CD"
      (SQL error 942)
      error message returned by DbSl:
    ORA-00942: table or view does not exist
    (DB) INFO: disconnected from DB
    /usr/sap/ABD/SYS/exe/run/R3load: job finished with 1 error(s)
    /usr/sap/ABD/SYS/exe/run/R3load: END OF LOG: 20080302124251
    When I run the following command on /BIC/SZTERR_CD, I do not get any table information back. I am not sure how to fix it though.
    SELECT * FROM DBA_OBJECTS WHERE OBJECT_NAME = '/BIC/SZTERR_CD '; 
    I did finish all the unicode preconversion steps and also ran the SMIGR_CREATE_DDL program. I had exported recently from the same system but I never got this error during that run.
    Another question is about the order in which the steps need to be performed. I completed the preconversion steps, then ran the SMIGR_CREATE_DDL program before proceeding to the export phase. Is this right or does it not matter?
    Thanks again for your help!

    Hello Stacy,
    > When I run the following command on /BIC/SZTERR_CD, I do not get any table information back. I am not sure how to fix it though.
    > SELECT * FROM DBA_OBJECTS WHERE OBJECT_NAME = '/BIC/SZTERR_CD ';
    If the object does not exists on the source target database, please check if the ddic of sap still contains the table definition. (SE11 or SE14)
    If yes you can set the status of the table /BIC/SZTERR_CD to "ok" in the corresponding task file.
    You can not fix this problem in other way after you have started the conversion, because of the export files are already generated (with the information of the sap ddic)...
    > I completed the preconversion steps, then ran the SMIGR_CREATE_DDL program before proceeding to the export phase. Is this right or does it not matter?
    That was the right way.
    Regards
    Stefan

  • Dbms_sql  in a different schema from query table-error  ** ORA-00942

    Oracle Experts,
    I think I am having problems with using DBMS_SQL in which the function was created in one schema and the query table was created in a different schema.
    We have 2 schemas: S1, S2
    We have 2 tables:
    T1 in Schema S1
    T2 in Schema S2
    We have a function F1 created by DBA in schema S1 that uses the dbms_sql as:
    CREATE OR REPLACE FUNCTION S1.F1(v1 in VARCHAR2) return NUMBER IS
    cursor1 INTEGER;
    BEGIN
    cursor1 := dbms_sql.open_cursor;
    dbms_sql.parse(cursor1, v1, dbms_sql.NATIVE);
    dbms_sql.close_cursor(cursor1);
    return (0);
    EXCEPTION
    when others then
    dbms_sql.close_cursor(cursor1);
    return (1) ;
    END;
    I am using jdeveloper 11G. We have an Oracle DB 11g.
    We have a java program which uses jdbc to talk to our Oracle DB.
    Basically, in my java program, I call function F1 to check if the query is valid.
    If it is, it returns 0. Otherwise, returns 1:
    oracle.jdbc.OracleCallableStatement cstmt = (oracle.jdbc.OracleCallableStatement) connection.prepareCall ("begin ? := S1.F1 (?); end;");
    cstmt.registerOutParameter (1, java.sql.Types.INTEGER);
    cstmt.setString(2, "Select * from S2.T2");
    cstmt.execute ();
    Since the table that I run the query is T2, created in different schema than F1 was created in, I have the error:
    ** ORA-00942: table or view does not exist
    So my questions are these:
    - I am using Oracle DB 11g, if I run the query on a table that created in a different schema from the one that the function (which uses dbms_sql) was created in, I would get the error ORA-00942?
    - If I runs the query on table T1 in the same schema as the function F1, would I have the same problem(The reason I ask is I cannot create any table in schema S1 because the DBA has to do it; I am not a DBA)
    - This is not a problem, but a security feature because of SQL injection?
    - How to resolve this issue other than creating the table in the same schema as the function that utilizes DBMS_SQL?
    Regards,
    Binh

    Definer rights (default) stored objects run under owner's security domain and ignore role based privileges. So regardless what user you are logged in as, function S1.F1 always executes as user S1 and ignores user S1 roles. Therefore exeuting statement within S1.F1:
    Select * from S2.T2requires user S1 to have SELECT privilege on S2.T2 granted to S1 directly, not via role.
    SY.

  • Scheduling error causing - ORA-00942: table or view does not exist

    Hello
    I have the following problem, I created an scenario that its supposed to run every 1 hour, it has an interface that moves an amount of records from one table to another (the amount of records is not fixed it changes). The problem arises when the amount of data to move is so big that the hour between executions is not enough and the scenario is still running when a second execution of the same scenario starts to run (as scheduled), so in the interface when the second process is trying to run the loading step it fails and I got the error ODI-1228 Caused By: java.sql.BatchUpdateException: ORA-00942: table or view does not exists. So the scenario fails and it logs this error. I think the error is due to the table in stage being locked by the first execution of the scenario.
    I don't want to change the amount of time between executions because it is usually enough, I just want to avoid the execution of a scenario when there is another execution of the same scenario still running, is there any way to do this?.
    Thanks
    LJ

    Hello
    Thanks for your answer, I already have the "Interval between repetitions" property set to 1 hour, but when one execution takes more than one hour the scheduler starts another and I have 2 processes accessing the same table and it is when I have a concurrence error on the staging table.
    How can I ensure that I wont have two or more executions of the same scenario running at the same time?.
    Thanks,
    LJ

  • SQL Error: ORA-00942: table or view does not exist + CX_RS_SQL_ERROR

    HI ,
    we are facing below issue while activating info object xxxxxxxx
    " SQL Error: ORA-00942: table or view does not exist "  and   " CX_RS_SQL_ERROR  "
    can any one help us out to resolve this issue.
    Thanks,
    EDK......

    Hi,
    Check the corrections given in the note 990764:
    Reason and Prerequisites
    Up to now, using a characteristic with its own master data read class as the InfoProvider was not supported. This is now released but it is not available for all modelings. Using the attributes in the query is not supported for characteristics that have their own master data read class. Using the attributes in the query causes a termination. The following errors may occur in this case:
    ORA-00942: table or view does not exist
    Fehler in CL_SQL_RESULT_SET  Include NEXT_PACKAGE
    RAISE_READ_ERROR in CL_RSDRV_VPROV_BASE
    Solution
    SAP NetWeaver 2004s BI
               Import Support Package 11 for SAP NetWeaver 2004s BI (BI Patch 11 or SAPKW70011) into your BI system. The Support Package is available once Note 0914305 "SAPBINews BI 7.0 Support Package 11", which describes this Support Package in more detail, has been released for customers.
    In urgent cases you can implement the correction instructions.
    The correction instructions contain the tightened inspection for characteristics.
    Regards,
    Anil Kumar Sharma .P

  • Error(20,22): PL/SQL: ORA-00942: table or view does not exist

    I am getting currently getting an error when I try and insert into a table from a different schema from my Stored Procedure:
    Error(20,22): PL/SQL: ORA-00942: table or view does not exist
    I am explicitly calling the table with the schema name infront i.e.
    INSERT INTO SAPSR3.ZTREC_NAME_TYPE
    MASTER_ID,
    NAME_TYPE,
    FAMILY_NAME,
    FIRST_NAME,
    MIDDLE_NAME,
    TITLE
    VALUES
    In_MasterID,
    In_NameType,
    In_FamilyName,
    In_FirstName,
    In_MiddleName,
    In_Title
    I only get this error when I try and compile my stored procedure. If I try this insert not within a stored procedure (i.e. a blank script) it works perfectly.
    Can anyone tell me what Im doing wrong?
    Thanks.

    Hi,
    It sounds like you (the procedure owner) have privileges on that table only through a role.
    Roles don't count in stored procedures created with AUTHID OWNER (which is the default).
    Either
    (1) Have user SAPSR3 grant the necessary privileges directly to you (or to PUBLIC), or
    (2) change the procedure so that it runs with the caller's privileges, by adding AUTHID CURRENT_USER after the argument list but before the keyword IS (os AS) like this:
    CREATE OR REPLACE PROCEDURE     foo
    (     x     IN     NUMBER
    AUTHID CURRENT_USER
    IS ...

  • Error Expanding Database Node :  ORA-00942 table or view does not exist

    I just installed the ODT for Visual Studio.NET. It installed fine and I can connect to my databases. However, I am having trouble expanding adatabase node to see all of its object nodes (tables, views, ...). I get the ORA-00942 error when connecting with a user id and password used by an application. If I use my personall user id an password, I can expand the database node. What table or view is it looking for that it cannot find? Is this something that our DBA has prevented? Any ideas would be appreciated.

    Only guessing, but I wouldn't expect an application id to have anything like the same rights as a normal id. I wouldn't expect it to have any rights to tables, just to stored procedures and/or views, but this would be up to the standards in your organisation. This will be something the DBA has done, probably granting the absolute minimum of rights to the application id. It might be looking for one of the system views, so if there's an option to ignore system objects try setting it.

  • Error rendering element. Exception: ORA-00942: table or view does not exist

    Guru,
    We are maintaining 10 internal Database through OEM 10g and using seesded reports.
    When we try to create simple custom reports against one of the Target database , its failing with following error message ,
    Query : select * from v$database
    Error rendering element.
    Exception: ORA-00942: table or view does not exist
    select * from dual & v$session working ( But query execution happeniing from Reposistory Database not from Target instance  )
    Note:
    I have reviewed thred "getting ORA-00942 while running report in GC"
    Please give some light .
    Regards,
    Raju

    This is an EM related question so I would suggest you post in the appropriate space "Enterprise Manager" -- https://forums.oracle.com/community/developer/english/enterprise_management/enterprise_manager/enterprise_manager_6
    You may also review (In Grid Control 10.2, Creating a Report to Query 'V$SESSION 'Fails: 'Error Rendering Element. Exception: ORA-00942 Table Or View Does Not Exist' (Doc ID 356755.1)) and implement the solution for v$database
    Thanks,
    Hussein

  • Error while deploying map: ORA-00942 Table or view does not exist

    Hi OWB experts,
    I'm having yet another problem with OWB, this time when I try to deploy a mapping I get this error:
    ORA-06550: line 59, column 3:
    PL/SQL: ORA-00942: table or view does not exist
    DIM_01_ESTCON_MAP
    ORA-06550: line 93, column 3:
    PL/SQL: SQL Statement ignored
    If I open the package that OWB created I see the errors:
    CURSOR "DEDUP_SRC_0_IN2_c" IS
    SELECT
    "DEDUP_INPUT_SUBQUERY2$1"."ESTADOCONEXION_ID" "ESTADOCONEXION_ID",
    "DEDUP_INPUT_SUBQUERY2$1"."ESTADOCONEXION_COD_ESTCON" "ESTADOCONEXION_COD_ESTCON",
    "DEDUP_INPUT_SUBQUERY2$1"."ESTADOCONEXION_DESC_ESTCON" "ESTADOCONEXION_DESC_ESTCON",
    "DEDUP_INPUT_SUBQUERY2$1"."STANDARD_TOTAL_COD_TTL" "STANDARD_TOTAL_COD_TTL"
    FROM
    (SELECT
    DISTINCT
    "DIM_01_ESTCON_MAP"."GET_CONST_CA_0_ESTADOCO" "ESTADOCONEXION_ID",
    "ESTADOS"."ESTADO" "ESTADOCONEXION_COD_ESTCON",
    "ESTADOS"."DESC_EST" "ESTADOCONEXION_DESC_ESTCON",
    "DIM_01_ESTCON_MAP"."GET_TOTAL_C_0_TTLID" "STANDARD_TOTAL_COD_TTL"
    FROM
    "CONSULTA"."ESTADOS"@"PROD@AYADEV_LOCATION" "ESTADOS"
    WHERE
    ( estado LIKE 'EC%' )) "DEDUP_INPUT_SUBQUERY2$1";
    Where AYADEV_LOCATION points to the module/schema/location where my source data is.
    Now, I have defined three modules:
    SOURCE, where I defined the tables and other objects from the original database (source data)
    STAGE, where I am performing all the transformations; here I defined all the maps
    TARGET, this holds the dimensions and fact tables.
    Now all three modules point to different databases. The dblink for AYADEV_LOCATION has been created and shouldn't present any problems. The username that I'm using to log on to the source database is current and I can connect to it through SQL+ or any other program (TOAD, SQLDeveloper).
    What could be happening here? I'm using OWB 10g R2, with Oracle DB 10g R2.
    I'd really appreciate any help you could provide.
    Best Regards,
    --Osvaldo
    [osantos]

    Hi,
    I'm still having problems but I found out why these tables are returning errors. The username I've been given by the DBA to connect to the database is CONSULTA, but this user is only for querying purposes, the actual objects reside on a differente schema, of course, which is PROD. So the line:
    "CONSULTA"."ESTADOS"@"PROD@AYADEV_LOCATION" "ESTADOS"
    raises an exception because the table ESTADOS is not located on that schema, but on PROD. If I query the table from SQL Plus with:
    SELECT *
    FROM [email protected]@AYADEV_LOCATION
    then there's no problem at all.
    Why is this? How do I instruct OWB to point to the correct schema or to avoind fully qualifying the table name?
    Please help me, I'm kind of confused here.
    Best Regards,
    --oswaldo.
    [osantos]

  • ORA-00942 error on truncating a table with a XML Index

    Oracle Version: 11.2.0.1.0
    When truncate command fails with error "ORA-00942: table or view does not exist" when run against a table with an XML Index defined
    SQL> CREATE TABLE XML_TEST
    2 (
    3 ID INTEGER,
    4 TESTXML SYS.XMLTYPE
    5 );
    Table created.
    SQL> truncate table XML_TEST;
    Table truncated.
    SQL> CREATE INDEX xmlindex ON XML_TEST(TESTXML)
    2 indextype IS xdb.xmlindex
    3 parameters ('PATH TABLE MY_PATH_TABLE');
    Index created.
    SQL> truncate table XML_TEST;
    truncate table XML_TEST
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> Drop Index xmlindex;
    Index dropped.
    SQL> truncate table XML_TEST;
    Table truncated.

    No, I don't think that explanation is correct. I don't think it has to do with user privs. besides, we don't
    adjust rowids on an import -- we recreate the index, just like a b-tree index import would.
    This should be working. It's most likely a bug in our (i.e. Text) import code -- SYS.XMLTYPE is a little
    strange because under the covers it's actually a function-based index.
    I will test it out and file a bug if I can reproduce the behavior on solaris.

  • ORA-00942 error when exporting db

    Hi,
    Has anyone encountered the following error before? Kindly help.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.7.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    . exporting resource costs
    . exporting rollback segment definitions
    . exporting database links
    . exporting sequence numbers
    . exporting directory aliases
    . exporting context namespaces
    . exporting foreign function library names
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions
    EXP-00008: ORACLE error 942 encountered
    ORA-00942: table or view does not exist
    EXP-00024: Export views not installed, please notify your DBA
    EXP-00000: Export terminated unsuccessfully
    My exp parameters are full=y grants=y indexes=y rows=y

    Hi,
    I have executed catexp.sql but when I run the exp it produced the ff error:
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.7.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    . exporting resource costs
    . exporting rollback segment definitions
    . exporting database links
    . exporting sequence numbers
    . exporting directory aliases
    . exporting context namespaces
    . exporting foreign function library names
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions
    . exporting system procedural objects and actions
    . exporting pre-schema procedural objects and actions
    EXP-00008: ORACLE error 21779 encountered
    ORA-21779: duration not active
    ORA-06512: at "SYS.DBMS_AW", line 106
    ORA-06512: at "SYS.DBMS_AW", line 222
    ORA-06512: at "SYS.DBMS_AW_EXP", line 264
    ORA-06512: at line 1
    EXP-00083: The previous problem occurred when calling SYS.DBMS_AW_EXP.schema_info_exp
    . exporting cluster definitions
    EXP-00056: ORACLE error 31600 encountered
    ORA-31600: invalid input value EMIT_SCHEMA for parameter NAME in function SET_TRANSFORM_PARAM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 3926
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 4050
    ORA-06512: at "SYS.DBMS_METADATA", line 836
    ORA-06512: at line 1
    EXP-00056: ORACLE error 31600 encountered
    ORA-31600: invalid input value EMIT_SCHEMA for parameter NAME in function SET_TRANSFORM_PARAM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 3926
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 4050
    ORA-06512: at "SYS.DBMS_METADATA", line 836
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully

  • Error in Phase EXPORT of CU&UC Migration 46C to ECC60: ORA-00942

    Hi,
    We are making a 46C to ECC 6.0 upgrade EHP4 Stack 8.
    We have migrated to the system ECC6.0 not Unicode. Now we're in the
    process of Export to Unicode and we got the following errors:
    (EXP) ERROR: failed DbSlExeRead rc = 103, table "/ BI0/PTCTUSERNM"
    (SQL error 942) error message returned by DbSl: ORA-00942: table or
    view does not exist
    (DB) INFO: disconnected from DB
    (EXP) ERROR: failed DbSlExeRead rc = 103, table "DFKKCOLFILE_P_W (SQL
    error 942) error message returned by DbSl: ORA-00942: table or view
    does not exist
    (DB) INFO: disconnected from DB
    We found that the 2 tables do not exist in previous 46C release but
    exist in other systems with ECC6.0 release.
    We found that, at least, DFKKCOLFILE_P_W table did not exist in our
    system migrated not unicode.
    We have reviewed the OSS Note 1156968 (Add. info. EHP on upgrading to 4
    for ERP SAP ABAP 6.0) and we did not find a solution to our errors.
    Is there a process or mechanism to put these tables in the system if
    the migration process has not created them? or is it possible to ignore
    these errors in the export and go on with the migration and fix the
    tables when we are done with the migration? If we ignore these errors
    will we encounter problems because of that?
    Can you help us?
    Thank you in advance.

    Hello, we have solved the problem.
    To help someone with the same error, what we have done is:
    1.- wait until all the processes has finished and the export is stopped.
    2.- startup SAP
    3.- SE14 and look up the tables. Crete the tables in the database.
    4.- stop SAP
    5.- Retry the export (if you did all the steps with sapinst running but the dialogue window in the screen) or begin the sapinst again with the option: "continue with the old options".
    Regards to all.

  • Error handling function: ORA-20001: get_dbms_sql_cursor error:ORA-00942: table or view does not exist  is not trapped. Why?

    Why APEX 4.1 Error handling function does not trap  the error of missing table?
    Say, I create simple application with single IR report page and I also assign standard simple error handling function.
    Function works perfectly, except but this case:
    If I just drop a table used by report page and then refresh the page I am getting usual APEX error message:
    ORA-20001: get_dbms_sql_cursor error ORA-00942: table or view does not exist
    and error handling function is not invoked at all.
    Is this a feature or a bug?

    Hi,
    Check the corrections given in the note 990764:
    Reason and Prerequisites
    Up to now, using a characteristic with its own master data read class as the InfoProvider was not supported. This is now released but it is not available for all modelings. Using the attributes in the query is not supported for characteristics that have their own master data read class. Using the attributes in the query causes a termination. The following errors may occur in this case:
    ORA-00942: table or view does not exist
    Fehler in CL_SQL_RESULT_SET  Include NEXT_PACKAGE
    RAISE_READ_ERROR in CL_RSDRV_VPROV_BASE
    Solution
    SAP NetWeaver 2004s BI
               Import Support Package 11 for SAP NetWeaver 2004s BI (BI Patch 11 or SAPKW70011) into your BI system. The Support Package is available once Note 0914305 "SAPBINews BI 7.0 Support Package 11", which describes this Support Package in more detail, has been released for customers.
    In urgent cases you can implement the correction instructions.
    The correction instructions contain the tightened inspection for characteristics.
    Regards,
    Anil Kumar Sharma .P

Maybe you are looking for

  • Splash screen with progress bar and multiple jar files to load

    Hello, I have been looking to the new features in java 6 for splash screens. I haven't implemented this never before and i was wondering how i could do the following with java 1.5 or 6: I would like to see a splash screen with a progress bar that "gr

  • You have updates available for other accounts.

    Hello, everyone. When I first got my Macbook Air, I stupidly registered under my friend's Apple ID in the App Store. I just realized how big of a fool I was when I wanted to update iPhoto and iMovie and it asked me to update it under my friend's Appl

  • Directory structure after upgrade to iPhoto 6

    After upgrading to iPhoto 6, it appears that my photos were copied from the old, date-based structure into a new directory structure, but the old structure was left behind. What is the layout of the new structure, and can the remaining old structure

  • Display specific file on specific date (php)

    Hi there. PHP & MySQL I have done something like this in ASP many years ago, but don't know it in PHP. I have a website and on it, I want to display on the right hand side, a motivational quote for everyday. In the ASP version, I had different files:

  • HT4718 When I try to resorw my MacBook air after I hold CTR

    wwhen I try to restore my MacBook air back to factory settings is asking me for a password?