sqlplus
or sqlplus64
tools are used to connect and manage Oracle Databases. sqlplus64
is 64 bit version of the sqlplus
. After installating these tools successfully when we try to run sqlplus
command we may get an shared object file or library error.
sqlplus
或sqlplus64
工具用于连接和管理Oracle数据库。 sqlplus64
是sqlplus
64位版本。 在我们尝试运行sqlplus
命令成功安装了这些工具之后,我们可能会收到共享的目标文件或库错误。
sqlplus共享库错误 (sqlplus Shared Library Error)
sqlplus
command shared library error full definition is like below. Keep in mind that for 64 bit version it will be sqlplus64
sqlplus
命令共享库错误的完整定义如下所示。 请记住,对于64位版本,它将是sqlplus64
sqlplus: error while loading shared libraries: libsqlplus.so: cannot
open shared object file: No such file or directory
列印LD_LIBRARY_PATH(Print LD_LIBRARY_PATH)
We can understand that shared library libsqlplus.so
can not be found in the defined library path. Library path is stored in bash environment variable LD_LIBRARY_PATH
. So first we will check this environment variable.
我们可以理解,在定义的库路径中找不到共享库libsqlplus.so
。 库路径存储在bash环境变量LD_LIBRARY_PATH
。 因此,首先我们将检查此环境变量。
$ echo $LD_LIBRARY_PATH