Skip to content

Commit f27d916

Browse files
committed
Wed Feb 10 08:25:58 CST 2016
1 parent 1baaf45 commit f27d916

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
# Oracle_SQL_Scripts
22

3-
SQL Scripts Related to Oracle. Most of them work on 10g+ and some one 12c. There are some scripts that get information from Recovery Catalog as well.
3+
SQL Scripts Related to Oracle. Most of them work on 10g+ and some on 12c. There are some scripts that get information from Recovery Catalog as well, so you have to be connected to catalog.
44

5-
Please note some script have been taken from others who have opened sourced it (for example the more popular ones like snapper from Tanel and xplan_ash from Randolf) and some are my own. This is just a curated list that I have put together that I use from day to day.
5+
Please note some script have been taken from others who have opened sourced it (for example the more popular ones like snapper from Tanel and xplan_ash from Randolf, etc..) and some are my own. This is just a curated list that I have put together that I use from day to day.
66

7-
Due to the sheer number of scripts, it was hard for me to remember name of every single script to I created another script(help.sql) to keep track of all the other script.
7+
Due to the sheer number of scripts, it was hard for me to remember name of every single script so I created another script(help.sql) to keep track of all the other script.
88

99
Once logged into a database(10g+), you can run @help.sql as shown below. Here I am looking for anything(like statement) that has "sess" in the script name.
1010

1111
![alt text](screenshots/pic1.png "Sample run of help.sql file")
1212

1313
Quick description of what each column mean above.
14+
1415
MY SCRIPT NAME = obviously the script name itself
16+
1517
DESCRIPTION = short description of what the script is suppose to do
18+
1619
INPUT = any input required when running the script. In the above screen shot, if we were to run "perf_session_wait", we would need to pass in the session ID(SID)
1720

1821
Next example shows running help file and searching for anything that has "users" in the script name.
@@ -27,4 +30,4 @@ Next example shows running help file but we hit enter(no input) and that will sp
2730

2831
![alt text](screenshots/pic3.png "Sample run of help.sql file with no input")
2932

30-
Please note that the help.sql file is not being updated automatically, if we were to add a new script to this repo we will have to manually go in and update the help.sql file to put in the script name, description and if any input is required or not.
33+
Please note that the help.sql file is not being updated automatically, if we were to add a new script to this repo we will have to manually go in and update the help.sql file to put in the script name, description and if any input is required or not. I am sure that part can be automated as well.

0 commit comments

Comments
 (0)