EJB Exceptions generate entry in trace file

Every exception I throw an exception from an EJB generates a stack trace in the oracle trace file. These are business rule errors like "Withdrawal Denied: Insuffient Funds". Can I turn this off? The J2EE spec says that the container should notify when an EJBException is throw to the container. How do I get the container to ignore my custom exception? My exception class is just derived from RemoteException like in the below Oracle example.
package employee;
public class EmpException extends RemoteException
public EmpException(String msg)
super(msg);
null

Please refer:
http://www.oracle.com/technology/oramag/oracle/09-mar/o29asktom.html?_template=/ocom/print
Edited by: SKU on 19-Dec-2009 05:10

Similar Messages

  • Not generating controlfiles backup trace file

    Hello frndssss
    when i am issing this command ,
    sql>alter database backup controlfile to trace;
    output its showing : Database is altered .
    when I am looking the trace files in UDUMP dirrectory there is no file exist there
    what might be the reason ? my before trace files open mode is notepad

    thanks sajiv ,,,, now I m able to get backup trace file of a controlfile , but this i can do to generate 1 trace file that 2 we have to specify our name ,
    I need permanent solution for this and it has to trace at Udump location which i specified in parameter file ,
    see my dump destination
    SQL> show parameter dump_dest
    NAME TYPE VALUE
    background_dump_dest string C:\ORACLE\PRODUCT\10.2.0\ADMIN
    \ORCL\BDUMP
    core_dump_dest string C:\ORACLE\PRODUCT\10.2.0\ADMIN
    \ORCL\CDUMP
    user_dump_dest string C:\ORACLE\PRODUCT\10.2.0\ADMIN
    \ORCL\UDUMP
    when I am giving this command ,
    alter database backup controlfile to trace;
    it has to go to udump dest ..... May I right , the process will be like this

  • 7.1: Insert-Exception only appears in trace-file ?

    Hello,
    this is a question relating to SAP Mobile 7.1, we are developing an application for Handhelds.
    I have the following situation:
    - In my Services Component I define the DO "Equip" with an unique index on attribute "nr".
    - I create a new Equip and set its attribute "nr" to an already existing value in the DB.
    - I perform a commit.
    => I only can see in the application trace-file that an SQLException occoured ("Error inserting row --> java.sql.SQLException: Duplicate unique index") but the exception isn't propagated to my application so my application has no chance to notice that something went wrong. Even worse: The complete record is lost !
    What do I have to do to receive this exception so I am able to notify the user that the record contains invalid data before it is lost ?
    Thanks a lot,
    Björn

    we have another situation in which the framework catches an exception and just drops it silently, and drops the data as well.
    In another support message we noted the following behaviour:
    - form field length: 20
    - db field length: 10
    - insert succeeded (in an older Patch Level)
    - but an error happened during the sync (SAP message 510534)
    we just received a fix (SP05 PL04) and this is what happens now:
    - insert throws an exception (text see below)
    - the framework catches the exception
    - and drops it silently
    - the application does not see that anything went wrong
    ok, I understand that I just should fix the length in the form field. Easy.
    But the whole exception handling in the persistence layer should be reviewed.
    Cheers, Andre
    <r id="1219153804103" t="15:50:04" d="2008-08-19" s="E" c="000" u="ZKIAGE" g="en" m="Error inserting row --&gt; java.sql.SQLException: Value is too large, column: EQUIP_NR
         at com.sap.sdb.minDB.util.ErrorMsg.newSQLException(Unknown Source)
         at com.sap.sdb.minDB.util.ErrorMsg.conversionError(Unknown Source)
         at com.sap.sdb.minDB.common.ColumnDesc.checkColumnSize(Unknown Source)

  • Report Server Generating big size trace file

    We are using Report Service which is part of 9iAS suite. Its generating a trace file (server name.trc). This file keeps growing and depending on the number of requests we receive sometimes its size goes in Giga bytes. Anybody knows why its doing that and how to get rid of this behavior ?

    Tracing is useful for troubleshooting purposes. If you do not need tracing please open the file
    $OH\reports\conf\server_name.conf
    and comment the "trace" element. You will need to restart the server for this to take effect
    <!--trace traceOpts="trace_all"/-->
    Thanks
    The Oracle Reports Team

  • No entries in trace file - ST01

    Hello gurus,
    I'm trying to analyze an authorization problem so I created a test scenario to understand how authorization trace works.
    For this test scenario, I'm trying to enter SE38 with a user that has no authorizations and getting "no authorization" error.
    I activated the system trace from ST01 with authorization check setting, got the error and then deactivated the trace. But when I try to analyze, there are no records about the authorization error I'm getting.
    Is my test scenario correct? If yes, why can't I see the missing authorization from the trace?
    Thank you for your input.
    Kind regards,
    Gökhan

    Hai,
    Check the parameters controlling the Traces:
    http://help.sap.com/saphelp_nw04/helpdata/en/5a/ace282ca0211d194b500a0c94260a5/frameset.htm
    You might have configured less space for writing trace files at file system level/hard disc.
    Regards,
    Yoganand.V

  • Numerous trace files are generating every minute causing space issue

    Hi All,
    numerous trace files are generating every minute <SID>_<PID>_APPSPERF01.trc  format.
    entry in trace file will be like..
    EXEC #10:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=1734896627,tim=1339571764486430
    WAIT #10: nam='SQL*Net message to client' ela= 6 driver id=1952673792 #bytes=1 p3=0 obj#=34562 tim=1339571764491273
    FETCH #10:c=0,e=0,p=0,cr=2,cu=0,mis=0,r=1,dep=0,og=1,plh=1734896627,tim=1339571764486430
    WAIT #10: nam='SQL*Net message from client' ela= 277 driver id=1952673792 #bytes=1 p3=0 obj#=34562 tim=1339571764491806
    EXEC #11:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=2638510909,tim=1339571764486430
    FETCH #11:c=0,e=0,p=0,cr=9,cu=0,mis=0,r=0,dep=0,og=1,plh=2638510909,tim=1339571764486430
    WAIT #11: nam='SQL*Net message to client' ela= 6 driver id=1952673792 #bytes=1 p3=0 obj#=34562 tim=1339571764493265
    *** 2012-06-13 03:16:14.496
    WAIT #11: nam='SQL*Net message from client' ela= 10003326 driver id=1952673792 #bytes=1 p3=0 obj#=34562 tim=1339571774496705
    BINDS #10:
    Bind#0
    oacdty=01 mxl=32(21) mxlc=00 mal=00 scl=00 pre=00
    oacflg=00 fl2=1000001 frm=01 csi=871 siz=2064 off=0
    kxsbbbfp=2b8ec799df38 bln=32 avl=03 flg=05
    value="535"
    Bind#1
    oacdty=01 mxl=32(21) mxlc=00 mal=00 scl=00 pre=00
    oacflg=00 fl2=1000001 frm=01 csi=871 siz=0 off=32
    kxsbbbfp=2b8ec799df58 bln=32 avl=04 flg=01
    value="1003"
    SQL> show parameter trace
    NAME TYPE VALUE
    tracefiles_public boolean TRUE
    log_archive_trace integer 0
    sec_protocol_error_trace_action string TRACE
    sql_trace boolean FALSE
    trace_enabled boolean TRUE
    tracefile_identifier string
    Profile options like "FND:Debug Log Enabled" and "Utilities:SQL Trace" are set to No
    Can some one help me to stop these trace generation.
    is there any way to find the cause for these trace?
    Thanks in adv...

    Hi;
    Please check who enable trace. Please see:
    How to audit users who enabled traces?
    check concurrent programs first
    *from the screen
    *F11, then select the trace, then Ctrl+F11
    Concurrent > program > define
    open the form, press F11 (query mode), select the trace, then (ctrl + f11) this should return all concurrent programs which have trace enabled
    Regard
    Helios

  • Trace files generated by Portal

    Our DBA has just sent me an email saying that Portal is generating "thousands of trace files" on the server with messages like this:
    *** SESSION ID:(8.11147) 2002-08-05 15:46:12.338
    Traverse response tree:
    SOAP-ENV:Envelope:
    SOAP-ENV:Body:
    portal:initSessionResponse:
    sessionTimeout:
    1800
    I've never had/seen this problem before. Anyone know how to prevent this?
    Thanks
    Rich Zapata

    No version number and not enough information in what you posted to help you.
    Did this just start?
    If so what actions preceded it?
    Or is this a new install?
    Have you tried bouncing the instance?
    If it were my system I would have already searched the knowledgebase at metalink and opened an SR if I couldn't find a solution. Did you?

  • Unable to start the database(Process m000 died, see its trace file)

    Hi,
    Oracle Version:10.2.0.1
    Operating System:Linux
    Hi suddenly the database went down and in alert logfile it is showing error like this.
    Fri Feb 18 01:40:51 2011
    Process m000 died, see its trace file
    Fri Feb 18 01:40:51 2011
    ksvcreate: Process(m000) creation failed
    Fri Feb 18 01:41:18 2011
    Errors in file /u01/app/oracle/admin/apdtest/bdump/apdtest_ora_15998.trc:
    ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
    Fri Feb 18 01:41:19 2011
    Process m000 died, see its trace file
    Fri Feb 18 01:41:19 2011
    ksvcreate: Process(m000) creation failed
    Fri Feb 18 01:42:19 2011
    Errors in file /u01/app/oracle/admin/apdtest/bdump/apdtest_ora_16032.trc:
    ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
    Fri Feb 18 01:42:20 2011
    Process m000 died, see its trace file
    Fri Feb 18 01:42:20 2011
    ksvcreate: Process(m000) creation failed
    Fri Feb 18 01:43:20 2011
    Errors in file /u01/app/oracle/admin/apdtest/bdump/apdtest_ora_16036.trc:
    ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
    Fri Feb 18 01:43:21 2011
    Process m000 died, see its trace file
    Fri Feb 18 01:43:21 2011
    ksvcreate: Process(m000) creation failed
    Fri Feb 18 01:44:21 2011
    Errors in file /u01/app/oracle/admin/apdtest/bdump/apdtest_ora_16042.trc:
    ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
    Fri Feb 18 01:44:22 2011
    Process m000 died, see its trace file
    Fri Feb 18 01:44:22 2011
    ksvcreate: Process(m000) creation failedand generating lot of trace files.
    Please help me how to solve this .
    Thanks & Regards,
    Poorna Prasad.

    In my alert log file I also find this error.
    ed Feb 16 06:11:13 2011
    Process J000 died, see its trace file
    Wed Feb 16 06:11:13 2011
    kkjcre1p: unable to spawn jobq slave process
    Wed Feb 16 06:11:13 2011
    Errors in file /u01/app/oracle/admin/apdtest/bdump/apdtest_cjq0_26196.trc:
    Wed Feb 16 06:11:13 2011
    Errors in file /u01/app/oracle/admin/apdtest/bdump/apdtest_j000_4172.trc:
    ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
    Wed Feb 16 06:11:14 2011
    Errors in file /u01/app/oracle/admin/apdtest/bdump/apdtest_j000_4172.trc:
    ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
    Process J000 died, see its trace file
    Wed Feb 16 06:11:14 2011
    kkjcre1p: unable to spawn jobq slave process
    Wed Feb 16 06:11:14 2011
    Errors in file /u01/app/oracle/admin/apdtest/bdump/apdtest_cjq0_26196.trc:Thanks & Regards,
    Poorna Prasad.S

  • No SQL text in trace file on NT4 client.

    I am getting a trace file back, but it has no SQL statments. i get connection msg(s), bytes to transport etc. etc. But no
    select, insert, update stmts.
    Here is my Sqlnet.ora file:
    # Filename......: sqlnet.ora
    # Name..........: tcp.db_ucu.com
    # Date..........: 20-JUN-96 11:28:08
    AUTOMATIC_IPC = ON
    TRACE_LEVEL_CLIENT = ADMIN
    SQLNET.EXPIRE_TIME = 0
    NAMES.DEFAULT_DOMAIN = db_ucu.com
    NAME.DEFAULT_ZONE = db_ucu.com
    SQLNET.CRYPTO_SEED = "19243487011925150191"
    NAMES.DIRECTORY_PATH = (TNSNAMES)
    trace_directory_client = c:\orant\network\admin
    trace_file_client = ora_sql.txt
    Any one run into this before, i would appreciate a reply. Thanks!
    null

    OK. You don't want to be playing around in your sqlnet file to generate an ODBC trace file. If you open the ODBC Data Source Administrator, you can turn on ODBC tracing. This will generate a log file that contains all the ODBC calls that are being made as well as the arguments.
    Justin

  • EJB Exception : getEnvironment is deprecated

    (Note : this question has been posted in 81beta.server.ejb also)
    Hi All,
    I am getting EJB Exception while deploying my ear file which contains a simple
    stateless session bean (jar module) and a jsp accessing the SSB. (WLS 8.1)
    Here is my code snippet that looks up SSB.
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,"t3://192.168.66.39:7001");
    try { Context ctx = new InitialContext(ht);
    DemoHome1 d1 = (DemoHome1)ctx.lookup("java:comp/env/ejb1");
    Demo1 demo = d1.create();
    String str1 = demo.demoSelect();
    System.out.println("Result from DemoBean : " + str1); }
    Here is my <ejb-ref> element in web.xml
    <ejb-ref>
    <ejb-ref-name>ejb1</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>ejb.demo.DemoHome1</home>
    <remote>ejb.demo.Demo1</remote>
    <ejb-link>../Demo.jar#DemoBean</ejb-link>
    </ejb-ref>
    And the exception is here
    <Jul 17, 2003 10:24:45 AM IST> <Error> <HTTP> <BEA-101019> <[ServletContext(id=5950347,name=sampletest,context-path=/sampletest)]
    Servlet failed with IOException java.rmi.RemoteException: EJB Exception: ; nested
    exception is: java.lang.RuntimeException: [EJB:010183]javax.ejb.EJBContext.getEnvironment
    is deprecated in EJB 1.1. EJB 1.1 compliant containers are not required to implement
    this method. Use java:comp/env instead. at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:103)
    at weblogic.ejb20.internal.BaseEJBHome.handleSystemException(BaseEJBHome.java:304)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:140) at
    weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:70)
    at ejb.demo.DemoBean_c3ndjf_EOImpl.demoSelect(DemoBean_c3ndjf_EOImpl.java:28)
    at jsp_servlet.__sampletest._jspService(__sampletest.java:144) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:431)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97) at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    Caused by: java.lang.RuntimeException: [EJB:010183]javax.ejb.EJBContext.getEnvironment
    is deprecated in EJB 1.1. EJB 1.1 compliant containers are not required to implement
    this method. Use java:comp/env instead. at weblogic.ejb20.internal.BaseEJBContext.getEnvironment(BaseEJBContext.java:279)
    at ejb.demo.DemoBean1.setSessionContext(DemoBean1.java:48) at ejb.demo.DemoBean_c3ndjf_Impl.setSessionContext(DemoBean_c3ndjf_Impl.java:111)
    at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.java:267)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:157)
    at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:109)
    at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:140)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:130) ...
    15 more
    >
    Anybody faced the same kind of problem and have an idea about the solution? Please.
    Thanks Prema

    Thanks for your Help, Rob.
    Problem because of ctx.getEnvironment() in my setSessionContext()
    Thanks
    Prema
    Rob Woollen <[email protected]> wrote:
    The error is coming from your EJB, not a webapp. Somewhere in your EJB,
    you're calling EJBContext.getEnvironment.
    -- Rob
    Prema wrote:
    Rob Woollen <[email protected]> wrote:
    Your EJB called the EJB 1.0! method EJBContext.getEnvironment. As
    the
    exception mentions, wee don't implement that method anymore and throw
    a
    RuntimeException.
    You should be using java:/comp/env to get to environment properties.
    -- Rob
    Prema wrote:
    (Note : this question has been posted in 81beta.server.ejb also)
    Hi All,
    I am getting EJB Exception while deploying my ear file which containsa simple
    stateless session bean (jar module) and a jsp accessing the SSB. (WLS8.1)
    Here is my code snippet that looks up SSB.
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,"t3://192.168.66.39:7001");
    try { Context ctx = new InitialContext(ht);
    DemoHome1 d1 = (DemoHome1)ctx.lookup("java:comp/env/ejb1");
    Demo1 demo = d1.create();
    String str1 = demo.demoSelect();
    System.out.println("Result from DemoBean : " + str1); }
    Here is my <ejb-ref> element in web.xml
    <ejb-ref>
    <ejb-ref-name>ejb1</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>ejb.demo.DemoHome1</home>
    <remote>ejb.demo.Demo1</remote>
    <ejb-link>../Demo.jar#DemoBean</ejb-link>
    </ejb-ref>
    And the exception is here
    <Jul 17, 2003 10:24:45 AM IST> <Error> <HTTP> <BEA-101019> <[ServletContext(id=5950347,name=sampletest,context-path=/sampletest)]
    Servlet failed with IOException java.rmi.RemoteException: EJB Exception:; nested
    exception is: java.lang.RuntimeException: [EJB:010183]javax.ejb.EJBContext.getEnvironment
    is deprecated in EJB 1.1. EJB 1.1 compliant containers are not requiredto implement
    this method. Use java:comp/env instead. at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:103)
    at weblogic.ejb20.internal.BaseEJBHome.handleSystemException(BaseEJBHome.java:304)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:140)at
    weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:70)
    at ejb.demo.DemoBean_c3ndjf_EOImpl.demoSelect(DemoBean_c3ndjf_EOImpl.java:28)
    at jsp_servlet.__sampletest._jspService(__sampletest.java:144) at
    weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:431)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) atweblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    Caused by: java.lang.RuntimeException: [EJB:010183]javax.ejb.EJBContext.getEnvironment
    is deprecated in EJB 1.1. EJB 1.1 compliant containers are not requiredto implement
    this method. Use java:comp/env instead. at weblogic.ejb20.internal.BaseEJBContext.getEnvironment(BaseEJBContext.java:279)
    at ejb.demo.DemoBean1.setSessionContext(DemoBean1.java:48) at ejb.demo.DemoBean_c3ndjf_Impl.setSessionContext(DemoBean_c3ndjf_Impl.java:111)
    at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.java:267)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:157)
    at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:109)
    at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:140)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:130)...
    15 more
    Anybody faced the same kind of problem and have an idea about the
    solution?
    Please.
    Thanks Prema
    Hi,
    I tried using JNDI name directly.
    DemoHome1 d1 = (DemoHome1) ctx.lookup("DemoBean");
    //DemoBean is my JNDI name
    It is still displaying same error. What's wrong ? What's the exactway of
    looking up an ejb from a web module in WLS 8.1 ?
    Thanks in advance
    Prema
    >

  • Unable to generate trace file

    Hi,
    I have written the stored procedure for starting sql trace on a given session for say n number of seconds.
    create or replace procedure start_trace
    v_sid in number,
    v_serial# in number,
    seconds in number)
    IS
    v_user varchar2 (32);
    duration number;
    dump_dest varchar2 (200);
    db_name varchar2 (32);
    no_session_found exception;
    stmt varchar2(100);
    stmt1 varchar2(100);
    BEGIN
    begin
    select username into v_user
    from v$session
    where sid= v_sid and
    serial# = v_serial#;
    exception
    when NO_DATA_FOUND then
    raise no_session_found;
    end;
    dbms_output.put_line('Tracing Started for User: '|| v_user);
    dbms_output.put_line('Tracing Start Time: '|| TO_CHAR(SYSDATE, 'MM-DD-YYYY HH24:MI:SS'));
    dbms_system.set_sql_trace_in_session(v_sid,v_serial#,true);
    if seconds is null then
    duration := 60;
    else
    duration := seconds;
    end if;
    dbms_lock.sleep(duration);
    dbms_system.set_sql_trace_in_session(v_sid,v_serial#,false);
    dbms_output.put_line ('Tracing Stop Time: '|| TO_CHAR(SYSDATE, 'MM-DD-YYYY HH24:MI:SS'));
    select value into dump_dest
    from v$parameter
    where name = 'user_dump_dest';
    dbms_output.put_line('Trace Directory: ' || dump_dest);
    exception
    when no_session_found then
    dbms_output.put_line('No session found for sid and serial# specified');
    END start_trace;
    The above procedure compiles successfully and when I call it from sql prompt it gives me the message that the pl/sql procedure was completed successfully and all put_line statements are displayed.
    Real problem comes when I check udump for the trace file. I can not find it there. It seems all the statements in the procedure are executed successfully except dbms_system.set_sql_trace_in_session(v_sid,v_serial#,true) and dbms_system.set_sql_trace_in_session(v_sid,v_serial#,false) for some strange reasons.
    Any help will be appreciated.
    Thanks.

    Thanks for the reply.
    I do not get any error message. The following is the output:
    SQL> exec start_trace(118,6243,30);
    Tracing Started for User: SVCWRK
    Tracing Start Time: 09-26-2011 16:28:29
    Tracing Stop Time: 09-26-2011 16:28:59
    Trace Directory: /orasoft/app/oracle/admin/testsvcb/udump
    PL/SQL procedure successfully completed.
    But the trace file is not generated.
    I am using Oracle 10.2.0.4.0.
    Will try using DBMS_MONITOR.
    Thanks again.

  • Trace File / EJB / dbms_java.grant_permission

    I am trying to deploy a simple Hello World EJB onto Oracle 8.1.7 using Jdeveloper 3.2.
    I get the following error when deploying :
    Loading EJB Jar file and Comm Stubs Jar file...
    error: loadJava has failed to load some classes; Please check trace file!
    *** Errors occurred while deploying the EJB to 8i JVM ***
    *** Deployment completed ***
    My trace file has the following in it :
    *** 2001-05-03 17:33:29.531
    *** SESSION ID:(14.2397) 2001-05-03 17:33:29.531
    Error while creating class oracle/aurora/jndi/sess_iiop/ActivationException
    ORA-29545: badly formed class: User has attempted to load a class (oracle.aurora.jndi.sess_iiop.ActivationException) into a restricted package. Permission can be granted using dbms_java.grant_permission(<user>, LoadClassInPackage...
    could not find oracle/aurora/jndi/sess_iiop/ActivationException in WILLOW2K
    could not find oracle/aurora/jndi/sess_iiop/ActivationException in WILLOW2K
    ORA-29534: referenced object WILLOW2K.javax/naming/InitialContext could not be resolved
    ORA-29545: badly formed class: at offset 128 of packagessb.ssbClient2.main expecting a class-javax.naming.NamingException but encountered a class-oracle.aurora.jndi.sess_iiop.ActivationException.
    ORA-29545: badly formed class: at offset 4 of javax.naming.spi.NamingManager.createObjectFromFactories expecting a class-javax.naming.Context but encountered a class-javax.naming.Context.
    at offset 4 of javax.naming.spi.NamingManager.getStateToBind expecting a class-javax.naming.Context but encountered a class-javax.naming.Context.
    at offset 38 of javax.naming.spi.NamingManager.getStateToBind expecting a class-javax.naming.Context but encountered a class-javax.naming.Context.
    at offset 38 of javax.naming.spi.NamingManager.getStateToBind expecting a class-javax.naming.Name but encountered a class-javax.naming.Name.
    at offset 37 of javax.naming.spi.NamingManager.getURLObject expecting a class-javax.naming.Context but encountered a class-javax.naming.Context.
    ORA-29534: referenced object WILLOW2K.javax/naming/spi/NamingManager could not be resolved
    ORA-29534: referenced object WILLOW2K.javax/naming/spi/NamingManager could not be resolved
    Error while resolving class oracle/aurora/jndi/sess_iiop/ActivationException
    ORA-04043: object /889d46b7_ActivationException does not exist
    I think the error stems from the line :
    (oracle.aurora.jndi.sess_iiop.ActivationException) into a restricted package. Permission can be granted using dbms_java.grant_permission(<user>, LoadClassInPackage...
    Doe anyone know how I can grant the user permission to the above library. How exactly is it done using Oracle 8.1.7 ?
    null

    did you read the install notes (install.htm) or release notes(readme.htm) files for known issues ?
    see the release notes for the following :
    Problems Deploying Business Components for Java Libraries in Different Schema (1095107)
    Attempting to deploy a Business Components for Java library in a different schema from the JDeveloper IDE generates the following error:
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...
    error: loadJava has failed to load some classes; Please check trace file!
    *** Errors occurred while deploying the EJB to 8i JVM ***

  • Trace files generated

    Oracle generated following trace files,
    can someone explain me, what error
    do they report?
    ora_28324.trc
    *** 2004-07-30 12:12:26.065
    *** SESSION ID:(19.7) 2004-07-30 12:12:26.064
    Probe:write_request: backend error 1003
    ora_28326.trc
    *** 2004-07-30 12:12:26.063
    *** SESSION ID:(20.2) 2004-07-30 12:12:26.054
    Probe:S:get_scalar: exception 10: ORA-06502: PL/SQL: numeric or value error
    *** 2004-07-30 12:23:42.230
    Probe:read_pipe: receive failed, status 3
    Probe:S:debug_loop: timeout. Action 1

    These are coming from the PL/SQL debugging API. They are non-fatal and can be ignored. Something/someone must be debugging some PL/SQL on the machine.

  • Instance Crash after generating few trace files

    Hi,
    I am using oracle 10gR2 on Aix 5.3 Server.
    We have 32 processors machine with 128GB RAM.
    Few minutes back my instance was crashed after generating some trace files.
    Here is the output of alert log:
    ======================================
    Tue Jul 1 12:07:19 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_p053_1184082.trc:
    ORA-00600: internal error code, arguments: [kghfrh:ds], [0x700000499EDB760], [], [], [], [], [], []
    ORA-10388: parallel query server interrupt (failure)
    Tue Jul 1 12:07:19 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_p123_1032326.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    Tue Jul 1 12:07:19 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_p110_1040486.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    Tue Jul 1 12:07:19 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_p021_946388.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    Tue Jul 1 12:07:19 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_p043_1245478.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    Tue Jul 1 12:07:19 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_p096_860242.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    Tue Jul 1 12:07:19 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_p059_1143086.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    Tue Jul 1 12:07:19 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_p040_1253800.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    Tue Jul 1 12:07:19 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_p032_1094578.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    Tue Jul 1 12:07:19 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_p121_1130812.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    Tue Jul 1 12:07:20 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_p076_893180.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    Tue Jul 1 12:07:20 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_p038_1090482.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    Tue Jul 1 12:07:20 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_p112_1175992.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    Tue Jul 1 12:08:11 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_pmon_1188084.trc:
    ORA-00600: internal error code, arguments: [kghfrh:ds], [0x700000499EDB760], [], [], [], [], [], []
    Tue Jul 1 12:08:14 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_pmon_1188084.trc:
    ORA-00600: internal error code, arguments: [kghfrh:ds], [0x700000499EDB760], [], [], [], [], [], []
    Tue Jul 1 12:08:14 2008
    PMON: terminating instance due to error 472
    Tue Jul 1 12:08:17 2008
    Errors in file /u01/app/oracle/admin/pakedwp/bdump/pakedwp_rbal_1249422.trc:
    ORA-00472: PMON process terminated with error
    Tue Jul 1 12:08:45 2008
    Instance terminated by PMON, pid = 1188084
    ============================================
    There was some business users activity going on at that time.
    These trace files are not readable.
    I have restarted the instance and it has successfully opened.
    Can any one help me to find whats the root cause of this crash???

    Actually My metalink account has just expired and right now I only have read only access to metalink Thats why I have asked for help here. I am waiting for the access grants from my manager and defiantly i will open SR for this.
    Parameter setting for this parameter is 400
    SQL> show parameter parallel_max
    NAME TYPE VALUE
    parallel_max_servers integer 400
    I haven't brought any change for last 10 hours on database. No OS or DB patch has been applied. My database was working fine and queries were returning results.

  • Dbms_monitor.session_trace_enable does not generate the trace file

    hi All,
    i'm trying the example from Tom Kyte's <<expert oracle database architecture>>, after runnning the java code using dbms_monitor.session_trace_enable, the trace file for the session can't be found in user_dump_dest, could anyone help explain. oracle version is 10.2.0.1.0 on RHEL 5. thanks.
    [oracle@CS-RHEL chapter09]$ cat perftest.java
    import java.sql.*;
    import oracle.jdbc.OracleDriver;
    import java.util.Date;
    public class perftest
      public static void main (String arr[]) throws Exception
        DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
        Connection con = DriverManager.getConnection
              ("jdbc:oracle:thin:@127.0.0.1:1522:cs10g",
                "sid", "sid");
        Integer iters = new Integer(arr[0]);
        Integer commitCnt = new Integer(arr[1]);
        con.setAutoCommit(false);
        doInserts( con, 1, 1 );
        Statement stmt = con.createStatement ();
        stmt.execute
        ( "begin dbms_monitor.session_trace_enable(waits=>TRUE); end;" );
        doInserts( con, iters.intValue(), commitCnt.intValue() );
        doInserts( con, iters.intValue(), iters.intValue() );
        con.commit();
        con.close();
      static void doInserts(Connection con, int count, int commitCount )
      throws Exception
        PreparedStatement ps =
           con.prepareStatement
           ("insert into test " +
            "(id, code, descr, insert_user, insert_date)"
            + " values (?,?,?, user, sysdate)");
        PreparedStatement commit =
           con.prepareStatement
           ("begin /* commit size = " + commitCount + " */ commit; end;" );
        int  rowcnt = 0;
        int  committed = 0;
        long start = new Date().getTime();
        for (int i = 0; i < count; i++ )
          ps.setInt(1,i);
          ps.setString(2,"PS - code" + i);
          ps.setString(3,"PS - desc" + i);
          ps.executeUpdate();
          rowcnt++;
          if ( rowcnt == commitCount )
            commit.executeUpdate();
            rowcnt = 0;
            committed++;
        con.commit();
        long end = new Date().getTime();
        System.out.println
        ("pstatement " + count + " times in " +
         (end - start) + " milli seconds committed = "+committed);
    }run the java class
    [oracle@CS-RHEL chapter09]$ java -cp .:./ojdbc14.jar perftest 1000 1
    pstatement 1 times in 5 milli seconds committed = 1
    pstatement 1000 times in 2255 milli seconds committed = 1000
    pstatement 1000 times in 509 milli seconds committed = 1

    hi virendra.k and Kecskemethy,
    thanks for your help. believe i find the arnswer.
    1. i used shared server connection. i can find the trace info in the backgroup_dump_dest, in the files: cs10g_s000_17467.trc and cs10g_s001_17469.trc
    Ref:http://www.dbspecialists.com/files/presentations/tracing_ind_sessions.html
    First, rather than using DBMS_MONITOR.CLIENT_ID_TRACE_ENABLE, we use DBMS_MONITOR.SESSION_TRACE_ENABLE. This can be run either by the session itself,
    or by another session (specifying the SID of the session to be traced). The tracing output will be in the instance’s background_dump_dest directory,
    rather than the user_dump_dest. And then you use trcsess with the session_id option, where session ID is actually the SID.SERIAL# of the session
    (from v$session). Again you get a consolidated trace file containing just the activity of the desired session.2. after change to dedicated server, the trace file is generated in user_dump_dest now.
    sid@CS10G> show parameter trace_enable
    NAME                                 TYPE        VALUE
    trace_enabled                        boolean     TRUE
    sid@CS10G> show parameter shared_servers
    NAME                                 TYPE        VALUE
    max_shared_servers                   integer
    shared_servers                       integer     10
    sid@CS10G> alter system set shared_servers=0
      2  ;
    System altered.
    [oracle@CS-RHEL udump]$ pwd
    /home/u02/app/oracle/product/11.1.0/db_1/admin/cs10g/udump
    [oracle@CS-RHEL udump]$ tail -25 cs10g_ora_22313.trc
    WAIT #8: nam='SQL*Net message to client' ela= 2 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901405248
    WAIT #8: nam='SQL*Net message from client' ela= 151 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901405433
    =====================
    PARSING IN CURSOR #9 len=43 dep=0 uid=61 oct=47 lid=61 tim=1220152901405586 hv=1042574845 ad='3ace843c'
    begin /* commit size = 1000 */ commit; end;
    END OF STMT
    PARSE #9:c=0,e=99,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=1220152901405582
    =====================
    PARSING IN CURSOR #10 len=6 dep=1 uid=61 oct=44 lid=61 tim=1220152901405781 hv=255718823 ad='0'
    COMMIT
    END OF STMT
    PARSE #10:c=0,e=13,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=0,tim=1220152901405776
    XCTEND rlbk=0, rd_only=0
    EXEC #10:c=0,e=146,p=0,cr=0,cu=1,mis=0,r=0,dep=1,og=0,tim=1220152901406000
    EXEC #9:c=999,e=396,p=0,cr=0,cu=1,mis=0,r=1,dep=0,og=1,tim=1220152901406082
    WAIT #9: nam='log file sync' ela= 3234 buffer#=5459 p2=0 p3=0 obj#=-1 tim=1220152901409385
    WAIT #9: nam='SQL*Net message to client' ela= 2 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901409450
    WAIT #9: nam='SQL*Net message from client' ela= 142 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901409633
    XCTEND rlbk=0, rd_only=1
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901409735
    WAIT #0: nam='SQL*Net message from client' ela= 283 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901410043
    XCTEND rlbk=0, rd_only=1
    WAIT #0: nam='SQL*Net message to client' ela= 2 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901410146
    WAIT #0: nam='SQL*Net message from client' ela= 316 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901410489
    XCTEND rlbk=0, rd_only=1

Maybe you are looking for

  • ITunes:  "File not found"

    I have been having a problem for quite some time with iTunes and I can't seem to get an answer as to how to resolve it. On many of my songs listed in the iTunes library, when I click on the song I get an error message to the effect of "File not found

  • Problems Connecting to an Old Recie

    Hey, I'm trying to connect my X-Fi to a pretty old reciever via headphone jack to rca's and if I turn up the main volume in windows all the way (or even past 50%) , I get REALLY bad distortion even when the recievers volume is on notch . If i turn th

  • Problem in accessing database using a java class

    Hy Folks, I have written a class to retrive data from data base and compiled it.when I said java QueryExample, I am getting the following error message.It is as below. E:\>java QueryExample Loading JDBC Driver -> oracle.jdbc.driver.OracleDriver java.

  • HR database in ORACLE10g

    Hi guys, I need some trouble in Jdeveloper 10g: ODBC is tested in windows by system and password. but i no input service name. (because i don't know it.) when i connect the ODBC database like SH ,it can show its detail informaiton, but HR database ca

  • Microsoft ERP MA (3.3.1077.2) for SAP and compatibility issues with SAP 6.0

    Hi all, I want to configure the ERP MA (3.3.1077.2) for SAP on ILM 2007 in order to synchronize passwords between AD and SAP. I have several instances of SAP. The SAP versions are as follow: SAP ECC 6.0 7.00 - 64bit SAP ECC 6.4 7.01 - 64bit SAP BI 7.