- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Copying permissions
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2002 04:37 AM
06-20-2002 04:37 AM
Copying permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2002 04:40 AM
06-20-2002 04:40 AM
Re: Copying permissions
If the files are exactly identical, you can use cp -rp from the good dir to the bad dir.
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2002 04:47 AM
06-20-2002 04:47 AM
Re: Copying permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2002 04:48 AM
06-20-2002 04:48 AM
Re: Copying permissions
If you absolutely, positively have to use 'cp', check that the files in $ORACLE_HOME/bin that need to have the Sticky Bit set.
Some of these files are,...
dbsnmp
oemevent
oracle
oracle0
oratclsh
tnslsnr
tnslsnr0
If you can, I would recommend either a recover from Backup, or a re-install.
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2002 05:02 AM
06-20-2002 05:02 AM
Re: Copying permissions
If a chmod was destructive, you should recovery a backup in a seperate tree. Do a 'ls -la tree1 > /tmp/out1' and a 'ls -la tree2 >/tmp/out2'.
Then a 'diff /tmp/out1 /tmp/out2'.
This will give you exact info about the changes.
And even then you should be very carefull. Oracle should be inactive while touching the files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2002 05:12 AM
06-20-2002 05:12 AM
Re: Copying permissions
CPIO
# cd
# find . -depth -print | cpio -pmdvl
TAR
# cd
# tar cf - . | (cd
Alternatively, if you want to copy whole Filesystems (i.e every thing in /dev/vg01/data which is mounted on /data say)
# umount /data
# dd if=/dev/vg01/rdata bs=64k of=/dev/vg??/rnewdata
# mount /dev/vg01/data /data
# mount /dev/vg??/newdata /newdata
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2002 05:15 AM
06-20-2002 05:15 AM
Re: Copying permissions
I would always prefer restoring from a backup rather then using cp for Oracle.
But you can give a try with the cpio command. I think that it works.
Be in the directory from where you want to copy the files.
#cd /oracle
# find . -depth -print | cpio -pdlmuv /destination_dir
This command will copy all the files from /oracle directory to the /destination_dir.
Piyush