Apex 4.0 import error - integrity constraint (APEX_040000.WWV_FLOWS_FK)
I have a new Oracle Express 10G instance with Application Express 4.0 installed on it. I am trying to import an existing application that has been exported using Application Express. I get this error. How do I fix this?
SQL> connect apex_040000/xxxxxxxxx
Connected.
SQL> show user
USER is "APEX_040000"
SQL> @C:\apex_misc\f41362_app_export_092010.sql
APPLICATION 41362 - REQ Tracker
Set Credentials...
Check Compatibility...
API Last Extended:20100513
Your Current Version:20100513
This import is compatible with version: 20100513
COMPATIBLE (You should be able to run this import without issues.)
Set Application ID...
begin
ERROR at line 1:
ORA-02291: integrity constraint (APEX_040000.WWV_FLOWS_FK) violated - parent
key not found
ORA-06512: at "APEX_040000.WWV_FLOW_API", line 621
ORA-06512: at line 3
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Produ
ction
Hi,
as you say your Apex instance is new - does the workspace you exported the application from exist on your new apex instance? Probably not. You could try to set the appropriate one using the API like this:
exec wwv_flow_api.set_security_group_id(p_security_group_id => apex_util.find_security_group_id(p_workspace => 'XYZ'));This still requires that you already have created the workspace.
Is there a reason why you don't import the application with the workspace import?
-Udo
Similar Messages
-
How to export-import referential integrity constraints ?
Hi all
Is there any way to export only the referential integrity constraints from one user to another user ?
Suppose i am having SCOTT user which is having EMP , DEPT tables . And also I am having another user (say TEST) which also is having those EMP and DEPT table but without the referential integrity constraints . Now can i export
referential integrity constraints from SCOTT and import into TEST so that EMP,DEPT tables(in TEST) will have those referential integrity constraints which are present in SCOTT user ?
Thanks
Debashis
BangaloreHi,
See the BAM Enterprise Link Utilities User's Guide for additional Enterprise Link import/export capabilities not exposed via ICommand.
Regards, Stephen -
APEX Application Export/Import
Hi,
I have my application build in APEX on 10.2.0.4 database which now i want to migrate to 11.2. Name of schema on the back of my application is DBADMIN. What i have done is, i just exported the application from my current apex on 10.2.0.4 and tried to import on my 11.2 but it gives me following error message
ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 80, column 32: PLS-00103: Encountered the symbol "!" when expecting one of the following: ( - + case mod new not null <an identifier> <a double-quoted delimited-identifier> <a bind variable> continue avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date <a string litThis is first time i am migrating my application so please help to find out what is the issue and how to resolve it. Following is the detail how i performed the operation
Source APEX
Workspace name = Monitoring
User of application which loged in to this workspace and created application = SALMAN
Application name = Monitoring
Database schema name behind application = DBADMIN
I exported application in UNIX and also DOS format
Destination APEX
Workspace name = Monitoring
User of application which loged in to import the application = UTACADMIN
Database schema name behind application = DBADMIN and i have already exported the schema from my source database have imported all the objects with data
Tried importing application from UNIX as well as DOS script but same error message as above.
Please guide me how can i successfully migrate my application from my source APEX to this new APEX
ThanksNow i exported the workspace from my source APEX and imported in destination and everything is fine and now apparently everything is same but still same error during import of the application, please help to resolve.
I tried to execute the application export script on sqlplus, but following error was returned
EMREP.UTAC.COM.SG$APEX_030200> @d:\f100.sql
APPLICATION 100 - Monitoring
Set Credentials...
Check Compatibility...
API Last Extended:20090112
Your Current Version:20090112
This import is compatible with version: 20090112
COMPATIBLE (You should be able to run this import without issues.)
Set Application ID...
begin
ERROR at line 1:
ORA-02291: integrity constraint (APEX_030200.WWV_FLOWS_FK) violated - parent
key not found
ORA-06512: at "APEX_030200.WWV_FLOW_API", line 555
ORA-06512: at line 3Thanks
Salman -
How to create business rule for 'Integrity constraint - child not found'
Hello, I am using JDeveloper 11.1.2.3.0.
When an integrity constraint is violated an error message coming from database is displayed in my application. In this case is the error "integrity constraint (TableName) violated - child record found "
How can I personalize the error shown in this case? I tried with EO business rules but I couldn't find this key, only "Key exists" or "UniqueKey".
Can anyone help?Check Catch Me If You Can article. This should be handled there as one of the errors thrown in the model layer. Check the AdfmErrorHandlerImpl ...
Timo -
Hi community,
I got an awful application import error.
ORA-20001: GET_BLOCK Error. ORA-20001: GET_STMT error. ORA-20001: Execution of the statement was unsuccessful. ORA-00001: unique constraint (FLOWS_030100.WWV_FLOW_FLOW_PK) violated <pre>--application/create_application <br> <br>begin <br> <br>wwv_flow_api.create_flow( <br> p_id => 381, <br> p_display_id=> 381, <br&amp
Error installing application.What did I do?
Developed some in my test environment (APP ID 381) and made a normal export like 100 times before. When I tried to import that application in APP ID 380 the error occurred.
More information:
Both applications are in the same workspace.
APEX 3.1.2
Oracle XE
I tried a bit around:
Import in another workspace > same error
Restart OAS try to import> same error
Deletion of APP 380 and the try to import > same error
Import of an older version > successfully no errors
Try to make a new export of APP ID 381 > same error on import
Don't want to delete app 381! :O
Seems like something inside of the application/export is wrong.Hi Scott,
the query returns
select grantee from dba_role_privs where granted_role='APEX_ADMINISTRATOR_ROLE';
GRANTEE
SYSI tried to install the export in another apex database environment. New error occurred.
ORA-20001: GET_BLOCK Error.
ORA-20001: Execution of the statement was unsuccessful.
ORA-02291: integrity constraint
(FLOWS_030100.WWV_FLOW_SEC_SCHEMES_FK) violated - parent key not found <pre>begin
--application/shared_components/security/authorization/t_users
wwv_flow_api.create_security_scheme( p_id =&gt; 18109134549712168 + wwv_flow_api.g_id_offset, p_flow_id =&gt;
wwv_flow.g_flow_id, p_name=&gt;'T_USERS', p_scheme_type=&gt;'EXISTS', p_scheme=&gt;'select cI looked in the export file for the error part and found some interesting code. See:
prompt ...authorization schemes
begin
--application/shared_components/security/authorization/t_users
wwv_flow_api.create_security_scheme(
p_id => 18109134549712168 + wwv_flow_api.g_id_offset,
p_flow_id => wwv_flow.g_flow_id,
p_name=>'T_USERS',
p_scheme_type=>'EXISTS',
p_scheme=>'select count(*) from v_mze_appl '||chr(10)||
'where NAME like UPPER(:P101_USERNAME)'||chr(10)||
'and ROLE IN (''APEX_MZE_ADMIN'',''APEX_MZE_USERS'')'||chr(10)||
p_caching=>'BY_USER_BY_PAGE_VIEW',
p_error_message=>'Sie haben keine Berechtigungen für diese Seite');
--application/shared_components/security/authorization/t_auswertung
wwv_flow_api.create_security_scheme(
p_id => 42071873141249964 + wwv_flow_api.g_id_offset,
p_flow_id => wwv_flow.g_flow_id,
p_name=>'T_AUSWERTUNG',
p_scheme_type=>'EXISTS',
p_scheme=>'select count(*) from v_mze_appl '||chr(10)||
'where NAME like UPPER(:P101_USERNAME)'||chr(10)||
'and ROLE IN (''APEX_MZE_ADMIN'',''APEX_MZE_REPORT'')'||chr(10)||
p_caching=>'BY_USER_BY_PAGE_VIEW',
p_error_message=>'No rights for the page');
--application/shared_components/security/authorization/t_berechtigungen
wwv_flow_api.create_security_scheme(
p_id => 42072157819264447 + wwv_flow_api.g_id_offset,
p_flow_id => wwv_flow.g_flow_id,
p_name=>'T_BERECHTIGUNGEN',
p_scheme_type=>'EXISTS',
p_scheme=>'select count(*) from v_mze_appl '||chr(10)||
'where NAME like UPPER(:P101_USERNAME)'||chr(10)||
'and ROLE IN (''APEX_MZE_ADMIN'',''APEX_MZE_BERECHTIGUNGEN'')'||chr(10)||
p_caching=>'BY_USER_BY_PAGE_VIEW',
p_error_message=>'No rights for the page');
--application/shared_components/security/authorization/t_kategorien
wwv_flow_api.create_security_scheme(
p_id => 42072262321265732 + wwv_flow_api.g_id_offset,
p_flow_id => wwv_flow.g_flow_id,
p_name=>'T_KATEGORIEN',
p_scheme_type=>'EXISTS',
p_scheme=>'select count(*) from v_mze_appl '||chr(10)||
'where NAME like UPPER(:P101_USERNAME)'||chr(10)||
'and ROLE IN (''APEX_MZE_ADMIN'',''APEX_MZE_KATEGORIEN'')',
p_caching=>'BY_USER_BY_PAGE_VIEW',
p_error_message=>'No rights for the page');
end;
/Looks like the p_id for T_USERS is wrong. Exactly what the error tries to describe too. How could that happen and how can I solve that issue? I will try and save the t_users group again and will create a new export.
King regards,
Tobias
Edited by: Tobias Arnhold on Mar 2, 2009 8:23 AM -
Error Message for Integrity Constraint
Hi,
I have a table with called TMREF_MEDIATION_DATA_TREATMENT and one called TMREF_UOC_CRITERIA_MAPPING. There is a foreign key constraint and the TMREF_UOC_CRITERIA_MAPPING
table has the UID column from the other table in it. When I select delete form TMREF_MEDIATION_DATA_TREATMENT I get an error as expected:
ORA-02292: integrity constraint (MRS_DEV.TMREF_UOC_CRIT_TO_TREAT_FK2) violated - child record found
Error
Unable to process row of table TMREF_MEDIATION_DATA_TREATMENT.
OK
But is there any way that I can make this error more user friendly? I do not want it to delete if there is a child record - it must just warn the user.
Thanks.You could use this method:
http://apex.oracle.com/pls/otn/f?p=31517:185
which is in the page process. However, you could also create a validation, which will fire before the process is run and check the same.
Entering an invalid number will violate the constraint (the column is a number column) and this will then call the exception INVALID_NUMBER. You may also declare the constraint exception using
child_record_not_found EXCEPTION;
PRAGMA EXCEPTION_INIT (child_record_not_found, -02292);
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Error while crreate variable in New work repository -- integrity constraint
Hi,
I had created new Master and work reposiotry with new Internal ID's.
I am able to import project, variables.
while creating new variable I am getting below error.
java.sql.BatchUpdateException: ORA-02291: integrity constraint (SNPW.FK_TXT) violated - parent key not found
Could any one got this error before
Is there any steps I missed. -- Any help is Appreciatied.Hi,
Table SNP_TXT in your work repository has a foreign key reference with table SNP_ORIG_TXT
on column I_TXT_ORIG,
while you are inserting a new variable for the project etc, it is getting inserted in SNP_TXT
before insertion it is checking the I_TXT_ORIG value with the table SNP_ORIG_TXT .
Please do select on these tables in your old repository and your new repository.
and let me know.
Reshma -
Integrity constraint error during install
We have installed htmldb on zlinux from the companion CD.
Because we had an error during install of the flows schema we repeat it (have removed the Flows-User and Flow-Files before) using ins.sql! The apache was still running.
Most of the new installation was fine but near the end we got:
error creating "Procedure arguments" id=122 Ora-01400, cannot insert NULL into ("FLOWS_010500,"WWv_Flows_STEPS","SECURITY_GROUP_ID")
declare
Error at line1
Ora-02291- integrity constraint(FLOWS_0150000.WWV_FLOW_PLUG_ZO_PAGE_FK) violated
parent key not found
ORA-06512 at "FLOWS_01500.WWV_FLOW_API line 4695
...OK, it's solved:
I finally managed to install Apex 3.0 correctly once I figured out my error.
I was logging in remotely to the server the dadbase was on, then trying to connect to sqlplus using 'sys/password@instance as sysdba' to run the script.
Turns out that the problem had something to do with sys not being allowed to be sysdba when I log in remotely, or that having the username/password and instance info in there made the program think I was logging in remotely and therefore not giving me sysdba privileges.
The root of the problem was running the install .sql without the correct privileges.
Since I found out the database server I was trying to install on uses OS authentication, I remote-connected to the database server as the oracle user, tried to run the install .sql again after connecting to sqlplus: 'conn / as sysdba'
and everything worked like a charm!
~PF :) -
Hi:
i am trying to insert records into two tables from a jsp page,
table A and table B. the column A1 is foregin key for table B.
whe i execute the add method it does the isert successfully for
table A but gives error for table B. this si the error i get:
"ORA-02291:Integrity constraint violeted: parent key not found"
should the insert statement in table A be committed before the
insert on table B is executed? fi so please tell me how to do
that. and if not please give me some suggestion. thank you.The following works for me (11gR2)...
create or replace type OTester
is object
id integer
Type created.
create
table Tester_Object
of OTester
primary key (id)
object identifier is primary key
Table created.
create
table Tester_Object_2
of OTester
primary key (id)
object identifier is primary key
Table created.
create
table Tester_Reference
tester ref OTester scope is Tester_Object
Table created.
create
index IN_Tester_Reference
on Tester_Reference
tester
Index created.
alter
table Tester_Reference
add (
foreign key (tester) references Tester_Object on delete cascade
Table altered.
insert
into Tester_Object
values (
OTester(1)
1 row created.
select o.*
from Tester_Object o
ID
1
1 row selected.
insert
into Tester_Reference
select ref(o)
from Tester_Object o
1 row created.
select r.*
from Tester_Reference r
TESTER
00004A038A0046876B2B6FC9014CDBAAC357A4FEDBA5D40000
001426010001000100290000000000090626002A00078401FE
0000000A02C102000000000000000000000000000000000000
0000
1 row selected.
delete
from Tester_Object
1 row deleted.
select o.*
from Tester_Object o
no rows selected.
select r.*
from Tester_Reference r
no rows selected.
insert
into Tester_Object_2
values (
OTester(2)
1 row created.
select o.*
from Tester_Object_2 o
ID
2
1 row selected.
insert
into Tester_Reference
select ref(o)
from Tester_Object_2 o
Error at line 136
ORA-22819: scope of input value does not correspond to the scope of the target
Please post code describing your own situation if this is not working for you.
Gerard -
Hello everyone!
I have some problems with importing a database, I can't find the answer so I turn to you people.
I've tried to import to an empty database (with the necessary tables of course) but that gave more errors, so I created the important schemes and tables with the sqls from the original database.
The original database is working, everything is in there so I don't really understand the "not found" or "does not exists" errors, because I think Oracle is supposed to do the import in such a way, that the connections between objects doesn't get lost, so the database is built up from the bottom.
The machine I export the data from:
CentOS 5.5
Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
NLS_CHARACTERSET EE8MSWIN1250
nls_length_semantics string BYTE
The machine I try to import data:
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
NLS_CHARACTERSET AL32UTF8
nls_length_semantics string CHAR
(Before you ask, we are Platinum Partners that is why we have Enterprise Edition, we can use it but we don't have support)
The export command: expdp system/password full=y directory=dmpdir dumpfile=export.dmp logfile=export.log
Job "SYSTEM"."SYS_EXPORT_FULL_01" completed successfully at: 14:46:34
The import command: impdp system/password full=y directory=dmpdir table_exists_action=append dumpfile=export.dmp logfile=import_db.log
Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 999 error(s) at 15:55:46
The errors I don't understand:
ORA-39083: Object type JOB failed to create with error:
ORA-00001: unique constraint (SYS.I_JOB_JOB) violated
ORA-31693: Table data object "SYSMAN"."MGMT_JOB_PURGE_POLICIES" failed to load/unload and is being skipped due to error:
ORA-00001: unique constraint (SYSMAN.PK_MGMT_JOB_PURGE_POL) violated
ORA-31693: Table data object "SYSMAN"."MGMT_JOB_SINGLE_TARGET_TYPES" failed to load/unload and is being skipped due to error:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
ORA-31693: Table data object "SYSMAN"."MGMT_CREDENTIALS2" failed to load/unload and is being skipped due to error:
ORA-29913: error in executing ODCIEXTTABLEFETCH callout
ORA-28239: no key provided
ORA-31693: Table data object "SYSMAN"."MGMT_HC_VENDOR_SW_COMPONENTS" failed to load/unload and is being skipped due to error:
ORA-29913: error in executing ODCIEXTTABLEFETCH callout
ORA-02291: integrity constraint (SYSMAN.VNC_VND_FK) violated - parent key not found
KUP-11007: conversion error loading table "SCHAME_NAME"."TABLE_NAME"
ORA-12899: value too large for column COLUMN_NAME (actual: 3767, maximum: 4000)
KUP-11009: data for row: COLUMN_NAME: 0X'4146414245484E41507C4146414245484E41507CC166616265'
And many objects are missing, triggers, sequences, indexes. Much more than the number of errors in the import_db.log.
I hope someone can help me.
Thank you in advance,
Adam
Edited by: 925120 on Apr 3, 2012 1:55 AM
Edited by: 925120 on Apr 3, 2012 2:07 AMHi, and welcome to OTN!
Firstly, try to create the new database with the same character set and nls_length_semantics,
The machine I export the data from:
CentOS 5.5
Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
NLS_CHARACTERSET EE8MSWIN1250
nls_length_semantics string BYTE
The machine I try to import data:
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
NLS_CHARACTERSET AL32UTF8
nls_length_semantics string CHARThis could be responsible for the error:
KUP-11007: conversion error loading table "SCHAME_NAME"."TABLE_NAME"
ORA-12899: value too large for column COLUMN_NAME (actual: 3767, maximum: 4000)Secondly, I often find it better to not do a full export/import when moving between databases, and especially when moving between different database versions. The importing database have a (almost) fully populated sys and sysman-schema, and the full import is trying to add stuff to those schemas, causing all kind of violations.
So, could you try to either export only the schemas that you're interested in (the user schemas), or just import these from the full export, and post the results?
HtH
Johan
BTW, here's more info on expdp/impdp: http://www.orafaq.com/wiki/Data_Pump -
am loading a bulk insert in fdm and getting this error:
Processing Codes:
BLANK............. Line is blank or empty.
ESD............... Excluded String Detected, SKIP Field value was found.
NN................ Non-Numeric, Amount field contains non numeric characters.
RFM............... Required Field Missing.
TC................ Type Conversion, Amount field could be converted to a number.
ZP................ Zero Suppress, Amount field contains a 0 value and zero suppress is ON.
Create Output File Start: [2013-07-11-13:53:49]
[TC] - [Amount=NN] HH CONCUR STANDARD EXPORT WITH HDR EXPORTID:02013061620130617USCAAV
[TC] - [Amount=NN] TT RECORD COUNT: 000000618 TOTAL AMT: 0000000000083772.2400 TOTAL ABS AMT: 0000000000087672.2400 SUM OF CREDITS:0000000000001950.0000 SUM OF DEBITS:0000000000085722.2400
[Blank] -
Excluded Record Count..............2
Blank Record Count.................1
Total Records Bypassed.............3
Valid Records......................618
Total Records Processed............621
Begin Oracle (SQL-Loader) Process (618): [2013-07-11-13:53:49]
Oracle (SQL-Loader) Log File Contents:
SQL*Loader: Release 11.2.0.1.0 - Production on Thu Jul 11 13:53:50 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Control File: C:\DOCUME~1\fdmadmin\LOCALS~1\Temp\tW502216176079404941.ctl
Data File: C:\DOCUME~1\fdmadmin\LOCALS~1\Temp\tW502216176079404941.tmp
Bad File: C:\DOCUME~1\fdmadmin\LOCALS~1\Temp\tW502216176079404941.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Continuation: none specified
Path used: Direct
Load is UNRECOVERABLE; invalidation redo is produced.
Table TW502216176079404941, loaded from every logical record.
Insert option in effect for this table: APPEND
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
DATAKEY SEQUENCE (1, 1)
PARTITIONKEY FIRST * CHARACTER
Terminator string : '~|'
CATKEY NEXT * CHARACTER
Terminator string : '~|'
PERIODKEY NEXT * DATE YYYYMMDD
Terminator string : '~|'
DATAVIEW NEXT * CHARACTER
Terminator string : '~|'
ACCOUNT NEXT * CHARACTER
Terminator string : '~|'
ENTITY NEXT * CHARACTER
Terminator string : '~|'
ICP NEXT * CHARACTER
Terminator string : '~|'
UD1 NEXT * CHARACTER
Terminator string : '~|'
UD2 NEXT * CHARACTER
Terminator string : '~|'
UD3 NEXT * CHARACTER
Terminator string : '~|'
UD4 NEXT * CHARACTER
Terminator string : '~|'
UD5 NEXT * CHARACTER
Terminator string : '~|'
UD6 NEXT * CHARACTER
Terminator string : '~|'
UD7 NEXT * CHARACTER
Terminator string : '~|'
UD8 NEXT * CHARACTER
Terminator string : '~|'
UD9 NEXT * CHARACTER
Terminator string : '~|'
UD10 NEXT * CHARACTER
Terminator string : '~|'
UD11 NEXT * CHARACTER
Terminator string : '~|'
UD12 NEXT * CHARACTER
Terminator string : '~|'
UD13 NEXT * CHARACTER
Terminator string : '~|'
UD14 NEXT * CHARACTER
Terminator string : '~|'
UD15 NEXT * CHARACTER
Terminator string : '~|'
UD16 NEXT * CHARACTER
Terminator string : '~|'
UD17 NEXT * CHARACTER
Terminator string : '~|'
UD18 NEXT * CHARACTER
Terminator string : '~|'
UD19 NEXT * CHARACTER
Terminator string : '~|'
UD20 NEXT * CHARACTER
Terminator string : '~|'
DESC1 NEXT * CHARACTER
Terminator string : '~|'
DESC2 NEXT * CHARACTER
Terminator string : '~|'
ATTR1 NEXT * CHARACTER
Terminator string : '~|'
ATTR2 NEXT * CHARACTER
Terminator string : '~|'
ATTR3 NEXT * CHARACTER
Terminator string : '~|'
ATTR4 NEXT * CHARACTER
Terminator string : '~|'
ATTR5 NEXT * CHARACTER
Terminator string : '~|'
ATTR6 NEXT * CHARACTER
Terminator string : '~|'
ATTR7 NEXT * CHARACTER
Terminator string : '~|'
ATTR8 NEXT * CHARACTER
Terminator string : '~|'
ATTR9 NEXT * CHARACTER
Terminator string : '~|'
ATTR10 NEXT * CHARACTER
Terminator string : '~|'
ATTR11 NEXT * CHARACTER
Terminator string : '~|'
ATTR12 NEXT * CHARACTER
Terminator string : '~|'
ATTR13 NEXT * CHARACTER
Terminator string : '~|'
ATTR14 NEXT * CHARACTER
Terminator string : '~|'
MEMOKEY NEXT * CHARACTER
Terminator string : '~|'
AMOUNT NEXT * CHARACTER
Terminator string : '~|'
CALCACCTTYPE CONSTANT
Value is '9'
CHANGESIGN CONSTANT
Value is '0'
AMOUNTX CONSTANT
Value is '0'
ACCOUNTR CONSTANT
Value is '0'
ACCOUNTF CONSTANT
Value is '0'
ENTITYR CONSTANT
Value is '0'
ENTITYF CONSTANT
Value is '0'
ICPR CONSTANT
Value is '0'
ICPF CONSTANT
Value is '0'
UD1R CONSTANT
Value is '0'
UD1F CONSTANT
Value is '0'
UD2R CONSTANT
Value is '0'
UD2F CONSTANT
Value is '0'
UD3R CONSTANT
Value is '0'
UD3F CONSTANT
Value is '0'
UD4R CONSTANT
Value is '0'
UD4F CONSTANT
Value is '0'
UD5R CONSTANT
Value is '0'
UD5F CONSTANT
Value is '0'
UD6R CONSTANT
Value is '0'
UD6F CONSTANT
Value is '0'
UD7R CONSTANT
Value is '0'
UD7F CONSTANT
Value is '0'
UD8R CONSTANT
Value is '0'
UD8F CONSTANT
Value is '0'
UD9R CONSTANT
Value is '0'
UD9F CONSTANT
Value is '0'
UD10R CONSTANT
Value is '0'
UD10F CONSTANT
Value is '0'
UD11R CONSTANT
Value is '0'
UD11F CONSTANT
Value is '0'
UD12R CONSTANT
Value is '0'
UD12F CONSTANT
Value is '0'
UD13R CONSTANT
Value is '0'
UD13F CONSTANT
Value is '0'
UD14R CONSTANT
Value is '0'
UD14F CONSTANT
Value is '0'
UD15R CONSTANT
Value is '0'
UD15F CONSTANT
Value is '0'
UD16R CONSTANT
Value is '0'
UD16F CONSTANT
Value is '0'
UD17R CONSTANT
Value is '0'
UD17F CONSTANT
Value is '0'
UD18R CONSTANT
Value is '0'
UD18F CONSTANT
Value is '0'
UD19R CONSTANT
Value is '0'
UD19F CONSTANT
Value is '0'
UD20R CONSTANT
Value is '0'
UD20F CONSTANT
Value is '0'
ARCHIVEID CONSTANT
Value is '9574'
HASMEMOITEM CONSTANT
Value is '0'
STATICDATAKEY CONSTANT
Value is '0'
Referential Integrity Constraint/Trigger Information:
NULL, UNIQUE, and PRIMARY KEY constraints are unaffected.
Trigger FDM_USER."TW502216176079404941_AK" was disabled before the load.
FDM_USER."TW502216176079404941_AK" was re-enabled.
Table TW502216176079404941:
618 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Date cache:
Max Size: 1000
Entries : 1
Hits : 617
Misses : 0
Bind array size not used in direct path.
Column array rows : 3000
Stream buffer bytes: 256000
Read buffer bytes:18576000
Total logical records skipped: 0
Total logical records read: 618
Total logical records rejected: 0
Total logical records discarded: 0
Total stream buffers loaded by SQL*Loader main thread: 1
Total stream buffers loaded by SQL*Loader load thread: 1
Run began on Thu Jul 11 13:53:50 2013
Run ended on Thu Jul 11 13:53:51 2013
Elapsed time was: 00:00:01.47
CPU time was: 00:00:00.87
Processing Complete... [2013-07-11-13:53:51]the information provided is a little scant, but i am assuming this is a single period load using the import format, and the file you are importing has different record types in the file. The two records shown in the report appear on first viewing to be some sort of header record and a trailer. do you need these records to be loaded hence the question? Or, do you wish to exclude the records but actually have something in the import format to exclude them so they do not appear on the report?
-
Hi,
We are having trouble while importing one ledger 'GERMANY EUR GGAAP'. It works for Dec 2014 but while trying to import data for 2015 it gives an error.
Import error shows " RuntimeError: No periods were identified for loading data into table 'AIF_EBS_GL_BALANCES_STG'."
I tried all Knowledge docs from Oracle support but no luck. Please help us resolving this issue as its occurring in our Production system.
I also checked all period settings under Data Management> Setup> Integration Setup > Global Mapping and Source Mapping and they all look correct.
Also its only happening to one ledger rest all ledgers are working fine without any issues.
ThanksHi,
there are some Support documents related to this issue.
I would suggest you have a look to them.
Regards -
Differences between trigger and Integrity Constraints
waht are the differences between trigger and Integrity Constraints
waht are the differences between trigger and Integrity ConstraintsConstraints are to be preferred:
"Declarative Ease
Define integrity constraints using SQL statements. When you define or alter a table, no additional programming is required. The SQL statements are easy to write and eliminate programming errors. Oracle controls their functionality. For these reasons, declarative integrity constraints are preferable to application code and database triggers. The declarative approach is also better than using stored procedures, because the stored procedure solution to data integrity controls data access, but integrity constraints do not eliminate the flexibility of ad hoc data access.
Centralized Rules
Integrity constraints are defined for tables (not an application) and are stored in the data dictionary. Any data entered by any application must adhere to the same integrity constraints associated with the table. By moving business rules from application code to centralized integrity constraints, the tables of a database are guaranteed to contain valid data, no matter which database application manipulates the information. Stored procedures cannot provide the same advantage of centralized rules stored with a table. Database triggers can provide this benefit, but the complexity of implementation is far greater than the declarative approach used for integrity constraints."
More:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/data_int.htm#sthref2976 -
Toplink Delete Integrity Constraint.
I have been beating my head against my key board for a few days on this.
Note: Names of packages/class names/DB info altered because I am paranoid.
Excerpts from my toplink log....
Deleted Objects:
Key: [588504] Identity Hash Code: 25872956 Object: ChildClass@18aca3c#588504
Key: [629458] Identity Hash Code: 1812473 Object: ChildClass@1ba7f9#629458
Key: [321343] Identity Hash Code: 11471177 Object: ParentClass@af0949#321343
Key: [588850] Identity Hash Code: 28648193 Object: ChildClass@1b52301#588850
Key: [321712] Identity Hash Code: 303169 Object: ParentClass@4a041#321712
DeleteObjectQuery(ParentClass@af0949#321343)
DeleteObjectQuery(ParentClass@4a041#321712)
DeleteObjectQuery(ChildClass@18aca3c#588504)
DeleteObjectQuery(ChildClass@1ba7f9#629458)
DeleteObjectQuery(ChildClass@1b52301#588850)
Somehow generates these delete statements..
DELETE FROM T_PARENT_CLASS WHERE (ID = 321712)
DELETE FROM T_CHILD_CLASS WHERE (ID = 588504)
DELETE FROM T_CHILD_CLASS WHERE (ID = 629458)
DELETE FROM T_CHILD_CLASS WHERE (ID = 588850)
End Batch Statements
Obviously this error is generated.
Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061214)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.BatchUpdateException: error occurred during batching: ORA-02292: integrity constraint (FK_CHILD_PARENT) violated - child record found
Error Code: 17081
at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:282)
...ect
I think this has something to do with Toplink trying to order my deletes in a way they think they should be and ignoring the way I asked Toplink to delete the objects...
Any help with this would be greatly appreciated.The ChildClass class is not privately owned. Obviously the FK Constraints are set up.
The problem may be because that the ParentClass can share the same ChildClass. ChildClassesA does not contain the same objects in ChildClassesB.
unitOfWork.deleteAllObjects(parentClasses);
unitOfWork.deleteAllObjects(childClassesA);
unitOfWork.deleteAllObjects(childClassesB);
I have tried the line below from the 10.1.3 user guide with no success. getDescriptor() is deprecated so I am not sure why it is in the user guide. Is there a better way to do this? I would think that you would not have to do this at all if you have FK constraints set up and you specify that you want to delete all the parents BEFORE you even start deleting the child classes.
session.getDescriptor(ParentClass.class).addConstraintDependencies(ChildClass.class); -
Automated Solution for Integrity Constraints?
Here is the situation. I have a parent table with child rows in LIVE. A workspace is then created, and another child is added to one of the parent rows in live. Another workspace is then created, and the parent row for the first workspaces child is deleted. The user tries to merge the second workspace to LIVE, which fails with a ORA-20237 error (expected).
How do I in an automated fashion, determine what row(s) in what workspace(s) are causing the error workspace merge? This is on 10gR2.
Integrity constraint violations do not show up in the CONF views, so that doesn’t help. I need to be able to eliminate the conflicts in an automated fashion, providing notice to the owners of the workspaces that they need to go revise the parts that were forcefully removed. But to do that, I need to know how to locate the issues causing the problem so I can build a package to do this, hands off.
Example script:
SQL> create table test_parent (pk number not null, name varchar2(50),
2 CONSTRAINT test_parent_ndx PRIMARY KEY (pk));
Table created.
SQL> create table test_child (pk number not null, fk number, name varchar2(
2 CONSTRAINT test_child_ndx PRIMARY KEY (pk),
3 CONSTRAINT test_child_FK01
4 FOREIGN KEY (fk)
5 REFERENCES test_parent (pk)
6 on delete cascade);
Table created.
SQL> exec dbms_wm.enableversioning('test_parent,test_child');
PL/SQL procedure successfully completed.
SQL> insert into test_parent values (1, 'First item');
1 row created.
SQL> insert into test_parent values (2, 'Second item');
1 row created.
SQL> insert into test_child values (101, 1, 'References first item');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from test_parent;
PK NAME
1 First item
2 Second item
SQL> select * from test_child;
PK FK NAME
101 1 References first item
SQL> exec DBMS_WM.createworkspace('1', TRUE, 'None', TRUE );
PL/SQL procedure successfully completed.
SQL> exec DBMS_WM.gotoworkspace('1');
PL/SQL procedure successfully completed.
SQL> insert into test_child values (102, 1, 'References first item');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from test_parent;
PK NAME
1 First item
2 Second item
SQL> select * from test_child;
PK FK NAME
101 1 References first item
102 1 References first item
SQL> exec DBMS_WM.gotoworkspace('LIVE');
PL/SQL procedure successfully completed.
SQL> exec DBMS_WM.createworkspace('2', TRUE, 'None', TRUE );
PL/SQL procedure successfully completed.
SQL> exec DBMS_WM.gotoworkspace('2');
PL/SQL procedure successfully completed.
SQL> select * from test_parent;
PK NAME
1 First item
2 Second item
SQL> select * from test_child;
PK FK NAME
101 1 References first item
SQL> delete from test_parent where pk = 1;
1 row deleted.
SQL> commit;
Commit complete.
SQL> select * from test_parent;
PK NAME
2 Second item
SQL> select * from test_child;
no rows selected
SQL> exec DBMS_WM.gotoworkspace('LIVE');
PL/SQL procedure successfully completed.
SQL> exec DBMS_WM.mergeworkspace('2', FALSE, FALSE, FALSE );
BEGIN DBMS_WM.mergeworkspace('2', FALSE, FALSE, FALSE ); END;
ERROR at line 1:
ORA-20237: integrity constraint (CVC.TEST_CHILD_FK01) violated in workspace
LIVE or one of its descendants - child record found
ORA-06512: at "WMSYS.LT", line 6009
ORA-06512: at line 1BryanHi Amit,
The merge operation does result in the deletion of the row from both LIVE and the child workspace. However, this would cause the child table in the other (non-merged) workspace to have data without a corresponding parent row. We can not allow this, and so raise a referential integrity constraint violation. It is also not a conflict, as conflicts are always for rows with the same primary key, not for business conflicts or constraint violations. In the example, the inserted row in the child workspace was for a primary key that was unique within all workspaces, and so no conflict violation would be raised.
The reason it works for a non-CR workspace, is that the parent table row is still visible from the other workspace as it was not automatically deleted.
You can use the DIFF view(with SetDiffVersions) or the MW view(with SetMultiWorkspaces) to determine which rows were deleted from the parent table that you are merging. This information can then be used to find the other workspace/savepoint that is causing the violation and fix it. This could be done by removing the child row or inserting/updating the parent row prior to the other workspace being merged.
Ben
Maybe you are looking for
-
InDesign CS5 hangs when opening files
I have recently begun experiencing a problem whereby I cannot open any existing InDesign documents. I can create new documents and work in them, but I cannot open any documents previously created in CS5. InDesign CS5, MacBook Pro, Mountain Lion OS 10
-
I have noticed several times now, that I can see knockout lines in the PDF files from the textbox or objectbox which should not be there As you can see in the below screendump taken from an AI file the objectbox line goes through the placed text and
-
Photoshop application error Unknown
Hello everybody I hope someone can help me here because it's a week that I try to find a solution. So in our company we upgraded the version of CS from 3 to 6 for six users. No one has problem except a user. Very often and without a particular logic
-
I hope you will all forgive me because this has been exhausted although I followed all the advices. After the following examples, to check my own environment. I have done the following: long heapSize = Runtime.getRuntime().totalMemory(); System.o
-
Uncompressed 16:9 export
hello I'm trying to export an HD(960x720)16:9 movie uncompressed but there is only a 4:2 option and it result is streched. is there a maybe 16:9 equivalent? thanks