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 ;

你可能感兴趣的:(oracle)