# Linux
\wget -O - http://install.perlbrew.pl | bash
And then use perlbrew to install a recent version of Perl:
$ perlbrew install perl-5.18.1
$ perlbrew switch perl-5.18.1
# Linux
\wget -O - http://install.perlbrew.pl | bash
$ perlbrew install perl-5.18.1
$ perlbrew switch perl-5.18.1
| Logging option | GGSCI command | What it does | Use case |
|---|---|---|---|
Forced logging mode
|
None; enable through the database.
|
Forces the logging of all transactions and loads.
|
Strongly recommended for all Oracle GoldenGate use cases.
|
Minimum database-level supplemental logging
|
None; enable through the database.
|
Enables minimal supplemental logging to add row-chaining information to the redo log.
|
Required for all Oracle GoldenGate use cases
|
Schema-level supplemental logging, default setting
| ADD SCHEMATRANDATA |
Enables unconditional supplemental logging of the primary key and conditional supplemental logging of unique key(s) and foreign key(s) of all tables in a schema. All of these keys together are known as thescheduling columns.
|
Enables the logging for all current and future tables in the schema. If the primary key, unique key, and foreign key columns are not identical at both source and target, use
ALLCOLS. Required when using DDL support. |
Schema-level supplemental logging with unconditional logging for all supported columns. (SeeSection 3.2.2, "Enabling Schema-level Supplemental Logging" for non-supported column types.)
| ADD SCHEMATRANDATA withALLCOLS option |
Enables unconditional supplemental logging of all of the columns in a table, for all of the tables in a schema.
|
Use for integrated Replicat when parallelism is greater than 1 and the source and target have different scheduling columns.
|
Schema-level supplemental logging, minimal setting
| ADD SCHEMATRANDATA withNOSCHEDULINGCOLS option |
Enables unconditional supplemental logging of the primary key and all valid unique indexes of all tables in a schema.
|
Use only for nonintegrated Replicat. This is the minimum required schema-level logging.
|
Table-level supplemental logging with built-in support for integrated Replicat
| ADD TRANDATA |
Enables unconditional supplemental logging of the primary key and conditional supplemental logging of unique key(s) and foreign key(s) of a table. All of these keys together are known as the scheduling columns.
|
Required for all Oracle GoldenGate use cases unless schema-level supplemental logging is used. If the primary key, unique key, and foreign key columns are not identical at both source and target, use
ALLCOLS. |
Table-level supplemental logging with unconditional logging for all supported columns. (See Section 3.2.3, "Enabling Table-level Supplemental Logging" for non-supported column types.)
| ADD TRANDATA with ALLCOLSoption |
Enables unconditional supplemental logging of all of the columns of the table.
|
Use for integrated Replicat when parallelism is greater than 1 and the source and target have different scheduling columns.
|
Table-level supplemental logging, minimal setting
| ADD TRANDATA withNOSCHEDULINGCOLS option |
Enables unconditional supplemental logging of the primary key and all valid unique indexes of a table.
|
Use only for nonintegrated Replicat. This is the minimum required table-level logging.
|
ALTER SYSTEM privilege.YES for both queries, the database meets the Oracle GoldenGate requirement.SELECT supplemental_log_data_min, force_logging FROM v$database;
NO for either or both properties, continue with these steps to enable them as needed:SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA; SQL> ALTER DATABASE FORCE LOGGING;
SELECT supplemental_log_data_min, force_logging FROM v$database;The output of the query must be
YES for both properties.SQL> ALTER SYSTEM SWITCH LOGFILE;
DBLOGIN command with the alias of a user in the credential store who has privilege to enable schema-level supplemental logging.DBLOGIN USERIDALIAS alias
See Reference for Oracle GoldenGate for Windows and UNIX for more information about DBLOGIN and additional options.ADD SCHEMATRANDATA command for each schema for which you want to capture data changes with Oracle GoldenGate.ADD SCHEMATRANDATA schema [ALLCOLS | NOSCHEDULINGCOLS]
Where:ADD SCHEMATRANDATA schema enables the unconditional supplemental logging on the source system of the primary key and the conditional supplemental logging of all unique key(s) and foreign key(s) of all current and future tables in the given schema. Unconditional logging forces the primary key values to the log whether or not the key was changed in the current operation. Conditional logging logs all of the column values of a foreign or unique key if at least one of them was changed in the current operation. The default is optional to support nonintegrated Replicat but is required to support integrated Replicat because primary key, unique keys, and foreign keys must all be available to the inbound server to compute dependencies. For more information about integrated Replicat, see Section 5.3, "Deciding Which Apply Method to Use".ALLCOLS can be used to enable the unconditional supplemental logging of all of the columns of a table and applies to all current and future tables in the given schema. Use to support integrated Replicat when the source and target tables have different scheduling columns. (Scheduling columns are the primary key, the unique key, and the foreign key.)NOSCHEDULINGCOLS logs only the values of the primary key and all valid unique indexes for existing tables in the schema and new tables added later. This is the minimal required level of schema-level logging and is valid only for Replicat in nonintegrated mode.finance schema.ADD SCHEMATRANDATA financeIn the following example, the command enables the supplemental logging only for the primary key and valid unique indexes for the
hr schema.ADD SCHEMATRANDATA hr NOSCHEDULINGCOLSSee Reference for Oracle GoldenGate for Windows and UNIX for more information about
ADD SCHEMATRANDATA.DBLOGIN command using the alias of a user in the credential store who has privilege to enable table-level supplemental logging.DBLOGIN USERIDALIAS alias
See Reference for Oracle GoldenGate for Windows and UNIX for more information about DBLOGIN and additional options.ADD TRANDATA command.ADD TRANDATA [container.]schema.table [, COLS (columns)] [, NOKEY] [, ALLCOLS | NOSCHEDULINGCOLS]Where:
container is the name of the root container or pluggable database if the table is in a multitenant container database.schema is the source schema that contains the table.table is the name of the table. See Administering Oracle GoldenGate for Windows and UNIX for instructions for specifying object names.ADD TRANDATA without other options automatically enables unconditional supplemental logging of the primary key and conditional supplemental logging of unique key(s) and foreign key(s) of the table. Unconditional logging forces the primary key values to the log whether or not the key was changed in the current operation. Conditional logging logs all of the column values of a foreign or unique key if at least one of them was changed in the current operation. The default is optional to support nonintegrated Replicat (see also NOSCHEDULINGCOLS) but is required to support integrated Replicat because primary key, unique keys, and foreign keys must all be available to the inbound server to compute dependencies. For more information about integrated Replicat, see Section 5.3, "Deciding Which Apply Method to Use".ALLCOLS enables the unconditional supplemental logging of all of the columns of the table. Use to support integrated Replicat when the source and target tables have different scheduling columns. (Scheduling columns are the primary key, the unique key, and the foreign key.)NOSCHEDULINGCOLS is valid for Replicat in nonintegrated mode only. It issues an ALTER TABLE command with an ADD SUPPLEMENTAL LOG DATA ALWAYS clause that is appropriate for the type of unique constraint that is defined for the table, or all columns in the absence of a unique constraint. This command satisfies the basic table-level logging requirements of Oracle GoldenGate when schema-level logging will not be used. See Section 10.1, "Ensuring Row Uniqueness in Source and Target Tables" for how Oracle GoldenGate selects a key or index.COLS columns logs non-key columns that are required for a KEYCOLS clause or for filtering and manipulation. The parentheses are required. These columns will be logged in addition to the primary key unless the NOKEY option is also present.NOKEY prevents the logging of the primary key or unique key. Requires a KEYCOLS clause in the TABLE and MAP parameters and a COLS clause in the ADD TRANDATA command to log the alternate KEYCOLS columns.ADD TRANDATA with the COLS option, create a unique index for those columns on the target to optimize row retrieval. If you are logging those columns as a substitute key for a KEYCOLS clause, make a note to add the KEYCOLS clause to the TABLE and MAP statements when you configure the Oracle GoldenGate processes.To mount on Linux:
yum install nfs-utils
chkconfig --add rpcbind
service rpcbind start
mount -t nfs -o proto=tcp,port=2049 192.168.137.201:/mnt/wow /mnt/wow
pscp [options] [user@]host:source target
/etc/hosts from the server example.com as user fred to the file c:\temp\example-hosts.txt, you would type:pscp fred@example.com:/etc/hosts c:\temp\example-hosts.txt
pscp [options] source [source...] [user@]host:target
c:\documents\foo.txt to the server example.com as user fred to the file /tmp/foo you would type:pscp c:\documents\foo.txt fred@example.com:/tmp/foo