ORA-23309: object UMESH.PRODUCT_MASTER of type TABLE exists
Hi,
I have two schema on the two servers for replication replication is working fine.
i export one schema to another so all the tables exists at both the sites.
I am adding objects in the replication group using oracle enterprise manager
console.
some of the tables added fine.
but some gives me error like.
ORA-23309: object UMESH.PRODUCT_MASTER of type TABLE exists
before adding this objects in the group i do like
SQL> SELECT oname FROM DBA_REPOBJECT ;
ONAME
AC_ACCOUNT
AC_ACCOUNT$RP
AC_ACCOUNT$RP
AC_ACCOUNT_MASTER
AC_ACCOUNT_MASTER$RP
AC_ACCOUNT_MASTER$RP
6 rows selected.
at both the sites.
when i add product_master in the group then entries becomes like
SQL> SELECT oname FROM DBA_REPOBJECT ;
ONAME
AC_ACCOUNT
AC_ACCOUNT$RP
AC_ACCOUNT$RP
AC_ACCOUNT_MASTER
AC_ACCOUNT_MASTER$RP
AC_ACCOUNT_MASTER$RP
PRODUCT_MASTER
7 rows selected.
but with the error in
and when generate replication support.
SQL> select status,request,message,oname from dba_repcatlog;
STATUS REQUEST
MESSAGE
ONAME
ERROR CREATE_MASTER_REPOBJECT
ORA-23309: object UMESH.PRODUCT_MASTER of type TABLE exists
PRODUCT_MASTER
ERROR CREATE_MASTER_REPOBJECT
ORA-23309: object UMESH.PRODUCT_MASTER of type TABLE exists
PRODUCT_MASTER
STATUS REQUEST
MESSAGE
ONAME
ERROR GENERATE_INTERNAL_PKG_SUPPORT
ORA-23308: object UMESH.PRODUCT_MASTER does not exist or is invalid
PRODUCT_MASTER
ERROR GENERATE_INTERNAL_PKG_SUPPORT
ORA-23308: object UMESH.PRODUCT_MASTER does not exist or is invalid
STATUS REQUEST
MESSAGE
ONAME
PRODUCT_MASTER
ERROR GENERATE_INTERNAL_PKG_SUPPORT
ORA-23308: object UMESH.PRODUCT_MASTER does not exist or is invalid
PRODUCT_MASTER
but in the same situation other objects are working fine.i am fed up with this error.
any help will be appreciated.
Thanks
Umesh
null
thanks hament
I have two schema my master definition site have all the objects but second master
site. have no object.
i use these command like
this is at master definition site.
SQL> BEGIN
2 DBMS_REPCAT.CREATE_MASTER_REPGROUP(
3 gname => '"AA"',
4 qualifier => '',
5 group_comment => '');
6 END;
7 /
PL/SQL procedure successfully completed.
SQL> ed
Wrote file afiedt.buf
1 BEGIN
2 DBMS_REPCAT.CREATE_MASTER_REPOBJECT(
3 gname => '"AA"',
4 type => 'TABLE',
5 oname => '"PRODUCT_MASTER"',
6 sname => '"UMESH"',
7 copy_rows => TRUE,
8 use_existing_object => FALSE);
9* END;
SQL> /
PL/SQL procedure successfully completed.
SQL> commit;
Commit complete.
SQL> BEGIN
2 DBMS_REPCAT.ADD_MASTER_DATABASE (
3 gname => 'AA',
4 master => 'neo.world',
5 use_existing_objects => FALSE,
6 copy_rows => TRUE,
7 propagation_mode => 'ASYNCHRONOUS');
8 END;
9 /
PL/SQL procedure successfully completed.
SQL> COMMIT;
SQL> select source, status, master,sname, request, oname, type, message from dba_repcatlog;
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
LOCAL.WORLD
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
ERROR
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
NEO.WORLD
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
UMESH CREATE_MASTER_REPOBJECT
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
PRODUCT_MASTER TABLE
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
ORA-00942: table or view does not exist
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
but according to me this table must be created at the second master site.
which is main issue i am facing.
and if i made product_master at second master site manually
then execute this at master defination site.
SQL> BEGIN
2 DBMS_REPCAT.CREATE_MASTER_REPOBJECT(
3 gname => '"AA"',
4 type => 'TABLE',
5 oname => '"PRODUCT_MASTER"',
6 sname => '"UMESH"',
7 copy_rows => TRUE,
8 use_existing_object => TRUE);
9 END;
10 /
BEGIN
ERROR at line 1:
ORA-23309: object "UMESH"."PRODUCT_MASTER" of type TABLE exists
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2552
ORA-06512: at "SYS.DBMS_REPCAT", line 562
ORA-06512: at line 2
SQL> /
PL/SQL procedure successfully completed.This is very strange if the table exists then error and if
it doesn't then error.
Thanks
Message was edited by:
Umesh Sharma
Similar Messages
-
ORA-04043: object SYS.DELTA$SESSION does not exist
Dear Friends
after I import my data by using the follwoing import script :
IMP JCC/P_MANUF FILE =JCC.DMP FULL
and at the end give this message import has been imported succesfully without warning
then when I use this script :
SQL> SELECT TNAME FROM TAB
2 WHERE TNAME LIKE 'USER_SESSION'
3 /
TNAME
USER_SESSION
The table USER_SESSION is exist but when I try to desplay the structure of the USER_SESSION by using this :
SQL> DESC USER_SESSION
ERROR:
ORA-04043: object SYS.DELTA$SESSION does not exist
and when I try to use the select statment as the following
SELECT * FROM USER_SESSION
ERROR at line 1:
ORA-00980: synonym translation is no longer valid
Waiting for your valuable answer.
Best regards
Jamil AlshaibaniSQL> select * from V$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Linux: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
SQL> !uname -a
Linux KAD-VMWARE 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
SQL> sho user
USER is "SYS"
SQL> select object_type,status from dba_objects where object_name = 'K_DRWDWN_GRP' and OWNER = 'SYS';
no rows selected
Is any thing wrong with my dictionary? please let me know if i missed anything?
Edited by: sanora600 on Oct 16, 2010 12:34 AM -
ORA-08103 in export log inspite the table existing
Hi All ,
my database is on oracle 11G.
I ran an export backup for my production database and i encountered the following exception and error in my log :
. . exporting table TABLE_NAME_1234
EXP-00056: ORACLE error 8103 encountered
ORA-08103: object no longer exists
I logged into my database to see that this table , TABLE_NAME_1234 exists.
the error says that the object no longer exists...
what could be the reason ?
thanks
KKMight be when the export of the table started, the table was being truncated by some other session in the database.
Can you try to take the export again and get back.
Anand
Edited by: Anand... on Oct 12, 2010 11:52 AM -
In Oracle8i.15, I tried to install xmlparserv2.jar after I downloaded xdk_plsql_9_2_0_2_0.zip and upzip to local machine.
However, when I issued the follwoing command:
loadjava -v -r -user SYSTEM/manager -force xmlparserv2.jar
For each class, it has the following error message:
resolving: oracle/xml/async/DOMBuilderErrorListener
Error while resolving class oracle/xml/async/DOMBuilderErrorListener
ORA-04043: object oracle/xml/async/DOMBuilderErrorListener does not exist
resolving: oracle/xml/comp/CXMLParser
Error while resolving class oracle/xml/comp/CXMLParser
ORA-04043: object oracle/xml/comp/CXMLParser does not exist
How can I solve this problem?
Thanks in advance.Do you mean you use 8.1.5? You can't directly load the xmlparserv2.jar to it.
-
HI,
I am working on oracle 10g multimaster replication.
When i try to drop object from master site it gives me error like
SQL> BEGIN
2 DBMS_REPCAT.DROP_MASTER_REPOBJECT(
3 oname => '"AC_CHECK"',
4 type => 'TABLE',
5 sname => '"UMESH"',
6 drop_objects => FALSE);
7 END;
8 /
BEGIN
ERROR at line 1:
ORA-23308: object UMESH.AC_CHECK does not exist or is invalid
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 2874
ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 2849
ORA-06512: at "SYS.DBMS_REPCAT_UTL4", line 2926
ORA-06512: at "SYS.DBMS_REPCAT_UTL4", line 2727
ORA-06512: at "SYS.DBMS_REPCAT", line 643
ORA-06512: at line 2I can't find out the reason for it.
I more problum i am facing is when i stopped ( quiesced ) the replication activity.
my stored procedures on the master site start giving error like
sqlcode =*-23326* sqlerrm=*ORA-23326: object group "PUBLIC"."MYREPGRP" is quiesced*it means if i stop replication my database will not work while i am using asynchronous
replication.
i want my master database to work in any situation either replication is working or not.
ThnaksMake sure the replication object you want to drop really exists.
check dba_repobject and dba_objects views.
select sname, oname, type, status, gname
from dba_repobject
where oname='AC_CHECK'
[pre]select owner, object_name, object_type
from dba_objects
where object_name='AC_CHECK'
Regarding ORA-23326.
This error occurs if the replication status is QUIESCED and you want to execute DML transaction against a replicated object.
While the replication status is QUIESCED no DML transactions are allowed against the replication objects.
Usually you want to stop the replication (suspend the master activity) if you want to perform maintenance activities (drop/add rep objects). This should be done in off hours and should be planned. You should be aware that no DML transactions are allowed while the master activity is suspended.
Also be aware that when you try to suspend the activity, the database will try to push and apply all the pending transactions. This may take some time (depends on the size of the transactions). So it is good practice to make sure there are no transactions that are waiting in DEFTRANDEST queue.
If you want to read more how the QUIESCED state affects the database activity, please refer to the following link:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14226/repmaster.htm#sthref260
Cheers, -
Full import/export from 10gR2 to 11gR1 / ORA-39083: Object type PROCACT_SYS
Hi,
I did a full db export/import (data pump - skipped existing objects) from 10gR2 to 11gR1 (win2003 server). it looks like everything went fine except with this error:
is this a serious error? what should I do to fix this error?
ORA-39083: Object type PROCACT_SYSTEM failed to create with error:
ORA-20000: Incompatible version of Workspace Manager Installed
Failing sql is:
BEGIN
declare ver varchar2(100) ; dummy integer; compile_exception EXCEPTION; PRAGMA EXCEPTION_INIT(compile_exception, -06550); invalid_table EXCEPTION; PRAGMA EXCEPTION_INIT(invalid_table, -00942); procedure createErrorProc is begin execute immediate 'create or replace function system.wm$_check_install return boolean is begin return true ; end;' ; end ; begin
Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ
ORA-39083: Object type PROCOBJ failed to create with error:
ORA-29357: object AUTO_TASK_CONSUMER_GROUP already exists
Failing sql is:
BEGIN
dbms_resource_manager.create_consumer_group('AUTO_TASK_CONSUMER_GROUP','System maintenance task consumer group','ROUND-ROBIN');COMMIT; END;
ORA-39083: Object type PROCOBJ failed to create with error:
ORA-06550: line 2, column 1:
PLS-00201: identifier 'BMS_SCHEDULER.DISABLE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
Failing sql is:
BEGIN
bms_scheduler.disable( 'SYS."WEEKNIGHT_WINDOW"',force=>TRUE);
dbms_scheduler.set_attribute_null( 'SYS."WEEKNIGHT_WINDOW"','SCHEDULE_NAME');
dbms_scheduler.set_attribute_null( 'SYS."WEEKNIGHT_WINDOW"','START_DATE');
dbms_scheduler.set_attribute_null( 'SYS."WEEKNIGHT_WINDOW"','END_
Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM
Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
ORA-39083: Object type TABLE failed to create with error:
ORA-00439: feature not enabled: Partitioning
Failing sql is:
CREATE TABLE "SYSTEM"."LOGSTDBY$APPLY_PROGRESS" ("XIDUSN" NUMBER, "XIDSLT" NUMBER, "XIDSQN" NUMBER, "COMMIT_SCN" NUMBER, "COMMIT_TIME" DATE, "SPARE1" NUMBER, "SPARE2" NUMBER, "SPARE3" VARCHAR2(2000)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE( BUFFER_POOL DEFAULT) TABLESPACE "SYSAUX" PARTITION BY RANGE ("COMMIT_SCN") (PARTITION "P0" VALUES LESS THAN (0) PCTFREE 10 PCTUSED 4
ORA-39151: Table "SYSMAN"."AQ$_MGMT_NOTIFY_QTABLE_T" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
ORA-39151: Table "SYSMAN"."AQ$_MGMT_NOTIFY_QTABLE_H" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
Edited by: Odeh on Jul 29, 2009 12:49 PM
Edited by: Odeh on Jul 29, 2009 1:12 PMPl see if these MOS Docs help
730373.1 - ORA-39083 ORA-20000 Incompatible Version of Workspace Manager Installed
743097.1 - IMP-00017 ORA-20000 Importing older version of OWM into a higher version
HTH
Srini -
Ora-31684: Object type already exists with TABLE_EXISTS_ACTION=REPLACE
I want to export using expdp my procedures / functions /packages and triggers from a dev system use impdp to import the new versions into a test system
However, I just get ora-31684: Object type PACKAGE_BODY already exists all the time
I have set TABLE_EXISTS_ACTION=REPLACE but that has made no difference
expdp username/xxxxx@devdb parfile=scripts/cloud_code.par
cloud_code.par:
SCHEMAS=aspasia
DIRECTORY=cloud_upg
DUMPFILE=cloud_code.dmp
LOGFILE=cloud_codeexp.log
INCLUDE=procedure
INCLUDE=function
INCLUDE=package
INCLUDE=trigger
# INCLUDE=index
# INCLUDE=sequence
# INCLUDE=synonym
JOB_NAME=CLOUD_CODE
impdp username/xxxxx@testdb SCHEMAS=aspasia DIRECTORY=cloud_upg DUMPFILE=cloud_code.dmp LOGFILE=cloud_codeimp.log TABLE_EXISTS_ACTION=REPLACE
sample from the logfile:
Import: Release 11.2.0.1.0 - Production on Mon Jan 16 10:53:43 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
Master table "ASPASIA"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
Starting "ASPASIA"."SYS_IMPORT_SCHEMA_01": username/********@testdb SCHEMAS=aspasia DIRECTORY=cloud_upg DUMPFILE=cloud_code.dmp LOGFILE=cloud_codeimp.log TABLE_EXISTS_ACTION=REPLACE
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SERVICE_LEVELS_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SERVICE_LEVEL_OPT_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SERV_LEV_CHRG_SETUP_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SHEET_SETUP_DML_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SHEET_SETUP_FORM_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SITES_DML_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SITES_FORM_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SITES_UTL_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SITE_EMP_VIEWINGS_DML_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SPA_GMAIL" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SPA_OAUTH" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SUMMARY_PDF_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SUPPLIERS_DML_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SUPPLIER_FORM_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SUPPLIER_UTL_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SYSTEM_IMAGES_DML_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."TASKS_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."TENANCY_REPORTS_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."TENANTS_DML_K" already exists
ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."TEXT_MESSAGING_K" already exists
I've searched the forums and can't seem to find a solution as everyone just recommends TABLE_EXISTS_ACTION=REPLACE
I have also tried adding INCLUDE=PACKAGE_BODY to the impdb command but that still gives the same result and none of my packages have been updated
Thanks
RobertThanks for your reply, that would explain why it doesn't work :)
I am trying to update the test databases code with all the code from the development system (serveral hundred objects) ... I can just genereate and run a "drop <object_type> <object_name>" from user_objects on the test database first .... or just create scripts from user_source .... but it would be easier (and save a little time) just to export and import in one go -
OS=Win2003
DB=10gR2
Version = 102.0.4
Hi,
I am running a impdp on a 30gb file and well it seems to have gone fine (much faster then it normally does to be honest), but towards the end it fails, and when researching this error, it seems to be very vague and I was wondering if someone can help me. Below is the log, but I have taken parts out of it that are not relevant.
Import: Release 10.2.0.4.0 - Production on Wednesday, 16 April, 2008 15:22:18
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYSTEM"."IMPGEMDEV041608" successfully loaded/unloaded
Starting "SYSTEM"."IMPGEMDEV041608": system/********@iworksdb directory=DATA_PUMP_DIR dumpfile=expdpgemdev.dmp job_name=impgemdev041608 TABLE_EXISTS_ACTION=APPEND SCHEMAS=GEMDEV LOGFILE=IMPIWORKS_BOON.log REMAP_SCHEMA=GEMDEV:IWORKS REMAP_TABLESPACE=IWORKS_INDEX:IWORKS_IDX REMAP_TABLESPACE=IWORKS_IOT:IWORKS_IDX REMAP_TABLESPACE=IWORKS_TABLES:IWORKS_TABLES EXCLUDE=GRANT exclude=statistics STREAMS_CONFIGURATION=N
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"IWORKS" already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TYPE/TYPE_SPEC
ORA-31684: Object type TYPE:"IWORKS"."T_NUMBER_TAB" already exists
ORA-31684: Object type TYPE:"IWORKS"."T_VARCHAR2_TAB" already exists
Processing object type SCHEMA_EXPORT/TABLE/TABLE
ORA-39152: Table "IWORKS"."SYS_TOKENTYPE" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
ORA-31684: Object type PACKAGE:"IWORKS"."CONT_FEE_DEF_UC" already exists
ORA-31684: Object type PACKAGE:"IWORKS"."COPAYCALCFLAG" already exists
ORA-31684: Object type VIEW:"IWORKS"."VWTREE" already exists
ORA-31684: Object type VIEW:"IWORKS"."V_ROUTE_DTL_GROUP" already exists
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
Processing object type SCHEMA_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCOBJ
ORA-39083: Object type PROCOBJ failed to create with error:
ORA-06550: line 2, column 11:
PLS-00103: Encountered the symbol "VARCHAR2" when expecting one of the following:
:= . ( @ % ;
The symbol ":=" was substituted for "VARCHAR2" to continue.
ORA-06550: line 3, column 12:
PLS-00103: Encountered the symbol "VARCHAR2" when expecting one of the following:
:= . ( @ % ;
The symbol ":=" was substituted for "VARCHAR2" to continue.
ORA-06550: line 4, column 19:
PLS-00103: Encountered the symbol "VARCHAR
ORA-39083: Object type PROCOBJ failed to create with error:
ORA-06550: line 6, column 16:
PLS-00103: Encountered the symbol "RAYSQLACCESS9889405" when expecting one of the following:
* & = - + ; < / > at in is mod remainder not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || multiset member SUBMULTISET_
The symbol "* was inserted before "RAYSQLACCESS9889405" to continue.
ORA-06550: line 7, column 17:
PLS-00103: Encountered the symbol "SQL" when expectin
Job "SYSTEM"."IMPGEMDEV041608" completed with 2831 error(s) at 15:30:37
Any help will be much appreciatedI can not seem to find any object named PROCOBJ.
As for the object called RAYSQLACCESS9889405...no idea what this is.
I checked the source for any invalid objects and none. -
ORA-39083: Object type TRIGGER failed to create with error:
i m getting these two error when i import data using impdp.
ORA-39083: Object type TRIGGER failed to create with error:
ORA-00942: table or view does not exist
i have exported (expdp) data from production db, when i importing (impdp) the dump file to the test db i m geting the above two errors.
example:
ORA-39083: Object type TRIGGER failed to create with error:
ORA-00942: table or view does not exist
Failing sql is:
CREATE TRIGGER "NEEDLE"."CC_BCK_TRG" BEFORE INSERT OR UPDATE
ON NIIL.cc_bck_mgmt REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW
DECLARE
w_date DATE;
w_user VARCHAR2(10);
BEGIN
SELECT USER,SYSDATE INTO w_user,w_date FROM DUAL;
IF INSERTING THEN
:NEW.cretuser :=w_user;
:NEW.cretdate :=w_date;
END IF;
IF UPDATING THEN
:NEW.modiuser :=w_user;
:NEW.modidate :=w_date;
END IF;
END;
status of the above trigger in pro db is valid. and source table also exist even though i m getting error when i import
please suggest me...perhaps you don't have table... (impdp created trigger before create table)
check about "NIIL.cc_bck_mgmt" table.
and then create it (trigger) manual ;)
Good Luck. -
Working with oracle object type tables
Hi,
I've created a table which only contains Oracle object types (e.g. CREATE TABLE x OF <...>). When I create an Entity for this table using the Entity wizard, I end up with an entity with the attributes of the base object type and two special attributes REF$ (reference to the object type instance) and SYS_NC_OID$ (unique object identifier). The REF$ attribute is on the Java side of type oracle.jbo.domain.Ref and the other attribute is on the Java side a simple String.
It seems this only allows me to save objects of the base type in this table. First of all in my situation this is also impossible because the base type is not instantiable. What I do want is to save several different subtypes into this table using the BC4J custom domain mechanism. Is there any way to make this possible? I first thought I could maybe do something with the special REF$ attribute, but this doesn't seem te case. So I might need to override most of the EntityImpl methods, like doUML, remove etc. Am I right? And does anyone have any hints on how to do this?
Regards,
PeterPeter:
Hi,
I've created a table which only contains Oracle
object types (e.g. CREATE TABLE x OF <...>).
When I create an Entity for this table using the
Entity wizard, I end up with an entity with the
attributes of the base object type and two special
attributes REF$ (reference to the object type
instance) and SYS_NC_OID$ (unique object identifier).
The REF$ attribute is on the Java side of type
oracle.jbo.domain.Ref and the other attribute is on
the Java side a simple String.
It seems this only allows me to save objects of the
base type in this table. First of all in my situation
this is also impossible because the base type is not
instantiable. What I do want is to save several
different subtypes into this table using the BC4J
custom domain mechanism. Is there any way to make
this possible? Sorry, but this is not supported out of the box.
Since you have an object table, you wouldn't use domains to achieve this. Instead, you would have a superclass and subclass entity objects, e.g., PersonEO subclassed into StudentEO and EmployeeEO.
I first thought I could maybe do
something with the special REF$ attribute, but this
doesn't seem te case. So I might need to override
most of the EntityImpl methods, like doUML, remove
etc. Am I right? And does anyone have any hints on
how to do this?
If you want, you can try this by overridding EntityImpl's:
protected StringBuffer buildDMLStatement(int operation,
AttributeDefImpl[] allAttrs,
AttributeDefImpl[] retCols,
AttributeDefImpl[] retKeys,
boolean batchMode)
and
protected int bindDMLStatement(int operation,
PreparedStatement stmt,
AttributeDefImpl[] allAttrs,
AttributeDefImpl[] retCols,
AttributeDefImpl[] retKeys,
HashMap retrList,
boolean batchMode) throws SQLException
Handle the case when operation == DML_INSERT.
There, build an insert statement with substitutable row, e.g.:
INSERT INTO persons VALUES (person_t('Bob', 1234));
INSERT INTO persons VALUES (employee_t('Joe', 32456, 12, 100000));
where person_t and employee_t are database types and you are invoking the respective constructor.
Thanks.
Sung -
ORA- 31684 Object type already exists while import
Hi All,
I wrongly imported a user schema "AP_PD@SRV01" to user "A_IT@SRV02" (Instead of "AP_IT@SRV02").
User AP_IT and Tablespaces are already exists and used remap option while import.
remap_schema=AP_PD:A_IT (instead of mapping to user AP_IT, I misspelled as A_IT)
remap_tablespace=AP_PD_DATA:AP_IT_DATA remap_tablespace=AP_PD_INDEX:AP_IT_INDEX
After successful import to "A_IT@SRV02", I deleted the user "A_IT"
SQL> DROP USER A_IT CASCADE;
I restarted the import to the correct user schema .. i.e AP_IT@SRV02
remap_schema=AP_PD:AP_IT remap_tablespace=AP_PD_DATA:AP_IT_DATA remap_tablespace=AP_PD_INDEX:AP_IT_INDEX
and import was completed with the following errors
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"AP_IT" already exists
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC
ORA-31684: Object type PACKAGE:"AP_IT"."DBMS_NUMSYSTEM" already exists
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY
ORA-31684: Object type PACKAGE_BODY:"AP_IT"."DBMS_NUMSYSTEM" already exists
Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 3 error(s) at 07:53:32
My questions ...
1.Can I assume that import was success as these objects were already exists.
2.Does this effect in anyway to the end users if I ignore this errors assuming import was successful.
3.If import is not a success then what should be my next step to import successfully.
Thanks.Ven wrote:
Hi All,
I wrongly imported a user schema "AP_PD@SRV01" to user "A_IT@SRV02" (Instead of "AP_IT@SRV02").
User AP_IT and Tablespaces are already exists and used remap option while import.
remap_schema=AP_PD:A_IT (instead of mapping to user AP_IT, I misspelled as A_IT)
remap_tablespace=AP_PD_DATA:AP_IT_DATA remap_tablespace=AP_PD_INDEX:AP_IT_INDEX
After successful import to "A_IT@SRV02", I deleted the user "A_IT"
SQL> DROP USER A_IT CASCADE;
I restarted the import to the correct user schema .. i.e AP_IT@SRV02
remap_schema=AP_PD:AP_IT remap_tablespace=AP_PD_DATA:AP_IT_DATA remap_tablespace=AP_PD_INDEX:AP_IT_INDEX
and import was completed with the following errors
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"AP_IT" already exists
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC
ORA-31684: Object type PACKAGE:"AP_IT"."DBMS_NUMSYSTEM" already exists
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY
ORA-31684: Object type PACKAGE_BODY:"AP_IT"."DBMS_NUMSYSTEM" already exists
Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 3 error(s) at 07:53:32
My questions ...
1.Can I assume that import was success as these objects were already exists.
2.Does this effect in anyway to the end users if I ignore this errors assuming import was successful.
3.If import is not a success then what should be my next step to import successfully.
Thanks.You mentioned AP_IT schema and tablespaces already exist before doing first import itself.
Did you check the list of objects in AP_IT schema before performing import?
The following error is just an informational message and can be ignored:
ORA-31684: Object type USER:"AP_IT" already exists
But, the other 2 errors which says that package +"AP_IT"."DBMS_NUMSYSTEM" already exists+ means you have package in AP_IT schema and it wasn't replaced from the dump you imported. If you need the package from the dumpfile, you can drop the package and can import PACKAGE alone.
Hope this helps.
Regards,
Murali Mohan -
Synchronize WF LOCAL tables in R12 failed with error :ORA-14501 object is
Hi All,
In our R12 enviroment "Synchronize WF LOCAL tables" conc program failing with :ORA-14501 object is not partitioned.
Tried solution as per doc id . 433280.1 -- Partitions in Workflow Local Tables are Automatically Switched to NOLOGGING . But no success.
Please help.Hi Hussein,
Thanks for reply. Please find the below details.
RELEASE_NAME
12.1.3
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Linux **** 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
Conc Req Log file
Application Object Library: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
FNDWFLSC module: Synchronize WF LOCAL tables
Current system time is 19-JUN-2012 05:49:20
**Starts**19-JUN-2012 05:49:20
**Ends**19-JUN-2012 05:49:20
ORA-14501: object is not partitioned
Start of log messages from FND_FILE
End of log messages from FND_FILE
Executing request completion options...
Output file size:
0
Finished executing request completion options.
Concurrent request completed
Current system time is 19-JUN-2012 05:49:20
--------------------------------------------------------------------------- -
ORA-31684: Object type PACKAGE_BODY: already exists while doing Import
Hello,
While doing IMPDP actvity i am getting messages like ORA-31684: Object type PACKAGE_BODY:"APPS"."AZ_DELETE" already exists.
Complete Import log file, same messages were encountered like already exists .
Can you please let us know, whether it is ignorable, beacuse object already exists Or any workaround.
Thanks,
DBACan you please let us know, whether it is ignorable, beacuse object already exists Or any workaroundI wouldn't say its ignorable.We don't know if the package body is same or not.Was you requirement to import full schema? If so did you drop all the objects or schema and then imported?
Anand -
Impdp ORA-31684: Object type USER:"USERNAME" already exists
Hi,
I use expdp/impdp to duplicate one schema in a database like this:
expdp system/manager@DB SCHEMAS=SCHEMANAME
then I drop destination Schema like this
drop user SCHEMANAME_NEW cascade;
create user SCHEMANAME_NEW identified by PW default tablespace TABLESPACENAME;
and impdp like this
impdp system/manager@DB FULL=Y REMAP_SCHEMA=SCHEMANAME:SCHEMANAME_NEW
and I get this error:
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"SCHEMANAME_NEW" already exists
I know that the import was successful, but this error breaks my hudson build.
I tried to add exclude like this
impdp system/manager@DB FULL=Y REMAP_SCHEMA=SCHEMANAME:SCHEMANAME_NEW exclude=USER:\"=\'SCHEMANAME_NEW\'\"
I need to get rid of this error.
ThxYou get this error because you precreated the user. All you need to do is add
exclude=user
to either your expdp or impdp command. Or let impdp create the user for you. If you need it to have a different tablespace you can just use the
remap_tablespace=old_tbs:new_tbs
This should take care of the default tablespace on the create user command.
Dean -
ORA-31603:While Extracting SQL of a table I am getting this error.
Hi,
I am getting below error whenever I try to get the SQL for any table. I tried executing DBMS_METADATA() also but the same error is coming.
Please let me know what needs to be done IF I want to extract the DDL for any object.
ORA-31603: object "EMP" of type TABLE not found in schema "MKT"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "SYS.DBMS_METADATA", line 3241
ORA-06512: at "SYS.DBMS_METADATA", line 4812
ORA-06512: at line 1
Thanks,
Rusty....Hi,
use AUTHID CURRENT_USER show as below exmaple...
CREATE OR REPLACE FUNCTION xx_get_ddl(
p_object_type IN VARCHAR2
, p_object_name IN VARCHAR2
, p_owner IN VARCHAR2
RETURN CLOB AUTHID CURRENT_USER
IS
v_string CLOB;
BEGIN
SELECT DBMS_METADATA.get_ddl(p_object_type
, p_object_name
, p_owner
INTO v_string
FROM DUAL;
RETURN v_string;
EXCEPTION
WHEN OTHERS
THEN
RETURN NULL;
END;
Maybe you are looking for
-
I just tried sending a email from my iphone this morning and I get the message "Cannot Send Mail, the sender address was invalid" For the past 3 months everything has been fine and mail has been working perfectly. I haven't changed any of the setting
-
What are logics for the SAP UI icons of "Back", "Exit" and "Cancel"?
Hi SAP experts, This question may sound kind of strange - isn't that obvious? While, it is in fact a very important and difficult issue for UI app implementations when UI flow should be kept persistant. I have been feeling confused when doing UI impl
-
Hello, I'm fairly new to the Java language. Recently I was writing a program revolving around the creation of classes and constructors...my code looks like this: import java.util.Scanner; class Money{ private static int dollars, cents; Mone
-
Unable to be productive on IPAD may i have my money back
Unable to add & delete files lost 2000 pics nothing is working on Ipad 2 after this last upgrade, 125K an hour for the time wasted with this piece of crap, contatc me to make payment. Moving to the android tablet, after 3 years screw you apple. pay m
-
How to customize an interactive report PDF using a BI Publisher template
Hi, I am trying to figure out how to get an interactive report to work with BI Publisher. I want it so that I can create a custom RTF template with custom headings, and then apply this for the interactive report. On the front end, when a user runs an