--创建表空间
create tablespace 表空间名字
logging
datafile 'D:\app\zsj\oradata\testdb'
size 32M
autoextend on
next 32M maxsize unlimited
extent management local;
--创建临时表空间
create temporary tablespace 临时表空间名字
tempfile 'D:\app\zsj\oradata\testdb'
size 32M
autoextent on
next 32M maxsize unlimited
extent management local;
--创建用户
create user 用户名
identified by 密码
default tablespace 表空间
temporary tablespace 临时表空间名字
profile default;
--赋权
grant connect to 用户名;
grant resource to 用户名;
grant exp_full_database to 用户名;
grant imp_full_datebase to 用户名;
grant alter user to 用户名;
grant create any view to 用户名;
grant create session to 用户名;
grant create user to 用户名;
grant drop any view to 用户名;
grant drop user to 用户名;
great change notification to 用户名;