<?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: batch command and oracle jobs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-command-and-oracle-jobs/m-p/2489945#M889683</link>
    <description>Hi Eileen.&lt;BR /&gt;We have a lot of jobs running in background. &lt;BR /&gt;We use to start these jobs from the cron as root with a shell script. For sample doing a report we use report.sh and within this script we use lines like su - orace -c .......&lt;BR /&gt;One problem : if you run these jobs you may show usernames and passwords. Try to hide them in parameter files.&lt;BR /&gt;Hope i could help you.&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes&lt;BR /&gt;</description>
    <pubDate>Tue, 06 Feb 2001 06:43:11 GMT</pubDate>
    <dc:creator>Alexander M. Ermes</dc:creator>
    <dc:date>2001-02-06T06:43:11Z</dc:date>
    <item>
      <title>batch command and oracle jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-command-and-oracle-jobs/m-p/2489944#M889682</link>
      <description>Does anyone use the batch command with Oracle jobs?   Our Financial folks would like some sort of a queue system.  Any suggestions</description>
      <pubDate>Mon, 05 Feb 2001 21:17:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-command-and-oracle-jobs/m-p/2489944#M889682</guid>
      <dc:creator>Eileen Millen</dc:creator>
      <dc:date>2001-02-05T21:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: batch command and oracle jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-command-and-oracle-jobs/m-p/2489945#M889683</link>
      <description>Hi Eileen.&lt;BR /&gt;We have a lot of jobs running in background. &lt;BR /&gt;We use to start these jobs from the cron as root with a shell script. For sample doing a report we use report.sh and within this script we use lines like su - orace -c .......&lt;BR /&gt;One problem : if you run these jobs you may show usernames and passwords. Try to hide them in parameter files.&lt;BR /&gt;Hope i could help you.&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Feb 2001 06:43:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-command-and-oracle-jobs/m-p/2489945#M889683</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2001-02-06T06:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: batch command and oracle jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-command-and-oracle-jobs/m-p/2489946#M889684</link>
      <description>Hi Eileen,&lt;BR /&gt;&lt;BR /&gt;As Alexander mentioned, you can run batch processes as a cron job (and of course you may want to hide the password from appearing in the process list or hardcoding it in your scripts).&lt;BR /&gt;&lt;BR /&gt;One thing you will want to do if you are planning to run processes using a SQL-Plus session is to use the "-s" option until end-of-file as shown in my example below.&lt;BR /&gt;&lt;BR /&gt;===============================&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;# example SQL-Plus script for batch processing&lt;BR /&gt;&lt;BR /&gt;PSWD=`cat /ora0/oracle/passwd/sys`;&lt;BR /&gt;SIDFILE='/ora0/oracle/scripts/all_sids'&lt;BR /&gt;ORACLE_HOME='/ora0/oracle/app/oracle/product/8.1.6'&lt;BR /&gt;export ORACLE_HOME&lt;BR /&gt;PATH=$PATH:$ORACLE_HOME/bin:&lt;BR /&gt;export PATH&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cat $SIDFILE | while read SID&lt;BR /&gt;do&lt;BR /&gt;ORACLE_SID=$SID&lt;BR /&gt;export ORACLE_SID&lt;BR /&gt;sqlplus -s sys/$PSWD@$SID &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;&lt;BR /&gt;set linesize 120&lt;BR /&gt;&lt;BR /&gt;@/ora0/oracle/scripts/user_info.sql&lt;BR /&gt;@/ora0/oracle/scripts/tblsp_info.sql&lt;BR /&gt;@/ora0/oracle/scripts/high_water.sql&lt;BR /&gt;!/ora0/oracle/scripts/archive_stats&lt;BR /&gt;&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;#========= end of script ==========&lt;BR /&gt;&lt;BR /&gt;In the above example, I am reading the name of the database from a file called "all_sids" which allows me to run a loop and process the same scripts for all databases listed in the file..&lt;BR /&gt;&lt;BR /&gt;Next, in order to avoid hardcoding the password in the script, I am reading the password from a file on the operating system that I have set to read only by Oracle.&lt;BR /&gt;&lt;BR /&gt;Finally, when I run the sqlplus command, I am feeding in the variables for the password and oracle_sid explained above, then simply executing my scripts as in a normal sqlplus session.&lt;BR /&gt;&lt;BR /&gt;Last, I am running an OS command to archive my output files generated from the sql scripts.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;jim wolff&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Feb 2001 11:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-command-and-oracle-jobs/m-p/2489946#M889684</guid>
      <dc:creator>Jim Wolff</dc:creator>
      <dc:date>2001-02-06T11:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: batch command and oracle jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-command-and-oracle-jobs/m-p/2489947#M889685</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Also we have some hundreds of batch jobs for our Oracle environments.  Because there are so much jobs we decided to use the Enterprise Management module from Computer Associates (&lt;A href="http://www.ca.com)." target="_blank"&gt;www.ca.com).&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Probably this would help you a bit:&lt;BR /&gt;&lt;BR /&gt;create a unix script that calls some SQL or PL/SQL scripts.  Test it and put it in the crontab.  Use man crontab for information about use.  Sometimes it is great to use the logger command into your unix scripts.  Then you can create another script that does a tail -f of /var/adm/syslog/syslog.log and mails all your messages to your email address.  Anyhow, this is what we do and it seems to be working for a long time.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dieter Degrendele</description>
      <pubDate>Fri, 16 Mar 2001 16:23:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-command-and-oracle-jobs/m-p/2489947#M889685</guid>
      <dc:creator>Dieter Degrendele_1</dc:creator>
      <dc:date>2001-03-16T16:23:22Z</dc:date>
    </item>
  </channel>
</rss>

