cpio error
Hi every body,
Does someone has an idea about this error message , that i met on AIX 4.3.3 cpio : 0511-025 Cannot get information about dbalpa/idx12_alpa.dbf. cpio : 0511-025 Cannot get information about dbalpa/idx13_alpa.dbf. 5975530 block(s) these messages are the result of the following loop echo "\n\n\n data base files Compression $ORACLE_SID\n\n" #for PARTITION in "$REPACOMP1 $REPACOMP2 $REPACOMP3" #do cd "$REPACOMP1" if [ $? -ne 0 ] then echo "\n\nERROR_DETECTED during FS compression:$REPACOMP1 " return else find . -print|cpio -omdcB|gzip >$REPDEST/base1${ORACLE_SID}.gz if [ $? -ne 0 ] then echo "\n\nERROR_DETECTED during FScompression $REPACOMP1" return fi VERIFFIC=$REPACOMP1 fi find . -print|cpio -omdcB|gzip >$REPDEST/base1${ORACLE_SID}.gz |
"find . -print" created a list of files.
cpio tried to ar chive them. cpio encountered an error with the file named dbalpa/idx12_alpa.dbf. Have a look at that file : "ls -l dbalpa/idx12_alpa.dbf", and see if the guy who performs the cpio has permissions on that file (probably owned by oracle). hth Zorba |
Thanks for your response,
I effectively verified , before to post my help request , that the file performed had the rights permissions. which are : -rwxr-x--x 1 oracle dba 13114 11 jul 11:08 stop+expcomp.sh and i get the same errors continuously!! :Pengy: |
and who is performing the cpio ? The same user named "oracle", while he is in the dba group ?
|
yes, it's the user oracle who is performing the script via a crontab, as followed:
01 1 * * * su - oracle -c /home/oracle/tools/prepabase.sh >/dev/null the above script call the first script i previously sent an excerpt. |
Why don't you run the script from oracle's crontab? su-ing in cron is A Bad Idea. Also, why are you using $REPACOMP1 instead of $PARTITION in your loop? You're just doing the same thing in the loop three times instead of each of the arguments to the loop.
|
wait wait!
what are the right and who is the owner of the files you want to save, dbalpa/idx12_alpa.dbf and dbalpa/idx13_alpa.dbf. I encounter the same error because the owner of the file to be saved is nobody, and on the aix system "nobody" have a an ID > 65000, the cpio can't save the file. |
hi,
The owner is oracle |
a last idea : what is the size of the file ?
some cpio don't save file more than 2GB. |
Why are you using the 'm' and 'd' flags? They're only useful when restoring from a cpio archive, not when creating one?
|
All times are GMT -5. The time now is 02:21 AM. |