sqlt
點選(此處)摺疊或開啟
-
[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
點選(此處)摺疊或開啟
-
[oracle@test install]$ sqlplus / as sysdba
-
-
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Feb 5 03:54:30 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
-
-
03:54:30 SQL> @sqcreate
-
-
zip error: Nothing to (SQLT_installation_logs_archive.zip)
-
-
zip error: Nothing to (SQLT_installation_logs_archive.zip)
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.00
-
-
Specify optional Connect Identifier (as per Oracle Net)
-
Include "@" symbol, ie. @PROD
-
If not applicable, enter nothing and hit the "Enter" key.
-
You *MUST* provide a connect identifier when installing
-
SQLT in a Pluggable Database in 12c
-
This connect identifier is only used while exporting SQLT
-
repository everytime you execute one of the main methods.
-
-
Optional Connect Identifier (ie: @PROD): @TestDB12
-
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.00
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.02
-
-
Define SQLTXPLAIN password (hidden and case sensitive).
-
-
-
-
Elapsed: 00:00:00.05
-
-
Password for user SQLTXPLAIN:
-
Re-enter password:
-
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.01
-
... please wait
-
-
TABLESPACE FREE_SPACE_MB
-
------------------------------ -------------
-
TEST 30125
-
EXAMPLE 32700
-
USERS 32734
-
-
Elapsed: 00:00:00.49
-
-
Specify PERMANENT tablespace to be used by SQLTXPLAIN.
-
-
Tablespace name is case sensitive.
-
-
Default tablespace [USERS]:
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.04
-
... please wait
-
-
TABLESPACE
-
------------------------------
-
TEMP001
-
-
Elapsed: 00:00:00.01
-
-
Specify TEMPORARY tablespace to be used by SQLTXPLAIN.
-
-
Tablespace name is case sensitive.
-
-
Temporary tablespace [TEMP001]:
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.01
-
-
The main application user of SQLT is the schema
-
owner that issued the SQL to be analyzed.
-
For example, on an EBS application you would
-
enter APPS.
-
You will not be asked to enter its password.
-
To add more SQLT users after this installation
-
is completed simply grant them the SQLT_USER_ROLE
-
role.
-
-
Main application user of SQLT:
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.00
-
-
SQLT can make extensive use of licensed features
-
provided by the Oracle Diagnostic and the Oracle
-
Tuning Packs, including SQL Tuning Advisor (STA),
-
SQL Monitoring and Automatic Workload Repository
-
(AWR).
-
To enable or disable access to these features
-
from the SQLT tool enter one of the following
-
values when asked:
-
-
\"T\" if you have license for Diagnostic and Tuning
-
\"D\" if you have license only for Oracle Diagnostic
-
\"N\" if you do not have these two licenses
-
-
Oracle Pack license [T]:
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.00
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.00
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.00
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.00
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.01
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.00
-
-
PL/SQL procedure successfully completed.
-
-
Elapsed: 00:00:00.01
-
- PL/SQL procedure successfully completed.
點選(此處)摺疊或開啟
-
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部落格 ” ,連結:http://blog.itpub.net/29990276/viewspace-1431181/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SQLT 使用指南SQL
- SQLT 安裝部署SQL
- SQLT 概要和安裝SQL
- SQLT安裝使用說明SQL
- 優化sql的利器SQLT優化SQL
- Oracle工具(Oracle Tools) – SQLT(SQLTXPLAIN)OracleSQLAI
- sql最佳化工具SQLTSQL
- oracle sqlt(sqltxplain) 診斷工具OracleSQLAI
- 最佳化sql的利器SQLTSQL
- sql最佳化工具之--sqlTSQL
- SQLT Diagnostic Tool (Doc ID 215187.1)SQL
- Oracle SQLT 診斷SQL語句效能(3)OracleSQL
- Oracle SQLT 診斷SQL語句效能(2)OracleSQL
- Oracle SQLT 診斷SQL語句效能(1)OracleSQL
- 使用SQLT來構建Oracle測試用例SQLOracle
- SQLT (SQLTXPLAIN) - Tool that helps to diagnose a SQL statement [ID 215187.1]SQLAI
- SQLT 最佳化SQL 用複合索引代替單列索引的案例SQL索引