Is it required that the gid and uid at the destination server be the same as the source in nfs confi [message #665057] |
Sun, 20 August 2017 20:23 |
|
juniordbanewbie
Messages: 250 Registered: April 2014
|
Senior Member |
|
|
Dear all,
DB server is 10.2.0.4 SE.
My destination server, is Oracle Linux 5.8,
here's the df settings:
[oracle@svritest-vm ~]$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol01
ext3 22G 4.9G 16G 24% /
/dev/mapper/VolGroup02-LogVol00
ext3 1.6T 235M 1.5T 1% /u03
/dev/mapper/VolGroup03-LogVol00
ext3 30G 9.7G 18G 36% /home
/dev/mapper/VolGroup00-LogVol00
ext3 23G 2.9G 19G 14% /u01
/dev/mapper/VolGroup01-LogVol00
ext3 775G 216M 735G 1% /u02
/dev/sda1 ext3 190M 24M 157M 13% /boot
tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm
/dev/sr1 iso9660 3.0G 3.0G 0 100% /media/Oracle Linux Server src 20120229
/dev/sr0 iso9660 71M 71M 0 100% /media/VMware Tools
fskch01:/vol/svspace/backup/SVRIDB
nfs 3.0T 1.2T 1.9T 38% /orabackup
NFS folder permission
[oracle@svritest-vm ~]$ ls -ld /orabackup/ribackup
drwxr-xr-x 2 102 105 4096 Aug 21 07:00 /orabackup/ribackup
My original server, is SLES 10 SP4,
my original server folder,
yury@svri01:/home/yury $ ls -ld /orabackup/ribackup/
drwxr-xr-x 2 oracle oinstall 4096 2017-08-21 07:00 /orabackup/ribackup/
yury@svri01:/home/yury $ id oracle
uid=102(oracle) gid=105(oinstall) groups=106(dba),16(dialout),6(disk),49(ftp),105(oinstall),65(sshd),100(users)
when I try to copy archivelog backup to a folder in destination folder, it fails,
export CP="/bin/cp"
export NOHUP="/usr/bin/nohup"
cd /home/oracle/dba/scripts/copy_backup/
"${NOHUP}" "${CP}" /orabackup/ribackup/arch_f2sccg7h_1_1 /u03/app/oracle/formatted_backup/ &
/bin/cp: cannot open `/orabackup/ribackup/arch_f2sccg7h_1_1' for reading: Permission denied
I realize that I might need to change the uid and gid on the destination folder, but from https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=g11m0fps6_135&id=1474891.1
It is not supported to change the UID/GID of Oracle Database Software owner after installation.
Is there anyway that I could configure the destination folder such that oracle interprets uid 102 as oracle and gid 105 as oinstall.
Thanks
Regards, Chun Hung
|
|
|
|
|
|
|
|
|