dmp数据在windows 导入oracle数据库的方法

windows中导入dmp数据库步骤:
1、链接数据库
sqlpus / as sysdba
conn / as sysdba
2、创建工作空间
create tablespace xs logging  datafile 'C:\oracledata\xs.dbf'  
size 32m   autoextend on   next 32m maxsize 2048m   extent management local;
3、创建用户
create user mydb identified by 123456  default tablespace xs; 
4、设置权限(dba权限)
grant dba to mydb;
5、导入数据库(重新进入dos直接写入一下命令)
imp mydb/123456 file="C:\Users\Administrator\Desktop\work\db_20140725.dmp"  full=y;

-- Create the user
create user gisdb
  identified by gisdb
  default tablespace USERS
  temporary tablespace TEMP
  profile DEFAULT
  quota unlimited on users;
-- Grant/Revoke role privileges
grant connect to gisdb;
grant dba to gisdb;
grant resource to gisdb;
-- Grant/Revoke system privileges
grant unlimited tablespace to gisdb;

你可能感兴趣的:(oracle)