The Replication Agent provides a number of commands that return metadata information about the primary database (database names, table names, procedure names, column names, and so on).
It does this by issuing specific JDBC calls designed to return this information or by querying the system tables directly.