<?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: Oracle SQL script to display ORACLE users on a SAP system in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-sql-script-to-display-oracle-users-on-a-sap-system/m-p/3941943#M760508</link>
    <description>I agree with Clay,&lt;BR /&gt;&lt;BR /&gt;should go like this:&lt;BR /&gt;put in your ORACLE_SID for xxx&lt;BR /&gt;and adjust 102_64 to 920_64 if not upgraded yet.&lt;BR /&gt;&lt;BR /&gt;This script by the way would normally not be ruanble as root, because root does not belong to group "dba" and will therefore never be able to connet as sysdba. So I guess you'll run it as orasid ?!&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/csh&lt;BR /&gt;setenv ORACLE_SID xxx&lt;BR /&gt;setenv ORACLE_HOME /oracle/${ORACLE_SID}/102_64&lt;BR /&gt;&lt;BR /&gt;${ORACLE_HOME}/bin/sqlplus ..... rest is ok&lt;BR /&gt;&lt;BR /&gt;Volker</description>
    <pubDate>Fri, 09 Feb 2007 13:28:30 GMT</pubDate>
    <dc:creator>Volker Borowski</dc:creator>
    <dc:date>2007-02-09T13:28:30Z</dc:date>
    <item>
      <title>Oracle SQL script to display ORACLE users on a SAP system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-sql-script-to-display-oracle-users-on-a-sap-system/m-p/3941941#M760506</link>
      <description>Hi,&lt;BR /&gt;I am trying to write a script to display Oracle users in a SAP system for SOX compliance, i want to cron the script to run at the begining of every Month.&lt;BR /&gt;However the script doesnt seem to be working.&lt;BR /&gt;&lt;BR /&gt;Any ideas, below is the script.&lt;BR /&gt;#!/usr/bin/csh&lt;BR /&gt;$(ORACLE_HOME)/bin/sqlplus / as sysdba &amp;lt;&lt;EOF&gt; /dev/null&lt;BR /&gt;spool /tmp/oracle_users.txt&lt;BR /&gt;select username, account_status from dba_users;&lt;BR /&gt;spool off;&lt;BR /&gt;exit;&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;&lt;/EOF&gt;</description>
      <pubDate>Fri, 09 Feb 2007 11:39:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-sql-script-to-display-oracle-users-on-a-sap-system/m-p/3941941#M760506</guid>
      <dc:creator>Mr. John Kerr</dc:creator>
      <dc:date>2007-02-09T11:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SQL script to display ORACLE users on a SAP system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-sql-script-to-display-oracle-users-on-a-sap-system/m-p/3941942#M760507</link>
      <description>First make sure that your script can run from a shell as the cron'ed user. Unless there is an extremely compelling reason, I would not use csh. Under cron, which intentionally has a very sparse environment, ORACLE_HOME, ORACLE_SID, and essentially all but a handful of variables are not defined. Moreover PATH is extremely limited as well. You need to explicitly set and export any needed environment variables within the cron'ed script before you ever invoke sqlplus.&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Feb 2007 11:49:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-sql-script-to-display-oracle-users-on-a-sap-system/m-p/3941942#M760507</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-02-09T11:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SQL script to display ORACLE users on a SAP system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-sql-script-to-display-oracle-users-on-a-sap-system/m-p/3941943#M760508</link>
      <description>I agree with Clay,&lt;BR /&gt;&lt;BR /&gt;should go like this:&lt;BR /&gt;put in your ORACLE_SID for xxx&lt;BR /&gt;and adjust 102_64 to 920_64 if not upgraded yet.&lt;BR /&gt;&lt;BR /&gt;This script by the way would normally not be ruanble as root, because root does not belong to group "dba" and will therefore never be able to connet as sysdba. So I guess you'll run it as orasid ?!&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/csh&lt;BR /&gt;setenv ORACLE_SID xxx&lt;BR /&gt;setenv ORACLE_HOME /oracle/${ORACLE_SID}/102_64&lt;BR /&gt;&lt;BR /&gt;${ORACLE_HOME}/bin/sqlplus ..... rest is ok&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Fri, 09 Feb 2007 13:28:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-sql-script-to-display-oracle-users-on-a-sap-system/m-p/3941943#M760508</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2007-02-09T13:28:30Z</dc:date>
    </item>
  </channel>
</rss>

