FETCHUSERID
Valid For
Integrated primary Extract on Oracle; data pump Extract is not valid
Description
Use the FETCHUSERID parameter to specify the type of authentication for an Oracle GoldenGate process to use when logging into a database, and to specify password encryption information. This parameter can be used instead of FETCHUSERIDALIAS when an Oracle GoldenGate credential store is not being used.
                  
FETCHUSERID Compared to FETCHUSERIDALIAS
FETCHUSERID requires either specifying the clear-text password in the parameter file or encrypting it with the ENCRYPT PASSWORD command and, optionally, storing an encryption key in an ENCKEYS file. FETCHUSERID supports a broad range of the databases that Oracle GoldenGate supports.
                  
FETCHUSERIDALIAS enables you to specify an alias, rather than a user ID and password, in the parameter file. The user IDs and encrypted passwords are stored in a credential store. FETCHUSERIDALIAS supports databases running on Linux, UNIX, and Windows platforms.
                  
FETCHUSERID Requirements
FETCHUSERID is not always required, nor is PASSWORD always required when FETCHUSERID is required. In some cases, it is sufficient just to use FETCHUSERID or even just to use the SOURCEDB or TARGETDB parameter, depending on how authentication for the database is configured.
                  
See "SOURCEDB" and "TARGETDB" for more information.
Use FETCHUSERID for Oracle GoldenGate processes that connect to an Oracle database. The purpose of this connection is to offload fetch operations to an Active Data Guard standby database, which eliminates overhead that would otherwise be placed on the source database.
                  
- 
                        To use an operating system login, use FETCHUSERIDwith the/argument.
- 
                        To use a database user name and password, use FETCHUSERIDwithPASSWORD.
- 
                        Optionally, you can specify the user to log in as sysdba.
- 
                        Special database privileges are required for the FETCHUSERIDuser when Extract is configured to useLOGRETENTION. These privileges might have been granted when Oracle GoldenGate was installed. See Configuring Logging Properties.
- 
                        To use FETCHUSERIDfor an Extract group that is configured for integrated capture, the user must have the privileges granted in thedbms_goldengate_auth.grant_admin_privilege.
- 
                        To support capture from an Oracle container database, the user that is specified with FETCHUSERIDmust log into the root container and must be a common user. A connect string must be supplied for this user and must include the requiredC##prefix of the common user, such asC##GGADMIN@FINANCE. For more information, see Assigning Credentials to Oracle GoldenGate in Using Oracle GoldenGate for Oracle Database.
- 
                        The connection specified by FETCHUSERIorFETCHUSERIDALIASmust be to an Active Data Guard standby database of the source database.
- 
                        FETCHUSERIDcan be specified anywhere in the parameter file. It needs to come before aTABLEorMAPstatement.
Default
None
Syntax
FETCHUSERID {/ | user}[, PASSWORD password]
[algorithm ENCRYPTKEY {key_name | DEFAULT}] [SYSDBA]- 
                           /
- 
                        Directs Oracle GoldenGate to use an operating-system login for Oracle, not a database user login. Use this argument only if the database allows authentication at the operating-system level. Bypassing database-level authentication eliminates the need to update Oracle GoldenGate parameter files if application passwords frequently change. To use this option, the correct user name must exist in the database, in relation to the value of the Oracle OS_AUTHENT_PREFIXinitialization parameter, as follows:- 
                              The value set with OS_AUTHENT_PREFIXis concatenated to the beginning of a user's operating system account name and then compared to the database name. Those two names must match.
- 
                              If OS_AUTHENT_PREFIXis set to' '(a null string), the user name must be created withIDENTIFIED EXTERNALLY. For example, if the OS user name isogg, you would use the following to create the database user:CREATE USER ogg IDENTIFIED EXTERNALLY; 
- 
                              If OS_AUTHENT_PREFIXis set toOPS$or another string, the user name must be created in the following format:OS_AUTHENT_PREFIX_value OS_user_name For example, if the OS user name is ogg, you would use the following to create the database user:CREATE USER ops$ogg IDENTIFIED BYoggpassword;
 
- 
                              
- 
                           user
- 
                        Specifies the name of a database user or a schema, depending on the database configuration. A SQL*Net connect string can be used. 
- 
                           password
- 
                        Use when database authentication is required to specify the password for the database user. If the password was encrypted by means of the ENCRYPT PASSWORDcommand, supply the encrypted password; otherwise, use the clear-text password. If the password is case-sensitive, type it that way.If either the user ID or password changes, the change must be made in the Oracle GoldenGate parameter files, including the re-encryption of the password if necessary. 
- 
                           algorithm
- 
                        Specifies the encryption algorithm that was used to encrypt the password with ENCRYPT PASSWORD.The algorithm can be one of: AES128AES192AES256BLOWFISH
- 
                           ENCRYPTKEY {key_name| DEFAULT}
- 
                        Specifies the encryption key that was specified with ENCRYPT PASSWORD.- 
                              ENCRYPTKEYkey_namespecifies the logical name of a user-created encryption key in theENCKEYSlookup file. Use ifENCRYPT PASSWORDwas used with theKEYNAME key_nameoption.
- 
                              ENCRYPTKEY DEFAULTdirects Oracle GoldenGate to use a random key. Use ifENCRYPT PASSWORDwas used with theKEYNAME DEFAULToption.
 
- 
                              
- 
                           SYSDBA
- 
                        Specifies that the user logs in as sysdba.
Example
fetchuserid gg_user@adg_inst password pwd