search
HomeDatabaseMysql TutorialNimbulainstance上进行orion测试遇到的错误一例

今天因为要在 nimbula 实例上测试 Oracle Database 12c DBaas 的 IO 性能,因为 nimbula 实例不方便安装 Oracle Database 软件,就从一台已经安装了该软件的机器上copy过来一个 Oracle Home 目录,但是无论怎么设置环境变量,始终都报如下错误: export ORAC

今天因为要在 nimbula 实例上测试 Oracle Database 12c DBaas 的 IO 性能,因为 nimbula 实例不方便安装 Oracle Database 软件,就从一台已经安装了该软件的机器上copy过来一个 Oracle Home 目录,但是无论怎么设置环境变量,始终都报如下错误:

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:/lib:/usr/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
 

在 nimbula 实例上查找 libaio.so.1 发现在拷贝的 Oracle Home 目录下,也确实存在该目录,只是没有添加到 LD_LIBRARY_PATH 中,将该路径加入变量中后

/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:/lib:/usr/lib:/usr/local/lib:/u01/app/oracle/product/12.1.0/dbhome_1/lib/stubs:$LD_LIBRARY_PATH

可是在执行 orion 测试命令时又遇到另一个错误,提示 stubs 下的 lib 只是一个 link ,这个路径不应包含在 LD_LIBRARY_PATH 中。

于是又将该路径从变量中移除。感觉此问题可能和这里的 Oracle Home 是从其他机器拷贝而来有关。对比一下原机器和现有 nimbula 实例发现。

在 google 搜索到一个很有用的link对解决此问题有很大帮助:http://www.pipperr.de/dokuwiki/doku.php?id=dba:oracle_io_last_werkzeug_orion

在 nimbula 实例上进入 orion 所在路径然后执行 ldd 命令查看 orion 所调用的模块发现缺少两个 libaio.so1 包,而前面的find命令已经在Oracle Home/lib下已经找到该

lib包,这里只有一种可能这里所缺的libaio.so.1和上面的其他的lib包一样,可能只是一个link指向 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

在拷贝 Oracle Home 的源主机上发现,果然是 nimbula 实例缺少相应的包。

-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)

这下终于知道原因了,尝试将源主机上的 /usr/lib64/libaio.so.1 和 /usr/lib/libaio.so.1 拷贝到 nimbula 实例上对应的目录问题立即解决。

转载请注明作者出处及原文链接,否则将追究法律责任:

作者:xiangsir

原文链接:http://blog.csdn.net/xiangsir/article/details/18262689

QQ:444367417

MSN:xiangsir@hotmail.com

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What Are the Limitations of Using Views in MySQL?What Are the Limitations of Using Views in MySQL?May 14, 2025 am 12:10 AM

MySQLviewshavelimitations:1)Theydon'tsupportallSQLoperations,restrictingdatamanipulationthroughviewswithjoinsorsubqueries.2)Theycanimpactperformance,especiallywithcomplexqueriesorlargedatasets.3)Viewsdon'tstoredata,potentiallyleadingtooutdatedinforma

Securing Your MySQL Database: Adding Users and Granting PrivilegesSecuring Your MySQL Database: Adding Users and Granting PrivilegesMay 14, 2025 am 12:09 AM

ProperusermanagementinMySQLiscrucialforenhancingsecurityandensuringefficientdatabaseoperation.1)UseCREATEUSERtoaddusers,specifyingconnectionsourcewith@'localhost'or@'%'.2)GrantspecificprivilegeswithGRANT,usingleastprivilegeprincipletominimizerisks.3)

What Factors Influence the Number of Triggers I Can Use in MySQL?What Factors Influence the Number of Triggers I Can Use in MySQL?May 14, 2025 am 12:08 AM

MySQLdoesn'timposeahardlimitontriggers,butpracticalfactorsdeterminetheireffectiveuse:1)Serverconfigurationimpactstriggermanagement;2)Complextriggersincreasesystemload;3)Largertablesslowtriggerperformance;4)Highconcurrencycancausetriggercontention;5)M

MySQL: Is it safe to store BLOB?MySQL: Is it safe to store BLOB?May 14, 2025 am 12:07 AM

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

MySQL: Adding a user through a PHP web interfaceMySQL: Adding a user through a PHP web interfaceMay 14, 2025 am 12:04 AM

Adding MySQL users through the PHP web interface can use MySQLi extensions. The steps are as follows: 1. Connect to the MySQL database and use the MySQLi extension. 2. Create a user, use the CREATEUSER statement, and use the PASSWORD() function to encrypt the password. 3. Prevent SQL injection and use the mysqli_real_escape_string() function to process user input. 4. Assign permissions to new users and use the GRANT statement.

MySQL: BLOB and other no-sql storage, what are the differences?MySQL: BLOB and other no-sql storage, what are the differences?May 13, 2025 am 12:14 AM

MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

MySQL Add User: Syntax, Options, and Security Best PracticesMySQL Add User: Syntax, Options, and Security Best PracticesMay 13, 2025 am 12:12 AM

ToaddauserinMySQL,use:CREATEUSER'username'@'host'IDENTIFIEDBY'password';Here'showtodoitsecurely:1)Choosethehostcarefullytocontrolaccess.2)SetresourcelimitswithoptionslikeMAX_QUERIES_PER_HOUR.3)Usestrong,uniquepasswords.4)EnforceSSL/TLSconnectionswith

MySQL: How to avoid String Data Types common mistakes?MySQL: How to avoid String Data Types common mistakes?May 13, 2025 am 12:09 AM

ToavoidcommonmistakeswithstringdatatypesinMySQL,understandstringtypenuances,choosetherighttype,andmanageencodingandcollationsettingseffectively.1)UseCHARforfixed-lengthstrings,VARCHARforvariable-length,andTEXT/BLOBforlargerdata.2)Setcorrectcharacters

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),