{"id":5022,"date":"2024-11-14T08:34:34","date_gmt":"2024-11-14T00:34:34","guid":{"rendered":"https:\/\/fwq.ai\/blog\/5022\/"},"modified":"2024-11-14T08:34:34","modified_gmt":"2024-11-14T00:34:34","slug":"oracle%e6%80%8e%e4%b9%88%e6%9f%a5%e7%9c%8b%e6%89%80%e6%9c%89%e7%94%a8%e6%88%b7","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/5022\/","title":{"rendered":"oracle\u600e\u4e48\u67e5\u770b\u6240\u6709\u7528\u6237"},"content":{"rendered":"<blockquote><p>\n  \u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u67e5\u770b oracle \u4e2d\u6240\u6709\u7528\u6237\uff1a1. \u4f7f\u7528 system \u7528\u6237\u8eab\u4efd\u8fd0\u884c select \u67e5\u8be2\uff1b2. \u6388\u4e88 select_catalog_role \u6743\u9650\u540e\u8fd0\u884c select \u67e5\u8be2\uff1b3. \u4f7f\u7528 dba_users \u89c6\u56fe\u8fd0\u884c\u67e5\u8be2\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/21\/2024052111091457563.jpg\" class=\"aligncenter\" title=\"oracle\u600e\u4e48\u67e5\u770b\u6240\u6709\u7528\u6237\u63d2\u56fe\" alt=\"oracle\u600e\u4e48\u67e5\u770b\u6240\u6709\u7528\u6237\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u67e5\u770b Oracle \u4e2d\u7684\u6240\u6709\u7528\u6237<\/strong><\/p>\n<p><strong>\u65b9\u6cd5\u4e00\uff1a\u4f7f\u7528 SYSTEM \u7528\u6237<\/strong><\/p>\n<ol>\n<li>\u8fde\u63a5\u5230\u6570\u636e\u5e93\uff0c\u4f7f\u7528 SYSTEM \u7528\u6237\u8eab\u4efd\u3002<\/li>\n<li>\u8fd0\u884c\u4ee5\u4e0b\u67e5\u8be2\uff1a<\/li>\n<\/ol>\n<pre>SELECT username FROM dba_users;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u65b9\u6cd5\u4e8c\uff1a\u4f7f\u7528 SELECT_CATALOG_ROLE<\/strong><\/p>\n<ol>\n<li>\u5c06 SELECT_CATALOG_ROLE \u6743\u9650\u6388\u4e88\u60a8\u7684\u7528\u6237\u3002<\/li>\n<li>\u8fd0\u884c\u4ee5\u4e0b\u67e5\u8be2\uff1a<\/li>\n<\/ol>\n<pre>SELECT * FROM ALL_USERS;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u65b9\u6cd5\u4e09\uff1a\u4f7f\u7528 DBA_USERS \u89c6\u56fe<\/strong><\/p>\n<ol>\n<li>\u8fd0\u884c\u4ee5\u4e0b\u67e5\u8be2\uff1a<\/li>\n<\/ol>\n<pre>SELECT * FROM DBA_USERS;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u7ed3\u679c\u89e3\u91ca<\/strong><\/p>\n<p>\u4ee5\u4e0a\u6240\u6709\u65b9\u6cd5\u90fd\u4f1a\u8fd4\u56de\u4e00\u4e2a\u8868\uff0c\u5176\u4e2d\u5305\u542b\u6570\u636e\u5e93\u4e2d\u6240\u6709\u7528\u6237\u7684\u4ee5\u4e0b\u4fe1\u606f\uff1a<\/p>\n<ul>\n<li>\u7528\u6237\u540d<\/li>\n<li>\u53e3\u4ee4\uff08\u4ee5\u54c8\u5e0c\u5f62\u5f0f\uff09<\/li>\n<li>\u521b\u5efa\u65f6\u95f4<\/li>\n<li>\u9ed8\u8ba4\u8868\u7a7a\u95f4<\/li>\n<li>\u5176\u4ed6\u4fe1\u606f\uff08\u4f8b\u5982\u8d26\u6237\u72b6\u6001\uff09<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u67e5\u770b\u6240\u6709\u7528\u6237\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>\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u67e5\u770b oracle \u4e2d\u6240\u6709\u7528\u6237\uff1a1. \u4f7f\u7528 system \u7528\u6237\u8eab\u4efd\u8fd0\u884c select \u67e5\u8be2\uff1b2. \u6388\u4e88 select_catalog_role \u6743\u9650\u540e\u8fd0\u884c select \u67e5\u8be2\uff1b3. \u4f7f\u7528 dba_users \u89c6\u56fe\u8fd0\u884c\u67e5\u8be2\u3002 \u5982\u4f55\u67e5\u770b Oracle \u4e2d\u7684\u6240\u6709\u7528\u6237 \u65b9\u6cd5\u4e00\uff1a\u4f7f\u7528 SYSTEM \u7528\u6237 \u8fde\u63a5\u5230\u6570\u636e\u5e93\uff0c\u4f7f\u7528 SYSTEM \u7528\u6237\u8eab\u4efd\u3002 \u8fd0\u884c\u4ee5\u4e0b\u67e5\u8be2\uff1a SELECT username FROM dba_users; \u767b\u5f55\u540e\u590d\u5236 \u65b9\u6cd5\u4e8c\uff1a\u4f7f\u7528 SELECT_CATALOG_ROLE \u5c06 SELECT_CATALOG_ROLE \u6743\u9650\u6388\u4e88\u60a8\u7684\u7528\u6237\u3002 \u8fd0\u884c\u4ee5\u4e0b\u67e5\u8be2\uff1a SELECT * FROM ALL_USERS; \u767b\u5f55\u540e\u590d\u5236 \u65b9\u6cd5\u4e09\uff1a\u4f7f\u7528 DBA_USERS \u89c6\u56fe \u8fd0\u884c\u4ee5\u4e0b\u67e5\u8be2\uff1a SELECT * FROM DBA_USERS; \u767b\u5f55\u540e\u590d\u5236 \u7ed3\u679c\u89e3\u91ca \u4ee5\u4e0a\u6240\u6709\u65b9\u6cd5\u90fd\u4f1a\u8fd4\u56de\u4e00\u4e2a\u8868\uff0c\u5176\u4e2d\u5305\u542b\u6570\u636e\u5e93\u4e2d\u6240\u6709\u7528\u6237\u7684\u4ee5\u4e0b\u4fe1\u606f\uff1a \u7528\u6237\u540d \u53e3\u4ee4\uff08\u4ee5\u54c8\u5e0c\u5f62\u5f0f\uff09 [&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-5022","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5022","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=5022"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5022\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=5022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=5022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=5022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}