- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: OmniBack II, session owner is always root.
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-17-2001 04:13 PM
тАО04-17-2001 04:13 PM
My problem is I can't get the owner of the backup to change to the oracle logon. It always logs on as root. I have a whoami in the script which always shows root.
The oracle owner has been added to the admin and operator groups in OMNIBACK II. I've even tried the Change Owner function and it had no effect.
I've also tried loging onto the unix system as oracle and created the backup but it still runs as root.
Help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 04:19 AM
тАО04-18-2001 04:19 AM
Re: OmniBack II, session owner is always root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 09:05 AM
тАО04-18-2001 09:05 AM
Re: OmniBack II, session owner is always root.
I think what you are looking for, is to run the startup and shutdown scripts for the database as Oracle user. For this , you can create the pre-exec and post-exec files in /opt/omni/lbin . Both these executable files will be owned by root and will have the database startup/shutdown script by su ing to Oracle.
Ex. pre-exec script in /opt/omni/lbin has :-
su - oracle /orasw/dba/db_shutdown
Ex. post-exec script in /opt/omni/lbin has:-
su - oracle /orasw/dba/db_startup.
After this , even if the backups run as root , the post and pre exec scripts will shutdown databases as Oracle user.
Hope this helps.
Praveen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 09:05 AM
тАО04-18-2001 09:05 AM
Re: OmniBack II, session owner is always root.
I think what you are looking for, is to run the startup and shutdown scripts for the database as Oracle user. For this , you can create the pre-exec and post-exec files in /opt/omni/lbin . Both these executable files will be owned by root and will have the database startup/shutdown script by su ing to Oracle.
Ex. pre-exec script in /opt/omni/lbin has :-
su - oracle -c /orasw/dba/db_shutdown
Ex. post-exec script in /opt/omni/lbin has:-
su - oracle -c /orasw/dba/db_startup.
After this , even if the backups run as root , the post and pre exec scripts will shutdown databases as Oracle user.
Hope this helps.
Praveen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 04:25 PM
тАО04-18-2001 04:25 PM
Re: OmniBack II, session owner is always root.
Another relevant forum area is 'Openview applications' - where many other Omniback issues are addressed.
Looking at some knowledge base articles that give one approach (I think there are several.)
You can set the job to be run as some owner other than root.
You will also want that owner NOT be a member of the ADMIN group.
Instead, create a group specifically for your Oracle backups. Make sure that the group rights DO NOT INCLUDE 'run backup as root.'
Good Luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 04:45 PM
тАО04-18-2001 04:45 PM
Solutiona - leave your shell script run a root and "su - oracle" inside (OB2 does not officilly support suing inside pre/pos exec scripts but it works ok -almost always-).
b - in the backup specification editor set "change ownership" to "oracle". In de "users editor" window, define "oracle" on a group that has "backup as root" capability _disabled_. If it's enabled "change ownership" seems to be ignored (what was very annoying to me until I guessed this).
Hope this helps,
AT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2001 05:37 PM
тАО04-19-2001 05:37 PM
Re: OmniBack II, session owner is always root.
It also worked with the su but I didn't want the backup running as root.