1.cmd->sqlplus 用户名/密码@数据库名 (as sysdba)
->enter
注:如果此用户名不是系统用户sys,scott,system就不需要加as sysdba
2.create tablespace space1 datafile 'D:\ORACALEdataflie\JG.dbf' size 1000M autoExtend on;
注意:D:\ORACALEdataflie必须存在,不然报错
3.create user user1 identified by 123 default tablespace space1 ;
4.grant connect,dba to user1;
5.exit
6.imp user1/123@数据库名 file=f:\xx.dmp full=y ignore=y; --这个是导入数据库
->enter
注:如果此用户名不是系统用户sys,scott,system就不需要加as sysdba
2.create tablespace space1 datafile 'D:\ORACALEdataflie\JG.dbf' size 1000M autoExtend on;
注意:D:\ORACALEdataflie必须存在,不然报错
3.create user user1 identified by 123 default tablespace space1 ;
4.grant connect,dba to user1;
5.exit
6.imp user1/123@数据库名 file=f:\xx.dmp full=y ignore=y; --这个是导入数据库