Oracle創(chuàng)建表空間的代碼示例
以下的文章是通過(guò)Oracle創(chuàng)建表空間,創(chuàng)建用戶的相關(guān)代碼描述來(lái)剖析Oracle創(chuàng)建表空間,創(chuàng)建用戶的實(shí)際應(yīng)用,以下就是數(shù)據(jù)庫(kù)的相關(guān)內(nèi)容的具體介紹,希望你在瀏覽完此篇文章之后會(huì)有會(huì)所了解。
創(chuàng)建臨時(shí)表空間
- create temporary tablespace test_temp
- tempfile 'E:\Oracle\product\10.2.0\oradata\testserver\test_temp01.dbf'
- size 32m
- autoextend on
- next 32m maxsize 2048m
- extent management local;
創(chuàng)建數(shù)據(jù)表空間
- create tablespace test_data
- logging
- datafile 'E:\Oracle\product\10.2.0\oradata\testserver\test_data01.dbf'
- size 32m
- autoextend on
- next 32m maxsize 2048m
- extent management local;
Oracle創(chuàng)建用戶并指定表空間
- create user username identified by password
- default tablespace test_data
- temporary tablespace test_temp;
給用戶授予權(quán)限
- grant connect,resource to username;
上述的相關(guān)內(nèi)容就是對(duì)Oracle創(chuàng)建表空間,創(chuàng)建用戶的相關(guān)代碼的描述,希望會(huì)給你帶來(lái)一些幫助在此方面。
【編輯推薦】