1. Solve directory Problems
[Ora @ rac1-21 bin] $ srvctl
/U01/Oracle/product/10.2.0/db_1/jdk/jre/bin/java: error while loading shared libraries: libpthread. so.0: cannot open shared object file: No such file or directory
[Ora @ rac1-21 bin] $ which srvctl
/U01/oracle/product/10.2.0/db_1/bin/srvctl
[Ora @ rac1-21 bin] $ echo $ PATH
/U01/oracle/product/10.2.0/db_1/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin: /home/ora/bin:/u01/oracle/product/10.2.0/crs_1/bin
In fact, srvctl should be in the/u01/oracle/product/10.2.0/crs_1/bin directory. But because we ~ /. Bash_profile PATH sequence problem. So I modified it.
Export PATH =. :$ {PATH }:$ HOME/bin: $ ORA_CRS_HOME/bin: $ ORACLE_HOME/bin
Here we are also prompted that the PATH has a better order.
2. Solve bugs
Continue to use srvctl or report an error. Think about the unset added before vipca. Here, we need to edit the srvctl comment.
# Remove this workaround when the bug 3937317 is fixed
# LD_ASSUME_KERNEL = 2.4.19
# Export LD_ASSUME_KERNEL
[Ora @ rac2-22 ~] $ Srvctl -- help
Usage: srvctl []
Command: enable | disable | start | stop | relocate | status | add | remove | modify | getenv | setenv | unsetenv | config
Object: database | instance | service | nodeapps | asm | listener
For detailed help on various commands and objects, use:
Srvctl-h