一、用dba身份sysdba/ss进入oracle
二、建立表空间:
--建立目标管理考评表空间
drop tablespace MBKP_DATA; CREATE TABLESPACE MBKP_DATA DATAFILE 'D:\tablespaces\mbkp\MBKP_data.dbf' SIZE 10M AUTOEXTEND ON NEXT 512K MAXSIZE UNLIMITED / drop tablespace MBKP_INDEX; CREATE TABLESPACE MBKP_INDEX DATAFILE 'D:\tablespaces\mbkp\MBKP_index.dbf' SIZE 10M AUTOEXTEND ON NEXT 512K MAXSIZE UNLIMITED / drop tablespace MBKP_USER; CREATE TABLESPACE MBKP_USER DATAFILE 'D:\tablespaces\mbkp\MBKP_user.dbf' SIZE 8M AUTOEXTEND ON NEXT 512K MAXSIZE UNLIMITED / 三、建立并将表空间分配给用户
--用户
drop user MBKP_ADMIN;
CREATE USER MBKP_ADMIN IDENTIFIED BY qwerasdf
DEFAULT TABLESPACE MBKP_USER;
GRANT CONNECT TO MBKP_ADMIN;
GRANT RESOURCE TO MBKP_ADMIN;
grant dba to MBKP_ADMIN;
connect MBKP_ADMIN/qwerasdf@29;
四、在cmd命令行中输入
imp userid=MBKP_ADMIN/qwerasdf full=y file=daochu.dmp
导入完成!