重庆思庄Oracle、Redhat认证学习论坛

标题: 错误信息tar: Exiting with failure status due to previous errors [打印本页]

作者: jiawang    时间: 2017-7-25 09:07
标题: 错误信息tar: Exiting with failure status due to previous errors
rac01:~ # su - oracle
oracle@rac01:~> tar -czvf/home/oracle/oracle.tar /u01/app/oracle
/u01/app/oracle/product/11.2.0/db_1/javavm/install/jvme111.sql
/u01/app/oracle/product/11.2.0/db_1/javavm/install/jvmsec3.sql
/u01/app/oracle/product/11.2.0/db_1/javavm/doc/
/u01/app/oracle/product/11.2.0/db_1/javavm/doc/readme.txt
/u01/app/oracle/product/11.2.0/db_1/javavm/doc/javadoc.zip
/u01/app/oracle/checkpoints/
tar: Exiting with failurestatus due to previous errors
分析:原来是待压缩的文件夹是root权限创建的,而执行tar的时候未加sudo
解决办法:先删除之前未备份完全的目录,在执行加上sudo tar -czvf 安装包成功。
oracle@rac01:~> cd/home/oracle
oracle@rac01:~> ll
total 2352908
drwxr-xr-x 2 oracleoinstall       4096 Jul 21 09:19 bin
-rw-r--r-- 1 oracleoinstall 2407018105 Jul 24 12:16 oracle.tar
oracle@rac01:~> rm -roracle.tar
oracle@rac01:~> sudo tar -czvf /home/oracle/oracle.tar/u01/app/oracle





欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2