How to install:
1. # cd sqlt/install
2. # sqlplus / as sysdba
3. SQL> START sqcreate.sql
During the installation you will be asked to enter values for these parameters:
- Optional Connect Identifier.
In some restricted-access systems you may need to specify a connect identifier like @PROD. If a connect identifier is not needed, enter nothing and just hit the "Enter" key.
- SQLTXPLAIN password.
Case sensitive in most systems.
- SQLTXPLAIN Default Tablespace.
Select from a list of available permanent tablespaces which one should be used by SQLTXPLAIN for the SQLT repository. It must have more than 50MB of free space.
- SQLTXPLAIN Temporary Tablespace.
Select from a list of available temporary tablespaces which one should be used by SQLTXPLAIN for volatile operations and objects.
- Optional Application User.
This is the user that issued the SQL statement to be analyzed. For example, if this were an EBS system specify APPS, on Siebel you would specify SIEBEL and on People Soft SYSADM. You won't be asked to enter the password for this user. You can add additional SQLT users after the tool is installed, by granting them role SQLT_USER_ROLE or by using provided script sqlt/install/sqguser.sql
- Licensed Oracle Pack. (T, D or N)
You can specify T for Oracle Tuning, D for Oracle Diagnostic or N for none. If T or D is selected, SQLT may include licensed content within the diagnostics files it produces. Default is T. If N is selected, SQLT installs with limited functionality.
XTRACT Method
Use this method if you know the SQL_ID or the HASH_VALUE of the SQL to be analyzed, else use XECUTE. The SQL_ID can be found on an AWR report, and the HASH_VALUE on any SQL Trace.
# cd sqlt/run# sqlplus appsSQL> START sqltxtract.sql [SQL_ID]|[HASH_VALUE]SQL> START sqltxtract.sql 0w6uydn50g8cxSQL> START sqltxtract.sql 2524255098XTRXEC Method
# cd sqlt/run# sqlplus appsSQL> START sqltxtrxec.sql [SQL_ID]|[HASH_VALUE]SQL> START sqltxtrxec.sql 0w6uydn50g8cxSQL> START sqltxtrxec.sql 2524255098XPLAIN Method
# cd sqlt# sqlplus appsSQL> START [path]sqltxplain.sql [path]filenameSQL> START run/sqltxplain.sql input/sample/sql1.sql
very Nice Information. I am quite impressed with the way and information delivered in this post.
ReplyDeleteI have also written an article about SQLT.
http://www.dbas-oracle.com/2013/06/Install-Use-SQL-Query-Performance-Troubleshooting-Tool-SQLT-SQLTXPLAIN-6-Steps.html