-
[oracle@test install]$ ll sqcrea*
-
-rw-r--r-- 1 oracle oinstall 4771 Oct 31 02:00 sqcreate.sql
-
[oracle@test install]$ pwd
-
/home/oracle/sqlt/install
建立好了就能连了
-
04:51:08 SQL> conn SQLTXPLAIN/oracle
-
Connected.
-
04:51:18 SQL> select * from tab;
-
-
TNAME TABTYPE CLUSTERID
-
------------------------------ ------- ----------
-
04:16:24 SQL> select * from table(dbms_xplan.display_cursor(null,null));
-
-
PLAN_TABLE_OUTPUT
-
--------------------------------------------------------------------------------------------------------------------------
-
SQL_ID 1j2cqw0sxv467, child number 0
-
-------------------------------------
-
select a.id , b.ename, b.hiredate from c_lob a , empt b where a.id =
-
b.empno
-
-
Plan hash value: 646364930
-
-
------------------------------------------------------------------------
-
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
-
------------------------------------------------------------------------
-
| 0 | SELECT STATEMENT | | | | 73747 (100)| |
-
|* 1| HASH JOIN | | 14 | 476 | 73747 (1) | 00:14:45 |
-
| 2 | TABLE ACCESS FULL| EMPT | 14 | 406 | 3 (0) | 00:00:01 |
-
| 3 | TABLE ACCESS FULL| C_LOB | 1008K| 4922K| 73732 (1) | 00:14:45 |
-
------------------------------------------------------------------------
-
-
Predicate Information (identified by operation id):
-
---------------------------------------------------
-
-
1 - access("A"."ID"="B"."EMPNO")
-
-
Note
-
-----
-
- dynamic sampling used for this statement
-
oracle@test11g:/home/oracle/sqlt/run> pwd
-
/home/oracle/sqlt/run
-
-rw-r--r-- 1 oracle oinstall 4431 Oct 30 14:00 sqltxtract.sql + sql_id
这个不真正的跑只是将你的执行计划,信息拿出来。
-
[oracle@test run]$ sqlplus / as sysdba
-
-
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Feb 5 04:27:55 2015
-
-
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
-
-
-
Connected to:
-
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
-
With the Partitioning, OLAP, Data Mining and Real Application Testing options
-
-
04:27:56 SQL> @sqltxtract 1j2cqw0sxv467
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29990276/viewspace-1431181/
,如需转载,请注明出处,否则将追究法律责任。