首先,通過sql,查詢資料庫表空間存放位置;
select file_name from dba_data_files;
1.建立資料庫臨時表空間;
size 50m
autoextend on
next 50m maxsize 2048m
extent management local;
2.建立資料表空間;
create tablespace zyl_data
logging
size 50m
autoextend on
next 50m maxsize 2048m
extent management local;
3.建立使用者名稱;
create user zyl_tools identified by zyl123
-- 『file_username』 為建立的使用者名稱 ;『12345678』為建立的新使用者登入密碼
default tablespace zyl_data
temporary tablespace yd_temp;
4.為使用者分配許可權;
grant connect,resource,dba to zyl_tools;
完成了,資料庫建立使用者及表空間。
Oracle資料庫建立使用者並授權
首先在命令列介面下用sys或system使用者登入資料庫,具體方法是 1 執行 cmd 2 sqlplus 回車 3 sys as sysdba 回車 回車 執行建立使用者的sql語句 create user username identified by password 執行授權的sql語句 gr...
建立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資料庫軟體之後可以使用預設的資料庫orcl,也可以根據需要建立自定義的資料庫。表空間用於對資料庫中的資源進行分類,每個使用者都有預設的表空間,也可以給使用者指定預設的表空間。1 建立資料庫 簡單的方式是使用 database configuration assistant 資料庫...