See the detalis of DDL commands executing on oracle 10g
Hi,
how can i see the detail of DDL command executed on oracle 10g on ECC 6.0
ECC 6.0
HPUX
Regards,
Did you activated the auditing mechanish on the Oracle? If it is active, you can query the audit table;
select * from sys.aud$;
Another way is using Oracle Log Miner. You can find the related information, on the link below;
http://docs.oracle.com/cd/B10501_01/server.920/a96521/logminer.htm
Best regards,
Orkun Gedik
Similar Messages
-
What is the maximum number of characters in an Oracle 10G Instance Name
All,
Can I know what is the maximum number of characters in an oracle 10g instance name under AIX? Is it 7 characters or 8 characters?
regards
SanthoshOne should really make the difference between db_name and instance_name: if instance_name default value is db_name it can be different
(even on a non RAC database).
For example with Oracle 10.2.0.4 you can create a database named DB78 with instance_name=DB12345678:
$ uname -a
Linux lx01.localdomain 2.6.18-92.el5 #1 SMP Fri May 23 22:17:30 EDT 2008 i686 i686 i386 GNU/Linux
$ ps -fu oracle | grep smon
oracle 6353 1 0 20:30 ? 00:00:01 ora_smon_DB12345678
oracle 6412 5596 0 20:37 pts/1 00:00:00 grep smon
$ export ORACLE_SID=DB12345678
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 8 20:34:26 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show parameter name
NAME TYPE VALUE
db_file_name_convert string
db_name string DB78
db_unique_name string DB78
global_names boolean FALSE
instance_name string DB12345678
lock_name_space string
log_file_name_convert string
service_names string DB78I would not recommend this practice: but it's interesting to know to avoid confusing between db_name and instance_name. -
How to check/find the size of current ROLLBACK segment in oracle 10g
How to check/find the size of current ROLLBACK segment in oracle 10g ? Kindly help
A rollback segment name like "_SYSSMU231$" is used when you have Automatic Undo Management enabled.
The only relevant parameters are :
1. UNDO_MANAGEMENT=AUTO
2. UNDO_RETENTION=n minutes ==> this is what everyone should be interested in
3. The sizes of the Undo Tablespace datafiles and whether AUTOEXTEND is ON or OFF
No one should be interested in the size of a single undo segment when Automatic Undo Management is enabled.
Possible causes of ORA-01555 errors in Automatic Undo Management
a. UNDO_RETENTION is too low
b. Undo tablespace is too small
Hemant K Chitale -
How To Execute an Oracle 10g SProc using VS 2005, for Reporting Services
Good day! :-)
Anybody who knows the syntax for executing an Oracle Stored Proc thru ODBC connection using VS 2005 for Reporting Services? I am having a problem about this.
I am using the ODBC connection because VS 2005 does not support Oracle Database 10g in its Oracle Database Connection feature (only 7.3, 8i, and 9i), that's y.
While using MS SQL Server 2000, I never encountered any problem. But using Oracle Database 10g, I find it hard to call the stored procedures, an error is generated everytime.
Please click the link below for the screenshots:
http://www.geocities.com/vrcode2/oraError.JPG
http://www.geocities.com/vrcode2/storedProc.JPG
Please help...thank you so much.
FrancisI'll give you updates about the use of the MS SQL Server Reporting Services with VS 2005 and Oracle, this might be helpful for those who will encounter this same ctuation in the future.
I have discovered that if you're going to connect thru ODBC, even if the connection is successful, the user is still prompted to input a password, which should not be the case when using the Reporting Services. Another thing to take note is the issue about REF CURSOR, we're going to have problems with this. And also the syntax on how you're going to call the stored procedures (with or without input parameters).
With modifications made through Oracle Net Manager, and I tried AGAIN connecting through "Oracle (client)" feature of VS 2005 (even if the list only include Oracle 7.3, 8i, and 9i that are supported) with some changes also, you'd still be able to generate correct data with that solution. If the configuration is correct, you just need to call the stored procedure (with or without input parameter), you won't have any problems about the correct syntax.
I suppose VS 2005 was released earlier than Oracle 10g, that's why 10g wasn't included If ever u'd encounter the same ctuation like mine, and u need the details on how to connect, do not hesitate to ask me. -
How to trace the flow of plsql procedures/functions in oracle 10g
Hi All,
Recently I came to know that there is dbms_hprof PL/SQL built-in package in Oracle 11g which can be used to trace PL/SQL calls in a Hierarchical way. (acts as a PL/SQL Hierarchical Profiler).
Steps are given in -
http://www.oracle-base.com/articles/11g/PlsqlHierarchicalProfiler_11gR1.php
I would like to know whether there is a similar package in Oracle 10g because I want to trace the flow of plsql procedure and function calls in order to generate an output in a hierarchical way (for debug purposes).
The following example shows the flow of procedure calls when I execute PACKAGE_A.Proceudure_A. I want to generate that kind of an output.
Ex -
PACKAGE_A.Proceudure_A
----|_PACKAGE_A.Proceudure_B
----|------|_PACKAGE_B.Proceudure_C
----|_PACKAGE_B.Proceudure_M
----|------|_PACKAGE_A.Proceudure_B
----|-------------|_PACKAGE_C.Proceudure_C
----|_PACKAGE_Z.Proceudure_Z
If there is no similar package in *10g* I would really appreciate if someone can provide me directions to get the job done using the exsting packages and tables in Oracle 10g. Thanks in advance.
Edited by: user8326781 on Nov 28, 2008 8:57 PM
Edited by: user8326781 on Nov 28, 2008 8:58 PM
Edited by: user8326781 on Nov 29, 2008 12:19 AMI am not sure that this would serve the purpose or not but still, I guess its worth to atleast be mentioned,
http://www.oracle-base.com/articles/9i/DBMS_TRACE.php
HTH
Aman.... -
Function not executing in oracle 10g
Hi ALL,
I have a problem executing below Function in oracle 10g.
Pls do help me solve the prblm it wud be a great help.
Thanks in advance.
Here is a below function and the error i am getting:
create or replace FUNCTION UnpackArray
Source IN VARCHAR2 DEFAULT NULL,
Delimiter IN CHAR DEFAULT ','
RETURN reSourceArray0 PIPELINED
IS
SourceArray00 SourceArray0:=SourceArray0(NULL);
TYPE REFCURSOR IS REF CURSOR;
CURSOR0 REFCURSOR;
DelLen int;
Pos int;
Cnt int;
str int;
LEN int;
Holder VARCHAR2(220);
BEGIN
--Check for NULL
IF Source is null or Delimiter is null THEN
Return;
END IF;
--Check for at leat one entry
IF RTRIM(LTRIM(Source)) = '' THEN
Return;
END IF;
/*Get the length of the delimeter*/
SELECT LENGTH(RTRIM(Delimiter)) INTO DelLen FROM DUAL;
SELECT INSTR(UPPER(Source), UPPER(Delimiter)) INTO Pos FROM DUAL;
--Only one entry was found
IF Pos = 0 THEN
BEGIN
INSERT INTO UnpackArray_TBL
( Data )
VALUES ( Source );
return;
OPEN CURSOR0 FOR SELECT * FROM UnpackArray_TBL;
END;
END IF;
/*More than one entry was found - loop to get all of them*/
SELECT 1 INTO str FROM DUAL;
<< LABEL4 >>
WHILE Pos > 0
LOOP
BEGIN
/*Set current entry*/
SELECT Pos - str INTO len FROM DUAL;
SELECT SUBSTR(Source, str, len) INTO Holder FROM DUAL;
/* Update array and counter*/
/* Update array and counter*/
INSERT INTO UnpackArray_TBL
VALUES ( Holder );
/*Set the new strting position*/
SELECT Pos + DelLen INTO str FROM DUAL;
SELECT INSTR(UPPER(Source), UPPER(Delimiter), str) INTO Pos FROM DUAL;
OPEN CURSOR0 FOR SELECT * FROM UnpackArray_TBL;
END;
END LOOP;
/*Set last entry*/
SELECT SUBSTR(Source, str, length(RTRIM(Source))) INTO Holder FROM DUAL;
-- Update array and counter if necessary
IF length(RTRIM(Holder)) > 0 THEN
INSERT INTO UnpackArray_TBL
VALUES ( Holder );
OPEN CURSOR0 FOR SELECT * FROM UnpackArray_TBL;
END IF;
--Return the number of entries found
Return; LOOP
FETCH CURSOR0 INTO
SourceArray00.Data;
EXIT WHEN CURSOR0%NOTFOUND;
PIPE ROW(SourceArray00);
END LOOP;
CLOSE CURSOR0;
RETURN;
END;
Error is : Compilation failed,line 6 (12:13:25)
PLS-00201: identifier 'RESOURCEARRAY0' must be declared
Compilation failed,line 0 (12:13:25)
PL/SQL: Compilation unit analysis terminateduser11917384 wrote:
Error is : Compilation failed,line 6 (12:13:25)
PLS-00201: identifier 'RESOURCEARRAY0' must be declared
Compilation failed,line 0 (12:13:25)
PL/SQL: Compilation unit analysis terminatedHave you created a sql user defined type with name RESOURCEARRAY0...??
Ravi Kumar -
How to find the db accounts using default passwords in oracle 10g
Hi, can someone pleas tell me , how to find the oracle accounts in the database which are using default passwords. DB verion is 10g and 9i.
in 11g version we can query the view DBA_USERS_WITH_DEFPWD to view the users....
any idea in 10g and 9i ?
thanks in advance.951658 wrote:
Hi, can someone pleas tell me , how to find the oracle accounts in the database which are using default passwords. DB verion is 10g and 9i.
in 11g version we can query the view DBA_USERS_WITH_DEFPWD to view the users....
any idea in 10g and 9i ?
thanks in advance.the only way I've found is to search the web for lists of default users and their passwords, then attempt to log on with said credentials. I'd start with Pete Finnigan's site (google is your friend). He may already have some scripts ready to go, or at least the lists you'd need to get started. -
Can OS command execute by ORacle Jobs
I wanted to now that is there any way to delete dump file from data pump directory?? Why I need this let me explain. I wanted to do. I’ve schedule data pump to run every night to export a particular scheme. By using U% I’ve avoided to replace files but the requirement has been change now becoz size of one exported file is too high. Now I wanted to delete already created file before Data pump schedule. I know its risky or strange but I wanted to do so. I just need to know can I delete file from OS using Oracle just like as we delete data file by defining including. Simply tell me can I schedule a job which OS command instead of PL/SQL block ???
Hi again!
Try this one:
<pre>
BEGIN
dbms_scheduler.create_job (
job_name =>'DEL_DUMP_FILE',
job_type =>'EXECUTABLE',
job_action =>'ls /home/oracle',
enabled => FALSE,
start_date => SYSTIMESTAMP
END;
PL/SQL-Prozedur erfolgreich abgeschlossen.
SQL> SELECT owner, job_name, enabled FROM dba_scheduler_jobs;
OWNER JOB_NAME ENABL
SYS AUTO_SPACE_ADVISOR_JOB TRUE
SYS GATHER_STATS_JOB TRUE
SYS FGR$AUTOPURGE_JOB FALSE
SYS PURGE_LOG TRUE
SYSTEM DEL_DUMP_FILE FALSE
SYSTEM EXT_LOAD FALSE
EXFSYS RLM$SCHDNEGACTION TRUE
EXFSYS RLM$EVTCLEANUP TRUE
8 Zeilen ausgewählt.
EXEC DBMS_SCHEDULER.RUN_JOB('DEL_DUMP_FILE');
</pre>
Try all the keywords in uppercase style. This one worked for me!
regards -
Error while instaling the MEP server for Single tier, using Oracle 10g DB
createDatabaseTables:
getAppServer:
============================================================
Sun Java System Mobile Enterprise Platform
============================================================
checkAppServer:
defaultDomainExists:
checkDefaultDomain:
Found "domain1", do you want to delete it? [y/n]
y
shouldDeleteDefaultDomain:
deleteDefaultDomain:
The domain (domain1) isn't running.
Domain domain1 deleted.
setup:
getDomainProperties:
Enter the name for the new Application Server domain (default: mep)
mep
Enter the Admin Port for the new domain [mep] (default: 4848)
Enter the HTTP Port for the new domain [mep] (default: 8080)
Enter the HTTPS Port for the new domain [mep] (default: 8181)
Enter the admin password for the new domain (default: adminpass)
remoba123
installGateway:
init:
getDomainProperties:
createDomain:
Using port 4848 for Admin.
Using port 8080 for HTTP Instance.
Using default port 7676 for JMS.
Using default port 3700 for IIOP.
Using default port 8181 for HTTP_SSL.
Using default port 3820 for IIOP_SSL.
Using default port 3920 for IIOP_MUTUALAUTH.
Using default port 8686 for JMX_ADMIN.
Domain being created with profile:developer, as specified by variable AS_ADMIN_P
ROFILE in configuration file.
Security Store uses: JKS
Domain mep created.
startDomain:
Attempting to start domain...
Waiting for domain to finish initializing
Waiting for status to be: mep running
init:
configureDomain:
Copying files to installation directory ...
Copying 53 files to F:\Sun\AppServer\domains\mep\ds
Copying 101 files to F:\Sun\AppServer\domains\mep\lib
Copying 1 file to F:\Sun\AppServer\domains\mep\lib
Copying 1 file to F:\Sun\AppServer\domains\mep\lib
Copying 1 file to F:\Sun\AppServer\domains\mep\lib
Copying 1 file to F:\Sun\AppServer\domains\mep\lib\classes\META-INF
init:
copyOracleJar:
Copying 1 file to F:\Sun\AppServer\domains\mep\lib\ext
Copying 1 file to F:\Sun\AppServer\domains\mep\lib\ext
server.java-config.classpath-suffix = F:\Sun\AppServer/domains/mep/ds/skin/user/
messages/i18n;F:\Sun\AppServer/domains/mep/ds/skin/admin/messages/i18n
Command create-jvm-options executed successfully.
Command create-jvm-options executed successfully.
Command create-jvm-options executed successfully.
Command create-jvm-options executed successfully.
Command create-jvm-options executed successfully.
Command create-jvm-options executed successfully.
Command create-jms-resource executed successfully.
Command create-jmsdest executed successfully.
Command create-jms-resource executed successfully.
configure:
configureMySQL:
configureOracle:
Command create-jdbc-connection-pool executed successfully.
Command create-jdbc-connection-pool executed successfully.
server.resources.jdbc-connection-pool.musicdb_jdbc_pool_oracle.match-connections
= true
configureRealm:
Command create-jdbc-resource executed successfully.
Command create-jdbc-resource executed successfully.
Command create-auth-realm executed successfully.
deployEAR:
stopDomain:
Domain mep stopped.
startDomain:
Attempting to start domain...
Waiting for domain to finish initializing
Waiting for status to be: mep running
Still waiting for status to be: mep running
Command deploy executed successfully with following warning messages: WARNING:
JDO76611: Cannot connect to database via JNDI name 'jdbc/gw': java.sql.SQLExcept
ion: Connection could not be allocated because: ORA-01017: invalid username/pass
word; logon denied.
installJCAconnectors:
stopDomain:
Domain mep stopped.
Aug 22, 2008 8:22:55 PM com.sun.jbi.installer.JBICoreInstaller main
INFO: OpenESB JBI Core Components successfully installed in F:\Sun\AppServer\jbiThe error suggests that the oracle gwdb database was incorrectly created with the wrong username and password for the database. The installation expects the gwdb database to be created with the username of "gwdbuser" and password of "gwdbpass". I would check the login credentials for this database. Also the installation expects the musicdb database to be created with the username of "musicdbuser" and password "musicdbpass". You may want to check this as well.
JDO76611: Cannot connect to database via JNDI name 'jdbc/gw': java.sql.SQLExcept
ion: Connection could not be allocated because: ORA-01017: invalid username/pass
word; logon denied.
Alan Frechette
Sun MEP SQA Engineer -
How to find the number of executions of a sql oracle 10g
Is there any script handy which is useful to get the number of executions of a sql in particualr time in a rac environment.
A lot depends on what time period you're trying to count the executions over...
In V$SQL, there is a column EXECUTIONS that will count the number of executions since the SQL statement was loaded into the shared pool, which may be too long a period or too short a period for your question.
If you are trying to get historical information and you have licensed the performance & tuning pack so that you can get the AWR, you could query the DBA_HIST_SQLSTAT table over an appropriate set of SNAP_ID's to get the totals for an arbitrary period of time.
Justin -
Write an UPdate statement using the logic used in PL/SQL block (oracle 10g)
Hi All,
I have written the following PL/SQL block. I want to write an UPDATE statement using the logic used in the following PL/SQL block. can any one please help me out in this regards.
DECLARE
v_hoov_fag gor_gold_post.hoov_flg%TYPE;
v_b49n gor_gold_post.b49n%TYPE;
CURSOR c
IS
SELECT bs_id, loyalty_date, loyalty_period, contract_date
FROM gor_gold_post
WHERE tariff_code IN (169, 135, 136);
BEGIN
FOR rec IN c
LOOP
IF (TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period)
- SYSDATE) < 304
OR ( TRUNC ( ADD_MONTHS (rec.loyalty_date, rec.loyalty_period)
- SYSDATE
) IS NULL
AND (SYSDATE - TO_DATE (rec.contract_date, 'YYYYMMDD')) > 91.2
THEN
v_hoov_flg := 1;
ELSE
v_hoover_flag := 99;
END IF;
IF (TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period)
- SYSDATE) < 121.6
OR ( TRUNC ( ADD_MONTHS (rec.loyalty_date, rec.loyalty_period)
- SYSDATE
) IS NULL
AND (SYSDATE - TO_DATE (rec.contract_date, 'YYYYMMDD')) > 91.2
THEN
v_b49n := 1;
ELSE
v_b49n := 99;
END IF;
UPDATE gor_gold_post
SET hoov_flg = v_hoov_flg,
b49n = v_b49n
WHERE bs_id = rec.bs_id AND tariff_code IN (169, 135, 136);
COMMIT;
END LOOP;
END;Thank you,Using case statement.
UPDATE gor_gold_post
SET hoov_flag = CASE WHEN TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period) - SYSDATE) < 304
OR
(TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period) - SYSDATE) IS NULL
AND (SYSDATE - TO_DATE (rec.contract_date, 'YYYYMMDD')) > 91.2)
THEN 1
ELSE 99
END,
b49n = CASE WHEN TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period) - SYSDATE) < 121.6
OR
(TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period) - SYSDATE) IS NULL
AND (SYSDATE - TO_DATE (rec.contract_date, 'YYYYMMDD')) > 91.2)
THEN 1
ELSE 99
END
WHERE tariff_code IN (169, 135, 136);Note: Code not tested. -
Getting the ROWIDs of non-duplicate rows in Oracle 10g
Hi,
given a table TAB1 in which the primary key is composed of these first 3 columns:
================================================
colA____________colB_________________colC____________________colD
================================================
AA-----------------------01-----------------------20080101-----------------------100
BX-----------------------32-----------------------20050325-----------------------366
AA-----------------------01-----------------------20080102-----------------------645
AA-----------------------01-----------------------20080707-----------------------765
AB-----------------------02-----------------------20080806-----------------------336
AB-----------------------02-----------------------20080705-----------------------543
I wish to be able to find the ROWIDs of those rows where colA||colB occurs only once in the table TAB1.
So in the above example, I would want to know the ROWID of the row containing colA=BX and colB=32 as "BX32" occurs only once in this table (AA01 occurs 3 times, AB02 occurs twice so I'm not interested in them).
The following does work, but it is too SLOW:
select ROWID from TAB1 where colA||colB = (select colA||colB from TAB1 HAVING COUNT(*)=1)
Can anyone please suggest an efficient way to find this unique ROWID value in these circumstances?
Edited by: Nemesis on Nov 29, 2008 2:50 AMThank you Walter.
This does not give the desired result however. It compares the table, row by row with a 'mirror' of itself and says 'give me the rowid of the row where its mirror does not match itself' (correct me if I am wrong)
(Here I added the '=' to ' AND d.ROWID = d1.ROWID);'
SELECT D.rowid
FROM TAB1 D
WHERE NOT EXISTS (SELECT *
FROM TAB1 d1
WHERE d1.COLA = d.COLA
AND d1.COLB = d.COLB
AND d.ROWID = d1.ROWID);
So it returns nothing as all rows match their mirror rows.
However, it gave me the idea of doing the following:
SELECT D.ROWID FROM TAB1 D WHERE (SELECT COUNT(*) FROM TAB1 D1 WHERE X.colA = D.colA AND X.colB = D.colB )=1;
Which works, and seems a little faster than my original query, so thank you for this. -
What's the impact of rowid materialized view in oracle 10g
Hello to all ;
Oracle official docs saying
ROWID materialized views should be used only for materialized views based on master tables from an Oracle7 database, and should not be used from Oracle8 or higher.
For 10g or higher versions can we consider rowid materizlized view ?
product 10.2.0.4 and 11g r2 on Redhat 5.1No
should not be used from Oracle8 or higher10g is higher -
Cannot read the output from windows command.
Hello
I have the following classes
package cmd;
import java.io.IOException;
public class CMD {
public CMD(){
ProcessBuilder pb = new ProcessBuilder()
.command("cmd.exe","/c","del *.*")
.redirectErrorStream(false);
Process p;
try {
p = pb.start();
StreamGobbler errorGobbler = new StreamGobbler(p.getErrorStream(), "ERROR");
// any output?
StreamGobbler outputGobbler = new StreamGobbler(p.getInputStream(), "OUTPUT");
// start gobblers
outputGobbler.start();
errorGobbler.start();
} catch (IOException e) {
// TODO Auto-generated catch block
System.out.println("eee "+e.getMessage());;
public static void main(String[] args) {
System.out.println("x");
new CMD();
System.out.println("x");
and
package cmd;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
public class StreamGobbler extends Thread {
InputStream is;
String type;
StreamGobbler(InputStream is, String type) {
this.is = is;
this.type = type;
@Override
public void run() {
try {
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String line = null;
while ((line = br.readLine()) != null)
System.out.println(type + "> " + line);
catch (IOException ioe) {
ioe.printStackTrace();
Please note that I cannot seee the output from wndows command : del *.* and the java class execution does not finished.
I I will replace the above command with the dir command then the output of the command is visible.
Would you give me a hint about how to modify the above clases in order to parse the output of the del *.* ?
Please note that the above example is important because I am developping a tool and it is mandatory for that tool to parse the output from a windows batch command.
Best regards,Please note that I cannot seee the output from wndows command : del *.* and the java class execution does not finished.
I I will replace the above command with the dir command then the output of the command is visible.
Would you give me a hint about how to modify the above clases in order to parse the output of the del *.* ?
No - but I will give you a hint about ProcessBuilder and how to develop software properly.
Hint #1: Don't try to automate something that you don't know, or understand, how to do manually.
a. Do you know how to execute 'del *.*' manually in a command window?
b. Did you try that manually to see what happens?
My guess is 'no'. If you had you would know that the response to a 'del *.*' command is going to be this:
Are you sure (Y/N)?
And your 'java class execution' doesn't finish because the 'del' command is waiting for you to answer that question.
Hint #2: Don't try to use ProcessBuilder for an application that requires console input unless you first know how to provide that console input via your Java code.
Your code will wait forever since it does NOT answer that question.
Search the net and The Java Tutorials and you can find examples of executing command line utilities. Then try those examples first and make sure that:
1. They work for you
2. You understand HOW they work
Then you can modify those examples to do what you want to do. -
How to see the wait events info. after excute a select query
Hi
How to see the wait events info. after execute a select query. Are there any parameter to set for this option?
And also wanna see the follwing info. in trace file. For this what are the parameters I have to set right?
SELECT * FROM emp, dept
WHERE emp.deptno = dept.deptno;
call count cpu elapsed disk query current rows
Parse 1 0.16 0.29 3 13 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.03 0.26 2 2 4 14
Misses in library cache during parse: 1
Parsing user id: (8) SCOTT Regards
Arpitha$ sqlplus scott/tiger
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Apr 20 15:29:33 2011
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> SHOW PARAMETER dump
NAME TYPE VALUE
background_core_dump string partial
background_dump_dest string /user/oracle/app/oracle/admin/
orclsb/bdump
core_dump_dest string /user/oracle/app/oracle/admin/
orclsb/cdump
max_dump_file_size string UNLIMITED
shadow_core_dump string partial
user_dump_dest string /user/oracle/app/oracle/admin/
orclsb/udump
SQL> ALTER SESSION SET EVENTS='10046 trace name context forever, level 12';
Session altered.
SQL> SELECT * FROM emp WHERE deptno=20;
EMPNO ENAME JOB MGR HIREDATE SAL COMM
DEPTNO
7369 SMITH CLERK 7902 17-DEC-80 800
20
7566 JONES MANAGER 7839 02-APR-81 2975
20
7788 SCOTT ANALYST 7566 19-APR-87 3000
20
EMPNO ENAME JOB MGR HIREDATE SAL COMM
DEPTNO
7876 ADAMS CLERK 7788 23-MAY-87 1100
20
7902 FORD ANALYST 7566 03-DEC-81 3000
20Now
$ pwd
/user/oracle/app/oracle/admin/orclsb/udump
$ ls -ltr|tail -5
-rw-r----- 1 oracle oinstall 622 Apr 20 11:35 orclsb_ora_949.trc
-rw-r----- 1 oracle oinstall 651 Apr 20 11:35 orclsb_ora_976.trc
-rw-r----- 1 oracle oinstall 1982 Apr 20 11:35 orclsb_ora_977.trc
-rw-r----- 1 oracle oinstall 1443 Apr 20 15:29 orclsb_ora_1251.trc
-rw-r----- 1 oracle oinstall 279719 Apr 20 15:30 orclsb_ora_1255.trc
$ tkprof orclsb_ora_1255.trc orclsb_ora_1255.txt
TKPROF: Release 10.2.0.2.0 - Production on Wed Apr 20 15:32:17 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
$ ls -ltr|tail -5
-rw-r----- 1 oracle oinstall 651 Apr 20 11:35 orclsb_ora_976.trc
-rw-r----- 1 oracle oinstall 1982 Apr 20 11:35 orclsb_ora_977.trc
-rw-r----- 1 oracle oinstall 1443 Apr 20 15:29 orclsb_ora_1251.trc
-rw-r----- 1 oracle oinstall 279719 Apr 20 15:30 orclsb_ora_1255.trc
-rw-r--r-- 1 oracle oinstall 26872 Apr 20 15:32 orclsb_ora_1255.txtThis orclsb_ora_1255.txt contains the required information.
Maybe you are looking for
-
HP Deskjet F2120 all in one printer driver not installing after upgrading to Windows 7
I have a HP Deskjet F2120 all in one printer. I was working fine in Windows Vista Home Premium 32 bit. Once I upgraded to Windows 7 Home Premium 32 bit the driver is failing to install. I have tried all the solutions provided on the HP website but no
-
Hello All, Kindlt tell me that i had repaired a bus in which some components have used & this is a company 's bus , but these comp.are not having there master record the no of comp are seven pl guide that how to make P.R will
-
Account Receivable posting methods
Hi; I am looking for various ways to post document for amount received from customer against Invoice and debit memo. Pl. let me know the various ways / transactions for account receivable referring the invoices and debit memos pending for receivables
-
Revision: 17708 Revision: 17708 Author: [email protected] Date: 2010-09-14 16:32:29 -0700 (Tue, 14 Sep 2010) Log Message: Fix FM-932: Scaling of parallel elements is not consistent. Ticket Links: http://bugs.adobe.com/jira/browse/FM-932 Mod
-
Sales order appear in Product view but not available in Livecache
Dear Gurus, We have an issue right now wherein there is a sales order with a certain line item that is consuming stock in ATP tab of product view but in Elements tab of the same material, the Sales Order is not seen. Because of this, some orders cann