oracle 建立使用者

2021-06-21 20:34:05 字數 833 閱讀 2437

1.首先用管理員使用者登陸sqlplus:

sqlplus "sysman/安裝時設定的密碼"

2.建立使用者

create user username identified by password;

建立使用者 username,密碼為 password

3.給使用者授權

grant dba to username; --授予dba許可權  

grant unlimited tablespace to username;--授予不限制的表空間

grant select any table to username; --授予查詢任何表

grant select any dictionary to username;--授予 查詢任何字典

4. 建立表空間

--創建立表空間

create tablespace cheng datafile 'c:\oraclexe\oradata\xe\cheng.dbf' size 500m

uniform size 128k; #指定區尺寸為128k,如不指定,區尺寸預設為64k

--刪除表空間

drop tablespace cheng including contents and datafiles

--修改表空間大小

alter database datafile 'c:\oraclexe\oradata\xe\cheng.dbf' resize 50m

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 ...