{"id":266983,"date":"2023-03-14T14:11:45","date_gmt":"2023-03-14T06:11:45","guid":{"rendered":"https:\/\/lrxjmw.cn\/lxrhxgosjkmm.html"},"modified":"2023-03-14T14:11:45","modified_gmt":"2023-03-14T06:11:45","slug":"lxrhxgosjkmm","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lxrhxgosjkmm.html","title":{"rendered":"Linux\u4e0b\u5982\u4f55\u4fee\u6539Oracle\u6570\u636e\u5e93\u5bc6\u7801\uff1f"},"content":{"rendered":"

\u5728\u4f01\u4e1a\u4e2d\uff0cOracle\u6570\u636e\u5e93\u662f\u975e\u5e38\u91cd\u8981\u7684\u4e00\u9879\u4fe1\u606f\u7cfb\u7edf<\/a>\uff0c\u800c\u6570\u636e\u5e93\u5bc6\u7801\u7684\u5b89\u5168\u6027\u4e5f\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728Linux<\/a>\u64cd\u4f5c\u7cfb\u7edf\u4e0b\u4fee\u6539Oracle\u6570\u636e\u5e93\u5bc6\u7801\u3002<\/p>\n

1.\u6982\u8ff0<\/p>\n

2.\u8fde\u63a5\u5230Oracle\u6570\u636e\u5e93<\/p>\n

3.\u67e5\u8be2\u7528\u6237\u4fe1\u606f<\/p>\n

4.\u4fee\u6539\u7528\u6237\u5bc6\u7801<\/p>\n

5.\u9a8c\u8bc1\u5bc6\u7801\u662f\u5426\u4fee\u6539\u6210\u529f<\/p>\n

6.\u9501\u5b9a\u7528\u6237\u8d26\u53f7<\/p>\n

7.\u89e3\u9501\u7528\u6237\u8d26\u53f7<\/p>\n

8.\u64a4\u9500\u7528\u6237\u6743\u9650<\/p>\n

oracle\u4fee\u6539\u6570\u636e\u5e93\u5bc6\u7801_linux \u4fee\u6539oracle\u6570\u636e\u5e93\u5bc6\u7801_oracle \u4fee\u6539\u4e00\u5217\u6570\u636e<\/p>\n

9.\u6388\u4e88\u7528\u6237\u6743\u9650<\/p>\n

10.\u9000\u51faOracle\u6570\u636e\u5e93<\/p>\n

1.\u6982\u8ff0<\/p>\n

Oracle\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u662f\u76ee\u524d\u4e16\u754c\u4e0a\u5e94\u7528\u6700\u5e7f\u6cdb\u7684\u6570\u636e\u5e93\u4e4b\u4e00linux \u4fee\u6539oracle\u6570\u636e\u5e93\u5bc6\u7801<\/strong>\uff0c\u800cLinux\u64cd\u4f5c\u7cfb\u7edf\u5219\u662f\u670d\u52a1\u5668\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u4f7f\u7528\u6700\u5e7f\u6cdb\u7684\u4e00\u79cd\u3002\u672c\u6587\u5c06\u4ee5Linux\u64cd\u4f5c\u7cfb\u7edf\u4e3a\u57fa\u7840\uff0c\u4ecb\u7ecd\u5982\u4f55\u5728Linux\u4e2d\u4fee\u6539Oracle\u6570\u636e\u5e93\u5bc6\u7801\u3002<\/p>\n

2.\u8fde\u63a5\u5230Oracle\u6570\u636e\u5e93<\/p>\n

\u9996\u5148\u9700\u8981\u8fde\u63a5\u5230Oracle\u6570\u636e\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528SQL*Plus\u5de5\u5177\u8fde\u63a5\u5230Oracle\u6570\u636e\u5e93\uff0cSQL*Plus\u662f\u4e00\u4e2a\u57fa\u4e8e\u547d\u4ee4<\/a>\u884c\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u8fde\u63a5\u5230Oracle\u6570\u636e\u5e93\uff1a<\/p>\n

sqlplus \/ as sysdba<\/p>\n

\u5176\u4e2d“\/”\u8868\u793a\u5f53\u524d\u7528\u6237\uff0c\u800c“as sysdba”\u8868\u793a\u4f7f\u7528SYSDBA\u6743\u9650\u767b\u5f55\u3002<\/p>\n

3.\u67e5\u8be2\u7528\u6237\u4fe1\u606f<\/p>\n

\u8fde\u63a5\u5230Oracle\u6570\u636e\u5e93\u540e\uff0c\u9700\u8981\u67e5\u8be2\u8981\u4fee\u6539\u5bc6\u7801\u7684\u7528\u6237\u4fe1\u606f\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u8be2\u6240\u6709\u7528\u6237\u4fe1\u606f\uff1a<\/p>\n

SELECT * FROM DBA_USERS;<\/p>\n

\u53ef\u4ee5\u6839\u636e\u9700\u8981\u67e5\u8be2\u6307\u5b9a\u7528\u6237\u4fe1\u606f\uff1a<\/p>\n

SELECT * FROM DBA_USERS WHERE USERNAME='test';<\/p>\n

\u5176\u4e2d“test”\u4e3a\u8981\u67e5\u8be2\u7684\u7528\u6237\u540d\u3002<\/p>\n

4.\u4fee\u6539\u7528\u6237\u5bc6\u7801<\/p>\n

\u67e5\u8be2\u5230\u8981\u4fee\u6539\u5bc6\u7801\u7684\u7528\u6237\u540d\u540elinux makefile\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4fee\u6539\u8be5\u7528\u6237\u7684\u5bc6\u7801\uff1a<\/p>\n

oracle \u4fee\u6539\u4e00\u5217\u6570\u636e_linux \u4fee\u6539oracle\u6570\u636e\u5e93\u5bc6\u7801_oracle\u4fee\u6539\u6570\u636e\u5e93\u5bc6\u7801<\/p>\n

ALTER USER test IDENTIFIED BY new_password;<\/p>\n

\u5176\u4e2d“test”\u4e3a\u8981\u4fee\u6539\u5bc6\u7801\u7684\u7528\u6237\u540d\uff0c“new_password”\u4e3a\u65b0\u5bc6\u7801\u3002<\/p>\n

5.\u9a8c\u8bc1\u5bc6\u7801\u662f\u5426\u4fee\u6539\u6210\u529f<\/p>\n

\u4fee\u6539\u5b8c\u6bd5\u540elinux \u4fee\u6539oracle\u6570\u636e\u5e93\u5bc6\u7801<\/strong>\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1\u65b0\u5bc6\u7801\u662f\u5426\u751f\u6548\uff1a<\/p>\n

CONNECT test\/new_password;<\/p>\n

\u5176\u4e2d“test”\u4e3a\u8981\u9a8c\u8bc1\u7684\u7528\u6237\u540d\uff0c“new_password”\u4e3a\u65b0\u5bc6\u7801\u3002<\/p>\n

6.\u9501\u5b9a\u7528\u6237\u8d26\u53f7<\/p>\n

\u5982\u679c\u9700\u8981\u9501\u5b9a\u67d0\u4e2a\u7528\u6237\u8d26\u53f7\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

oracle \u4fee\u6539\u4e00\u5217\u6570\u636e_oracle\u4fee\u6539\u6570\u636e\u5e93\u5bc6\u7801_linux \u4fee\u6539oracle\u6570\u636e\u5e93\u5bc6\u7801<\/p>\n

ALTER USER test ACCOUNT LOCK;<\/p>\n

\u5176\u4e2d“test”\u4e3a\u8981\u9501\u5b9a\u7684\u7528\u6237\u540d\u3002<\/p>\n

7.\u89e3\u9501\u7528\u6237\u8d26\u53f7<\/p>\n

\u5982\u679c\u9700\u8981\u89e3\u9501\u67d0\u4e2a\u88ab\u9501\u5b9a\u7684\u7528\u6237\u8d26\u53f7\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

ALTER USER test ACCOUNT UNLOCK;<\/p>\n

\u5176\u4e2d“test”\u4e3a\u8981\u89e3\u9501\u7684\u7528\u6237\u540d\u3002<\/p>\n

8.\u64a4\u9500\u7528\u6237\u6743\u9650<\/p>\n

\u5982\u679c\u9700\u8981\u64a4\u9500\u67d0\u4e2a\u7528\u6237\u7684\u6743\u9650\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

REVOKE privilege_name FROM test;<\/p>\n

\u5176\u4e2d“privilege_name”\u4e3a\u8981\u64a4\u9500\u7684\u6743\u9650\u540d\u79f0\uff0c“test”\u4e3a\u8981\u64a4\u9500\u6743\u9650\u7684\u7528\u6237\u540d\u3002<\/p>\n

9.\u6388\u4e88\u7528\u6237\u6743\u9650<\/p>\n

\u5982\u679c\u9700\u8981\u6388\u4e88\u67d0\u4e2a\u7528\u6237\u6743\u9650\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

GRANT privilege_name TO test;<\/p>\n

\u5176\u4e2d“privilege_name”\u4e3a\u8981\u6388\u4e88\u7684\u6743\u9650\u540d\u79f0\uff0c“test”\u4e3a\u8981\u6388\u4e88\u6743\u9650\u7684\u7528\u6237\u540d\u3002<\/p>\n

10.\u9000\u51faOracle\u6570\u636e\u5e93<\/p>\n

\u5b8c\u6210\u6240\u6709\u64cd\u4f5c\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9000\u51faOracle\u6570\u636e\u5e93\uff1a<\/p>\n

EXIT;<\/p>\n

\u4ee5\u4e0a\u5c31\u662f\u5728Linux\u64cd\u4f5c\u7cfb\u7edf\u4e0b\u4fee\u6539Oracle\u6570\u636e\u5e93\u5bc6\u7801\u7684\u8be6\u7ec6\u6b65\u9aa4\u548c\u6ce8\u610f\u4e8b\u9879\u3002\u901a\u8fc7\u672c\u6587\u6240\u4ecb\u7ecd\u7684\u65b9\u6cd5\uff0c\u5728\u4fdd\u8bc1\u6570\u636e\u5b89\u5168\u6027\u548c\u5b8c\u6574\u6027\u7684\u524d\u63d0\u4e0blinux\u8f6f\u4ef6\u4e0b\u8f7d\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5b8c\u6210\u5bf9Oracle\u6570\u636e\u5e93\u5bc6\u7801\u8fdb\u884c\u7ba1\u7406\u548c\u7ef4\u62a4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728Linux\u64cd\u4f5c\u7cfb\u7edf\u4e0b\u4fee\u6539Oracle\u6570\u636e\u5e93\u5bc6\u7801\u3002\u4fee\u6539\u7528\u6237\u5bc6\u7801\u672c\u6587\u5c06\u4ee5Linux\u64cd\u4f5c\u7cfb\u7edf\u4e3a\u57fa\u7840\uff0c\u4ecb\u7ecd\u5982\u4f55\u5728Linux\u4e2d\u4fee\u6539Oracle\u6570\u636e\u5e93\u5bc6\u7801\u3002\u8fde\u63a5\u5230Oracle\u6570\u636e\u5e93\u540e\uff0c\u9700\u8981\u67e5\u8be2\u8981\u4fee\u6539\u5bc6\u7801\u7684\u7528\u6237\u4fe1\u606f\u3002\u4fee\u6539\u7528\u6237\u5bc6\u7801\u67e5\u8be2\u5230\u8981\u4fee\u6539\u5bc6\u7801\u7684\u7528\u6237\u540d\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4fee\u6539\u8be5\u7528\u6237\u7684\u5bc6\u7801\uff1a\u4ee5\u4e0a\u5c31\u662f\u5728Linux\u64cd\u4f5c\u7cfb\u7edf\u4e0b\u4fee\u6539Oracle\u6570\u636e\u5e93\u5bc6\u7801\u7684\u8be6\u7ec6\u6b65\u9aa4\u548c\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n","protected":false},"author":1,"featured_media":266984,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-266983","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/266983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=266983"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/266983\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/266984"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=266983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=266983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=266983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}