<?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: scheduling oracle export process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916856#M108591</link>
    <description>Cris comment:&lt;BR /&gt;Doesn't work.&lt;BR /&gt;&lt;BR /&gt;Carlos Comment:&lt;BR /&gt;when I view the mail for xyz, I notice the following:&lt;BR /&gt;&lt;BR /&gt;sh: /etc/profile: execute permission denied&lt;BR /&gt;&lt;BR /&gt;sh: ./profile: execute permission denied&lt;BR /&gt;&lt;BR /&gt;sh: exp: not found&lt;BR /&gt;&lt;BR /&gt;then, I wrote the whole path for exp, and still nout found.&lt;BR /&gt;&lt;BR /&gt;Other Comments I'll go through it now&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 03 Mar 2003 11:53:53 GMT</pubDate>
    <dc:creator>YMJ</dc:creator>
    <dc:date>2003-03-03T11:53:53Z</dc:date>
    <item>
      <title>scheduling oracle export process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916849#M108584</link>
      <description>GREETINGS&lt;BR /&gt;&lt;BR /&gt;Objective: &lt;BR /&gt;Daily backup for oracle database tables using cron.&lt;BR /&gt;&lt;BR /&gt;Overview:&lt;BR /&gt;Normaly to export tables iuse this command:&lt;BR /&gt;exp username/password full=y file=/backup/ora.dmp&lt;BR /&gt;&lt;BR /&gt;this command will export all database tables to a dump file called ora.dmp &lt;BR /&gt;&lt;BR /&gt;I want to scheduled this command by cron. so, I added the oracle account called xyz to cron.allow&lt;BR /&gt;&lt;BR /&gt;then, &lt;BR /&gt;crontab -e xyz&lt;BR /&gt;&lt;BR /&gt;added:&lt;BR /&gt;00 18 * * * exp username/password full=y file=/backup/ora.dmp&lt;BR /&gt;&lt;BR /&gt;Problem:&lt;BR /&gt;Nothing happen, the cron daemon can't read the above task. I tried another task " ps -ef &amp;gt; file" and it did read it.&lt;BR /&gt;IS there any problem with syntax? &lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 03 Mar 2003 10:55:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916849#M108584</guid>
      <dc:creator>YMJ</dc:creator>
      <dc:date>2003-03-03T10:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: scheduling oracle export process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916850#M108585</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;using cron you do not have a login-shell, so try this:&lt;BR /&gt;&lt;BR /&gt;00 18 * * * (. /etc/profile; . ./.profile; exp username/password full=y file=/backup/ora.dmp)&lt;BR /&gt;&lt;BR /&gt;HINT:&lt;BR /&gt;"exp username/password ..." will show you the password of this user in the ps-command, better:&lt;BR /&gt;"echo username/passwword@SID | exp ..."&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Mon, 03 Mar 2003 11:01:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916850#M108585</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2003-03-03T11:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: scheduling oracle export process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916851#M108586</link>
      <description>1-  su - xyz&lt;BR /&gt;     crontab -l&lt;BR /&gt;  # See if the cron have read teh crontab file&lt;BR /&gt;&lt;BR /&gt;2-  /sbin/init.d/cron stop&lt;BR /&gt;    /sbin/init.d/cron start&lt;BR /&gt;&lt;BR /&gt;   # RE start cron process&lt;BR /&gt;&lt;BR /&gt;3-     mailx  -f /var/mail/xyz&lt;BR /&gt;&lt;BR /&gt;    # see user mail for cron notifications&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;4- vi /usr/lib/cron/log&lt;BR /&gt;&lt;BR /&gt;   # search for commands started foe user xyz&lt;BR /&gt;&lt;BR /&gt;...</description>
      <pubDate>Mon, 03 Mar 2003 11:07:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916851#M108586</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2003-03-03T11:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: scheduling oracle export process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916852#M108587</link>
      <description>The problem could be like the profile of the user not properly setup.&lt;BR /&gt;My crontab looks like&lt;BR /&gt;&lt;BR /&gt;40 * * * * /usr/bin/expdat&lt;BR /&gt;&lt;BR /&gt;# vi expdat&lt;BR /&gt;&lt;BR /&gt;#this script is used to export the database&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;ORACLE_HOME=/opt/app/oracle/product/8.1.7;export ORACLE_HOME&lt;BR /&gt;TERM=vt100;export TERM&lt;BR /&gt;rm /tmp/database&lt;BR /&gt;$ORACLE_HOME/bin/givedb &amp;gt;&amp;gt; /tmp/database&lt;BR /&gt;x=`date "+.dmp%d%m%y"`;&lt;BR /&gt;for i in `cat /tmp/database`&lt;BR /&gt;do&lt;BR /&gt;#echo "enter the database name for export :\c"&lt;BR /&gt;#read ORACLE_SID;export ORACLE_SID&lt;BR /&gt;$ORACLE_HOME/bin/exp system/&lt;PASSWORD&gt;@$i file=/home/oradmp/$i$x full=y&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this is the givedb script&lt;BR /&gt;&lt;BR /&gt;ps -ef|grep ora_reco|grep -v grep|awk '{print $9}'| cut -c 10- |egrep 'DB'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks&lt;/PASSWORD&gt;</description>
      <pubDate>Mon, 03 Mar 2003 11:09:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916852#M108587</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-03-03T11:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: scheduling oracle export process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916853#M108588</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;login as xyz user&lt;BR /&gt;$crontab -e</description>
      <pubDate>Mon, 03 Mar 2003 11:10:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916853#M108588</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2003-03-03T11:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: scheduling oracle export process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916854#M108589</link>
      <description>hi,&lt;BR /&gt;are the variables etc, required for export to run available. &lt;BR /&gt;&lt;BR /&gt;the best way to do is to check the mails for the user with which cron is run and also the cron log.&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;-balaji</description>
      <pubDate>Mon, 03 Mar 2003 11:50:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916854#M108589</guid>
      <dc:creator>Balaji N</dc:creator>
      <dc:date>2003-03-03T11:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: scheduling oracle export process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916855#M108590</link>
      <description>Cris comment:&lt;BR /&gt;Doesn't work.&lt;BR /&gt;&lt;BR /&gt;Carlos Comment:&lt;BR /&gt;when I view mail for xyz, I notice the following:&lt;BR /&gt;&lt;BR /&gt;sh: /etc/profile: execute permission denied&lt;BR /&gt;&lt;BR /&gt;sh: ./profile: execute permission denied&lt;BR /&gt;&lt;BR /&gt;sh: exp: not found&lt;BR /&gt;&lt;BR /&gt;then, I wrote the whole path for exp, and still nout found.&lt;BR /&gt;&lt;BR /&gt;Other Comments I'll go through it now&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Mar 2003 11:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916855#M108590</guid>
      <dc:creator>YMJ</dc:creator>
      <dc:date>2003-03-03T11:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: scheduling oracle export process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916856#M108591</link>
      <description>Cris comment:&lt;BR /&gt;Doesn't work.&lt;BR /&gt;&lt;BR /&gt;Carlos Comment:&lt;BR /&gt;when I view the mail for xyz, I notice the following:&lt;BR /&gt;&lt;BR /&gt;sh: /etc/profile: execute permission denied&lt;BR /&gt;&lt;BR /&gt;sh: ./profile: execute permission denied&lt;BR /&gt;&lt;BR /&gt;sh: exp: not found&lt;BR /&gt;&lt;BR /&gt;then, I wrote the whole path for exp, and still nout found.&lt;BR /&gt;&lt;BR /&gt;Other Comments I'll go through it now&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Mar 2003 11:53:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916856#M108591</guid>
      <dc:creator>YMJ</dc:creator>
      <dc:date>2003-03-03T11:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: scheduling oracle export process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916857#M108592</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I didnt write ( /etc/.profile) ....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Substitute your exp .... line by a filename.sh.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Inside filename.sh set all VARIABLES you need to run the export - ORACLE_SID, PATH ...-&lt;BR /&gt;&lt;BR /&gt;Include also  the line&lt;BR /&gt;&lt;BR /&gt;set -x&lt;BR /&gt;&lt;BR /&gt;so the mail will contain all commands executed.&lt;BR /&gt;&lt;BR /&gt;set execution perms to filename.sh&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Mar 2003 12:12:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916857#M108592</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2003-03-03T12:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: scheduling oracle export process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916858#M108593</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;/etc/profile is not a shell-skript, you cannot execute it, you have to "source" it.&lt;BR /&gt;Please copy and paste my answer and you'll find:&lt;BR /&gt;. /etc/profile&lt;BR /&gt;and&lt;BR /&gt;. ./.profile&lt;BR /&gt;&lt;BR /&gt;(dot-space-/etc/profile)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Mon, 03 Mar 2003 12:31:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916858#M108593</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2003-03-03T12:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: scheduling oracle export process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916859#M108594</link>
      <description>&lt;BR /&gt;Proper permissions on /etc/profile&lt;BR /&gt;&lt;BR /&gt;-r--r--r--   1 bin        bin           2539 Dec 30 08:36 /etc/profile&lt;BR /&gt;&lt;BR /&gt;We don't want to execute it.&lt;BR /&gt;&lt;BR /&gt;As user xyz do you get a schedule when you run crontab -e  ?&lt;BR /&gt;&lt;BR /&gt;I didn't see that.&lt;BR /&gt;&lt;BR /&gt;We are going this way currently oracle backups are done by root with this cron syntax.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;5 22 * * 1-5 /usr/contrib/bin/backup.oracle.sh 2&amp;gt;&amp;amp;1 | mailx -s "Nighlty Oracle C&lt;BR /&gt;old Backup" HPSysCronLog@juf.org&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Inside the job....&lt;BR /&gt;/usr/bin/su - oracle -c "/usr/contrib/bin/nightly.backup.oracle.sh"&lt;BR /&gt;&lt;BR /&gt;This handles making sure the backup is done by oracle user not root.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Mar 2003 17:35:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916859#M108594</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-03-03T17:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: scheduling oracle export process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916860#M108595</link>
      <description>YES it works with Cris comment. I didn't notice the spaces between dots.&lt;BR /&gt;&lt;BR /&gt;Thank very much Cris.&lt;BR /&gt;&lt;BR /&gt;Thank you all &lt;BR /&gt;&lt;BR /&gt;YMJ</description>
      <pubDate>Tue, 04 Mar 2003 06:51:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-oracle-export-process/m-p/2916860#M108595</guid>
      <dc:creator>YMJ</dc:creator>
      <dc:date>2003-03-04T06:51:06Z</dc:date>
    </item>
  </channel>
</rss>

