Skip to content

soliverr/oracle-tpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tanel's Oracle Troubleshooting Scripts
--------------------------------------

Here is scripts and tools used at Tanel's Oracle Troubleshooting seminars
 from  http://tech.e2sn.com/oracle-scripts-and-tools/

See also Tanel Poder's blog 
 http://blog.tanelpoder.com/2011/03/24/an-index-of-my-tpt-scripts/

1. Create directories for temporary files:
   mkdir -p ~/tpt/tmp

2. Set up environment:
   TPT_HOME = ~/tpt
   TPT_TEMP = $TPT_HOME/tmp
   export TPT_HOME TPT_TEMP

3. Unarchive sql-scripts to apropriate directory:
   tar zxvf http://files.e2sn.com/scripts/tpt_public_unixmac.tar.gz -C ~/tpt

4. Move executable script tpt_help.sh somewhere in you PATH
   cp ~/tpt/tpt_help ~/bin/tpt_help
   chmod +x ~/bin/tpt_help

5. Create you own $HOME/login.sql file:
   @tpt/login.sql
   --
   -- you can put your own login scripts here 
   --

6. Using sripts

   Now you can use scripts from Oracle SQL*Plus:

   username@servername:~$ sqlplus /nolog

   Copyright (c) 1982, 2005, Oracle.  All rights reserved.

   SQL> conn db_user/db_pwd@db

   Connected to:
   Oracle Database 10g Release ...

   SQL> @tpt/i

   USERNAME   INST_NAME    HOST_NAME    SID   SERIAL#  VERSION    STARTED  SPID     OPID  CPID     SADDR            PADDR
   ---------- ------------ ------------ ----- -------- ---------- -------- -------- ----- -------- ---------------- ----------------
   SYS        test         test.loc     1111  35813    10.2.0.2.0 20160819 7370     21    8986     0000000212C162B0 0000000217B3FA10

   SQL> !tpt_help [ --list | script_name ]
           --list      - list all available scripts with short descriptions
           script_name - get help for specific script

7. Project Home

   Project is hosted on GitHub https://github.com/soliverr/oracle-tpt
   and mirrored on SourceForge: http://sourceforge.net/projects/oracledba


  -- Sergey Kryazhevskikh <[email protected]>

About

Tanel Poder's Oracle Troubleshooting Scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published