oracle 建表空間和用戶 簡單的

--表空間
CREATE TABLESPACE nongji
DATAFILE 'D://nongji.file' size 800M
         EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO; 
--索引表空間
CREATE TABLESPACE nongji_Index
DATAFILE 'D://nongji.file_index' size 512M         
         EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;     


--2.建用戶
create user nongji identified by "123456"
default tablespace nongji ;
 
--3.賦權
grant connect,resource to nongji ;
grant create any sequence to nongji ;
grant create any table to nongji ;
grant delete any table to nongji ;
grant insert any table to nongji ;
grant select any table to nongji ;
grant unlimited tablespace to nongji ;
grant execute any procedure to nongji ;

grant update any table to nongji ;

grant create any view to nongji ;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章