oracle使用者建立

2021-08-19 14:45:36 字數 1966 閱讀 6050

詳解oracle建立使用者許可權全過程

在這裡我們將介紹的是oracle建立使用者許可權,在這一過程中,我們將先要建立一張表,然後進行後面的操作。ad:

本文將介紹的是通過建立一張表,進而實現oracle建立使用者許可權的過程。以下這些**主要也就是為實現oracle建立使用者許可權而編寫,希望能對大家有所幫助。

注意:每條語語分開執行,結尾必須用分號;

//建立空間  

create

tablespace test  

datafile 

'c:\oracle\oradata\orcl9\test.dbf'

size

50m  

default

storage (initial 500k   

next

500k  

minextents 1  

maxextents unlimited  

pctincrease 0); 

//oracle建立使用者許可權

//建立使用者  

create

user

lxg identified 

bylxg 

default

tablespace test;  

//授權   

grant

resource,

connect

,dba 

totest; 

//刪除表空間   

drop

tablespace 

"空間名"

including contents 

anddatafiles 

刪除使用者 

drop

user

"lxg"

cascade

增加表空間

alter

tablespace chinawater 

add

datafile 

'c:\oracle\oradata\orcl9\addchinawater.dbf'

size

200m 

建立使用者

create

user

username identified 

by

password

;  建立使用者 username,密碼為 password

2給使用者授權

grant

dba 

to

lxg;

--授予dba許可權

grant

unlimited tablespace 

tolxg;

--授予不限制的表空間

grant

select

anytable

tolxg;

--授予查詢任何表

grant

select

anydictionary 

tolxg;

--授予 查詢 任何字典

grant

dba 

to

lxg;  

grant

unlimited tablespace 

tolxg;  

grant

select

anytable

tolxg;  

grant

select

anydictionary 

tolxg; 

0

給主人留下些什麼吧!~~

Oracle 使用者建立

執行 cmd 進入 dos視窗 c sqlplus sys password as sysdba 使用sys使用者登入 sql create user username identified by password 建立使用者名稱和密碼 sql create tablespace ts userna...

Oracle建立使用者

當你建立使用者時,應該定義它的表空間 default tablespace 否則,它會使用系統表空間 system tablespace 這是應該避免的。這是常用的建立使用者的乙個例子 create user xx identified by xx profile default default t...

oracle 建立使用者

oracle10g建立使用者 oracle10g 的建立使用者名稱 1 linux 下oracle 的啟動以 oracle 身份登入 啟動lsnrctl start 登入sqplus nolog 連線資料庫 connect assysdba 啟動資料庫 startup 關閉資料庫 shutdown ...