删除用户:drop user pnxd cascade;
导出数据:exp pnxd/padmin@A file=c:b.dmp full=y
导入数据:imp pnxd/padmin@PNXD file=c:b.dmp ignore=y full=y
创建用户:create user pnxd identified by padmin
赋于权限:grant connect,resource to pnxd
授予DBA:grant DBA to pnxd
导入新的数据库需重建权限
创建表空间
CREATE TABLESPACE P2P_NXD
LOGGING
DATAFILE 'D:appStephenproduct11.2.0dbhome_1P2PNXD.DBF'
SIZE 32M
AUTOEXTEND ON
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;
创建序列
create sequence 序列名
minvalue 1maxvalue 99999999start with 1increment by 1
序列名.NEXTVAL 得到一个唯一数
create sequence t_sys_Roles_seq
minvalue 1 maxvalue 999999999 start with 1 increment by 1