<?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 the problem about oracle logical backup in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/the-problem-about-oracle-logical-backup/m-p/4190134#M14593</link>
    <description>there is two tables, test_bak and  test&lt;BR /&gt;when i insert a record such as: &lt;BR /&gt;insert into test values('backup test_bak');&lt;BR /&gt;&lt;BR /&gt;after insert a record into test,the table test_bak will be backuped auto(use exp/expdp)&lt;BR /&gt;i want to use trigger,but don't know how to write.&lt;BR /&gt;any body can help me，thank you.&lt;BR /&gt;</description>
    <pubDate>Thu, 01 May 2008 06:56:06 GMT</pubDate>
    <dc:creator>ora_lion</dc:creator>
    <dc:date>2008-05-01T06:56:06Z</dc:date>
    <item>
      <title>the problem about oracle logical backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-problem-about-oracle-logical-backup/m-p/4190134#M14593</link>
      <description>there is two tables, test_bak and  test&lt;BR /&gt;when i insert a record such as: &lt;BR /&gt;insert into test values('backup test_bak');&lt;BR /&gt;&lt;BR /&gt;after insert a record into test,the table test_bak will be backuped auto(use exp/expdp)&lt;BR /&gt;i want to use trigger,but don't know how to write.&lt;BR /&gt;any body can help me，thank you.&lt;BR /&gt;</description>
      <pubDate>Thu, 01 May 2008 06:56:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-problem-about-oracle-logical-backup/m-p/4190134#M14593</guid>
      <dc:creator>ora_lion</dc:creator>
      <dc:date>2008-05-01T06:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: the problem about oracle logical backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-problem-about-oracle-logical-backup/m-p/4190135#M14594</link>
      <description>Might want to check with Oracle and with the Oracle Metalink resources and the Oracle product documentation over there.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.oracle.com" target="_blank"&gt;http://www.oracle.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 May 2008 14:07:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-problem-about-oracle-logical-backup/m-p/4190135#M14594</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-05-01T14:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: the problem about oracle logical backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-problem-about-oracle-logical-backup/m-p/4190136#M14595</link>
      <description>As Hoff points out, this is really a pure Oracle question, with no OpenVMS specific compontent.&lt;BR /&gt;&lt;BR /&gt;What have you tried so far?&lt;BR /&gt;&lt;BR /&gt;The best place to start this quest is the Oracle SQL Ref Manual under "CREATE TRIGGER".&lt;BR /&gt;It points to several other manuals for foundation knowledge. &lt;BR /&gt;&lt;BR /&gt;Typically you would hook up some "anonymous PL/SQL" to the trigger.&lt;BR /&gt;&lt;BR /&gt;CREATE TRIGGER my_schema.copy_test_insert&lt;BR /&gt;   AFTER INSERT ON test&lt;BR /&gt;BEGIN&lt;BR /&gt;-- plsql stuff...&lt;BR /&gt;     INSERT INTO test_bak(test_column)&lt;BR /&gt;     VALUES ( :new.test_column);&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 01 May 2008 17:50:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-problem-about-oracle-logical-backup/m-p/4190136#M14595</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-05-01T17:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: the problem about oracle logical backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-problem-about-oracle-logical-backup/m-p/4190137#M14596</link>
      <description>&lt;!--!*#--&gt;Just FYI, the SQL code below, copied from a SQLdeveloper session against an Oracle XE server on my laptop running Windoze XP, worked as expected to clone inserts.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;CREATE TABLE "HEIN"."TEST" &lt;BR /&gt;   ( "X" VARCHAR2(20 BYTE), &lt;BR /&gt; "Y" VARCHAR2(20 BYTE)&lt;BR /&gt;   )&lt;BR /&gt;&lt;BR /&gt;CREATE OR REPLACE TRIGGER "HEIN"."DUPLICATE_TEST_INSERTS" &lt;BR /&gt;after insert on test&lt;BR /&gt;for each row &lt;BR /&gt;BEGIN&lt;BR /&gt;  insert into test_duplicate ( insert_date, x, y )&lt;BR /&gt;  VALUES ( sysdate, :new.x, :new.y );&lt;BR /&gt;END;&lt;BR /&gt;&lt;BR /&gt;/&lt;BR /&gt;ALTER TRIGGER "HEIN"."DUPLICATE_TEST_INSERTS" ENABLE;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;CREATE TABLE "HEIN"."TEST_DUPLICATE" &lt;BR /&gt;   ( "X" VARCHAR2(20 BYTE), &lt;BR /&gt; "Y" VARCHAR2(20 BYTE), &lt;BR /&gt; "INSERT_DATE" DATE&lt;BR /&gt;   );&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;insert into test values ('hello', 'world');&lt;BR /&gt;&lt;BR /&gt;select x,y,to_char(insert_date,'dd/mm/yy hh:mi:ss') from test_duplicate;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 May 2008 14:14:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-problem-about-oracle-logical-backup/m-p/4190137#M14596</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-05-05T14:14:38Z</dc:date>
    </item>
  </channel>
</rss>

