建临时表空间:
CREATE TEMPORARY TABLESPACE LTELOG_TEMP TEMPFILE 'E:oracleproductoradataorclLTELOG_TEMP.DBF' SIZE 32M AUTOEXTEND ON NEXT 32M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL;
建表空间:
CREATE TABLESPACE LTELOG LOGGING DATAFILE 'E:oracleproductoradataorclLTELOG_DATA.DBF' SIZE 32M AUTOEXTEND ON NEXT 32M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL;
建用户:
create user 用户名 identified by 密码 default tablespace 默认表空间 temporary tablespace 临时表空间;
赋权限:
grant connect,resource,create any view,create any synonym,create database link,select any table,create table,update any table,insert any table,delete any table,alter any table,dba,exp_full_database,imp_full_database to 用户名;
更多的权限加进去就可以了
赋予DBA权限:
grant dba,exp_full_database,imp_full_database to 用户名;
级联删除用户:
drop user XXXX cascade;
drop tablespace XXXX INCLUDING CONTENTS;