At one of the client I wasn't able to use sar for oracle and grid user for performance monitoring and with help of System admin we fixed the issue and below is the solution and workaround for it.
Problem statement:
oracle@TESTDB02:[/home/oracle]$sar 1 10
sar: The file access permissions do not allow the specified action.
Solution:
root@TESTDB02:[/var/adm/sa]#cd /usr/lib/sa
root@TESTDB02:[/usr/lib/sa]#ls -lrt
total 72
-r-xr-x--- 1 bin adm 1106 Jun 01 2015 sa2
-r-xr-x--- 1 bin adm 1033 Jun 01 2015 sa1
-r-sr-x--- 1 root adm 25576 Oct 14 21:57 sadc
root@TESTDB02:[/usr/lib/sa]#chmod o+x /usr/lib/sa/sadc
root@TESTDB02:[/usr/lib/sa]#ls -lrt
total 72
-r-xr-x--- 1 bin adm 1106 Jun 01 2015 sa2
-r-xr-x--- 1 bin adm 1033 Jun 01 2015 sa1
-r-sr-x--x 1 root adm 25576 Oct 14 21:57 sadc
root@TESTDB02:[/usr/lib/sa]#su - oracle
oracle@TESTDB02:[/home/oracle]$ls -lrt
total 8
-rw-r--r-- 1 oracle oinstall 0 Feb 03 13:35 smit.script
-rw-r--r-- 1 oracle oinstall 0 Feb 03 13:35 smit.transaction
-rw-r--r-- 1 oracle oinstall 197 Feb 03 13:35 smit.log
oracle@TESTDB02:[/home/oracle]$sar 1 10
AIX TESTDB02 2 7 00C6C7004B00 02/03/20
System configuration: lcpu=32 ent=2.00 mode=Uncapped
14:07:22 %usr %sys %wio %idle physc %entc
14:07:23 1 1 0 98 0.16 8.2
14:07:24 2 1 0 98 0.18 9.2
14:07:25 2 2 0 96 0.30 15.1
Optionally you can use alternative to sar for AIX which is lparstat command without rustling with any permission or ownership issue:
oracle@TESTDB02:[/home/oracle]$lparstat 1 10
System configuration: type=Shared mode=Uncapped smt=8 lcpu=32 mem=102400MB psize=10 ent=2.00
%user %sys %wait %idle physc %entc lbusy app vcsw phint %nsp %utcyc
----- ----- ------ ------ ----- ----- ------ --- ----- ----- ----- ------
2.0 1.0 0.3 96.7 0.20 9.9 0.6 9.31 2480 0 150 33.19
1.5 0.7 0.1 97.7 0.19 9.4 0.3 9.44 2324 0 150 33.24
2.5 1.3 0.1 96.2 0.27 13.5 0.8 9.40 2315 0 150 33.21
2.2 0.9 0.0 96.8 0.21 10.4 0.5 9.36 2363 0 149 33.11
7.3 2.7 0.1 89.9 0.68 34.1 2.2 8.95 3103 0 150 33.14
2.7 1.6 0.1 95.6 0.31 15.5 0.8 9.37 2526 0 150 33.19
1.6 0.7 0.0 97.7 0.17 8.7 0.6 9.42 2472 0 150 33.22
1.5 0.7 0.0 97.8 0.17 8.6 0.5 9.50 2416 0 150 33.22
2.6 1.3 0.0 96.1 0.27 13.7 0.7 9.32 2506 0 150 33.12
1.6 1.8 0.0 96.6 0.26 13.0 0.6 9.28 3419 0 150 33.16
Problem statement:
oracle@TESTDB02:[/home/oracle]$sar 1 10
sar: The file access permissions do not allow the specified action.
Solution:
root@TESTDB02:[/var/adm/sa]#cd /usr/lib/sa
root@TESTDB02:[/usr/lib/sa]#ls -lrt
total 72
-r-xr-x--- 1 bin adm 1106 Jun 01 2015 sa2
-r-xr-x--- 1 bin adm 1033 Jun 01 2015 sa1
-r-sr-x--- 1 root adm 25576 Oct 14 21:57 sadc
root@TESTDB02:[/usr/lib/sa]#chmod o+x /usr/lib/sa/sadc
root@TESTDB02:[/usr/lib/sa]#ls -lrt
total 72
-r-xr-x--- 1 bin adm 1106 Jun 01 2015 sa2
-r-xr-x--- 1 bin adm 1033 Jun 01 2015 sa1
-r-sr-x--x 1 root adm 25576 Oct 14 21:57 sadc
root@TESTDB02:[/usr/lib/sa]#su - oracle
oracle@TESTDB02:[/home/oracle]$ls -lrt
total 8
-rw-r--r-- 1 oracle oinstall 0 Feb 03 13:35 smit.script
-rw-r--r-- 1 oracle oinstall 0 Feb 03 13:35 smit.transaction
-rw-r--r-- 1 oracle oinstall 197 Feb 03 13:35 smit.log
oracle@TESTDB02:[/home/oracle]$sar 1 10
AIX TESTDB02 2 7 00C6C7004B00 02/03/20
System configuration: lcpu=32 ent=2.00 mode=Uncapped
14:07:22 %usr %sys %wio %idle physc %entc
14:07:23 1 1 0 98 0.16 8.2
14:07:24 2 1 0 98 0.18 9.2
14:07:25 2 2 0 96 0.30 15.1
Optionally you can use alternative to sar for AIX which is lparstat command without rustling with any permission or ownership issue:
oracle@TESTDB02:[/home/oracle]$lparstat 1 10
System configuration: type=Shared mode=Uncapped smt=8 lcpu=32 mem=102400MB psize=10 ent=2.00
%user %sys %wait %idle physc %entc lbusy app vcsw phint %nsp %utcyc
----- ----- ------ ------ ----- ----- ------ --- ----- ----- ----- ------
2.0 1.0 0.3 96.7 0.20 9.9 0.6 9.31 2480 0 150 33.19
1.5 0.7 0.1 97.7 0.19 9.4 0.3 9.44 2324 0 150 33.24
2.5 1.3 0.1 96.2 0.27 13.5 0.8 9.40 2315 0 150 33.21
2.2 0.9 0.0 96.8 0.21 10.4 0.5 9.36 2363 0 149 33.11
7.3 2.7 0.1 89.9 0.68 34.1 2.2 8.95 3103 0 150 33.14
2.7 1.6 0.1 95.6 0.31 15.5 0.8 9.37 2526 0 150 33.19
1.6 0.7 0.0 97.7 0.17 8.7 0.6 9.42 2472 0 150 33.22
1.5 0.7 0.0 97.8 0.17 8.6 0.5 9.50 2416 0 150 33.22
2.6 1.3 0.0 96.1 0.27 13.7 0.7 9.32 2506 0 150 33.12
1.6 1.8 0.0 96.6 0.26 13.0 0.6 9.28 3419 0 150 33.16
No comments:
Post a Comment