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 ***
Similar Messages
-
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);
nullPlease refer:
http://www.oracle.com/technology/oramag/oracle/09-mar/o29asktom.html?_template=/ocom/print
Edited by: SKU on 19-Dec-2009 05:10 -
DBMS_JAVA.GRANT_PERMISSION RESULTS IN ORA-03113
I've successfully created and deployed a java procedure that compresses files for use as email attachements. Upon executing the procedure I get a trace file telling me to grant java.io.FilePermission to the user. I attempted the call (connected as sys (sysdba)):
exec dbms_java.grant_permission('VEHICLE','SYS:java.io.FilePermission','f:\oracle\soe_data\*', 'read, write');
which resulted in:
ERROR at line 1:
ORA-03113: end-of-file on communication channel
and a core dump with:
ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x377E21D] [ADDR:0x24] [UNABLE_TO_READ] []
I opened up an SR on metalink and have not gotten a response.
I checked the Java install with "desc DBMS_JAVA" and got no errors. I also tried several variations to the path syntax, escaping the backslash, with/without the *, to just the directory, to an explicit filename, etc.
Oracle information is as follows:
Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - Production
With the Partitioning, OLAP and Data Mining options
Windows XP Version V5.1 Service Pack 2
CPU : 1 - type 586
Thanks in advanceI finally got this resolved. Apparently the catpatch.sql script did not run during the last upgrade causing a version mis-match
-
Dbms_java.grant_permission fails during the subsequent executions
Always first call succeeds for the following lines in a procedure.
dbms_java.grant_permission('MDSYS','SYS:java.io.FilePermission','D:\temp\test.dat,'read' );
dbms_java.grant_permission('SCOTT,'SYS:java.io.FilePermission','D:\temp\test.dat,'read' );
Any subsequent call does not return error message. But the other parts of the code fails to recognize the file permission and results in error.
Workaround is to run the grant_permission for a set for files separately, then the other parts of the code recognize the file permissions.
Any ideas? Thanks.Thanks for your attention.
1. Here is the code
-- Import the image.
PROCEDURE Import_Raster (pi_grant_schema varchar2, pi_utldirname varchar2, pi_filename varchar2, pi_georid number)
IS
-- PRAGMA AUTONOMOUS_TRANSACTION;
geor SDO_GEORASTER;
l_filepathname varchar2(255);
l_privilege varchar2(50) := 'read';
BEGIN
l_filepathname:= pi_utldirname||'\'||pi_filename;
dbms_java.grant_permission('MDSYS','SYS:java.io.FilePermission',l_filepathname, l_privilege );
dbms_java.grant_permission(pi_grant_schema,'SYS:java.io.FilePermission',l_filepathname, l_privilege );
delete from georaster_table where georid = pi_georid;
insert into georaster_table (georid,georaster)
values( pi_georid, sdo_geor.init('RDT_GEOR', pi_georid) );
select georaster into geor from georaster_table where georid = pi_georid for update;
sdo_geor.importFrom(geor, '', 'TIFF', 'file',l_filepathname);
update georaster_table set georaster = geor where georid = pi_georid;
dbms_java.revoke_permission('MDSYS','SYS:java.io.FilePermission',l_filepathname, l_privilege );
dbms_java.revoke_permission(pi_grant_schema,'SYS:java.io.FilePermission',l_filepathname, l_privilege );
END;
2. I could reproduce the error if repeated call the procedure with different file name as below.
call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m25l_2_a.tif','read' );
call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m25l_2_b.tif','read' );
call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m26d_2.tif','read' );
call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m26e_2.tif','read' );
call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m26f_3.tif','read' );
call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m26g_1.tif','read' );
3. Workaround: I am exiting the session after each command.
Thanks. -
Dbms_java.grant_permission() help
Hi,
As system I have execute the dbms_java.grant_permission('SCOTT','java.io.FilePermission','/tmp/ls.txt','read,write,execute') which went through fine.
In the java procedure I am trying to access the /tmp/ls.txt file. When I execute the procedure I am getting the following error.
java.security.AccessControlException: the Permission (java.io.FilePermission
<<ALL FILES>> execute) has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
at java.security.AccessControlContext.checkPermission(AccessControlContext.java)
at java.security.AccessController.checkPermission(AccessController.java)
at java.lang.SecurityManager.checkPermission(SecurityManager.java)
at
oracle.aurora.rdbms.SecurityManagerImpl.checkPermission(SecurityManagerImpl.java
at java.lang.SecurityManager.checkExec(SecurityManager.java)
at java.lang.Runtime.exec(Runtime.java)
at java.lang.Runtime.exec(Runtime.java)
at java.lang.Runtime.exec(Runtime.java)
at lastGenTrigger.afterUpdate(lastGenTrigger.java:21)
Any help ???
Thanx in advance
GuruEnsure user scott has reconnected to the database after the permission has been granted.
null -
Dbms_java.grant_permission not working
Hi,
Actually using code from Asktom,i have written java program which is getting list of file and inserting them in database table but then i need to give rights using
execute dbms_java.grant_permission( 'PDMAIN', 'SYS:java.io.FilePermission', '\\lu1dpc21\cdrv','read');
But problem when i am executing it in procedure its not working ,i need to execute it from sql*plus,so is it limitation or i am not doing anything wrong.
Regards,
SandeepAnd your Oracle version is? Please paste your output of the below steps -
Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
Connected as hr
SQL> SET SERVEROUTPUT ON SIZE 1000000
SQL> CALL DBMS_JAVA.SET_OUTPUT(1000000);
Method called
SQL> call dbms_java.grant_permission('HR', 'java.io.FilePermission', '/tmp', 'read,write');
Method called
SQL> begin
2 dbms_java.grant_permission('HR', 'java.io.FilePermission', '/tmp', 'read,write');
3 end;
4 /
PL/SQL procedure successfully completed
SQL> select type_name from user_java_policy where name = '/tmp' ;
TYPE_NAME
java.io.FilePermission
Best regards. -
Dbms_java.grant_permission in Microsoft Windows
Hi,
I have tried so many many times to get this working but have failed. When I ran the following statement, it did return 10 rows (10 files in the path in operating system). However, all rows showed null values with no data at all. I think this is something to deal with Windows. I cannot find any help on the Web. Here is the package that I got:
http://sql-plsql-de.blogspot.com/2008/09/ein-einfacher-ansatz-dateien-eines.html?lang=en
<pre>
begin
dbms_java.grant_permission(
'XXX_MGR',
'SYS:java.io.FilePermission',
'F:\xxx_jobs\uploads\images\birth',
'read');
end;
select e.file_name, e.is_dir, e.file_size
from table(file_pkg.get_file_list(file_pkg.get_file('F:\xxx_jobs\uploads\images\birth'))) e
</pre>grant read permission to the directory and the files in it by using F:\xxx_jobs\uploads\images\birth\-. F:\xxx_jobs\uploads\images\birth\* is also an alternative.thanks to Carsten Czarski page for highlighting this.
-
Not able to get the actual plan from trace file
Hi all
I have a Db package and want to get actual execution plan of all the statements in that pakcage it does provides the plan for System's statements but does not displays the plan for Sql statements
DB version 9.2.0 using the following sequence of insructions
set timing on
set serveroutput on
alter session set events '10046 trace name context forever ,level 12';
begin
run_service.collect_data(sysdate);
end;
alter session set sql_trace=false;
exit; ---exit from Sql
now look at the output
select distinct obj#,containerobj#,pflags,xpflags,mflags
from
sum$, suminline$ where sumobj#=obj# and inline#=:1
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 1 1 0 0
total 3 0.00 0.00 1 1 0 0
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Rows Row Source Operation
0 SORT UNIQUE
0 NESTED LOOPS
0 TABLE ACCESS BY INDEX ROWID SUMINLINE$
0 INDEX RANGE SCAN I_SUMINLINE$_2 (object id 1614116)
0 TABLE ACCESS BY INDEX ROWID SUM$
0 INDEX UNIQUE SCAN I_SUM$_1 (object id 319)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 1 0.00 0.00
SELECT SEQ_NUM, S_DATE, S_TIME, CSTATUS, G_SERVICE,
B_REFERENCE, V_REFERENCE, M_PRIORITY
FROM GL_HIST
ORDER BY S_DATE DESC, S_TIME DESC
call count cpu elapsed disk query current rows
Parse 1 0.01 0.01 0 0 0 0
Execute 2819 0.37 0.32 0 0 0 0
Fetch 2819 2.50 20.47 2786 20164 0 2819
total 5639 2.88 20.81 2786 20164 0 2819
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 15550 (recursive depth: 1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 2786 0.05 18.19
latch free 4 0.04 0.06
UPDATE G_ORIG SET G_SERVICE = :B1
WHERE
SEQ_NUM = :B5 AND S_DATE = :B4 AND S_TIME = :B3 AND
C_STATUS = :B2 AND NVL(G_SERVICE, '+') <> NVL(:B1, '+')
call count cpu elapsed disk query current rows
Parse 1 0.00 0.03 0 0 0 0
Execute 3731 0.74 0.99 261 18712 119 54
Fetch 0 0.00 0.00 0 0 0 0
total 3732 0.74 1.02 261 18712 119 54
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 15550 (recursive depth: 1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 261 0.01 0.19
latch free 9 0.01 0.04
COMMITRemove the line alter session set sql_trace=false and just exit/disconnect. The explain plain is contained in the STAT lines in the trace file and are only written when the cursor closes. If you turn off tracing before the cursor closes the STAT lines will not get written.
-
How to create the trace file using run_report_object at runtime
Dear All
using :
Oracel Application Server 10g
Oracle Database 11g
Windows XP/sp3
I'm using run_report_object to call a report inside the form. THis report is running OK from reports builder, however it's too slow when run from Application server.
How Can I create a trace file (at runtime) that contains the time spent in sql and formating the layout of the report ??
Here is My code :
repid := find_report_object('report5');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'INVOICE.REP');
v_url :='paramform=no';
v_url := v_url||' FROM_NO=' || :PRINT_BLOCK.FROM_NO ;
v_url := v_url ||' TO_NO=' || :PRINT_BLOCK.TO_NO ||' FROM_DATE=' || v_from_date ||' TO_DATE='|| v_to_date ||' NO_DATE=' ;
v_url := v_url ||:PRINT_BLOCK.NO_DATE||' IDENT=' ||:PRINT_BLOCK.IDENT_NO||' REPORT_HEADING='''||V_REPORT_HEADING||'''' ;
v_url := v_url||' COMPANY_NO='||:global.company_no;
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,v_url);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,:GLOBAL.INV_REPORT_SERVER_NAME);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
v_rep := RUN_REPORT_OBJECT(repid);
IF rep_status = 'FINISHED' THEN
V1:='/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1);
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?server='||REPORT_SERVER_NAME,'_blank');
END IF;
Thanks a lotSlow running reports often are not the result of a flawed report, but rather a flawed configuration. For example:
1. If you call your reports (from Forms) via the default or inProcess Reports Server, often because startup time is slow, it will appear that it took too long for the report to be delievered. Using a stand-alone Rep Server is the preferred way to do this.
2. If your Forms application makes numerous calls to RRO (RUN_REPORT_OBJECT), this can tend to result in what might appear as a memory leak (although it is not). The result is delayed processing because of the excessive memory use. This problem has been overcome in Forms/Reports 11 by the use of JVM pooling. However in v10 enabling "6i compatibility" mode is the way to overcome the issue. See Note 266073.1
3. If the report runs fine from the Builder and it is connecting to the same db as when you run it from App Server, the issue is unlikely a db problem. However, if you want to look anyway, enable sqlnet tracing.
4. To enable Reports tracing and investigate other tuning options, refer to the Reports 10 documentation:
http://docs.oracle.com/cd/B14099_11/bi.1012/b14048/pbr_tune.htm
Almost forgot to mentioned this one....
If you are using a v11 db with App Server 10, you will probably want to consider reviewing Note 1099035.1 as it discusses an issue related to performance with such a configuration.
Edited by: Michael Ferrante on Apr 10, 2012 8:49 AM -
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. -
Ora-00604 error while taking tkprof of a trace file
Sorry i am giving the full erro but omitting exact table names
Hi ,
I have an error while taking tkprof of a trace file.
I gave the following command ---
tkprof <source.trc> <file.prc> sys=no sort=exeela,fchela,prsela explain= /
error is --
Error in create table of EXPLAIN PLAN table : unix_session_user.prof$paln_table
ORA-00604: error occurred at recursive SQL level 1
ORA-20001: Step-6:DDL
Event Security. You are not permitted to perform the requested structural
changes to PROF (TABLE)
Event triggered : CREATE
ora_login_user
(session_user) : unix_session_user(dummy)
Search : select count(*) from
tabl(dummy table name) where obj_name like '%\%%' escape '\' and obj_type =
'TABLE' and obj_type = 'USER' and ( event_CREATE = 'Y' or status =
'Override')
ORA-06512: at line 162
ORA-06510: PL/SQL: unhandled
user-defined exception
EXPLAIN PLAN option disabled.
i searched for the error and in oracle forum i found a solution .. http://forums.oracle.com/forums/thread.jspa?threadID=844287&tstart=0
but after giving the table option it is giving the same error
tkprof <source.trc> <file.prc> sys=no sort=exeela,fchela,prsela table=old_schema.plan_table explain= /
it again gave the same error.
In both two cases it gives elapsed time results,library cache missing etc but before giving this it throws ORA-00604 error as stated above
then i again correct the tkprof statement ..
tkprof <source.trc> <file.prc> sys=no sort=exeela,fchela,prsela table=new_schema.plan_table explain= /
say this schema name here i used is dummy schema name.
My question is did this error came as we had not sufficient previlages in the old_schema but that previleges we have in new_schema?
My databse version is 9.2.0.4.0
Thanks in advance
Edited by: bp on Feb 3, 2009 11:36 PM
Edited by: bp on Feb 3, 2009 11:40 PMPlease post here full error message, there should be lines with ORA-00604 and then some other ORA as well.
And are there any trace files generated during this error?
And as You can see from error description, probably You will have to contact with Oracle support in order to solve this case:
oerr ora 00604
00604, 00000, "error occurred at recursive SQL level %s"
// *Cause: An error occurred while processing a recursive SQL statement
// (a statement applying to internal dictionary tables).
// *Action: If the situation described in the next error on the stack
// can be corrected, do so; otherwise contact Oracle Support. -
Create sql trace files on client machine
Hi
oracle creates sql trace files on server side, what are possible and best ways of sharing those files with end users? is it possible to create them on client side instead?Dbb wrote:
Hi
Hi
oracle creates sql trace files on server side,
Yes
what are possible and best ways of sharing those files with end users?
Using shared directory. Use the parameters dump to point to it
is it possible to create them on client side instead?
No
. :-) any help with my english is wellcome :-) .does this mean sharing user_dump destination at linux level and then mounting it from client machines ( win xp )?is there any doc on this? -
Reading trace file on the fly.
I came across one cool trick mentioned by Tanel Poder, but it doesn't seem to work for me. Could anyone please help in reading trace file on the fly.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> !uname -a
Linux abc 2.6.16.60-0.34-smp #1 SMP Fri Jan 16 14:59:01 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux
SQL> select value ||'/'||(select instance_name from v$instance) ||'_ora_'||
2 (select spid||case when traceid is not null then '_'||traceid else null end
from v$process where addr = (select paddr from v$session
3 4 where sid = (select sid from v$mystat
5 where rownum = 1
6 )
7 )
8 ) || '.trc' tracefile
9 from v$parameter where name = 'user_dump_dest'
10 /
TRACEFILE
/n01/oraadmin1/diag/rdbms/abc/inst1/trace/inst11_ora_28754.trc
SQL> host mknod /n01/oraadmin1/diag/rdbms/abc/inst1/trace/inst11_ora_28754.trc p
SQL> set define off
SQL> host grep "WAIT" /n01/oraadmin1/diag/rdbms/abc/inst1/trace/inst11_ora_28754.trc &
SQL> set define on
SQL> alter session set events '10046 trace name context forever, level 8';
Session altered.
SQL> select * from dual;
D
X
SQL>
SQL> select * from dual;
D
X
{code}
I dont get any WAIT printed into the pipe file created before tracing.
Am i doing something wrong here ?
Edited by: Yasu on Nov 12, 2012 10:14 AMI tried manual method and yes i am able to find WAIT lines in trace file.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> select value ||'/'||(select instance_name from v$instance) ||'_ora_'||
(select spid||case when traceid is not null then '_'||traceid else null end
2 3 from v$process where addr = (select paddr from v$session
4 where sid = (select sid from v$mystat
5 where rownum = 1
6 )
7 )
8 ) || '.trc' tracefile
9 from v$parameter where name = 'user_dump_dest'
10 /
TRACEFILE
/n01/oraadmin1/diag/rdbms/proddba/proddba1/trace/proddba1_ora_23021.trc
SQL> alter session set events '10046 trace name context forever, level 8';
Session altered.
SQL> select * from dual;
D
X
SQL> alter session set events '10046 trace name context off';
Session altered.
SQL> !ls -lrt /n01/oraadmin1/diag/rdbms/proddba/proddba1/trace/proddba1_ora_23021.trc
-rw-r----- 1 oracle oinstall 2738 2012-11-12 01:13 /n01/oraadmin1/diag/rdbms/proddba/proddba1/trace/proddba1_ora_23021.trc
SQL> !grep "WAIT" /n01/oraadmin1/diag/rdbms/proddba/proddba1/trace/proddba1_ora_23021.trc
WAIT #1: nam='SQL*Net message to client' ela= 6 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1352704368368424
WAIT #1: nam='SQL*Net message from client' ela= 4057810 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1352704372428142
WAIT #1: nam='SQL*Net message to client' ela= 6 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1352704372428492
WAIT #1: nam='SQL*Net message from client' ela= 195 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1352704372428892
WAIT #1: nam='SQL*Net message to client' ela= 3 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1352704372428939
WAIT #1: nam='SQL*Net message from client' ela= 46319788 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1352704418748740Not sure why using mknod fails in my case.
Edited by: Yasu on Nov 12, 2012 12:48 PM -
How to find out the Trace file
Hi Dba's
I need to find out the trace file with the Request id. how can i find out it?
ThanksThere are many ways to create a trace file in the apps. Pl provide details on how you enabled trace, as that will determine where the trace file is created.Concurrent requests trace files are always created under USER_DUMP_DEST directory.
-
Name of trace file from trace enabled concurrent program
Hi all,
I am looking for a sql script or method to find the name of a trace file in udump for trace enabled concurrent programs. I know the trace files show 11i logon (user_name from fnd_user) in the name of the trace file but I am looking for a sql that would give the exact name of the raw trace file with request id as input.
I have 11.5.10.2.
Any help?
Thanks,Please see these docs.
11i-How to find the Trace file generated for a concurrent program [ID 270446.1]
How to find the Trace file generated for a concurrent program? [ID 967966.1]
FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]
Thanks,
Hussein
Maybe you are looking for
-
Crystal Report Viewer Control error
Please Help, I have a web application developed in .net 2005 which is using crystal reports developer product version 10.0.0.533. This web application with crystal is working fine on my local machine with OS windows xp, but on the windows server 2003
-
Error message from Install Build LabView 2014 on Windows 7 What might this mean? Call Library Function Node in NI_MDF.lvlib:MDFProdInfoList_Close.vi->CDK_DistParts_GetInstalledProducts_CORE.vi->CDK_DistParts_GetInstalledProducts.vi->CDK_Validate_Dist
-
NetBoot images are not showing up in the Startup Disk window
I have created a few Netboot images, enabled them and placed them in the correct place. They don't show up in the Startup Disk window. I have noticed that bootparamd is not running, and that after a while also bootpd disappeared. Strange, no? (I star
-
Oracle 9i Windows service error
Hi all, Oracle 9i, Windows 2K I am starting the Oracle database service in my windows 2k but it throws me errors: The OracleServicePROD1 service terminated with service-specific error 997 (0x3E5). he description for Event ID ( 0 ) in Source ( OracleS
-
Flex Mobile + crossdomain.xml
Ok, so, here's a fun one for you. I have a webservice that the mobile app calls. This works fine on a http://localhost/.... run, but when testing on the device, the device can't interpret localhost. Which means that I have to: 1.) put the webservice