oracle命令行刪除與創(chuàng)建用戶(hù)的代碼
更新時(shí)間:2008年01月08日 13:01:38 作者:
oracle命令行刪除與創(chuàng)建用戶(hù)的代碼
oracle命令行刪除用戶(hù):
connect / as sysdba;
shutdown abort;
startup;
drop user user1 cascade;
exit
oracle命令行創(chuàng)建用戶(hù):
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)建用戶(hù):
復(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;
您可能感興趣的文章:
- 解決oracle12c創(chuàng)建用戶(hù)提示ORA-65096:公用用戶(hù)名或角色無(wú)效問(wèn)題
- Oracle數(shù)據(jù)庫(kù)創(chuàng)建用戶(hù)與數(shù)據(jù)庫(kù)備份小結(jié)(必看篇)
- 使用sqlplus命令行工具為oracle創(chuàng)建用戶(hù)和表空間
- oracle創(chuàng)建表空間、授權(quán)、創(chuàng)建用戶(hù)、導(dǎo)入dmp文件
- Oracle 創(chuàng)建用戶(hù)及數(shù)據(jù)表的方法
- oracle創(chuàng)建用戶(hù)過(guò)程詳解
相關(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-05Oracle中返回結(jié)果集的存儲(chǔ)過(guò)程分享
Oracle不像SQLServer那樣在存儲(chǔ)過(guò)程中用Select就可以返回結(jié)果集,而是通過(guò)Out型的參數(shù)進(jìn)行結(jié)果集返回的2012-07-07Oracle臨時(shí)表空間刪除和重建實(shí)現(xiàn)過(guò)程
這篇文章主要介紹了Oracle臨時(shí)表空間刪除和重建實(shí)現(xiàn)過(guò)程,臨時(shí)表空間是NOLOGGING模式以及它不保存永久類(lèi)型對(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)查詢(xún)Apache服務(wù)器日志的方法
這篇文章主要介紹了使用MySQL語(yǔ)句來(lái)查詢(xún)Apache服務(wù)器日志的方法,五個(gè)實(shí)例均基于Linux系統(tǒng)進(jìn)行演示,需要的朋友可以參考下2015-06-06Oracle使用in語(yǔ)句不能超過(guò)1000問(wèn)題的解決辦法
最近項(xiàng)目中使用到了Oracle中where語(yǔ)句中的in條件查詢(xún)語(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