An error occurred when performing the orion test on Nimbulainstance

Source: Internet
Author: User
Today, I want to test the I/O performance of OracleDatabase12cDBaas on the nimbula instance. Because the nimbula instance is not convenient to install the OracleDatabase software, I copied an OracleHome directory from a machine where the software is already installed, however, no matter how environment variables are set, the following error is always reported: exportORAC

Today, I want to test the I/O performance of Oracle Database 12c DBaas ON THE nimbula instance, because it is inconvenient for the nimbula instance to install the Oracle Database software, copy an Oracle Home Directory from a machine where the software is already installed, but the following error is always reported no matter how environment variables are set: export ORAC

Today, I want to test the I/O performance of Oracle Database 12c DBaas ON THE nimbula instance, because it is inconvenient for the nimbula instance to install the Oracle Database software, copy an Oracle Home Directory from a machine with the software installed. However, the following error is always reported no matter how environment variables are set:

Export ORACLE_HOME =/u01/app/oracle/product/12.1.0/dbhome_1
Export PATH = $ ORACLE_HOME/bin: $ PATH
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/local/lib: $ LD_LIBRARY_PATH

-Bash-4.1 # orion
Orion: error while loading shared libraries: libaio. so.1: cannot open shared object file: No such file or directory

Search for libaio. so.1 on the nimbula instance and find that this directory exists in the copied Oracle Home Directory, but it is not added to LD_LIBRARY_PATH. After adding this path to the variable

/U01/app/oracle/product/12.1.0/dbhome_1/lib/stubs/libaio. so.1

Export ORACLE_HOME =/u01/app/oracle/product/12.1.0/dbhome_1
Export PATH = $ ORACLE_HOME/bin: $ PATH
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/local/lib:/u01/app/oracle/product/12.1.0/dbhome_1/lib/stubs: $ LD_LIBRARY_PATH

However, when executing the orion test command, another error occurs, prompting that the lib under stubs is only a link. This path should not be included in LD_LIBRARY_PATH.

Then, the path is removed from the variable. It seems that this problem may be related to Oracle Home copied from other machines. Compare the original machine with the existing nimbula instance.

Finding a useful link on google is helpful: http://www.pipperr.de/dokuwiki/doku.php? Id = dba: oracle_io_last_werkzeug_orion

Enter the orion path on the nimbula instance and run the ldd command to check whether the module called by orion has two libaio missing. so1 package, and the previous find command has been found in Oracle Home/lib

Lib package. Here there is only one possibility that the missing libaio. so.1 is the same as other lib packages above. It may be a link pointing to a file under Oracle Home/lib.

-Bash-4.1 # cd $ ORACLE_HOME/bin
-Bash-4.1 # ldd./orion
Linux-vdso.so.1 => (0x00007fffa5b96000)
Libclntsh. so.12.1 =>/u01/app/oracle/product/12.1.0/dbhome_1/lib/libclntsh. so.12.1 (0x00007fbe55d1e000)
Libclntshcore. so.12.1 =>/u01/app/oracle/product/12.1.0/dbhome_1/lib/libclntshcore. so.12.1 (0x00007fbe557cd000)
Libcell12.so =>/u01/app/oracle/product/12.1.0/dbhome_1/lib/libcell12.so (0x00007fbe55531000)
Libskgxp12.so =>/u01/app/oracle/product/12.1.0/dbhome_1/lib/libskgxp12.so (0x00007fbe55236000)
Libaio. so.1 => not found
Libdl. so.2 =>/lib64/libdl. so.2 (0x00007fbe5502d000)
Libm. so.6 =>/lib64/libm. so.6 (0x00007fbe54da9000)
Libpthread. so.0 =>/lib64/libpthread. so.0 (0x00007fbe54b8b000)
Libnsl. so.1 =>/lib64/libnsl. so.1 (0x00007fbe54972000)
Librt. so.1 =>/lib64/librt. so.1 (0x00007fbe5476a000)
Libc. so.6 =>/lib64/libc. so.6 (0x00007fbe543d6000)
/Lib64/ld-linux-x86-64.so.2 (0x00007fbe58a0e000)
Libnnz12.so =>/u01/app/oracle/product/12.1.0/dbhome_1/lib/libnnz12.so (0x00007fbe53cc0000)
Libons. so =>/u01/app/oracle/product/12.1.0/dbhome_1/lib/libons. so (0x00007fbe53a7c000)
Libaio. so.1 => not found
Libaio. so.1 => not found

On the source host that copied Oracle Home, it was found that the nimbula instance lacked the corresponding package.

-Bash-3.2 # hostname
Slcn06cn13
-Bash-3.2 # find/-name libaio. so.1
/Usr/lib64/libaio. so.1
/Usr/lib/libaio. so.1

-Bash-3.2 # cd/u01/app/oracle/product/12.1.0/dbhome_1/bin
-Bash-3.2 # ldd orion
Linux-vdso.so.1 => (0x00007fff043ff000)
Libclntsh. so.12.1 => not found
Libclntshcore. so.12.1 => not found
Libcell12.so => not found
Libskgxp12.so => not found
Libaio. so.1 =>/usr/lib64/libaio. so.1 (0x00007f08dd3fa000)
Libdl. so.2 =>/lib64/libdl. so.2 (0x000000363a800000)
Libm. so.6 =>/lib64/libm. so.6 (0x000000363a000000)
Libpthread. so.0 =>/lib64/libpthread. so.0 (0x000000363ac00000)
Libnsl. so.1 =>/lib64/libnsl. so.1 (0x000000363e000000)
Librt. so.1 =>/lib64/librt. so.1 (0x000000363b000000)
Libc. so.6 =>/lib64/libc. so.6 (0x0000003639c00000)
/Lib64/ld-linux-x86-64.so.2 (0x0000003639800000)

Now I finally know the reason. I tried to set/usr/lib64/libaio on the source host. so.1 and/usr/lib/libaio. so.1 copy to the corresponding directory on the nimbula instance to solve the problem immediately.

For reprinting, please indicate the author's source and original article links; otherwise, you will be held legally responsible:

Author: xiangsir

Link: http://blog.csdn.net/xiangsir/article/details/18262689

QQ: 444367417

MSN: xiangsir@hotmail.com

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.