Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

DBMS_REPCAT_RGT, 9 of 33


CREATE_OBJECT_FROM_EXISTING Function

This function creates a template object definition from existing database objects and adds it to a target deployment template. The object DDL that created the original database object is executed when the target deployment template is instantiated at the remote materialized view site. This is ideal for adding existing triggers and procedures to your template. The number returned by this function is used internally by Oracle to manage deployment templates.

Syntax

DBMS_REPCAT_RGT.CREATE_OBJECT_FROM_EXISTING(
     refresh_template_name  IN   VARCHAR2,
     object_name            IN   VARCHAR2,
     sname                  IN   VARCHAR2,
     oname                  IN   VARCHAR2,
     otype                  IN   VARCHAR2)
     return NUMBER;

Parameters

Table 51-18 CREATE_OBJECT_FROM_EXISTING Function Parameters
Parameter  Description 
refresh_template_name
 

Name of the deployment template to which you want to add this object. 

object_name
 

Optionally, the new name of the existing object that you are adding to your deployment template (enables you to define a new name for an existing object). 

sname
 

The schema that contains the object that you are creating your template object from. 

oname
 

Name of the object that you are creating your template object from. 

otype
 

The type of database object that you are adding to the template (that is, PROCEDURE, TRIGGER, and so on). The object type must be specified using the following numerical identifiers (DATABASE LINK, MATERIALIZED VIEW, and SNAPSHOT are not a valid object types for this function):

SEQUENCE        PROCEDURE

INDEX           FUNCTION

TABLE           PACKAGE

VIEW            PACKAGE BODY

SYNONYM         TRIGGER
 

Exceptions

Table 51-19 CREATE_OBJECT_FROM_EXISTING Function Exceptions
Exception  Description 
miss_refresh_template
 

The specified refresh template name is invalid or missing. Query the DBA_REPCAT_REFRESH_TEMPLATES view for a list of existing deployment templates. 

bad_object_type
 

The object type is specified incorrectly. 

dupl_template_object
 

An object of the same name and type has already been added to the specified deployment template. 

objectmissing
 

The object specified does not exist. 

Returns

Table 51-20 CREATE_OBJECT_FROM_EXISTING Function Returns
Return Value  Description 

<system-generated number

System-generated number used internally by Oracle. 


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback