在使用PL/SQL等工具時(shí),若需要?jiǎng)?chuàng)建Oracle表空間和用戶,請(qǐng)按以下步驟進(jìn)行操作:
文章來源:http://www.zghlxwxcb.cn/article/721.html
第1步:創(chuàng)建臨時(shí)表空間
create temporary tablespace user_temp tempfile 'D:\oracle\oradata\Oracle9i\user_temp.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local;
第2步:創(chuàng)建數(shù)據(jù)表空間
create tablespace user_data logging datafile 'D:\oracle\oradata\Oracle9i\user_data.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local;
第3步:創(chuàng)建用戶并指定表空間
create user username identified by password default tablespace user_data temporary tablespace user_temp;
第4步:授權(quán)用戶權(quán)限
grant connect,resource,dba to username;
以上是在Oracle數(shù)據(jù)庫(kù)中創(chuàng)建表空間和用戶的完整過程。確保路徑存在,并根據(jù)實(shí)際需求修改用戶名和密碼。
文章來源地址http://www.zghlxwxcb.cn/article/721.html
到此這篇關(guān)于如何在Oracle中創(chuàng)建表空間和用戶:步驟詳解的文章就介紹到這了,更多相關(guān)內(nèi)容可以在右上角搜索或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!