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 ;