pdb_get_procedures

(Oracle and Microsoft SQL Server only) Returns a list of procedures in the current database at the primary data server.

Note: This command is available only for Oracle and Microsoft SQL Server.

Syntax

pdb_get_procedures [ownername, procname]

Parameters

Examples

Usage

Note: (For Oracle and Microsoft SQL Server) Results from these commands are from the Replication Agent System database (RASD). (For UDB) Results from these commands are directly from the primary database.
  • When pdb_get_procedures is invoked with no option, it returns a result set that lists all of the procedures in the current database.

  • When pdb_get_procedures is invoked with the ownername and procname options, it returns a result set with information about the specified procedure with the specified owner in the current database.

  • The pdb_get_procedures command accepts the % wildcard character in both the ownername and procname options.

  • The current database is either:
    • The default current database, which is the primary database specified in the Replication Agent pds_database_name configuration parameter, or

    • The database specified in the pdb_set_sql_database command to which the Replication Agent instance is currently connected. (This is not valid for Oracle.)

  • To set or change the current database, use the pdb_set_sql_database command.

    Note: In Oracle, you cannot change the current database.
  • To find the name of the current database, use the pdb_get_sql_database command.

  • The pdb_get_procedures command returns 0 rows if the specified procedure (with the specified owner) does not exist in the current database.

  • The pdb_get_procedures command is valid when the Replication Agent instance is in the Admin, Replicating, or Replication Down state.

Related reference
pdb_get_columns
pdb_get_databases
pdb_get_primary_keys
pdb_get_procedure_parms
pdb_get_tables