GATHER_STATS_JOB / WEEKNIGHT_WINDOW ORA-20003

Hi all,
Oracle 10g R2 after on SLES 10 Linux.
After I installed the PSU from Jan. I get a daily ORA-20003 from maintains windows reguarding the GATHERER_STATS JOB
Sat Mar 13 06:00:13 2010
GATHER_STATS_JOB encountered errors. Check the trace file.
Sat Mar 13 06:00:13 2010
Errors in file /u01/app/oracle/admin/boracn/bdump/boracn1_j003_15027.trc:
ORA-20003: Specified bug number (5099019) does not exist
The trace file consists nothing more like
kswsdlaqsub: sub:SYS$SM_SYS svc:SYS.KUPC$S_1_20100314223004 unexpected exception err=604, err2=24010
Does anyone has an ideer ?
Thanks
T*

Hi thinkman,
I have a same proble with u during execte adstats.sql
declare
ERROR at line 1:
ORA-20003: Specified bug number (5099019) does not exist
ORA-06512: at "SYS.DBMS_STATS", line 14635
ORA-06512: at "SYS.DBMS_STATS", line 14981
ORA-06512: at "SYS.DBMS_STATS", line 15059
ORA-06512: at "SYS.DBMS_STATS", line 15018
ORA-06512: at line 3
ORA-06512: at line 23
and solve with ur suggestion too.
SQL> @?/rdbms/admin/dbmsstat.sqlSQL> @?/rdbms/admin/prvtstas.plbSQL> @?/rdbms/admin/prvtstat.plb
thank thinkman.

Similar Messages

  • Error ORA-20003: Cannot read file/...  in Cash Management?

    Dear All.
    I am having this Error in the Cash Management Module on the bank statement load process
    Error ORA-20003: Cannot read file /software/d01/oracle/interface/finance/inbound/email.9Nemail.13111507.3445704.cnv.
    How do I resolve this error.
    Thank you.

    Hi Lucy,
    The error is probably due to one of the reasons:
    1. There is no file in the location: /software/d01/oracle/interface/finance/inbound/email.9Nemail.13111507.3445704.cnv.
    2. No permission on the file respective file.
    Please get the assistance from the DBA to check on this.
    Thanks &
    Best Regards,

  • ORA -28003 and ORA-20003

    Hi!!
    i am trying 2 create a new user as below
    SQL>create user messi
    2> identified by 26-nov-1987
    3> default tablespace tbs
    4> temporary tablespace temp
    5> quota 15m on tbs
    6> password expire;
    Errors:-
    oRA-28003 password verification for the specified password failed
    ORA-20003 password should contain one digit, one alphabet and one punctuation.
    How to resolve it??

    Examine the file $ORACLE_HOME/rdbms/admin/utlpwdmg.sql , It will give you some hint. Alternatively, you can blindly use ALTER PROFILE profile_name LIMIT password_verify_function NULL;

  • Owb 10g R1: errors RPE-01003 and ORA-20003

    We are calling our mapping within an Oracle 9.2 function. Every step of the mapping executes without errors. But after executing the last step (sending an e-mail) following errors are occcuring:
    ORA-20003: The object is not in a valid state for the requested operation ORA-06512: at "OWB_RUN.WB_RTI_EXCEPTIONS", line 94 ORA-06512: at "OWB_RUN.WB_RTI_SERVICE_EXECUTION", line 195 ORA-06512: at "OWB_RUN.WB_RT_SERVICE_CONTROL", line 167 ORA-06512: at line 1
    But all the DB-Objects are valid ! What's the matter. Can anybody help us ?

    Rotimi,
    This message indicates that the object you try to execute is invalid with compilation errors. In the database you would see that the object has errors because for example: referencing tables cannot be found (because they had not been deployed or you do not have privileges to them), statements are invalid (e.g. in expressions), etc. If you try to execute a mapping that is invalid you will get these errors. Needless to say, you have to fix the fact that the mapping is invalid before you can execute it.
    Thanks,
    Mark.

  • Enterprise manager 10g ora-28003, ora-20003

    Hi,
    I have password policy function in my non-default profile. Database is 10g 10.2.0.5 with enterprise manager.
    When I try to do (trough EM) unlocking of user I got the error (not for all users), also I got error when I try to expire password, and when I want to change password.
    I got error ora-28003, ora-20003. Password sould contain at least one digit
    Password is correct.
    I can change this from toad or sqlplus, but cannot from enterprise manager.
    Did anyone have same problems?

    ???

  • Error: ORA-06502: PL/SQL: numeric or value error:NULL index table key value

    Hi,
    I am trying toceate an interface which collects data from database make some transformation and populated seeded tables in the same database.
    My Approach is :
    a) Create a record type variable ( concists of multiple segments)
    b) Create a pl/sql table type of the records type in a)
    c) Created a cursor of same structure as pl/sql table type ( collects data)
    d) BULK CoLLECT data from cursor into pl/sql table
    e) Print the data
    But during Bulk Collect i get the below error :
    Unexpected error in xxc_hr2hr_populate_elements.main at FLOW TRACE-1.120. Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-20003: Unexpected error in xxc_hr2hr_populate_elements.get_data at FLOW TRACE-1.1.100. Error: ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated Bind

    Ashish_Apps wrote:
    Hi,
    I am trying toceate an interface which collects data from database make some transformation and populated seeded tables in the same database.
    My Approach is :
    a) Create a record type variable ( concists of multiple segments)
    b) Create a pl/sql table type of the records type in a)
    c) Created a cursor of same structure as pl/sql table type ( collects data)
    d) BULK CoLLECT data from cursor into pl/sql table
    e) Print the data
    But during Bulk Collect i get the below error :
    Unexpected error in xxc_hr2hr_populate_elements.main at FLOW TRACE-1.120. Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-20003: Unexpected error in xxc_hr2hr_populate_elements.get_data at FLOW TRACE-1.1.100. Error: ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated BindVerify the rows you are fetching are having the same data types as your Record like Dates should go to date , decimal should not be fetched in type defined as number etc.

  • SQL error -20003 at location stats_tab_collect-20

    Hello All,
    we are executing ths statistics with the followin command
    brconnect -u / -c -f stats -t all -f collect
    but the proccess report errors like:
    BR0301E SQL error -20003 at location stats_tab_collect-20, SQL statement:
    'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPSR3"', TABNAME => '"/BEV3/CHCMVWPRO"', ESTIMATE_PERCENT => NULL, METHOD_OPT => 'FOR ALL COLUMNS SIZE 1', DEGREE => NULL, CASCADE => TRUE, NO_INVALIDATE => FALSE); END;'
    ORA-20003: Specified bug number (5099019) does not exist
    ORA-06512: at "SYS.DBMS_STATS", line 14457
    ORA-06512: at "SYS.DBMS_STATS", line 14477
    ORA-06512: at line 1
    BR0886E Checking/collecting statistics failed for table SAPSR3./BEV3/CHCMVWPRO
    BR0301E SQL error -20003 at location stats_tab_collect-20, SQL statement:
    'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPSR3"', TABNAME => '"/BEV3/CHCTRGI"', ESTIMATE_PERCENT => 1, METHOD_OPT => 'FOR ALL COLUMNS SIZE 1', DEGREE => NULL, CASCADE => TRUE, NO_INVALIDATE => FALSE); END;'
    ORA-20003: Specified bug number (5099019) does not exist
    ORA-06512: at "SYS.DBMS_STATS", line 14457
    ORA-06512: at "SYS.DBMS_STATS", line 14477
    ORA-06512: at line 1
    BR0886E Checking/collecting statistics failed for table SAPSR3./BEV3/CHCTRGI
    How we can fix this error?
    Thanks
    Hernando

    hello, to update, I receive the following recommendation
    The error "ORA-20003: Specified bug number (5099019) does not exist
    seems caused by fix of bug 5099019 is not installed correctly.
    Could you please first check if the merge fix 8299095 has been
    installed successfully? Check lsinventory and check if the post
    installation steps have been performed well.
    Post-install steps:
    startup database
    connect using sqlplus as SYSDBA
    start $ORACLE_HOME/rdbms/admin/dbmsstat.sql
    start $ORACLE_HOME/rdbms/admin/prvtstas.plb
    start $ORACLE_HOME/rdbms/admin/prvtstat.plb
    exit sqlplus
    Once those steps have been performed would you please check the databasefor invalid objects per the instructions in OSS note 648203?
    I followed the steps in recommendation:
    the fix is installed on patch 8599814.
    I started the DB and ran the SQL scripts:
    SQL> start $ORACLE_HOME/rdbms/admin/dbmsstat.sql
    Package created.
    No errors.
    Synonym created.
    Grant succeeded.
    create role gather_system_statistics
    ERROR at line 1:
    ORA-01921: role name 'GATHER_SYSTEM_STATISTICS' conflicts with another
    user or
    role name
    Grant succeeded.
    Grant succeeded.
    Library created.
    SQL> start $ORACLE_HOME/rdbms/admin/prvtstas.plb
    Package created.
    No errors.
    Package body created.
    No errors.
    SQL> start $ORACLE_HOME/rdbms/admin/prvtstat.plb
    Package body created.
    No errors.
    PL/SQL procedure successfully completed.
    According to note 648203 I search for invalid objects
    SQL> SELECT SUBSTR(OWNER, 1, 20) OWNER,SUBSTR(OBJECT_NAME, 1, 35)
    OBJECT_NAME,
    2 SUBSTR(OBJECT_TYPE, 1, 20) OBJECT_TYPE
    3 FROM DBA_OBJECTS
    4 WHERE STATUS = 'INVALID';
    no rows selected
    SQL> SELECT SUBSTR(COMP_ID, 1, 20) COMP_ID,
    2 SUBSTR(COMP_NAME, 1, 40) COMP_NAME,
    3 STATUS
    4 FROM DBA_REGISTRY;
    COMP_ID
    COMP_NAME
    STATUS
    CATALOG
    Oracle Database Catalog Views
    VALID
    CATPROC
    Oracle Database Packages and Types
    VALID
    SQL> SELECT O.NAME FROM OBJ$ O, REGISTRY$ R
    2 WHERE O.STATUS > 1 AND
    3 (O.CTIME BETWEEN R.DATE_LOADING AND R.DATE_LOADED OR
    4 O.MTIME BETWEEN R.DATE_LOADING AND R.DATE_LOADED OR
    5 O.STIME BETWEEN R.DATE_LOADING AND R.DATE_LOADED);
    no rows selected
    According to note 838725 I executed the following script:
    SQL> begin DBMS_STATS.GATHER_DICTIONARY_STATS(
    2 ESTIMATE_PERCENT => NULL,
    3 METHOD_OPT => 'FOR ALL COLUMNS SIZE AUTO',
    4 GRANULARITY => 'ALL',
    5 CASCADE => TRUE,
    6 OPTIONS => 'GATHER',
    7 NO_INVALIDATE => FALSE);
    8 end;
    9 /
    begin DBMS_STATS.GATHER_DICTIONARY_STATS(
    ERROR at line 1:
    ORA-20003: Specified bug number (5099019) does not exist
    ORA-06512: at "SYS.DBMS_STATS", line 14611
    ORA-06512: at "SYS.DBMS_STATS", line 14957
    ORA-06512: at "SYS.DBMS_STATS", line 17261
    ORA-06512: at "SYS.DBMS_STATS", line 17303
    ORA-06512: at line 1
    And, if I run the command from the same note
    volta:oracmd 53% brconnect -u / -c -f stats -t oradict_stats
    BR0801I BRCONNECT 7.00 (43)
    BR0805I Start of BRCONNECT processing: ceblmvwb.sta 2009-09-12 18.08.17
    BR0484I BRCONNECT log file: /oracle/CMD/sapcheck/ceblmvwb.sta
    BR0280I BRCONNECT time stamp: 2009-09-12 18.08.18
    BR0807I Name of database instance: CMD
    BR0808I BRCONNECT action ID: ceblmvwb
    BR0809I BRCONNECT function ID: sta
    BR0810I BRCONNECT function: stats
    BR0812I Database objects for processing: ORADICT_STATS
    BR1314I Oracle dictionary statistics will be collected with default
    options
    BR0126I Unattended mode active - no operator confirmation required
    BR0280I BRCONNECT time stamp: 2009-09-12 18.08.18
    BR1311I Starting collection of Oracle dictionary statistics...
    BR0285I This function can take several seconds/minutes - be patient...
    BR0280I BRCONNECT time stamp: 2009-09-12 18.08.28
    BR0301E SQL error -20003 at location stats_oradict_collect-4, SQL
    statement:
    'BEGIN DBMS_STATS.GATHER_DICTIONARY_STATS (ESTIMATE_PERCENT => NULL,
    METHOD_OPT => 'FOR ALL COLUMNS SIZE AUTO', GRANULARITY => 'ALL',
    CASCADE => TRUE, OPTIONS => 'GATHER', NO_INVALIDATE => FALSE); END;'
    ORA-20003: Specified bug number (5099019) does not exist
    ORA-06512: at "SYS.DBMS_STATS", line 14611
    ORA-06512: at "SYS.DBMS_STATS", line 14957
    ORA-06512: at "SYS.DBMS_STATS", line 17261
    ORA-06512: at "SYS.DBMS_STATS", line 17303
    ORA-06512: at line 1
    BR1313E Collection of Oracle dictionary statistics failed
    BR0806I End of BRCONNECT processing: ceblmvwb.sta 2009-09-12 18.08.28
    BR0280I BRCONNECT time stamp: 2009-09-12 18.08.28
    BR0804I BRCONNECT terminated with errors
    I couldn´t run the statistics from my system.
    Hernando

  • ORA-03113 with pool and stored proc

    We are experiencing a strange error when calling a stored procedure using a
    connection pool (WLS 5.1 SP10, Oracle 8). Everything works fine until the
    stored procedure raises a user-defined exception. When the connection is
    used again, we get the 03113 error. It appears that the connection is OK
    due to the testConnsOnReserve not returning an error, but on the next stored
    procedure call, the error happens. The database guys have no answers. Does
    anyone have a clue?
    Here is an ouput log showing what happens (this was done with a pool with
    only one connection):
    Got the exception for no BPI Record
    getConnection returning
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11fc
    7]
    Executing: begin pkg_BPI.p_getBPITrckIdForDataTblPk(:1, :2, :3, :4, :5, :6,
    :7, :8); end;
    SQLException: SQLState() vendor code(20003)
    java.sql.SQLException: ORA-20003: Error at step- Select..,procedure
    p_getBPITrckIdForDataTblPk No BPI Record Found...
    ORA-01403: no data found
    ORA-06512: at "CIFPROC.PKG_UTIL", line 381
    ORA-06512: at "CIFPROC.PKG_BPI", line 901
    ORA-06512: at line 1
    at weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:230)
    at weblogic.jdbcbase.oci.Statement.executeUpdate(Statement.java,
    Compiled Code)
    at weblogic.jdbcbase.oci.Statement.execute(Statement.java, Compiled
    Code)
    at
    weblogic.jdbc.pool.PreparedStatement.execute(PreparedStatement.java,
    Compiled Code)
    at com.juniper.core.comm.JDBCProcHelper.execute(JDBCProcHelper.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.loadByKey(BusinessProcess.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.findProcessByKey(BusinessProcess.j
    ava, Compiled Code)
    at
    com.juniper.core.tracking.test.TestBusinessProcess.doGet(TestBusinessProcess
    .java, Compiled Code)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :120)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:922)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:886)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:269)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    Release test worked!
    Parsing: select count(*) from dual
    Executing: select count(*) from dual
    Obtain the connection again
    DriverManager.getConnection("jdbc:weblogic:pool:CifPool")
    trying
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11fc
    7]
    Reserve test worked!
    Parsing: select count(*) from dual
    Executing: select count(*) from dual
    getConnection returning
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11fc
    7]
    Calling stored proc and get comm error
    Executing: begin pkg_BPI.p_getBPITrckIdForDataTblPk(:1, :2, :3, :4, :5, :6,
    :7, :8); end;
    SQLException: SQLState() vendor code(3113)
    java.sql.SQLException: ORA-03113: end-of-file on communication channel
    at weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:230)
    at weblogic.jdbcbase.oci.Statement.executeUpdate(Statement.java,
    Compiled Code)
    at weblogic.jdbcbase.oci.Statement.execute(Statement.java, Compiled
    Code)
    at
    weblogic.jdbc.pool.PreparedStatement.execute(PreparedStatement.java,
    Compiled Code)
    at com.juniper.core.comm.JDBCProcHelper.execute(JDBCProcHelper.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.loadByKey(BusinessProcess.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.findProcessByKey(BusinessProcess.j
    ava, Compiled Code)
    at
    com.juniper.core.tracking.test.TestBusinessProcess.doGet(TestBusinessProcess
    .java, Compiled Code)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :120)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:922)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:886)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:269)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    Release test fails!
    Parsing: select count(*) from dual
    SQLException: SQLState() vendor code(3114)
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    at weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:230)
    at weblogic.jdbcbase.oci.Statement.execute(Statement.java, Compiled
    Code)
    at
    weblogic.jdbc.common.internal.ConnectionEnv.test(ConnectionEnv.java,
    Compiled Code)
    at
    weblogic.common.internal.ResourceAllocator.release(ResourceAllocator.java,
    Compiled Code)
    at
    weblogic.common.internal.ResourceAllocator.release(ResourceAllocator.java,
    Compiled Code)
    at
    weblogic.jdbc.common.internal.ConnectionPool.release(ConnectionPool.java,
    Compiled Code)
    at weblogic.jdbcbase.pool.Connection.close(Connection.java, Compiled
    Code)
    at
    com.juniper.core.comm.JDBCProcHelper.closeConnection(JDBCProcHelper.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.closeConnection(BusinessProcess.ja
    va, Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.loadByKey(BusinessProcess.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.findProcessByKey(BusinessProcess.j
    ava, Compiled Code)
    at
    com.juniper.core.tracking.test.TestBusinessProcess.doGet(TestBusinessProcess
    .java, Compiled Code)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :120)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:922)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:886)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:269)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    Regenerating connection
    DriverManager.getDriver("jdbc20:weblogic:oracle:DCIF")
    trying
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11fc
    7]
    trying
    driver[className=weblogic.jdbc20.oci.Driver,weblogic.jdbc20.oci.Driver@d63d1
    fcf]
    getDriver returning
    driver[className=weblogic.jdbc20.oci.Driver,weblogic.jdbc20.oci.Driver@d63d1
    fcf]
    weblogic.jdbcbase.oci.Driver checking: jdbc20:weblogic:oracle:DCIF
    Connecting to database using: bmgr/********@DCIF at 0
    SQLException: SQLState() vendor code(1012)
    java.sql.SQLException: ORA-01012: not logged on - (bmgr/********@DCIF)
    at
    weblogic.db.oci.OciConnection.getLDAException(OciConnection.java:143)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:157)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connection
    EnvFactory.java:153)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.refreshResource(Connectio
    nEnvFactory.java:207)
    at
    weblogic.jdbc.common.internal.ConnectionEnv.refresh(ConnectionEnv.java:677)
    at
    weblogic.common.internal.ResourceAllocator.resetThisOne(ResourceAllocator.ja
    va, Compiled Code)
    at
    weblogic.common.internal.ResourceAllocator.release(ResourceAllocator.java,
    Compiled Code)
    at
    weblogic.common.internal.ResourceAllocator.release(ResourceAllocator.java,
    Compiled Code)
    at
    weblogic.jdbc.common.internal.ConnectionPool.release(ConnectionPool.java,
    Compiled Code)
    at weblogic.jdbcbase.pool.Connection.close(Connection.java, Compiled
    Code)
    at
    com.juniper.core.comm.JDBCProcHelper.closeConnection(JDBCProcHelper.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.closeConnection(BusinessProcess.ja
    va, Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.loadByKey(BusinessProcess.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.findProcessByKey(BusinessProcess.j
    ava, Compiled Code)
    at
    com.juniper.core.tracking.test.TestBusinessProcess.doGet(TestBusinessProcess
    .java, Compiled Code)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :120)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:922)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:886)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:269)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    weblogic.jdbcbase.oci.Driver checking: jdbc20:weblogic:oracle:DCIF
    Connecting to database using: bmgr/********@DCIF at 0
    Connected to database at: 160
    Parsing: select length(SYSDATE) from dual
    Executing: select length(SYSDATE) from dual
    Parsing: select VALUE from V$NLS_PARAMETERS where
    PARAMETER='NLS_NUMERIC_CHARACTERS'
    Executing: select VALUE from V$NLS_PARAMETERS where
    PARAMETER='NLS_NUMERIC_CHARACTERS'
    Done logging in at: 170
    Connection: using OCI API: OCI8
    Done with connection regen
    DriverManager.getConnection("jdbc:weblogic:pool:CifPool")
    trying
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11fc
    7]
    Parsing: select count(*) from dual
    Executing: select count(*) from dual
    getConnection returning
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11fc
    7]
    Parsing: begin pkg_BPI.p_getBPITrckIdForDataTblPk(:1, :2, :3, :4, :5, :6,
    :7, :8); end;
    Executing: begin pkg_BPI.p_getBPITrckIdForDataTblPk(:1, :2, :3, :4, :5, :6,
    :7, :8); end;
    Parsing: select count(*) from dual
    Executing: select count(*) from dual
    DriverManager.getConnection("jdbc:weblogic:pool:CifPool")
    trying
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11fc
    7]
    Parsing: select count(*) from dual
    Executing: select count(*) from dual
    getConnection returning
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11fc
    7]
    Parsing: begin pkg_BPI.p_getBPIStates(:1, :2); end;
    Executing: begin pkg_BPI.p_getBPIStates(:1, :2); end;
    Parsing: select count(*) from dual
    Executing: select count(*) from dual
    DriverManager.getConnection("jdbc:weblogic:pool:CifPool")
    trying
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11fc
    7]
    Parsing: select count(*) from dual

    Well, this seems to do the trick. We'll keep testing, but the errors have
    now disappeared for all instances of this problem.
    Thanks for the help!
    JDB
    "John Bauer" <[email protected]> wrote in message
    news:[email protected]...
    We'll try this, but it seems to be connection-oriented. If we have a pool
    of 5 connections, and an exception happens, only that connection seems tobe
    affected. The other connections in the pool work fine, and the proc works
    for those connections.
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Hi.
    The issue is likely related to our caching of PreparedStatements
    for performance. If some DBMS failure occurs which could invalidate
    a PreparedStatement/cursor such that it could never be re-used,
    even after clearParameters) are called etc, then this case might
    occur. Please take the attached jar file, and add it to the
    weblogic.classpath ahead of the standard weblogic stuff, by
    editing your startWebLogic script. This will turn off caching, and
    should make the problem go away. Let me know...
    Joe
    John Bauer wrote:
    Here is our configuration.
    weblogic.jdbc.connectionPool.CifPool=\
    url=jdbc20:weblogic:oracle:QCIF,\
    driver=weblogic.jdbc20.oci.Driver,\
    loginDelaySecs=1,\
    initialCapacity=5,\
    maxCapacity=20,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=30,\
    testTable=dual,\
    testConnsOnRelease=true,\
    props=user=BMGR;password=djr0t$
    We are using OCI 8.1.6
    "Maria Salzberger" <[email protected]> wrote in message
    news:[email protected]...
    Hi John,
    I have researched about this - but could not find a known issue
    which
    may
    be
    related to this.
    Which JDBC driver are you using?
    Kind Regards
    Maria Salzberger
    Developer Relations Engineer
    BEA Customer Support
    John Bauer schrieb in Nachricht <[email protected]>...
    We are experiencing a strange error when calling a stored procedure
    using
    a
    connection pool (WLS 5.1 SP10, Oracle 8). Everything works fine
    until
    the
    stored procedure raises a user-defined exception. When the
    connection is
    used again, we get the 03113 error. It appears that the connectionis OK
    due to the testConnsOnReserve not returning an error, but on the
    next
    stored
    procedure call, the error happens. The database guys have no
    answers.
    Does
    anyone have a clue?
    Here is an ouput log showing what happens (this was done with a
    pool
    with
    only one connection):
    Got the exception for no BPI Record
    getConnection returningdriver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11f
    c
    7]
    Executing: begin pkg_BPI.p_getBPITrckIdForDataTblPk(:1, :2, :3, :4,
    :5,
    :6,
    :7, :8); end;
    SQLException: SQLState() vendor code(20003)
    java.sql.SQLException: ORA-20003: Error at step- Select..,procedure
    p_getBPITrckIdForDataTblPk No BPI Record Found...
    ORA-01403: no data found
    ORA-06512: at "CIFPROC.PKG_UTIL", line 381
    ORA-06512: at "CIFPROC.PKG_BPI", line 901
    ORA-06512: at line 1
    at
    weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:230)
    atweblogic.jdbcbase.oci.Statement.executeUpdate(Statement.java,
    Compiled Code)
    at weblogic.jdbcbase.oci.Statement.execute(Statement.java,Compiled
    Code)
    at
    weblogic.jdbc.pool.PreparedStatement.execute(PreparedStatement.java,
    Compiled Code)
    atcom.juniper.core.comm.JDBCProcHelper.execute(JDBCProcHelper.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.loadByKey(BusinessProcess.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.findProcessByKey(BusinessProcess.
    j
    ava, Compiled Code)
    at
    com.juniper.core.tracking.test.TestBusinessProcess.doGet(TestBusinessProces
    s
    .java, Compiled Code)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    atjavax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav
    a
    :120)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextIm
    p
    l.java:922)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextIm
    p
    l.java:886)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContex
    t
    Manager.java:269)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
    atweblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,Compiled
    Code)
    Release test worked!
    Parsing: select count(*) from dual
    Executing: select count(*) from dual
    Obtain the connection again
    DriverManager.getConnection("jdbc:weblogic:pool:CifPool")
    tryingdriver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11f
    c
    7]
    Reserve test worked!
    Parsing: select count(*) from dual
    Executing: select count(*) from dual
    getConnection returning
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11f
    c
    7]
    Calling stored proc and get comm error
    Executing: begin pkg_BPI.p_getBPITrckIdForDataTblPk(:1, :2, :3, :4,
    :5,
    :6,
    :7, :8); end;
    SQLException: SQLState() vendor code(3113)
    java.sql.SQLException: ORA-03113: end-of-file on communication
    channel
    atweblogic.db.oci.OciCursor.getCDAException(OciCursor.java:230)
    atweblogic.jdbcbase.oci.Statement.executeUpdate(Statement.java,
    Compiled Code)
    at weblogic.jdbcbase.oci.Statement.execute(Statement.java,Compiled
    Code)
    at
    weblogic.jdbc.pool.PreparedStatement.execute(PreparedStatement.java,
    Compiled Code)
    atcom.juniper.core.comm.JDBCProcHelper.execute(JDBCProcHelper.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.loadByKey(BusinessProcess.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.findProcessByKey(BusinessProcess.
    j
    ava, Compiled Code)
    at
    com.juniper.core.tracking.test.TestBusinessProcess.doGet(TestBusinessProces
    s
    .java, Compiled Code)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    atjavax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav
    a
    :120)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextIm
    p
    l.java:922)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextIm
    p
    l.java:886)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContex
    t
    Manager.java:269)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
    atweblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,Compiled
    Code)
    Release test fails!
    Parsing: select count(*) from dual
    SQLException: SQLState() vendor code(3114)
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    atweblogic.db.oci.OciCursor.getCDAException(OciCursor.java:230)
    at weblogic.jdbcbase.oci.Statement.execute(Statement.java,Compiled
    Code)
    at
    weblogic.jdbc.common.internal.ConnectionEnv.test(ConnectionEnv.java,
    Compiled Code)
    atweblogic.common.internal.ResourceAllocator.release(ResourceAllocator.java,
    Compiled Code)
    atweblogic.common.internal.ResourceAllocator.release(ResourceAllocator.java,
    Compiled Code)
    atweblogic.jdbc.common.internal.ConnectionPool.release(ConnectionPool.java,
    Compiled Code)
    at weblogic.jdbcbase.pool.Connection.close(Connection.java,Compiled
    Code)
    at
    com.juniper.core.comm.JDBCProcHelper.closeConnection(JDBCProcHelper.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.closeConnection(BusinessProcess.j
    a
    va, Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.loadByKey(BusinessProcess.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.findProcessByKey(BusinessProcess.
    j
    ava, Compiled Code)
    at
    com.juniper.core.tracking.test.TestBusinessProcess.doGet(TestBusinessProces
    s
    .java, Compiled Code)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    atjavax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav
    a
    :120)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextIm
    p
    l.java:922)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextIm
    p
    l.java:886)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContex
    t
    Manager.java:269)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
    atweblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,Compiled
    Code)
    Regenerating connection
    DriverManager.getDriver("jdbc20:weblogic:oracle:DCIF")
    tryingdriver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11f
    c
    7]
    trying
    driver[className=weblogic.jdbc20.oci.Driver,weblogic.jdbc20.oci.Driver@d63d
    1
    fcf]
    getDriver returning
    driver[className=weblogic.jdbc20.oci.Driver,weblogic.jdbc20.oci.Driver@d63d
    1
    fcf]
    weblogic.jdbcbase.oci.Driver checking: jdbc20:weblogic:oracle:DCIF
    Connecting to database using: bmgr/********@DCIF at 0
    SQLException: SQLState() vendor code(1012)
    java.sql.SQLException: ORA-01012: not logged on -
    (bmgr/********@DCIF)
    atweblogic.db.oci.OciConnection.getLDAException(OciConnection.java:143)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:157)
    atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connectio
    n
    EnvFactory.java:153)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.refreshResource(Connecti
    o
    nEnvFactory.java:207)
    at
    weblogic.jdbc.common.internal.ConnectionEnv.refresh(ConnectionEnv.java:677)
    atweblogic.common.internal.ResourceAllocator.resetThisOne(ResourceAllocator.j
    a
    va, Compiled Code)
    at
    weblogic.common.internal.ResourceAllocator.release(ResourceAllocator.java,
    Compiled Code)
    atweblogic.common.internal.ResourceAllocator.release(ResourceAllocator.java,
    Compiled Code)
    atweblogic.jdbc.common.internal.ConnectionPool.release(ConnectionPool.java,
    Compiled Code)
    at weblogic.jdbcbase.pool.Connection.close(Connection.java,Compiled
    Code)
    at
    com.juniper.core.comm.JDBCProcHelper.closeConnection(JDBCProcHelper.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.closeConnection(BusinessProcess.j
    a
    va, Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.loadByKey(BusinessProcess.java,
    Compiled Code)
    at
    com.juniper.core.tracking.BusinessProcess.findProcessByKey(BusinessProcess.
    j
    ava, Compiled Code)
    at
    com.juniper.core.tracking.test.TestBusinessProcess.doGet(TestBusinessProces
    s
    .java, Compiled Code)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    atjavax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav
    a
    :120)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextIm
    p
    l.java:922)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextIm
    p
    l.java:886)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContex
    t
    Manager.java:269)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
    atweblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,Compiled
    Code)
    weblogic.jdbcbase.oci.Driver checking: jdbc20:weblogic:oracle:DCIF
    Connecting to database using: bmgr/********@DCIF at 0
    Connected to database at: 160
    Parsing: select length(SYSDATE) from dual
    Executing: select length(SYSDATE) from dual
    Parsing: select VALUE from V$NLS_PARAMETERS where
    PARAMETER='NLS_NUMERIC_CHARACTERS'
    Executing: select VALUE from V$NLS_PARAMETERS where
    PARAMETER='NLS_NUMERIC_CHARACTERS'
    Done logging in at: 170
    Connection: using OCI API: OCI8
    Done with connection regen
    DriverManager.getConnection("jdbc:weblogic:pool:CifPool")
    tryingdriver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11f
    c
    7]
    Parsing: select count(*) from dual
    Executing: select count(*) from dual
    getConnection returning
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11f
    c
    7]
    Parsing: begin pkg_BPI.p_getBPITrckIdForDataTblPk(:1, :2, :3, :4,
    :5,
    :6,
    :7, :8); end;
    Executing: begin pkg_BPI.p_getBPITrckIdForDataTblPk(:1, :2, :3, :4,:5,
    :6,
    :7, :8); end;
    Parsing: select count(*) from dual
    Executing: select count(*) from dual
    DriverManager.getConnection("jdbc:weblogic:pool:CifPool")
    trying
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11f
    c
    7]
    Parsing: select count(*) from dual
    Executing: select count(*) from dual
    getConnection returning
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11f
    c
    7]
    Parsing: begin pkg_BPI.p_getBPIStates(:1, :2); end;
    Executing: begin pkg_BPI.p_getBPIStates(:1, :2); end;
    Parsing: select count(*) from dual
    Executing: select count(*) from dual
    DriverManager.getConnection("jdbc:weblogic:pool:CifPool")
    trying
    driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@d6b11f
    c
    7]
    Parsing: select count(*) from dual
    B.E.A. is now hiring! (12/14/01) If interested send a resume to
    [email protected]
    DIRECTOR OF PRODUCT PLANS AND STRATEGY San Francisco,
    CA
    E-SALES BUSINESS DEVELOPMENT REPRESENTATIVE Dallas, TX
    SOFTWARE ENGINEER (DBA) Liberty Corner,NJ
    SENIOR WEB DEVELOPER San Jose, CA
    SOFTWARE ENGINEER (ALL LEVELS), CARY, NORTHCAROLINA San Jose, CA
    SR. PRODUCT MANAGER Bellevue, WA
    SR. WEB DESIGNER San Jose, CA
    Channel Marketing Manager - EMEA Region London, GBR
    DIRECTOR OF MARKETING STRATEGY, APPLICATION SERVERS San Jose, CA
    SENIOR SOFTWARE ENGINEER (PLATFORM) San Jose, CA
    E-COMMERCE INTEGRATION ARCHITECT San Jose, CA
    QUALITY ASSURANCE ENGINEER Redmond, WA
    Services Development Manager (Business Development Manager - Services)Paris, FRA; Munich, DEU
    SENIOR SOFTWARE ENGINEER (PLATFORM) Redmond, WA
    E-Marketing Programs Specialist EMEA London, GBR
    BUSINESS DEVELOPMENT DIRECTOR - E COMMERCE INTEGRATION San Jose, CA
    MANAGER, E-SALES Plano, TX

  • Writing to a flat file using UTL in a procedure

    Hello All,
    I am creating a procedure in which I am trying to write data to a flat file using UTL. Code is shown below:
    CREATE OR REPLACE PROCEDURE wrt_lifungduty IS
       sql_stmt             varchar2(200);
       sql_stmt1            varchar2(200);
       sql_stmt2            varchar2(200);
       v_cur_hdl            integer;
       v_rows_processed     BINARY_INTEGER;
       V_file           UTL_FILE.FILE_TYPE;
       V_flatfile_line      VARCHAR2(98) := NULL;
      V_OBLIGATION_KEY    NUMBER(10);
      V_OBLIGATION_LEVEL  VARCHAR2(6);
      V_KEY_VALUE_1       VARCHAR2(20);
      V_KEY_VALUE_2       VARCHAR2(20);
      V_PARTNER_TYPE      VARCHAR2(6);
      V_PARTNER_ID        VARCHAR2(10);
      V_EXT_INVC_NO       VARCHAR2(30);
      V_EXT_INVC_DATE     DATE;
      V_PAID_DATE         DATE;
      V_PAID_AMT          NUMBER(20,4);
      V_COMP_ID           VARCHAR2(10);
      V_RECEIPT_DATE      DATE;
      V_ORDER_QTY         NUMBER(12,4);
      V_RECEIPT_QTY       NUMBER(12,4);
      V_FRT               NUMBER;
      V_DUTY              NUMBER;
      V_SUPPLIER          NUMBER;
      V_FLAG              VARCHAR2(1);
      V_ELC_COST          NUMBER;
      V_ADJ_ELC           NUMBER;
    Cursor x is
          select OBLIGATION_KEY,OBLIGATION_LEVEL,KEY_VALUE_1,KEY_VALUE_2,PARTNER_TYPE,PARTNER_ID,EXT_INVC_NO,EXT_INVC_DATE
                 ,PAID_DATE,PAID_AMT,COMP_ID,RECEIPT_DATE,ORDER_QTY,RECEIPT_QTY,FRT,DUTY,SUPPLIER,FLAG,ELC_COST,ADJ_ELC
          from RMSBIZ.CT_ANALYZE_LIFUNG_DUTY;    
    BEGIN
    if not UTL_FILE.IS_OPEN(V_file) then
          V_file := UTL_FILE.FOPEN('/exchange/biz/rms2lan','sb_duty.dat','w'); --need to give the location for testing
       end if;
    for x1 in x loop
      V_OBLIGATION_KEY    :=1;
      V_OBLIGATION_LEVEL  :='test';
      V_OBLIGATION_KEY    :=x1.OBLIGATION_KEY;
      V_OBLIGATION_LEVEL  :=x1.OBLIGATION_LEVEL;
      V_KEY_VALUE_1       :=x1.KEY_VALUE_1;
      V_KEY_VALUE_2       :=x1.KEY_VALUE_2;
      V_PARTNER_TYPE      :=x1.PARTNER_TYPE;
      V_PARTNER_ID        :=x1.PARTNER_ID;
      V_EXT_INVC_NO       :=x1.EXT_INVC_NO;
      V_EXT_INVC_DATE     :=x1.EXT_INVC_DATE;
      V_PAID_DATE         :=x1.PAID_DATE;
      V_PAID_AMT          :=x1.PAID_AMT;
      V_COMP_ID           :=x1.COMP_ID;
      V_RECEIPT_DATE      :=x1.RECEIPT_DATE;
      V_ORDER_QTY         :=x1.ORDER_QTY;
      V_RECEIPT_QTY       :=x1.RECEIPT_QTY;
      V_FRT               :=x1.FRT;
      V_DUTY              :=x1.DUTY;
      V_SUPPLIER          :=x1.SUPPLIER;
      V_FLAG              :=x1.FLAG;
      V_ELC_COST          :=x1.ELC_COST;
      V_ADJ_ELC           :=x1.ADJ_ELC;
      V_flatfile_line:=  V_OBLIGATION_KEY||','||
      V_OBLIGATION_LEVEL  ||','||
      V_KEY_VALUE_1       ||','||
      V_KEY_VALUE_2       ||','||
      V_PARTNER_TYPE      ||','||
      V_PARTNER_ID        ||','||
      V_EXT_INVC_NO       ||','||
      V_EXT_INVC_DATE     ||','||
      V_PAID_DATE         ||','||
      V_PAID_AMT          ||','||
      V_COMP_ID           ||','||
      V_RECEIPT_DATE      ||','||
      V_ORDER_QTY         ||','||
      V_RECEIPT_QTY       ||','||
      V_FRT               ||','||
      V_DUTY              ||','||
      V_SUPPLIER          ||','||
      V_FLAG              ||','||
      V_ELC_COST          ||','||
      V_ADJ_ELC;
    V_flatfile_line:= V_OBLIGATION_KEY||','|| V_OBLIGATION_LEVEL;
        UTL_FILE.PUT_LINE(V_file, V_flatfile_line);
    end loop
      commit;
       UTL_FILE.fclose(V_file); 
    END;
                Getting the following errors:
    SQL>Welcome-->
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "SYS.UTL_FILE", line 98
    ORA-06512: at "SYS.UTL_FILE", line 157
    ORA-06512: at "RMSBIZ.WRT_LIFUNGDUTY", line 39
    ORA-06512: at line 1
    SQL>Welcome-->39
    39* V_file := UTL_FILE.FOPEN('/exchange/biz/rms2lan','sb_duty.dat','w');
    SQL>Welcome-->
    Does any one know why it is erroring out?
    Thanks,
    Chiru

    the code below works if i take out the last 3 columns while writing to the flat file line.
    CREATE OR REPLACE PROCEDURE wrt_lifungduty IS
       sql_stmt             varchar2(200);
       sql_stmt1            varchar2(200);
       sql_stmt2            varchar2(200);
       v_cur_hdl            integer;
       v_rows_processed     BINARY_INTEGER;
       V_file           UTL_FILE.FILE_TYPE;
       V_flatfile_line      VARCHAR2(98) := NULL;
      V_OBLIGATION_KEY    NUMBER(10);
      V_OBLIGATION_LEVEL  VARCHAR2(6);
      V_KEY_VALUE_1       VARCHAR2(20);
      V_KEY_VALUE_2       VARCHAR2(20);
      V_PARTNER_TYPE      VARCHAR2(6);
      V_PARTNER_ID        VARCHAR2(10);
      V_EXT_INVC_NO       VARCHAR2(30);
      V_EXT_INVC_DATE     DATE;
      V_PAID_DATE         DATE;
      V_PAID_AMT          NUMBER(20,4);
      V_COMP_ID           VARCHAR2(10);
      V_RECEIPT_DATE      DATE;
      V_ORDER_QTY         NUMBER(12,4);
      V_RECEIPT_QTY       NUMBER(12,4);
      V_FRT               NUMBER;
      V_DUTY              NUMBER;
      V_SUPPLIER          NUMBER;
      V_FLAG              VARCHAR2(1);
      V_ELC_COST          VARCHAR2(20);
      V_ADJ_ELC           VARCHAR2(20);
    Cursor x is
          select OBLIGATION_KEY,OBLIGATION_LEVEL,KEY_VALUE_1,KEY_VALUE_2,PARTNER_TYPE,PARTNER_ID,EXT_INVC_NO,EXT_INVC_DATE
                 ,PAID_DATE,PAID_AMT,COMP_ID,RECEIPT_DATE,ORDER_QTY,RECEIPT_QTY,FRT,DUTY,SUPPLIER,FLAG,ELC_COST,ADJ_ELC
          from RMSBIZ.CT_ANALYZE_LIFUNG_DUTY;
    BEGIN
    if not UTL_FILE.IS_OPEN(V_file) then
          V_file := UTL_FILE.FOPEN('/rmsapps/rms803/biz/data/utl_files','sb_duty.csv','w'); --need to give the location for testing
       end if;
    for x1 in x loop
      V_OBLIGATION_KEY    :=nvl(x1.OBLIGATION_KEY,null);
      V_OBLIGATION_LEVEL  :=nvl(x1.OBLIGATION_LEVEL,null);
      V_KEY_VALUE_1       :=x1.KEY_VALUE_1;
      V_KEY_VALUE_2       :=x1.KEY_VALUE_2;
      V_PARTNER_TYPE      :=x1.PARTNER_TYPE;
      V_PARTNER_ID        :=x1.PARTNER_ID;
      V_EXT_INVC_NO       :=x1.EXT_INVC_NO;
      V_EXT_INVC_DATE     :=x1.EXT_INVC_DATE;
      V_PAID_DATE         :=x1.PAID_DATE;
      V_PAID_AMT          :=x1.PAID_AMT;
      V_COMP_ID           :=x1.COMP_ID;
      V_RECEIPT_DATE      :=x1.RECEIPT_DATE;
      V_ORDER_QTY         :=x1.ORDER_QTY;
      V_RECEIPT_QTY       :=x1.RECEIPT_QTY;
      V_FRT               :=x1.FRT;
      V_DUTY              :=x1.DUTY;
      V_SUPPLIER          :=x1.SUPPLIER;
      V_FLAG              :=nvl(x1.FLAG,'0');
      V_ELC_COST          :=to_char(nvl(x1.ELC_COST,0));
      V_ADJ_ELC           :=to_char(nvl(x1.ADJ_ELC,0));
      V_flatfile_line:=  V_OBLIGATION_KEY||','||
      V_OBLIGATION_LEVEL  ||','||
      V_KEY_VALUE_1       ||','||
      V_KEY_VALUE_2       ||','||
      V_PARTNER_TYPE      ||','||
      V_PARTNER_ID        ||','||
      V_EXT_INVC_NO       ||','||
      V_EXT_INVC_DATE     ||','||
      V_PAID_DATE         ||','||
      V_PAID_AMT          ||','||
      V_COMP_ID           ||','||
      V_RECEIPT_DATE      ||','||
      V_ORDER_QTY         ||','||
      V_RECEIPT_QTY       ||','||
      V_FRT               ||','||
      V_DUTY              ||','||
      V_SUPPLIER          ||','||
    -- V_FLAG            ||','||
      V_ELC_COST          ||','||
      V_ADJ_ELC;
        UTL_FILE.PUT_LINE(V_file, V_flatfile_line);
    end loop
      commit;
       UTL_FILE.fclose(V_file);
    EXCEPTION
      WHEN UTL_FILE.INVALID_PATH
      THEN
          DBMS_OUTPUT.PUT_LINE ('error: INVALID_PATH');
      WHEN UTL_FILE.INVALID_MODE
      THEN
          DBMS_OUTPUT.PUT_LINE ('error: INVALID_MODE');
      WHEN UTL_FILE.INVALID_FILEHANDLE
      THEN
          DBMS_OUTPUT.PUT_LINE ('error: INVALID_FILEHANDLE');
      WHEN UTL_FILE.INVALID_OPERATION
      THEN
          DBMS_OUTPUT.PUT_LINE ('error: INVALID_OPERATION');
      WHEN UTL_FILE.READ_ERROR
      THEN
          DBMS_OUTPUT.PUT_LINE ('error: READ_ERROR');
      WHEN UTL_FILE.WRITE_ERROR
      THEN
          DBMS_OUTPUT.PUT_LINE ('error: WRITE_ERROR');
      WHEN UTL_FILE.INTERNAL_ERROR
      THEN
          DBMS_OUTPUT.PUT_LINE ('error: INTERNAL_ERROR');
      WHEN OTHERS THEN
         --     v_error_code := SQLCODE;
    --          v_error_message := SQLERRM;
    --         dbms_output.put_line('ERROR: '||v_error_code);
       --       dbms_output.put_line('ERROR: '||v_error_message);
              RAISE_APPLICATION_ERROR(-20003,'sbduty - aborted');  
    END;
    /It fails as soon as it encounters the V_FLAG in the V_flat_file_line. The data in the table has nulls for the FLAG, and some -ve numbers for the ELC_COST,ADJ_ELC..but that should'nt cause any problems does it?
    Whats wrong with those 3 columns?
    Errors that i get are:
    SQL>Welcome-->BEGIN wrt_lifungduty; END;
    ERROR at line 1:
    ORA-20003: sbduty - aborted
    ORA-06512: at "RMSBIZ.WRT_LIFUNGDUTY", line 117
    ORA-06512: at line 1
    SQL>Welcome-->117
    117* RAISE_APPLICATION_ERROR(-20003,'sbduty - aborted');
    SQL>Welcome-->
    Thanks,
    Chiru

  • Getting error while creating Communication capability

    Hi,
    I am getting this error while creating communication capability of Host. I have successfully configured the TP communication capability. Even I have tried many times after changing the names given by me during configuration.
    Error creating Communication Capability
    java.lang.Exception : Error -: AIP-16012: Parameter: uri is unique for object Endpoint: Error -: AIP-11052: Writing following objects: Endpoint failed due to following constraint violation: ENDPOINT_UK. UNIQUE CONSTRAINT VIOLATION: java.sql.SQLException: ORA-20003: Endpoint_UK. Unique constraint violation ORA-06512: at "B2B.TRG_ENDPOINT_INS", line 17 ORA-01403: no data found ORA-04088: error during execution of trigger 'B2B.TRG_ENDPOINT_INS'
    Please tell me what is the source of error.
    Thanks in advance.
    Regards,
    Anuj Dwivedi

    Hi I am getting this error while creating communication capability --
    Error creating Communication Capability
    java.lang.Exception : Error -: AIP-16012: Parameter: trading Partner is unique for object Certificate: Error -: AIP-11052: Writing following objects: Certificate failed due to following constraint violation: CERTIFICATE_UK. UNIQUE CONSTRAINT VIOLATION: java.sql.SQLException: ORA-20003: Certificate_UK. Unique constraint violation ORA-06512: at "B2B.TRG_CERTIFICATE_INS", line 20 ORA-01403: no data found ORA-04088: error during execution of trigger 'B2B.TRG_CERTIFICATE_INS'
    Please tell that where could be the problem?
    Thanks.
    Regards.
    Anuj Dwivedi

  • Error while upgrading from 4.0 to 4.1

    Hello,
    I tried to upgrade from APEX 4.0.0.00.46 to APEX 4.1.
    It seems the installation went okay, but that the migration of the old applications to the new version went wrong. This is what I got:
    PL/SQL procedure successfully completed.
    -- Now beginning upgrade. This will take several minutes.-------
    -- Ensuring template names are unique -------
    -- Migrating metadata to new schema -------
    begin
    ERROR at line 1:
    ORA-20003: Specified bug number (5099019) does not exist
    ORA-06512: in "SYS.DBMS_STATS", regel 14837
    ORA-06512: in "SYS.DBMS_STATS", regel 15183
    ORA-06512: in "SYS.DBMS_STATS", regel 15261
    ORA-06512: in "SYS.DBMS_STATS", regel 15220
    ORA-06512: in "APEX_040100.WWV_FLOW_UPGRADE", regel 1731
    ORA-06512: in regel 4What I did was the following:
    I ran 'cmd' and navigated to the folder where I unpacked the installation files.
    Started SQL Plus and connected with SYS as SYSDBA.
    Ran @apexins SYSAUX SYSAUX TEMP /i/
    I can login to Oracle Application Express and it shows the new design and version number (4.1.0.00.32), but when I click Application Builder it shows me this error:
    Error during rendering of region "Applications".
    ORA-01400: cannot insert NULL into ("APEX_040100"."WWV_FLOW_WORKSHEET_RPTS"."ID")I tried to search on google and on this forum, but I couldn't find much help. So I hope someone here can help me or point me in the right direction.
    Kind regards, and thanks in advance,
    Sebastiaan
    PS. I'm a developer not a DBA, so I might miss something basic.

    Hi Sebastiaan,
    which database version are you using?
    Anyway I would suggest that you get in contact with your DBA and he with Oracle Support.
    Based on the bug description this error has something to do with your database and DBMS_STATS (used to calculate statistics for your data) and not really with APEX itself.
    Oracle Support should be able to help you to find out which database patch you have to install.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • OEM Installation Failed when Upgrading from 10.2.0.4 to 11.1.0.7

    I was upgrading a single instance from 10.2.0.4 to 11.1.07 on Unix.
    The OEM has never been installed before.
    I tried to install the OEM during the DBUA upgrade. And it failed. Parts of the log file look like this.
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.EMConfig addEMCALogFile
    CONFIG: ORACLE_BASE :/opt/oracle
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /opt/oracle/cfgtoollogs/dbua/citv/upgrade1/emConfig.log.
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.util.ClusterUtil isCRSInstalled
    CONFIG: isCRSInstalled: false
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'CHECK_CONFIG' set to true
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter SYS_PWD.
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter SYS_PWD.
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: citv, oracleHome: /opt/oracle/product/11.1, and user:
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter SYS_PWD.
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: citv, oracleHome: /opt/oracle/product/11.1, and user: DBSNMP
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter MODIFY_SID.
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter SYS_PWD.
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: citv, oracleHome: /opt/oracle/product/11.1, and user:
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'asm_db' set to false
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter MODIFY_SID.
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter SYS_PWD.
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.DatabaseChecks getDbServiceName
    CONFIG: No service name available. Will try to set db_unique_name.db_domain
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: citv, oracleHome: /opt/oracle/product/11.1, and user:
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value:
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DB_UNIQUE_NAME.
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.DatabaseChecks getDbUniqueName
    CONFIG: No Database unique name available. Will try to retrieve it from DB itself
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value: citv
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DB_DOMAIN.
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.DatabaseChecks getDbDomain
    CONFIG: No db domain available. Will query db for db_domain parameter
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_DOMAIN value: world
    Jun 22, 2009 6:58:01 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value: citv
    CONFIG: Searching all DBConsole instances for used ports under ORACLE_HOME /opt/oracle/product/10.2
    Jun 22, 2009 6:58:04 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file /opt/oracle/product/10.2/oc4j/j2ee/OC4J_DBConsole/config/
    jms.xml in searching for tag jms-server with attribute port
    java.io.FileNotFoundException: /opt/oracle/product/10.2/oc4j/j2ee/OC4J_DBConsole/config/jms.xml (No such
    file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at java.io.FileReader.<init>(FileReader.java:41)
    at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:295)
    at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1296)
    at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:591)
    at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2582)
    at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2513)
    at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:750)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:257)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:183)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:221)
    at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:460)
    at oracle.sysman.assistants.util.em.EMConfigStep.executeImpl(EMConfigStep.java:139)
    at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
    at oracle.sysman.assistants.util.step.BasicStep.callStep(BasicStep.java:251)
    at oracle.sysman.assistants.dbma.backend.EMConfigStep.executeStepImpl(EMConfigStep.java:111)
    at oracle.sysman.assistants.dbma.backend.SummarizableStep.executeImpl(SummarizableStep.java:176)
    at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
    at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
    at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2505)
    at java.lang.Thread.run(Thread.java:595)
    Jun 22, 2009 6:58:04 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking JMS port: null from /opt/oracle/product/10.2/oc4j/j2ee/OC4J_DBConsole
    Jun 22, 2009 6:58:04 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file /opt/oracle/product/10.2/oc4j/j2ee/OC4J_DBConsole/config/
    rmi.xml in searching for tag rmi-server with attribute port
    java.io.FileNotFoundException: /opt/oracle/product/10.2/oc4j/j2ee/OC4J_DBConsole/config/rmi.xml (No such
    file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at java.io.FileReader.<init>(FileReader.java:41)
    at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:295)
    at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1300)
    at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:591)
    at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2582)
    Connecting to database citv in home /opt/oracle/product/11.1 with user "" role "SYSDBA".
    connected to database.
    sql to execute declare repos_pwd varchar2(30); view_user varchar2(30); view_user_pwd varchar2(30); view_
    user_acc_status varchar2(30); begin repos_pwd := ?; sysman.mgmt_view_priv.get_view_user(view_user); sele
    ct account_status into view_user_acc_status from sys.dba_users where upper(username) = upper ( view_user
    ); IF view_user_acc_status like '%LOCKED%' THEN execute immediate 'alter user ' || view_user || ' accou
    nt unlock'; END IF; IF view_user_acc_status like '%EXPIRED%' THEN sysman.mgmt_view_priv.set_view_user_cr
    eds ( repos_pwd ); sysman.mgmt_view_priv.GET_VIEW_USER_CREDS ( view_user, view_user_pwd ); execute immed
    iate 'alter user ' || view_user || ' identified by ' || view_user_pwd || ''; END IF; end;
    noOfParams to bind: 1.
    Jun 22, 2009 6:58:17 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Couldn't execute statement: ORA-28003: password verification for the specified password failed
    ORA-20003: Password should contain at least one \
    digit, one character and one punctuation
    ORA-06512: at line 1 (DBD ERROR: OCIStmtExecute) at /opt/oracle/product/11.1/sysman/admin/scripts/emca/e
    mcaDbUtil.pl line 108, <STDIN> line 2.
    Jun 22, 2009 6:58:17 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Error executing /opt/oracle/product/11.1/sysman/admin/scripts/emca/emcaDbUtil /opt/oracle/produc
    t/11.1/perl/lib:/opt/oracle/product/11.1/perl/lib/site_perl:/opt/oracle/product/11.1/sysman/admin/script
    s:/opt/oracle/product/11.1/bin: /opt/oracle/product/11.1/perl/bin/perl /opt/oracle/product/11.1/sysman/a
    dmin/scripts/emca/emcaDbUtil.pl /opt/oracle/product/11.1 citv SYS SYSDBA declare repos_pwd varchar2(30);
    view_user varchar2(30); view_user_pwd varchar2(30); view_user_acc_status varchar2(30); begin repos_pwd
    := ?; sysman.mgmt_view_priv.get_view_user(view_user); select account_status into view_user_acc_status fr
    om sys.dba_users where upper(username) = upper ( view_user ); IF view_user_acc_status like '%LOCKED%' TH
    EN execute immediate 'alter user ' || view_user || ' account unlock'; END IF; IF view_user_acc_status li
    ke '%EXPIRED%' THEN sysman.mgmt_view_priv.set_view_user_creds ( repos_pwd ); sysman.mgmt_view_priv.GET_V
    IEW_USER_CREDS ( view_user, view_user_pwd ); execute immediate 'alter user ' || view_user || ' identifie
    d by ' || view_user_pwd || ''; END IF; end; 1 SYSMAN_PWD
    Jun 22, 2009 6:58:17 PM oracle.sysman.emcp.EMReposConfig unlockMGMTAccount
    CONFIG: Failed to unlock mgmt_view account
    Jun 22, 2009 6:58:17 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Failed to unlock all EM-related accounts
    Jun 22, 2009 6:58:17 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Failed to unlock all EM-related accounts
    Refer to the log file at /opt/oracle/cfgtoollogs/dbua/citv/upgrade1/emConfig.log for more details.
    Jun 22, 2009 6:58:17 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Failed to unlock all EM-related accounts
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:335)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:147)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:222)
    at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:460)
    at oracle.sysman.assistants.util.em.EMConfigStep.executeImpl(EMConfigStep.java:139)
    at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
    at oracle.sysman.assistants.util.step.BasicStep.callStep(BasicStep.java:251)
    at oracle.sysman.assistants.dbma.backend.EMConfigStep.executeStepImpl(EMConfigStep.java:111)
    at oracle.sysman.assistants.dbma.backend.SummarizableStep.executeImpl(SummarizableStep.java:176)
    at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
    at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
    at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2505)
    at java.lang.Thread.run(Thread.java:595)
    Is it possible to reinstall in some way?
    Thanks very much in advance.

    The error messages in the log file.
    Jun 24, 2009 8:59:06 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Starting execution: /opt/oracle/product/11.1/sysman/admin/emdrep/bin/RepManager -connect (D
    ESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=callista)(PORT=1521)))(CONNECT_DATA=(SERVICE_
    NAME=citv.world))) -repos_user SYSMAN -action drop -verbose -output_file /opt/oracle/cfgtoollogs/em
    ca/citv/emca_repos_drop_2009_06_24_20_59_06.log
    Jun 24, 2009 8:59:07 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Exit value of 50
    Jun 24, 2009 8:59:07 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Enter SYS user's password :
    Getting temporary tablespace from database...
    Could not connect to SYS/(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=callista)(PORT=152
    1)))(CONNECT_DATA=(SERVICE_NAME=citv.world))): ORA-01031: insufficient privileges (DBD ERROR: OCISe
    ssionBegin)
    Jun 24, 2009 8:59:07 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: stty: : No such device or address
    stty: : No such device or address
    Jun 24, 2009 8:59:07 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing /opt/oracle/product/11.1/sysman/admin/emdrep/bin/RepManager -connect (DESC
    RIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=callista)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAM
    E=citv.world))) -repos_user SYSMAN -action drop -verbose -output_file /opt/oracle/cfgtoollogs/emca/
    citv/emca_repos_drop_2009_06_24_20_59_06.log
    Jun 24, 2009 8:59:07 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error dropping the repository
    Jun 24, 2009 8:59:07 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at /opt/oracle/cfgtoollogs/emca/citv/emca_repos_drop_<date>.log for mor
    e details.
    Jun 24, 2009 8:59:07 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error dropping the repository
    Refer to the log file at /opt/oracle/cfgtoollogs/emca/citv/emca_2009_06_24_20_58_36.log for more de
    tails.
    Jun 24, 2009 8:59:07 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error dropping the repository
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:208)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:147)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:222)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:535)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1215)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:519)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:468)
    Thanks.

  • How to write to csv file - Whats wrong with this???

    Hi ALL,
    I created a view that does all sorts of calculations, now I need to write the output in csv file. How do I do this thru a procedure? Sorry I've never had to create a csv file before and this is my first time.
    Thanks!
    Edited by: user5737516 on Nov 18, 2009 9:47 AM

    What is wrong with this?? Am I supposed to do something else before I could run this?
    CREATE OR REPLACE DIRECTORY PAYROLL as 'c:\';
    Directory created.
    grant read, write on directory PAYROLL to my_user;
    Grant succeeded.
    CREATE OR REPLACE PROCEDURE baninst1.PAY_CSV(p_year NUMBER, p_qtr NUMBER) AS
      CURSOR c_data IS
        SELECT pay_period,
               pay_group,
               p_qtr,
               check_date,
               SUM(soc_sec_gross) as SOC_SEC_GROSS,
               SUM(medicare_gross) as MEDICARE_GROSS,
               SUM(TOTAL_DEDUCTIONS) as Total_Deductions,
               SUM(NET_PAY) as Net_Pay
        FROM   baninst1.pzvdedn
        WHERE  pay_year = p_year
        AND        p_qtr = p_qtr
        GROUP BY pay_period, pay_group, check_date, pay_qtr
        ORDER BY pay_period, pay_group, check_date, pay_qtr;
      v_file  UTL_FILE.FILE_TYPE;
    BEGIN
      v_file := UTL_FILE.FOPEN('PAYROLL',
                               'pay_csv.csv',
                               'w',
                               max_linesize => 32767);
      FOR cur_rec IN c_data LOOP
        UTL_FILE.PUT_LINE(v_file,
                          cur_rec.pay_period    || ',' ||
                          cur_rec.pay_group    || ',' ||
                          cur_rec.check_date     || ',' ||
                          cur_rec.soc_sec_gross      || ',' ||
                          cur_rec.medicare_gross || ',' ||
                          cur_rec.total_deductions    || ',' ||
                          cur_rec.net_pay);
      END LOOP;
      UTL_FILE.FCLOSE(v_file);
    EXCEPTION
      WHEN OTHERS THEN
        UTL_FILE.FCLOSE(v_file);
    END;
    Procedure created.
    SQL> exec baninst1.PAY_CSV(2009,1);
    BEGIN baninst1.PAY_CSV(2009,1); END;
    ERROR at line 1:
    ORA-20003: File could not be opened or operated on as requested.
    ORA-06512: at "BANINST1.PAY_CSV", line 45
    ORA-06512: at line 1Edited by: user5737516 on Nov 18, 2009 9:16 AM
    Edited by: user5737516 on Nov 18, 2009 9:18 AM
    Edited by: user5737516 on Nov 18, 2009 9:20 AM
    Edited by: user5737516 on Nov 18, 2009 9:35 AM

  • Raise Application Error on Dynamic Action

    Hi
    I am using Apex 4.2. On a click of button a Dynamic Action is written, which calls a DB Package. The DB package has exception handlers and also the package has two output parameters
    Error Code and Error Msg
    So in my code(Dynamic Code) i make a call to the package and checks the value for Erroc Code.
    Begin
    Package call......
      If v_error_code <> '0' Then
        Raise SC_Error;
      End if;
    Exception
      When SC_Error Then
        RAise_Application_error(v_err_code, v_err_msg);
    End;
    But when i run the page and I click I get an Internal exception error
    Output from Debug -- I am not sure what the Cell in Red colour means, because the package is returning a correct message (before the red line).Can anyone help please??
    Thanks
    JS
    ......message: AJAX call returned server error ORA-20003: Customer has already been matched for Execute PL/SQL Code.
    4
    ......is_internal_error: true
    4
    ......apex_error_code: APEX.AJAX_SERVER_ERROR
    4
    ......ora_sqlcode: -20003
    4
    ......ora_sqlerrm: ORA-20003: Customer has already been matched
    4
    ......error_backtrace: ORA-06512: at line 41 ORA-06512: at "SYS.DBMS_SYS_SQL", line 1926 ORA-06512: at "SYS.WWV_DBMS_SQL", line 973 ORA-06512: at "SYS.WWV_DBMS_SQL", line 999 ORA-06512: at "APEX_040200.WWV_FLOW_DYNAMIC_EXEC", line 830 ORA-06512: at "APEX_040200.WWV_FLOW_PLUGIN_UTIL", line 2304 ORA-06512: at "APEX_040200.WWV_FLOW_DYNAMIC_ACTION_NATIVE", line 442
    4
    ......component.type: APEX_APPLICATION_PAGE_DA_ACTS
    4
    ......component.id: 23185203797756209
    4
    ......component.name: NATIVE_EXECUTE_PLSQL_CODE
    4
    ...Execute Error Handling Callout defined on Page or Application Level
    4
    ...Execute Statement: begin declare l_error wwv_flow_error_api.t_error; begin l_error := wwv_flow_error_api.g_error; wwv_flow_error_api.g_error_result := apx_error_utils.handleerror ( p_error => l_error ); end; end;
    4
    ......Values changed by callout:
    4
    .........message: An unexpected internal application error has occurred. Please get in contact with your system administrator and provide reference# for further investigation.
    4
    .........display_location: ON_ERROR_PAGE
    4
    Stop APEX Engine detected
    4
    Final commit
    4
    1 - 59

    Edit: Well, Patrick beat me to the punch because I was taking my jolly time writing this down
    Well, if you look below the part you put in red, you can see that a callout is made: ...Execute Error Handling Callout defined on Page or Application Level
    With directly below that:
    ......Values changed by callout:
    4
    .........message: An unexpected internal application error has occurred. Please get in contact with your system administrator and provide reference# for further investigation.
    Since the plsql call is on the serverside, this error is trapped within the error handling function aswell. Your error has simply been obscured by it, and probably because it looks at the error backtrace and determines the error is internal.
    Looking at the sample error handling code, this is probably where it goes "wrong":
    -- If it's an internal error raised by APEX, like an invalid statement or
      -- code which cannot be executed, the error text might contain security sensitive
      -- information. To avoid this security problem rewrite the error to
      -- a generic error message and log the original error message for further
      -- investigation by the help desk.
      if p_error.is_internal_error then
    I recreated the situation here, and put some debug in the error handling function just so I could see what sort of error is being processed:
        apex_debug.message('error code: '||p_error.apex_error_code);
        apex_debug.message('sql code: '||p_error.ora_sqlcode);
        apex_debug.message('sql errm: '||p_error.ora_sqlerrm);
        apex_debug.message('error_backtrace: '||p_error.error_backtrace);
    0.05750
    0.00007
    ...Error data:
    4
    0.05757
    0.00006
    ......message: AJAX call returned server error ORA-20099: raise application error for Execute PL/SQL Code.
    4
    0.05763
    0.00006
    ......is_internal_error: true
    4
    0.05769
    0.00005
    ......apex_error_code: APEX.AJAX_SERVER_ERROR
    4
    0.05774
    0.00005
    ......ora_sqlcode: -20099
    4
    0.05779
    0.00006
    ......ora_sqlerrm: ORA-20099: raise application error
    4
    0.05785
    0.00005
    ......error_backtrace: ORA-06512: at line 1 ORA-06512: at "SYS.DBMS_SYS_SQL", line 1926 ORA-06512: at "SYS.WWV_DBMS_SQL", line 1064 ORA-06512: at "SYS.WWV_DBMS_SQL", line 1090 ORA-06512: at "APEX_040200.WWV_FLOW_DYNAMIC_EXEC", line 832 ORA-06512: at "APEX_040200.WWV_FLOW_PLUGIN_UTIL", line 2304 ORA-06512: at "APEX_040200.WWV_FLOW_DYNAMIC_ACTION_NATIVE", line 442
    As you can see, the ajax error is an internal error, and that is why it is handled as such in the error handler. With this info you should be able to adjust your handling function. Test for the error code (APEX.AJAX_SERVER_ERROR) and then throw the error message or test for the -20000 range of custom errors for example.
        if p_error.is_internal_error then    
            -- Access Denied errors raised by application or page authorization should
            -- still show up with the original error message
            -- do not parse ajax server errors here !
            if    p_error.apex_error_code <> 'APEX.AUTHORIZATION.ACCESS_DENIED'
              and p_error.apex_error_code not like 'APEX.SESSION_STATE.%'
              and p_error.apex_error_code != 'APEX.AJAX_SERVER_ERROR'
            then
    It probably does need some more work but you should get the gist of it.

  • Error encountered in phase SHDINST_DB_PREP - EHP1 upgrade using EHPI.

    Hi Experts,
    I am currently in the configuration phase of Enterprise Portal upgrade from 700 to EHP1 then i got this error in phase SHDNST_DB_PREP, I am using OS platform Windows Server 2003; here is the message:
    On the EHPi GUI:
    Decide how you want to continue
    Checks after phase PREP_INSTALL/SHDINST_DB_PREP were negative!
    Last error code set: Process 'brconnect' exited with 5, see 'D:\EHPI\abap\log\SHDUSRCRE.LOG' for detai
    Trouble Ticket Generation
    A trouble ticket and an archive with all relevant log files have been generated. Trouble ticket: "D:\EHPI\abap\log\SAPehpi_troubleticket.log" Log archive: "D:\EHPI\abap\log\SAPehpi_troubleticket_logs.sar"
    Choose Action:
    Repeat phase SHDNST_DB_PREP to continue at the point it stopped.
    Restart the current module from the beginning
    Exit this program
    for SHDUSRCRE.LOG:
    SAPehpi> Starting subprocess brconnect with id 13588 at 20100816143027
    Environment: CLASSPATH=C:\oracle\CUSDEV01\102\jdbc\lib\ojdbc14.jar;
    Environment: JAVA_HOME=C:\j2sdk1.4.2_13-x64
    Environment: NLS_LANG=AMERICAN_AMERICA.UTF8
    Environment: ORACLE_HOME=C:\oracle\EP1\102
    Environment: ORACLE_SID=EP1
    Environment: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    Environment: Path=E:\oracle\CUSPRD01\102\bin;C:\oracle\CUSDEV01\102\bin;C:\oracle\EP1\102\BIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Dell\SysMgt\oma\bin;C:\usr\sap\EP1\SYS\exe\uc\NTAMD64;C:\Program Files (x86)\Dell\SysMgt\oma\bin
    Environment: auth_shadow_upgrade=0
    Environment: dbms_type=ora
    Environment: dbs_ora_schema=SAPEP1
    Environment: dbs_ora_tnsname=EP1
    BR0801I BRCONNECT 7.00 (42)
    BR0280I BRCONNECT time stamp: 2010-08-16 14.30.28
    BR0301E SQL error -28003 at location crown_main-1, SQL statement:
    '/* BRCONNECT */ CREATE USER "SAPEP1SHD" IDENTIFIED BY "kXZvHmKI.42aB"'
    ORA-28003: password verification for the specified password failed
    ORA-20003: Password should contain at least one \
                  digit, one character and one punctuation
    BR1336I Creating database owner SAPEP1SHD failed
    BR0280I BRCONNECT time stamp: 2010-08-16 14.30.28
    BR0804I BRCONNECT terminated with errors
    Process with ID 15076 terminated with status 5
    Did you encounter this error? How can i solve it?
    Thanks a lot!
    Regards,
    Tony

    Hello Experts,
    I already solved the issue, just creating the user manually at command promp,
    the problem is that the password that SAP generated was not compatible or not acceptble to the system that is why i manually created the user:
    SQL> CREATE USER SAPEP1SHD IDENTIFIED BY kXZvHmKI_42aB;   - > correct one
    SQL> CREATE USER SAPEP1SHD IDENTIFIED BY kXZvHmKI.42aB;    - > incorrect; generated by the system
    Thanks & Regards,
    Tony

Maybe you are looking for

  • Charging US Microphoto in the

    Hello all?I've got a MicroPhoto I bought in the US but I li've in the UK So far I've just ben charging it through my computer, but to charge it from the mains can I just use a UK charger, or do I need to use a US charger with a plug adapter, or do I

  • Dynamic Column Name while Fetching from Cursor?

    Scenario: I have a table having 5 Column C01,C02,C03,C04,C05....... now i have a record type variable att_rec. One first fetch the first record fetch into att_rec and i can access column like att_rec.C01,att_rec.C02 and so on simply i wan access thes

  • Update Statement through function

    Hi, I've got the following select statement that is pulling 29 records: select distinct aqh.quote_number, aqh.quote_header_id,aqh.quote_version, aql.line_number, msi.inventory_item_id, msi.segment1 ,aqh.price_list_id, aqh.quote_expiration_date,aql.li

  • Checkpoint not complete.. Please help

    Hi I am getting the following notification in my alert log.. Oracle Version : 10.2.0.1.0 Do I need to worry about this?? Checkpoint not complete Current log# 6 seq# 18987 mem# 0: I:\ORACLE\ORADATA\AUTOPLNT\REDO06.LOG Current log# 6 seq# 18987 mem# 1:

  • Photoshop CS4 and matlab R2009b 64bit Mac

    Has anyone here sucessfully run psmatlab function in matlab r2009b 64bit mac version? I got this error, seems related to psmatlab.dylib is only compatible with i386 and ppc architectures. Any idea? Thanks.     Error using ==> loaddefinedlibrary     d