Valid For
Extract and Replicat
Description
Use the GET_DATABASE_METADATA function to return the metadata of the database that is associated with a record.
Buffer
typedef struct
{
char* dbName;
long dbName_max_length;
long dbName_actual_length;
unsigned char dbNameMetadata[MAXDBOBJTYPE];
char* locale;
long locale_max_length;
long locale_actual_length;
} database_def;
typedef struct
{
database_def source_db_def;
database_def target_db_def;
} database_defs;
Input
dbnameA pointer to a buffer to accept the database name.
dbname_max_lengthThe maximum length of the buffer to hold the name.
dbname_actual_lengthThe actual length of the database name.
dbNameMetadataThe name metadata for case-sensitivity, which is the same value that is written by Extract and the data pump to a trail. See Administering Oracle GoldenGate for a list of macros that can be used by the user exit to check database object name metadata, given an object name type.
localeA null-terminated character string specifying the locale of the database. This is returned as a conjunction of:
ISO-639 two-letter language code
ISO-3166 two-letter country code
Variant code using '_' U+005F as separator.
Example: "en_US", "ja_Japen"
locale_max_lengthThe maximum length of the buffer to accept the locale.
locale_actual_lengthThe actual length of the locale.
database_def source_db_defDirects the process to return metadata for the source database.
database_def target_db_defDirects the process to return metadata for the target database.