Nimbulainstance上进行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

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



What do you think of furmark? 1. Set the "Run Mode" and "Display Mode" in the main interface, and also adjust the "Test Mode" and click the "Start" button. 2. After waiting for a while, you will see the test results, including various parameters of the graphics card. How is furmark qualified? 1. Use a furmark baking machine and check the results for about half an hour. It basically hovers around 85 degrees, with a peak value of 87 degrees and room temperature of 19 degrees. Large chassis, 5 chassis fan ports, two on the front, two on the top, and one on the rear, but only one fan is installed. All accessories are not overclocked. 2. Under normal circumstances, the normal temperature of the graphics card should be between "30-85℃". 3. Even in summer when the ambient temperature is too high, the normal temperature is "50-85℃

The "Inaction Test" of the new fantasy fairy MMORPG "Zhu Xian 2" will be launched on April 23. What kind of new fairy adventure story will happen in Zhu Xian Continent thousands of years after the original work? The Six Realm Immortal World, a full-time immortal academy, a free immortal life, and all kinds of fun in the immortal world are waiting for the immortal friends to explore in person! The "Wuwei Test" pre-download is now open. Fairy friends can go to the official website to download. You cannot log in to the game server before the server is launched. The activation code can be used after the pre-download and installation is completed. "Zhu Xian 2" "Inaction Test" opening hours: April 23 10:00 - May 6 23:59 The new fairy adventure chapter of the orthodox sequel to Zhu Xian "Zhu Xian 2" is based on the "Zhu Xian" novel as a blueprint. Based on the world view of the original work, the game background is set

Database testing skills in Golang Introduction: Database testing is a very important link when developing applications. Appropriate testing methods can help us discover potential problems and ensure the correctness of database operations. This article will introduce some common database testing techniques in Golang and provide corresponding code examples. 1. Testing using an in-memory database When writing database-related tests, we usually face a question: How to test without relying on an external database? Here we can use memory

How to use MTR to conduct reliability testing of MySQL database? Overview: MTR (MySQL Test Runner) is a testing tool officially provided by MySQL, which can help developers conduct functional and performance testing of MySQL databases. During the development process, in order to ensure the reliability and stability of the database, we often need to conduct various tests, and MTR provides a simple, convenient and reliable method to conduct these tests. Steps: Install MySQL test runner: First, you need to download it from the MySQL official website

"Operation Delta" will launch a large-scale PC test called "Codename: ZERO" today (March 7). Last weekend, this game held an offline flash mob experience event in Shanghai, and 17173 was also fortunate to be invited to participate. This test is only more than four months away from the last time, which makes us curious, what new highlights and surprises will "Operation Delta" bring in such a short period of time? More than four months ago, I experienced "Operation Delta" in an offline tasting session and the first beta version. At that time, the game only opened the "Dangerous Action" mode. However, Operation Delta was already impressive for its time. In the context of major manufacturers flocking to the mobile game market, such an FPS that is comparable to international standards

Overview of How to Use Selenium for Web Automation Testing: Web automation testing is a vital part of the modern software development process. Selenium is a powerful automated testing tool that can simulate user operations in a web browser and implement automated testing processes. This article will introduce how to use Selenium for web automation testing, and come with code examples to help readers get started quickly. Environment preparation Before starting, you need to install the Selenium library and web browser driver

Functional testing verifies function functionality through black-box and white-box testing, while code coverage measures the portion of code covered by test cases. Different languages (such as Python and Java) have different testing frameworks, coverage tools and features. Practical cases show how to use Python's Unittest and Coverage and Java's JUnit and JaCoCo for function testing and coverage evaluation.

Maven is an open source project management tool that is commonly used for tasks such as construction, dependency management, and document release of Java projects. When using Maven for project build, sometimes we want to ignore the testing phase when executing commands such as mvnpackage, which will improve the build speed in some cases, especially when a prototype or test environment needs to be built quickly. This article will detail how to ignore the testing phase in Maven, with specific code examples. Why you should ignore testing During project development, it is often
