Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle hangs while shutdown immediate
Anton Dischner <nospam_at_nospam.org> wrote in message news:<040620031030490269%nospam_at_nospam.org>...
> Hi,
> Vitaly:
>
> How do you do the 'dump state of all sessions' ?
>
I have few sql scripts that I call from a shell script. Here's partial shell script that calls them:
---------------- start -----------------------HOSTNAME=`hostname`
sqlplus /nolog <<EOF
connect / as sysdba
set lines 3000
set trims on
spool $FILE
select * from v\$instance;
select * from v\$process;
@$ORACLE_BASE/admin/scripts/sql/s_db_sorts.sql @$ORACLE_BASE/admin/scripts/sql/s_rbs.sql @$ORACLE_BASE/admin/scripts/sql/c_user_rbs.sql @$ORACLE_BASE/admin/scripts/sql/s_user_ses_cnt.sql @$ORACLE_BASE/admin/scripts/sql/c_user_ses_2.sqlspool off
---------------- end ----------------------
Make sure ORACLE_SID, ORACLE_BASE, ORACLE_HOME are set.
I uploaded scripts to my site:
http://www.dbatoolz.com/SCRIPT_17.HTM (s_db_sorts.sql) http://www.dbatoolz.com/SCRIPT_11.HTM (s_rbs.sql, c_user_rbs.sql) http://www.dbatoolz.com/SCRIPT_16.HTM (s_user_ses_cnt.sql,c_user_ses_2.sql)
Regards,
Vitaliy
DBAToolZ.com (free sql scripts + SQLDIR parser)
Aspeda.com (free Oracle monitoring tool)
Received on Wed Jun 04 2003 - 12:58:04 CDT
![]() |
![]() |