tailieunhanh - Oracle Built−in Packages- P134
Oracle Built−in Packages- P134: Ah, for the good old days of Version of PL /SQL! Life was so simple then. No stored procedures or functions and certainly no packages. You had your set of built−in functions, like SUBSTR and TO_DATE. You had the IF statement and various kinds of loops. With these tools at hand, you built your batch−processing scripts for execution in SQL*Plus, and you coded your triggers in SQL*Forms , and you went home at night content with a good day's work done. | Appendix A What s on the Companion Disk commfailure -23317 Unable to communicate with one or more master sites missinggroup -23331 Replication group gname does not exist nonmasterdef -23312 Calling site is not master definition site Restrictions The COMMENT_ON_REPGROUP procedure must be called from the master definition site. Example This call adds or replaces the comment in DBA_REPGROUP for the SPROCKET replication group BEGIN gname SPROCKET comment Comment added on sysdate by user END COMMENT_ON_REPGROUP queues an RPC to update the field at all other master sites. Replicated Objects with DBMS_REPCAT After you have created your replication group s with or without comments you are ready to add alter and remove member objects. Here are the procedures you need The following sections describe these programs in detail. The procedure The CREATE_MASTER_REPOBJECT procedure creates a replicated object. Its specification follows PROCEDURE sname IN VARCHAR2 oname IN VARCHAR2 type IN VARCHAR2 use_existing_object IN BOOLEAN TRUE ddl_text IN VARCHAR2 NULL comment IN VARCHAR2 retry IN BOOLEAN FALSE copy_rows IN BOOLEAN TRUE gname IN VARCHAR2 Parameters are summarized in the following table. Name Description sname Name of the schema to which oname belongs. oname Name of the object to be added. type Replication Groups with DBMS_REPCAT 656 Appendix A What s on the Companion Disk Object type. Valid types TABLE INDEX SYNONYM TRIGGER VIEW PROCEDURE FUNCTION PACKAGE and PACKAGE BODY. use_existing_object Set to TRUE to reuse existing objects with the same name and structure at master sites. ddl_text Text of DDL statement to create object oname use this .
đang nạp các trang xem trước