{"id":1252,"date":"2020-10-25T15:43:16","date_gmt":"2020-10-25T07:43:16","guid":{"rendered":"http:\/\/www.821121.com\/?p=1252"},"modified":"2021-01-04T15:50:19","modified_gmt":"2021-01-04T07:50:19","slug":"%e6%96%b0%e7%89%b9%e6%80%a7%ef%bc%9a%e6%95%b0%e6%8d%ae%e5%ba%93%e4%b8%ad%e7%9b%b4%e6%8e%a5%e6%9f%a5%e8%af%a2tns%e4%bf%a1%e6%81%af","status":"publish","type":"post","link":"http:\/\/www.821121.com\/?p=1252","title":{"rendered":"\u65b0\u7279\u6027\uff1a\u6570\u636e\u5e93\u4e2d\u76f4\u63a5\u67e5\u8be2tns\u4fe1\u606f"},"content":{"rendered":"<p>\u6570\u636e\u5e93\u4e2d\u76f4\u63a5\u67e5\u8be2tns\u4fe1\u606f<\/p>\n<pre><code class=\"language-sql\">SQL&gt; select  dbms_tns.resolve_tnsname(&#039;ORCL&#039;) from dual;\n\nDBMS_TNS.RESOLVE_TNSNAME(&#039;ORCL&#039;)\n-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=catscanip)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)(CID=(PROGRAM=oracle)(HOST=cat1)(USER=oracle))))<\/code><\/pre>\n<p>\u6bd4tnsping\u51fa\u6765\u7684\u7ed3\u679c\u66f4\u52a0\u8be6\u7ec6<\/p>\n<pre><code class=\"language-sql\">[oracle@cat1 admin]$ tnsping ORCL\n\nTNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 04-JAN-2021 15:49:02\n\nCopyright (c) 1997, 2019, Oracle.  All rights reserved.\n\nUsed parameter files:\n\/u01\/app\/oracle\/product\/19.3.0\/db_1\/network\/admin\/sqlnet.ora\n\nUsed TNSNAMES adapter to resolve the alias\nAttempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = catscanip)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))\nOK (10 msec)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6570\u636e\u5e93\u4e2d\u76f4\u63a5\u67e5\u8be2tns\u4fe1\u606f SQL&gt; sel<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,39],"tags":[],"class_list":["post-1252","post","type-post","status-publish","format-standard","hentry","category-oracle-12c","category-39"],"_links":{"self":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/1252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1252"}],"version-history":[{"count":1,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/1252\/revisions"}],"predecessor-version":[{"id":1253,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/1252\/revisions\/1253"}],"wp:attachment":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1252"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}