Table Load Sequence - Referential Key Hierarchy

I have a schema with around 100 tables. I need to load data in those table in such an order so that none of the referential integrity constraints fail while loading the data. Is there a way I can build a load sequence using some referential key hierarchy?
I don't have an option to disable all constraints and enable them post load.
Using Oracle 11gR1.
Edited by: roboracle on Mar 11, 2011 11:43 AM

Sorry, my mistake, this forum doesn't allow the < > operator...( @#$%&@#%&@$*@#$!! )
It should be:
with temp_constraints as (
select table_name
,      constraint_name pkey_constraint
,      null fkey_constraint
,      null r_constraint_name
from   user_constraints
where  constraint_type = 'P'
--and    table_name = SOME_TABLE  -- for depencencies of one table
union all
select a.table_name
,      a.constraint_name pkey_constraint
,      b.constraint_name fkey_constraint
,      b.r_constraint_name
from   user_constraints a
,      user_constraints b
where  a.table_name = b.table_name
and    a.constraint_type = 'P'
and    b.constraint_type = 'R'
select rpad( '*', (level-1)*2, '*' ) || table_name relation
from   temp_constraints
start with fkey_constraint is null
connect by pkey_constraint != r_constraint_name
       and prior pkey_constraint = r_constraint_name;

Similar Messages

  • VT01N-Loading Sequence number functionality /BEV1/RPFLGNR in table VTTK.

    Hi Gurus,
    While creating shipment in VT01N, in the process screen, one field Sequence number: is showing by default Zero.
    Loading Sequence Number in the Tour /BEV1/RPFLGNR in table VTTK.
    Sequence number of the load in the tour.
    When will this sequence number will take running numbers like 1, 2 .. and so on.
    Could any body throw some light on this.
    Thanks&Regards
    Sreekanth

    No response

  • A way to distinguish between 'Parent' keys and 'Referential' keys

    Hi,
    We use referencial keys to specify the FK to a parent table and also link to other tables... I need to write a script that needs to distinguish between a 'Parent' key and and a 'Referential' keys. In the database they both look the same, as they are both foreign keys...
    What's the easiest way to determine whether a FK is a link to a parent table or a link to an unrelated table..
    I hope this question makes sense...
    EDIT:
    Here's an example of the tables, and a better explanation
    CREATE TABLE PARENT_TABLE(
    par_id number PRIMARY key,
    par_name varchar2(200)
    create TABLE RELATED_TABLE(
    rel_id number PRIMARY key,
    rel_name varchar2(200)
    create TABLE CHILD_TABLE(
    kid_id PRIMARY key,
    kid_name varchar2(200),
    par_id,
    rel_id,
    CONSTRAINT kid_par_fk FOREIGN KEY(par_id) REFERENCES PARENT_TABLE(par_id),
    CONSTRAINT kid_rel_fk FOREIGN KEY (rel_id) REFERENCES RELATED_TABLE(rel_id)
    )Ok, as you can see the child table has 2 references but no way to tell which one is the parent table.. In our database we have this hirearchy of parent-child tables (where it's one-to-many relationships) where we consider a table a parent of other.. And also we have a ton of other foreign keys that link to related tables (many-to-many) relationships...
    Now i need a clean way of distinguishing between PARENT and RELATED table.. A more elegegant solution to a keeping a hierarchy table of parent, child tables.. I'm sure others have this kind of structure..
    let me know if there is more clarification needed.. Sorry for the confusion..
    Edited by: wonderboy87 on 23-Jan-2011 4:07 PM
    Edited by: wonderboy87 on 23-Jan-2011 5:59 PM
    Edited by: wonderboy87 on 23-Jan-2011 6:00 PM

    wonderboy87 wrote:
    Yes sorry.. I can see how consufing this is. Here goes;
    CREATE TABLE PARENT_TABLE(
    par_id number PRIMARY key,
    par_name varchar2(200)
    create TABLE RELATED_TABLE(
    rel_id number PRIMARY key,
    rel_name varchar2(200)
    create TABLE CHILD_TABLE(
    kid_id PRIMARY key,
    kid_name varchar2(200),
    par_id,
    rel_id,
    CONSTRAINT kid_par_fk FOREIGN KEY(par_id) REFERENCES PARENT_TABLE(par_id),
    CONSTRAINT kid_rel_fk FOREIGN KEY (rel_id) REFERENCES RELATED_TABLE(rel_id)
    )Ok, as you can see the child table has 2 references but no way to tell which one is the parent table.. You are right. There is no way to tell which one is the "parent". It's only your own business rules and usage that make one of the FK relationships to a "parent" while the other is to .. what, an "uncle"? ;-) Oracle has no way of knowing what your business rules and usage are.
    In our database we have this hirearchy of parent-child tables (where it's one-to-many relationships) where we consider a table a parent of other.. And also we have a ton of other foreign keys that link to related tables (many-to-many) relationships...
    Now i need a clean way of distinguishing between PARENT and RELATED table.. A more elegegant solution to a keeping a hierarchy table of parent, child tables.. I'm sure others have this kind of structure..
    let me know if there is more clarification needed.. Sorry for the confusion..
    Edited by: wonderboy87 on 23-Jan-2011 6:00 PM

  • Getting errors when updating a column on a table having a primary key

    Hi,
    I have an application on Oracle APEX that raises the following error after an attempt (through the application) to update a column with no specific constraint on it:
    ORA-06550: line 1, column 17: PL/SQL: ORA-00936: missing expression ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignoredUnable to fetch row.
    The involved table has a primary key conatraint and the corresponding column can be populated by a sequence (but there is no trigger to manipulate the sequence).
    The sequence is mentioned in the involved page definition for populating the primary key.
    If I disable the primry key and set to null the corresponding value for the primary of the record to be updated, then it is possible to update that record (thus the above column) through the application.
    Did someone encountered this situation before?
    If yes, what was then your workaround/solution?
    Kind Regards.

    Dear user8058501 ,
    Firstly) Did you check
    Auto Row Fetch (After upgrade to 4.0.1)
    Automated Row Fetch on Table with Synonym causes ORA-00936: missing expr.
    Secondly) If the problem is not resolved, Would you provide a sample on apex.oracle.com with workspace/developer account to be able to help you
    Please, if this solves your question, mark it as Correct. Otherwise as helpful.
    Best Regards
    Mahmoud

  • REMOVE_ELEMENT in a Table with ( tree by key Column )

    Hi all,
    Designed a table with Tree by key column ( a Normal table with tree )
    In one of the row there is a Drop down field provided for selection.
    We have delete button provided to the customer.
    In this delete button handeled removing the Lead selected row using the method  REMOVE_ELEMENT of COntext_node.
    so in the context node if we are having 15  elements. The particluar hierarchy selected can have minimun 4 elements
    In the UI display the total node( total hierarchy node) is getting deleted but in the debugging mode the node is having  14 elements.
    Kindly suggest how to handle it so that in the node also i have the total hierarchy deleted.
    Thank you,
    Usha

    Hello Usha,
    For this you need write the logic. If you are deleting a context element of ID say 'ROW1', then you need to take care of deleting all the context element which has parent key as 'ROW1'.
    BR, Saravanan

  • Fact Table loading in parallel

    Hi
    I have 3 fact tables which loads daily 300,000 records and runs in sequence . now i want to run these 3 fact tables load in parallel .
    if i run these 3 fact table load in parallel will there be any performance impact on running quries ?
    regards
    Srinivas

    Hello,
    I have had a case once where the parallel mechanism in SSIS was consuming so much memory that the pacakge failed every now and then. I have had to revert and make the tasks run sequentially. Luckily this is done simply by joining them in the BI designer.
    After that the package no longer failed. In short the impact is not so much on the SQL server engine running the queries, but on the System that runs the SSIS package and consumes too much memory.
    Jan D'Hondt - SQL server BI development

  • How to create Parent and Children is a tree table / trigger sequence number

    How to create Parent and Children is a tree table when the primary key of the parent is generated via a trigger and a sequence number in the database?
    My problem is when I create a parent and then right away a children. The parent still not have a primary key until the transaction get to the database. I get a error when trying the create the children, cannot insert null in the foreign key field of the children.
    Please help.
    Stephane

    You should have the parent key be marked as a DBSequence type.
    Then you should have the association between the master and detail defined as composite association to make sure that the posting order to the database is correct.
    http://download.oracle.com/docs/cd/E24382_01/web.1112/e16182/bcentities.htm#BABFECDJ

  • Reading a sorted table in Sequence

    Hi,
       I have a sorted table and want to read it in a sequence.
    Say for example:
    Table: sort by secondary key field2, non unique
    Field1      Field2
    10             100
    20             100
    30             100
    Now, when i read the table with the secondray key, field2, I wnat that it should always return the data in same sequence i. e. 100, 200, 300
    But currently when the sequence is not maintained liek it can be 100, 200, 300 or 200, 100, 300
    Is it posisble that I get the same sequence every time.
    Thanks & Regards,
    Rupali Ray

    Hi,
    When you sort the table sort that table using the two fields that to in ascending order..
    this will make the internal table records in sequence like
    field1         field2
    10            100
    20            100
    30             100
    10             200
    20             200
    30              200
    Now whilw reading the table using the key 2 as 100 or 200 the value of field1 will be in sequence as desired.
    ie....             field1          field2
                        10              100
                         20             100
                        30               100
    Hope this will help.
    Regards,
    Rohan.
    Edited by: Rohan on Dec 4, 2008 1:02 PM

  • Error in creating table with sequence

    Good day,
    i tried creating a table in Object Browser - create table, selecting "Populated from a new sequence" when creating my primary key. The following error was encountered after i clicked on the "create" button towards the end.
    Creating table "temp2" failed.
    Failed Creating Table ORA-24344: success with compilation error ORA-00942: table or view does not exist ORA-06510: PL/SQL: unhandled user-defined exception
    Thank you for any assistance.

    Hi,
    "Action: Check each of the following:
    the spelling of the table or view name.
    that a view is not specified where a table is required.
    that an existing table or view name exists.
    Contact the database administrator if the table needs to be created or if user or application privileges are required to access the table.
    Also, if attempting to access a table or view in another schema, make certain the correct schema is referenced and that access to the object is granted. "
    There are reserved names. Change the names of the table and sequence.
    Konstantin

  • Mapping tables with no primary key defined

    Hi!
    I was just wondering if it's possible to map a table with no primary key? The reason why is that I have a logging table that I want to access, which is built very simple and the only useful filtering criteria that I'll be using there is a date column.
    Regards,
    Bjorn Boe

    TopLink requires that an object have a primary key to determine identity, perform caching, and database updates and deletes. It is best to define a primary key in all your objects; a sequence number can be used if the object has no natural primary key. The primary key does not have to be defined on the database, as long as a set of fields in the table are unique you can define them to be the primary key in your TopLink descriptor.
    If your table truly has no primary key, nor unique set of fields, it is still possible to map the table with some restrictions. If you disable caching, and mark the object as read-only, and never update or delete the object, you can map it for read-only purposes.
    You will need to do the following:
    - Set any field as the primary key to avoid the validation warning.
    - Set the cache type to NoIdentityMap.
    - Set the descriptor to be read-only.

  • SQL*LOADER에서 SEQUENCE 함수와 DECODE 함수 사용하는 방법

    제품 : ORACLE SERVER
    작성날짜 : 2003-08-22
    SQL*LOADER에서 SEQUENCE 함수와 DECODE 함수 사용하는 방법
    ========================================================
    PURPOSE
    Unique한 DATA을 load하고자 할때 쓰이는 SEQUENCE () 함수와 DECODE 함수의
    사용에 대해 알아보고자 한다.
    Explanation
    table의 data에 unique한 값을 넣기 위해 sequence을 만들어 사용한다. 이것은
    블루틴 #10863 을 참고하면 알수 있다. 이때 loader에서 database의 sequence기능이
    아닌 sequence() 함수를 사용하는 것을 테스트해 보고자 한다.
    또한 decode 함수를 사용하는 내용을 여기서 다루고자 한다.
    함수를 사용하는 경우는 conventional path load인 경우에만 가능하며 direct path load
    인 경우는 적용되지 않음을 주의하자.
    함수를 사용할때 참조하고자 하는 컬럼앞에 콜론(:)을 붙이면 된다.
    SEQUENCE 를 사용하면 각각의 레코드를 로드할때 특정 컬럼을 증가할수 있다.
    단 무시되거나 잘못되어 들어가지 않은 레코드에 대해서는 증가을 하지 않기
    때문에 주의하여야 한다.
    SEQUENCE 함수의 옵션에 대해 알아보자.
    SEQUENCE(n,increment) - 지정한 n 값부터 시작하여 increment 값만큼 증가한다.
    SEQUENCE(COUNT,increment) - table에 이미 존재하는 로우들을 count한 수에서
    시작하여 increment 값만큼 증가한다.
    SEQUENCE(MAX, increment - 해당 컬럼의 maximum 값에서 시작하여 increment
    값만큼 증가한다.
    Examples
    < Sequence 함수 사용 예 >
    1. sample table 생성
    create table t1
    (field1 number, field2 number, field3 varchar2(10));
    2. controlfile생성
    <sequence1.ctl>
    load data
    infile 'data1.dat'
    into table t1
    fields terminated by "," optionally enclosed by '"'
    (field1 SEQUENCE(MAX,1),
    field2,
    field3 )
    3. load할 datafile생성
    <data1.dat>
    1234, "ABC"
    3456, "CDF"
    4. 실행해 본다.
    $ sqlldr scott/tiger sequence1.ctl
    SQL> select * from t1;
    FIELD1 FIELD2 FIELD3
    1 1234 ABC
    2 3456 CDF
    < Decode 함수 사용 예 >
    test1 column이 'hello'이면 'goodbye'을 아니면 test1 column값을 로드하고자 한다.
    1. sample table 생성
    create table testldr
    (test1 varchar2(10), test2 varchar2(10));
    2. controlfile생성
    <decode1.ctl >
    Load data
    infile 'data2.dat'
    into table testldr
    fields terminated by ',' optionally enclosed by '"'
    (test1,
    test2 "decode(:test1, 'hello', 'goodbye', :test1)")
    3. load할 datafile생성
    <data2.dat>
    hello,""
    goodbye,""
    hey,""
    hello,""
    4. 실행해 본다.
    $ sqlldr scott/tiger decode1.ctl
    SQL> select * from testldr;
    SQL> select * from testldr;
    TEST1 TEST2
    hello goodbye
    goodbye goodbye
    hey hey
    hello goodbye
    Reference Ducument
    <Note 175126.1>
    <Note:1058895.6>
    <Note:1083518.6>

  • How to insert data into two tables linke with foreign key..

    I have two tables
    1)EMP(emp_ID,username,emp_type_code)
    emp_ID is primary key, emp_type_code is a foreign key references emptype table.
    2)emptype(emp_type_code,emp_type_descripton)
    emp_type_code is primary key
    Could anyone help me ..how to insert data into EMP table. How to insert data into two tables linke with foreign key..

    CREATE TABLE "CATDB"."DWDIMUSER"
    "USER_ID" NUMBER(10,0) NOT NULL ENABLE,
    "SPECIALTY_ID" NUMBER(10,0),
    "FULLNAME" VARCHAR2(20 BYTE),
    "FNAME" VARCHAR2(20 BYTE),
    "LNAME" VARCHAR2(20 BYTE),
    "USER_SUBTYPE" VARCHAR2(20 BYTE),
    CONSTRAINT "DIMUSER_PK" PRIMARY KEY ("USER_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE,
    CONSTRAINT "DIMUSER_DIMSPECIALTY_FK" FOREIGN KEY ("SPECIALTY_ID") REFERENCES "CATDB"."DWDIMSPECIALTY" ("SPECIALTY_ID") DISABLE
    CREATE TABLE "CATDB"."DIMSPECIALTY"
    "SPECIALTY_ID" NUMBER(10,0) NOT NULL ENABLE,
    "SPECIALTY_NAME" VARCHAR2(100 BYTE),
    CONSTRAINT "DIMSPECIALTY_PK" PRIMARY KEY ("SPECIALTY_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE
    INSERT INTO DIMUSER (FullName, FNAME, LNAME, USER_TYPE, USER_SUBTYPE)
    SELECT DISTINCT
    Engineer AS FullName,
    regexp_substr(Engineer , '[^,| ]+', 1, 1) as FName,
    regexp_substr(Engineer , '[^,| ]+', 1, 2) as LName ,
    'Engineer'
    FROM EMPLOYEELOOKUP;
    INSERT INTO DIMSPECIALTY (SPECIALTY_NAME)
    SELECT DISTINCT SPECIALITY
    FROM EMPLOYEELOOKUP;
    COMMIT;
    CREATE TABLE employeelookup ...IS A TABLE THAT HAS ALL THE DATA NEDED TO BE FILLED IN BOTHE TABLES...
    CREATE TABLE "CATDB"."EMPLOYEELOOKUP"
    "EMPLOYEELOOKUP_ID" NUMBER(10,0) NOT NULL ENABLE,
    "ENGINEER" VARCHAR2(25 BYTE),
    "SPECIALTY" VARCHAR2(20 BYTE),
    CONSTRAINT "DIMSPECIALTY_PK" PRIMARY KEY ("EMPLOYEELOOKUP_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE
    DATA IN EMPLOYEELOOKUP
    Engineer, Specialty,
    John, Dow, Electronis,
    Dow, Jons, Technician
    Stan Smithers Sales
    Mark, Richards Marketing
    Jenny, Lane Marketing
    John, Lee Sales
    I NEED TO LOAD THE FOREIGN KEY IN DIMUSER FROM THE DIMSPECIALTY TABLE?
    BY USING THE LOOKUP TABLE TO MARCH THE NAMES UNDER THE Engineer COLUMN, SPECIALTY COLUMNE DISTICTIVLY BY JOINING THE DIMSPECILTY TO RISTIVE THE PRIMARY KEY AND FILL IT IN THE DIMUSER TABLE AS A FOREIGNE KEY.

  • Database adapter - table related by foreign key - not picking

    Hi All,
    we have a Invoke which picks data from database by using the query feature(not polling) of db adapter.
    we are picking data from multiple tables.
    there is foreign key relation between tables,which we have defined at the db adapter.
    Parent - > child 1
    > child 2 > child 3
    > child 4 > child 5
    So we have a case where parent has 3 rows but children tabls have 3000+.
    This error is happening in such cases.
    Please let me know.
    <2009-08-06 16:58:54,833> <ERROR> <default.collaxa.cube.engine> The execution of this instance "90045" for process "XXSOA_ESP4G_ROUT_ABC_SRC" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information.
    <2009-08-06 16:58:54,842> <WARN> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "activity manager": Failed due to unhandled bpel fault.
    <2009-08-06 16:58:54,852> <ERROR> <default.collaxa.cube.engine.dispatch> <DispatchHelper::handleMessage> failed to handle message
    ORABPEL-02182
    JTA transaction is not present or the transaction is not in active state.
    The current JTA transaction is not present or it is not in active state when processing activity or instance "90,045". The reason is The execution of this instance "90045" for process "XXSOA_ESP4G_ROUT_ABC_SRC" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information..
    Please consult your administrator regarding this error.
         at com.collaxa.cube.engine.CubeEngine.store(CubeEngine.java:5514)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5799)
         at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:2086)
         at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:174)
         at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:145)
         at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ActivityManagerBean_LocalProxy_4bin6i8.expireActivity(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessageHandler.handle(ExpirationMessageHandler.java:43)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:141)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    <2009-08-06 16:58:54,853> <ERROR> <default.collaxa.cube.engine.dispatch> <DispatchHelper::handleMessage> Not fatal connection error ... not retrying: class com.collaxa.cube.engine.UnhandledFaultException: Failed due to unhandled bpel fault.
    <2009-08-06 16:58:54,854> <ERROR> <default.collaxa.cube.engine.dispatch> <BaseDispatchTask::run> Failed to handle dispatch message ... exception ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessage"; the exception is: JTA transaction is not present or the transaction is not in active state.
    The current JTA transaction is not present or it is not in active state when processing activity or instance "90,045". The reason is The execution of this instance "90045" for process "XXSOA_ESP4G_ROUT_ABC_SRC" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information..
    Please consult your administrator regarding this error.
    ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessage"; the exception is: JTA transaction is not present or the transaction is not in active state.
    The current JTA transaction is not present or it is not in active state when processing activity or instance "90,045". The reason is The execution of this instance "90045" for process "XXSOA_ESP4G_ROUT_ABC_SRC" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information..
    Please consult your administrator regarding this error.
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:206)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)

    Also for above issue , we increased the timeout in transaction manager
    transaction-timeout and syncMaxWaitTime properties as follows:
    Property     File Location     This Value Must Be...     Example
    transaction-timeout     SOA_Oracle_Home\j2ee\home\config\transaction-manager.xml     Larger than the transaction-timeout value in orion-ejb-jar.xml and the syncMaxWaitTime value.     7200
    transaction-timeout     SOA_Oracle_Home\j2ee\home\application-deployments\orabpel\ejb_ob_engine\orion-ejb-jar.xml     Less than the transaction-timeout value in transaction-manager.xml.
    Note: You must set all transaction-timeout properties that display in this file.     3600
    syncMaxWaitTime     SOA_Oracle_Home\bpel\domains\domain_name\config\domain.xml
    where domain_name is the name of the domain to which you are deploying.     Less than the transaction-timeout value in orion-ejb-jar.xml.     240
    2.     
    The above refernece was useful in resolcing our issue.
    Regards
    Arc

  • Maintain acct determination (table T030B) for posting key IRX / IGX (M8395)

    Dear Guru,
    I am testing IS-Oil & Gas (Downstream) - Exchanges.
    Created Exchange Agreement and Purchase Contract and Sales Contract, Purchase Contract and Sales Contract are assigned to the Exchange Contract.
    A PO is created with reference to the Purchase Contract.
    Upon post goods receipt in MIGO, encountered error message "Maintain account determination (table T030B) for posting key IRX (Message no. M8395)" that does not allow PGR to get through.
    A call-off is created with reference to the Sales Contract.
    Similarly, when PGI is performed in VL01N, encountered error message "Maintain account determination (table T030B) for posting key IGX (Message no. M8395)" that does not allow PGI to get through.
    Checked in OBYC, there is no transaction key for IRX and IGX.
    Please advise. Thank you.
    Regards,
    WL

    Hi WL,
    Please use transaction code O54E to maintain the required configuration.
    I hope this helps you.
    Thanks & Regards
    Kalpesh Chavda

  • Maintain account determination (table T030B) for posting key IRX (M8395)

    Dear Guru,
    I am testing IS-OIL - Exchanges.
    Created Exchange Agreement and Purchase Contract and Sales Contract, Purchase Contract and Sales Contract are assigned to the Exchange Contract.
    A PO is created with reference to the Purchase Contract.
    Upon post goods receipt in MIGO, encountered error message "Maintain account determination (table T030B) for posting key IRX (Message no. M8395)" that does not allow PGR to get through.
    A call-off is created with reference to the Sales Contract.
    Similarly, when PGI is performed in VL01N, encountered error message "Maintain account determination (table T030B) for posting key IGX (Message no. M8395)" that does not allow PGI to get through.
    Checked in OBYC, there is no transaction key for IRX and IGX.
    Please advise. Thank you.
    Regards,
    WL

    Hi WL,
    In an Exchange scenario, the account determination entry would have to go added through tcode O54E for this purpose. You would see both the IRX and IGX entry in the above mentioned tcode.
    Menu path: IS-OIL Downstream --> EXG --> Account Assignment
    You would not be able to see the IRX or IGX transaction key in OBYC.
    Hope the above helps.
    Thanks.
    Edited by: Kok Wai Phang on Jul 10, 2011 7:58 AM

Maybe you are looking for