As you probably already know, the Session Snapper has been designed to be a very easy-to-use performance tool. It is especially useful in database environments where there are no decent performance tools pre-installed and available.
Snapper doesn’t require any setup, all you need is to log on to the database using sqlplus and download snapper.sql script to your computer.
Well, actually the second part is not required, as Oracle sqlplus allows you to run scripts from http and ftp locations!
C:>sqlplus "sys/oracle@ora92 as sysdba"
SQL*Plus: Release 10.2.0.3.0 - Production on Thu Aug 30 23:00:10 2007
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
SQL> @http://www.tanelpoder.com/files/scripts/whoami.sql
Tanel's sqlplus http test...
http://www.tanelpoder.com/files/scripts/whoami.sql
USER SYSDATE
------------------------------ ---------
SYS 30-AUG-07
NAME
---------
ORA92
INSTANCE_NAME HOST_NAME
---------------- ----------------------------------------------------------------
ora92 WINDOWS01
You should be *very* sure that noone can change the scripts on the server without your knowing!!!
SQL>
Cool stuff or what? :)
Let’s see how this relates to everyday DBA life…



