<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Workable Oracle user profile in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/workable-oracle-user-profile/m-p/2715296#M947271</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;My favorite way to do this is to create a 'source' file (e.g. /usr/local/bin/Oraenv.sh)&lt;BR /&gt;that looks something like this:&lt;BR /&gt;&lt;BR /&gt;#sets ORACLE vars and PATH&lt;BR /&gt;&lt;BR /&gt;ORACLE_BASE=/PrdOra/app/oracle&lt;BR /&gt;ORACLE_HOME=${ORACLE_BASE}/product/8.1.1&lt;BR /&gt;TNS_ADMIN=${ORACLE_HOME}/network/admin&lt;BR /&gt;ORACLE_SID=baanprd&lt;BR /&gt;PATH=${PATH}:${ORACLE_HOME}/bin &lt;BR /&gt;&lt;BR /&gt;export ORACLE_BASE ORACLE_HOME TNS_ADMIN ORACLE_SID PATH&lt;BR /&gt;&lt;BR /&gt;------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Now the .profile of each user should add&lt;BR /&gt;something like this to the standand HP .profile&lt;BR /&gt;&lt;BR /&gt;P0PROG=/usr/local/bin/Oraenv.sh&lt;BR /&gt;if [ -r ${P0PROG} -a -f ${P0PROG} ]&lt;BR /&gt;  then&lt;BR /&gt;    . ${P0PROG}&lt;BR /&gt;  fi&lt;BR /&gt;unset P0PROG&lt;BR /&gt;&lt;BR /&gt;It is very important in the sourced file that no exit statement be included. The beauty of this&lt;BR /&gt;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&lt;BR /&gt;tries to su - oracle -c command  because some of the commands expect an interactive environment is avoided.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 01 May 2002 22:25:52 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2002-05-01T22:25:52Z</dc:date>
    <item>
      <title>Workable Oracle user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/workable-oracle-user-profile/m-p/2715295#M947270</link>
      <description>Hi all;&lt;BR /&gt;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.&lt;BR /&gt;Any help would be greatly appreciated and helpful in my case.  The oracle DB is version 817 hosted by 11.0&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 01 May 2002 21:46:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/workable-oracle-user-profile/m-p/2715295#M947270</guid>
      <dc:creator>Steven Gabriel_1</dc:creator>
      <dc:date>2002-05-01T21:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Workable Oracle user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/workable-oracle-user-profile/m-p/2715296#M947271</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;My favorite way to do this is to create a 'source' file (e.g. /usr/local/bin/Oraenv.sh)&lt;BR /&gt;that looks something like this:&lt;BR /&gt;&lt;BR /&gt;#sets ORACLE vars and PATH&lt;BR /&gt;&lt;BR /&gt;ORACLE_BASE=/PrdOra/app/oracle&lt;BR /&gt;ORACLE_HOME=${ORACLE_BASE}/product/8.1.1&lt;BR /&gt;TNS_ADMIN=${ORACLE_HOME}/network/admin&lt;BR /&gt;ORACLE_SID=baanprd&lt;BR /&gt;PATH=${PATH}:${ORACLE_HOME}/bin &lt;BR /&gt;&lt;BR /&gt;export ORACLE_BASE ORACLE_HOME TNS_ADMIN ORACLE_SID PATH&lt;BR /&gt;&lt;BR /&gt;------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Now the .profile of each user should add&lt;BR /&gt;something like this to the standand HP .profile&lt;BR /&gt;&lt;BR /&gt;P0PROG=/usr/local/bin/Oraenv.sh&lt;BR /&gt;if [ -r ${P0PROG} -a -f ${P0PROG} ]&lt;BR /&gt;  then&lt;BR /&gt;    . ${P0PROG}&lt;BR /&gt;  fi&lt;BR /&gt;unset P0PROG&lt;BR /&gt;&lt;BR /&gt;It is very important in the sourced file that no exit statement be included. The beauty of this&lt;BR /&gt;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&lt;BR /&gt;tries to su - oracle -c command  because some of the commands expect an interactive environment is avoided.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 May 2002 22:25:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/workable-oracle-user-profile/m-p/2715296#M947271</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-05-01T22:25:52Z</dc:date>
    </item>
  </channel>
</rss>

