ERROR ORA-00942: table or view does not exist
Hi:
I created a .sql file and a loader file. Running the .sql file with sql * plus Worksheet:
declare
gr sdo_georaster;
begin
select image into gr from gis.RasterImages where geoid=1 for update;
sdo_geor.generatePyramid(gr,'resampling=NN');
update gis.RasterImages set image=gr where geoid=1;
commit;
end;
I trying to create a pyramid,but the error appeared:
ERROR at line 1:
ORA-29400: DATA CONTROL ERROR ORA-00942: table or view does not exist
ORA-06512: 在 "MDSYS.SDO_GEOR_INT", line 162
ORA-06512: 在 "MDSYS.SDO_GEOR", line 826
ORA-06512: 在 line 5
I don't know why?
Anyone can help me?
Thanks.
Hi,
I think you are executing the select statement for schema X and the table is in the schema srnr.
And schema X is not having select privilege on the table 'students' present in schema srnr.
Goto schema srnr.
Execute the following statement:
grant select on students to X;
This will give schema X the privilege to query the table students present in srnr.
Regards,
Anupama
Similar Messages
-
HI ,
we are facing below issue while activating info object xxxxxxxx
" SQL Error: ORA-00942: table or view does not exist " and " CX_RS_SQL_ERROR "
can any one help us out to resolve this issue.
Thanks,
EDK......Hi,
Check the corrections given in the note 990764:
Reason and Prerequisites
Up to now, using a characteristic with its own master data read class as the InfoProvider was not supported. This is now released but it is not available for all modelings. Using the attributes in the query is not supported for characteristics that have their own master data read class. Using the attributes in the query causes a termination. The following errors may occur in this case:
ORA-00942: table or view does not exist
Fehler in CL_SQL_RESULT_SET Include NEXT_PACKAGE
RAISE_READ_ERROR in CL_RSDRV_VPROV_BASE
Solution
SAP NetWeaver 2004s BI
Import Support Package 11 for SAP NetWeaver 2004s BI (BI Patch 11 or SAPKW70011) into your BI system. The Support Package is available once Note 0914305 "SAPBINews BI 7.0 Support Package 11", which describes this Support Package in more detail, has been released for customers.
In urgent cases you can implement the correction instructions.
The correction instructions contain the tightened inspection for characteristics.
Regards,
Anil Kumar Sharma .P -
Why APEX 4.1 Error handling function does not trap the error of missing table?
Say, I create simple application with single IR report page and I also assign standard simple error handling function.
Function works perfectly, except but this case:
If I just drop a table used by report page and then refresh the page I am getting usual APEX error message:
ORA-20001: get_dbms_sql_cursor error ORA-00942: table or view does not exist
and error handling function is not invoked at all.
Is this a feature or a bug?Hi,
Check the corrections given in the note 990764:
Reason and Prerequisites
Up to now, using a characteristic with its own master data read class as the InfoProvider was not supported. This is now released but it is not available for all modelings. Using the attributes in the query is not supported for characteristics that have their own master data read class. Using the attributes in the query causes a termination. The following errors may occur in this case:
ORA-00942: table or view does not exist
Fehler in CL_SQL_RESULT_SET Include NEXT_PACKAGE
RAISE_READ_ERROR in CL_RSDRV_VPROV_BASE
Solution
SAP NetWeaver 2004s BI
Import Support Package 11 for SAP NetWeaver 2004s BI (BI Patch 11 or SAPKW70011) into your BI system. The Support Package is available once Note 0914305 "SAPBINews BI 7.0 Support Package 11", which describes this Support Package in more detail, has been released for customers.
In urgent cases you can implement the correction instructions.
The correction instructions contain the tightened inspection for characteristics.
Regards,
Anil Kumar Sharma .P -
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} -
How to handle ORA-00942: table or view does not exist
Hii All,
I'm trying to drop a table dynamically irrespective of its existence in a procedure. Its working fine when table exists but when table doesn't exist I'm facing following error
ORA-00942: table or view does not existI made use of pragma exception_init and modified my code as below
Create or replace Procedure sp_FSASA_FEEDUPLOAD_process
p_test_dir in varchar2,
p_feed_file_name in varchar2
is
l_exttable_str varchar2(32000) ;
l_log_file constant varchar2(200) := 'logfile_rgh.log';
l_table_doesnt_exist Exception;
pragma exception_init(l_table_doesnt_exist,-00492);
Begin
Begin
execute immediate 'drop table FSASA_FEEDUPLOAD_EXT purge' ;
Exception
when l_table_doesnt_exist then
null;
End;
l_exttable_str := 'Create table FSASA_FEEDUPLOAD_EXT ';
l_exttable_str := l_exttable_str||' ( ';
l_exttable_str := l_exttable_str||' Category_No varchar2(1), ';
l_exttable_str := l_exttable_str||' Financial_Category varchar2(300), ';
l_exttable_str := l_exttable_str||' GFCID number, ';
l_exttable_str := l_exttable_str||' Balance number(34,14), ';
l_exttable_str := l_exttable_str||' Refernce_no varchar2(20), ';
l_exttable_str := l_exttable_str||' Account_no varchar2(20), ';
l_exttable_str := l_exttable_str||' ce_trans_id varchar2(20) ';
l_exttable_str := l_exttable_str||' ) ';
l_exttable_str := l_exttable_str||' Organization external ';
l_exttable_str := l_exttable_str||' ( ';
l_exttable_str := l_exttable_str||' type oracle_loader ';
l_exttable_str := l_exttable_str||' default directory '||p_test_dir;
l_exttable_str := l_exttable_str||' Access parameters ';
l_exttable_str := l_exttable_str||' ( ';
l_exttable_str := l_exttable_str||' records delimited by newline ';
l_exttable_str := l_exttable_str||'BADFILE '||q'[']'||p_test_dir||q'[']'||':'||q'[']'||'feed.bad '||q'[']' ;
l_exttable_str := l_exttable_str||'LOGFILE '||q'[']'||p_test_dir||q'[']'||':'||q'[']'||':feed.log '||q'[']' ;
l_exttable_str := l_exttable_str||q'[FIELDS TERMINATED BY X'09']';
l_exttable_str := l_exttable_str||' missing field values are null ';
l_exttable_str := l_exttable_str||')location('||q'[']'||p_feed_file_name||q'[']';
l_exttable_str := l_exttable_str||')' ;
l_exttable_str := l_exttable_str||' )Reject limit unlimited ';
dbg_print(l_log_file,'l_exttable_str : '||l_exttable_str);
execute immediate l_exttable_str;
End;But still I'm unable to get rid of it. Pls help me.
1)I need to drop it as I need to immediately create table with different file name and from different path.
2)The last thing I don't like to do is to check the table name in USER_OBJECTS and then drop.
3)Also suggest me whether creating an external table dynamically is correct approach or not.
4)Till now we were using utl_file for reading feed file but I'm much interested in using EXTERNAL TABLE concept.
5)As the filename and path gets changed I need to create my external table at runtime.
please suggest me whether I can alter my filename and path at runtimeYou will need to use WHEN OTHERS EXCEPTION handler which is not a good idea to do so if you dont handle the same approprialtly then the exception would go un-noticed:
SQL> ed
Wrote file afiedt.buf
1 begin
2 execute immediate 'drop table my_Test';
3 exception
4 when others then
5 dbms_output.put_line(SQLCODE||SQLERRM);
6* end;
SQL> /
-942ORA-00942: table or view does not exist
PL/SQL procedure successfully completed.
SQL> -
Scheduling error causing - ORA-00942: table or view does not exist
Hello
I have the following problem, I created an scenario that its supposed to run every 1 hour, it has an interface that moves an amount of records from one table to another (the amount of records is not fixed it changes). The problem arises when the amount of data to move is so big that the hour between executions is not enough and the scenario is still running when a second execution of the same scenario starts to run (as scheduled), so in the interface when the second process is trying to run the loading step it fails and I got the error ODI-1228 Caused By: java.sql.BatchUpdateException: ORA-00942: table or view does not exists. So the scenario fails and it logs this error. I think the error is due to the table in stage being locked by the first execution of the scenario.
I don't want to change the amount of time between executions because it is usually enough, I just want to avoid the execution of a scenario when there is another execution of the same scenario still running, is there any way to do this?.
Thanks
LJHello
Thanks for your answer, I already have the "Interval between repetitions" property set to 1 hour, but when one execution takes more than one hour the scheduler starts another and I have 2 processes accessing the same table and it is when I have a concurrence error on the staging table.
How can I ensure that I wont have two or more executions of the same scenario running at the same time?.
Thanks,
LJ -
Error(20,22): PL/SQL: ORA-00942: table or view does not exist
I am getting currently getting an error when I try and insert into a table from a different schema from my Stored Procedure:
Error(20,22): PL/SQL: ORA-00942: table or view does not exist
I am explicitly calling the table with the schema name infront i.e.
INSERT INTO SAPSR3.ZTREC_NAME_TYPE
MASTER_ID,
NAME_TYPE,
FAMILY_NAME,
FIRST_NAME,
MIDDLE_NAME,
TITLE
VALUES
In_MasterID,
In_NameType,
In_FamilyName,
In_FirstName,
In_MiddleName,
In_Title
I only get this error when I try and compile my stored procedure. If I try this insert not within a stored procedure (i.e. a blank script) it works perfectly.
Can anyone tell me what Im doing wrong?
Thanks.Hi,
It sounds like you (the procedure owner) have privileges on that table only through a role.
Roles don't count in stored procedures created with AUTHID OWNER (which is the default).
Either
(1) Have user SAPSR3 grant the necessary privileges directly to you (or to PUBLIC), or
(2) change the procedure so that it runs with the caller's privileges, by adding AUTHID CURRENT_USER after the argument list but before the keyword IS (os AS) like this:
CREATE OR REPLACE PROCEDURE foo
( x IN NUMBER
AUTHID CURRENT_USER
IS ... -
Error rendering element. Exception: ORA-00942: table or view does not exist
Guru,
We are maintaining 10 internal Database through OEM 10g and using seesded reports.
When we try to create simple custom reports against one of the Target database , its failing with following error message ,
Query : select * from v$database
Error rendering element.
Exception: ORA-00942: table or view does not exist
select * from dual & v$session working ( But query execution happeniing from Reposistory Database not from Target instance )
Note:
I have reviewed thred "getting ORA-00942 while running report in GC"
Please give some light .
Regards,
RajuThis is an EM related question so I would suggest you post in the appropriate space "Enterprise Manager" -- https://forums.oracle.com/community/developer/english/enterprise_management/enterprise_manager/enterprise_manager_6
You may also review (In Grid Control 10.2, Creating a Report to Query 'V$SESSION 'Fails: 'Error Rendering Element. Exception: ORA-00942 Table Or View Does Not Exist' (Doc ID 356755.1)) and implement the solution for v$database
Thanks,
Hussein -
Error while deploying map: ORA-00942 Table or view does not exist
Hi OWB experts,
I'm having yet another problem with OWB, this time when I try to deploy a mapping I get this error:
ORA-06550: line 59, column 3:
PL/SQL: ORA-00942: table or view does not exist
DIM_01_ESTCON_MAP
ORA-06550: line 93, column 3:
PL/SQL: SQL Statement ignored
If I open the package that OWB created I see the errors:
CURSOR "DEDUP_SRC_0_IN2_c" IS
SELECT
"DEDUP_INPUT_SUBQUERY2$1"."ESTADOCONEXION_ID" "ESTADOCONEXION_ID",
"DEDUP_INPUT_SUBQUERY2$1"."ESTADOCONEXION_COD_ESTCON" "ESTADOCONEXION_COD_ESTCON",
"DEDUP_INPUT_SUBQUERY2$1"."ESTADOCONEXION_DESC_ESTCON" "ESTADOCONEXION_DESC_ESTCON",
"DEDUP_INPUT_SUBQUERY2$1"."STANDARD_TOTAL_COD_TTL" "STANDARD_TOTAL_COD_TTL"
FROM
(SELECT
DISTINCT
"DIM_01_ESTCON_MAP"."GET_CONST_CA_0_ESTADOCO" "ESTADOCONEXION_ID",
"ESTADOS"."ESTADO" "ESTADOCONEXION_COD_ESTCON",
"ESTADOS"."DESC_EST" "ESTADOCONEXION_DESC_ESTCON",
"DIM_01_ESTCON_MAP"."GET_TOTAL_C_0_TTLID" "STANDARD_TOTAL_COD_TTL"
FROM
"CONSULTA"."ESTADOS"@"PROD@AYADEV_LOCATION" "ESTADOS"
WHERE
( estado LIKE 'EC%' )) "DEDUP_INPUT_SUBQUERY2$1";
Where AYADEV_LOCATION points to the module/schema/location where my source data is.
Now, I have defined three modules:
SOURCE, where I defined the tables and other objects from the original database (source data)
STAGE, where I am performing all the transformations; here I defined all the maps
TARGET, this holds the dimensions and fact tables.
Now all three modules point to different databases. The dblink for AYADEV_LOCATION has been created and shouldn't present any problems. The username that I'm using to log on to the source database is current and I can connect to it through SQL+ or any other program (TOAD, SQLDeveloper).
What could be happening here? I'm using OWB 10g R2, with Oracle DB 10g R2.
I'd really appreciate any help you could provide.
Best Regards,
--Osvaldo
[osantos]Hi,
I'm still having problems but I found out why these tables are returning errors. The username I've been given by the DBA to connect to the database is CONSULTA, but this user is only for querying purposes, the actual objects reside on a differente schema, of course, which is PROD. So the line:
"CONSULTA"."ESTADOS"@"PROD@AYADEV_LOCATION" "ESTADOS"
raises an exception because the table ESTADOS is not located on that schema, but on PROD. If I query the table from SQL Plus with:
SELECT *
FROM [email protected]@AYADEV_LOCATION
then there's no problem at all.
Why is this? How do I instruct OWB to point to the correct schema or to avoind fully qualifying the table name?
Please help me, I'm kind of confused here.
Best Regards,
--oswaldo.
[osantos] -
10gLiteR3 publishing ORA-00942: table or view does not exist error
Hi All,
I am encountering table or view does not exist error while publishing using the api.
Below is the code:
try {
consolidatorManager.openConnection("MOBILEADMIN","PASSWORD", ADMIN_JDBC_URL);
mobileResourceManager = new MobileResourceManager("MOBILEADMIN","PASSWORD",ADMIN_JDBC_URL);
consolidatorManager.createPublicationItem(EXT_CONN, "RMT_TEST_TABLE" , "MOBILEADMIN","RMT_TEST_TABLE", "F", "SELECT * FROM MOBILEADMIN.RMT_TEST_TABLE", null, null);
consolidatorManager.addPublicationItem(mobileResourceManager.getPublication("/mobileApp"),"RMT_TEST_TABLE",null, null, "S", null, null);
} catch (Exception e) {
e.printStackTrace();
When I execute the above code it does not throw any exceptions but I see the below error in err.log. I,U,D triggers are getting created on the remote table, CMP, CFM, CVR,CLG tables are also created, I also see primary key for this table in VPKS. Publishing seems to be fine but I see the below error in err.log.
java.sql.SQLException: ORA-00942: table or view does not exist
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1451)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:651)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2117)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2331)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:422)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:366)
at oracle.lite.sync.Subscription.getVirtualTablePrimaryKey(Subscription.java:7522)
at oracle.lite.sync.Subscription.getTablePrimaryKey(Subscription.java:7365)
at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2334)
at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2157)
at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2129)
at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2108)
at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2093)
at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2079)
at oracle.lite.sync.ConsolidatorManager.createPublicationItem(ConsolidatorManager.java:1253)
I am not able to figure out what table it is looking for. Any ideas why this is happening?check the MGP compose process, is it also showing the error?
If it is them at some point in 10.2 Oracle introduced a 'feature' (ie: bug) that causes problems to the housekeeping routines when new versions of publication items are published
In 10.0 and early 10.2 when making changes to publication items VIEWS called CPV$.. were created to log the column list for each version of a publication item, and check if you are making changes when you publish. In the case of old versions, once all clients have synchronised and been moved to the latest version it tries to delete this view.
at some point the publish started creating TABLES instead of views (but using the same naming convention ie: CPV$..). This works fine as far as the logging of changes and old column lists, but the housekeeping called at the end of the publish and GP process still trieds to do a DROP VIEW and this causes the error.
The only way of clearing this i have found is to look at the log file to get the name of the object that it is trying to drop, set up a view script to create a dummy view with the list of columns in the table, drop the table and then create the view. It then gets dropped on the next MGP cycle and the error goes away
If the error is not showing up in the MGP process, only in the publish, and your changes appear to be publishing OK, then the problem is likely to be with a snapshot definition AFTER the change you have made - real pain to identify on re-publish - possibly missing schema name in the snapshot definition -
Process chain failure SQL ERROR 942 ORA-00942:table or view does not exist
HI all,
We have a proces chain with 'ceate index' process type and got failed with an error as follows......
SQL ERROR 942 ORA-00942:table or view does not exist
Plz can anyone give solution for this error.
SATISH.Hey Satish,
Please refer to this thread:
BRCONNECT fails with SQL error -942 at location ora_vers_get-1
I am sure the solution there should solve your problem. There are various other discussions about this error in the forum, I suggest you look through them for better understanding and additional material.
Cheers!!!
Manu. -
PL/SQL: ORA-00942: table or view does not exist
Hi
i have logged into my schema and trying to access the database "DAD" which has the table name "SCHOOL"
i wrote a function which should give me new_sno when i give it the old_sno
and i have this errors , pls help
CREATE OR REPLACE FUNCTION ORIG_SN(OSNO in Number,OTN in Number)
RETURN Number IS
NEW_SNO Number:=0;
BEGIN
SELECT new_sno AS NEW_SNO
FROM DAD.SCHOOL
WHERE ORIG_SNO = OSNO AND ORIG_TN = OTN;
RETURN NEW_SNO;
END ORIG_SN;
Warning: Function created with compilation errors.
Errors for FUNCTION ORIG_SN:
LINE/COL ERROR
5/1 PL/SQL: SQL Statement ignored
6/15 PL/SQL: ORA-00942: table or view does not exist
Thanks in advance ..Try this,
CREATE VIEW SCHOOL_VIEW AS SELECT * FROM DAD.SCHOOL;and then change your function like
CREATE OR REPLACE FUNCTION ORIG_SN(OSNO in Number,OTN in Number)
RETURN Number IS
my_new_sno Number:=0;
BEGIN
SELECT new_sno INTO my_new_sno FROM SCHOOL_VIEW WHERE ORIG_SNO = OSNO AND ORIG_TN = OTN;
RETURN my_new_sno;
END ORIG_SN;and see if it is getting created without any errors.
-Arun
Edited by: Arunkumar Ramamoorthy on Aug 15, 2009 1:56 AM -
Hi Geeks,
I have encountered an issue while starting up my database on 12c RAC.
Till mount it goes fine but when i attempt to open it throws me an error.
Total System Global Area 1.5400E+10 bytes
Fixed Size 4737560 bytes
Variable Size 2952791528 bytes
Database Buffers 1.2415E+10 bytes
Redo Buffers 26857472 bytes
Database mounted.
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00942: table or view does not exist
Process ID: 11338068
Session ID: 1429 Serial number: 3
Here is the trace file output...
ORACLE_HOME = /oracle_home/app/orahome
System name: AIX
Node name: INS1
Release: 1
Version: 7
Machine: 00C8CCA74C00
Instance name: INST1
Redo thread mounted by this instance: 1
Oracle process number: 7
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
*** CLIENT ID:() 2014-11-27 22:49:20.892
*** SERVICE NAME:() 2014-11-27 22:49:20.892
*** MODULE NAME:(sqlplus@ins1 (TNS V1-V3)) 2014-11-27 22:49:20.892
*** ACTION NAME:() 2014-11-27 22:49:20.892
2014-11-27 22:49:20.889716 : Start recovery for domain=0, valid=0, flags=0x4
*** 2014-11-27 22:49:24.580
Successfully allocated 32 recovery slaves
Using 3 overflow buffers per recovery slave
*** 2014-11-27 22:49:24.740
Thread 1 checkpoint: logseq 15, block 2, scn 3510749
cache-low rba: logseq 15, block 3
on-disk rba: logseq 15, block 72, scn 3510824
start recovery at logseq 15, block 3, scn 0
*** 2014-11-27 22:49:24.981
Started resilvering redo thread 1 seq 15 blocks 72-73
*** 2014-11-27 22:49:24.994
Completed 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 writing zeroblks thread 1 seq 15
==== Redo read statistics for thread 1 ====
Total physical reads (from disk and memory): 4096Kb
-- Redo read_disk statistics --
Read rate (ASYNC): 35Kb in 0.25s => 0.14 Mb/sec
Longest record: 0Kb, moves: 0/104 (0%)
Longest LWN: 2Kb, moves: 0/33 (0%), moved: 0Mb
Last redo scn: 0x0000.0035922b (3510827)
----- Recovery Hash Table Statistics ---------
Hash table buckets = 262144
Longest hash chain = 1
Average hash chain = 25/25 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 151/176 = 0.9
*** 2014-11-27 22:49:25.007
KCRA: start recovery claims for 25 data blocks
*** 2014-11-27 22:49:25.039
KCRA: blocks processed = 25/25, claimed = 25, eliminated = 0
*** 2014-11-27 22:49:25.054
Recovery of Online Redo Log: Thread 1 Group 6 Seq 15 Reading mem 0
*** 2014-11-27 22:49:25.060
Completed redo application of 0.02MB
*** 2014-11-27 22:49:25.235
Completed recovery checkpoint
----- Recovery Hash Table Statistics ---------
Hash table buckets = 262144
Longest hash chain = 1
Average hash chain = 25/25 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 176/176 = 1.0
Recovery sets nab of thread 1 seq 15 to 74 with 8 zeroblks
*** 2014-11-27 22:49:26.000
2014-11-27 22:49:26.000433 : Validate domain 0
2014-11-27 22:49:26.001348 : Validated domain 0, flags = 0x0
*** 2014-11-27 22:49:28.315
Count of 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): terminating the instance due to error 942In my case the issue has fixed by executing the following..
grant SELECT on SYS.USER$ to XDB;
grant SELECT on SYS.USER$ to CTXSYS;
grant SELECT on SYS.USER$ to DVSYS;
grant SELECT on SYS.USER$ to LBACSYS;
grant SELECT on SYS.USER$ to APEX_040200;
grant SELECT on SYS.USER$ to DV_SECANALYST;
Refer the above screen shot... -
Database startup showing ORA-00942: table or view does not exist in trace
Hi Friends,
SunOS 5.10 Generic_137112-06 i86pc i386 i86pc , 64 Bit
Oracle 10.2.0.1.0
While I am doing a startup, getting following error.
SQL> startup;
ORACLE instance started.
Total System Global Area 3221225472 bytes
Fixed Size 2122544 bytes
Variable Size 410819792 bytes
Database Buffers 2801795072 bytes
Redo Buffers 6488064 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forcedThe alert log shows the following
Errors in file /applns/oracle/admin/CTSD1/udump/ctsd1_ora_11486.trc:
ORA-00942: table or view does not exist
Error 942 happened during db open, shutting down database
USER: terminating instance due to error 942
Instance terminated by USER, pid = 11486
ORA-1092 signalled during: ALTER DATABASE OPEN...A look at the trace file shows this
/applns/oracle/admin/CTSD1/udump/ctsd1_ora_11486.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /applns/oracle
System name: SunOS
Node name: N890
Release: 5.10
Version: Generic_137112-06
Machine: i86pc
Instance name: CTSD1
Redo thread mounted by this instance: 1
Oracle process number: 23
Unix process pid: 11486, image: oracle@N890 (TNS V1-V3)
*** SERVICE NAME:() 2011-02-16 19:24:50.188
*** SESSION ID:(325.3) 2011-02-16 19:24:50.188
Successfully allocated 3 recovery slaves
Using 367 overflow buffers per recovery slave
Thread 1 checkpoint: logseq 45929, block 2, scn 310788795>cache-low rba: logseq 45929, block 3
>on-disk rba: logseq 45929, block 52, scn 310788832
>start recovery at logseq 45929, block 3, scn 0
----- Redo read statistics for thread 1 -----
Read rate (ASYNC): 24Kb in 0.31s => 0.08 Mb/sec
Total physical reads: 4096Kb
Longest record: 0Kb, moves: 0/61 (0%)
Longest LWN: 16Kb, moves: 0/3 (0%), moved: 0Mb
Last redo scn: 0x0000.128642df (310788831)
----- Recovery Hash Table Statistics ---------
Hash table buckets = 32768
Longest hash chain = 1
Average hash chain = 4/4 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 117/121 = 1.0
*** 2011-02-16 19:24:50.515
KCRA: start recovery claims for 4 data blocks
*** 2011-02-16 19:24:50.515
KCRA: blocks processed = 4/4, claimed = 4, eliminated = 0
*** 2011-02-16 19:24:50.516
Recovery of Online Redo Log: Thread 1 Group 1 Seq 45929 Reading mem 0
----- Recovery Hash Table Statistics ---------
Hash table buckets = 32768
Longest hash chain = 1
Average hash chain = 4/4 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 121/121 = 1.0
ORA-00942: table or view does not existI have searched MOS and Google, but didn;'t get any relevant results.
Also flushed my shared_pool as mentioned in (http://www.tanelpoder.com/files/oracle_rowcache.pdf) after mount and started , still no luck
Any help is appreciated
Thanks
SSNHi,
Thanks.
Tried log mining, but still couldn't find the culprit. I think now, I have to drop and create this db.Still wondering what might have happened.
select group#,status from v$log;
GROUP# STATUS
1 INACTIVE
3 INACTIVE
2 CURRENT
SQL> select group#,MEMBER from v$logfile where group#=2;
GROUP#
MEMBER
2
/applns/oracle/oradata/CTSD1/redo02.log
SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redo02.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
PL/SQL procedure successfully completed.
SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
PL/SQL procedure successfully completed.
SQL> SELECT COUNT (*) FROM v$logmnr_contents WHERE operation = 'DDL';
COUNT(*)
0
SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
PL/SQL procedure successfully completed.
SQL> select group#,MEMBER from v$logfile where group#=1;
GROUP#
MEMBER
1
/applns/oracle/oradata/CTSD1/redo01.log
1
/applns/oracle/oradata/CTSD1/redolog001.log
SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redo01.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
PL/SQL procedure successfully completed.
SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
PL/SQL procedure successfully completed.
SQL> SELECT COUNT (*) FROM v$logmnr_contents WHERE operation = 'DDL';
COUNT(*)
0
SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
PL/SQL procedure successfully completed.
SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redolog001.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
PL/SQL procedure successfully completed.
SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
PL/SQL procedure successfully completed.
SQL> SELECT COUNT (*) FROM v$logmnr_contents WHERE operation = 'DDL';
COUNT(*)
0
SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
PL/SQL procedure successfully completed.
SQL> select group#,MEMBER from v$logfile where group#=3
GROUP#
MEMBER
3
/applns/oracle/oradata/CTSD1/redo03.log
SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redo03.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
PL/SQL procedure successfully completed.
SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
PL/SQL procedure successfully completed.
SQL> SELECT COUNT (*) FROM v$logmnr_contents WHERE operation = 'DDL';
COUNT(*)
0
SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
PL/SQL procedure successfully completed.SSN -
ORA-00942: table or view does not exist in database control
Hi all,
i am getting "ORA-00942: table or view does not exist" error while accessing tablespaces from database control. i am able to access control files, redo log files everything fine, but not tablespaces.
database version ---> 10.2.0.1
OS ----> RedHat Enterprise Linux 4 U 2
but the database is working fine from SQL*Plus and other Editors. this error is only from database control. so what might be the cause.
Any Ideas ...........
Balajihi,
Have you tried to re register your database within OEM, CG
Maybe you are looking for
-
Deploying Enterprise Archive into weblogic 10.3.4.0 application server
Hi All, I am trying to deploy enterprise archive into web-logic application server. This ear contains two modules. web service module and web application module. This application was previously running on Apache tomcat server and now i am migrating t
-
OK I video'd my bands latest gig on the weekends using I-Movie, but when played back on I-movie, the video / Audio are over 10 seconds out of sync. Common Problem apparently, however on Quicktime it runs smoothly, so I was told I need to edit it in
-
[solved]how to extract recent log entries from a file (based on time)?
I have a daily log file with hundreds of thousands of entries in the following format. field1,field2,field3,field4,field5,field6,field7,field8,field9,20110516192001.100 field1,field2,field3,field4,field5,field6,field7,field8,field9,20110516192002.20
-
T61 Problem: Getting external monitor to display 1920x1080 through VGA
I've got the Nvidia 195.62 drivers, but windows still shows a max resolution of 1600x1200 for a 1920x1080 lcd screen. I'm using the VGA out. This is frustrating.
-
Mails are not going from apex application
Hi, Mails are not going from my apex application. I had done the instance settings by logged in as admin. SMTP port is also connecting. Please help me to solve the issue.