oracle命令行刪除與創(chuàng)建用戶的代碼
更新時間:2008年01月08日 13:01:38 作者:
oracle命令行刪除與創(chuàng)建用戶的代碼
oracle命令行刪除用戶:
connect / as sysdba;
shutdown abort;
startup;
drop user user1 cascade;
exit
oracle命令行創(chuàng)建用戶:
create user user1
identified by values 'fa091872a2cc669c'
default tablespace user1
temporary tablespace temp
profile default
account unlock;
-- 4 roles for user1
grant recovery_catalog_owner to user1 with admin option;
grant resource to user1 with admin option;
grant dba to user1 with admin option;
grant connect to user1 with admin option;
alter user user1 default role all;
-- 3 system privileges for user1
grant select any dictionary to user1 with admin option;
grant unlimited tablespace to user1 with admin option;
grant alter any procedure to user1 with admin option;
復(fù)制代碼 代碼如下:
connect / as sysdba;
shutdown abort;
startup;
drop user user1 cascade;
exit
oracle命令行創(chuàng)建用戶:
復(fù)制代碼 代碼如下:
create user user1
identified by values 'fa091872a2cc669c'
default tablespace user1
temporary tablespace temp
profile default
account unlock;
-- 4 roles for user1
grant recovery_catalog_owner to user1 with admin option;
grant resource to user1 with admin option;
grant dba to user1 with admin option;
grant connect to user1 with admin option;
alter user user1 default role all;
-- 3 system privileges for user1
grant select any dictionary to user1 with admin option;
grant unlimited tablespace to user1 with admin option;
grant alter any procedure to user1 with admin option;
相關(guān)文章
Oracle數(shù)據(jù)庫ORA-12560錯誤問題的解決辦法
這篇文章主要介紹了Oracle數(shù)據(jù)庫ORA-12560錯誤解決辦法,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-05-05Oracle臨時表空間刪除和重建實(shí)現(xiàn)過程
這篇文章主要介紹了Oracle臨時表空間刪除和重建實(shí)現(xiàn)過程,臨時表空間是NOLOGGING模式以及它不保存永久類型對象,因此即使數(shù)據(jù)庫損毀,做Recovery也不需要恢復(fù)Temporary?Tablespace。下文更多詳細(xì)內(nèi)容介紹需要的小伙伴可以參考一下2022-03-03使用MySQL語句來查詢Apache服務(wù)器日志的方法
這篇文章主要介紹了使用MySQL語句來查詢Apache服務(wù)器日志的方法,五個實(shí)例均基于Linux系統(tǒng)進(jìn)行演示,需要的朋友可以參考下2015-06-06詳解Oracle數(shù)據(jù)庫中自帶的所有表結(jié)構(gòu)(sql代碼)
這篇文章主要介紹了Oracle數(shù)據(jù)庫中自帶的所有表結(jié)構(gòu),本文給大家介紹的非常詳細(xì),代碼簡單易懂,對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下2021-11-11