Intermittent ORA-00942 error

Hi,
I'm getting an intermittent ORA-00942 (Table or View Does Not Exist) error in Oracle 9i. We're getting it in several different packages, and they all have one thing in common.
They are all either joining to a table type that had previously been populated with a BULK COLLECT INTO or a temp table that was populate with a CAST (from the same table type) or has a TABLE CAST directly in the join.
This is the type:
CREATE OR REPLACE TYPE fe_id_tab AS TABLE OF INTEGER NOT NULL;
This is the table:
create global temporary table FE_TMP_ID
ID INTEGER not null
on commit delete rows;
Again, this is an intermittent error. It only happens occasionally, and when it does happen, if you immediately run the same query, it works fine.
Thanks,
Karin

smuthuku wrote:
The customer is getting the below error in the alert log intermittently when running utlrp script in 11.2.0.2
ORA-12012: error on auto execute of job "SYS"."UTL_RECOMP_SLAVE_24"
ORA-00942: table or view does not exist
As this happens in a production environment, the customer doesn't want to turn on the tracing but wants to know
if this is a problem with the data dictionary or someother issue. Any inputs appreciated.
Yes, it is a problem with data dictionay or some other issue.
do as below so we can know complete Oracle version & OS name.
Post via COPY & PASTE complete results of
SELECT * from v$version;

Similar Messages

  • 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

  • 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

  • Intermittent ORA-07445 errors - Any ideas?

    New installation of XE.
    All latest XP patches.
    Local browser: Mozilla Firefox, latest version.
    Problems occur intermittently when creating pages in application express.
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Windows XP Version V5.1 Service Pack 2
    CPU : 1 - type 586
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:469M/1023M, Ph+PgF:2353M/2926M, VA:1606M/2047M
    Instance name: xe
    Example 1
    ========
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [__intel_fast_memcmp+123] [PC:0x264EDCF] [ADDR:0x8DFE65BE] [UNABLE_TO_READ] []
    Current SQL statement for this session:
    select inst_id,ksutmtim from x$ksutm
    Example 2
    ========
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [__intel_fast_memcmp+123] [PC:0x264EDCF] [ADDR:0x8D427140] [UNABLE_TO_READ] []
    Current SQL statement for this session:
    SELECT SPACE_USED FROM ( SELECT SUM(BYTES) SPACE_USED FROM SYS.DBA_DATA_FILES, SYS.TS$ WHERE TABLESPACE_NAME = NAME AND CONTENTS$ = 0 AND FLAGS != 17 ) S ORDER BY 1
    Example 3
    ========
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_ph2orf_regular_formals+1940] [PC:0x60C551D0] [ADDR:0x3C6DFCD4] [UNABLE_TO_READ] []
    Current SQL statement for this session:
    declare
    rc__ number;
    simple_list__ owa_util.vc_arr;
    complex_list__ owa_util.vc_arr;
    begin
    owa.init_cgi_env(:n__,:nm__,:v__);
    htp.HTBUF_LEN := 63;
    null;
    null;
    simple_list__(1) := 'sys.%';
    simple_list__(2) := 'dbms\_%';
    simple_list__(3) := 'utl\_%';
    simple_list__(4) := 'owa\_%';
    simple_list__(5) := 'owa.%';
    simple_list__(6) := 'htp.%';
    simple_list__(7) := 'htf.%';
    if ((wwv_flow_epg_include_modules.authorize('wwv_flow.accept') = false) or (owa_match.match_pattern(p_string =>
    'wwv_flow.accept'
    /* */,p_simple_pattern =>
    simple_list__
    ,p_complex_pattern =>
    complex_list__
    ,p_use_special_chars =>
    false)))
    then
    rc__ := 2;
    else
    null;
    null;
    wwv_flow.accept(p_flow_id=>:p_flow_id,p_flow_step_id=>:p_flow_step_id,p_instance=>:p_instance,p_page_submission_id=>:p_page_submission_id,p_request=>:p_request,p_arg_names=>:p_arg_names,p_t01=>:p_t01,p_t02=>:p_t02,p_t03=>:p_t03,p_t04=>:p_t04,p_t05=>:p_t05,p_t06=>:p_t06,p_t07=>:p_t07,p_t08=>:p_t08,p_t09=>:p_t09,p_t10=>:p_t10,p_t11=>:p_t11,p_t13=>:p_t13,p_t15=>:p_t15,p_t16=>:p_t16,p_t17=>:p_t17,p_t18=>:p_t18,f02=>:f02,f05=>:f05,f03=>:f03,f04=>:f04,f01=>:f01,fcs=>:fcs,f06=>:f06,p_md5_checksum=>:p_md5_checksum);
    if (wpg_docload.is_file_download) then
    rc__ := 1;
    wpg_docload.get_download_file(:doc_info);
    null;
    null;
    null;
    commit;
    else
    rc__ := 0;
    null;
    null;
    null;
    commit;
    owa.get_page(:data__,:ndata__);
    end if;
    end if;
    :rc__ := rc__;
    end;
    ksedmp: Obtaining call stack failed twice. not retrying

    check the arguments for ORA-7445 errors.
    7445 errors are internal you need to contact oracle support, and also for work around you can pass those arguments in *Troubleshoot an ORA-600 or ORA-7445 Error Using the Error Lookup Tool [ID 7445.1]*
    due to 7445 erros database was hung up/not responeded, so may be it is the reason for 3113 errors(inbound connection timeout)
    and post the value of sqlnet_authentication_services from sqlnet.ora file..
    Thanks

  • ORA-00942 error in simple stored proc

    Guys,
    I'm trying to learn to write some procedures in oracle and have started with the following;
    CREATE OR REPLACE PROCEDURE sp__who
    IS
    BEGIN
    FOR rec IN (SELECT s.SID, s.serial#, p.spid, s.osuser, s.program,
    s.status
    FROM v$process p, v$session s
    WHERE p.addr = s.paddr)
    LOOP
    DBMS_OUTPUT.put_line ('SID: ' || rec.SID);
    DBMS_OUTPUT.put_line ('Serial Nbr: ' || rec.serial);
    DBMS_OUTPUT.put_line ('SPID: ' || rec.spid);
    DBMS_OUTPUT.put_line ('OS User: ' || rec.osuser);
    DBMS_OUTPUT.put_line ('Program: ' || rec.program);
    DBMS_OUTPUT.put_line ('Status: ' || rec.status);
    DBMS_OUTPUT.put_line ('------------------------------');
    END LOOP;
    END sp__who;
    SHOW ERRORS;
    This is failing with a PL/SQL: ORA-00942: table or view does not exist - it seems to be complaining about v$session and v$process - I do have access to these as I can run the select by itself fine...
    Any ideas why?
    Also, can anyone suggest a good website for learning PL/SQL and oracle procedure writing?
    Cheers!
    Pete

    I'm a DBA (Sybase / SQL Server DBA!) and I'm learning to support oracle instances in my current role.
    The stored procedure will be used to extract a list of users active or otherwise in the database... Ideally giving enough information to make decisions easier when it comes to killing processes, etc. Replicating in part, the sybase equivalent stored procedures. (long term plan will be to recreate all the sybase sp_ procedures in oracle)
    What's written so far is obviously very basic and will need further enhancements to make it useful as intended - but having zero experience of writing procs in Oracle I thought it best to start with a simple select :-)

  • Security problem? (ORA-00942 error when creating procedure)

    First, in SQL*Plus connect as system user:
    SQL>connect system/oracle
    Then, create table proctest for user scott and insert records:
    SQL>create table scott.proctest ( name varchar2(10)) ;
    SQL>insert into scott.proctest values ( 'bigboy' ) ;
    SQL>select * from scott.proctest ;
    NAME
    bigboy
    Then, create procedure testproc for user system using table scott.proctest:
    SQL>CREATE OR REPLACE PROCEDURE testproc AS
    2 v_name VARCHAR2(10) ;
    3 BEGIN
    4 SELECT Name INTO v_name FROM scott.proctest WHERE rownum < 2 ;
    5 DBMS_OUTPUT.PUT_LINE( 'Name: ' || v_name ) ;
    6 END ;
    7 /
    Then, errs report:
    SQL>show err;
    LINE/COL ERROR
    4/2 PL/SQL: SQL
    4/2 PL/SQL: SQL Statement ignored
    4/37 PL/SQL: ORA-00942: Table or view does not exist
    Then, explicitly grant select privilege on proctest to system:
    SQL>grant select on scott.proctest to system ;
    And at this time compile the above precedure again, there's no errors.
    I have got some instruction that if a procedure wants to use some table,
    the owner of this procedure has to have corresponding privileges to use this table and
    these privileges have to be granted directly to the user. It doesn't work if
    the privileges are granted i.e. through roles.
    And in the example above the user has select on scott.proctest privilege but
    this privilege is granted through DBA role. So it doesn't work if
    I do not explicitly grant select privilege to system.
    My question is:
    Why does Oracle define this rule? Is it a kind of security consideration?

    Since stored procedures rely on privileges that are granted directly to the user, Oracle only needs to re-validate stored procedures when direct grants to the schema owner change. In general, the rate at which the privileges assigned to roles are changed is much higher than the rate at which privileges assigned to a particular user are changed, so this cuts down on on the cost of revalidating procedures.
    More importantly, Oracle roles can be assigned to users, but a user can also have non-default roles and password-protected roles. If Oracle allowed privileges through roles to affect the privileges of a stored procedure, handling these sorts of cases would be quite difficult and would result in far more confusion than in today's implementation.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Trying to change the Release/Debug connection string (ORACLE) of a VS13 Lightswitch project. Getting ORA-00942 error...

    Hello,
    i try to change the connection string of a Lightswitch 2013 project. I have a database for developers and a 'productive' database for releases. Both are similar (table names, entries etc..) and they are from ORACLE. First i attached the developer database
    as an external source. Everything works fine. Now I'm trying to change the connection string  whether my application is in a release state or in a developer state.
    I found a hint in the following question to solve that issue: Question
    from a LS-User 
    It is possible to change the connection string during the runtime. I tried it out and added to my DataBaseService.lsml.cs:
    partial void DataBase_InitializingConnection(DatabaseConnectionState state)
    state.ConnectionString = "DATA SOURCE=DB.productive;PASSWORD=password;PERSIST SECURITY INFO=True;USER ID=USER_PROD";
    Well, Lightswitch is using the new connection. But when i run the application, i am getting the error "ORA-00942: table or view does not exist". The views and tables definitely exist. The two schemas are the same. So what am i doing wrong?
    Regards from Munich

    HI Munich,
    Welcome to Lightswitch forum.
    According to your description above, you want to connect to external datasource in Lightswitch application.
    Oracle is not a supported data source for LightSwitch, it's recommended to use SQL Server database.
    If you want to change the connection string, you can update the connection string for a data source using the data source wizard. For example in VS2013: 
    Please let me know if there is anything that I can do to help.
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ORA-00942 Error when trying to deploy a mapping in Paris

    Hey all,
    I am encountering a "Table or view does not exist" and "SQL Statement Ignored" Error when I deploy a mapping. I have granted all the necessary privileges for each schema but still keep getting the errors, hence the deployment remains invalid. Any thoughts on why this is happening?
    The situation is I have created a mapping that maps data from an external table in the source module to a staging table in the staging module, and besides the regular column length and data type mismatch warning, the mapping is valid. The problem is not being able to deploy this mapping.
    Any feedback would be appreciated. Thanks.

    Did you register your target schema with the WB repository? I found that this happened to me sometimes when I forgot to do that.
    HTH,
    --oswaldo
    [osantos]

  • 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.

  • APEX 4.0 SQL ERROR -ORA-00942

    Hi, I'm new to APEX. I'm having some trouble getting the following which creates a view to execute. I keep getting the ora-00942 table or view does not exist when it reaches the code in bold. When i look at the objects in APEX and SQL Developer the table is right in front of me. Any insight as to why i'm getting this error?
    select ctt.firstname
    , ctt.lastname
    , ctt.contact_type
    , ads.address_type
    , ads.address_line1
    , ads.address_line2
    , ads.postcode
    , ads.city
    , ads.state
    , ads.country
    , aac.default_yn
    , ctt.id
    , ads.id
    from app_contacts ctt
    , app_addresses ads
    , app_ads_ctt aac
    where aac.ctt_id = ctt.id
    and aac.ads_id = ads.id
    The code is from a new book by Packt Publishing "APEX 4.0 Cookbook" which i'm using to get up to speed on APEX 4.0. I don't want to take any shortcuts. I'd really appreciate some help.
    Thanks

    Hi Ben,
    Here is the complete statement and i've indicated in bold where the error occurs. The problem area is enclosed in asterisks when encapsulated by
    create or replace view "APP_VW_CONTACTS" as
    select ctt.firstname
    , ctt.lastname
    , ctt.contact_type
    , ads.address_type
    , ads.address_line1
    , ads.address_line2
    , ads.postcode
    , ads.city
    , ads.state
    , ads.country
    , aac.default_yn
    , ctt.id
    , ads.id
    from app_contacts ctt
    , app_addresses ads
    , app_ads_ctt aac
    where aac.ctt_id = ctt.id
    and aac.ads_id = ads.id
    This code generates the ora-00942 error (table or view does not exist)  in SQL Developer and ora-00957 (duplicate column name) in APEX SQL WORKSHOP.
    Your code,SELECT * FROM user_tables WHERE LOWER(table_name) = 'app_ads_ctt';
    returns i row with a status of 'VALID' in SQL WORKSHOP.
    Edited by: 844466 on Mar 16, 2011 4:24 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • PL/SQL Exception for ORA-00942 - Table or view not found?

    Hey there!
    I want to create an exception my code runs into whenever it tries to select from a table that is not existent (or because of insufficient privileges).
    How can I get these ORA-00942 errors and place them into a exception? Except for WHEN OTHERS, that's not concrete enough.
    Regards,
    Thomas

    SQL> DECLARE
      2   table_not_found EXCEPTION;
      3   PRAGMA EXCEPTION_INIT(table_not_found, -942);
      4  BEGIN
      5   EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM DUALX';
      6  EXCEPTION
      7   WHEN table_not_found
      8   THEN
      9      dbms_output.put_line('Table NOT found');
    10  END;
    11  /
    Table NOT found

  • Create materialized view, ORA-00942

    I would like to create a materialized view on user scott@orcl for user colinsuper. User scott@orcl have
    "CREATE ANY MATERIALIZED VIEW" permissions. Why does I get an ORA-00942 error?
    Remote-Database: remote_orcl.world
    Remote-Database-User: lindasuper
    Remote-Database-Table: cars
    scott@orcl>create synonym cars for lindasuper.cars@remote_orcl.world
    2 /
    Synonym created.
    scott@orcl>select car_no cno, car_bez cbez from cars
      2  where rownum <= 1;
    cno   cbez
    3     32-mxl
    scott@orcl
    scott@orcl
    scott@orcl>CREATE MATERIALIZED VIEW colinsuper.CARS_MV
      2    TABLESPACE my_tablespace
      3    BUILD IMMEDIATE
      4    USING INDEX TABLESPACE my_idx
      5    REFRESH
      6       START WITH sysdate
      7       NEXT ROUND(SYSDATE)+5/24 
      8       WITH PRIMARY KEY
      9    ENABLE QUERY REWRITE
    10    AS
    11    SELECT car_no cno
    12           car_bez cbez
    13    FROM cars
    14  /
    CREATE MATERIALIZED VIEW colinsuper.CARS_MV
    FEHLER in Zeile 1:
    ORA-00942: Tabelle or View does not exist
    scott@orcl>
    scott@orcl>
    scott@orcl>When I am creating the materialized view without the user colinsuper, materialized view
    is creating without problems.
    scott@orcl>CREATE MATERIALIZED VIEW CARS_MV
      2    TABLESPACE my_tablespace
      3    BUILD IMMEDIATE
      4    USING INDEX TABLESPACE my_idx
      5    REFRESH
      6       START WITH sysdate
      7       NEXT ROUND(SYSDATE)+5/24 
      8       WITH PRIMARY KEY
      9    ENABLE QUERY REWRITE
    10    AS
    11    SELECT car_no cno
    12           car_bez cbez
    13    FROM cars
    14  /
    Materialized View wurde erstellt.
    scott@orcl>
    scott@orcl>I think there is somthing wrong with the permissions of colinsuper!?

    Is this colinsuper a user in the remote database.
    ORA-00942:     table or view does not exist
    Cause:     
    The table or view entered does not exist, a synonym that is not allowed here was used, or a view was referenced where a table is required. Existing user tables and views can be listed by querying the data dictionary. Certain privileges may be required to access the table. If an application returned this message, the table the application tried to access does not exist in the database, or the application does not have access to it.
    Action:     
    Check each of the following:
    the spelling of the table or view name.
    that a view is not specified where a table is required.
    that an existing table or view name exists.
    Contact the database administrator if the table needs to be created or if user or application privileges are required to access the table.
    Also, if attempting to access a table or view in another schema, make certain the correct schema is referenced and that access to the object is granted.

  • Intermittent Ora-06502

    Hi,
    We have an intermittent Ora -06502 Error arising from our packages on our webpages.
    We have trace files and log files. But the error is not always reproducable but keeps on returning with different users on different times.
    We have put debugging messages inside the packages but keep on coming up empty handed. We have logged trace files but they are no avail either.
    Any help would be very appreciated.
    THNX
    We use an 8.1.6 database on unix.
    Below is the details of the error:
    Request Failed
    We were unable to process your request at this time.
    Error occured while accessing
    "/cv_app/www/cdew600$vrmn.actionview"
    at Sun Aug 12 20:01:34 2001
    OWS-05101: Execution failed due to Oracle error 6502
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 5
    PL/SQL Cartridge SERVICE: newmonday/webappl
    PROCEDURE: cdew600$vrmn.actionview
    PARAMETERS:
    ===========
    P_CDE_ID:
    11110397
    P_L_RVE5_DESCRIPTION:
    P_L_RVE7_DESCRIPTION:
    125-140
    P_CURRENT_HOLIDAYS:
    39
    P_BNT_STR:
    P_DCE_STR:
    P_L_RVE2_DESCRIPTION:
    P_L_RVE4_DESCRIPTION:
    140-155
    O_CDE_LCN_ID:
    4
    O_CCT_CDE_ID:
    11110397
    O_HEADER:
    O_DESCTEXT:
    O_PROMPT1:
    O_CURRENT_CONTRACT_TYPE:
    O_CURRENT_SALARY:
    O_CURRENT_HOLIDAYS:
    O_ID_RVE_BNT:
    O_ID_BTN_BNT:
    O_BNT_STR:
    O_PROMPT2:
    O_DCE_STR:
    O_DSE_CDE_ID:
    11110397
    O_DESIRED_TERMS_OF_EMPL:
    O_DESIRED_SALARY:
    O_ID_DCE_DCE:
    O_ID_RVE_DCE:
    Z_ACTION:
    CLEAR
    Z_CHK:
    55704
    Please try again later
    null

    hi,
    thanks for the reply. And the answer is Yes. Reloading the cartridge solves the problem. But the problem starts re-ocurring after a while again when we didn't change any packages or plsql code.
    How can we solve this caching problem?
    thanks.
    help is urgently needed

  • ORA-00942 - Table or View

    Hi All,
    I have an odd scenario that could use your expertise. I normally administrate my 11g DB (11.1.0.7 on Redhat5 64bit) via DB control. Sometimes, I have the 10.2.0.2 client minimized on my xp desktop as well (I have both clients of my desktop 10.2.2 & 11.1.0.6) I use both to add users, modify roles, permissions, and whatever comes my way. The 11g database has been in production for 2 weeks. I like the 10.2.0 client becuase it is quicker and at times easier on the fingers. I noticed today that the SYSTEM account was locked (happened around 3pm) and I could normally use the 10.2.0.2 enterpise manager client to do things. Later this afternoon, if I click in the schema tab on my 10.2.0 enterprise manager client, I get an ORA- 00942 error message. I tried this as my DBA account and SYS, and same outcome. I used this option a few hours back. Other tabs work (SECURITY/USERS) but click on the SCHEMA tab and the error message pops up. Also click on Security/roles and same thing happens. So somehere, O lost my ability to view the schema and roles on the 10.2.0.2 enterprise manager. By the way, all this functionality works fine if I administrate through the dbcontrol (https://adtest:1158/em).
    What am I overlooking?
    Thanks,
    Rob

    Try running some query in your 10.2.2 EM client connection, e.g.,
    select * from dba_users;
    select user from dual;
    select * from session_privs;
    select * from session_roles;

Maybe you are looking for