一、更改数据库管理员sys/system密码
1、运行到C盘根目录
2、输入:SET ORACLE_SID = 你的SID名称
3、输入:sqlplus /nolog
4、输入:connect /as sysdba
5、输入:altre user sys identified by sys
6、输入:altre user system identified by system
完成后,system的密码为system
二、导入数据库(.dmp)
(在sqlplus下运行)
1、创建表空间
create tablespace bjshelldb datafile 'D:\app\Administrator\oradata\orcl\bjshell01.dbf' size 3000M autoextend on;
2、创建用户
create user BJSHELL identified by 111111 default tablespace bjshelldb;
3、用户授权
grant connect,resource,create view to BJSHELL;
grant dba to BJSHELL;
grant imp_full_database to BJSHELL;
grant connect,resource to BJSHELL;
4、导入:(在cmd下运行)
imp BJSHELL/111111 file=E:\db\CRM-20160921.dmp log=E:\db\CRM-20160921.log buffer=8000000 commit=y full=y
5、删除用户
drop user BJSHELL cascade;
6、删除表空间
DROP TABLESPACE bjshelldb INCLUDING CONTENTS AND DATAFILES;
7、远程导出oracle数据库(.dmp)
exp 用户名/密码@远程oralce数据库的IP:端口号/实例 file=存放位置:\文件名.dmp full = y;