Tuesday, June 3, 2014

How to use the slibclean utility on AIX to clean up unused modules in memory

On AIX, oracle will leave links to library usage in memory.

This can prevent you from for example applying a patch using opatch.
To clean up, use the slibclean utility, as demonstrated below:

First, check for unused links by using the genld and genkld utilities:
root@myserver> genld -l | grep /u01/oracle/product/11204
root@myserver> genkld | grep /u01/oracle/product/11204
Output will be similar to the following:
900000002fb6000    141a3 /u01/oracle/product/11204/lib/libdbcfg11.so
900000002f9e000    17eb6 /u01/oracle/product/11204/lib/libclsra11.so
9000000036f6000   20ef63 /u01/oracle/product/11204/lib/libocrb11.so
900000002efd000    a0f25 /u01/oracle/product/11204/lib/libocr11.so
900000003055000   6a0dc1 /u01/oracle/product/11204/lib/libhasgen11.so
900000002dcf000     cb95 /u01/oracle/product/11204/lib/libocrutl11.so
900000002dcd000     1d7d /u01/oracle/product/11204/lib/libskgxn2.so
900000010ba7000  2ddd1de /u01/oracle/product/11204/lib/libttsh11.so
900000002a64000    1701f /u01/oracle/product/11204/lib/libons.so
900000002a7c000   3508c9 /u01/oracle/product/11204/lib/libnnz11.so
90000000cb99000  400d9b5 /u01/oracle/product/11204/lib/libolapapi11.so
900000002173000     c05e /u01/oracle/product/11204/lib/libcorejava.so
90000000211d000    5597d /u01/oracle/product/11204/lib/libxdb.so
900000002007000     125f /u01/oracle/product/11204/lib/libodm11.so
900000001f37000    cf4de /u01/oracle/product/11204/lib/libskgxp11.so
Then clean up:
root@myserver> slibclean
Links are now gone:
root@myserver> genkld | grep /u01/oracle/product/11204
root@myserver>

No comments:

Post a Comment