Search This Blog

Total Pageviews

Saturday 11 February 2012

Alternate command to top in solaris

 


 


Alternate command to top in  solaris 

solaris top command

top in solaris



prstat -a (in solaris) = top ( in Linux )


# prstat -a
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
3779 root 3228K 2696K cpu0 20 0 0:00:02 11% prstat/1
3769 root 6504K 3692K sleep 59 0 0:00:01 2.7% sshd/1
3775 root 1488K 940K sleep 59 0 0:00:00 1.5% sh/1
3767 oracle 3300K 2780K sleep 59 0 0:00:07 1.3% prstat/1
3768 root 4836K 2596K sleep 59 0 0:00:00 1.1% sshd/1
719 root 52M 32M sleep 59 0 0:00:55 0.9% Xorg/1
120 daemon 4336K 2144K sleep 59 0 0:00:01 0.8% kcfd/3
1618 root 119M 37M sleep 59 0 0:01:57 0.6% java/15
1484 root 64M 42M sleep 59 0 0:01:08 0.3% java/28
890 noaccess 168M 144M sleep 59 0 0:01:35 0.3% java/18
1582 root 69M 12M sleep 59 0 0:00:42 0.3% gnome-netstatus/1
1622 root 74M 13M sleep 59 0 0:00:11 0.2% gnome-terminal/2
1731 root 3988K 1516K sleep 59 0 0:00:00 0.1% sshd/1
433 root 2400K 1108K sleep 59 0 0:00:04 0.1% in.routed/1
1598 root 67M 9596K sleep 59 0 0:00:17 0.1% mixer_applet2/1
NPROC USERNAME SWAP RSS MEMORY TIME CPU
74 root 262M 281M 14% 0:07:36 20%
2 oracle 2012K 2392K 0.1% 0:00:08 1.3%
6 daemon 6584K 5816K 0.3% 0:00:01 0.8%
1 noaccess 162M 143M 7.1% 0:01:35 0.3%
1 smmsp 1540K 5796K 0.3% 0:00:01 0.0%
Total: 84 processes, 291 lwps, load averages: 0.46, 0.50, 1.02

ASMCMD-08102: no connection to ASM; command requires ASM to run

 

ASMCMD> lsdg

ASMCMD-08102: no connection to ASM; command requires ASM to run
+ASM variables are not set properly

set following parameter ...

export ORACLE_SID=+ASM
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid



[oracle@oel5u4-+ASM bin] echo $ORACLE_SID
+ASM


then connect asmcmd



ASMCMD> lsdg
State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
MOUNTED  NORMAL  N         512   4096  1048576      9216     5657              896            2380              0             N  DATA/
MOUNTED  EXTERN  N         512   4096  1048576      9216     8998                0            8998              0             N  FRA/
ASMCMD> 


search word ..
How to shutdown ASM
shutdown ASM



first shutdown the database .

then 
set following


[oracle@oel5u4-orcl ~] export ORACLE_SID=+ASM
[oracle@oel5u4-+ASM ~] export ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid
[oracle@oel5u4-+ASM ~] 
[oracle@oel5u4-+ASM ~] 
[oracle@oel5u4-+ASM ~] sqlplus / as sysasm

SQL*Plus: Release 11.2.0.1.0 Production on Sat Feb 11 18:39:09 2012

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Automatic Storage Management option


SQL> shutdown immediate 


Oracle DBA

anuj blog Archive