自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle密碼過期與profile的使用方法

數(shù)據(jù)庫 Oracle
測試環(huán)境下學習Oracle的時候,不需要經(jīng)常修改密碼,因此可以關閉密碼驗證,從而回避Oracle密碼過期的問題。這個可以通過profile來實現(xiàn)。

下面介紹的這則技巧適用于在測試環(huán)境學習Oracle的讀者,而并不能用作真實數(shù)據(jù)庫管理的指導。這則技巧有關Oracle密碼過期問題以及Profile的使用方法。

在測試環(huán)境學習oracle,出現(xiàn)Oracle密碼過期的問題,更改密碼提示驗證未通過,因為為測試環(huán)境,為方便期間,不需要經(jīng)常修改密碼,在此發(fā)現(xiàn)profile的使用方法,記錄如下。

  1. SQL> SELECT * FROM dba_profiles ; 

查看用戶所屬的 profile ,一般為DEFAULT

  1. SQL>select * from dba_profiles where resource_type='PASSWORD';  
  2.  
  3. SQL> alter user lh identified by lh;  
  4.  
  5. alter user lh identified by lh  
  6.  
  7. ORA-28003: password verification for the specified password failed  
  8. ORA-20001: Password same as or similar to user 

取消密碼管理:

  1. SQL>alter profile DEFAULT limit <password_parameter> unlimited;  

如:

  1. SQL>alter profile DEFAULT limit password_reuse_time unlimited;  
  2.  

停止密碼檢驗函數(shù):

  1. SQL>alter profile DEFAULT limit password_verify_function null

創(chuàng)建 用戶 專用 profile:

  1. CREATE PROFILE test LIMIT   
  2. SESSIONS_PER_USER       UNLIMITED   
  3. CPU_PER_SESSION          UNLIMITED   
  4. CPU_PER_CALL             3000   
  5. CONNECT_TIME             45   
  6. LOGICAL_READS_PER_SESSION   DEFAULT   
  7. LOGICAL_READS_PER_CALL     1000   
  8. PRIVATE_SGA             15K   
  9. COMPOSITE_LIMIT          5000000; 

如需更改:

  1. SQL>alter profile test limit PASSWORD_LIFE_TIME 60 ; 

更改用戶profile

  1. SQL>alter user scott profile test; 

這樣就關閉了密碼驗證,從而回避了Oracle密碼過期問題。

【編輯推薦】

  1. Oracle用戶權限及角色管理淺談
  2. Oracle用戶權限的創(chuàng)建及分配
  3. Oracle默認用戶名與密碼速查表
  4. 在命令行下進行Oracle用戶解鎖
  5. 五種Oracle用戶的授權與管理
責任編輯:yangsai 來源: 百度空間
相關推薦

2010-10-29 11:45:09

oracle用戶密碼

2010-05-10 16:17:19

Oracle LogM

2010-04-29 09:16:16

Oracle密碼過期處

2017-08-31 15:57:53

數(shù)據(jù)Oracle用戶密碼

2010-05-04 09:44:12

Oracle Trig

2010-05-04 14:02:53

Oracle同義詞

2011-08-23 18:04:16

Oracle 10g數(shù)據(jù)泵

2011-04-15 09:11:21

2010-10-29 09:13:33

Oracle用戶密碼

2010-04-19 17:10:53

Oracle用戶密碼

2012-01-13 09:55:54

jQuery

2011-02-24 13:09:10

FireFTP

2010-02-23 10:58:47

CentOS NTFS

2010-04-20 16:46:41

Oracle數(shù)據(jù)庫密碼

2009-12-21 17:23:56

ADO.Net程序

2013-07-15 15:12:40

iOS多線程NSOperationNSOperation

2009-12-02 16:04:44

PHP fsockop

2021-01-03 09:33:48

密碼數(shù)字身份加密解密

2009-12-24 16:36:06

WPF InkCanv

2010-10-08 16:01:17

mysql UPDAT
點贊
收藏

51CTO技術棧公眾號