欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

安装oracle后,新建表空间及用户的脚本

程序员文章站 2022-05-09 08:15:51
...
本文转载自http://tedeum.iteye.com/blog/1416519
CREATE TABLESPACE TBSP_JSC DATAFILE [位置:'D:\oracle\product\10.2.0\oradata\JSC\JSC_data']  SIZE 1024M AUTOEXTEND ON NEXT 256M MAXSIZE unlimited;   
CREATE TABLESPACE TBSP_JSC_TMP DATAFILE [位置:'D:\oracle\product\10.2.0\oradata\JSC\JSC_tmp']  SIZE 1024M AUTOEXTEND ON NEXT 256M MAXSIZE unlimited;   
  
create user jsc identified by 123456;   
alter user jsc default tablespace TBSP_JSC quota unlimited on TBSP_JSC;   
alter user jsc temporary tablespace TBSP_JSC_TMP;   
grant create trigger to jsc;   
grant create session to jsc;   
grant create sequence to jsc;   
grant create synonym to jsc;   
grant create table to jsc;   
grant create view to jsc;   
grant create procedure to jsc;   
grant alter session to jsc;   
grant create job to jsc ;   
grant execute on ctxsys.ctx_ddl to jsc;   
  
--如果需要DBA权限   
grant dba to jsc;