<?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: root, oracle,rdbms and sqlplus in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/root-oracle-rdbms-and-sqlplus/m-p/3038875#M906576</link>
    <description>As Oracle, do "env |grep -i oracle" and compare this against the same output when logged in as root.  There's got to be something missing from root's env.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 31 Jul 2003 17:28:52 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2003-07-31T17:28:52Z</dc:date>
    <item>
      <title>root, oracle,rdbms and sqlplus</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-oracle-rdbms-and-sqlplus/m-p/3038874#M906575</link>
      <description>We are trying to run an sql query as root to get the number of current sessions on the database. Normally we run this as oracle but now we need it as root for monitoring.  I seem to be having environment issues as the commands do not work....&lt;BR /&gt;su oracle -c /../../..sqlplus sess.sql ....&lt;BR /&gt;I get sqlplus not found even after setting path etc.....&lt;BR /&gt;&lt;BR /&gt;PATH=$PATH;/opt/oracle/8.1.7/bin/;.&lt;BR /&gt;ORACLE_SID=$1&lt;BR /&gt;ORACLE_SCRIPT=/opt/oracle/admin/script&lt;BR /&gt;ORACLE_HOME=/opt/oracle/8.1.7&lt;BR /&gt;export ORACLE_SID&lt;BR /&gt;export ORACLE_HOME&lt;BR /&gt;export SESSLOC=/opt/oracle/admin/script/sess.sql&lt;BR /&gt;export SQL=/opt/oracle/admin/script/sqlplus.sh&lt;BR /&gt;&lt;BR /&gt;SES=`su oracle "$SQL system $SESSLOC |grep rows |cut -d " " -f 1"`&lt;BR /&gt;&lt;BR /&gt;echo "The number of active sessions is $SES"&lt;BR /&gt;Any ideas? Thanks.</description>
      <pubDate>Thu, 31 Jul 2003 17:23:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-oracle-rdbms-and-sqlplus/m-p/3038874#M906575</guid>
      <dc:creator>Scott E Smith</dc:creator>
      <dc:date>2003-07-31T17:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: root, oracle,rdbms and sqlplus</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-oracle-rdbms-and-sqlplus/m-p/3038875#M906576</link>
      <description>As Oracle, do "env |grep -i oracle" and compare this against the same output when logged in as root.  There's got to be something missing from root's env.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jul 2003 17:28:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-oracle-rdbms-and-sqlplus/m-p/3038875#M906576</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-07-31T17:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: root, oracle,rdbms and sqlplus</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-oracle-rdbms-and-sqlplus/m-p/3038876#M906577</link>
      <description>Try "su - oracle ....."&lt;BR /&gt;&lt;BR /&gt;the "-" tells su to execute the login environment.&lt;BR /&gt;&lt;BR /&gt;This helps (no hope needed !)&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 31 Jul 2003 17:29:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-oracle-rdbms-and-sqlplus/m-p/3038876#M906577</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2003-07-31T17:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: root, oracle,rdbms and sqlplus</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-oracle-rdbms-and-sqlplus/m-p/3038877#M906578</link>
      <description>LD_LIBRARY_PATH ??&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jul 2003 21:03:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-oracle-rdbms-and-sqlplus/m-p/3038877#M906578</guid>
      <dc:creator>prasad_15</dc:creator>
      <dc:date>2003-07-31T21:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: root, oracle,rdbms and sqlplus</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-oracle-rdbms-and-sqlplus/m-p/3038878#M906579</link>
      <description>You do not want to use su - oracle to read Oracle's .profile unless you surround all the interactive commands like tset, stty, and tabs with&lt;BR /&gt;if [[ -t 0 ]]&lt;BR /&gt;  then&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;The better way is to create a file (e.g. /usr/local/bin/oraenv.sh) and let your script and oracle's .profile source it via&lt;BR /&gt;. /usr/local/bin/oraenv.sh&lt;BR /&gt;&lt;BR /&gt;This will insure that both your scripts and oracle's .profile will use exactly the same environment. NOTE: This sources file must not contain an exit or return statement.&lt;BR /&gt;&lt;BR /&gt;Your specific problem is that you used semicolons rather than colons in the construction of your PATH.&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jul 2003 21:15:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-oracle-rdbms-and-sqlplus/m-p/3038878#M906579</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-07-31T21:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: root, oracle,rdbms and sqlplus</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-oracle-rdbms-and-sqlplus/m-p/3038879#M906580</link>
      <description>I extracted some code from our auto-shutdown &lt;BR /&gt;oracle database script:&lt;BR /&gt;&lt;BR /&gt;if [ "$LOGNAME" = "root" ]&lt;BR /&gt;then&lt;BR /&gt;  echo "User root shells to oracle"&lt;BR /&gt;    /usr/bin/su - oracle -c "/usr/contrib/bin/shut.oracle"&lt;BR /&gt;    exit 1&lt;BR /&gt;fi</description>
      <pubDate>Thu, 31 Jul 2003 22:16:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-oracle-rdbms-and-sqlplus/m-p/3038879#M906580</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-07-31T22:16:02Z</dc:date>
    </item>
  </channel>
</rss>

