Home Our Concept Services Products Shopping Cart Payment Options FAQ Privacy About Us Contact Us
 
Sitemap
You are here: Home > Tips and Tricks > Useful SQL commands

Useful SQL commands

SELECT * from table(dbms_xplan.display)

shows the execution plan captured using "EXPLAIN PLAN FOR ....;"

Spool filename with timestamp

set termout off
column c_filename new_value VAR_FILENAME
select 'any_logfile_name_' || to_char(sysdate,'YYYYMMDD_HH24MISS') c_filename from dual;
spool &&VAR_FILENAME
set trimspool on
select user from dual;
spool off

execute dbms_system.set_sql_trace_in_session(sid,serial,true);

v$cache
v$buffer_pool
v$bh
v$db_cache_advice
Bookmark this page with: | reddit reddit | delicious delicious | digg digg | furl furl | google google | yahoo yahoo | Technorati search Technorati search
Copyright © 2005-2007 Mercury Consulting Limited.