Oracle資料庫如何建立使用者

2021-10-02 12:53:25 字數 656 閱讀 8992

#####我們可以用scott使用者以sysdba的身份登入oracle(在cmd裡面使用)

conn scott/tiger as sysdba

然後我就可以來建立使用者了.
create user 使用者名稱 identified by 使用者名稱;

修改使用者的密碼.

alter user zs identified by 123456;

建立乙個表空間.
create tablespace zs_zs datafile 『f:\zs_zs.dbf』 size 200m;

建立好錶空間,還需要將表空間分配給使用者.

alter user 使用者名稱 default tablespace 表空間;

給使用者分配了表空間,使用者還不能登陸(沒有登入許可權),因此還需要為使用者分配許可權

grant create session,create table,create view,create

sequence,unlimited tablespace to 使用者;

建立oracle資料庫使用者

查詢表空間 select tablespace name,file id,file name,round bytes 1024 1024 0 total space from dba data files order by tablespace name 1.建立表空間 create tablesp...

為Oracle資料庫建立使用者

oracle安裝完後,其中有乙個預設的資料庫,除了這個預設的資料庫外,我們還可以建立自己的資料庫。對於初學者來說,為了避免麻煩,可以用 database configuration assistant 嚮導來建立資料庫。建立完資料庫後,並不能立即在資料庫中建表,必須先建立該資料庫的使用者,並且為該使...

為Oracle資料庫建立使用者

oracle安裝完後,其中有乙個預設的資料庫,除了這個預設的資料庫外,我們還可以建立自己的資料庫。對於初學者來說,為了避免麻煩,可以用 database configuration assistant 嚮導來建立資料庫。建立完資料庫後,並不能立即在資料庫中建表,必須先建立該資料庫的使用者,並且為該使...