Passivation Tables (PS_TXN) Not Created on First Passivation Attempt

Fusion Middleware Version: 11.1.1.5
WebLogic: 10.3.5.0
JDeveloper Build: Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013
Project: Custom WebCenter Portal Application integrated with custom ADF task flows.
Hi
We are trying to use the jbo.server.internal_connection property in the Business Components layer to change the database to which passivated application module data is written (PS_TXN table).
We have set the property to a valid data source using the JNDI name. The entry in the bc4j.xcfg file is as follows:
<Database jbo.locking.mode="optimistic" jbo.server.internal_connection="jdbc/mds/CustomPortalDS"/>
After making the change, when I run the application through my integrated WLS instance within JDeveloper, the first instance to passivate its data results in the necessary passivation database objects being created in the target instance (PS_TXN, PS_TXN_SEQ & PCOLL_CONTROL).
If however we then remove those objects from the target instance and run the application on our standalong WebLogic server we get an error accessing the application because the BC framework cannot find the PS_TXN table to write to. The following error appears in the log files:
Caused by: oracle.jbo.PCollException: JBO-28030: Could not insert row into table PS_TXN, collection id 10, persistent id 1
     at oracle.jbo.PCollException.throwException(PCollException.java:36)
     at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1901)
     at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:564)
     at oracle.jbo.pcoll.PCollNode.passivate(PCollNode.java:688)
     at oracle.jbo.pcoll.PCollNode.passivateBranch(PCollNode.java:647)
     at oracle.jbo.pcoll.PCollection.passivate(PCollection.java:465)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:294)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267)
     at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5975)
     at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5835)
     at oracle.jbo.server.ApplicationModuleImpl.passivateStateForUndo(ApplicationModuleImpl.java:8857)
     at oracle.adf.model.bc4j.DCJboDataControl.createSavepoint(DCJboDataControl.java:3180)
     at oracle.adf.model.dcframe.LocalTransactionHandler.createSavepoint(LocalTransactionHandler.java:75)
     at oracle.adf.model.dcframe.DataControlFrameImpl.createSavepoint(DataControlFrameImpl.java:797)
     at oracle.adfinternal.controller.util.model.DCFrameImpl.createSavepoint(DCFrameImpl.java:31)
     at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.initializeModel(TaskFlowCallActivityLogic.java:1015)
     at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.enterTaskFlow(TaskFlowCallActivityLogic.java:615)
     at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.invokeLocalTaskFlow(TaskFlowCallActivityLogic.java:337)
     at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.invokeTaskFlow(TaskFlowCallActivityLogic.java:229)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.invokeTaskFlow(ControlFlowEngine.java:217)
     at oracle.adfinternal.controller.state.ChildViewPortContextImpl.invokeTaskFlow(ChildViewPortContextImpl.java:104)
     at oracle.adfinternal.controller.state.ControllerState.createChildViewPort(ControllerState.java:1380)
     at oracle.adfinternal.controller.ControllerContextImpl.createChildViewPort(ControllerContextImpl.java:78)
     at oracle.adf.controller.internal.binding.DCTaskFlowBinding.createRegionViewPortContext(DCTaskFlowBinding.java:440)
     at oracle.adf.controller.internal.binding.DCTaskFlowBinding.getViewPort(DCTaskFlowBinding.java:358)
     at oracle.adf.controller.internal.binding.TaskFlowRegionModel.doProcessBeginRegion(TaskFlowRegionModel.java:164)
     at oracle.adf.controller.internal.binding.TaskFlowRegionModel.processBeginRegion(TaskFlowRegionModel.java:112)
     at oracle.adf.view.rich.component.fragment.UIXRegion$RegionContextChange.doChangeImpl(UIXRegion.java:1199)
     at oracle.adf.view.rich.context.DoableContextChange.doChange(DoableContextChange.java:91)
     at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:693)
     at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:498)
     at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:127)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:89)
     at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:89)
     at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:422)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:802)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:726)
     ... 122 more
Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
     at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
     at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
     at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
     at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
     at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
     at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1079)
     at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
     at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
     at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3937)
     at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1535)
     at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:99)
     at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1887)
     ... 184 more
My understanding is that it is the adfbc_create_statesnapshottables.sql script that creates these database objects. The description in the file is as follows:
"By default, BC4J will create these objects in the schema of the internal database user the first time that the application makes a passivation request. This script is intended for advanced users who require more control over the creation and naming of these objects."
My question then is why is this not happening when the application is run on the standalone WebLogic server but is happening when run on the integrated JDevelopers WLS?
Any help greatly appreciated.

Hi
Thanks for your reply.
We have already considered the points in the referenced links.
The correct privileges exist for the schema used by the data source and we don't see any messages other than ORA-00942.
We have run a 'Finest' trace on package oracle.jbo.* and there is no further information. I have pasted the diagnostic output from the first passivation attempt below:
[SRC_METHOD: passivate] [URI: /jlpportal/faces/home] [SRC_CLASS: oracle.jbo.server.Serializer] <AM MomVer="0">[[
<<PASSIVATION DATA FOLLOWS NOT PASTED INTO THREAD>>
</AM>
[SRC_METHOD: insert] [URI: /jlpportal/faces/home] [SRC_CLASS: oracle.jbo.pcoll.OraclePersistManager] [2226] **insert** id=1, parid=-1, collid=10, keyArr.len=-1, cont.len=981
[SRC_METHOD: insert] [URI: /jlpportal/faces/home] [SRC_CLASS: oracle.jbo.pcoll.OraclePersistManager] [2227] stmt: insert into "PS_TXN" values (:1, :2, :3, :4, sysdate)
[SRC_METHOD: getInternalConnection] [URI: /jlpportal/faces/home] [SRC_CLASS: oracle.jbo.server.DBTransactionImpl] [2228] Getting a connection for internal use...
[SRC_METHOD: getInternalConnection] [URI: /jlpportal/faces/home] [SRC_CLASS: oracle.jbo.server.DBTransactionImpl] [2229] Creating internal connection...
[ADF_MESSAGE_ACTION_NAME: Establish database connection] [APP: XXJLPPartnerLinkApp#V2.0] [ADF_MESSAGE_STATUS: begin] [ADF_MESSAGE_ACTION_DESC: ] [URI: /jlpportal/faces/home] [ADF_MESSAGE_CONTEXT_DATA: Is datasource?=true;#;Connection identifier=weblogic.jdbc.common.internal.RmiDataSource@2b002b00] Establish database connection
[SRC_METHOD: establishNewConnection] [URI: /jlpportal/faces/home] [SRC_CLASS: oracle.jbo.server.DBTransactionImpl] [2230] Trying connection: DataSource='weblogic.jdbc.common.internal.RmiDataSource@2b002b00'...
[ADF_MESSAGE_ACTION_NAME: Establish database connection] [APP: XXJLPPartnerLinkApp#V2.0] [ADF_MESSAGE_STATUS: add_context_data] [URI: /jlpportal/faces/home] [ADF_MESSAGE_CONTEXT_DATA: Success?=true] Establish database connection
[SRC_METHOD: establishNewConnection] [URI: /jlpportal/faces/home] [SRC_CLASS: oracle.jbo.server.DBTransactionImpl] [2231] Before getNativeJdbcConnection='weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_T4CConnection
[SRC_METHOD: establishNewConnection] [URI: /jlpportal/faces/home] [SRC_CLASS: oracle.jbo.server.DBTransactionImpl] [2232] After getNativeJdbcConnection='weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_T4CConnection
[SRC_METHOD: insert] [URI: /jlpportal/faces/home] [SRC_CLASS: oracle.jbo.pcoll.OraclePersistManager] [2233] **insert** error, sqlStmt=null
[SRC_METHOD: insert] [URI: /jlpportal/faces/home] [SRC_CLASS: oracle.jbo.pcoll.OraclePersistManager] [2234] java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

Similar Messages

  • Passivation table ps_txn not being cleaned up

    Adf 11gR1PS1
    Hello
    I have a samll application using one unbounded task flow and one bounded task flow.
    Each task flow uses a different application module.
    The unbound task flow calls the bounded task flow in a modeless inline-popup via a button.
    When running the application and clicking on the button the bounded task flow is called and a new row is inserted
    into the ps_txn table.
    However when the inline-popup is closed via the "x" on the popup window the row is not removed from the ps_txn table.
    If the button is clicked again a new row is added to the theps_txn table.
    Is this the normal behaviour, looking at 40.5.3 in the Dev Guide it would seem that the record should be deleted or reused.
    I understand that there are scripts for cleaning up the table but shouldn't it be automatic ?
    What am I missing ?
    Regards
    Paul

    Hi Paul,
    Do you use the failover (jbo.dofailover) ?
    If not, I would expect records to be deleted from PS_TXN at activation.
    I tested with the ADF BC Component Browser, selecting menus Save/Restore Transaction State, with jbo.debugoutput=console:
    [277] (0) OraclePersistManager.deleteAll(2126) **deleteAll** collid=17461
    [278] (0) OraclePersistManager.deleteAll(2140)    stmt: delete "PS_TXN" where collid=:1
    [279] (0) OraclePersistManager.commit(217) **commit** #pending ops=1But I also already noticed orphaned records in the table.
    Do you use jbo.internal_connection to use the same connection whatever the AM instance that's passivated/activated or do you have an instance of the PS_TXN table in all AM's connections ?
    Regards,
    Didier.

  • Table JAVA$CLASS$MD5$TABLE is not created by loadjava

    When loading a class using loadjava, the table JAVA$CLASS$MD5$TABLE is not created (in the schema where the class is loaded) by the loadjava tool although it should do this according to the doc. Where is this table located?
    The class loads successfully and is skipped when loading a second time. The force option is not used.
    Version is: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit

    IN order for a registered schema to be available to other users the schema must be registered as a GLOBAL, rather than a LOCAL Schema. This is controlled by the third agument passed to registerSChema, and the default is local. Note that you will also need to explicity grant appropriate permissions on any tables created by the schema registration process to other users who will be loading or reading data from these tables.

  • Seam (EJB3/JSF) App Deploys - but tables are not created, populated

    Please let me know if you've run across this or have an inkling of an idea of what is going on here.
    Description: I have created the JDBC Data Source and this deploys successfully. The JNDI Name for this data source is: "seam-jee5-ds".
    I am using this JDNI name as the data source in my persistence.xml for the application. This data source is found when the application deploys. The data source itself is an embedded HSQLDB database, but I have also tried this with H2 and the result is the same.
    The application works, I can open the page...but anytime there is a transaction with the database, the transaction fails. The error is that it can't find the table to query from, and fails w/ this exception:
    javax.el.ELException: javax.ejb.EJBTransactionRolledbackException: EJB Exception: ; nested exception is: javax.persistence.PersistenceException: org.h
    ibernate.exception.SQLGrammarException: could not execute query; nested exception is: javax.persistence.PersistenceException: org.hibernate.exception.
    SQLGrammarException: could not execute query
    +Caused by: java.sql.SQLException: Table not found in statement [select user0_.username as username2_, user0_.name as name2_, user0_.password as passwo+
    +rd2_ from Customer user0_ where user0_.username=? and user0_.password=?]+
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    The EJBs are recognized/discovered; example:
    Aug 15, 2009 7:35:29 PM org.hibernate.cfg.annotations.EntityBinder bindTable
    INFO: Bind entity org.jboss.seam.example.booking.Booking on table Booking
    The persistence unit is configured:
    Aug 15, 2009 7:35:29 PM org.hibernate.ejb.Ejb3Configuration configure
    +INFO: Processing PersistenceUnitInfo [+
    name: bookingDatabase
    +...]+
    Problem: When I then check the database (HSQLDB or H2), none of the tables that should be created and populated as a result of the EJBs are there.
    The only two issues/warnings that I see are:
    Aug 15, 2009 7:35:29 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
    INFO: Not binding factory to JNDI, no JNDI name configured+
    Aug 15, 2009 7:35:29 PM org.hibernate.util.NamingHelper getInitialContext+
    INFO: JNDI InitialContext properties:{}+
    Aug 15, 2009 7:35:32 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/seam-jee5-booking'
    Aug 15, 2009 7:35:34 PM org.jboss.seam.servlet.SeamListener contextInitialized
    INFO: Welcome to Seam 2.1.2
    Aug 15, 2009 7:35:34 PM org.jboss.seam.util.Resources getRealFile
    WARNING: Unable to determine real path from servlet context for "/WEB-INF/classes" path does not exist.
    Aug 15, 2009 7:35:34 PM org.jboss.seam.util.Resources getRealFile
    WARNING: Unable to determine real path from servlet context for "/WEB-INF/dev" path does not exist.
    Stack: JDK 1.6_011; WebLogic 10.3.1 (11g); Seam 2.1.2; Windows XP; HSQLDB 1.8
    Any help you can provide would be much appreciated.
    The app's persistence.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0">
    <persistence-unit name="bookingDatabase">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <jta-data-source>seam-jee5-ds</jta-data-source>
    <properties>
         <!--<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>-->
         <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
         <property name="hibernate.transaction.manager_lookup_class"
              value="org.hibernate.transaction.WeblogicTransactionManagerLookup"/>
    </properties>
    </persistence-unit>
    </persistence>
    Edited by: user447661 on Aug 17, 2009 9:41 AM
    Edited by: user447661 on Aug 17, 2009 9:45 AM
    Edited by: user447661 on Aug 17, 2009 9:47 AM

    Nevermind, the issue was that my persistence.xml did not contain the following property:
    <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
    Therefore, the tables were not being created upon deployment.
    Still, I would expect to see entity beans listed in the WebLogic console.

  • Out-of-Line Storage: an Intermediate Table is not created

    Hi
    I'm trying to use the "Out-of-Line Storage: Using an Intermediate Table to Store the List of References" sample from "Oracle XML DB Developer’s Guide".
    Here are my schemas:
    oebs_content_organization.xsd
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:oebs="http://www.rosbank.ru/oebs"
    targetNamespace="http://www.rosbank.ru/oebs/content/organization"
    xmlns:appsxx_organization="http://www.ibm.com/xmlns/prod/websphere/j2ca/jdbc/appsxx_organization_v"
    elementFormDefault="qualified" xmlns:xdb="http://xmlns.oracle.com/xdb"
    xdb:storeVarrayAsTable="true">
    <xsd:import schemaLocation="oebs.xsd" namespace="http://www.rosbank.ru/oebs"/>
    <xsd:import namespace="http://www.ibm.com/xmlns/prod/websphere/j2ca/jdbc/appsxx_organization_v"
    schemaLocation="AppsXx_Organization_V.xsd"/>
    <xsd:complexType name="contentOrganizationType" xdb:SQLType="CONTENT_ORGANIZATION_T">
    <xsd:complexContent>
    <xsd:extension base="oebs:contentAbstractType">
    <xsd:sequence minOccurs="1" maxOccurs="1">
    <xsd:element name="organization" minOccurs="1" maxOccurs="unbounded" xdb:SQLInline="false"
    xdb:defaultTable="ORGANIZATION"
    type="appsxx_organization:AppsXx_Organization_V"/>
    </xsd:sequence>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    oebs_content_organization_element.xsd
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:organization="http://www.rosbank.ru/oebs/content/organization"
    targetNamespace="http://www.rosbank.ru/oebs/content/organization"
    xmlns:oebs="http://www.rosbank.ru/oebs" elementFormDefault="qualified"
    xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
    <xsd:include schemaLocation="oebs_content_organization.xsd"/>
    <xsd:import schemaLocation="oebs.xsd" namespace="http://www.rosbank.ru/oebs"/>
    <xsd:element name="content" type="organization:contentOrganizationType"
    substitutionGroup="oebs:contentAbstract" xdb:SQLName="CONTENT_ORGANIZATION"
    xdb:defaultTable=""/>
    </xsd:schema>
    I registered them.
    But I can't find an Intermediate Table which have to keep the List of References to the "organization" element because next select doesn't return any result:
    SELECT * FROM USER_NESTED_TABLES
    Can anybody give me suggestion where these references are stored and how to index them?
    Thanks
    Dmitry

    You appear to hitting bug 5979468 which is fixed in 11g..
    With the heavy usage of inheritance in your XML Schemas I would VERY STRONGLY recommend that you upgrade to 11g immediately...
    SQL*Plus: Release 11.1.0.6.0 - Production on Wed May 14 22:08:49 2008
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    SQL> spool testcase.log
    SQL> --
    SQL> connect sys/ as sysdba
    Enter password:
    Connected.
    SQL> --
    SQL> set define on
    SQL> set timing on
    SQL> --
    SQL> define USERNAME = ROSBANK
    SQL> --
    SQL> def PASSWORD = ROSBANK
    SQL> --
    SQL> def USER_TABLESPACE = USERS
    SQL> --
    SQL> def TEMP_TABLESPACE = TEMP
    SQL> --
    SQL> def DIRECTORY_PATH = &1
    SQL> --
    SQL> drop user &USERNAME cascade
      2  /
    old   1: drop user &USERNAME cascade
    new   1: drop user ROSBANK cascade
    User dropped.
    Elapsed: 00:00:00.51
    SQL> grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSW
    ORD
      2  /
    old   1: grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &P
    ASSWORD
    new   1: grant create any directory, drop any directory, connect, resource, alter session, create view to ROSBANK identified by ROSB
    ANK
    Grant succeeded.
    Elapsed: 00:00:00.20
    SQL> alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
      2  /
    old   1: alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
    new   1: alter user ROSBANK default tablespace USERS temporary tablespace TEMP
    User altered.
    Elapsed: 00:00:00.04
    SQL> connect &USERNAME/&PASSWORD
    Connected.
    SQL> --
    SQL> alter session set events ='19027 trace name context forever, level 0x800'
      2  /
    Session altered.
    Elapsed: 00:00:00.00
    SQL> call xdb_utilities.createHomeFolder()
      2  /
    Call completed.
    Elapsed: 00:00:00.21
    SQL> create or replace directory XMLDIR as '&DIRECTORY_PATH'
      2  /
    old   1: create or replace directory XMLDIR as '&DIRECTORY_PATH'
    new   1: create or replace directory XMLDIR as 'C:\xdb\customers\ROSBANK'
    Directory created.
    Elapsed: 00:00:00.56
    SQL> declare
      2    JDBC XMLType := XMLType(bfilename('XMLDIR','JDBCASI.xsd'),nls_charset_id('AL32UTF8'));
      3    APPS XMLType := XMLType(bfilename('XMLDIR','AppsXx_Organization_V.xsd'),nls_charset_id('AL32UTF8'));
      4    OEBS XMLType := XMLType(bfilename('XMLDIR','OEBS.xsd'),nls_charset_id('AL32UTF8'));
      5  begin
      6    dbms_xmlschema.registerSchema
      7    (
      8        schemaurl => 'JDBCASI.xsd'
      9       ,schemadoc => JDBC
    10       ,local     => TRUE
    11       ,genBean   => false
    12       ,genTypes  => TRUE
    13       ,genTables => TRUE
    14       ,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
    15    );
    16    dbms_xmlschema.registerSchema
    17    (
    18        schemaurl => 'AppsXx_Organization_V.xsd'
    19       ,schemadoc => Apps
    20       ,local     => TRUE
    21       ,genBean   => false
    22       ,genTypes  => TRUE
    23       ,genTables => TRUE
    24       ,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
    25    );
    26
    27    dbms_xmlschema.registerSchema
    28    (
    29        schemaurl => 'oebs.xsd'
    30       ,schemadoc => OEBS
    31       ,local     => TRUE
    32       ,genBean   => false
    33       ,genTypes  => TRUE
    34       ,genTables => TRUE
    35       ,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
    36    );
    37  end;
    38  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:01:13.70
    SQL> declare
      2    xmlSchema XMLType := XMLType(
      3  '<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:oebs="http://www.rosbank.ru/oebs" targetNamespace="http://www.r
    osbank.ru/oebs/content/organization" xmlns:appsxx_organization="http://www.ibm.com/xmlns/prod/websphere/j2ca/jdbc/appsxx_organizatio
    n_v" elementFormDefault="qualified" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
      4          <xsd:import schemaLocation="oebs.xsd" namespace="http://www.rosbank.ru/oebs"/>
      5          <xsd:import namespace="http://www.ibm.com/xmlns/prod/websphere/j2ca/jdbc/appsxx_organization_v" schemaLocation="AppsXx_
    Organization_V.xsd"/>
      6          <xsd:complexType name="contentOrganizationType" xdb:SQLType="CONTENT_ORGANIZATION_T">
      7                  <xsd:complexContent>
      8                          <xsd:extension base="oebs:contentAbstractType">
      9                                  <xsd:sequence minOccurs="1" maxOccurs="1">
    10                                          <xsd:element name="organization" minOccurs="1" maxOccurs="unbounded" xdb:SQLInline="fal
    se" xdb:defaultTable="ORGANIZATION" type="appsxx_organization:AppsXx_Organization_V"/>
    11                                  </xsd:sequence>
    12                          </xsd:extension>
    13                  </xsd:complexContent>
    14          </xsd:complexType>
    15  </xsd:schema>');
    16  begin
    17    DBMS_XMLSCHEMA.registerSchema(SCHEMAURL => 'oebs_content_organization.xsd', SCHEMADOC => xmlSchema, GENTABLES => TRUE);
    18  end;
    19  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:12.51
    SQL> set pages 0 lines 250
    SQL> --
    SQL> column table_name format A40
    SQL> column column_name format A40
    SQL> column parent_table_name format A40
    SQL> column parent_table_column format A40
    SQL> --
    SQL> select table_name
      2    from user_xml_tables
      3  /
    OEBS
    CONTENT
    ORGANIZATION
    Elapsed: 00:00:29.40
    SQL> select table_name, parent_table_name, parent_table_column
      2    from user_nested_tables
      3  /
    SYS_NTjt3LMhVVSJ6XnKEY8x7idQ==           CONTENT                                  TREAT("XMLDATA" AS "CONTENT_ORGANIZATION
                                                                                      _T")."organization"
    Elapsed: 00:00:00.00
    SQL> select table_name, column_name
      2    from user_refs
      3  /
    SYS_NTjt3LMhVVSJ6XnKEY8x7idQ==           COLUMN_VALUE
    OEBS                                     "XMLDATA"."contentAbstract"
    Elapsed: 00:00:00.67
    SQL>
    SQL>
    SQL>

  • Deatail Region in OAF Table - Show not responding for first time click

    I have added a detail region to my OAF results table. A link for 'show' appears for each record of my results table. When I click Show for a purticular record - the page refreshes, The control is going to Process Form Request but nothing is happening.
    If I click the 'Show' for the second time for a purticular record ,Show functionality works and I could see my detail section under that record and the Hide functionality works fine too. Please advise if that is how it is suppose to behave or if we can change any property of the table to make it work for the firest time.
    Thanks, Pradeep

    Pathi,
    Please try to have the WhereClause in the VO query as part of static definition itself. So you would only need to bind the parameter and execute the Query.
    Try and let me know if that helped.
    Thanks
    Sumit

  • SQL Developer import from Excel or CSV not creating new table

    I am sure I have done this with previous version of SQL Developer. I am now running 1.5.4 with patches update from 5/27/2009. I am running on Windows XP. When I start the import wizard I get to the point were the varify button appears. I click Verify. Everything is successful. The next button is grayed out. The send to worksheet is not checked. I press the finish button and the new table is not created.
    I don't get any error message. I refresh my table list and the new table is not created. I can create new tables using SQL Developer so I don't think it can be a privelege problem. I know I did this a few weeks ago. I am not sure what version of SQL Developer I was running. But I have updated to the latest and greatest since then.

    I wanted to import and use my table data from MS Excel 2010 in SQL developer Version 3.1.05.
    I was told that SQL does not import .xls data. For that reason, I was searching for a script which Import data from excel to SQL developer. I tried many different forums DBS blogs. Then eventually I found the solution inside the SQL developer itself.
    In your Editor window, There would be options like,
    1. Columns | Data | Constraints |Grants | Sta...... "so on"
    2. In second row, you can find a drop box with certain table options. Select the last option "Import Data"
    THERE YOU GO.
    do accordingly to your need and you will get the data as well its scripts.
    I hope this would help you all. Thanks. :-)

  • SE14 Status-UPGRADE-Table does not exist in the database

    Folks,
    I have created a ztable with SPRAS and few Char fields and generated a table maintenance generator.In the Dev it is working fine but when I moved the TR to Q TR ended up with errrors "Generation of Programs and Screens".When I check in Q in SE11 I am able to see the table but with an error message "Table doesn't exist in the database".
    SE14 Status for this table is getting shown as UPGRADE in Q.
    Can anyone here throw some light on what exactly this status UPGRADE means and how it gets set in SE14.
    In DEV,I had checked the DATABASE OBJECT>>CHECK>DISPLAY and RUNTIME OBJECT>>CHECK>>DISPLAY and it is showing Database object is consistent but where as the same in Q is showing "Table is not created in the Database".
    K.Kiran.

    Hi.
    Is Q system is newly copied? Also please check the transport order of the table creation request. Also check whether pwd of the DB user is locked?
    Regards,
    Vimal

  • Tables are not being deployed completely from Dictionary

    hi,
    I created a Dictionary project and a table with two columns in it. Then i rebuilt the project and created the .SDA archive.
    After that, i went to the navigator view and left clicked on the previusly created SDA archive and selected deploy. Deployment was succesful, and the table was created, but the two columns in that table were not created.
    Does someone know what went wrong?
    No matter how many times i repeat this steps, the columns are not created.
    thank you

    Please post this question on http://forums.oracle.com/forums/forum.jsp?id=486963 for best response.
    Ashesh Parekh
    Oracle9iAS Product Management

  • Cannot change default passivation table/sequence (PS_TXN, PS_TXN_SEQ)

    Hi All , i have the following problem:
    I'm preparing the ADF/ADF Faces Application to run in failover mode.
    One of the problems which i have is that after turning-on the Application Modules failover mode,
    the application performance decrease significantly. I found-out that the Application passivates very intensively using (PS_TXN) table
    (there are entered more than 30 records per user, only by navigatiing between 2-3 pages).
    To increase the performance I'm trying at least to separate the Application Modules to use different tables for passivation.
    I'm trying to do that by changing jbo.txn_table_name and jbo.txn_seq_name per different application modules.
    However the Application continue using PS_TXN only.
    Can somebody give an advice ?
    Thanks in advance,
    Krasimir

    OK, this clears things up a bit.
    If you set jbo.dofailover="true" this means that each time an application module is returned to the application module pool in managed state (default state) it gets saved in the db in the ps_txn table. This is the reason why you see so many entries in the table (essentially it's like working without pooling, well, not quite but in a way).
    Fail over has the advantage that the state of the module can be reconstructed (even on an other server in the cluster) at any time. Disadvantage is that it take time to store the data in the ps_txn table.
    We turned this feature off for all non critical apps as the unscheduled server downtime is <1%. In case of a failure the loss of data is tolerable to our users (their decision).
    If I remember correct, you can move all state related stuff into an other db (using an other connection) by setting the jbo.server.internal_connection="conn_to_db" parameter in the configuration of your application. After setting this up the ps_txn table should be created in the other schema.
    You should see a better performance this way. If this fulfill your needs is an other question.
    Timo

  • Query regarding passivation and PS_TXN tables

    Hi All ,
    I am working on a read only Dashboard UI where the DB user has only read privileges.
    The jbo.server.internal_connection uses the same DB connection to create PS_TXN & PS_TXN_SEQ tables which fails for obvious reasons & I get the error -
    "Couldnot create persistence table PS_TXN_seq".
    I have disabled passivation at all the VO levels and also disabled jbo.isSupportsPassivation to be false at the AMLocal level , but still I am getting this error.
    I have also increased the initial AM pool size in bc4j.xcfg & Connection Pool at the weblogic server level to avoid snapshots been written to this table.
    Is there any way I can prevent any interaction with this table as the client too is not interested in any kind of passivation to happen for the time being.
    Thanks

    Thanks for your reply Chris.
    Chris Muir wrote:
    You might be taking the wrong approach to solving this. Rather than disabling the AM pooling (which btw is not supported by Oracle) to the database, instead you can get ADF to passivate to file or memory of the app server.I am confused as to what exactly jbo.ampool.issupportspassivation = false does then ? I read on one of the blogs that its a viable use case for Programatic VOs ?
    Also regarding passivating to file system as per http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcstatemgmt.htm#ADFFD1307 , its not really a recommended approach.. hence was not going for that.
    Can you please throw some more light ?
    Thanks

  • Passivation and PS_TXN table - (Oracle ADF 11.1.1.6)

    Hi All,
    Can anyone help me understand the relationship between passivation and PS_TXN table insert? I am testing my application in a controlled environment using following steps -
    (1) I truncated PS_TXN table first.
    (2) I ran my application and visited couple of pages.
    (3) I queried PS_TXN table and it has 22 rows in it
    (4) When I check in enterprise manager ADF performance page the number of Passivations per min still shows 0 rows for all of my AMs.
    What else could cause inserts in to PS_TXN table?
    Thanks
    Chetan

    See My Oracle Support note IMPDP Fails With Errors ORA-39126 And ORA-01403: no data found (Doc ID 729346.1).
    Note that is a forum and not official Oracle Support: you should not ask for urgent answer.

  • Jbo.PCollException: JBO-28006: Could not create persistence table PS_TXN_se

    Hi everyone,
    Got the following exception:
    2005-11-08 13:50:54,514 ERROR enatis.error (MsgLogger.java:logError:161) [Error Ref# INT.1131450654514]- An unhandled runtime exce
    ption occured.
    oracle.jbo.PCollException: JBO-28006: Could not create persistence table PS_TXN_seq
    at oracle.jbo.PCollException.throwException(PCollException.java:39)
    at oracle.jbo.pcoll.OraclePersistManager.createTable(OraclePersistManager.java:893)
    at oracle.jbo.pcoll.OraclePersistManager.queryNextCollectionId(OraclePersistManager.java:1372)
    at oracle.jbo.pcoll.PCollManager.register(PCollManager.java:560)
    at oracle.jbo.pcoll.PCollection.<init>(PCollection.java:102)
    at oracle.jbo.pcoll.PCollManager.createCollection(PCollManager.java:460)
    at oracle.jbo.server.DBSerializer.setup(DBSerializer.java:153)
    at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:286)
    at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267)
    at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5123)
    at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5001)
    at oracle.jbo.server.ApplicationModuleImpl.passivateStateForUndo(ApplicationModuleImpl.java:7429)
    Does anyone know whether there is a process that is supposed to cleanup this table? How is it managed?
    Thanks

    Just to wrap this up i will attach the last couple of postings on Metalink:
    09-NOV-05 07:29:03 GMT
    New info : BUKSVDL : Hi Kjeld,
    Im still on the passivateStateForUndo topic. This time with the PS_TXAN table.
    It looks like BC4J writes to this user table when passivating the AM state.
    Please see my questions in the OTN thread below.
    jbo.PCollException: JBO-28006: Could not create persistence table PS_TXN_se
    The latest entry:
    "The data sources are correct. The problem here were the priviledges after
    upgrading the db to 10g rel 2. Some of the implicit priviledges were removed in
    the latest version of the db.
    The question is still, who manages these tables. When/How are entries removed?
    We see this table, "PS_TXN", growing all the time. How do we prevent problems
    like this in the future. Should we include this table, and maybe others, in the
    maintanance scripts? "
    09-NOV-05 09:29:05 GMT
    New info : BUKSVDL : Hi Kjeld,
    The DBA that did the investigation is out of office today.
    What i can tell you is that:
    We use a data-source on the App serves that is defined by the DBA's. We only
    require the DS name. Apparently, in the past, when a user was created certain
    default priveledges were automatically granted. This doesn't happen anymore
    with the latest release of the DB. The DBA had to explicitly grant the
    priveledges.
    09-NOV-05 10:16:09 GMT
    ISSUE CLARIFICATION
    ====================
    After upgrading the database to Oracle Server 10.1.0.2 the ADF application
    returns following error:
    BC4J - ApplicationModuleImpl.passivateStateForUndo();
    oracle.jbo.PCollException: JBO-28006: Could not create persistence table
    PS_TXN_seq
    The error occurs as soon as passivation is done in the application.
    eos (end of section)
    ISSUE VERIFICATION
    ===================
    Verified the issue by error messages supplied by customer.
    eos (end of section)
    CAUSE DETERMINATION
    ====================
    The user connecting to the database from the ADF application does not have
    the required database grants to create a table. The upgrade did
    delete/remove some required privileges.
    eos (end of section)
    CAUSE JUSTIFICATION
    ====================
    If the database user does not have the privilege "CREATE ANY TABLE", then
    this user cannot create a database table. The tables PS_TXN and PS_TXN_seq
    are created during runtime if passivation is done for the first time. If
    the user does not have the necessary privileges the table cannot occur and
    the error JBO-28006 will occur.
    The upgrade of the database removed some necessary
    eos (end of section)
    STATUS
    ======
    @ WIP - Work In Progress
    09-NOV-05 10:16:56 GMT
    POTENTIAL SOLUTION(S)
    ======================
    Make sure the database user has the privileges "CREATE TABLE" and "CREATE
    SEQUENCE" to create objects such as tables and sequences.
    eos (end of section)
    POTENTIAL SOLUTION JUSTIFICATION(S)
    ====================================
    When the database user has the privileges "CREATE TABLE" and "CREATE
    SEQUENCE" it will be possible to create the BC4J tables PS_TXN and
    PS_TXN_seq on passivation.
    eos (end of section)
    SOLUTION / ACTION PLAN
    =======================
    To implement the solution, please execute the following steps:
    1. Connect as user SYS to the database.
    2. Grant at least following priviliges to the ADF application user:
    GRANT CREATE TABLE TO <user>
    GRANT CREATE SEQUENCE TO <user>
    REMARK: Replace <user> with the actual username that is used to connect
    from the adf application to the database.
    eos (end of section)

  • Oracle.jbo.PCollException: JBO-28006: Could not create persistence table PS

    Hi everyone,
    I am a JDeveloper newbie and got my first taste of it now.
    I cannot run my app using the embedded OC4J and so with the app server after deployment (using the end-to-end web app using the default tech scope 9.0.5.1). I am always getting the above subject error. I've seen only around 4 threads in metalink and the answers are not that straightforward.
    Brief on my environment:
    OS: Windows 2000 (latest service pack)
    JDeveloper: 9.0.5.2
    Database: 9.0.4 (10G Infra)
    Memory: 1Gb
    Stack Trace:
    oracle.jbo.PCollException: JBO-28006: Could not create persistence table PS_TXN
         at oracle.jbo.PCollException.throwException(PCollException.java:39)
         at oracle.jbo.pcoll.OraclePersistManager.createTable(OraclePersistManager.java:960)
         at oracle.jbo.pcoll.OraclePersistManager.queryNextCollectionId(OraclePersistManager.java:1282)
         at oracle.jbo.pcoll.PCollManager.register(PCollManager.java:514)
         at oracle.jbo.pcoll.PCollection.<init>(PCollection.java:102)
         at oracle.jbo.pcoll.PCollManager.createCollection(PCollManager.java:414)
         at oracle.jbo.server.DBSerializer.setup(DBSerializer.java:153)
         at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:286)
         at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267)
         at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:4591)
         at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:4479)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:6818)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3886)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(ApplicationPoolImpl.java:2131)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(ApplicationPoolImpl.java:1211)
         at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:717)
         at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:634)
         at oracle.jbo.client.remote.PooledRequestHandler.doMessage(PooledRequestHandler.java:97)
         at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:5804)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationModuleImpl.java:1029)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationModuleImpl.java:1043)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendWorkingSetRequests(ApplicationModuleImpl.java:3300)
         at oracle.jbo.common.ws.WSApplicationModuleImpl.sendRequests(WSApplicationModuleImpl.java:824)
         at oracle.jbo.common.ws.WSApplicationModuleImpl.sync(WSApplicationModuleImpl.java:752)
         at oracle.adf.model.bc4j.DCJboDataControl.endRequest(DCJboDataControl.java:1195)
         at oracle.adf.model.servlet.ADFBindingFilter.invokeEndRequest(ADFBindingFilter.java:289)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:238)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-03001: unimplemented feature
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:242)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:554)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1478)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:888)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2076)
         at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1986)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2697)
         at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1100)
         at oracle.jbo.pcoll.OraclePersistManager.createTable(OraclePersistManager.java:933)
         at oracle.jbo.pcoll.OraclePersistManager.queryNextCollectionId(OraclePersistManager.java:1282)
         at oracle.jbo.pcoll.PCollManager.register(PCollManager.java:514)
         at oracle.jbo.pcoll.PCollection.<init>(PCollection.java:102)
         at oracle.jbo.pcoll.PCollManager.createCollection(PCollManager.java:414)
         at oracle.jbo.server.DBSerializer.setup(DBSerializer.java:153)
         at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:286)
         at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267)
         at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:4591)
         at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:4479)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:6818)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3886)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(ApplicationPoolImpl.java:2131)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(ApplicationPoolImpl.java:1211)
         at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:717)
         at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:634)
         at oracle.jbo.client.remote.PooledRequestHandler.doMessage(PooledRequestHandler.java:97)
         at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:5804)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationModuleImpl.java:1029)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationModuleImpl.java:1043)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendWorkingSetRequests(ApplicationModuleImpl.java:3300)
         at oracle.jbo.common.ws.WSApplicationModuleImpl.sendRequests(WSApplicationModuleImpl.java:824)
         at oracle.jbo.common.ws.WSApplicationModuleImpl.sync(WSApplicationModuleImpl.java:752)
         at oracle.adf.model.bc4j.DCJboDataControl.endRequest(DCJboDataControl.java:1195)
         at oracle.adf.model.servlet.ADFBindingFilter.invokeEndRequest(ADFBindingFilter.java:289)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:238)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    The DB user i use is the same in my app and it has all the necessary permissions in the database.
    Any idea?
    Thanks in advance.

    Hi!
    I'm also a BC4J newbie, and encountered a similar problem while working with JDeveloper 9.0.3.4., but not until the app was deployed to an OAS.
    The first time the app was executed was from within the IDE (embedded OC4J) and there was no issue with creating the tables in the state_management schema. However, when the target and state_management schemas were dropped and re-created (to simulate installation on production)and the app was finally deployed to the OAS (10g), the app would fail trying to get nextval from the sequence (in state_management). However, when running again from the embedded OC4J, the sequence and table were created OK. Afterwards, once the sequence and table were created, the OAS instance could process requests fine. One difference in running the two instances is in the login user - the two users that are mapped to the app's security role are different: in the embedded case it's admin/welcome, in the other a plain "jdoe/jdoe" user. I wouldn't think this would matter, as BC4J uses the credentials of the internal connection to access the state_management schema, but if that's not it, then... ?
    What credentials would the first app user have to have? The idea of a separate schema for the BC4J tables is that the users don't have to have a create any table/index/sequence privilege... Would you have any thoughts on how to fix the problem?

  • Steps to follow while creating Database table in notes or paperwork

    what are the steps to follow while creating Database table in notes or paperwork
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    hi,
    1. Goto Transaction SE11.
    2. Enter the table name to be created. It should start with a Y or Z.
    3. Press Create
    4. Enter the Short description for the table
    5. Enter the Delivery class for the table. It can be 'A', 'C' or other.
    6. In the Fields tab, specify the table fields and the corresponding data elements or the built-in data types.
    7. If the table needs to be made a client-depenedent table, the first field should be MANDT.
    8. Goto Technical settings of the table and sepcify the Data Class and Size for the table. Also, there u can specify if buffering for the table should be allowed or not.
    9. Now, activate the table.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

Maybe you are looking for

  • Can I get a refund from In-App purchases?

    My brother stole my IPod and spent £30 on two worthless games. Is it possible to get a in-app refund to get my money back?

  • RWB-Mesg Monitoring-Adapter Engine-Message Retention is only 1or2 days

    Hello Experts, I have a an Integrated Scenario, SOAP to RFC, in my landscape. As you know I can only monitor messages for an Integrated Scenario in Runtime Workbench -> Message Monitoring -> Adapter Engine. So, when I find my message related to the I

  • DVD decting only orginal italian windows cd

    I have ingstalled windowsxp sp2 italian version and upgraded to sp3 by changing language in regedit language 0409 now my dvd is not accepting i have also change the reginol time and date setting and unicode settign i  have also chaged language in dvd

  • InDesign CS5 and Acrobat 8

    I am using ID 5 and Acrobat 8. My client marks up changes on a pdf for me to change the ID file. I used to be able to copy the text from the Acrobat file and simply paste it into the ID file. For some reason it wont do it. So I am having to type UGGG

  • Virtual Console connection - System refused connection

    I have setup a few CSR 1000v routers on an ESXi 5.1 server I have followed the instructions to enable the virtual serial port I enabled the virtual serial port in the Firewall of esxi However when I connect to the virtual serial port telnet://esxiip: