Wednesday, September 26, 2018

sqltxplain

Customer is not able to provide SQLT plan for one of the TOP SQL (SQL ID:

884m1xz290pt3) possibly related to Projects Billing which Projects Dev can

look into it.

 

Running SQLT Into test Instance:

SQLT Usage Instructions installation (Doc ID 1614107.1)

How to Determine the SQL_ID for a SQL Statement (Doc ID 1627387.1)

 

# cd sqlt/install

# sqlplus / as sysdba

SQL> START sqdrop.sql

 

 

2.Execute installation script sqlt/install/sqcreate.sql connected as SYS.

# cd sqlt/install

# sqlplus / as sysdba

SQL> START sqcreate.sql

 

During the installation you will be asked to enter values for these parameters:

1.Optional Connect Identifier (mandatory when installing in a Pluggable Database)

 

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. Entering nothing is the most common setup.

The Connect Identifier is a mandatory parameter when installing SQLT in a Pluggable Database.

2.SQLTXPLAIN password.

 

Case sensitive in most systems.

3.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.

4.SQLTXPLAIN Temporary Tablespace.

 

Select from a list of available temporary tablespaces which one should be used by SQLTXPLAIN for volatile operations and objects.

5.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.

6.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.

 

# cd sqlt/run

# sqlplus apps

SQL> START sqltxtract.sql [SQL_ID]|[HASH_VALUE] [sqltxplain_password]

SQL> START sqltxtract.sql 0w6uydn50g8cx sqltxplain_password

SQL> START sqltxtract.sql 2524255098 sqltxplain_password

 

START sqltxtract.sql 884m1xz290pt3 SQLTXPLAIN

/home/oratest/sqlt/run

No comments:

Post a Comment

[ERROR]: The value of s_patch_service_name is not set correctly in atleast one of the context files.

[ERROR]: The value of s_patch_service_name is not set correctly in atleast one of the context files. I got the issue below wh...