{"id":664,"date":"2012-03-16T23:15:44","date_gmt":"2012-03-16T15:15:44","guid":{"rendered":"https:\/\/yangtingkun.net\/?p=664"},"modified":"2012-03-18T16:19:18","modified_gmt":"2012-03-18T08:19:18","slug":"oracle_home%e8%bf%81%e7%a7%bb%e5%90%8e%e9%9c%80%e8%a6%81%e8%ae%be%e7%bd%aeld_library_path%e7%8e%af%e5%a2%83%e5%8f%98%e9%87%8f","status":"publish","type":"post","link":"https:\/\/yangtingkun.net\/?p=664","title":{"rendered":"ORACLE_HOME\u8fc1\u79fb\u540e\u9700\u8981\u8bbe\u7f6eLD_LIBRARY_PATH\u73af\u5883\u53d8\u91cf"},"content":{"rendered":"<p>\u572810g\u4ee5\u540e\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u73af\u5883\u53d8\u91cf\u4e2d\u6ca1\u6709\u5fc5\u8981\u8bbe\u7f6eLD_LIBRARY_PATH\uff0c\u4f46\u662f\u4e00\u65e6\u5c06ORACLE_HOME\u8fc1\u79fb\u5230\u5176\u4ed6\u76ee\u5f55\uff0c\u5219\u73af\u5883\u53d8\u91cf\u4e2d\u8fd8\u9700\u8981\u6dfb\u52a0\u8fd9\u4e2a\u53d8\u91cf\u3002<br \/>\nLinux\u548cUnix\u652f\u6301TAR\u65b9\u5f0f\u8fc1\u79fbORACLE_HOME\uff0c\u5982\u679c\u6709\u9700\u8981\u5c06ORACLE_HOME\u653e\u5230\u5176\u4ed6\u8def\u5f84\u4e0b\uff0c\u90a3\u4e48\u4e00\u822c\u90fd\u4f1a\u4f7f\u7528tar\u7684\u65b9\u5f0f\u5c06\u6574\u4e2a\u8def\u5f84\u62f7\u8d1d\u5230\u76ee\u6807\u76ee\u5f55\u3002<br \/>\n\u4f46\u662f\u8fc1\u79fb\u540e\uff0c\u5982\u679c\u76f4\u63a5\u5c1d\u8bd5sqlplus\u542f\u52a8\uff0c\u53ef\u80fd\u62a5\u9519\uff1a<\/p>\n<pre lang='SQL'>[orat3@hpserver2 ~]$ sqlplus \/ as sysdba\r\nsqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory<\/pre>\n<p>\u800c\u8bbe\u7f6eLD_LIBRARY_PATH\u540e\uff0c\u95ee\u9898\u89e3\u51b3\uff1a<\/p>\n<pre lang='SQL'>[orat3@hpserver2 ~]$ export LD_LIBRARY_PATH=$ORACLE_HOME\/lib\r\n[orat3@hpserver2 ~]$ sqlplus \/ as sysdba\r\nSQL*Plus: Release 10.2.0.4.0 - Production on Sun Mar 18 16:10:57 2012\r\nCopyright (c) 1982, 2007, Oracle. All Rights Reserved.\r\nConnected to:\r\nOracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production\r\nWith the Partitioning, OLAP, Data Mining and Real Application Testing options\r\nSQL><\/pre>\n<p>\u8fd8\u6709\u4e00\u79cd\u7c7b\u4f3c\u7684\u9519\u8bef\uff1a<\/p>\n<pre lang='SQL'>[orat0@hpserver2 ~]$ sqlplus \/ as sysdba\r\nSQL*Plus: Release 10.2.0.5.0 - Production on Sun Mar 18 16:12:03 2012\r\nCopyright (c) 1982, 2010, Oracle. All Rights Reserved.\r\noracleorcl10g: error while loading shared libraries: libskgxp10.so: cannot open shared object file: No such file or directory\r\nERROR:\r\nORA-12547: TNS:lost contact\r\nEnter user-name: \r\noracleorcl10g: error while loading shared libraries: libskgxp10.so: cannot open shared object file: No such file or directory\r\nERROR:\r\nORA-12547: TNS:lost contact\r\nEnter user-name: \r\noracleorcl10g: error while loading shared libraries: libskgxp10.so: cannot open shared object file: No such file or directory\r\nERROR:\r\nORA-12547: TNS:lost contact\r\nSP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus\r\n[orat0@hpserver2 ~]$ export LD_LIBRARY_PATH=$ORACLE_HOME\/lib\r\n[orat0@hpserver2 ~]$ sqlplus \/ as sysdba\r\nSQL*Plus: Release 10.2.0.5.0 - Production on Sun Mar 18 16:12:18 2012\r\nCopyright (c) 1982, 2010, Oracle. All Rights Reserved.\r\nConnected to:\r\nOracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production\r\nWith the Partitioning, OLAP, Data Mining and Real Application Testing options\r\nSQL><\/pre>\n<p>\u9519\u8bef\u7684\u8868\u76f8\u867d\u7136\u4e0d\u540c\uff0c\u4f46\u662f\u89e3\u51b3\u65b9\u6cd5\u662f\u76f8\u540c\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u572810g\u4ee5\u540e\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u73af\u5883\u53d8\u91cf\u4e2d\u6ca1\u6709\u5fc5\u8981\u8bbe\u7f6eLD_LIBRARY_PATH\uff0c\u4f46\u662f\u4e00\u65e6\u5c06ORACLE_HOME\u8fc1\u79fb\u5230\u5176\u4ed6\u76ee\u5f55\uff0c\u5219\u73af\u5883\u53d8\u91cf\u4e2d\u8fd8\u9700\u8981\u6dfb\u52a0\u8fd9\u4e2a\u53d8\u91cf\u3002 Linux\u548cUnix\u652f\u6301TAR\u65b9\u5f0f\u8fc1\u79fbORACLE_HOME\uff0c\u5982\u679c\u6709\u9700\u8981\u5c06ORACLE_HOME\u653e\u5230\u5176\u4ed6\u8def\u5f84\u4e0b\uff0c\u90a3\u4e48\u4e00\u822c\u90fd\u4f1a\u4f7f\u7528tar\u7684\u65b9\u5f0f\u5c06\u6574\u4e2a\u8def\u5f84\u62f7\u8d1d\u5230\u76ee\u6807\u76ee\u5f55\u3002 \u4f46\u662f\u8fc1\u79fb\u540e\uff0c\u5982\u679c\u76f4\u63a5\u5c1d\u8bd5sqlplus\u542f\u52a8\uff0c\u53ef\u80fd\u62a5\u9519\uff1a [orat3@hpserver2 ~]$ sqlplus \/ as sysdba sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory \u800c\u8bbe\u7f6eLD_LIBRARY_PATH\u540e\uff0c\u95ee\u9898\u89e3\u51b3\uff1a [orat3@hpserver2 ~]$ export LD_LIBRARY_PATH=$ORACLE_HOME\/lib [orat3@hpserver2 ~]$ sqlplus \/ as sysdba SQL*Plus: Release 10.2.0.4.0 &hellip; <a href=\"https:\/\/yangtingkun.net\/?p=664\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[16,549,550,548,219,102],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2yiY3-aI","_links":{"self":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/664"}],"collection":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=664"}],"version-history":[{"count":1,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/664\/revisions"}],"predecessor-version":[{"id":665,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/664\/revisions\/665"}],"wp:attachment":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}