Oracle 建立使用者 修改使用者密碼 授權命令

2022-08-09 20:27:15 字數 1289 閱讀 3147

create user [username] identified by [password] 建立新的使用者 

grant 許可權1、許可權2...to 使用者  給建立使用者許可權 

ex:grant create session to [username] 此時只能連線到資料庫 

grant connect,resource to [username] 此時許可權能滿足要求 

alter user [username] identified by [password] 修改使用者密碼 

alter user [username] password expired 下次登入時提示修改密碼 

alter user [username] account lock  鎖住使用者 

alter user [username] account unlock  解鎖鎖使用者 

grant select,delete on scott.emp to [username] 把scott下emp表的兩個許可權給使用者 

revoke select ,delete on scott.emo from [username] **許可權 

//建立使用者並指定表空間  

create user username identified by password  

default tablespace user_data  

temporary tablespace user_temp;  

//給使用者授予許可權  

grant connect,resource to username;  

//以後以該使用者登入,建立的任何資料庫物件都屬於user_temp 和user_data表空間,

這就不用在每建立乙個物件給其指定表空間了 

撤權:  

revoke   許可權...   from  使用者名稱;

刪除使用者命令

drop user user_name cascade;

在進行procedure執行的時候,用的是pl/sql工具中的test,除錯方法進行執行,因為有輸入引數,但是報了個錯:

「note:debugging requires the debug connect session system privilege」.

原因是使用者許可權不夠,使用以下命令授予許可權:

grant debug any procedure, debug connect session to username

其實只需要授予debug connect session 就可以了,已經過測試。

VisualSVN Server 修改使用者密碼

visualsvn server是非常方便好用的svn伺服器端軟體,但有個問題,你在伺服器端建立了使用者名稱密碼後,使用者無法自己修改密碼,據說visualsvn的客戶端可以修改使用者密碼,但客戶端是收費軟體。visualsvn server是基於apache的,所以密碼可以修改可以通過網頁來修改。...

Linux建立檢視刪除修改使用者 設定使用者密碼

檢視所有使用者cat etc passwd新增使用者useradd zrt給使用者設定密碼passwd zrt新裝的 linux 系統預設 root 使用者是沒有設定密碼的,以下給 root 使用者設定密碼 sudo passwd root刪除使用者userdel zrtuserdel f zrt ...

shell chpasswd 命令 修改使用者密碼

使用useradd 命令增加乙個使用者後,它預設是沒有設定密碼的。如果需要給使用者設定或者修改密碼,一般會使用passwd命名。但是passwd命令有乙個缺陷,它需要人工互動操作。如果你是一名系統管理員,需要一次性新建大量的使用者,那麼,手工操作無疑是不可能的事情。這種情況有兩種方法可以解決。乙個是...