{"id":246963,"date":"2020-12-21T07:51:09","date_gmt":"2020-12-20T23:51:09","guid":{"rendered":"http:\/\/4563.org\/?p=246963"},"modified":"2020-12-21T07:51:09","modified_gmt":"2020-12-20T23:51:09","slug":"oracle-%e7%bb%91%e5%ae%9a%e5%90%8e%e6%97%a0%e6%b3%95%e9%80%9a%e8%bf%87%e6%8c%87%e5%ae%9a-ip-%e8%ae%bf%e9%97%ae%ef%bc%8c%e6%b1%82%e6%95%99","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=246963","title":{"rendered":"Oracle \u7ed1\u5b9a\u540e\u65e0\u6cd5\u901a\u8fc7\u6307\u5b9a IP \u8bbf\u95ee\uff0c\u6c42\u6559"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Oracle \u7ed1\u5b9a\u540e\u65e0\u6cd5\u901a\u8fc7\u6307\u5b9a IP \u8bbf\u95ee\uff0c\u6c42\u6559               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : black11black <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u9898\uff0c\u6709\u4e00\u53f0 linux \u673a\u5668\u4e0a\u8981\u88c5 oracle\uff0c\u6298\u817e\u534a\u5929\u4e86\u3002<\/p>\n<p>\u73b0\u5728\u670d\u52a1\u5df2\u7ecf\u5b89\u88c5\u6210\u529f\uff0c\u5e76\u4e14\u6b63\u5e38\u542f\u52a8\u3002<\/p>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u542f\u52a8\u6210\u529f\uff1a<\/p>\n<pre><code>sudo lsnrctl start sqlplus \/nolog conn \/ as sysdba startup <\/code><\/pre>\n<p>\u5e76\u4e14\u5728\u8fd9\u79cd\u8bbf\u95ee\u6a21\u5f0f\u4e0b\u80fd\u591f\u6210\u529f\u83b7\u53d6\u5230\u6570\u636e<\/p>\n<pre><code>SQL&gt; select * from scott.dept;      DEPTNO DNAME   LOC ---------- -------------- -------------  10 ACCOUNTING   NEW YORK  20 RESEARCH   DALLAS  30 SALES   CHICAGO  40 OPERATIONS   BOSTON  <\/code><\/pre>\n<p>\u4e8e\u662f\u628a\u670d\u52a1\u7ed1\u5b9a\u5230\u5c40\u57df\u7f51 IP\uff0c\u60f3\u8981\u4ece\u53e6\u4e00\u53f0\u673a\u5668\u4e0a\u767b\u5f55\uff0c\u4fee\u6539\u4e86 listener.ora<\/p>\n<pre><code># Generated by Oracle configuration tools.  LISTENER =   (DESCRIPTION_LIST =     (DESCRIPTION =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))       (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.100)(PORT = 1521))     )   )  ADR_BASE_LISTENER = \/home\/rogear\/tools\/oracle11g <\/code><\/pre>\n<p>\u548c tnsnames.ora<\/p>\n<pre><code># tnsnames.ora Network Configuration File: \/home\/rogear\/tools\/oracle11g\/product\/11.2.0\/dbhome_1\/network\/admin\/tnsnames.ora # Generated by Oracle configuration tools.  ORCL =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.100)(PORT = 1521))     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = orcl)     )   )  <\/code><\/pre>\n<p>\u7136\u540e\u91cd\u542f\u6570\u636e\u5e93\u548c\u76d1\u542c\u7a0b\u5e8f\u3002<\/p>\n<p>\u8fd9\u65f6\u5019\u4f7f\u7528\u767b\u5f55\u547d\u4ee4\u4f1a\u5f97\u5230\u63d0\u793a\uff1a<\/p>\n<pre><code>sqlplus scott\/[email&#160;protected]:1521\/orcl  ERROR: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor <\/code><\/pre>\n<p>\u8bf7\u95ee\u53ef\u80fd\u662f\u4ec0\u4e48\u539f\u56e0\u9020\u6210\u7684\uff1f \u5f53\u524d\u53ef\u4ee5\u786e\u4fdd\u7f51\u7edc\u662f\u8fde\u540c\u7684\uff0c\u786e\u5b9e\u80fd\u8bbf\u95ee\u5230 192.168.1.100:1521 \u4e0a\u7684\u7a0b\u5e8f\uff0c\u4f46\u662f\u767b\u5f55\u5931\u8d25\uff0c\u600e\u4e48\u56de\u4e8b\u5462<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>10<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4804775\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gefranks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6253\u5f00 Net Manager \u770b\u770b profile \u91cc\u9762\u662f\u5426\u5141\u8bb8\u4e86 hostname \u65b9\u5f0f\u7684\u8fde\u63a5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4804776\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : black11black <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gefranks <\/p>\n<p>\u4fee\u6539\u540e\u63d0\u793a\u3001<\/p>\n<p>[email&#160;protected]:~$ sqlplus scott\/[email&#160;protected]:1521\/orcl<\/p>\n<p>SQL*Plus: Release 11.2.0.4.0 Production on Thu Dec 31 12:58:42 2020<\/p>\n<p>Copyright (c) 1982, 2013, Oracle. All rights reserved.<\/p>\n<p>ERROR:<br \/>ORA-01034: ORACLE not available<br \/>ORA-27101: shared memory realm does not exist<br \/>Linux-x86_64 Error: 2: No such file or directory<br \/>Process ID: 0<br \/>Session ID: 0 Serial number: 0<\/p>\n<p>Enter user-name:                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4804777\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gefranks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bf7\u786e\u8ba4\u4f60 oracle instance \u6b63\u5e38\u5de5\u4f5c\u7684.\u4f60\u8fd9\u4e2a\u63d0\u793a\u770b\u4e0a\u53bb instance \u5de5\u4f5c\u4e0d\u6b63\u5e38<br \/>\u4e3a\u5565\u7528\u8fd9\u4e48\u8001\u7684\u7248\u672c, \u8fd9\u7248\u672c\u65e9\u5c31\u6dd8\u6c70\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4804778\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gefranks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd8\u6709\u4f60 listener \u4e3a\u5565\u8981\u7528 sudo \u8d77?\u54ea\u4e2a\u7528\u6237\u88c5\u7684\u7528\u90a3\u4e2a\u7528\u6237\u8d77\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4804779\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : black11black <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gefranks \u611f\u8c22\u56de\u590d\uff0c\u521d\u5b66 oracle \u4e0d\u592a\u6e05\u695a\u6982\u5ff5\uff0cinstance \u662f\u6307\u6570\u636e\u5e93\u7684\u5de5\u4f5c\u5b9e\u4f8b\u5417\uff1f<\/p>\n<p>\u6211\u76ee\u524d\u7684\u6570\u636e\u5e93\u662f\u53ef\u4ee5\u7528 sqlplus \uff08\u4e0d\u5e26\u4efb\u4f55\u53c2\u6570\uff09\u7684\u65b9\u5f0f\u8fde\u63a5\u7684\uff0c\u5e76\u4e14\u80fd\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<p>\u7528\u8fd9\u4e2a\u7248\u672c\u662f\u7f51\u4e0a\u67e5\u4e86\u4e00\u4e0b\u5f88\u591a\u4eba\u63a8\u8350\u8fd9\u4e2a\uff0c\u5c31\u6ca1\u7528\u6700\u65b0\u7684\uff0c\u786e\u5b9e\u5f88\u591a\u5751                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4804780\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gefranks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u662f\u7684,\u5c31\u662f\u6570\u636e\u5e93\u7684\u5de5\u4f5c\u5b9e\u4f8b.\u53c2\u8003\u8fd9\u4e2a\u770b\u4e0b<br \/>https:\/\/support.esri.com\/en\/technical-article\/000008516<br \/>\u8bf7\u68c0\u67e5$ORACLE_HOME, $ORACLE_SID \u73af\u5883\u53d8\u91cf\u662f\u5426\u8bbe\u7f6e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4804781\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : black11black <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gefranks \u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u662f\u6b63\u786e\u7684\uff0c\u5f88\u795e\u79d8\u3002\u6211\u7528 ubuntu \u662f\u56e0\u4e3a\u4e00\u76f4\u4ee5\u6765\u7528\u7684\u90fd\u662f debian \u7cfb\uff0c\u4f46\u662f\u5916\u7f51\u641c\u7d22\u4e86\u4e00\u4e0b\u4f3c\u4e4e oracle \u5bf9 debian \u7cfb\u975e\u5e38\u4e0d\u53cb\u597d\uff0c\u6211\u786e\u5b9e\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u5f88\u591a\u7f16\u8bd1\u5751\uff0c\u6211\u60f3\u76f4\u63a5\u653e\u5f03 ubuntu\uff0c\u5c1d\u8bd5\u4e00\u4e0b oracle linux+\u6700\u65b0\u7248 oracle \u7684\u8fd9\u6837\u914d\u7f6e\u4e86\uff0c\u4e0d\u77e5\u9053\u80fd\u5426\u5751\u5c11\u4e00\u70b9\u3002<\/p>\n<p>\u53e6\u5916\u8001\u54e5\u662f\u5426\u77e5\u9053 Oracle \u5728 windows \u548c linux \u4e2d\u6027\u80fd\u8868\u73b0\u662f\u5426\u6709\u533a\u522b\uff1f\u6211\u5982\u679c\u60f3\u628a\u76ee\u524d\u57fa\u4e8e mysql \u7684\u751f\u4ea7\u670d\u52a1\u8fc1\u79fb\u5230 oracle \u4e2d\uff0c\u5e94\u8be5\u5728 windowsserver \u4e0a\u642d\u5efa\u8fd8\u662f linux \u4e0a\u642d\u5efa\u3002\u641c\u7d22\u4e86\u4e00\u4e0b\uff0c\u51e0\u4e4e\u6ca1\u6709\u8fd9\u65b9\u9762\u7684\u8d44\u6599\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4804782\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gefranks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             oracle db \u6211\u8bb0\u5f97\u662f\u6ca1\u6709\u5728 debian \u7cfb\u4e0a\u8ba4\u8bc1\u8fc7, \u5728\u7532\u9aa8\u6587\u7684\u65f6\u5019\u6211\u4e5f\u6ca1\u505a\u8fc7\u5728\u6211\u4eec\u7684\u5e94\u7528\u5728 debian \u7cfb\u4e0a\u7684\u8ba4\u8bc1.<br \/>\u533a\u522b\u80af\u5b9a\u6709,\u6211\u63a5\u89e6\u7684\u5ba2\u6237\u4ed6\u4eec\u7684\u6570\u636e\u5e93\u7cfb\u7edf\u7edd\u5927\u591a\u6570\u90fd\u662f\u8dd1\u5728 linux \u4e0a\u7684, windows \u4e0a\u7684\u975e\u5e38\u5c11                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4804783\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gefranks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             oracle linux \u7684\u8bdd\u5751\u5e94\u8be5\u662f\u6700\u5c11\u7684.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4804784\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : terryhyx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b98\u65b9\u8ba4\u8bc1\u8fc7\u7684 Linux \u5e94\u8be5\u5c31 RHEL OEL SLES<br \/>\u786e\u8ba4\u4f60\u7684 instance \u662f\u53eb orcl \u5417\uff1f<br \/>listener.org \u7528\u9759\u6001\u6ce8\u518c \u8bd5\u8bd5\u770b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Oracle \u7ed1\u5b9a\u540e\u65e0\u6cd5\u901a\u8fc7\u6307\u5b9a &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/246963"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=246963"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/246963\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=246963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=246963"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=246963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}