注意:
1.保證在e:\oracledata盤下有乙個fund_data資料夾
2.保證在e:\oracledata盤下有乙個匯入檔案, ds.dmp.
匯入資料庫的步驟
1.登入sqlplus,在命令列輸入sqlplus username/password@sid
2.建立臨時表空間
drop tablespace fund_temp including contents and datafiles cascade constraints;
create temporary tablespace fund_temp
tempfile 'e:\oracledata\fund_data\fund_temp.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
3.建立資料表空間
drop tablespace otsdata1 including contents and datafiles cascade constraints;
create tablespace otsdata1
logging
datafile 'e:\oracledata\fund_data\otsdata1.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
create tablespace otsdata3
logging
datafile 'e:\oracledata\fund_data\otsdata3.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
4.建立使用者
drop user c##ds cascade;
create user c##ds identified by ds
default tablespace otsdata1
temporary tablespace fund_temp;
5.給使用者授權
grant connect,resource,dba to c##ds;
6.在windows命令列執行匯入(在cmd下)
imp c##ds/ds@orcl file=e:\oracledata\ds.dmp fromuser=ds touser=c##ds ignore=true
Oracle匯入資料
oracle匯入資料 在sql plus中 1.c test.sql 2.imp 3.impdp server端 a.conn sys sys as sysdba b.creat directory dumpin idr as d dump c.grant read,write on directo...
oracle匯入資料
create the user create user user identified by 123456 default tablespace users temporary tablespace temp profile default password expire grant revoke ...
oracle匯入資料
oracle匯入資料時出現的問題 alter user spowner default tablespace users ora 00959 表空間 tbs arch risk 不存在 create tablespace tbs arch risk datafile c oracle product...