{"id":6074,"date":"2024-11-14T10:29:28","date_gmt":"2024-11-14T02:29:28","guid":{"rendered":"https:\/\/fwq.ai\/blog\/6074\/"},"modified":"2024-11-14T10:29:28","modified_gmt":"2024-11-14T02:29:28","slug":"oracle%e5%a6%82%e4%bd%95%e6%b7%bb%e5%8a%a0%e7%9b%91%e5%90%ac%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/6074\/","title":{"rendered":"oracle\u5982\u4f55\u6dfb\u52a0\u76d1\u542c\u7a0b\u5e8f"},"content":{"rendered":"<p><strong> \u5982\u4f55\u6dfb\u52a0\u76d1\u542c\u7a0b\u5e8f\uff1f<\/strong><\/p>\n<p>\u5728 Oracle \u6570\u636e\u5e93\u4e2d\uff0c\u76d1\u542c\u7a0b\u5e8f\u662f\u4e00\u79cd\u540e\u53f0\u8fdb\u7a0b\uff0c\u5b83\u76d1\u542c\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\u8bf7\u6c42\u5e76\u5c06\u5176\u5b9a\u5411\u5230\u9002\u5f53\u7684\u6570\u636e\u5e93\u5b9e\u4f8b\u3002\u8981\u6dfb\u52a0\u76d1\u542c\u7a0b\u5e8f\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<p><strong>1. \u521b\u5efa\u76d1\u542c\u7a0b\u5e8f\u914d\u7f6e\u6587\u4ef6<\/strong><\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u76d1\u542c\u7a0b\u5e8f\u914d\u7f6e\u53c2\u6570\u3002\u8be5\u6587\u4ef6\u7684\u6269\u5c55\u540d\u5fc5\u987b\u4e3a .ora\u3002\u6587\u4ef6\u5185\u5bb9\u7c7b\u4f3c\u4e8e\u4ee5\u4e0b\u793a\u4f8b\uff1a<\/p>\n<pre>LISTENER = (\n  DESCRIPTION = (\n    ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521)\n  )\n)\nSID_LIST = (\n  SID_DESC = (\n    SID_NAME = ORCL\n    ORACLE_HOME = \/u01\/app\/oracle\/product\/12.2.0.1\/dbhome_1\n  )\n)<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5176\u4e2d\uff1a<\/p>\n<ul>\n<li>ADDRESS \u6307\u5b9a\u76d1\u542c\u7a0b\u5e8f\u76d1\u542c\u7684 IP \u5730\u5740\u548c\u7aef\u53e3\u3002<\/li>\n<li>SID_DESC \u6307\u5b9a\u8981\u4e0e\u76d1\u542c\u7a0b\u5e8f\u5173\u8054\u7684\u6570\u636e\u5e93\u5b9e\u4f8b\u7684\u540d\u79f0\u548c Oracle \u4e3b\u76ee\u5f55\u3002<\/li>\n<\/ul>\n<p><strong>2. \u4fdd\u5b58\u76d1\u542c\u7a0b\u5e8f\u914d\u7f6e\u6587\u4ef6<\/strong><\/p>\n<p>\u5c06\u76d1\u542c\u7a0b\u5e8f\u914d\u7f6e\u6587\u4ef6\u4fdd\u5b58\u5728\u4ee5\u4e0b\u4f4d\u7f6e\uff1a<\/p>\n<pre>$ORACLE_HOME\/network\/admin\/listener.ora<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5176\u4e2d $ORACLE_HOME \u662f Oracle \u4e3b\u76ee\u5f55\u3002<\/p>\n<p><strong>3. \u542f\u52a8\u76d1\u542c\u7a0b\u5e8f<\/strong><\/p>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8\u76d1\u542c\u7a0b\u5e8f\uff1a<\/p>\n<pre>lsnrctl start LISTENER<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5176\u4e2d LISTENER \u662f\u76d1\u542c\u7a0b\u5e8f\u7684\u540d\u79f0\u3002<\/p>\n<p><strong>4. \u9a8c\u8bc1\u76d1\u542c\u7a0b\u5e8f<\/strong><\/p>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1\u76d1\u542c\u7a0b\u5e8f\u662f\u5426\u6b63\u5728\u8fd0\u884c\uff1a<\/p>\n<pre>lsnrctl status LISTENER<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5982\u679c\u76d1\u542c\u7a0b\u5e8f\u6b63\u5728\u8fd0\u884c\uff0c\u60a8\u5c06\u770b\u5230\u7c7b\u4f3c\u4ee5\u4e0b\u5185\u5bb9\u7684\u8f93\u51fa\uff1a<\/p>\n<pre>LSNRCTL for Linux: Version 12.2.0.1.0 - Production on Wed Jun 29 14:47:14 2023\nCopyright (c) 1991, 2018, Oracle.  All rights reserved.\n\nConnecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=1521)))\nSTATUS of the LISTENER\n------------------------\nAlias                     LISTENER\nVersion                   12.2.0.1.0\nStart Date                29-JUN-2023 14:47:14\nUptime                    0 days 0 hr. 0 min. 0 sec\nTrace Level              off\nSecurity                  ON: Local OS Authentication\nSNMP                      OFF<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u8865\u5145\u8bf4\u660e\uff1a<\/strong><\/p>\n<ul>\n<li>\u60a8\u53ef\u4ee5\u521b\u5efa\u591a\u4e2a\u76d1\u542c\u7a0b\u5e8f\uff0c\u4ee5\u4fbf\u540c\u65f6\u76d1\u542c\u4e0d\u540c\u7684 IP \u5730\u5740\u6216\u7aef\u53e3\u3002<\/li>\n<li>\u53ef\u4ee5\u5728\u76d1\u542c\u7a0b\u5e8f\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a\u5176\u4ed6\u914d\u7f6e\u53c2\u6570\uff0c\u4f8b\u5982\u65e5\u5fd7\u7ea7\u522b\u548c\u8fde\u63a5\u8d85\u65f6\u65f6\u95f4\u3002<\/li>\n<li>\u5982\u679c\u60a8\u5728\u6dfb\u52a0\u76d1\u542c\u7a0b\u5e8f\u65f6\u9047\u5230\u95ee\u9898\uff0c\u8bf7\u53c2\u9605 Oracle \u6587\u6863\u6216\u8054\u7cfb Oracle \u652f\u6301\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u6dfb\u52a0\u76d1\u542c\u7a0b\u5e8f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u6dfb\u52a0\u76d1\u542c\u7a0b\u5e8f\uff1f \u5728 Oracle \u6570\u636e\u5e93\u4e2d\uff0c\u76d1\u542c\u7a0b\u5e8f\u662f\u4e00\u79cd\u540e\u53f0\u8fdb\u7a0b\uff0c\u5b83\u76d1\u542c\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\u8bf7\u6c42\u5e76\u5c06\u5176\u5b9a\u5411\u5230\u9002\u5f53\u7684\u6570\u636e\u5e93\u5b9e\u4f8b\u3002\u8981\u6dfb\u52a0\u76d1\u542c\u7a0b\u5e8f\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a 1. \u521b\u5efa\u76d1\u542c\u7a0b\u5e8f\u914d\u7f6e\u6587\u4ef6 \u521b\u5efa\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u76d1\u542c\u7a0b\u5e8f\u914d\u7f6e\u53c2\u6570\u3002\u8be5\u6587\u4ef6\u7684\u6269\u5c55\u540d\u5fc5\u987b\u4e3a .ora\u3002\u6587\u4ef6\u5185\u5bb9\u7c7b\u4f3c\u4e8e\u4ee5\u4e0b\u793a\u4f8b\uff1a LISTENER = ( DESCRIPTION = ( ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521) ) ) SID_LIST = ( SID_DESC = ( SID_NAME = ORCL ORACLE_HOME = \/u01\/app\/oracle\/product\/12.2.0.1\/dbhome_1 ) ) \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d\uff1a ADDRESS \u6307\u5b9a\u76d1\u542c\u7a0b\u5e8f\u76d1\u542c\u7684 IP \u5730\u5740\u548c\u7aef\u53e3\u3002 SID_DESC \u6307\u5b9a\u8981\u4e0e\u76d1\u542c\u7a0b\u5e8f\u5173\u8054\u7684\u6570\u636e\u5e93\u5b9e\u4f8b\u7684\u540d\u79f0\u548c Oracle \u4e3b\u76ee\u5f55\u3002 2. \u4fdd\u5b58\u76d1\u542c\u7a0b\u5e8f\u914d\u7f6e\u6587\u4ef6 \u5c06\u76d1\u542c\u7a0b\u5e8f\u914d\u7f6e\u6587\u4ef6\u4fdd\u5b58\u5728\u4ee5\u4e0b\u4f4d\u7f6e\uff1a $ORACLE_HOME\/network\/admin\/listener.ora \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-6074","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=6074"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6074\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=6074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=6074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=6074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}