- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Workable Oracle user profile
Operating System - HP-UX
1752375
Members
6117
Online
108787
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
05-01-2002 02:46 PM
05-01-2002 02:46 PM
Hi all;
I have joined a community of users who do all their work as "oracle". In fact I have 26 oracle sessions at one time. My goal is to "teach the old dog new tricks" but I need some ammunition from all of you. Each user will obviously log in as themselves, I would like to build a users profile that will encompass both HPUX default, and oracle environments. Where, in this case, the DBAs and the developers can work independently but share the same environment.
Any help would be greatly appreciated and helpful in my case. The oracle DB is version 817 hosted by 11.0
Thanks
I have joined a community of users who do all their work as "oracle". In fact I have 26 oracle sessions at one time. My goal is to "teach the old dog new tricks" but I need some ammunition from all of you. Each user will obviously log in as themselves, I would like to build a users profile that will encompass both HPUX default, and oracle environments. Where, in this case, the DBAs and the developers can work independently but share the same environment.
Any help would be greatly appreciated and helpful in my case. The oracle DB is version 817 hosted by 11.0
Thanks
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 03:25 PM
05-01-2002 03:25 PM
Solution
Hi:
My favorite way to do this is to create a 'source' file (e.g. /usr/local/bin/Oraenv.sh)
that looks something like this:
#sets ORACLE vars and PATH
ORACLE_BASE=/PrdOra/app/oracle
ORACLE_HOME=${ORACLE_BASE}/product/8.1.1
TNS_ADMIN=${ORACLE_HOME}/network/admin
ORACLE_SID=baanprd
PATH=${PATH}:${ORACLE_HOME}/bin
export ORACLE_BASE ORACLE_HOME TNS_ADMIN ORACLE_SID PATH
------------------------------------------
Now the .profile of each user should add
something like this to the standand HP .profile
P0PROG=/usr/local/bin/Oraenv.sh
if [ -r ${P0PROG} -a -f ${P0PROG} ]
then
. ${P0PROG}
fi
unset P0PROG
It is very important in the sourced file that no exit statement be included. The beauty of this
method is that this same oranenv.sh can be sourced in other scripts that run under cron for example and the stupid stuff that happens when someone
tries to su - oracle -c command because some of the commands expect an interactive environment is avoided.
My favorite way to do this is to create a 'source' file (e.g. /usr/local/bin/Oraenv.sh)
that looks something like this:
#sets ORACLE vars and PATH
ORACLE_BASE=/PrdOra/app/oracle
ORACLE_HOME=${ORACLE_BASE}/product/8.1.1
TNS_ADMIN=${ORACLE_HOME}/network/admin
ORACLE_SID=baanprd
PATH=${PATH}:${ORACLE_HOME}/bin
export ORACLE_BASE ORACLE_HOME TNS_ADMIN ORACLE_SID PATH
------------------------------------------
Now the .profile of each user should add
something like this to the standand HP .profile
P0PROG=/usr/local/bin/Oraenv.sh
if [ -r ${P0PROG} -a -f ${P0PROG} ]
then
. ${P0PROG}
fi
unset P0PROG
It is very important in the sourced file that no exit statement be included. The beauty of this
method is that this same oranenv.sh can be sourced in other scripts that run under cron for example and the stupid stuff that happens when someone
tries to su - oracle -c command because some of the commands expect an interactive environment is avoided.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP