Rac command srvctl Error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.