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;
相關文章
Windows server 2008 R2(win7)登陸sqlplus錯誤ORA-12560和ORA-12557的解
這篇文章主要為大家詳細介紹了Windows server 2008 R2(win7)登陸sqlplus錯誤ORA-12560和ORA-12557的解決方法,具有一定的參考價值,感興趣的小伙伴們可以參考一下2017-05-05
Oracle 數(shù)據(jù)庫自動存儲管理-安裝配置
關于ASM的討論很多,但是到底什么是ASM?ASM是一個有效的抽象層,使你的Oracle數(shù)據(jù)庫可以與叫做diskgroups的抽象空間一起使用,而不是直接使用datafiles。2009-05-05
Oracle 數(shù)據(jù)庫中的 JSON性能注意事項(最佳實踐)
本文檔概述了在 Oracle 數(shù)據(jù)庫中存儲和處理的 JavaScript 對象表示法 (JSON) 的性能調優(yōu)最佳實踐,感興趣的朋友一起看看吧2025-04-04
Oracle查詢最近幾天每小時歸檔日志產(chǎn)生數(shù)量的腳本寫法
這篇文章主要介紹了Oracle查詢最近幾天每小時歸檔日志產(chǎn)生數(shù)量的腳本寫法,需要的朋友可以參考下2017-07-07
Oracle Arraysize設置對于邏輯讀的影響實例分析
這篇文章主要介紹了Oracle Arraysize設置對于邏輯讀的影響實例分析,通過設置Arraysize大幅減少了邏輯讀的次數(shù)和網(wǎng)絡往返次數(shù),需要的朋友可以參考下2014-07-07

