脚本:监控当前活动的语句
$more get_active_sql.shsqlplus -s /nolog <<EOFconnect user/passset serveroutput on size 1000000 set lines 200set pages 1000set feedback offcolumn username format a72 word_wrappedcolumn program format ...
查看oracle系统的运行时间
select to_char(startup_time,'DD-MON-YYYY HH24:MI:SS') started_at,TRUNC(sysdate - (startup_time))||'day(s),'||TRUNC(24*((sysdate-startup_time) -TRUNC(sysdate-startup_time)))||'hour(s),'||MOD(TRUNC(1440...
【转】临时表空间使用情况
表空间使用情况可以通过dba_data_files和dba_free_space两个视图获得,但这样却无法查看temp表空间的使用情况,这也是一般dba存在的疑问。我们可以通过DBA_TEMP_FILES和V$SORT_USAGE获得临时段相关的信息,需要注意...