<?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 Automatate the script to delete data in table. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/automatate-the-script-to-delete-data-in-table/m-p/2492356#M803652</link>
    <description>How could I write a script to auto login to DB and delete data in certain tables.</description>
    <pubDate>Mon, 12 Feb 2001 03:42:21 GMT</pubDate>
    <dc:creator>Kenn Chen</dc:creator>
    <dc:date>2001-02-12T03:42:21Z</dc:date>
    <item>
      <title>Automatate the script to delete data in table.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatate-the-script-to-delete-data-in-table/m-p/2492356#M803652</link>
      <description>How could I write a script to auto login to DB and delete data in certain tables.</description>
      <pubDate>Mon, 12 Feb 2001 03:42:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatate-the-script-to-delete-data-in-table/m-p/2492356#M803652</guid>
      <dc:creator>Kenn Chen</dc:creator>
      <dc:date>2001-02-12T03:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Automatate the script to delete data in table.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatate-the-script-to-delete-data-in-table/m-p/2492357#M803653</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;To automate, you will need a shell script.&lt;BR /&gt;&lt;BR /&gt;1) Execution of script as oracle account: &lt;BR /&gt;=====================&lt;BR /&gt;svrmgrl &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;connect internal&lt;BR /&gt;INSERT PL/SQL COMMANDS HERE&lt;BR /&gt;EOF&lt;BR /&gt;=====================&lt;BR /&gt;&lt;BR /&gt;2) Execution of script as sqlplus user:&lt;BR /&gt;=====================&lt;BR /&gt;$ORACLE_HOME/bin/sqlplus userid/passwd &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;INSERT PL/SQL COMMANDS HERE&lt;BR /&gt;EOF&lt;BR /&gt;=====================&lt;BR /&gt;where userid is a oracle user with delete privileges. There is a security concern that the userid and password is displayed in a ps process listing.&lt;BR /&gt;&lt;BR /&gt;3) To automate, use cron to call the script.&lt;BR /&gt;If you want to use root's crontab:&lt;BR /&gt;=====================&lt;BR /&gt;su - oracle -c delete.sh&lt;BR /&gt;=====================&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Mon, 12 Feb 2001 04:03:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatate-the-script-to-delete-data-in-table/m-p/2492357#M803653</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-02-12T04:03:15Z</dc:date>
    </item>
  </channel>
</rss>

