{"id":209860,"date":"2022-08-20T15:11:14","date_gmt":"2022-08-20T07:11:14","guid":{"rendered":"https:\/\/www.keaglegz.com\/209860.html"},"modified":"2022-08-20T15:11:14","modified_gmt":"2022-08-20T07:11:14","slug":"%e5%a6%82%e4%bd%95%e8%a7%a3%e9%94%81oracle%e6%95%b0%e6%8d%ae%e5%ba%93%e4%b8%ad%e8%b4%a6%e5%8f%b7","status":"publish","type":"post","link":"https:\/\/www.dongwubaike.cn\/fanhao\/209860.html","title":{"rendered":"\u5982\u4f55\u89e3\u9501Oracle\u6570\u636e\u5e93\u4e2d\u8d26\u53f7"},"content":{"rendered":"\n<p>\u5728\u521b\u5efaOracle\u6570\u636e\u5e93\u65f6\uff0c\u5176\u4e2dSYS\u767b\u5f55Oracle\u6570\u636e\u5e93\u5728SQL*Plus\u5de5\u5177\u901a\u8fc7\u5982\u4e0bSQL\u89e3\u9501\u3002<\/p>\n<p>1\u3001\u901a\u8fc7\u6570\u636e\u5b57\u5178dba_users\uff0c\u67e5\u770bOracle\u8d26\u6237\u7684\u9501\u5b9a\u72b6\u6001\uff0c\u5982\u4e0b\uff1a\uff08v\u5176\u4e2d\uff0cOPEN\u8868\u793a\u8d26\u6237\u4e3a\u89e3\u9501\u72b6\u6001\uff1bEXPIRED\u8868\u793a\u8d26\u6237\u4e3a\u8fc7\u671f\u72b6\u6001(\u9700\u8981\u8bbe\u7f6e\u53e3\u4ee4\u624d\u80fd\u89e3\u9664\u6b64\u72b6\u6001)\uff1bLOCKED\u8868\u793a\u8d26\u6237\u4e3a\u9501\u5b9a\u72b6\u6001\u3002\uff09<\/p>\n<p>2\u3001\u5148\u901a\u8fc7\u67e5\u8be2\u6709\u54ea\u4e9b\u8d26\u53f7\u88ab\u9501<\/p>\n<p>&nbsp; &nbsp; select username,account_status from dba_users;<\/p>\n<p>3\u3001\u4e0b\u9762\u4f7f\u7528ALTER USER\u8bed\u53e5\u4e3ascott\u8d26\u6237\u89e3\u9501\uff1a<\/p>\n<p>&nbsp; &nbsp;  ALTER USER scott ACCOUNT UNLOCK;<\/p>\n<p>&nbsp; &nbsp;\u518d\u4f7f\u7528ALTER USER\u8bed\u53e5\u4e3ascott\u8d26\u6237\u4fee\u6539\u5bc6\u7801\u53e3\u4ee4\uff0c\u5982\u4e0b\uff1a<\/p>\n<p>&nbsp; &nbsp; ALTER USER scott IDENTIFIED BY tiger;&nbsp;<\/p>\n<p>&nbsp; &nbsp;\u901a\u8fc7\u6570\u636e\u5b57\u5178dba_users\u67e5\u770b\u73b0\u5728scott\u8d26\u6237\u7684\u72b6\u6001\uff0c\u5982\u4e0b\uff1a\u901a\u8fc7\u67e5\u8be2\u7ed3\u679c\u53ef\u4ee5\u770b\u51fa\uff0cscott\u8d26\u6237\u5df2\u7ecf\u88ab\u6210\u529f\u89e3\u9501\u3002\u5728\u4f7f\u7528\u6570\u636e\u5b57\u5178dba_users\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u5176\u5b57\u6bb5\u7684\u503c\u662f<a href=\"https:\/\/www.dongwubaike.cn\/fanhao\/tag\/%e5%8c%ba%e5%88%86\" title=\"View all posts in \u533a\u5206\" target=\"_blank\">\u533a\u5206<\/a>\u5927\u5c0f\u7684<\/p>\n<p><span style=\"background-color: #ffff00;\">\u76f8\u5173\u8d26\u53f7\u5176\u5b83\u7b56\u7565<\/span><\/p>\n<p><strong>\u4e00<\/strong><\/p>\n<p>&#8211;\uff11\uff0e<br \/>&#8211;\u7cfb\u7edf\u53c2\u6570\u914d\u7f6e\u3000\u3000connect sys\/password@db_link as sysdba<\/p>\n<p>select * from dba_profiles where resource_name like &#8216;FAILED_LOGIN_ATTEMPTS%&#8217;;<\/p>\n<p>&#8211;1 DEFAULT FAILED_LOGIN_ATTEMPTS PASSWORD 10<br \/>&#8211;\u8fde\u7eed\u9519\u8bef\u8fde\u63a510\u6b21\u7528\u6237\u88ab\u9501\u5b9a<br \/>&#8211;2.<br \/>&#8211;\u67e5\u770b\u88ab\u9501\u7684\u7528\u6237<br \/>select LOCK_DATE,username from dba_users where username=&#8217;USERNAME&#8217;; <br \/>LOCK_DATE\u4e3a\u7a7a\u8bf4\u660e\u6ca1\u6709\u9501\u5b9a\uff0c\u975e\u7a7a\u4e3a\u9501\u5b9a\u3002<\/p>\n<p>&#8212;&#8211;<br \/>SELECT S.USERNAME,<br \/>&nbsp; &nbsp; &nbsp;  DECODE(L.TYPE, &#8216;TM&#8217;, &#8216;TABLE LOCK&#8217;, &#8216;TX&#8217;, &#8216;ROW LOCK&#8217;, NULL) LOCK_LEVEL,<br \/>&nbsp; &nbsp; &nbsp;  O.OWNER,<br \/>&nbsp; &nbsp; &nbsp;  O.OBJECT_NAME,<br \/>&nbsp; &nbsp; &nbsp;  O.OBJECT_TYPE,<br \/>&nbsp; &nbsp; &nbsp;  S.SID,<br \/>&nbsp; &nbsp; &nbsp;  S.SERIAL#,<br \/>&nbsp; &nbsp; &nbsp;  S.TERMINAL,<br \/>&nbsp; &nbsp; &nbsp;  S.MACHINE,<br \/>&nbsp; &nbsp; &nbsp;  S.PROGRAM,<br \/>&nbsp; &nbsp; &nbsp;  S.OSUSER<br \/>&nbsp;  FROM V$SESSION S, V$LOCK L, DBA_OBJECTS O<br \/>WHERE S.SID = L.SID<br \/>&nbsp;  AND O.OBJECT_ID = L.ID1<br \/>&nbsp;  AND S.USERNAME IS NOT NULL;<br \/>&#8211;3. <br \/>&#8211;\u89e3\u9501\u65b9\u6cd5<br \/>ALTER USER USER_NAME ACCOUNT UNLOCK;<br \/>&#8211;\u503c\u7684\u6ce8\u610f\uff0c\u5728\u5347\u7ea7\u8fc7\u7a0b\u4e2d\uff0c\u88ab\u9501\u7684\u7528\u6237\uff0c\u6709\u53ef\u80fd\u4e0d\u503c\u4e00\u4e2a<br \/>&#8211;\u91cd\u65b0\u5347\u7ea7<\/p>\n<p><strong>&#8212;&#8211;\u8bbe\u7f6e\u7cfb\u7edf\u7684\u9ed8\u8ba4\u767b\u5f55\u6b21\u6570<\/strong><\/p>\n<p><strong>alter profile DEFAULT limit FAILED_LOGIN_ATTEMPTS 10; <\/strong><\/p>\n<p><strong>alter profile DEFAULT limit FAILED_LOGIN_ATTEMPTS UNLIMITED; <\/strong><\/p>\n<p><strong>&#8212;&#8212;&#8212;&#8212;<\/strong><\/p>\n<p><strong>\u6570\u636e\u7ba1\u7406\u5458\u4e3a\u8fd9\u4e2a\u7528\u6237\u5355\u72ec\u8bbe\u7f6e\u4e86\u767b\u5f55\u6b21\u6570\u5219\u8981\u67e5\u627e\u8fd9\u4e2a\u7528\u6237\u5bf9\u5e94\u7684profile\uff0c\u7136\u540e\u4fee\u6539.\u53ef\u4ee5\u67e5\u770b\u7528\u6237\u7684\u521b\u5efa\u8bed\u540d\u627e\u5230\u5bf9\u5e94\u7684\u8bbe\u7f6e\u3002<\/strong><\/p>\n<p style=\"text-indent: 21pt;\">Oracle\u7cfb\u7edf\u4e2d\u7684profile\u53ef\u4ee5\u7528\u6765\u5bf9\u7528\u6237\u6240\u80fd\u4f7f\u7528\u7684\u6570\u636e\u5e93\u8d44\u6e90\u8fdb\u884c\u9650\u5236\uff0c\u4f7f\u7528 Create Profile\u547d\u4ee4\u521b\u5efa\u4e00\u4e2aProfile\uff0c\u7528\u5b83\u6765\u5b9e\u73b0\u5bf9\u6570\u636e\u5e93\u8d44\u6e90\u7684\u9650\u5236\u4f7f\u7528\uff0c\u5982\u679c\u628a\u8be5profile\u5206\u914d\u7ed9\u7528\u6237\uff0c\u5219\u8be5\u7528\u6237\u6240\u80fd\u4f7f\u7528\u7684\u6570\u636e\u5e93\u8d44\u6e90\u90fd\u5728\u8be5 profile\u7684\u9650\u5236\u4e4b\u5185\u3002<\/p>\n<p><strong>\u4e8c\u3001\u6761\u4ef6\uff1a<\/strong><\/p>\n<p style=\"text-indent: 21pt;\">\u521b\u5efaprofile\u5fc5\u987b\u8981\u6709CREATE PROFILE\u7684\u7cfb\u7edf\u6743\u9650\u3002<\/p>\n<p style=\"text-indent: 21pt;\">\u4e3a\u7528\u6237\u6307\u5b9a\u8d44\u6e90\u9650\u5236\uff0c\u5fc5\u987b\uff1a<\/p>\n<p style=\"text-indent: 21pt;\">1\uff0e\u52a8\u6001\u5730\u4f7f\u7528alter system\u6216\u4f7f\u7528\u521d\u59cb\u5316\u53c2\u6570resource_limit\u4f7f\u8d44\u6e90\u9650\u5236\u751f\u6548\u3002\u8be5\u6539\u53d8\u5bf9\u5bc6\u7801\u8d44\u6e90\u65e0\u6548\uff0c\u5bc6\u7801\u8d44\u6e90\u603b\u662f\u53ef\u7528\u3002<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt;\">SQL&gt; show parameter resource_limit<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt;\">NAME&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  TYPE&nbsp; &nbsp; &nbsp; &nbsp; VALUE<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt;\">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash; &mdash;&mdash;&mdash;&ndash; &mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt;\">resource_limit&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  boolean&nbsp; &nbsp;  FALSE<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt;\">&nbsp;<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt;\">SQL&gt; alter system set resource_limit=true;<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt;\">\u7cfb\u7edf\u5df2\u66f4\u6539\u3002<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt;\">SQL&gt; show parameter resource_limit;<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt;\">NAME&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  TYPE&nbsp; &nbsp; &nbsp; &nbsp; VALUE<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt;\">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash; &mdash;&mdash;&mdash;&ndash; &mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt;\">resource_limit&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boolean&nbsp; &nbsp;  TRUE<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt;\">SQL&gt;<\/p>\n<p style=\"text-indent: 21pt;\">2\uff0e\u4f7f\u7528create profile\u521b\u5efa\u4e00\u4e2a\u5b9a\u4e49\u5bf9\u6570\u636e\u5e93\u8d44\u6e90\u8fdb\u884c\u9650\u5236\u7684profile\u3002<\/p>\n<p style=\"text-indent: 21pt;\">3\uff0e\u4f7f\u7528create user \u6216alter user\u547d\u4ee4\u628aprofile\u5206\u914d\u7ed9\u7528\u6237\u3002<\/p>\n<p><strong>\u4e09\u3001\u8bed\u6cd5\uff1a<\/strong><\/p>\n<p><span style=\"font-size: x-small;\">&nbsp; &nbsp;  <span style=\"font-size: small;\">CREATE PROFILE profile <br \/><\/span><span style=\"font-size: small;\">LIMIT { resource_parameters | password_parameters } [ resource_parameters | password_parameters ]&hellip; ;<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><em>&lt;resource_parameters&gt;<\/em><\/span><\/p>\n<p><span style=\"font-size: small;\">{{ SESSIONS_PER_USER | CPU_PER_SESSION | CPU_PER_CALL | CONNECT_TIME | IDLE_TIME | LOGICAL_READS_PER_SESSION | LOGICAL_READS_PER_CALL | COMPOSITE_LIMIT } { integer | UNLIMITED | DEFAULT }<br \/>| PRIVATE_SGA { integer [ K | M ] | UNLIMITED | DEFAULT }}<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt;\"><em><span style=\"font-size: small;\">&lt; password_parameters &gt;<\/span><\/em><\/p>\n<p><span style=\"font-size: small;\">{{ FAILED_LOGIN_ATTEMPTS | PASSWORD_LIFE_TIME | PASSWORD_REUSE_TIME | PASSWORD_REUSE_MAX | PASSWORD_LOCK_TIME | PASSWORD_GRACE_TIME } { expr | UNLIMITED | DEFAULT }<br \/>| PASSWORD_VERIFY_FUNCTION { function | NULL | DEFAULT }}<\/span><\/p>\n<p><strong>\u56db\u3001\u8bed\u6cd5\u89e3\u91ca\uff1a<\/strong><\/p>\n<p>&nbsp; &nbsp; &nbsp;  profile\uff1a\u914d\u7f6e\u6587\u4ef6\u7684\u540d\u79f0\u3002Oracle\u6570\u636e\u5e93\u4ee5\u4ee5\u4e0b\u65b9\u5f0f\u5f3a\u8feb\u8d44\u6e90\u9650\u5236\uff1a<\/p>\n<p>&nbsp; &nbsp; &nbsp;  1\uff0e\u5982\u679c\u7528\u6237\u8d85\u8fc7\u4e86connect_time\u6216idle_time\u7684\u4f1a\u8bdd\u8d44\u6e90\u9650\u5236\uff0c\u6570\u636e\u5e93\u5c31\u56de\u6eda\u5f53\u524d\u4e8b\u52a1\uff0c\u5e76\u7ed3\u675f\u4f1a\u8bdd\u3002\u7528\u6237\u518d\u6b21\u6267\u884c\u547d\u4ee4\uff0c\u6570\u636e\u5e93\u5219\u8fd4\u56de\u4e00\u4e2a\u9519\u8bef\uff0c<\/p>\n<p>&nbsp; &nbsp; &nbsp;  2\uff0e\u5982\u679c\u7528\u6237\u8bd5\u56fe\u6267\u884c\u8d85\u8fc7\u5176\u4ed6\u7684\u4f1a\u8bdd\u8d44\u6e90\u9650\u5236\u7684\u64cd\u4f5c\uff0c\u6570\u636e\u5e93\u653e\u5f03\u64cd\u4f5c\uff0c\u56de\u6eda\u5f53\u524d\u4e8b\u52a1\u5e76\u7acb\u5373\u8fd4\u56de\u9519\u8bef\u3002\u7528\u6237\u4e4b\u540e\u53ef\u4ee5\u63d0\u4ea4\u6216\u56de\u6eda\u5f53\u524d\u4e8b\u52a1\uff0c\u5fc5\u987b\u7ed3\u675f\u4f1a\u8bdd\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  \u63d0\u793a\uff1a\u53ef\u4ee5\u5c06\u4e00\u6761\u5206\u6210\u591a\u4e2a\u6bb5\uff0c\u59821\u5c0f\u65f6(1\/24\u5929)\u6765\u9650\u5236\u65f6\u95f4\uff0c\u53ef\u4ee5\u4e3a\u7528\u6237\u6307\u5b9a\u8d44\u6e90\u9650\u5236\uff0c\u4f46\u662f\u6570\u636e\u5e93\u53ea\u6709\u5728\u53c2\u6570\u751f\u6548\u540e\u624d\u4f1a\u6267\u884c\u9650\u5236\u3002&nbsp; &nbsp; &nbsp; <\/p>\n<p>&nbsp; &nbsp; &nbsp;  Unlimited\uff1a\u5206\u914d\u8be5profile\u7684\u7528\u6237\u5bf9\u8d44\u6e90\u4f7f\u7528\u65e0\u9650\u5236\uff0c\u5f53\u4f7f\u7528\u5bc6\u7801\u53c2\u6570\u65f6\uff0cunlimited\u610f\u5473\u7740\u6ca1\u6709\u5bf9\u53c2\u6570\u52a0\u9650\u5236\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Default\uff1a\u6307\u5b9a\u4e3adefault\u610f\u5473\u7740\u5ffd\u7565\u5bf9profile\u4e2d\u7684\u4e00\u4e9b\u8d44\u6e90\u9650\u5236\uff0cDefault profile\u521d\u59cb\u5b9a\u4e49\u5bf9\u8d44\u6e90\u4e0d\u9650\u5236\uff0c\u53ef\u4ee5\u901a\u8fc7alter profile\u547d\u4ee4\u6765\u6539\u53d8\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  <span style=\"text-decoration: underline;\">Resource_parameter<\/span><span style=\"text-decoration: underline;\">\u90e8\u5206\uff1a<\/span> &nbsp; &nbsp; &nbsp;<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Session_per_user\uff1a\u6307\u5b9a\u9650\u5236\u7528\u6237\u7684\u5e76\u53d1\u4f1a\u8bdd\u7684\u6570\u76ee\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Cpu_per_session\uff1a\u6307\u5b9a\u4f1a\u8bdd\u7684CPU\u65f6\u95f4\u9650\u5236\uff0c\u5355\u4f4d\u4e3a\u767e\u5206\u4e4b\u4e00\u79d2\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Cpu_per_call\uff1a\u6307\u5b9a\u4e00\u6b21\u8c03\u7528\uff08\u89e3\u6790\u3001\u6267\u884c\u548c\u63d0\u53d6\uff09\u7684CPU\u65f6\u95f4\u9650\u5236\uff0c\u5355\u4f4d\u4e3a\u767e\u5206\u4e4b\u4e00\u79d2\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Connect_time\uff1a\u6307\u5b9a\u4f1a\u8bdd\u7684\u603b\u7684\u8fde\u63a5\u65f6\u95f4\uff0c\u4ee5\u5206\u949f\u4e3a\u5355\u4f4d\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Idle_time\uff1a\u6307\u5b9a\u4f1a\u8bdd\u5141\u8bb8\u8fde\u7eed\u4e0d\u6d3b\u52a8\u7684\u603b\u7684\u65f6\u95f4\uff0c\u4ee5\u5206\u949f\u4e3a\u5355\u4f4d\uff0c\u8d85\u8fc7\u8be5\u65f6\u95f4\uff0c\u4f1a\u8bdd\u5c06\u65ad\u5f00\u3002\u4f46\u662f\u957f\u65f6\u95f4\u8fd0\u884c\u67e5\u8be2\u548c\u5176\u4ed6\u64cd\u4f5c\u7684\u4e0d\u53d7\u6b64\u9650\u5236\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Logical_reads_per_session\uff1a\u6307\u5b9a\u4e00\u4e2a\u4f1a\u8bdd\u5141\u8bb8\u8bfb\u7684\u6570\u636e\u5757\u7684\u6570\u76ee\uff0c\u5305\u62ec\u4ece\u5185\u5b58\u548c\u78c1\u76d8\u8bfb\u7684\u6240\u6709\u6570\u636e\u5757\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Logical_read_per_call\uff1a\u6307\u5b9a\u4e00\u6b21\u6267\u884cSQL\uff08\u89e3\u6790\u3001\u6267\u884c\u548c\u63d0\u53d6\uff09\u8c03\u7528\u6240\u5141\u8bb8\u8bfb\u7684\u6570\u636e\u5757\u7684\u6700\u5927\u6570\u76ee\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Private_sga\uff1a\u6307\u5b9a\u4e00\u4e2a\u4f1a\u8bdd\u53ef\u4ee5\u5728\u5171\u4eab\u6c60\uff08SGA\uff09\u4e2d\u6240\u5141\u8bb8\u5206\u914d\u7684\u6700\u5927\u7a7a\u95f4\uff0c\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d\u3002\uff08\u8be5\u9650\u5236\u53ea\u5728\u4f7f\u7528\u5171\u4eab\u670d\u52a1\u5668\u7ed3\u6784\u65f6\u624d\u6709\u6548\uff0c\u4f1a\u8bdd\u5728SGA\u4e2d\u7684\u79c1\u6709\u7a7a\u95f4\u5305\u62ec\u79c1\u6709\u7684SQL\u548cPL\/SQL\uff0c\u4f46\u4e0d\u5305\u62ec\u5171\u4eab\u7684SQL\u548cPL\/SQL\uff09\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Composite_limit\uff1a\u6307\u5b9a\u4e00\u4e2a\u4f1a\u8bdd\u7684\u603b\u7684\u8d44\u6e90\u6d88\u8017\uff0c\u4ee5service units\u5355\u4f4d\u8868\u793a\u3002Oracle\u6570\u636e\u5e93\u4ee5\u6709\u5229\u7684\u65b9\u5f0f\u8ba1\u7b97cpu_per_session\uff0cconnect_time\uff0c logical_reads_per_session\u548cprivate-sga\u603b\u7684service units<\/p>\n<p>&nbsp; &nbsp; &nbsp;  <span style=\"text-decoration: underline;\">Password_parameter<\/span><span style=\"text-decoration: underline;\">\u90e8\u5206\uff1a<\/span>&nbsp; &nbsp; &nbsp; <\/p>\n<p>&nbsp; &nbsp; &nbsp;  Failed_login_attempts\uff1a\u6307\u5b9a\u5728\u5e10\u6237\u88ab\u9501\u5b9a\u4e4b\u524d\u6240\u5141\u8bb8\u5c1d\u8bd5\u767b\u9646\u7684\u7684\u6700\u5927\u6b21\u6570\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Password_life_time\uff1a\u6307\u5b9a\u540c\u4e00\u5bc6\u7801\u6240\u5141\u8bb8\u4f7f\u7528\u7684\u5929\u6570\u3002\u5982\u679c\u540c\u65f6\u6307\u5b9a\u4e86 password_grace_time\u53c2\u6570\uff0c\u5982\u679c\u5728grace period\u5185\u6ca1\u6709\u6539\u53d8\u5bc6\u7801\uff0c\u5219\u5bc6\u7801\u4f1a\u5931\u6548\uff0c\u8fde\u63a5\u6570\u636e\u5e93\u88ab\u62d2\u7edd\u3002\u5982\u679c\u6ca1\u6709\u8bbe\u7f6epassword_grace_time\u53c2\u6570\uff0c\u9ed8\u8ba4\u503cunlimited\u5c06\u5f15 \u53d1\u4e00\u4e2a\u6570\u636e\u5e93\u8b66\u544a\uff0c\u4f46\u662f\u5141\u8bb8\u7528\u6237\u7ee7\u7eed\u8fde\u63a5\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Password_reuse_time\u548cpassword_reuse_max\uff1a\u8fd9\u4e24\u4e2a\u53c2\u6570\u5fc5\u987b\u4e92\u76f8\u5173\u8054\u8bbe\u7f6e\uff0cpassword_reuse_time \u6307\u5b9a\u4e86\u5bc6\u7801\u4e0d\u80fd\u91cd\u7528\u524d\u7684\u5929\u6570\uff0c\u800cpassword_reuse_max\u5219\u6307\u5b9a\u4e86\u5f53\u524d\u5bc6\u7801\u88ab\u91cd\u7528\u4e4b\u524d\u5bc6\u7801\u6539\u53d8\u7684\u6b21\u6570\u3002\u4e24\u4e2a\u53c2\u6570\u90fd\u5fc5\u987b\u88ab\u8bbe\u7f6e\u4e3a\u6574\u6570\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  1\uff0e\u5982\u679c\u4e3a\u8fd9\u4e24\u4e2a\u53c2\u6570\u6307\u5b9a\u4e86\u6574\u6570\uff0c\u5219\u7528\u6237\u4e0d\u80fd\u91cd\u7528\u5bc6\u7801\u76f4\u5230\u5bc6\u7801\u88ab\u6539\u53d8\u4e86password_reuse_max\u6307\u5b9a\u7684\u6b21\u6570\u4ee5\u540e\u5728password_reuse_time\u6307\u5b9a\u7684\u65f6\u95f4\u5185\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  \u5982\uff1apassword_reuse_time=30\uff0cpassword_reuse_max=10\uff0c\u7528\u6237\u53ef\u4ee5\u572830\u5929\u4ee5\u540e\u91cd\u7528\u8be5\u5bc6\u7801\uff0c\u8981\u6c42\u5bc6\u7801\u5fc5\u987b\u88ab\u6539\u53d8\u8d85\u8fc710\u6b21\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  2\uff0e\u5982\u679c\u6307\u5b9a\u4e86\u5176\u4e2d\u7684\u4e00\u4e2a\u4e3a\u6574\u6570\uff0c\u800c\u53e6\u4e00\u4e2a\u4e3aunlimited\uff0c\u5219\u7528\u6237\u6c38\u8fdc\u4e0d\u80fd\u91cd\u7528\u4e00\u4e2a\u5bc6\u7801\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  3\uff0e\u5982\u679c\u6307\u5b9a\u4e86\u5176\u4e2d\u7684\u4e00\u4e2a\u4e3adefault\uff0cOracle\u6570\u636e\u5e93\u4f7f\u7528\u5b9a\u4e49\u5728profile\u4e2d\u7684\u9ed8\u8ba4\u503c\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u6240\u6709\u7684\u53c2\u6570\u5728profile\u4e2d\u90fd\u88ab\u8bbe\u7f6e\u4e3aunlimited\uff0c\u5982\u679c\u6ca1\u6709\u6539\u53d8profile\u9ed8\u8ba4\u503c\uff0c\u6570\u636e\u5e93\u5bf9\u8be5\u503c\u603b\u662f\u9ed8\u8ba4\u4e3aunlimited\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  4\uff0e\u5982\u679c\u4e24\u4e2a\u53c2\u6570\u90fd\u8bbe\u7f6e\u4e3aunlimited\uff0c\u5219\u6570\u636e\u5e93\u5ffd\u7565\u4ed6\u4eec\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Password_lock_time\uff1a\u6307\u5b9a\u767b\u9646\u5c1d\u8bd5\u5931\u8d25\u6b21\u6570\u5230\u8fbe\u540e\u5e10\u6237\u7684\u7f29\u5b9a\u65f6\u95f4\uff0c\u4ee5\u5929\u4e3a\u5355\u4f4d\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Password_grace_time\uff1a\u6307\u5b9a\u5bbd\u9650\u5929\u6570\uff0c\u6570\u636e\u5e93\u53d1\u51fa\u8b66\u544a\u5230\u767b\u9646\u5931\u6548\u524d\u7684\u5929\u6570\u3002\u5982\u679c\u6570\u636e\u5e93\u5bc6\u7801\u5728\u8fd9\u4e2d\u95f4\u6ca1\u6709\u88ab\u4fee\u6539\uff0c\u5219\u8fc7\u671f\u4f1a\u5931\u6548\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp;  Password_verify_function\uff1a\u8be5\u5b57\u6bb5\u5141\u8bb8\u5c06\u590d\u6742\u7684PL\/SQL\u5bc6\u7801\u9a8c\u8bc1\u811a\u672c\u505a \u4e3a\u53c2 \u6570\u4f20\u9012\u5230create profile\u8bed\u53e5\u3002Oracle\u6570\u636e\u5e93\u63d0\u4f9b\u4e86\u4e00\u4e2a\u9ed8\u8ba4\u7684\u811a\u672c\uff0c\u4f46\u662f\u81ea\u5df1\u53ef\u4ee5\u521b\u5efa\u81ea\u5df1\u7684\u9a8c\u8bc1\u89c4\u5219\u6216\u4f7f\u7528\u7b2c\u4e09\u65b9\u8f6f\u4ef6\u9a8c\u8bc1\u3002 \u5bf9Function\u540d\u79f0\uff0c\u6307\u5b9a\u7684\u662f\u5bc6\u7801\u9a8c\u8bc1\u89c4\u5219\u7684\u540d\u79f0\uff0c\u6307\u5b9a\u4e3aNull\u5219\u610f\u5473\u7740\u4e0d\u4f7f\u7528\u5bc6\u7801\u9a8c\u8bc1\u529f\u80fd\u3002\u5982\u679c\u4e3a\u5bc6\u7801\u53c2\u6570\u6307\u5b9a\u8868\u8fbe\u5f0f\uff0c\u5219\u8be5\u8868\u8fbe\u5f0f\u53ef\u4ee5\u662f\u4efb\u610f\u683c \u5f0f\uff0c\u9664\u4e86\u6570\u636e\u5e93\u6807\u91cf\u5b50\u67e5\u8be2\u3002&nbsp; &nbsp; &nbsp; <\/p>\n<p><strong>\u4e94\u3001\u4e3e\u4f8b\uff1a<\/strong><\/p>\n<p>&nbsp; &nbsp; &nbsp;  1\uff0e\u521b\u5efa\u4e00\u4e2aprofile\uff1a<\/p>\n<p>&nbsp; &nbsp; &nbsp;  create profile new_profile limit password_reuse_max 10 password_reuse_time 30;<\/p>\n<p>&nbsp; &nbsp; &nbsp;  2\uff0e\u8bbe\u7f6eprofile\u8d44\u6e90\u9650\u5236\uff1a<\/p>\n<p>&nbsp; &nbsp; &nbsp;  create profile app_user limit sessions_per_user unlimited cpu_per_session unlimited cpu_per_call 3000 connect_time 45 logical_reads_per_session default logical_reads_per_call 1000 private_sga 15k composite_limit 5000000;<\/p>\n<p>&nbsp; &nbsp; &nbsp;  \u603b\u7684resource cost\u4e0d\u8d85\u8fc7\u4e94\u767e\u4e07service units\u3002\u8ba1\u7b97\u603b\u7684resource cost\u7684\u516c\u5f0f\u7531alter resource cost\u8bed\u53e5\u6765\u6307\u5b9a\u3002&nbsp; &nbsp; &nbsp; <\/p>\n<p>&nbsp; &nbsp; &nbsp;  3\uff0e\u8bbe\u7f6e\u5bc6\u7801\u9650\u5236profile\uff1a<\/p>\n<p>&nbsp; &nbsp; &nbsp;  create profile app_users2 limit failed_login_attempts 5 password_life_time 60 password_reuse_time 60 password_reuse_max 5 password_verify_function verify_function password_lock_time 1\/24 password_grace_time 10;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n<p>&nbsp; &nbsp; &nbsp;  4\uff0e\u5c06\u914d\u7f6e\u6587\u4ef6\u5206\u914d\u7ed9\u7528\u6237\uff1a<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SQL&gt; alter user dinya profile app_user;<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt; text-indent: 21pt;\">\u7528\u6237\u5df2\u66f4\u6539\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SQL&gt; alter user dinya profile default;<\/p>\n<p style=\"margin: 0cm 0cm 0pt 21pt; text-indent: 21pt;\">\u7528\u6237\u5df2\u66f4\u6539\u3002<\/p>\n<p><span><span style=\"color: #ff0000;\">\u66f4\u591aOracle\u76f8\u5173\u4fe1\u606f\u89c1<\/span><span style=\"color: #0000ff;\">Oracle<\/span><span style=\"color: #ff0000;\"> \u4e13\u9898\u9875\u9762 <\/span><span style=\"color: #0000ff;\">http:\/\/www.linuxidc.com\/topicnews.aspx?tid=12<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><strong>\u672c\u6587\u6c38\u4e45\u66f4\u65b0\u94fe\u63a5\u5730\u5740<\/strong><\/span>\uff1ahttp:\/\/www.linuxidc.com\/Linux\/2018-01\/150044.htm<\/p>\n<p><a href=\"http:\/\/cuohei.com\/innodb\/uploads\/allimg\/linux14\/logo.gif\" data-fancybox=\"images\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/cuohei.com\/innodb\/uploads\/allimg\/linux14\/logo.gif\" width=\"15\" height=\"17\" alt=\"\u5982\u4f55\u89e3\u9501Oracle\u6570\u636e\u5e93\u4e2d\u8d26\u53f7\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u521b\u5efaOracle\u6570\u636e\u5e93\u65f6\uff0c\u5176\u4e2dSYS\u767b\u5f55Oracle\u6570\u636e\u5e93\u5728SQL*Plus\u5de5\u5177\u901a\u8fc7\u5982\u4e0bSQL\u89e3\u9501\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[100065],"class_list":["post-209860","post","type-post","status-publish","format-standard","hentry","tag-100065"],"_links":{"self":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/posts\/209860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/comments?post=209860"}],"version-history":[{"count":0,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/posts\/209860\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/media?parent=209860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/categories?post=209860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/tags?post=209860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}