- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file owner change after restore oracle files
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
04-14-2010 12:00 AM
04-14-2010 12:00 AM
file owner change after restore oracle files
I have backup filesystem belongs to oracle.
At DR site I create this oracle user and then u01 folder.
After restore the u01 contents I found out the owner was sshd and group remain oinstall.
Can inform me why this happend?
I have manually change the owner but when bring up db, internal error appear.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 12:28 AM
04-14-2010 12:28 AM
Re: file owner change after restore oracle files
Remember the system works with uid-gid, not with user-group names.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 12:35 AM
04-14-2010 12:35 AM
Re: file owner change after restore oracle files
Ok yes the server is totally diff server that is why I have to create oracle id.
I will check the uid now.
But how to get the same uid? Can it be changed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 12:47 AM
04-14-2010 12:47 AM
Re: file owner change after restore oracle files
Well, you can specify the uid when creating the new user with "useradd". If it is already crreated, you can modify it when "usermod". See "man usermod":
"Change otto's user ID to 333 and change the login name to bob.
usermod -u 333 -l bob otto"
In yor case, I think you have to change the uid for user "sshd" first, to release the uid you want for "oracle" user and then change the uid for "oracle" user.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 12:52 AM
04-14-2010 12:52 AM
Re: file owner change after restore oracle files
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 12:57 AM
04-14-2010 12:57 AM
Re: file owner change after restore oracle files
You can do it also with SAM. I think "usermod" change the files owned for the uid changed and SAM do it for sure. This is what it says when you change a user id:
------------------------------------------
You are changing the UID for user "userX" from "111" to "222". The
password file will be updated to reflect this change.
The UID is used to determine user file ownership. Would you like to
run a background task on this system to update all files owned by
this user to the new UID?
------------------------------------------
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 01:25 AM
04-14-2010 01:25 AM
Re: file owner change after restore oracle files
But why it chnage to sshd?
Confuse
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 07:17 AM
04-14-2010 07:17 AM
Re: file owner change after restore oracle files
Backup HOW, exactly?
> After restore [...]
Restore HOW, exactly?
> Can inform me why this happend?
I don't even know _what_ happened yet.
> But why it chnage to sshd?
That might depend on what you did (which is
a mystery).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 12:32 PM
04-14-2010 12:32 PM
Re: file owner change after restore oracle files
You will find that your passwd file on production is quite different than the one at DR. That will have to be fixed before you restore additional files and directories.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 04:48 PM
04-14-2010 04:48 PM
Re: file owner change after restore oracle files
It was installed using CD.
Then I create oracle user, install patch required, create lvol for oracle like u01, u02.
Restore FS from Data Protetor (backup also using DP).
Bill should I copy the etc/passwd from pord to DR?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 09:57 PM
04-14-2010 09:57 PM
Re: file owner change after restore oracle files
If you want to keep the same UIDs for the owners of the files from your filesystems, then yes, you must restore also /etc/passwd or at least you must keep the same UIDs for the same user names (edit /etc/passwd from the new - restored system to actually have the same UIDs as the old one - of course and to have all the relevant users from the previous system)
Do not forget to restore also the /etc/group file!
You must also have the same groups...
Best regards,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 01:09 AM
04-20-2010 01:09 AM
Re: file owner change after restore oracle files
OK update from the case.
At first when I check the oracle at Prod and DR same uid 106.
After restore from Data protector all oracle file owner appear as owned by sshd but the group remain as oinstall.
DB failed to start
Then I change sshd uid make it diff uid and make sure oracle is 106. Restore oracle and db files the owner now remain as oracle and group as oinstall db can't up.
Then I run another round of cold filesystem backup for oracle and Database from prod.
Restore to DR and make sure owner remain as oracle and then only db can UP.
Conclusion
1) uid and gid is important from backup server into restore server -2 diff servers(in this case prod & DR server)
2) backup file might be corrupted or retention expired even though we have set it to expired for 2 months. Thanks all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 01:20 AM
04-20-2010 01:20 AM
Re: file owner change after restore oracle files
Of course they are important.
This information is kept together with the backup.
>backup file might be corrupted or retention expired even though we have set it to expired for 2 months.
What will be the link between corruption and expiration ? Of course a backup file can be corrupted even it is expired (if it is still on disk and was not deleted)
Horia.
Horia.