免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2380 | 回复: 6
打印 上一主题 下一主题

全库导出时报错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-26 16:40 |只看该作者 |倒序浏览
众位大侠,请教一个问题:
就是在solaris系统上,oracle 8.1.6做全库导出,导出教本如下:
#!/bin/csh
set ORACLE_BASE=/data3/oracle
set ORACLE_HOME=$ORACLE_BASE/product/8.1.6
setenv NLS_LANG american_america.us7ascii
setenv LD_LIBRARY_PATH $ORACLE_HOME/libORACLE_HOME/network/libORACLE_HOME/plsql/libORACLE_HOME/rdbms/lib
setenv PATH $ORACLE_HOME/bin:/bin:/usr/sbin:/usr/local/bin:/usr/bin:/usr/ccs/binpt/bin
cd /oradata3/tasks/expbill
set rq=` date +"%Y%m%d"`
set rq1=01
set rq2=02
set rq3=03
#set rq1=` date +"%Y%m%d"`
#set rq2=` date +"%Y%m%d"`
#exp obs61/obs61@obs61 owner=obs61  file=./fulldata/expfull$rq$rq1.dat log=./log/expfull$rq$rq2.log buffer=3200000
exp system/manager@obs61 full=y file=./fulldata/expfull$rq$rq1.dat,./fulldata/expfull$rq$rq2.dat,./fulldata/expfull$rq$rq3.dat files
ize=2GB log=./log/expfull$rq.log

cd /oradata3/tasks/expbill/fulldata
find ./ exp*.* -mtime +2 -exec rm {} \;
# 压缩导出文件
cd /oradata3/tasks/expbill/fulldata
compress exp*.dat

执行导出时,系统提示如下错误About to export the entire database ...
. exporting tablespace definitions
. exporting profiles
. exporting user definitions段错误 ((主存储器)信息转储):

这是什么原因哪?

论坛徽章:
0
2 [报告]
发表于 2005-10-26 16:48 |只看该作者

全库导出时报错误

众位大侠有谁曾经碰到过这样的问题吗?挺急的.期待高人指点?

论坛徽章:
0
3 [报告]
发表于 2005-10-27 09:26 |只看该作者

全库导出时报错误

这种错误我没有遇到过。不过我师傅给过我一个脚本。你可以看看。
# Created By Kurt Z on 20050806
# You can edit ONLY this line for real application:
# these envionment variable can be modified by user. for example, if you hope the backup dump files to place into the path:
# /oradisk1/backupdb, then shoud write this line like this "export exppath=/oradisk1/backupdb"
export exppath=/data/backup



# !! NO EDIT BELOW !! NO EDIT BELOW !! NO EDIT BELOW !! NO EDIT BELOW !! NO EDIT BELOW !! NO EDIT BELOW !! NO EDIT BELOW !! NO EDIT BELOW !!

export ORACLE_SID=hz2004
export exptime=`date +%Y%m%d`
export ORACLE_HOME=/oracle/app/oracle/product/920
export PATH=$PATH:/oracle/app/oracle/product/920/binHOME/bin


if [ "`date +"%u"`" = "6" ]; then
   echo "Today is Saturday, no bakcup the database!";
else
   if [ "`date +"%u"`" = "7" ]; then
      echo "Today is Sunday, no bakcup the database!";
   else
      su - oracle "-c /oracle/app/oracle/product/920/bin/exp sys/oracle@hz2004 file=$exppath/data1_$exptime.dmp,$exppath/data2_$exptime.dmp,$exppath/data3_$exptime.dmp,$exppath/data4_$exptime.dmp,$exppath/data5_$exptime.dmp,$exppath/data6_$exptime.dmp,$exppath/data7_$exptime.dmp,$exppath/data8_$exptime.dmp,$exppath/data9_$exptime.dmp,$exppath/data10_$exptime.dmp,$exppath/data11_$exptime.dmp,$exppath/data12_$exptime.dmp,$exppath/data13_$exptime.dmp,$exppath/data14_$exptime.dmp,$exppath/data15_$exptime.dmp,$exppath/data16_$exptime.dmp,$exppath/data17_$exptime.dmp,$exppath/data18_$exptime.dmp,$exppath/data19_$exptime.dmp,$exppath/data20_$exptime.dmp filesize=1500M log=$exppath/exp_$exptime.log GRANTS=y FULL=y INDEXES=y TRIGGERS=y FEEDBACK=1000";
   fi
fi   
# !! NO EDIT ABOVE !! NO EDIT ABOVE !! NO EDIT ABOVE !! NO EDIT ABOVE !! NO EDIT ABOVE !! NO EDIT ABOVE !! NO EDIT ABOVE !! NO EDIT ABOVE !!

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
4 [报告]
发表于 2005-10-27 12:21 |只看该作者

全库导出时报错误

我考,汗。。。。。

这种脚本也能拿出来?

论坛徽章:
0
5 [报告]
发表于 2005-10-27 12:39 |只看该作者

全库导出时报错误

我试了一下,错误还是一样,不过还是要谢谢你.

论坛徽章:
0
6 [报告]
发表于 2005-10-27 16:44 |只看该作者

全库导出时报错误

好象环境变量有利问题

论坛徽章:
0
7 [报告]
发表于 2005-10-28 09:20 |只看该作者

全库导出时报错误

原帖由 "弱智" 发表:
我考,汗。。。。。

这种脚本也能拿出来?


至少也应该tar一下作个磁盘拷贝或者ftp到远程的机器上吧
只能看出这点不足, 老大能否给个范例, 或者还有哪些疏忽的地方, 谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP