oracle 導入 dmp

drop user IVR_ANALYSIS cascade// user_name :IVR_ANALYSIS
create user IVR_ANALYSIS IDENTIFIED  by "password"
grant connect,resource,dba to IVR_ANALYSIS;//授權
create tablespace  CSS_APP // tablespace_name:CSS_APP
datafile 'E:/oracle_tablespaces/CSS_APP.dbf'   
size 1500M   
autoextend on next 5M maxsize 3000M;
alter user IVR_ANALYSIS quota unlimited on CSS_APP

cmd 下導入dmp

imp IVR_ANALYSIS/password@127.0.0.1/orcl fromuser=IVR_ANALYSIS  touser=IVR_ANALYSIS  file=dmp路徑  ignore=y



SELECT t.tablespace_name, round(SUM(bytes / (1024 * 1024)), 0) ts_size
FROM dba_tablespaces t, dba_data_files d
WHERE t.tablespace_name = d.tablespace_name
GROUP BY t.tablespace_name;

SELECT SUM(bytes) / (1024 * 1024) AS free_space, tablespace_name
FROM dba_free_space
GROUP BY tablespace_name;

select tablespace_name,file_name,autoextensible from dba_data_files where tablespace_name = 'USERS';

 
   alter database datafile 'E:\\APP\\160429\\ORADATA\\ORCL\\USERS01.DBF' resize 500m;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章