oracle 导入数据库 imp 导入问题总结
一、导入命令
1、单个文件导入
imp hn_dw/hn_dw file=/home/oracle/test.dmp log=/home/oracle/test.log full=y
commit=y ignore=y
imp hn_dw/hn_dw ( 用 户 名 / 密 码 ) file=/home/oracle/test.dmp ( 文 件 路 径 )
log=/home/oracle/test.log(日志路径) full=y commit=y ignore=y
参数解释:
2、多个文件导入
imp hn_dw/hn_dw file=\(test01.dmp,test02.dmp,test03.dmp\) log=hn_log/test.log
full=y commit=y ignore=y
imp hn_dw/hn_dw(用户名/密码) file=\(test01.dmp,test02.dmp,test03.dmp\) (多个
文件)log=hn_log/test.log full=y commit=y ignore=y
二、查看表空间使用率
SELECT a.tablespace_name "表空间名",
total "表空间大小",
free "表空间剩余大小",
(total - free) "表空间使用大小",
total / (1024 * 1024 * 1024) "表空间大小(G)",
free / (1024 * 1024 * 1024) "表空间剩余大小(G)",
(total - free) / (1024 * 1024 * 1024) "表空间使用大小(G)",
round((total - free) / total, 4) * 100 "使用率 %"
FROM (SELECT tablespace_name, SUM(bytes) free
FROM dba_free_space
GROUP BY tablespace_name) a,
相关文档
评论