Table or view does not exist when try it and the table access to the remote but database was OK before

Hello

With the help of 11.2.0.3

SQL that accesses, one table of remote database link remote db - fonctionnee during over a link db months readonly

The remote database table has been abandoned and then recreatde.

Is there some other step needed to allow access to the table in the remote database?

Thank you

You have lost your privs when the table was dropped.

Tags: Database

Similar Questions

  • ORA-00942 Table or view does not exist when you run a procedure

    Hello

    I have a procedure called FND_GLOBAL under a scheme called APPS and I have granted execute privilege on this procedure to another schema called CIVICA

    However when I run the procedure of the CIVIC scheme I get

    ORA-00942 Table or view does not exist
    ORA-06512 at APPS. FND_CORE_LOG, line 25
    ORA-06512 at APPS. FND_GLOBAL, line 104
    ORA-06512 at APPS. FND_GLOBAL, line 1620
    ORA-06512 at APPS. FND_GLOBAL, line 2171
    ORA-06512 at APPS. FND_GLOBAL, line 2313

    I'm guessing that some of the sub components must also be given to the CIVICA?

    How does work to define rights? Subcomponents should not also be accessible via this procedure being owner / defined by Apps but executed by CIVICA?

    Jim

    Hi, Jim,.

    Jim Thompson wrote:
    Sorry Frank - in order to clarify

    I wanted to CIVICA to be able to execute procedures and functions in applications. Package FND_GLOBAL

    However this package has been defined with the rights of the plaintiff - CIVICA must be explicitly object privilege to all objects used by the package (or packages of sub that he calls, that there are some - it is really a case to view the hierarchy of this package and ensure that each object is explicitly given to CIVICA)

    What do you mean by "explicitly granted to CIVICA"? ". Do you mean granted directly to CIVICA, and not a role that CIVICA has?
    Once more, the privileges granted to the roles are good enough for packages AUTHID CURRENT_USER (also known as the "rights of the applicant"). The only time where you have to say "GRANT."... CIVICA"is when granting a role to the CIVICA; all other privileges may be granted to this role, or some other roles that are granted to the role that CIVICA has.
    Mnight want to create a role that has all the necessary privileges to use the package and grant this role to users like CIVICA.

    ... So, it seems as if I have no choice but to get my pen and paper and trace through the nested packages and objects called by FND_GLOBAL and to ensure that they are explicitly granted to CIVICA! I hate days like these!

    CIVIA want to have all the privileges that has APPS? You can query dba_tab_privs (and oither views in the data dictionary) to find (and write statements of "GRANT... ("for) all these privileges.

    You can also create another packet (let's call it FND_GLOBAL_I) in applications with rights of the author. Specification of package would be identical to the specification of FND_GLOBAL package, except that it says FMD_GLOBAL_I instead of FND_GLOBAL. The FND_GLOBAL_I package body are very similar to the spec. The body of each procedure or function would simply be a call to the corresponding functuion in FND_GLOBAL. Since FND_GLOBAL has hundreds of procedures, it will be a lot of work, but perhaps less work than to find exactly what privileges are needed.

  • My speakers does not work when I talk on the phone but when I have my headphones or have the phone up to my ear people hear me perfectly fine, please help.

    My iphone does not work on audio speaker and everything is perfectly fine, but when I'm on the phone and put my phone on speaker, no one can hear me not at all, but when I have the phone to my ear, or have headphones in people can hear me very well. I don't think it's a software problem, that my phone is updated with ios 9.3.5. Can someone help me please on this issue.

    Force restart the phone now sleep and home for 10 seconds, button until the Apple logo comes back again. You won't lose data.

    Have you tried plugging the headphones into an output a few times?

    Does say "headphones" when you toggle the volume and no headphones attached?

    More tips here:

    If you hear no sound or distorted sound from your iPhone, iPad or iPod touch speaker - Apple Support

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

    I get currently getting an error when I try and insert into a table of a different pattern of my stored procedure:
    Error (20.22): PL/SQL: ORA-00942: table or view does not exist

    I am explicitly calling the table with the name of the schema that is infront

    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
    );

    Only, I get this error when I try to compile my stored procedure. If I try this insert not within a stored procedure (for example, an empty script) it works perfectly.

    Can someone tell me what Im doing wrong?

    Thank you.

    Hello

    Looks like you (the owner of the procedure) have privileges on that table only through a role.
    Roles do not count in the stored procedures created with AUTHID OWNER (which is the default).

    Or the other
    (1) user SAPSR3 have the privileges needed directly at you (or public), or
    (2) change the procedure so that it runs with the privileges of the caller, adding AUTHID CURRENT_USER after the list of arguments, but before the keyword IS (AS os) like this:

    CREATE OR REPLACE PROCEDURE     foo
    (     x     IN     NUMBER
    )
    AUTHID CURRENT_USER
    IS ...
    
  • ORA-00942: table or view does not exist in SOA

    Hello

    I created a composite that contains the Web service-> Ombudsman-> DBAdapter.

    This web service retrieves the data from the database on the basis of the comments. The composite is compiled.

    But on the tests, I make the following mistake:

    env:Server < faultcode > < / faultcode >

    < faultstring > Exception occurred when the link was invoked.

    Exception occurred during invocation of the JCA binding: "JCA binding run operations reference 'DB_getSelect' have to: DBReadInteractionSpec Execute Failed Exception."

    Name of the query: [DB_getSelect], name of the descriptor: [DB_get. MdsPaths].

    Caused by java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    .

    See the first exception for the specific exception.  This exception is considered as reproducible, probably due to a communication failure.  To be classified as not reproducible instead, add nonRetriableErrorCodes property to "942" deployment descriptor (i.e. weblogic - RA.Xml).  Auto retry a reproducible fault set composite.xml for this invoke these properties: jca.retry.interval, jca.retry.count and jca.retry.backoff.  All properties are integers.

    ".

    The called JCA adapter threw an exception of resource.

    Please examine the error message above carefully to determine a resolution. < / faultstring >

    < faultactor / >

    < detail >

    < exception > ORA-00942: table or view does not exist < / exception >

    I checked my DB Adapter Configuration. Its quite well. Please answer if you hava a solution.

    Thank you

    Hi AnatoliAtanasov,

    Thanks for the response to the stupid question.

    (a) Yes, I have the table created in the database.

    (b) the Data Source connection points to the correct schema.

    (c) Yes. The source is configured with a pool of outbound connections.

    (d) and I have re-deployed the adapter.

    Thank you

    Tanay

  • Fail to load the ODI - ODI-17517: error in the interpretation of the task. ORA-00942: table or view does not exist

    Hi all

    Try to run the loads on the test environment and faced this exception. Guidance on what could be the cause?

    A functioning test environment code development. All models have been migrated using the synonym and the project had to be imported using Mode Duplication.

    The project had two dimension and makes loads... Dimensions has been properly run, its only that all the facts are a failure...

    ODI-1217: CM_PKG_CF_TEST Session (1494702) fails with return code 7000.

    Caused by: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: error in the interpretation of the task.

    Task: 6

    java.lang.Exception: the application script threw an exception: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    OSB Info: get the joining to the line level columns: column 0: columnNo

    at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:485)

    at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:711)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1889)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ 2.doAction(StartScenRequestProcessor.java:580)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:513)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ StartScenTask.doExecute (StartScenRequestProcessor.java:1066)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:682)

    Caused by: org.apache.bsf.BSFException: the application script threw an exception: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    OSB Info: get the joining to the line level columns: column 0: columnNo

    at bsh.util.BeanShellBSFEngine.eval (unknown Source)

    at bsh.util.BeanShellBSFEngine.exec (unknown Source)

    at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)

    ... 11 more

    -< code printed here >-

    at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:738)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1889)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ 2.doAction(StartScenRequestProcessor.java:580)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:513)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ StartScenTask.doExecute (StartScenRequestProcessor.java:1066)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:682)

    An analysis more thrust, found that Repo work had no appropriate grants.

    After adding, it solved the problem.

  • Table or view does not exist

    Hi all

    I'm on banner

    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    PL/SQL Release 11.2.0.4.0 - Production
    CORE 11.2.0.4.0 Production
    TNS for Linux: Version 11.2.0.4.0 - Production
    NLSRTL Version 11.2.0.4.0 - Production
    

    My OraDB database has 5 patterns,

    S1, S2, S3, S4, S5

    Where S1 a table T1 that select grant is given to the schema of S2, S3 and S4.

    Where as drawing S5 has grant SELECT ANY TABLE.

    I had a scenario where I am compiling or using (immediate execution) to the scheme of access Table T1 of S1.

    But I got error in the Table or view exists doensn can't.

    So what I've done to check if the syntax is correct, I printed SQL_Variable that holds the query before his execution in EXECUTE IMMEDIATE.

    This SQL execute print find a TOAD or SQLPLUS, but when the same variable is running inside EXECUTE IMMEDIATE I get error

    Table or view does not exist.

    To keep the overlap on this, I ran

    SQL executed: {code} select column_name from S1. T1 {code} in TOAD and SQLPLUS, it ran successfully, but when I placed it inside the package it threw error table or view does not exist.


    Grant you permissions to T1 through a role?

    Roles are not active during run immediately or stored procedures.

  • Procedure compilation error: Table or view does not exist

    I have privilege granted to me on some tables, SELECTION that I found thanks to view user_tab_privs.

    Now, I wrote a stored procedure that attempts to insert into a table that I created with the data of a query based on joins on tables, sure I have the right to SELECT.

    But when I compile my inside, it shows errors:

    • PL/SQL: ORA-00942: table or view does not exist

    What could be the problem?  Were breaking my head.

    Can someone help me please?

    (

    I found ask Tom & amp; quot; Procedures, roles and grant & amp; quot; that questioning the view of user_tab_privs with the DEALER = < me > gives the list of the privileges that have been granted directly to the me.

    If this is the case, I seem to have DIRECT subsidies on the tables, I've used in my procedure.

    Where is my confusion).

    **************************************CODE*********************

    CREATE OR REPLACE PROCEDURE USAGE_MODULE_INSERT
    IS
    CURSOR C1
    IS
    SELECT CALL_KEY IN THE DUMMY_DATE;

    VDATE_KEY C1. TYPE % CALL_KEY;

    BEGIN
    OPEN C1;
    LOOP
    FETCH C1 IN VDATE_KEY;
    WHEN EXIT C1% NOTFOUND;

    INSERT INTO TABLE_USAGE_MODULE (VNUMBER, START_DATE_KEY, POSTPAID_ACC_FLAG, DES_NWK_NAME, ONOFF_KEY, TEMPS_REEL, CHARGED_TIME, CHARGED_VOLUME, CALLS)
    (
    SELECT THE PDF FILE. VNUMBER,
    C_USG. START_DATE_KEY,
    C_USG. POSTPAID_ACC_FLAG,
    DES_NWK. DES_NWK_NAME,
    ONNET_OFFNET. ONOFF_KEY,
    SUM (C_USG. TEMPS_REEL),
    SUM (C_USG. CHARGED_TIME),
    SUM (C_USG. CHARGED_VOLUME),
    COUNT (CASE WHEN C_USG. TYPE_KEY = 15 THEN 1 0 OTHERWISE END)
    OF AM_WHM. CAL_USG C_USG
    JOIN INTERNAL AM_WHM. DES_NETWORK DES_NWK
    ON DES_NWK. DES_NWK_KEY = C_USG. DES_NWK_KEY
    JOIN INTERNAL AM_WHM. D_L_NUMBER PDF
    THE SUBJECT OF THE PDF FORMAT. L_NUMBER_KEY = C_USG. L_NUMBER_KEY
    WHERE C_USG. START_DATE_KEY = VDATE_KEY
    GROUP OF PDF. VNUMBER, C_USG. START_DATE_KEY, C_USG. POSTPAID_ACC_FLAG, DES_NWK. DES_NWK_NAME, ONNET_OFFNET. ONOFF_KEY

    );

    END LOOP;
    CLOSE C1;

    END;

    Note: Mark USER_TAB_PRIVS with the DEALER = < > says that I have the privilege of SELECT on all tables that I used in my procedure.

    Mark USER_SYS_PRIVS shows a single line like "UNLIMITED TABLESPACE"

    ******************************************************

    Post edited by: 3cd7ad85-b56c-4a9c-ae91-83be047aac2c Code of procedure included which gives a compile error

    In order to access the table in a procedure, select must have been granted to the user directly and not through a role.

  • error in the table of boat or view does not exist, but on query sql prompt works

    Hello
    Can someone help me understand the error ORA-00942: table or view does not exist when compiling the package on Oracle 9.2.0.4.0

    The below package compiled in the use of the system and trying some queries against the view v$ session_wait however getting error below.

    PACKAGE OF THE BODY SYSTEM. PK_DB_ALERT
    Online: 212
    PL/SQL: ORA-00942: table or view does not exist

    I can run the same query mentioned below sql prompt the user of the system, and it works very well however he dislikes package, please advice, thank you in advance.


    SELECT SID, seq #, event, wait_time
    V $ session_wait
    WHERE event NOT LIKE ' SQL * Net %' AND wait_time <>0
    ORDER BY 2

    DDD says:
    Hello
    Can someone help me understand the error ORA-00942: table or view does not exist when compiling the package on Oracle 9.2.0.4.0

    That means package owner is granted select view not directly, but through roles. However, the roles are ignored by stored rights define or packages stored procedures or functions/triggers... You must grant select owner directly the view package.

    SY.

    Published by: Solomon Yakobson, January 21, 2010 04:06

  • table or view does not exist error when you try to generate tables of database online.

    Hello

    I use Jdeveloper 12 c and is trying to generate tables of a database in offline mode, I created, for a connection of database online. The error message that appears is:

    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist.

    More information:

    The database I use is Oracle11g Database Release 2. And I get a warning saying that the 12 c functionality will be lost when generating an 11 g database.

    In addition, the problem occurs only when I have foreign key constraints in my table. All the other tables that have no foreign key constraints generates very well.

    Any ideas why this happens?

    Thank you!

    Instead of directly generating the DB, generate a sql script. Then, you see the generated statement and can run the script using a db sql worksheet.

    If you get the error, you can view the script here.

    Timo

  • table does not exist (when I try to compile the package)

    Hi all

    I can choose from table1 using simple script.

    But when I try to compile the package with select from it table1 I get the message:

    PL/SQL: ORA-00942: table or view does not exist

    Please help me understand how this is possible.

    What additional information should I place them here for you to help me?

    Thanks in advance.

    UPD: The object name is SYS. V_$ PROCESS

    I choose him by using script, so I need all grants.

    But what is the problem when I try to do in the package?

    2788367 wrote:

    Hi all

    I can choose from table1 using simple script.

    But when I try to compile the package with select from it table1 I get the message:

    PL/SQL: ORA-00942: table or view does not exist

    Please help me understand how this is possible.

    What additional information should I place them here for you to help me?

    Thanks in advance.

    It is very likely that you've got access to the table via a role. This allows you to use SQL to access.

    With packages, the grant must be directly to your schema, bypassing a role.

  • Director of BI error when updating Rowcount: table or view does not exist

    I use BI administrator 11g. After you create a new repository and import of metadata, I brought the physical model in the MDB layer. When I tried to update the number of lines for tables in the physical layer, I get:

    There was an error while updating the number of lines for '< instance >'... "" schema of <>. "' < tablename > '.
    [17011 nQSError] Execution of the SQL statement failed.
    [nQSError 17001] Oracle 942 error code, message: ORA-00942: table or view does not exist to the call of the OIC OCIStmtExecute: select count (*) < TableName >.

    I created the connection during the import process pool and tables have been found at the time. But once the import is complete I never update rank leaders. I have access to all the tables in question via the user account in the connection pool.

    Anyone have any ideas?

    Thank you
    Ken

    You must check "require fully qualified name checkbox in the connection pool properties. This is necessary when you use the username not owner to access the images database.

  • ORA-01092: ORACLE instance is complete. Forced logoff ORA-00942: table or view does not exist on the 12 c CARS

    Hey Geeks,

    I met a problem when starting my 12 c RAC database.

    To mount it fine, but when I try to open, he throws me an error.

    System Global area 1.5400E + 10 bytes

    Bytes of size 4737560 fixed

    2952791528 variable size bytes

    1.2415E + 10 bytes database buffers

    Redo buffers 26857472 bytes

    Mounted database.

    SQL > alter database open;

    change the database open

    *

    ERROR on line 1:

    ORA-01092: ORACLE instance is complete. Disconnection forced

    ORA-00942: table or view does not exist

    Process ID: 11338068

    Session ID: 1429: No.3

    Here is the output of the trace file...

    ORACLE_HOME = / oracle_home/app/orahome

    Name of the system: AIX

    Name of the node: INS1

    Version: 1

    Version: 7

    Machine: 00C8CCA74C00

    Instance name: INST1

    Redo thread mounted by this instance: 1

    Oracle process number: 7

    The Unix process PID: 20381876, image: oracle@ins1 (TNS V1 - V3)

    2014-11-27 22:49:20.892

    SESSION ID: (197.5) 2014-11-27 22:49:20.892

    CUSTOMER ID :() 2014-11-27 22:49:20.892

    NAME OF THE SERVICE :() 2014-11-27 22:49:20.892

    NAME of the MODULE: (sqlplus@ins1 (TNS V1 - V3)) 22:49:20.892 2014-11-27

    ACTION NAME :() 2014-11-27 22:49:20.892

    2014-11-27 22:49:20.889716: start the recovery of field = 0, valid = 0, flags = 0 x 4

    2014-11-27 22:49:24.580

    Awarded with 32 slaves of recovery success

    With the help of 3 buffers overflow by slave of recovery

    2014-11-27 22:49:24.740

    1 post of thread: logseq 15, block 2, CHN 3510749

    cache-bass rba: logseq 15, block 3

    RBA on disk: logseq 15, block 72, RCS 3510824

    Start the recovery at logseq 15, block 3, Yvert 0

    2014-11-27 22:49:24.981

    Started the resilvering redo thread 1 seq 15 blocks 72-73

    2014-11-27 22:49:24.994

    Finished resilvering redo thread 1 seq 15

    2014-11-27 22:49:24.994

    Started writing zeroblks thread 1 seq 15 blocks 74-81

    2014-11-27 22:49:24.994

    Completed written zeroblks thread 1 seq 15

    = Redo read statistics for thread 1 =.

    Total physical reads (from disk and memory): 4096 KB

    -Redo read_disk - statistics

    Read rate (ASYNC): 35KO in 0,25 s = > 0.14 Mb / s

    Long: 0 Ko, moves: 0/104 (0%)

    Longer LWN: 2 k, moves: 0/33 (0%), moved: 0 MB

    Redo last scn: 0x0000.0035922b (3510827)

    ----------------------------------------------

    -Recovery Hash Table statistics

    Hash table buckets = 262144

    More long string hash = 1

    Hash string average = 25/25 = 1.0

    Max compares by lookup = 1

    AVG compares by lookup = 151/176 = 0.9

    ----------------------------------------------

    2014-11-27 22:49:25.007

    KCRA: start the debt for 25 blocks of data collection

    2014-11-27 22:49:25.039

    KCRA: treated blocks = 25/25, has claimed = 25, eliminated = 0

    2014-11-27 22:49:25.054

    Online Redo Log recovery: thread 1 mem Group 6 Seq 15 reading 0

    2014-11-27 22:49:25.060

    Ask again filled with 0.02 MB

    2014-11-27 22:49:25.235

    Control of completed recovery point

    -Recovery Hash Table statistics

    Hash table buckets = 262144

    More long string hash = 1

    Hash string average = 25/25 = 1.0

    Max compares by lookup = 1

    AVG compares by lookup = 176/176 = 1.0

    ----------------------------------------------

    Recovery thread nab 1 seq 15 to 74 with 8 zeroblks sets

    2014-11-27 22:49:26.000

    2014-11-27 22:49:26.000433: validate the domain 0

    2014-11-27 22:49:26.001348: valid domain 0, flags = 0x0

    2014-11-27 22:49:28.315

    County ofsmtab$: 0 entries

    2014-11-27 22:49:28.732

    ORA-00942: table or view does not exist

    ORA-00942: table or view does not exist

    2014-11-27 22:49:28.738

    USER (ospid: 20381876): put an end to litigation because of the 942 error

    In my case, the problem solved by running the following...

    GRANT SELECT on SYS. The USER$ in XDB.
    GRANT SELECT on SYS. The USER$ in CTXSYS.
    GRANT SELECT on SYS. The USER$ to DVSYS;
    GRANT SELECT on SYS. The USER$ to LBACSYS.
    GRANT SELECT on SYS. The USER$ to APEX_040200;
    GRANT SELECT on SYS. The USER$ to DV_SECANALYST;

    See the screenshot above.

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

    We use the database to Oracle 10 g on Linux platform.

    When executing the following code, I get the following error:
    DECLARE
       v_result   NUMBER := NULL;
    BEGIN
       SELECT 1
         INTO v_result
         FROM ALL_TABLES
        WHERE TABLE_NAME = 'ERROR_AUDIT' AND OWNER = 'TEST_OWNER';
    
        DELETE FROM error_audit;
        COMMIT;
    Exception when no_data_found then 
          EXECUTE IMMEDIATE ('CREATE TABLE error_audit
                              (
                                 SID NUMBER NOT NULL,
                                 ID NUMBER NOT NULL,
                                 ora_number VARCHAR2(30 CHAR),
                                 description VARCHAR2(1000 CHAR),
                                 status VARCHAR2(1 CHAR),
                                 created_by_user VARCHAR2(30 CHAR),
                                 created_on_date DATE,
                                 modified_by_user VARCHAR2(30 CHAR),
                                 modified_on_date DATE,
                                 remarks VARCHAR2(2000 CHAR)
                              )'
                            );
    END;
    /
    Error:
        DELETE FROM error_audit;
                    *
    ERROR at line 9:
    ORA-06550: line 9, column 17:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 9, column 5:
    PL/SQL: SQL Statement ignored
    But if I comment out the Delete statement, and the code works correctly.
    --DELETE FROM error_audit;
    I don't understand the reason for this error. Kindly help.

    Your code will be get compiled before running...

    You can try the code below... But what is your real need?

    DECLARE
       v_result   NUMBER := NULL;
    BEGIN
       SELECT 1
         INTO v_result
         FROM ALL_TABLES
        WHERE TABLE_NAME = 'ERROR_AUDIT' AND OWNER = 'TEST_OWNER';
    
         EXECUTE IMMEDIATE 'DELETE FROM error_audit';
        COMMIT;
    Exception when no_data_found then
          EXECUTE IMMEDIATE ('CREATE TABLE error_audit
                              (
                                 SID NUMBER NOT NULL,
                                 ID NUMBER NOT NULL,
                                 ora_number VARCHAR2(30 CHAR),
                                 description VARCHAR2(1000 CHAR),
                                 status VARCHAR2(1 CHAR),
                                 created_by_user VARCHAR2(30 CHAR),
                                 created_on_date DATE,
                                 modified_by_user VARCHAR2(30 CHAR),
                                 modified_on_date DATE,
                                 remarks VARCHAR2(2000 CHAR)
                              )'
                            );
    END;
    / 
    

    Published by: JAC on Sep 4, 2012 11:39

  • 30002 error/ORA-00942 table or view does not exist

    Hello

    We are running on a Windows 2008 R2 machine RoboServer 9 with Tomcat 7. The database, that we strive to connect is an Oracle 11 g on a Linux x86_64 host server. I connect using the Oracle through ODBC drivers. When I click "test connection" of the ODBC Administrator or application configuration, I get the message 'successful connection '. That is the problem.

    When you try to run our reports, especially "Frequently consulted CSH" or "Frequently viewed Topics", we get the following error.

    Error..JPG

    Check the localhost.log in Tomcat, we get this:

    Journal of the org.apache.catalina.core.ApplicationContext 10:37:41 28 March 2013

    SEVERE: java.sql.SQLException: [Oracle] [ODBC] [Ora] ORA-00942: table or view does not exist

    java.sql.SQLException: [Oracle] [ODBC] [Ora] ORA-00942: table or view does not exist

    at sun.jdbc.odbc.JdbcOdbc.createSQLException (unknown Source)

    at sun.jdbc.odbc.JdbcOdbc.standardError (unknown Source)

    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect (unknown Source)

    at sun.jdbc.odbc.JdbcOdbcStatement.execute (unknown Source)

    at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery (unknown Source)

    at adobe.robohelp.server.FlexReports.AreasReqHelpReport.SetData(AreasReqHelpReport.java:84)

    at adobe.robohelp.server.FlexReports.Report.ProcessReport(Report.java:295)

    at adobe.robohelp.server.ReportManager.doCommand(ReportManager.java:395)

    at adobe.robohelp.server.RoboHelpServer.doGet(RoboHelpServer.java:144)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.j ava: 290)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

    at org.apache.coyote.http11.Http11Protocol$ Http11ConnectionHandler.process (Http11Protocol.ja goes: 602)

    to org.apache.tomcat.util.net.JIoEndpoint$ Worker.run (JIoEndpoint.java:489)

    at java.lang.Thread.run (unknown Source)

    Looks like all tables exist in the database - this is what we have:

    TEST:

    ROBOTST4 > select object_name from dba_objects where type_objet = 'TABLE' and owner = 'MCVICKER;

    OBJECT_NAME

    --------------------------------------------------------------------------------

    TACTIONTYPE

    TERRORTYPE

    THELPPROJECT

    THELPSPACEERROR

    TUSER

    TPROBLEM

    TSOLUTIONACTION

    THELPTOPICS

    TUSERPREFS

    TSETTING

    TSESSION

    TACCESSTYPE

    TROBOGROUPS

    TROBOUSER

    TROBOUSERGROUPS

    TLDAPUSERGROUPS

    TGROUPPERMISSIONS

    TLDAPGROUPS

    TCOMMENTS

    TDELETEDCOMMENTS

    TUSERTOPICRATING

    TAVGTOPICRATING

    22 selected lines.


    I think that we have set. Here's the deal.

    For some reason, the database put in place all the tables but not views initially. My DBA views manually created using definitions of the included database. In Access, if you go in queries, then right-click on the table, select "design mode".  Right-click on the design mode, select "SQL Mode" and you can view the SQL statements used to define the view.  You should see something like this:

    She has slightly modified the - here's what she created:

    Created to MCVICKER's point of view in ROBOTST.

    create or replace view mcvicker. VSolutionAction

    SELECT

    TSolutionAction.sa_SolutionActionID,

    TSolutionAction.sa_Time,

    TSolutionAction.se_SessionID,

    TSolutionAction.pb_ProblemID,

    TSolutionAction.sq_SequenceID,

    TSolutionAction.hp_HelpProjectID,

    TSolutionAction.at_ActionTypeID,

    TSolutionAction.sa_SortData,

    LTRIM(sa_DisplayName,255) AS sa_GroupDisplayName,

    -Left $([sa_DisplayName],255) AS sa_GroupDisplayName,

    TSolutionAction.sa_DisplayName,

    TSolutionAction.sa_NumericData,

    LTRIM(sa_StringData,255) AS sa_GroupStringData,

    -Left $([sa_StringData],255) AS sa_GroupStringData,

    TSolutionAction.sa_StringData,

    TSolutionAction.sa_ExtraData,

    TSolutionAction.sa_ProblemSolved,

    TSolutionAction.ha_AreaName

    OF TSolutionAction;

    create or replace view mcvicker. VHelpProject

    as

    SELECT

    THelpProject.hp_HelpProjectID,

    LTRIM(hp_Name,255) AS hp_GroupName,

    -Left $([hp_Name],255) AS hp_GroupName,

    THelpProject.hp_Name,

    THelpProject.ha_AreaName

    OF mcvicker. THelpProject;

    create or replace view mcvicker. VProblem

    as

    SELECT

    TProblem.pb_ProblemID,

    TProblem.se_SessionID,

    TProblem.pb_InitiationTime,

    LTRIM(pb_ReferringURL,255) AS pb_GroupReferringURL,

    -Left $([pb_ReferringURL],255) AS pb_GroupReferringURL,

    TProblem.pb_ReferringURL,

    LTRIM(pb_ReferringParams,255) AS pb_GroupReferringParams,

    -Left $([pb_ReferringParams],255) AS pb_GroupReferringParams,

    TProblem.pb_ReferringParams,

    LTRIM(pb_RequestedTopic,255) AS pb_GroupRequestedTopic,

    -Left $([pb_RequestedTopic],255) AS pb_GroupRequestedTopic,

    TProblem.pb_RequestedTopic,

    TProblem.pb_ExternTransactionID,

    TProblem.pb_ExternUserID,

    TProblem.pb_AppData,

    TProblem.pb_ProblemSolved,

    TProblem.ha_AreaName

    OF mcvicker. TProblem;

    I hope this helps someone.

    My questions are pending: what the app actually creates tables and views? This work to restart tomcat? According to a timetable? It seems that when I set up the connection and leave the things the next day they work. Is there some sort of scheduled task that the database maintenance? Can we make it a little more transparent in future versions?

    Thank you.

Maybe you are looking for

  • Apple TV freezing issues from iTunes and Apple TV update

    Hello since update to iTunes 12.3.3.17 and the latest version of the Apple TV, 9.2 I get intermittent video freezes when you view the contents of my iTunes library.  Both the Apple Tv and the iMac on that content is are connected by ethernet cables t

  • Unable to connect on the Microsoft account using computer

    Hi all Assistance required mentioned above mentioned the issue. I'm unable to login when I use desktop but the password works fine when I use other media. Can someone help me

  • file extension for the monitor color correction

    I'm trying to manage the colors on my screen.  I understand that somewhere in XP there is a set of specifications for the color corrections.  No one knows what it is and how to manipulate.  It is important to show some images simulated for vision.

  • Where can I find support for watching streaming videos of Microsoft training?

    I try to watch videos from office.microsoft.com training when using Silverlight to stream.  I get an error message stating "the video could not be displayed" whenever I launch the video link below while behind a corporate firewall.  Do we need to for

  • How to connect the mobile device for windows 7

    I am new to Windows 7. I have a mobile device that runs Windows CE and connects via a serial cable. In earlier versions of windows, I could just install activesync on my desktop PC, click on connect on my mobile device and it could connect and visibl