Error with Sun App. Server 9...table or view does not exist..

I am not sure where to post this but here it is:
I am using Sun App. Server 9 along with a XE database...I use two schemas in my web app but on the first I get ORA error -table or view does not exist from SAS ,although it exists..the second works fine...
Q: I cannot use 2 simultaneous connection with XE? or what seams to be the problem...
PS: I also experimented randomly a oracle.toplink error that my Persistance Unit was unable to connect

two PU's
two Database Connections (in fact jsf pages ware generate based on entity classes-witch ware made using the connection)
two schemas: HR and CONTA
On a second thought I think somehow you're right ...it must be some connection error regarding the schema used...
I'll look into it...but later...
Florin POP

Similar Messages

  • Error while deploy mapping ora-06550 table or view does not exist

    Hi everyone,
    i have a target source 'U_BCK' that cointains some Oracle table.
    I have also created a target schema 'BCK_OWNER' where i create some dimensions and cubes with mappings.
    My mappings connect some table from U_BCK with dimension or cube from BCK_OWNER.
    My repository owner is called 'rep_owner' and i used this user to create every metadata.
    Now i'm trying to deploy, and i don't have any problem until deploying mappings. When i try to deploy mappings i get some errors like ora-06550,ora-00942 table or view does not exist and statement ignored.
    Please help me and sorry for my english...
    Thanks,
    Alex.

    The mapping, that drives the data from one table to another is deployed to the database as a PL/SQL package. When deploying your mapping fails, it most often means that the resulting PL/SQL package doesn't compile in the database.
    Using Oracle SQL Developer (or Toad, SQL Navigator or any other tool) connect to the schema on the database where you have deployed the mapping. Open the pl/sql package and compile it. That should show you the place where the compilation fails, and give you an idea as to what table it can not find. Otherwise, in SQLPLUS, you can simply give the following command:
    ALTER PACKAGE THE_PACKAGE_NAME_GOES_HERE compile body;
    show errors;
    As the database user who owns the source tables, make sure to issue a GRANT command for each of the source tables, granting SELECT access to the database user who owns the mapping:
    grant select on TABLENAME to TARGETSCHEMA.
    hope this helps
    Borkur

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

  • 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 in Upload file-table or view does not exist-wwv_flow_file_objects$

    Hi,
    i am trying to upload a file and then store the contents of the file into one of my tables in the schema.I wrote one package for uploading the file and then a process to insert each record in the uploaded file to the table in my schema.When i try compiling the package it gives an error.
    PL/SQL: ORA-00942: table or view does not exist
    The name of the table is wwv_flow_file_objects$
    The package is as follows-
    CREATE OR REPLACE PACKAGE BODY Text_File_Pkg AS
    FUNCTION get_file_lines (
    p_file_name IN VARCHAR2,
    p_lines IN OUT line_tab_type,
    p_rec_sep IN VARCHAR2 DEFAULT dos_new_line
    ) RETURN INTEGER
    IS
    v_binary_file BLOB;
    v_text_file CLOB;
    v_dest_offset INTEGER := 1;
    v_src_offset INTEGER := 1;
    v_lang_context INTEGER := DBMS_LOB.default_lang_ctx;
    v_warning INTEGER;
    v_rec_sep_len CONSTANT INTEGER := LENGTH(p_rec_sep);
    v_start_pos INTEGER := 1;
    v_end_pos INTEGER := 1;
    v_line_num INTEGER := 1;
    v_file_length INTEGER;
    BEGIN
    IF p_file_name IS NULL
    THEN
    RETURN 1;
    END IF;
    IF p_rec_sep IS NULL
    THEN
    RETURN 2;
    END IF;
    SELECT blob_content
    INTO v_binary_file
    FROM wwv_flow_file_objects$
    WHERE NAME = p_file_name
    AND (mime_type = 'text/plain' OR mime_type = 'application/octet-stream')
    AND doc_size > 0;
    DBMS_LOB.createtemporary(v_text_file, TRUE);
    DBMS_LOB.converttoclob(v_text_file, v_binary_file,
    DBMS_LOB.lobmaxsize, v_dest_offset,
    v_src_offset, DBMS_LOB.default_csid,
    v_lang_context, v_warning);
    IF v_warning = DBMS_LOB.warn_inconvertible_char
    THEN
    -- Unable to convert file.
    RETURN 3;
    END IF;
    v_file_length := DBMS_LOB.getlength(v_text_file);
    LOOP
    EXIT WHEN v_start_pos > v_file_length;
    v_end_pos := DBMS_LOB.INSTR(v_text_file, p_rec_sep, v_start_pos);
    IF v_end_pos = 0
    THEN
    v_end_pos := v_file_length + 1;
    END IF;
    IF (v_end_pos - v_start_pos) > 4000
    THEN
    -- Line exceeds 4000 characters.
    RETURN 4;
    END IF;
    p_lines(v_line_num) := DBMS_LOB.SUBSTR(v_text_file, v_end_pos - v_start_pos, v_start_pos);
    v_line_num := v_line_num + 1;
    v_start_pos := v_end_pos + v_rec_sep_len;
    END LOOP;
    RETURN 0;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    RETURN 5;
    END get_file_lines;
    END Text_File_Pkg;
    Any suggestions.
    Many Thanks,
    Sanjai

    Hi,
    i am trying to upload a file and then store the contents of the file into one of my tables in the schema.I wrote one package for uploading the file and then a process to insert each record in the uploaded file to the table in my schema.When i try compiling the package it gives an error.
    PL/SQL: ORA-00942: table or view does not exist
    The name of the table is wwv_flow_file_objects$
    The package is as follows-
    CREATE OR REPLACE PACKAGE BODY Text_File_Pkg AS
    FUNCTION get_file_lines (
    p_file_name IN VARCHAR2,
    p_lines IN OUT line_tab_type,
    p_rec_sep IN VARCHAR2 DEFAULT dos_new_line
    ) RETURN INTEGER
    IS
    v_binary_file BLOB;
    v_text_file CLOB;
    v_dest_offset INTEGER := 1;
    v_src_offset INTEGER := 1;
    v_lang_context INTEGER := DBMS_LOB.default_lang_ctx;
    v_warning INTEGER;
    v_rec_sep_len CONSTANT INTEGER := LENGTH(p_rec_sep);
    v_start_pos INTEGER := 1;
    v_end_pos INTEGER := 1;
    v_line_num INTEGER := 1;
    v_file_length INTEGER;
    BEGIN
    IF p_file_name IS NULL
    THEN
    RETURN 1;
    END IF;
    IF p_rec_sep IS NULL
    THEN
    RETURN 2;
    END IF;
    SELECT blob_content
    INTO v_binary_file
    FROM wwv_flow_file_objects$
    WHERE NAME = p_file_name
    AND (mime_type = 'text/plain' OR mime_type = 'application/octet-stream')
    AND doc_size > 0;
    DBMS_LOB.createtemporary(v_text_file, TRUE);
    DBMS_LOB.converttoclob(v_text_file, v_binary_file,
    DBMS_LOB.lobmaxsize, v_dest_offset,
    v_src_offset, DBMS_LOB.default_csid,
    v_lang_context, v_warning);
    IF v_warning = DBMS_LOB.warn_inconvertible_char
    THEN
    -- Unable to convert file.
    RETURN 3;
    END IF;
    v_file_length := DBMS_LOB.getlength(v_text_file);
    LOOP
    EXIT WHEN v_start_pos > v_file_length;
    v_end_pos := DBMS_LOB.INSTR(v_text_file, p_rec_sep, v_start_pos);
    IF v_end_pos = 0
    THEN
    v_end_pos := v_file_length + 1;
    END IF;
    IF (v_end_pos - v_start_pos) > 4000
    THEN
    -- Line exceeds 4000 characters.
    RETURN 4;
    END IF;
    p_lines(v_line_num) := DBMS_LOB.SUBSTR(v_text_file, v_end_pos - v_start_pos, v_start_pos);
    v_line_num := v_line_num + 1;
    v_start_pos := v_end_pos + v_rec_sep_len;
    END LOOP;
    RETURN 0;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    RETURN 5;
    END get_file_lines;
    END Text_File_Pkg;
    Any suggestions.
    Many Thanks,
    Sanjai

  • BI Administrator Error When Updating Rowcount: table or view does not exist

    I am using BI Administrator 11g. After creating a new repository and importing metadata, I brought the Physical model into the BMM layer. When I tried to update the rowcount for the tables in the physical layer, I get:
    There was an error while updating row count for "<instance>".."<schema>"."<tablename>"
    [nQSError 17011] SQL statement execution failed.
    [nQSError 17001] Oracle error code 942, message: ORA-00942: table or view does not exist at OCI call OCIStmtExecute: select count(*) from <tablename>.
    I created the connection pool during the import process and the tables were found at that time. But after the import is complete I can never update the row counts. I do have access to all the tables in question via the user account in the connection pool.
    Anyone have any ideas?
    Thanks,
    Ken

    You need to check "Require Fully Qualified Name check box in connection pool properties. This is needed when you are using non owner user name for accessing database shemas.

  • Problem creating a view in Administrator: 942: table or view does not exist

    Hi and thank you for reading,
    I am working with the Administration tool and would like to create a view in the physical layer. However I am getting the following error messages when I try to view the Date in the view:
    [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occured.
    [nQSError: 43093] An error occured while processing the EXECUTE PHYSICAL satement.
    *[nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist at OCI call OCIStmtExecute.*
    [nQSError: 17010] SQL statement preparation failed.
    [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occured.
    [nQSError: 43093] An error occured while processing the EXECUTE PHYSICAL satement.
    *[nQSError: 17001] Oracle Error code: 936, message: ORA-00936: missing expression at OCI call OCIStmtExecute.*
    [nQSError: 17010] SQL statement preparation failed.
    I proceed as following:
    Right click on a physical schema (this schema is already created and works in Answers) -> new Physical Schema ->Table Type: Select -> Select * from Table_A where name='name' (Table_A is in the physical schema) -> OK -> Save -> Deploy -> Update Row count (works) -> View Data -> Error
    Any Idea what I am doing wrong. I have started with an easy select statement to test how to create a view in Oracle Administrator.
    Thanks a lot for any help
    Evgeny

    Do you see Table_A, and in which database schema?
    Try to put alias (database user) before table name.
    Select * from user.Table_A where name='name'
    Where user is database user.
    If you have Table_A in another user and connection pool is set to different user, then grant select from Table_A owner to connection pool user (make synonym for Table_A):
    Example (I'm using connection pool from userB and have tables from userA and userB).
    create or replace public synonym xx for userA.xx
    and
    grant select on xx to userB
    Hope this helps.
    Regards,
    Goran
    http://108obiee.blogspot.com

  • Not able to create EM repository - ORA-00942: table or view does not exist

    -bash-3.00$ emca -config dbcontrol db -repos recreate
    STARTED EMCA at 2010-06-02 12:12:29
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle.  All rights reserved.
    Enter the following information:
    Database SID: eric1
    Listener port number: 1521
    Password for SYS user:
    Password for DBSNMP user:
    Password for SYSMAN user:
    Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    You have specified the following settings
    Database ORACLE_HOME ................ /oracle/product/10.2.0/db_1
    Database hostname ................ solx
    Listener port number ................ 1521
    Database SID ................ eric1
    Email address for notifications ...............
    Outgoing Mail (SMTP) server for notifications ...............
    Do you wish to continue? [yes(Y)/no(N)]: Y
    2010-06-02 12:12:52 oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log.
    2010-06-02 12:13:02 oracle.sysman.emcp.EMReposConfig dropRepository
    INFO: Dropping the EM repository (this may take a while) ...
    2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing /oracle/product/10.2.0/db_1/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=solx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=eric1))) -repos_user SYSMAN -action drop -verbose -output_file /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_2010-06-02_12-13-02-PM.log
    2010-06-02 12:13:05 oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error dropping the repository
    2010-06-02 12:13:05 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_<date>.log for more details.
    2010-06-02 12:13:05 oracle.sysman.emcp.EMConfig perform
    SEVERE: Error dropping the repository
    Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log for more details.
    Could not complete the configuration. Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log for more details.So I looked into a log file: /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log
    Here is an end of it ( I can paste all log file if necessary but it is very long):
    CONFIG: Starting execution: /oracle/product/10.2.0/db_1/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=solx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=eric1))) -repos_user SYSMAN -action drop -verbose -output_file /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_2010-06-02_12-13-02-PM.log
    2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Exit value of 51
    2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Enter SYS user's password :
    Enter repository user password :
    Getting temporary tablespace from database...
    prepare(SELECT tablespace_name FROM dba_tablespaces WHERE contents='TEMPORARY'  AND status='ONLINE'): ORA-00942: table or view does not exist (DBD ERROR: error possibly near <*> indicator at char 28 in 'SELECT tablespace_name FROM <*>dba_tablespaces WHERE contents='TEMPORARY'  AND status='ONLINE'')
    2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: stty: : No such device or address
    stty: : No such device or address
    stty: : No such device or address
    stty: : No such device or address
    2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing /oracle/product/10.2.0/db_1/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=solx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=eric1))) -repos_user SYSMAN -action drop -verbose -output_file /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_2010-06-02_12-13-02-PM.log
    2010-06-02 12:13:05 oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error dropping the repository
    2010-06-02 12:13:05 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_<date>.log for more details.
    2010-06-02 12:13:05 oracle.sysman.emcp.EMConfig perform
    SEVERE: Error dropping the repository
    Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log for more details.
    2010-06-02 12:13:05 oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error dropping the repository
            at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:176)
            at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:127)
            at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
            at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
            at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
            at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
            at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)...and here I can easly see that error: ORA-00942: table or view does not exist.
    But what does it mean to me ? I mean what should I ro to create/recreate missing table or view ?

    Hi, so here are my tries:
    1. admin:
    Below Dirs dont not exist:
    <ORACLE_HOME>/<hostname_sid>
    <ORACLE_HOME>/oc4j/j2ee/OC4J_DBConsole_<hostname>_<sid>
    ...also it was unable to drop user - does not exist
    -bash-3.00$ sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.2.0 - Production on Wed Jun 2 12:55:44 2010
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.2.0 - Production
    SQL> sqlplus "/as sysdba"
    drop user sysman cascade;
    drop role MGMT_USER;
    drop user MGMT_VIEW cascade;
    drop public synonym MGMT_TARGET_BLACKOUTS;
    drop public synonym SETEMVIEWUSERCONTEXT;
    SP2-0734: unknown command beginning "sqlplus "/..." - rest of line ignored.
    SQL> drop user sysman cascade
    ERROR at line 1:
    ORA-01918: user 'SYSMAN' does not exist
    SQL> drop role MGMT_USER
    ERROR at line 1:
    ORA-01919: role 'MGMT_USER' does not exist
    SQL> drop user MGMT_VIEW cascade
    ERROR at line 1:
    ORA-01918: user 'MGMT_VIEW' does not exist
    SQL> drop public synonym MGMT_TARGET_BLACKOUTS
    ERROR at line 1:
    ORA-01432: public synonym to be dropped does not exist
    SQL> drop public synonym SETEMVIEWUSERCONTEXT
    ERROR at line 1:
    ORA-01432: public synonym to be dropped does not exist
    {code}
    I also tried this:
    2. coskan         
    {code}
    -bash-3.00$ sqlplus sys/qaz123@eric1 as sysdba
    SQL*Plus: Release 10.2.0.2.0 - Production on Wed Jun 2 12:51:34 2010
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.2.0 - Production
    SQL> SELECT tablespace_name FROM dba_tablespaces WHERE contents='TEMPORARY' AND status='ONLINE';
    SELECT tablespace_name FROM dba_tablespaces WHERE contents='TEMPORARY' AND status='ONLINE'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • NQSError: 17001 ORA-00942: table or view does not exist

    Hello everyone,
    we are experiencing problems in managing a single repository across different BI installations.
    We have two BI installation that uses two different databases: PRODUCTION and TESTING.
    We create analysys & reports in testing environment and if everything works as expected we migrate repository and analysys to the production server.
    These 2 databases have the same tables, the same tablespaces. The only difference between them is IP address of the server, name of the instance and tables owner.
    We create a repository using "BI Administration Tool" in testing server end everything works as expected.
    Now we need to migrate this repository to the production environment importing .rpd in the second BI server pointing this repository from TESTING database to PRODUCTION database.
    From "BI Administration Tool" we change tables owner username and password for rpd according to the values of PRODUCTION database then we import repository in production BI server.
    If we create analysis using views from single fact tables everything works as expected but if we try to correlate views from different fact tables BI gives us:
    *[nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)*
    Can someone give us any suggestion about this??
    It's possible to create and then migrate repositoryes across different instances?
    Thank you in advance for any reply.
    Regards.

    Hi there,
    You should be able to build the RPD on a development server and then migrate through to production. It's interesting that it works for a single fact.
    Have you tried turning logging on for the user and validating the SQL being produced? Does it run against your production database through a query editor?
    Perhaps the production and test databases are different in a subtle way?
    Regards,
    James

  • YTD, QTD and Year grain metrics = ORA-00942: table or view does not exist

    Hi everyone,
    I'm having a weird issue. I've got some GL data that I want to report on in three different grains: Quarter To Date, Year To Date and Entire Year. For the first two measures, I've setup a time dimension and I'm using the ToDate function. Works perfectly. For the third measure, I select the SUM aggregation and then in the Levels Tab, I go to my time dimension and set the logical level to "Year".
    Each measure reports correctly by itself, however, when I join in the three in one report, the who thing blows up on me and gives me an ORA message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    When I only do two of the measures (any two), the report works fine. But it's when I add that third measure in, I get myself in trouble. Additionally, I checked the log file and the report never gets to the point where it generates a physical query. It's only creating a logical query and then it doesn't save the physical query anywhere.
    Can anyone explain what the problem is? Why don't these three measures behave well together? What can I do to force them to co-operate?
    It seems that the real culprit is the entire year measure. It only behaves well with 1 other measure, but once you get two additional measures, it causes the report to get the ORA error.
    Thanks for any help you can give!
    -Joe

    It turns out I was incorrect that there were no physical queries being generated. They were there in the log files, they had so many SAWITH<number> clauses that I thought they were the logical query (i.e. saw_0, saw_1, etc).
    Once I found the physical query, I ran it by hand and also got the table did not exist error. I added in WITH clause by with clause until I got the error to occur. After about an hour of digging, it turned out that a query using a full outer join (about 16 queries in) caused the table does not exist error. I'm not sure what it is about the full outer join that makes Oracle not see the table. When I get some free time I'll dig deeper into that issue.
    But once I realized what was going on, I went into the DB connections and disabled FULL OUTER JOINs. No problem now.
    Like I said, if I find what caused the original problem (i.e. what syntactically was incorrect about the FULL OUTER JOIN), I'll update this post.
    -Joe

  • Java.sql.SQLException: ORA-00942: table or view does not exist

    Hi all,
    I have an Oracle table called: USER_APP_VERSION with the fields (all String): (username, application_name, version).
    I use PreparedStatement to insert rows into table:
    String psInsertRpt = "INSERT INTO USER_APP_VERSION (username, application_name, version) VALUES (?, ?, ?)";
    rptPS = conn.prepareStatement(psInsertRpt);
    rptPS.setString(1, username);
    rptPS.setString(2, source);
    rptPS.setString(3, version);
    rptPS.executeUpdate(); At executeUpdate() line, I get the following error:
    java.sql.SQLException: ORA-00942: table or view does not exist
    The table does exist, I can use the "INSERT INTO USER_APP_VERSION (username, application_name, version) VALUES ("name", "source", "version")";
    to insert rows into db at sql command line, however, when run the same query as part of my Java code, get the SQLException.
    Any idea? Any help is greatly appreciated.

    Thanks for the raply. I can connect to the db using a username and password, and run the query with no problem. I use the same username and password to make a jdbc connection from Java code. Since username and password are the same, does "permission" is still an issue? If yes, how can I solve it?

  • ADD_TOPO_GEOMETRY_LAYER  : table or view does not exist

    Hi,
    I am try to run the TOPOLOGY pl/sql examples from the sdo_topo_concepts.htm page.
    When I get to the EXECUTE SDO_TOPO.ADD_TOPO_GEOMETRY_LAYER('CITY_DATA', 'CITY_STREETS', 'FEATURE','LINE'); step I always get the following error:
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "MDSYS.SDO_TOPO", line 992
    ORA-06512: at "MDSYS.SDO_TOPO", line 1051
    ORA-06512: at line 1
    The city_street table exists.
    I tried both the 'from topology data' and 'from spatial geometries' versions with the same error.
    Any suggestions?
    Note: the entry is added to the user_sdo_topo_metadata successfully.
    Using: Oracle Spatial 10.2.0.4
    Thanks
    Gunter

    I suspect the error is due to some changed privileges in 11.1.
    Do you have explicit CREATE VIEW privilege granted to the user who is calling this procedure ?
    You can also do a sql_trace to see which SQL is actually failing.
    siva

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

    I created a proc like:
    CREATE OR REPLACE PROCEDURE SEE_PROC
    (v_owner varchar2)
    as
    begin
    EXECUTE IMMEDIATE
    'SELECT COUNT(*) from dba_objects WHERE OBJECT_TYPE = :1 AND OWNER = :2'
    USING 'PROCEDURE', v_owner;
    end;
    for a dba user, say appadmin, and attempted to exec it
    from a different schema test101:
    exec appadmin.see_proc('TEST101');
    and got:
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "APPADMIN.SEE_PROC", line 6
    ORA-06512: at line 1
    view DBA_OBJECTS not accessible/not built?
    Any help is appreciated.
    - Zack Hu

    Assuming that you are using Oracle 9i/10g, by default anyone who is not SYSDBA CANNOT see DBA tables.
    The parameter 07_DICTIONARY_ACCESSIBILITY is responsible for this and by default it is set to FALSE. Set it to TRUE and see if it works. Note: Anyone will be able to read any DBA data dictionary tables so use it with caution.
    <quote>for a dba user, say appadmin, and attempted to exec it from a different schema test101:
    exec appadmin.see_proc('TEST101');
    </quote>
    When you execute a procedure from the appadmin schema that does not mean you have any DBA priviledges! Who ever you are logged in as is what matters.
    -Raj Suchak
    [email protected]

  • SYS.DBMS_SYS_SQL and table or view does not exist

    I have a stored procedure that has dynamic SQL with a CURSOR and I am now getting the following error:
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 909
    ORA-06512: at "SYS.DBMS_SQL", line 39
    ORA-06512: at "SOMEUSER.USP_RENAME_LOCATION", line 38
    ORA-06512: at line 1
    Here is the code in the stored proc where the error is occuring (line 39 is the PARSE):
    dynamic_cursor := DBMS_SQL.OPEN_CURSOR;
    dynamic_cursor2 := DBMS_SQL.OPEN_CURSOR;
    DBMS_SQL.PARSE(dynamic_cursor,
       'UPDATE SOMEUSER.' || table_var || ' SET ' ||column_var || ' = ''CBE''' || ' WHERE ' ||column_var || ' = ''MI''',DBMS_SQL.NATIVE);Can anyone shed any light on why I might be getting the error?
    I am running the proc as the SOMEUSER user who is the owner of all the tables. Should the SOMEUSER user have any special permissions to the SYS objects?
    I have seen threads discussing explicit grants in conjunction to ROLE permission. The SOMEUSER user has all roles including DBA.
    Very confused???
    Thanks in advance,
    Miller

    I resolved the issue...
    It was not related to SYS objects at all....
    The query being constructed began using some non existent tables in the result set so they would not work.
    I added EXCEPTION block to the execution and all is well.
    BEGIN
        var_update_string := 'UPDATE SOMEUSER.' || table_var || ' SET ' ||column_var || ' = ''CBE''' || ' WHERE ' ||column_var || ' = ''MI''';
        DBMS_SQL.PARSE(dynamic_cursor, var_update_string, DBMS_SQL.NATIVE);       
        var_status := DBMS_SQL.EXECUTE(dynamic_cursor);
        EXCEPTION
            WHEN OTHERS THEN
                NULL;
    END; 
    COMMIT;

  • 500 - Internal Server Error - Table or View does not Exist

    When trying to use the sample restful service oracle.example.hr I get a 500 - Internal Server Error.
    I have no clue what to do next. I've even tried granting public to the emp table.  Nottin.
    Any insight you could give would be awesome.
    Here is the error:
    Request Path passes syntax validation
    Mapping request to database pool: PoolMap [_failed=false, _lastUpdate=-1, _pattern=null, _poolName=apex, _regex=null, _type=REGEX, _workspaceIdentifier=null, _serviceName=null]
    Applied database connection info
    Attempting to process with PL/SQL Gateway
    Not processed as PL/SQL Gateway request
    Attempting to process as a RESTful Service
    Determining if request can be dispatched as a Tenanted RESTful Service
    Request path has one path segment, continuing processing
    No Tenant Principal established yet, continuing processing
    APEX_LISTENER pool exists, continuing processing
    WebException [statusCode=500]
         at oracle.dbtools.rt.web.WebException.webException(WebException.java:343)
         at oracle.dbtools.rt.web.WebException.internalError(WebException.java:262)
         at oracle.dbtools.rt.web.WebErrorResponse.internalError(WebErrorResponse.java:101)
         at oracle.dbtools.rt.web.WebErrorResponse.error(WebErrorResponse.java:75)
         at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:166)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3732)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: JDBCException [kind=NO_DATA]
         at oracle.dbtools.common.jdbc.JDBCException.wrap(JDBCException.java:88)
         at oracle.dbtools.common.jdbc.JDBCQueryProvider.query(JDBCQueryProvider.java:41)
         at oracle.dbtools.rt.jdbc.entity.JDBCTenantDispatcher.tenant(JDBCTenantDispatcher.java:104)
         at oracle.dbtools.rt.jdbc.entity.TenantDispatcherBase.target(TenantDispatcherBase.java:71)
         at oracle.dbtools.rt.jdbc.entity.TenantDispatcherBase.target(TenantDispatcherBase.java:37)
         at oracle.dbtools.rt.web.ReTargetingDispatcher.canDispatch(ReTargetingDispatcher.java:45)
         at oracle.dbtools.rt.web.RequestDispatchers.choose(RequestDispatchers.java:160)
         at oracle.dbtools.rt.web.RequestDispatchers.dispatch(RequestDispatchers.java:75)
         at oracle.dbtools.rt.web.ETags.checkPrecondition(ETags.java:53)
         at oracle.dbtools.rt.web.HttpEndpointBase.restfulServices(HttpEndpointBase.java:426)
         at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:164)
         ... 14 more
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:208)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:886)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1175)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1288)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3656)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1495)
         at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:111)
         at $Proxy104.executeQuery(Unknown Source)
         at oracle.dbtools.common.jdbc.JDBCQueryImpl.resultSet(JDBCQueryImpl.java:93)
         at oracle.dbtools.common.jdbc.JDBCResultRowIterator.<init>(JDBCResultRowIterator.java:28)
         at oracle.dbtools.common.jdbc.JDBCQueryImpl.execute(JDBCQueryImpl.java:53)
         at oracle.dbtools.common.jdbc.JDBCQueryProvider.query(JDBCQueryProvider.java:38)
         ... 23 more

    May be the default parsing schema in your Apex workspace cannot access table EMP. Try and qualify table EMP and grant access from containing schema to Apex parsing schema. Hope being helpful, regards.

Maybe you are looking for

  • Asset Number

    Hi all, I just loaded some Assets in my SAP ECC 6.0 system, but I make a mistake and I wrote bad asset number for them... Now I need to change those numbers.  ¿Can anyone here help me or give me some idea?.  Assets numbers are Manual and I just loade

  • HTTPS access and device id[PIN]

    I am not able to extract the Device-ID from HTTP header.I am accessing my https corporate site.when I try with HTTP ,i get the Device-id.But when I try accessing HTTPS I am not able to.I need this Device Id for further authentication of a blackberry

  • Email bb format problem

    My friend (use iphone) complains because my email which I send via bb sometimes received with unreadable format. I post some of it: References: <067bf4d4576f45de8beddfbe2cf913cb@c335bf33790947a7​9c42fa7fde401ce5><824019930-1294100517-cardhu_deco​[ema

  • I need help with my code..

    hi guys. as the subject says I need help with my code the Q for my code is : write a program that reads a positive integer x and calculates and prints a floating point number y if : y = 1 ? 1/2 + 1/3 - ? + 1/x and this is my code    This program that

  • Sales document type is not defined for(sales org/division/distribution chan

    Hi Friends, I am getting the error that sales document type is not defined for x/y/z(sales organisation/division/distribution channel). while creating sales order. Any pointers will be rewarded. Regards