oracle命令行刪除與創(chuàng)建用戶的代碼
更新時(shí)間: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ù)庫(kù)ORA-12560錯(cuò)誤問(wèn)題的解決辦法
這篇文章主要介紹了Oracle數(shù)據(jù)庫(kù)ORA-12560錯(cuò)誤解決辦法,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2020-05-05
Oracle中返回結(jié)果集的存儲(chǔ)過(guò)程分享
Oracle不像SQLServer那樣在存儲(chǔ)過(guò)程中用Select就可以返回結(jié)果集,而是通過(guò)Out型的參數(shù)進(jìn)行結(jié)果集返回的2012-07-07
Oracle臨時(shí)表空間刪除和重建實(shí)現(xiàn)過(guò)程
這篇文章主要介紹了Oracle臨時(shí)表空間刪除和重建實(shí)現(xiàn)過(guò)程,臨時(shí)表空間是NOLOGGING模式以及它不保存永久類型對(duì)象,因此即使數(shù)據(jù)庫(kù)損毀,做Recovery也不需要恢復(fù)Temporary?Tablespace。下文更多詳細(xì)內(nèi)容介紹需要的小伙伴可以參考一下2022-03-03
自動(dòng)備份Oracle數(shù)據(jù)庫(kù)
自動(dòng)備份Oracle數(shù)據(jù)庫(kù)...2007-03-03
使用MySQL語(yǔ)句來(lái)查詢Apache服務(wù)器日志的方法
這篇文章主要介紹了使用MySQL語(yǔ)句來(lái)查詢Apache服務(wù)器日志的方法,五個(gè)實(shí)例均基于Linux系統(tǒng)進(jìn)行演示,需要的朋友可以參考下2015-06-06
Oracle使用in語(yǔ)句不能超過(guò)1000問(wèn)題的解決辦法
最近項(xiàng)目中使用到了Oracle中where語(yǔ)句中的in條件查詢語(yǔ)句,在使用中發(fā)現(xiàn)了問(wèn)題,所以下面這篇文章主要給大家介紹了關(guān)于Oracle使用in語(yǔ)句不能超過(guò)1000問(wèn)題的解決辦法,需要的朋友可以參考下2022-05-05
詳解Oracle數(shù)據(jù)庫(kù)中自帶的所有表結(jié)構(gòu)(sql代碼)
這篇文章主要介紹了Oracle數(shù)據(jù)庫(kù)中自帶的所有表結(jié)構(gòu),本文給大家介紹的非常詳細(xì),代碼簡(jiǎn)單易懂,對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2021-11-11

