{"id":5357,"date":"2024-11-14T10:40:55","date_gmt":"2024-11-14T02:40:55","guid":{"rendered":"https:\/\/fwq.ai\/blog\/5357\/"},"modified":"2024-11-14T10:40:55","modified_gmt":"2024-11-14T02:40:55","slug":"oracle%e6%95%b0%e6%8d%ae%e5%ba%93%e5%af%86%e7%a0%81%e8%bf%87%e6%9c%9f%e6%80%8e%e4%b9%88%e4%bf%ae%e6%94%b9","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/5357\/","title":{"rendered":"oracle\u6570\u636e\u5e93\u5bc6\u7801\u8fc7\u671f\u600e\u4e48\u4fee\u6539"},"content":{"rendered":"<blockquote><p>\n  \u8981\u4fee\u6539\u8fc7\u671f\u7684 oracle \u6570\u636e\u5e93\u5bc6\u7801\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a1. \u9000\u51fa\u6240\u6709\u4f1a\u8bdd\uff1b2. \u4ee5 sysdba \u6743\u9650\u8fde\u63a5\u6570\u636e\u5e93\uff1b3. \u6267\u884c alter user \u547d\u4ee4\u4fee\u6539\u5bc6\u7801\uff1b4. \u4f7f\u7528\u65b0\u5bc6\u7801\u91cd\u65b0\u8fde\u63a5\uff1b5. \u6267\u884c\u67e5\u8be2\u786e\u8ba4\u5bc6\u7801\u5df2\u4fee\u6539\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/26\/2024052620154916845.jpg\" class=\"aligncenter\" title=\"oracle\u6570\u636e\u5e93\u5bc6\u7801\u8fc7\u671f\u600e\u4e48\u4fee\u6539\u63d2\u56fe\" alt=\"oracle\u6570\u636e\u5e93\u5bc6\u7801\u8fc7\u671f\u600e\u4e48\u4fee\u6539\u63d2\u56fe\" \/><\/p>\n<p><strong>Oracle \u6570\u636e\u5e93\u5bc6\u7801\u8fc7\u671f\u540e\u5982\u4f55\u4fee\u6539<\/strong><\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong>Oracle \u6570\u636e\u5e93\u5bc6\u7801\u8fc7\u671f\u540e\u5982\u4f55\u4fee\u6539\uff1f<\/p>\n<p><strong>\u56de\u7b54\uff1a<\/strong><\/p>\n<p>\u8981\u4fee\u6539\u8fc7\u671f\u7684 Oracle \u6570\u636e\u5e93\u5bc6\u7801\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<p><strong>1. \u9000\u51fa\u6240\u6709\u73b0\u6709\u4f1a\u8bdd<\/strong><\/p>\n<p>\u9000\u51fa\u6b63\u5728\u8fd0\u884c\u7684\u6240\u6709\u6570\u636e\u5e93\u4f1a\u8bdd\uff0c\u5305\u62ec\u5ba2\u6237\u7aef\u5e94\u7528\u7a0b\u5e8f\u3001SQL*Plus \u4f1a\u8bdd\u548c\u6570\u636e\u5e93\u670d\u52a1\u3002<\/p>\n<p><strong>2. \u8fde\u63a5\u5230\u6570\u636e\u5e93<\/strong><\/p>\n<p>\u4f7f\u7528 SYSDBA \u6743\u9650\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002\u60a8\u9700\u8981\u4f7f\u7528 SYSDBA \u5e10\u6237\u767b\u5f55\uff0c\u56e0\u4e3a\u5b83\u5177\u6709\u4fee\u6539\u6570\u636e\u5e93\u5bc6\u7801\u7684\u6743\u9650\u3002<\/p>\n<p><strong>3. \u4fee\u6539\u5bc6\u7801<\/strong><\/p>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u4fee\u6539\u5bc6\u7801\uff1a<\/p>\n<pre>ALTER USER username IDENTIFIED BY new_password;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5176\u4e2d\uff0cusername \u662f\u8981\u4fee\u6539\u5176\u5bc6\u7801\u7684\u7528\u6237\u540d\uff0cnew_password \u662f\u65b0\u5bc6\u7801\u3002<\/p>\n<p><strong>4. \u91cd\u65b0\u8fde\u63a5<\/strong><\/p>\n<p>\u4f7f\u7528\u65b0\u5bc6\u7801\u91cd\u65b0\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002<\/p>\n<p><strong>5. \u786e\u8ba4\u66f4\u6539<\/strong><\/p>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1\u5bc6\u7801\u662f\u5426\u5df2\u4fee\u6539\uff1a<\/p>\n<pre>SELECT username, password FROM dba_users WHERE username='username';<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u5c06\u663e\u793a\u5df2\u4fee\u6539\u5176\u5bc6\u7801\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u4fe1\u606f\u3002<\/p>\n<p><strong>\u6ce8\u610f\uff1a<\/strong><\/p>\n<ul>\n<li>\u8bf7\u786e\u4fdd\u65b0\u5bc6\u7801\u7b26\u5408\u6570\u636e\u5e93\u7684\u5bc6\u7801\u7b56\u7565\u3002<\/li>\n<li>\u5efa\u8bae\u5b9a\u671f\u66f4\u6539\u6570\u636e\u5e93\u5bc6\u7801\u4ee5\u63d0\u9ad8\u5b89\u5168\u6027\u3002<\/li>\n<li>\u66f4\u6539\u5bc6\u7801\u65f6\uff0c\u8bf7\u8003\u8651\u4f7f\u7528\u5f3a\u5bc6\u7801\u7ba1\u7406\u5668\u6765\u5b58\u50a8\u548c\u7ba1\u7406\u60a8\u7684\u5bc6\u7801\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6570\u636e\u5e93\u5bc6\u7801\u8fc7\u671f\u600e\u4e48\u4fee\u6539\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>\u8981\u4fee\u6539\u8fc7\u671f\u7684 oracle \u6570\u636e\u5e93\u5bc6\u7801\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a1. \u9000\u51fa\u6240\u6709\u4f1a\u8bdd\uff1b2. \u4ee5 sysdba \u6743\u9650\u8fde\u63a5\u6570\u636e\u5e93\uff1b3. \u6267\u884c alter user \u547d\u4ee4\u4fee\u6539\u5bc6\u7801\uff1b4. \u4f7f\u7528\u65b0\u5bc6\u7801\u91cd\u65b0\u8fde\u63a5\uff1b5. \u6267\u884c\u67e5\u8be2\u786e\u8ba4\u5bc6\u7801\u5df2\u4fee\u6539\u3002 Oracle \u6570\u636e\u5e93\u5bc6\u7801\u8fc7\u671f\u540e\u5982\u4f55\u4fee\u6539 \u95ee\u9898\uff1aOracle \u6570\u636e\u5e93\u5bc6\u7801\u8fc7\u671f\u540e\u5982\u4f55\u4fee\u6539\uff1f \u56de\u7b54\uff1a \u8981\u4fee\u6539\u8fc7\u671f\u7684 Oracle \u6570\u636e\u5e93\u5bc6\u7801\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a 1. \u9000\u51fa\u6240\u6709\u73b0\u6709\u4f1a\u8bdd \u9000\u51fa\u6b63\u5728\u8fd0\u884c\u7684\u6240\u6709\u6570\u636e\u5e93\u4f1a\u8bdd\uff0c\u5305\u62ec\u5ba2\u6237\u7aef\u5e94\u7528\u7a0b\u5e8f\u3001SQL*Plus \u4f1a\u8bdd\u548c\u6570\u636e\u5e93\u670d\u52a1\u3002 2. \u8fde\u63a5\u5230\u6570\u636e\u5e93 \u4f7f\u7528 SYSDBA \u6743\u9650\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002\u60a8\u9700\u8981\u4f7f\u7528 SYSDBA \u5e10\u6237\u767b\u5f55\uff0c\u56e0\u4e3a\u5b83\u5177\u6709\u4fee\u6539\u6570\u636e\u5e93\u5bc6\u7801\u7684\u6743\u9650\u3002 3. \u4fee\u6539\u5bc6\u7801 \u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u4fee\u6539\u5bc6\u7801\uff1a ALTER USER username IDENTIFIED BY new_password; \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d\uff0cusername \u662f\u8981\u4fee\u6539\u5176\u5bc6\u7801\u7684\u7528\u6237\u540d\uff0cnew_password \u662f\u65b0\u5bc6\u7801\u3002 4. \u91cd\u65b0\u8fde\u63a5 \u4f7f\u7528\u65b0\u5bc6\u7801\u91cd\u65b0\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002 5. \u786e\u8ba4\u66f4\u6539 \u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1\u5bc6\u7801\u662f\u5426\u5df2\u4fee\u6539\uff1a SELECT username, password FROM [&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-5357","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5357","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=5357"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5357\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=5357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=5357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=5357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}