Privilege errors after database import

Hi,
I just built an database server with window 2003, oracle 10.1.0.4 with 10.1.0.2 version of oracle workspace manager. I imported my database (with the same DB versions) however I'm not able to execute the dbms_wm commands. My test user has the wm_admin_role and is able to enable and disable versioning however, I can not create a workspace. I get the following error when I attempt to run dbms_wm.GrantSystemPriv logged in as any DBA user with wm_admin_role:
ora-20076: insufficient privileges to grant priv_ANY_WORKSPACE
ora-06512: at "SYS.LTPRIV"
ora-06512: at "SYS.LTPRIV"
ora-06512: at "SYS.LT"
I am able to select dbms_wm.getworkspace from dual and 'LIVE' workspace is returned. However, if I attempt to run dbms_wm.gotoworkspace('LIVE') it returns
ora-20122: workspace 'LIVE' does not exist
Any info is greatly appreciated...
TCT

Unfortunately this is NOT the solution. The sys.portal_login only works for the current sql-session. As soon as you login for a second time, you have to execute this procedure again. So, the upgrade to 309 is still not possible.
According to TAR 2063294.55 Oracle will NOT support full database exports/imports for backing up Portal environments. They only accept the Portal import/export-utilities (which are unreliable and unworkable) and database-filebackups (which are not possible if you want to restore only one schema).
So, my Portal-308-environment is working now, but it can never be upgraded to 309.
Or does anyone else has an option?

Similar Messages

  • Installation Error:  IDES Database Import

    Hello everyone,
    Thank for all for the help so far.  The forums have really helped me along in my SAP installation.  This
    particular error has occurred for the second time in a row....  This error happens after importing
    approximately 250GB of IDES data into the sap database (MaxDB).  The error logs and system info are
    posted below.
    STDOUT:
    +SNIP+
    INFO       2009-02-24 10:37:15.650 [sixxcstepexecute.cpp:781]
    Execute step sdb_instance_start of component
    |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|
    ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_ADA_DB|ind|ind|ind|ind|6|0|SdbPreInstanceDialogs|ind|ind|ind|
    ind|3|0|SdbInstanceDialogs|ind|ind|ind|ind|1|0|SDB_INSTANCE_CREATE|ind|ind|ind|ind|0|0
    INFO       2009-02-24 10:37:37.597 [sixxcstepexecute.cpp:781]
    Execute step sdb_instance_activate of component
    |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|
    ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_ADA_DB|ind|ind|ind|ind|6|0|SdbPreInstanceDialogs|ind|ind|ind|
    ind|3|0|SdbInstanceDialogs|ind|ind|ind|ind|1|0|SDB_INSTANCE_CREATE|ind|ind|ind|ind|0|0
    INFO       2009-02-24 11:53:40.381 [sixxcstepexecute.cpp:781]
    Execute step sdb_instance_wait_for_backup of component
    |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|
    ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_ADA_DB|ind|ind|ind|ind|6|0|SdbPreInstanceDialogs|ind|ind|ind|
    ind|3|0|SdbInstanceDialogs|ind|ind|ind|ind|1|0|SDB_INSTANCE_CREATE|ind|ind|ind|ind|0|0
    INFO       2009-02-24 11:53:41.181 [sixxcstepexecute.cpp:781]
    Execute step sdb_instance_load_systables of component
    |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|
    ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_ADA_DB|ind|ind|ind|ind|6|0|SdbPreInstanceDialogs|ind|ind|ind|
    ind|3|0|SdbInstanceDialogs|ind|ind|ind|ind|1|0|SDB_INSTANCE_CREATE|ind|ind|ind|ind|0|0
    WARNING[E] 2009-02-24 11:53:42.882
               CJSlibModule::writeError_impl()
    The dbmcli call for action LOAD_SYSTAB failed. SOLUTION: Check the logfile XCMDOUT.LOG.
    WARNING[E] 2009-02-24 11:53:42.955
               CJSlibModule::writeError_impl()
    The dbmcli call for action LOAD_SYSTAB failed. SOLUTION: Check the logfile XCMDOUT.LOG.
    *ERROR*      2009-02-24 11:53:43.207 [sixxcstepexecute.cpp:951]
    FCO-00011  The step sdb_instance_load_systables with step key
    |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|
    ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_ADA_DB|ind|ind|ind|ind|6|0|SdbPreInstanceDialogs|ind|ind|ind|
    ind|3|0|SdbInstanceDialogs|ind|ind|ind|ind|1|0|SDB_INSTANCE_CREATE|ind|ind|ind|ind|0|0|
    sdb_instance_load_systables was executed with status ERROR .
    XCMDOUT.LOG
    +SNIP+
    Subprocess starts at 20090224103715
    Execute Command : /sapdb/programs/bin/dbmcli -n xa4-myexaserv -d XA4 -u CONTROL,******** db_start
    Start subprocess as user with uid: root
    Subprocess stops at 20090224103736
    OK
    Subprocess starts at 20090224103736
    Execute Command : /sapdb/programs/bin/dbmcli -n xa4-myexaserv -d XA4 -u CONTROL,******** db_state
    Start subprocess as user with uid: root
    Subprocess stops at 20090224103736
    OK
    State
    ADMIN
    Subprocess starts at 20090224103737
    Execute Command : /sapdb/programs/bin/dbmcli -n xa4-myexaserv -d XA4 -u CONTROL,******** db_state
    Start subprocess as user with uid: root
    Subprocess stops at 20090224103737
    OK
    State
    ADMIN
    Subprocess starts at 20090224103738
    Execute Command : /sapdb/programs/bin/dbmcli -n xa4-myexaserv -d XA4 -u CONTROL,********
    Start subprocess as user with uid: root
    Execute Session Command : util_connect
    Execute Session Command : db_activate SUPERDBA,********
    Execute Session Command : exit
    Subprocess stops at 20090224115339
    OK
    OK
    Subprocess starts at 20090224115341
    Execute Command : /sapdb/programs/bin/dbmcli -n xa4-myexaserv -d XA4 -u CONTROL,********
    load_systab -u SUPERDBA,******** -ud ********
    Start subprocess as user with uid: root
    Subprocess stops at 20090224115342
    ERR
    -24964,ERR_EXECUTE: error in program execution
    256,/sapdb/XA4/db/bin/x_python /sapdb/XA4/db/env/lsystab.py -R /sapdb/XA4/db -d XA4 -u SUPERDBA,********
    ---------Traceback---------------
    ---------Error-------------------
    sql.SQLError: [-4008] (at 1) Unknown user name/password combination
    Traceback (most recent call last):
       File "/sapdb/XA4/db/env/lsystab.py", line 202, in ?
         connectAndInstall (install, install.__doc__)
       File "/sapdb/XA4/db/env/installib.py", line 393, in connectAndInstall
         session = connect (options)
       File "/sapdb/XA4/db/env/installib.py", line 348, in connect
         alterUserNotExclusive(options)
       File "/sapdb/XA4/db/env/installib.py", line 336, in alterUserNotExclusive
         session.release()
    AttributeError: 'NoneType' object has no attribute 'release'
    System Information:
    RHEL 5.2
    SAP_ERP_6.0_SR3_IDES_Inst._Master
    RDBMS_MAXDB_7.6.03_Build_09
    NW_7.0_SR3_Kernel_WINDOWS__LNX_X86
    Java:
    [root@xa4-**** sapInstall]# java -version
    java version "1.4.2"
    Java(TM) 2 Runtime Environment, Standard Edition (build 2.2)
    IBM J9SE VM (build 2.2, J2RE 1.4.2 IBM J9 2.2 Linux amd64-64 j9xa64142-20070708 (JIT enabled)
    J9VM - 20070530_2352_LHdSMr
    JIT  - r7_level20070315_1745)
    Python:
    [root@xa4-**** sapInstall]# python -V
    Python 2.4.3
    Once again, thank you all for the help.  Has there been a "sticky" post on how to format thread postings for
    easy reading?
    Thank you,
    Zach

    Markus,
    To clarify on my original reply.
    [root@xa4-myexaserv ~]# touch te$tpa$$word
    [root@xa4-myexaserv ~]# ls -l te*
    -rw-r--r-- 1 root root 0 Feb 24 15:12 te24682word
    What's occurring here is:
    -> $tpa isn't a registered variable so bash is dropping it out of the command
    -> $$ is a special parameter in bash that evaluates to the pid of the shell
    Do you think something similar to this is happening in the x_python execution?  ...this assumes that all of
    these commands are running in a bash environment. Even if this is the culprit of my error, I'm unsure why the
    following command succeeds:
    /sapdb/programs/bin/dbmcli -n xa4-myexaserv -d XA4 -u CONTROL,******** load_systab -u
    SUPERDBA,******** -ud ********
    Perhaps I am over thinking it...  But I have a hard time believing that a particular script in a large installation
    would behave so differently from the rest of the installation scripts.
    Thank you for the help,
    Zach

  • Updating FND table owner password after database import/export?

    We created a reporting instance from our production environment, and moved the EUL to a new schema through a database export/import process - not the Discoverer Administrator export/import process. The password associated with the owner of the FND tables is embedded within the EUL in production. When this was moved to a new schema in our reporting instance, this password "came with" the EUL. However, the password for the FND table owner is different in the reporting instance than it is in production. Is there any way to update this after the fact for the owner of the EUL?
    Here's what happened: EUL_OWNER1 is the owner of the Applications mode EUL in production. The copy was taken of production to create the reporting instance. At that time, EUL_OWNER2 was created in the reporting instance, and the tables and data owned by EUL_OWNER1 was exported and imported into EUL_OWNER2. The reason that we did this was to lock down security and keep people from running reports against production, hindering the performance of the overall system. The APPS password (which owns the FND tables), which was required when creating the EUL_OWNER1 EUL in production, is different in the reporting instance. When you log into Discoverer Administrator as EUL_OWNER2 and try to validate folders, you get "ORA-00942: table or view does not exist" errors for all of your tables. Basically, that user cannot view those tables because it does not have the appropriate APPS password.
    Can this be updated somehow? Or do I have to re-create the EUL for EUL_OWNER2 by using the Discoverer export/import functions? Thanks.
    Meredith

    Hi,
    I don't think the FND password is embedded in the EUL tables. What you will have lost by moving the EUL through a database export/import is all the grants that gave the EUL owner access to the FND tables and other Apps objects. These can be reapplied at the database level. However, the EUL owner does not actually need access to the tables that are mapped into the EUL as you can refresh these when you connect as an Applications user.
    Hope that helps,
    Rod West

  • File not found error after database migration

    Hi experts
    I recently decided to create a test environment for SharePoint 2010 production server but after
     attach the content database  using power shell successfully I get “ file not found “ error when I try to login the top site collection
    I think it’s because of customized master page in production site which I don’t know how to apply them to my new environment.I even tried to copy the master pages from cataloge throught  SPD but it didnt work.
    Any assistance would be greatly appreciated

    HI Shahin,please try to access the site by below and let me know the result.please check the below link that gives more idea on the issue
    _/_layouts/settings.aspx
    /_layouts/viewlsts.aspx
    /default.aspx
    http://expertsharepoint.blogspot.de/2014/01/sharepoint-default-page-not-loading-by.html
    Anil Avula[MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/

  • Sequence error after table import

    I swear I'll never cross post again, this is also in PL/SQL but after reading it it appears the responses I'll get there are geared more towards someone using sql plus.
    Had an app, tables & sequences running fine in 2.2 on one machine. Set up another machine to mirror working version with Apex 2.2. Imported tables into new tables on target, created sequences during import that mirror original tables and sequences.
    Sequence populates into AUTOID column as in orig. When attempting to insert a new record I get a primary key violation. If I hit the back button and resubmit the page it accepts the record. When I look into the pk index I see 205 unique keys and 205 records. This record count is correct but there have been deletions and additions to this table in the orig database and thus new AUTOID values were generated and the values in the target table are not linear from 1to205. They skip around and the highest is actually now 266.
    Is this problem due to the sequence seeing 205 unique keys and generating the next one at 206, which already exists in the table?
    If so, why can I back up to the form and successfully resubmit?
    At any rate, anyone have an idea how to correct this or change the sequence starting number to something higher than anything in the table so I don't have to deal with this?
    Thanx
    Won't cross post again :)

    I did notice though that when I start a table off with a column named AUTOID as a number Apex seems to pick that column as default when I create a sequence.
    Probably because it's the 1st column in your table. The name being "AUTOID" doesn't mean anything to ApEx.
    When I look at the structure of the sequence I still don't see where in the sequence it finds what number to pull next. I do see that it selects from dual, which I never understood the purpose of anyway, but I don't see how the next number is determined. Is that where the cache comes in? Does it save 20 numbers and just keep decrementing?
    If you use the ApEx Object Browser, you can see the last value of the sequence.
    In order to get the next value of the sequence, you have to SELECT it from something. DUAL is typically used because it always has 1 column & 1 row. Thus, you can guarantee that a statement such as this:
    select my_sequence.nextval from dual
    Will always bring back 1 row - which will be the next value of the sequence.
    The "20" which you are referring to is the number of values it will cache in memory. This is why you may see gaps of 20 in your sequences - depending on the load of the Database, the values may get flushed out of the cache.
    Again - sequences are guaranteed to be unique - you will almost always have gaps.
    Thanks,
    - Scott -

  • Trigger Compilation Errors after Full Import with Datapump

    Hello All,
    We did a full import with Oracle Datapump, and encountered some errors related to triggers:
    ORA-39082: Object type TRIGGER:"CONVERT3"."CUBCNVT_AUDIT_RESET" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CUBCNVT_AUDIT_RESET" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CUBCNVT_AUDIT" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CUBCNVT_AUDIT" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CURCNVT_AUDIT_RESET" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CURCNVT_AUDIT_RESET" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CURCNVT_AUDIT" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CURCNVT_AUDIT" created with compilation warningsWe are wondering if there is some bug with the datapump on oracle 10.2.0.2. What caused such errors and how to resolve this trigger issue?
    Thanks!

    Hello,
    Show errors / at the end of the trigger and see if any of the dependent objects is missing resulting in error at compilation.
    Also you can try manually fixing the issue
    CREATE OR REPLACE TRIGGER table1_trg
       AFTER INSERT
       ON TABLE1    REFERENCING NEW AS new OLD AS old
       FOR EACH ROW
    DECLARE
       tmpvar   NUMBER;
    BEGIN
    Trigger code
    EXCEPTION
       WHEN OTHERS
       THEN
          -- Consider logging the error and then re-raise
          RAISE;
    END table1_trg;
    SHOW ERRORS;Regards

  • Error after submitting Import Items Seeded Program

    Hi All,
    I am getting error message "Item Catalog Group Descriptive Elements Open Interface import completed successfully for all records in this record set." when i am submitting Import Items Seeded program.
    data is loaded into master organization successfully but no records were created in child organizations.
    Apps version is 11.5.10.2
    The same program with same code ran successfully a week back.
    Any help is appreciated.
    Thank You..

    Hi,
    I am getting error message "Item Catalog Group Descriptive Elements Open Interface import completed successfully for all records in this record set." when i am submitting Import Items Seeded program. This is not an error message. Can you find any error/warning messages in the log file? You may enable trace and submit the request again.
    data is loaded into master organization successfully but no records were created in child organizations.
    Apps version is 11.5.10.2Review the following document and see if it helps.
    Note: 268968.1 - Understanding Item Import and Debugging Problems with Item Import
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=268968.1
    The same program with same code ran successfully a week back.Have you done any changes recently? Can you find any errors in the database log file?
    Regards,
    Hussein

  • Incorrect user profile setting after database import

    We migrateed the production databsae from Solaris running 10.2.0.3 to OEL running 10.2.0.5. The method we used is exp/imp and it seem everything fine. However, it found that some of the user profile (ie. IDLE TIME, ) limit is not the the same as the old database. It seem the user profile is not migrated successfully.
    Exp.par
    cat expPRODN_normal.par
    full=y
    direct=y
    buffer=409600000
    feedback=100000
    compress=y
    statistics=none
    consistent=n
    log=/db/oracle/exp_for_linux/expPRODN_full.log
    filesize=2000mb
    file=/db/oracle/exp_for_linux/1
    imp.par
    cat imp_PRD.par
    full=y
    buffer=409600000
    statistics=none
    log=/db/oracle/lyn/imp_PRD.log
    file=/import/PRODN/1
    In old database:
    SYS@PRODN1>select resource_name, limit from dba_profiles where profile='DEFAULT' order by resource_name;
    RESOURCE_NAME LIMIT
    COMPOSITE_LIMIT UNLIMITED
    CONNECT_TIME UNLIMITED
    CPU_PER_CALL UNLIMITED
    CPU_PER_SESSION UNLIMITED
    FAILED_LOGIN_ATTEMPTS 5
    IDLE_TIME 60
    LOGICAL_READS_PER_CALL UNLIMITED
    LOGICAL_READS_PER_SESSION UNLIMITED
    PASSWORD_GRACE_TIME UNLIMITED
    PASSWORD_LIFE_TIME UNLIMITED
    PASSWORD_LOCK_TIME UNLIMITED
    RESOURCE_NAME LIMIT
    PASSWORD_REUSE_MAX UNLIMITED
    PASSWORD_REUSE_TIME UNLIMITED
    PASSWORD_VERIFY_FUNCTION NULL
    PRIVATE_SGA UNLIMITED
    SESSIONS_PER_USER 3
    16 rows selected.
    SYS@PRODN1>
    In new database:
    sys@SPRD1> select resource_name, limit from dba_profiles where profile='DEFAULT' order by resource_name;
    RESOURCE_NAME LIMIT
    COMPOSITE_LIMIT UNLIMITED
    CONNECT_TIME UNLIMITED
    CPU_PER_CALL UNLIMITED
    CPU_PER_SESSION UNLIMITED
    FAILED_LOGIN_ATTEMPTS 10
    IDLE_TIME 60
    LOGICAL_READS_PER_CALL UNLIMITED
    LOGICAL_READS_PER_SESSION UNLIMITED
    PASSWORD_GRACE_TIME UNLIMITED
    PASSWORD_LIFE_TIME UNLIMITED
    PASSWORD_LOCK_TIME UNLIMITED
    RESOURCE_NAME LIMIT
    PASSWORD_REUSE_MAX UNLIMITED
    PASSWORD_REUSE_TIME UNLIMITED
    PASSWORD_VERIFY_FUNCTION NULL
    PRIVATE_SGA UNLIMITED
    SESSIONS_PER_USER UNLIMITED
    16 rows selected.
    sys@OIMSPRD1>
    You can see limit value of FAILED_LOGIN_ATTEMPTS, IDLE_TIME and SESSIONS_PER_USER are different.

    It is not a user profile, but the default one which already exist by default in the database and not overwritten when importing.
    By the way, IDLE_TIME is same on both sides.
    Nicolas.

  • Bc4j error after database disconnect

    I'm running a bc4j web application in oc4j 9.0.3. If for some reason the application module is disconnected from the database (e.g. a database restart), I get the a connection reset by peer error the next time the application tries to get an application module instance. This is apparently happening during rollback (even though I'm sure there were no open transactions). Does anybody have some suggestions??
    thanks, Cor
    the error I get is:
    JBO-30003: The application pool (AMvseLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.DMLException: JBO-26066: Error during rollback.
         at oracle.jbo.server.DefaultTxnHandlerImpl.handleRollback(DefaultTxnHandlerImpl.java:153)
         at oracle.jbo.server.DBTransactionImpl.doRollback(DBTransactionImpl.java:3657)
         at oracle.jbo.server.DBTransactionImpl.rollback(DBTransactionImpl.java:1826)
         at oracle.jbo.server.ApplicationModuleImpl.resetState(ApplicationModuleImpl.java:3156)
         at oracle.jbo.server.ApplicationModuleImpl.resetState(ApplicationModuleImpl.java:3145)
         at oracle.jbo.server.DBTransactionImpl.disconnect(DBTransactionImpl.java:3971)
         at oracle.jbo.server.DBTransactionImpl2.disconnect(DBTransactionImpl2.java:306)
         at oracle.jbo.server.DBTransactionImpl.disconnect(DBTransactionImpl.java:4108)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.disconnect(DefaultConnectionStrategy.java:328)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.disconnect(ApplicationPoolImpl.java:2979)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.recycleUnreferencedInstance(ApplicationPoolImpl.java:1586)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1386)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2062)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:398)
         at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:230)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:193)
         at login.jspService(_login.java:98)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at sphinx.vse.filter.AuthentifiedFilter.doFilter(AuthentifiedFilter.java:67)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:479)
    ## Detail 0 ##
    java.sql.SQLException: E/A-Exception: Connection reset by peer: socket write error
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:187)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:229)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:342)
         at oracle.jdbc.driver.OracleConnection.rollback(OracleConnection.java:1373)
         at oracle.jbo.server.DefaultTxnHandlerImpl.handleRollback(DefaultTxnHandlerImpl.java:139)
         at oracle.jbo.server.DBTransactionImpl.doRollback(DBTransactionImpl.java:3657)
         at oracle.jbo.server.DBTransactionImpl.rollback(DBTransactionImpl.java:1826)
         at oracle.jbo.server.ApplicationModuleImpl.resetState(ApplicationModuleImpl.java:3156)
         at oracle.jbo.server.ApplicationModuleImpl.resetState(ApplicationModuleImpl.java:3145)
         at oracle.jbo.server.DBTransactionImpl.disconnect(DBTransactionImpl.java:3971)
         at oracle.jbo.server.DBTransactionImpl2.disconnect(DBTransactionImpl2.java:306)
         at oracle.jbo.server.DBTransactionImpl.disconnect(DBTransactionImpl.java:4108)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.disconnect(DefaultConnectionStrategy.java:328)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.disconnect(ApplicationPoolImpl.java:2979)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.recycleUnreferencedInstance(ApplicationPoolImpl.java:1586)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1386)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2062)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:398)
         at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:230)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:193)
         at login.jspService(_login.java:98)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at sphinx.vse.filter.AuthentifiedFilter.doFilter(AuthentifiedFilter.java:67)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:479)

    This problem appeared here today, but the first time I try to access the application the exception is a little bit different:
    JBO-30003: The application pool (SiscomModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.DMLException: JBO-26066: Error during rollback.
         at oracle.jbo.server.DefaultTxnHandlerImpl.handleRollback(DefaultTxnHandlerImpl.java:153)
    ## Detail 0 ##
    java.sql.SQLException: No more data to read from socket
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160)
         at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:963)
         at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:893)
         at oracle.jdbc.ttc7.Ocommoncall.receive(Ocommoncall.java:104)
         at oracle.jdbc.ttc7.TTC7Protocol.rollback(TTC7Protocol.java:487)
         at oracle.jdbc.driver.OracleConnection.rollback(OracleConnection.java:1376)
         at oracle.jbo.server.DefaultTxnHandlerImpl.handleRollback(DefaultTxnHandlerImpl.java:139)
    If I try to access the application for now on, then I start getting the same exception as you:
    JBO-30003: The application pool (SiscomModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.DMLException: JBO-26066: Error during rollback.
         at oracle.jbo.server.DefaultTxnHandlerImpl.handleRollback(DefaultTxnHandlerImpl.java:153)
    ## Detail 0 ##
    java.sql.SQLException: Io exception: Connection aborted by peer: socket write error
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
         at oracle.jdbc.driver.OracleConnection.rollback(OracleConnection.java:1380)
         at oracle.jbo.server.DefaultTxnHandlerImpl.handleRollback(DefaultTxnHandlerImpl.java:139)
    Reading some posts on google, I found this: "I've seen this exception before under different circumstances, so you can
    take my advice with a grain of salt. Anyhow, in my experience, the 'No more
    data from socket' error has been related to the database timing out."
    So I'm going to check the settings for my connection pool, and let you know the results.
    []'s
    Alexandre Mello.

  • Getting error after submitting import standard purchase order from localization responsibility

    Hi All,
    I have manully inserted data in header,line,distribution interface table like below
    INSERT INTO po_headers_interface
    (interface_header_id,process_code,action,org_id,document_type_code,document_num,currency_code,vendor_name,vendor_id,vendor_site_code,vendor_site_id,comments,
    vendor_doc_num,amount_agreed,effective_date,expiration_date,vendor_contact,approval_status,terms_id,agent_id,creation_date,created_by,last_update_date,last_updated_by)
    VALUES  
    (po_headers_interface_s.NEXTVAL,'PENDING','ORIGINAL','7046','STANDARD','454545','INR','Madhura Enterprises','40179',NULL,'13922','XYZ',null,null,sysdate,sysdate+10,null,
    'Approved',13922,25,SYSDATE,fnd_global.user_id,SYSDATE,fnd_global.user_id);
    INSERT INTO po_lines_interface
    (interface_line_id,interface_header_id,process_code,line_num,item_id,item_description,uom_code,unit_of_measure,quantity,unit_price,ship_to_organization_id,ship_to_location_id,
    need_by_date,promised_date,last_update_date,last_updated_by,creation_date,created_by,line_type_id,vendor_product_num,note_to_vendor,shipment_num,closed_code,closed_reason,CATEGORY_id,tax_code_id)
    VALUES
    (po_lines_interface_s.NEXTVAL,po_headers_interface_s.CURRVAL,'PENDING',1,'208956','ESSEL CAPITAL ITEM','Ea','Each',2,100,'7087',
    '22885',SYSDATE+1,SYSDATE+1,SYSDATE,fnd_global.user_id,SYSDATE,fnd_global.user_id,'1',NULL,'aaaaaa','1',NULL,NULL,'1','1000');
    INSERT INTO po_distributions_interface
    (interface_header_id,interface_line_id,interface_distribution_id,distribution_num,quantity_ordered,quantity_delivered,quantity_billed,quantity_cancelled,destination_type_code,deliver_to_location_id,
    deliver_to_person_id,charge_account,charge_account_id,creation_date,created_by,project_id,expenditure_item_date)
    VALUES
    (po_headers_interface_s.CURRVAL,po_lines_interface_s.CURRVAL,po_distributions_interface_s.NEXTVAL,'1','2',NULL,NULL,NULL,
    'INVENTORY','22885','24',NULL,'134793',SYSDATE,fnd_global.user_id,NULL,NULL);
    When i am submitting the standard program then i am getting following error---
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small in Package po.plsql.PO_PDOI_ERR_UTL. Procedure add_fatal_error.0
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small in Package po.plsql.PO_PDOI_ITEM_PROCESS_PVT. Procedure update_master_item.60
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small in Package po.plsql.PO_PDOI_ITEM_PROCESS_PVT. Procedure create_items.60
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small in Package po.plsql.PO_PDOI_MAINPROC_PVT. Procedure process_lines_add.70
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small in Package po.plsql.PO_PDOI_MAINPROC_PVT. Procedure process_lines.10
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small in Package po.plsql.PO_PDOI_MAINPROC_PVT. Procedure process.10
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small in Package po.plsql.PO_PDOI_PVT. Procedure start_process.110
    User-Defined Exception in Package po.plsql.PO_PDOI_Concurrent. Procedure POXPDOI.30
    Please help me in this issue.. when i am running this on vision without tax code it is working fine.
    But in localization its not working. Basically i need to do scripting for india localization for Open PO.
    The application Details -
    RDBMS : 11.1.0.7.0
    Oracle Applications : 12.1.3

    please everyone do needful help on this..

  • Error while running Import Items program

    Hi All,
    I am getting error message "Item Catalog Group Descriptive Elements Open Interface import completed successfully for all records in this record set." when i am submitting Import Items Seeded program.
    data is loaded into master organization successfully but no records were created in child organizations.
    Apps version is 11.5.10.2
    The same program with same code ran successfully a week back.
    Any help is appreciated.
    Thank You..

    Duplicate thread (please post only once).
    Error after submitting Import Items Seeded Program
    Re: Error after submitting Import Items Seeded Program

  • Using database connection in a servlet and get errors after 8 hours

    Hey,
    I'm running a poker script using applet/servlets and it works great. But for some reason about about 8 hours that database layer stops working. At first I thought it was the connections to mySQL that were timing out (because im using connection pooling) but after turning pooling off (I now create the connection each time) I'm still seeing that same error (I can create a connection but when I do an action ex. like a select statment I get an error). What i'm wondering could it be that the driver I load with Class.forName() some how unloads it's self after x amount of time not being used? Not sure if that is it but if anyone could give me some insight that would be great. The Error i recieve is below:
    INFO: Database Event:DatabaseController: Error executing database query.
    ERROR: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.net.SocketException
    MESSAGE: Software caused connection abort: recv failed
    STACKTRACE:
    java.net.SocketException: Software caused connection abort: recv failed
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(Unknown Source)
         at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:104)
         at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:144)
         at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:172)
         at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1839)
         at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2288)
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2784)
         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1531)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1622)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:2370)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:2297)
         at com.mysql.jdbc.Statement.executeQuery(Statement.java:1183)
         at com.softnet.database.DatabaseController.executeDatabaseQuery(DatabaseController.java:190)
         at com.softnet.games.GameServer.validateUser(GameServer.java:438)
         at com.softnet.games.GameServer.handleData(GameServer.java:113)
         at com.softnet.network.HttpConnectionThread.run(HttpServletListener.java:191)
    ** END NESTED EXCEPTION **
    I know the query is good because it works all other times just not after about 8 hours.
    --Z3r0CooL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hey,
    Thanks for the responces. For the connection pooling I would open 5 connections and keep them open. So i though maybe after 8 hours after not being used they would timeout. Thats why i turned off conection pooling and create a new connection each time. Anyways i'll post the code below incase i made a mistake somewhere.
    package com.softnet.database;
    /************************ DatabaseControler **************************/
    import java.sql.*;
    import java.util.*;
    import com.softnet.database.DatabaseConnectionPool;
    import com.softnet.database.DatabaseSettings;
    public class DatabaseController
    implements DatabaseListener
         //Used to make sure the database driver is loaded
         private boolean databaseDriverState = false;
         //Used to store a database connection
         private Connection databaseConnection = null;
         //If to user connection pooling or not
         private boolean useConnectionPooling = false;
         //Used to hold the connection pool varible
         private DatabaseConnectionPool connectionPool = null;
         //Used to store database settings
         private DatabaseSettings databaseSettings;
         //Used to hold the DatabaseController listeners
         private List databaseControllerListeners = new ArrayList();
         //min number of connections for connection pool
         private int minNumberOfConnections = 1;
         //max number of connections for connection pool -1 is unlimited
         private int maxNumberOfConnections = -1;
         //DatabaseController Constructors
         public DatabaseController(DatabaseSettings databaseSettings)
              this.databaseSettings = databaseSettings;
              databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
         public DatabaseController(DatabaseSettings databaseSettings, boolean useConnectionPooling, int minNumberOfConnections, int maxNumberOfConnections)
              this.databaseSettings = databaseSettings;
              this.useConnectionPooling = useConnectionPooling;
              this.minNumberOfConnections = minNumberOfConnections;
              this.maxNumberOfConnections = maxNumberOfConnections;
              if(useConnectionPooling == true)
                   connectionPool = new DatabaseConnectionPool(databaseSettings, minNumberOfConnections, maxNumberOfConnections);
                   connectionPool.addDatabaseListener(this);
              else
                   databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
         public DatabaseController() {}
         //Database Settings Get/Set
         public DatabaseSettings getDatabaseSettings()
              return databaseSettings;
         public void setDatabaseSettings(DatabaseSettings databaseSettings)
              this.databaseSettings = databaseSettings;
         //Connection Pooling Get/Set
         public boolean getConnectionPooling()
              return useConnectionPooling;
         public void setConnectionPooling(boolean useConnectionPooling, int minNumberOfConnections, int maxNumberOfConnections)
              this.useConnectionPooling = useConnectionPooling;
              this.minNumberOfConnections = minNumberOfConnections;
              this.maxNumberOfConnections = maxNumberOfConnections;
              if(useConnectionPooling == true)
                   if(connectionPool == null)
                        connectionPool = new DatabaseConnectionPool(databaseSettings, minNumberOfConnections, maxNumberOfConnections);
                        connectionPool.addDatabaseListener(this);
              else
                   if(connectionPool != null)
                        connectionPool.destroyConnections();
                        connectionPool.removeDatabaseListener(this);
                        connectionPool = null;
         //Return if there connected
         public boolean isConnected()
              boolean isConnected;
              if(databaseConnection != null)
                   isConnected = true;
              else
                   isConnected = false;
              return isConnected;
         //Used to connect to database or get a connection for the connection pool
         public void connect()
              if(databaseDriverState == false)
                   databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
              //If we dont have a current connection, make one
              if(databaseConnection == null && databaseDriverState == true)
                   if(useConnectionPooling == false)
                        try
                             databaseConnection = DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword());
                        catch (SQLException sqle)
                             //Raise event
                             raiseDatabaseEvent("DatabaseController: Error connecting to database. \nERROR: " + sqle.getMessage());
                             databaseConnection = null;
                   else
                        databaseConnection = connectionPool.getConnection();
         //Used to disconnect from the database or give back the connection to the connection pool
         public void disconnect()
              if(databaseConnection != null)
                   if(useConnectionPooling == false)
                        try
                             //Close DB Connection
                             databaseConnection.close();
                        catch(SQLException ignore) {}
                        finally
                             databaseConnection = null;
                   else
                        connectionPool.returnConnection(databaseConnection);
                        databaseConnection = null;
         public ResultSet executeDatabaseQuery(String sSQL)
              ResultSet databaseResult = null;
              if(databaseConnection != null)
                   try
                        Statement databaseStatement = databaseConnection.createStatement();
                        databaseResult = databaseStatement.executeQuery(sSQL);
                   catch(SQLException sqle)
                        //Raise event
                        raiseDatabaseEvent("DatabaseController: Error executing database query.\nSQL: " + sSQL + "\nERROR: " + sqle.getMessage());
              return databaseResult;
         public int executeDatabaseUpdate(String sSQL)
              int rowsAffected = -1;
              if(databaseConnection != null)
                   try
                        Statement databaseStatement = databaseConnection.createStatement();
                        rowsAffected = databaseStatement.executeUpdate(sSQL);
                   catch(SQLException sqle)
                        //Raise event
                        raiseDatabaseEvent("DatabaseController: Error executing database update.\nSQL: " + sSQL + "\nERROR: " + sqle.getMessage());
              return rowsAffected;
         //Used to load the Database Driver
         private boolean loadDatabaseDriver(String databaseDriver)
              boolean driverLoaded;
              if(databaseDriver.equals("") == false)
                   try
                        //Load Database Driver
                        Class.forName(databaseDriver).newInstance();
                        driverLoaded = true;
                   catch (Exception e)
                        //Raise event
                        raiseDatabaseEvent("DatabaseController: Error loading database driver. \nERROR: " + e.getMessage());
                        driverLoaded = false;
              else
                   driverLoaded = false;
              return driverLoaded;
         //Wrap the DatabaseConnectionPool Error to the DatabaseController
         public void databaseEventOccurred(DatabaseEvent de)
              raiseDatabaseEvent(de.getErrorMessage());
         //Event Handling Code
         //Used to add database listeners (Its sync'd so you can change the listeners when firing an event)
    public synchronized void addDatabaseListener(DatabaseListener databaseControllerListener)
    databaseControllerListeners.add(databaseControllerListener);
    //Used to remove a listener from the list (Its sync'd so you can change the listeners when firing an event)
    public synchronized void removeDatabaseListener(DatabaseListener databaseControllerListener)
    databaseControllerListeners.remove(databaseControllerListener);
    //Used to send the raise event to the listeners
    private synchronized void raiseDatabaseEvent(String databaseError)
    DatabaseEvent databaseEvent = new DatabaseEvent(this, databaseError);
    Iterator listeners = databaseControllerListeners.iterator();
    while(listeners.hasNext())
         DatabaseListener listener = (DatabaseListener) listeners.next();
    listener.databaseEventOccurred(databaseEvent);
    /********************* DatabaseConnectionPool **************/
    package com.softnet.database;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import com.softnet.database.*;
    import com.softnet.database.DatabaseSettings;
    public class DatabaseConnectionPool
         //min number of connections
         private int minNumberOfConnections = 1;
         //max number of connections -1 is unlimited
         private int maxNumberOfConnections = -1;
         //Store the connections
         protected Hashtable databaseConnections = null;
         //Database Info
         protected DatabaseSettings databaseSettings;
         //to hold Driver state
         private boolean databaseDriverState = false;
         //To hold connection checker
         private DatabaseConnectionCheck connectionChecker = null;
         //Used to hold the DatabaseConnectionPool listeners
         private List databaseConnectionPoolListeners = new ArrayList();
         public DatabaseConnectionPool(DatabaseSettings databaseSettings, int minNumberOfConnections, int maxNumberOfConnections)
              this.databaseSettings = databaseSettings;
              this.minNumberOfConnections = minNumberOfConnections;
              this.maxNumberOfConnections = maxNumberOfConnections;
              //Load Driver
              databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
              //Create connection
              createConnections();
         public DatabaseConnectionPool(int minNumberOfConnections, int maxNumberOfConnections)
              this.minNumberOfConnections = minNumberOfConnections;
              this.maxNumberOfConnections = maxNumberOfConnections;
         //Database Settings Get/Set
         public DatabaseSettings getDatabaseSettings()
              return databaseSettings;
         public void setDatabaseSettings(DatabaseSettings databaseSettings)
              this.databaseSettings = databaseSettings;
         //Driver State Get
         public boolean getDatabaseDriverState()
              return databaseDriverState;
         public void createConnections()
              if(databaseDriverState == false)
                   databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
              //Create all connections and load the minimum in the Hashtable
              if(databaseConnections == null)
                   if(databaseDriverState == true && minNumberOfConnections != 0)
                        databaseConnections = new Hashtable();
                        for(int i = 0; i < minNumberOfConnections; i++)
                             try
                                  databaseConnections.put(DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword()), Boolean.FALSE);
                             catch(SQLException sqle)
                                  //Problem break loop and destroy any connections
                                  destroyConnections();
                                  //Raise event
                                  raiseDatabaseEvent("DatabaseConnectionPool: Error creating database connections. \nERROR: " + sqle.getMessage());
                                  break;
              //If no connection check exists create one
              if(connectionChecker == null)
                   connectionChecker = new DatabaseConnectionCheck(this);
                   connectionChecker.start();
         public Connection getConnection()
              Connection connection = null;
              boolean errorWithConnection = false;
              Enumeration connections = databaseConnections.keys();
              synchronized (databaseConnections)
                   while(connections.hasMoreElements())
                        errorWithConnection = false;
                        connection = (Connection) connections.nextElement();
                        Boolean state = (Boolean) databaseConnections.get(connection);
                        //If connection is not used, use it.
                        if(state == Boolean.FALSE)
                             try
                                  connection.setAutoCommit(true);
                             catch(SQLException e)
                                  //Problem with connection remove connection and replace it
                                  databaseConnections.remove(connection);
                                  try
                                       connection = DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword());
                                  catch(SQLException sqle)
                                       errorWithConnection = true;
                             if(errorWithConnection == false)
                                  // Update the Hashtable to show this one's taken
                                  databaseConnections.put(connection, Boolean.TRUE);
                                  // Return the connection
                                  return connection;
                   //All connections being used check to max to see if we can make a new one
                   if(maxNumberOfConnections == -1 || maxNumberOfConnections > databaseConnections.size())
                        try
                             connection = DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword());
                        catch(SQLException sqle)
                             errorWithConnection = true;
                        if(errorWithConnection == false)
                             databaseConnections.put(connection, Boolean.TRUE);
                             return connection;
              //If not connections free and max connections reached wait for a free connection
              return getConnection();
         public void returnConnection(Connection connection)
              boolean errorWithConnection = false;
              //Make sure connection still works
              try
                   connection.setAutoCommit(true);
              catch(SQLException e)
                   //Problem with connection remove connection and replace it
                   databaseConnections.remove(connection);
                   try
                        connection = DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword());
                   catch(SQLException sqle)
                        errorWithConnection = true;     
              if(errorWithConnection == false)
                   databaseConnections.put(connection, Boolean.FALSE);
         public void destroyConnections()
              Connection connection = null;
              if(databaseConnections != null)
                   //Close all connections
                   Enumeration connections = databaseConnections.keys();
                   while (connections.hasMoreElements())
                        connection = (Connection) connections.nextElement();
                        try
                             connection.close();
                        catch(SQLException ignore) {}
                   //Free up hashtable
                   databaseConnections = null;
         private boolean loadDatabaseDriver(String databaseDriver)
              boolean driverLoaded;
              if(databaseDriver.equals("") == false)
                   try
                        //Load Database Driver
                        Class.forName(databaseDriver);
                        driverLoaded = true;
                   catch (ClassNotFoundException cnfe)
                        //Raise event
                        raiseDatabaseEvent("DatabaseController: Error loading database driver. \nERROR: " + cnfe.getMessage());
                        driverLoaded = false;
              else
                   driverLoaded = false;
              return driverLoaded;
         //Event Handling Code
         //Used to add database listeners (Its sync'd so you can change the listeners when firing an event)
    public synchronized void addDatabaseListener(DatabaseListener databaseConnectionPoolListener)
    databaseConnectionPoolListeners.add(databaseConnectionPoolListener);
    //Used to remove a listener from the list (Its sync'd so you can change the listeners when firing an event)
    public synchronized void removeDatabaseListener(DatabaseListener databaseConnectionPoolListener)
    databaseConnectionPoolListeners.remove(databaseConnectionPoolListener);
    //Used to send the raise event to the listeners
    private synchronized void raiseDatabaseEvent(String databaseError)
    DatabaseEvent databaseEvent = new DatabaseEvent(this, databaseError);
    Iterator listeners = databaseConnectionPoolListeners.iterator();
    while(listeners.hasNext())
         DatabaseListener listener = (DatabaseListener) listeners.next();
    listener.databaseEventOccurred(databaseEvent);
    class DatabaseConnectionCheck extends Thread
         private DatabaseConnectionPool connectionPool;
         DatabaseConnectionCheck(DatabaseConnectionPool connectionPool)
              this.connectionPool = connectionPool;
         public void run()
              try
                   while(true)
                        //check threads every 30 seconds
                        this.sleep(300000);
                        if(connectionPool.databaseConnections != null)
                             Connection connection = null;
                             Enumeration connections = connectionPool.databaseConnections.keys();
                             synchronized (connectionPool.databaseConnections)
                                  while(connections.hasMoreElements())
                                       connection = (Connection) connections.nextElement();
                                       Boolean state = (Boolean) connectionPool.databaseConnections.get(connection);
                                       //If connection is not used, use it.
                                       if(state == Boolean.FALSE)
                                            try
                                                 connection.setAutoCommit(true);
                                            catch(SQLException e)
                                                 //Problem with connection remove connection and replace it
                                                 connectionPool.databaseConnections.remove(connection);
                                                 try
                                                      connection = DriverManager.getConnection(connectionPool.databaseSettings.getDatabaseURL(), connectionPool.databaseSettings.getUserName(), connectionPool.databaseSettings.getUserPassword());
                                                 catch(SQLException sqle)
                                                      connection = null;
                                                 // Update the Hashtable with new connection if its not null
                                                 if(connection != null)
                                                      connectionPool.databaseConnections.put(connection, Boolean.FALSE);
              catch(InterruptedException ignored) {}     
    Basicly the why it works is the connection pool hold the database connections. When the user needs a connection they use the database controller to request a connection (By create a instance and called the connect() method) and the connection is either created or grabed from the connection pool. After the user is done with the connection they call the disconnect() method which closes the connection or returns it to the connection pool.
    --Z3r0CooL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

  • OIM 11g: Error After starting OIM server :retrieving database connection

    Hi All,
    After patching OIM 11.1.1.5.0 to BP02 I am getting following error in logs of OIM and not able to see Import Deployment Manager File and..continuously this error bounce back
    Error
    <Error> <XELLERATE.DATABASE> <BEA-000000> <Class/Method: DBPoolManager/getConnection/Exception encounter some problems: Error while retrieving database connection.Please check for the following
    Database srever is up.
    DirectDB settings in configuration file are correct.>
    <Mar 16, 2012 6:50:31 AM EDT> <Error> <XELLERATE.DATABASE> <BEA-000000> <Class/Method: DirectDB/getConnection encounter some problems: Error while retrieving database connection.Please check for the follwoing
    Database srever is running.
    Datasource configuration settings are correct.
    java.sql.SQLException: java.sql.SQLException: Exception occurred while getting connection: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
    at com.thortech.xl.util.DirectDB$DBPoolManager.getConnection(DirectDB.java:441)
    at com.thortech.xl.util.DirectDB.getConnection(DirectDB.java:176)
    at com.thortech.xl.dataobj.util.ADPClassWatchDog.getMaxUpdateTimestamp(ADPClassWatchDog.java:50)
    at com.thortech.xl.dataobj.util.ADPClassWatchDog.run(ADPClassWatchDog.java:145)
    >
    <Mar 16, 2012 6:50:31 AM EDT> <Error> <XELLERATE.ADAPTERS> <BEA-000000> <ADPClassWatchDog: Error occured while getting the max adp_update timestamp>
    Earlier before patching to BP02 in weblogic Datasources we have
    Driver Class Name: oracle.jdbc.xa.client.OracleXADataSource
    But when I was providing this value in weblogic.profile during patching attribute name "operationsDB.driver=oracle.jdbc.xa.client.OracleXADataSource ", I am getting this error
    /data/oim/Oracle/Middleware/Oracle_IDM1/server/setup/deploy-files/setup.xml:204: java.lang.ClassCastException: oracle.jdbc.xa.client.OracleXADataSource cannot be cast to java.sql.Driver
    So I changed this value to "operationsDB.driver=oracle.jdbc.OracleDriver" and it runs fine. Patch completed successfully.
    Is there any issue with this Driver Class Name mismatch, so I am getting this error? I have also tried for all Datasources same Driver Class Name but invain.
    Regards,
    Amit

    Hi Bikash,
    Nothing is changed between network/firewall. From Database machine I am able to see tnsping running fine. From weblogic admin console I have checked the connectivity of different datasource is successfull. Right now I have these datasources, all have Driver Class Name=oracle.jdbc.OracleDriver.
    EDNDataSource
         EDNLocalTxDataSource
         mds-oim     
         mds-owsm
         mds-soa     
         oimJMSStoreDS
         oimOperationsDB     
         OraSDPMDataSource     
         SOADataSource     
         SOALocalTxDataSource
    You mean For all the datasources I need to make it oracle.jdbc.xa.client.OracleXADataSource. I make it this also but no success.
    Also tell me..Summary of Security Realms >myrealm >Providers >OIMAuthenticationProvider here also I need to provide Xadatasource Driver name.

  • DTW Sort Error - after mapping during import

    I got the "Sort Error - after mapping during import" message in DTW. (version 8.8)
    I would like to import warehouse info for items.
    My itemcodes are fix 15 character numbers, like this: 10204150020011
    The note nr. [1331130|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/oss_notes/sdn_oss_sbo_dtw/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31333331313330%7d] said that I can't use recordkey like this.
    Do you have any idea how can I import thees information with DTW?
    Thank you,
    Attila Sarkady

    Dear All
    Please give correct and complete information
    i have tested every kind of combination;
    - recreate the template with the dtw for Items = i have UDF's
    - ADD the column RecordKey   !!! unbelievable that we have to do this
    - i have entered a nr 1 in it (even when we had already 850 items in the database)
    (and of course the hints of Gordon - columns as text, start with basic... - and use CSV format)
    now at last i can import the record line
    greetings
    philippe

  • Application pages gone after database destroy / recreate / import

    Hi -- Our DBA had to completely recreate the database in
    which our APEX installation lives.
    What he did was:
    - exported the DB
    - destroyed the DB
    - recreated the DB
    - reinstalled APEX
    - full database import
    Workspaces are there. Applications are there. Application shared objects are there.
    But none of the applications have any pages.
    Any idea what's up, how to fix it?
    thanks!
    Carol

    HI Scott - Yes, unfortunately, it's still a problem. The DBA said that after the initial database import, there were no grants for objects owned by SYS. When he tried to login to the admin area of APEX, he got these errors (recorded in the Apache error logs):
    Tue Aug 12 09:29:20 2008] [error] [client 127.0.0.1] [ecid: 1218554959:140.217.14.12:23313:0:1,0] mod_plsql: /pls/apex/apex HTTP-404 ORA-04063: package body "FLOWS_030000.WWV_FLOW_SECURITY" has errors\nORA-06508: PL/SQL: could not find program unit being called: "FLOWS_030000.WWV_FLOW_SECURITY"\nORA-06512: at "FLOWS_030000.APEX", line 1\nORA-06512: at line 22\n
    [Tue Aug 12 09:16:05 2008] [error] [client 127.0.0.1] [ecid: 1218554165:140.217.14.12:24745:0:15,0] File does not exist: /ora/oracle/product/10.2.0/http_1/Apache/Apache/htdocs/favicon.ico
    Our DBA had found something about this problem with respect to APEX 2. He wasn't sure if it applied to APEX 3, but re-installing APEX corrected the problem.
    Thanks,
    Carol

Maybe you are looking for