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;
復制代碼 代碼如下:
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;
相關文章
Oracle數(shù)據(jù)庫ORA-12560錯誤問題的解決辦法
這篇文章主要介紹了Oracle數(shù)據(jù)庫ORA-12560錯誤解決辦法,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-05-05
詳解Oracle數(shù)據(jù)庫中自帶的所有表結構(sql代碼)
這篇文章主要介紹了Oracle數(shù)據(jù)庫中自帶的所有表結構,本文給大家介紹的非常詳細,代碼簡單易懂,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2021-11-11

