<?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: pl/sql help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-help/m-p/3040839#M907503</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Brian made a small error in his correction:&lt;BR /&gt;&lt;BR /&gt;DECLARE &lt;BR /&gt;v_row_id siebel.s_addr_per.row_id%TYPE; &lt;BR /&gt;                           ~~~~~~~&lt;BR /&gt;should be &lt;BR /&gt;v_row_id siebel.s_addr_per.rowid%TYPE; &lt;BR /&gt;&lt;BR /&gt;(no undescore)&lt;BR /&gt;&lt;BR /&gt;Otherwise, I think his script will work.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;FiX&lt;BR /&gt;</description>
    <pubDate>Tue, 05 Aug 2003 08:11:48 GMT</pubDate>
    <dc:creator>F. X. de Montgolfier</dc:creator>
    <dc:date>2003-08-05T08:11:48Z</dc:date>
    <item>
      <title>pl/sql help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-help/m-p/3040837#M907501</link>
      <description>Hi list,&lt;BR /&gt;I am getting errors when I execute the following pl/sql, any help?&lt;BR /&gt;&lt;BR /&gt;DECLARE&lt;BR /&gt;v_row_id siebel.s_addr_per.row_id%TYPE;&lt;BR /&gt;v_audit_type s_addr_per_audit.audit_type%TYPE;&lt;BR /&gt;v_loc siebel.s_org_ext.loc%TYPE;&lt;BR /&gt;v_name siebel.s_org_ext.name%TYPE;&lt;BR /&gt;CURSOR audit_type_cur ( v_row_id VARCHAR2 ) IS&lt;BR /&gt;SELECT audit_type, row_id&lt;BR /&gt;FROM SIEBAUDIT.S_ADDR_PER_AUDIT&lt;BR /&gt;WHERE audit_at &amp;gt; sysdate - 1/1440;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CURSOR audit_upd_cur (v_loc VARCHAR2, v_name VARCHAR2, V_row_id VARCHAR2 ) IS&lt;BR /&gt;SELECT name, loc&lt;BR /&gt;FROM SIEBEL.S_ORG_EXT&lt;BR /&gt;WHERE row_id = v_row_id;&lt;BR /&gt;BEGIN&lt;BR /&gt;   OPEN audit_type_cur;&lt;BR /&gt;     LOOP&lt;BR /&gt;    FETCH audit_type_cur INTO v_audit_type,v_row_id;&lt;BR /&gt;     EXIT WHEN audit_type_cur%NOTFOUND;&lt;BR /&gt;  IF ( audit_type = 'D' ) THEN&lt;BR /&gt;  OPEN audit_upd_cur;&lt;BR /&gt;    FETCH audit_upd_cur INTO v_name, v_loc;&lt;BR /&gt;     UPDATE SIEBAUDIT.S_ADDR_PER_AUDIT&lt;BR /&gt;   SET old_loc=v_loc&lt;BR /&gt;   WHERE row_id=v_row_id;&lt;BR /&gt;   UPDATE SIEBAUDIT.S_ADDR_PER_AUDIT&lt;BR /&gt;   SET old_name=v_name&lt;BR /&gt;   WHERE row_id=v_row_id;&lt;BR /&gt;  CLOSE audit_upd_cur;&lt;BR /&gt;  ELSE&lt;BR /&gt;    INSERT INTO SIEBAUDIT.S_ADDR_PER_COPY&lt;BR /&gt;    SELECT * FROM SIEBEL.S_ADDR_PER&lt;BR /&gt;       WHERE ROW_ID=v_row_id;&lt;BR /&gt;         END IF;&lt;BR /&gt;  COMMIT;&lt;BR /&gt;          CLOSE audit_type_cur;&lt;BR /&gt;   END LOOP;&lt;BR /&gt;END;&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SELECT audit_type, row_id&lt;BR /&gt;                   *&lt;BR /&gt;ERROR at line 7:&lt;BR /&gt;ORA-06550: line 7, column 20:&lt;BR /&gt;PLS-00201: identifier 'ROW_ID' must be declared&lt;BR /&gt;ORA-06550: line 7, column 1:&lt;BR /&gt;PL/SQL: SQL Statement ignored&lt;BR /&gt;ORA-06550: line 15, column 4:&lt;BR /&gt;PLS-00306: wrong number or types of arguments in call to 'AUDIT_TYPE_C&lt;BR /&gt;UR'&lt;BR /&gt;ORA-06550: line 15, column 4:&lt;BR /&gt;PL/SQL: SQL Statement ignored&lt;BR /&gt;ORA-06550: line 7, column 20:&lt;BR /&gt;PLS-00320: the declaration of the type of this expression is incomplet&lt;BR /&gt;e or&lt;BR /&gt;malformed&lt;BR /&gt;ORA-06550: line 17, column 5:&lt;BR /&gt;PL/SQL: SQL Statement ignored&lt;BR /&gt;ORA-06550: line 19, column 8:&lt;BR /&gt;PLS-00201: identifier 'AUDIT_TYPE' must be declared&lt;BR /&gt;ORA-06550: line 19, column 3:&lt;BR /&gt;PL/SQL: Statement ignored&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Aug 2003 18:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-help/m-p/3040837#M907501</guid>
      <dc:creator>robert_177</dc:creator>
      <dc:date>2003-08-04T18:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: pl/sql help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-help/m-p/3040838#M907502</link>
      <description>DECLARE &lt;BR /&gt;v_row_id siebel.s_addr_per.row_id%TYPE; &lt;BR /&gt;v_audit_type s_addr_per_audit.audit_type%TYPE; &lt;BR /&gt;v_loc siebel.s_org_ext.loc%TYPE; &lt;BR /&gt;v_name siebel.s_org_ext.name%TYPE; &lt;BR /&gt;CURSOR audit_type_cur IS &lt;BR /&gt;SELECT audit_type, rowid &lt;BR /&gt;FROM SIEBAUDIT.S_ADDR_PER_AUDIT &lt;BR /&gt;WHERE audit_at &amp;gt; sysdate - 1/1440; &lt;BR /&gt;&lt;BR /&gt;CURSOR audit_upd_cur IS &lt;BR /&gt;SELECT name, loc &lt;BR /&gt;FROM SIEBEL.S_ORG_EXT &lt;BR /&gt;WHERE rowid = v_row_id; &lt;BR /&gt;&lt;BR /&gt;BEGIN &lt;BR /&gt;OPEN audit_type_cur; &lt;BR /&gt;LOOP &lt;BR /&gt;FETCH audit_type_cur INTO v_audit_type,v_row_id; &lt;BR /&gt;EXIT WHEN audit_type_cur%NOTFOUND; &lt;BR /&gt;IF ( v_audit_type = 'D' ) THEN &lt;BR /&gt;OPEN audit_upd_cur; &lt;BR /&gt;FETCH audit_upd_cur INTO v_name, v_loc; &lt;BR /&gt;UPDATE SIEBAUDIT.S_ADDR_PER_AUDIT &lt;BR /&gt;SET old_loc=v_loc, old_name=v_name &lt;BR /&gt;WHERE rowid=v_row_id; &lt;BR /&gt;CLOSE audit_upd_cur; &lt;BR /&gt;ELSE &lt;BR /&gt;INSERT INTO SIEBAUDIT.S_ADDR_PER_COPY &lt;BR /&gt;SELECT * FROM SIEBEL.S_ADDR_PER &lt;BR /&gt;WHERE ROWID=v_row_id; &lt;BR /&gt;END IF; &lt;BR /&gt;COMMIT; &lt;BR /&gt;CLOSE audit_type_cur; &lt;BR /&gt;END LOOP; &lt;BR /&gt;END; &lt;BR /&gt;/ &lt;BR /&gt;&lt;BR /&gt;Give this a try, and let me know if you get errors.  &lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Mon, 04 Aug 2003 21:08:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-help/m-p/3040838#M907502</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2003-08-04T21:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: pl/sql help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-help/m-p/3040839#M907503</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Brian made a small error in his correction:&lt;BR /&gt;&lt;BR /&gt;DECLARE &lt;BR /&gt;v_row_id siebel.s_addr_per.row_id%TYPE; &lt;BR /&gt;                           ~~~~~~~&lt;BR /&gt;should be &lt;BR /&gt;v_row_id siebel.s_addr_per.rowid%TYPE; &lt;BR /&gt;&lt;BR /&gt;(no undescore)&lt;BR /&gt;&lt;BR /&gt;Otherwise, I think his script will work.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;FiX&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Aug 2003 08:11:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pl-sql-help/m-p/3040839#M907503</guid>
      <dc:creator>F. X. de Montgolfier</dc:creator>
      <dc:date>2003-08-05T08:11:48Z</dc:date>
    </item>
  </channel>
</rss>

