- 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
Discussions
Discussions
Forums
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
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?