--創建臨時表空間:
create temporary tablespace RADIALSOFT_UTIL1
tempfile 'C:/myoracledb/RADIALSOFT_UTIL01.dbf' size 500m autoextend on next 200m maxsize unlimited
extent management local
/
--創建表空間:
create tablespace RADIALSOFT_UTIL
datafile 'C:/myoracledb/wlc01.dbf' size 500m autoextend on next 200m maxsize unlimited,
'C:/myoracledb/wlc02.dbf' size 500m autoextend on next 200m maxsize unlimited,
'C:/myoracledb/wlc03.dbf' size 500m autoextend on next 200m maxsize unlimited,
'C:/myoracledb/wlc04.dbf' size 500m autoextend on next 200m maxsize unlimited,
'C:/myoracledb/wlc05.dbf' size 500m autoextend on next 200m maxsize unlimited
extent management local
/
注意創建上面兩個表空間時的路勁( 如F:/myoracledb),那個/必須有。
創建用戶 並指定默認表空間1
Create user wlc identified by radial_wlc123 default tablespace RADIALSOFT_UTIL temporary tablespace RADIALSOFT_UTIL1;
--創建用戶 並指定默認表空間2
create user drv_admin identified by 123 default tablespace myOracle temporary tablespace drv_temp1;
--將dba的權限給用戶
grant dba to wlc
3.使用imp命令導入dmp文件
導入備份
imp wlc/radial_wlc123 file=D:\打包帶走\EXPDAT.dmp full=y 這句實在cmd里面執行的
備份數據庫
exp wlc/radial_wlc123 full=y file=d:\grx.dmp;