pdb_get_tables

Returns a list of user tables in the current database at the primary data server.

Syntax

pdb_get_tables [ownername, tablename]

Parameters

Examples

Usage

Note: Results from these commands are from the Replication Agent System database (RASD).
  • When pdb_get_tables is invoked with no option, it returns a result set that lists all of the user tables in the current database.

    Note: System tables may or may not be returned by some primary data servers when the pdb_get_tables command is invoked.
  • When pdb_get_tables is invoked with the ownername and tablename options, it returns a result set with information about the specified table with the specified owner in the current database.

  • The pdb_get_tables command accepts the % wildcard character in both the ownername and tablename options.

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

  • To find the name of the current database, use the pdb_get_sql_database command.

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

  • The pdb_get_tables 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_procedures