Oracle 11g´æÔÚÃÜÂë¹ýÆÚÎÊÌâ
¡¾ÔÒò/´¥·¢ÒòËØ¡¿
È·¶¨ÊÇÓÉÓÚoracle11gÖÐĬÈÏÔÚdefault¸ÅÒªÎļþÖÐÉèÖÃÁË“PASSWORD_LIFE_TIME=180Ìì”Ëùµ¼Ö¡£
¡¾Ó°ÏìºÍ·çÏÕ¡¿
Ó°Ïì
ÃÜÂë¹ýÆÚºó£¬ÒµÎñ½ø³ÌÁ¬½ÓÊý¾Ý¿âÒì³££¬Ó°ÏìÒµÎñʹÓá£
ÎÊÌâ·¢ÉúƵÂÊ
Êý¾Ý¿âÃÜÂë¹ýÆÚºó£¬ÒµÎñ½ø³ÌÒ»µ©ÖØÆô»áÌáʾÁ¬½Óʧ°Ü¡£
¡¾½â¾ö·½°¸¡¿
°´ÕÕÈçϲ½Öè½øÐвÙ×÷£º
1¡¢²é¿´Óû§µÄproifleÊÇÄĸö£¬Ò»°ãÊÇdefault£º
sql>SELECT username,PROFILE from dba_users;
2¡¢²é¿´Ö¸¶¨¸ÅÒªÎļþ£¨Èçdefault£©µÄÃÜÂëÓÐЧÆÚÉèÖãº
sql>SELECT * from dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
3¡¢½«ÃÜÂëÓÐЧÆÚÓÉĬÈϵÄ180ÌìÐ޸ijɓÎÞÏÞÖÆ”£º
sql>ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
ÐÞ¸ÄÖ®ºó²»ÐèÒªÖØÆô¶¯Êý¾Ý¿â£¬»áÁ¢¼´ÉúЧ¡£
4¡¢Ð޸ĺ󣬻¹Ã»Óб»ÌáʾORA-28002¾¯¸æµÄÕÊ»§²»»áÔÙÅöµ½Í¬ÑùµÄÌáʾ£»
ÒѾ±»ÌáʾµÄÕÊ»§±ØÐëÔÙ¸ÄÒ»´ÎÃÜÂ룬¾ÙÀýÈçÏ£º
$sqlplus / as sysdba
sql> alter user smsc identified by <ÔÀ´µÄÃÜÂë> ----²»Óû»ÐÂÃÜÂë
oracle11gÆô¶¯²ÎÊýresource_limitÎÞÂÛÉèÖÃΪfalse»¹ÊÇtrue£¬ÃÜÂëÓÐЧÆÚ¶¼ÊÇÉúЧµÄ£¬ËùÒÔ±ØÐëͨ¹ýÒÔÉÏ·½Ê½½øÐÐÐ޸ġ£ÒÔÉϵÄÕÊ»§ÃûÇë¸ù¾Ýʵ¼ÊʹÓõÄÕÊ»§Ãû¸ü¸Ä¡£
¶þ¡¢¡¾ÎÊÌâÃèÊö¡¿
½üÈÕH¾Öµã·´À¡£¬Ê¹ÓÃsqlplusµÇ½¶ÌÏûÏ¢oracleÊý¾Ý¿âʱÌáʾ“ORA-28000: Õʺű»Ëø¶¨”¡£
¡¾ÔÒò/´¥·¢ÒòËØ¡¿
È·¶¨ÊÇÓÉÓÚoracle11gÖÐĬÈÏÔÚdefault¸ÅÒªÎļþÖÐÉèÖÃÁË“FAILED_LOGIN_ATTEMPTS=10´Î”£¬µ±ÊäÈëÃÜÂë´íÎó´ÎÊý´ïµ½ÉèÖÃÖµ½«µ¼Ö´ËÎÊÌâ¡£
¡¾Ó°ÏìºÍ·çÏÕ¡¿
Ó°Ïì
Õʺű»Ëø¶¨ºó£¬ÒµÎñ½ø³ÌÁ¬½ÓÊý¾Ý¿âÒì³££¬Ó°ÏìÒµÎñʹÓá£
ÎÊÌâ·¢ÉúƵÂÊ
Êý¾Ý¿âÕʺű»Ëø¶¨ºó£¬ÒµÎñ½ø³ÌÒ»µ©ÖØÆô»áÌáʾÁ¬½Óʧ°Ü¡£
¡¾½â¾ö·½°¸¡¿
°´ÕÕÈçϲ½Öè½øÐвÙ×÷£º
1¡¢²é¿´Óû§µÄproifleÊÇÄĸö£¬Ò»°ãÊÇdefault£º
sql>SELECT username,PROFILE from dba_users;
2¡¢²é¿´Ö¸¶¨¸ÅÒªÎļþ£¨Èçdefault£©µÄÃÜÂëÓÐЧÆÚÉèÖãº
sql>SELECT * from dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='FAILED_LOGIN_ATTEMPTS';
3¡¢½«³¢ÊԵǼʧ°Ü´ÎÊýÓÉĬÈϵÄ10´ÎÐ޸ijɓÎÞÏÞÖÆ”£º
sql>ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;
4¡¢Ð޸ĺ󣬻¹Ã»Óб»ÌáʾORA-28000¾¯¸æµÄÓû§²»»áÔÙÅöµ½Í¬ÑùµÄÌáʾ£»
ÒѾ±»Ëø¶¨µÄÕÊ»§±ØÐë½
Ïà¹ØÎĵµ£º
ÏîÄ¿ÖÐÐèҪʹÓõ½°´¹æÔòÉú³ÉÐòÁкţ¬¿ªÊ¼µÄ½â¾ö°ì·¨ÊǸù¾ÝÌõ¼þÈ¡µÃ×î´óIDºÅ½øÐзֽâ+1Ôٺϲ¢µÄ½â¾ö·½°¸£¬ºóÀ´·¢ÏÖÈç¹ûÁ½¸ö¿Í»§Í¬Ê±²Ù×÷µÄʱºò³öÏÖÎÊÌ⣺Ìí¼ÓµÄʱºòIDÒѾ´æÔÚ£¬ÔÒòÊÇ£ºAÓû§ÔÚ·ÃÎÊÈ¡µÃµÚMAX(N)¼Ç¼deID£¬µ«ÊÇ»¹Ã»ÓнøÐÐÔö¼Ó²Ù×÷£¬Õâʱ£¬BÓû§Ò²È¡µÃµÚMAX(N)¼Ç¼deID£¬ÕâÊÇ£Á½øÐÐÌí¼Ó²Ù×÷ͬʱ£¬£ÂҲͬʱ½øÐÐ ......
Oracle Connect ByÓ÷¨
oracleÖеÄselectÓï¾ä¿ÉÒÔÓÃSTART WITH...CONNECT BY PRIOR×Ó¾äʵÏֵݹé²éѯ£¬connect by Êǽṹ»¯²éѯÖÐÓõ½µÄ£¬Æä»ù±¾Óï·¨ÊÇ£º
select ... from <TableName>
where <Conditional-1>
start with <Conditional-2>
connect by <Conditional-3>
;
<Conditi ......
OracleÖеÄÐòÁкŹËÃû˼Òå¾ÍÊÇ´´½¨Ò»¸öÐòÁкţ¬¿ÉÒÔÔÚ²åÈë»òÕ߸üеÄʱºòµ÷Óã¬Ï൱ÓÚÊÇÒ»¸öÉú³ÉÆ÷
´´½¨Óï·¨£º
create sequence myse
increment by 1 --Ôö³¤¶È
start with
1 --´ÓÄÄÀïÔö¼Ó£¬¾ÍÊÇ˵ÏÂÒ»¸ö»ñÈ¡µÄÖµ´ÓÕâ¸öÖµ ......
Ê×ÏÈÈ¥http://metalink.oracle.com ÏÂÔØÏà¹ØµÄ²¹¶¡°ü,ÒòΪÊÇ64λfor windowsµÄ°üÊÇp6810189_10204_MSWIN-x86-64.zip,ÏÂÔصØÖ·:
ftp://updates.oracle.com/6810189/p6810189_10204_MSWIN-x86-64.zip
²Ù×÷ÈçÏÂ.
(1) OracleÍƼöÔÚÉý¼¶Ö®Ç°ÏÈ×öÒ»¸öÈ«¿âµÄ±¸·Ý£»
(2) Í£Ö¹ËùÓеÄOracle·þÎñ
emctl stop dbconsole
isqlplusc ......