Tchater maintenant avec le support
Tchattez avec un ingénieur du support

SharePlex 12.0 - Reference Guide

About this guide Conventions used in this guide SharePlex Commands for Oracle SharePlex parameters SharePlex Commands for PostgreSQL SharePlex Parameters for PostgreSQL Heterogenous compare-repair commands General SharePlex utilities Oracle Cloud Infrastructure SharePlex environment variables

set param

Use the set param command to change the value of a SharePlex parameter.

The new setting takes effect based on the parameter’s set-at point:

  • For a set-at point of Live, the change takes effect immediately.
  • For a set-at point of Restart Process, the change takes effect the next time the affected SharePlex process is started.
  • For a set-at point of Restart Cop, the change takes effect the next time that sp_cop is started. Do not reboot the system.
Changing a parameter from its default value

When you change a parameter from its default value, SharePlex records the change in the variable-data directory, where all user-defined parameter values are stored. Default values are stored in the param-defaults file in the product directory.

The default settings of most SharePlex parameters are adequate for most replication operations, but some can be changed by an authorized SharePlex user when necessary. Those parameters are viewed with the list param basic command.

The rest of the parameters are considered non-user-changeable. They are viewed with the list param all command. Do not change those parameters without the supervision of Quest Development or Technical Support team, or unless you are following a documented procedure in a SharePlex guide. Unless you are familiar with those parameters, changing them could adversely affect replication.

Using command options

The following explains how to use the set param command options:

  • The basic set param command (without options) sets a parameter on a global basis for an instance of sp_cop. For example, the following command sets the parameter for all of the Export processes spawned by one instance of sp_cop.

    sp_ctrl(sysA)> set param SP_XPT_SO_SNDBUF 1024

  • Parameters for the following replication processes can be process-specific, which enables you to set different values for the same parameter to accommodate multiple instances of a process running from one instance of sp_cop.
Module Naming convention Function controlled
export SP_XPT Export process
import SP_IMP Import process
capture SP_OCT Capture process
post SP_OPO Post process
read SP_ORD Read process

You can use a process-specific value in conjunction with a global value for the same parameter. For example, you could set SP_XPT_SO_SNDBUF globally for all Export processes except the one transmitting to SysC; for that one you could set a different value by using the [to host value] process-specific option.

Viewing current parameter settings

To view the names of SharePlex parameters, their values and set-at points, and whether or not process-specific values are in effect, use the list param command, as shown in the following example which shows both a global value for the Export process and a process-specific value for Export to sysB.

 

Parameter name Actual value Unit Set at
---------------------- --------------------- ------------ ------------
SP_XPT_SO_SNDBUF 0 bytes Restart Process

SP_XPT_SO_SNDBUF

1024 bytes Restart Process

To sysB.ABC.com

Default Value: 0

     
Changing a parameter back to its default value

To change the value of a parameter back to its default value, use the reset param command.

Usage

Supported sources: Oracle
Supported targets: All
Authorization level: Administrator (1)
Issued for: source or target system
Related commands: list param, reset param

Syntax for global settings

Basic command Remote options
set param paramname value

[ on host |

on host:portnumber |

on login/password@host |

on login/password@host:portnumber ]

Syntax for process-specific settings

Basic command Command options Remote options

set param {

paramname to host value |

paramname from host value |

paramname for datasource value |

paramname for datasource-datadest value

}

[queue queuename]

[ on host |

on host:portnumber |

on login/password@host |

on login/password@host:portnumber ]

Syntax description for global settings
Component Description
paramname value
  • paramname is the name of the parameter that you want to set. This argument is not case-sensitive.
  • value is the new value for the parameter.

Example:

sp_ctrl(sysA)> set param SP_XPT_SO_SNDBUF 1024

In this example, the parameter is set globally for all Export processes

on the system.

Syntax description for process-specific settings
Component Description
to host value

This option sets an Export parameter (SP_XPT_) for all Export processes to a designated target system. To constrain the change to an Export process associated with a named export queue, use this option with the [queue queuename] option.

  • host is the target system’s name.
  • value is the new value for the parameter.

Example:

sp_ctrl(sysA)> set param sp_xpt_so_sndbuf to sysB 1024

In this example, the parameter is set for Export to sysB, but Export processes to other target systems are not affected.

from host value

This option sets an Import parameter (SP_IMP_) for all Import processes from a designated source system. To constrain the change to an Import process associated with a named export queue, use this option with the [queue queuename] option.

  • host is the source system’s name.
  • value is the new value for the parameter.

Example:

sp_ctrl(sysD)> set param sp_imp_wcmt_msgcnt from sysC 10000

In this example, the parameter is set for Import from sys C, but Import processes from other source systems are not affected.

for datasource value

This option sets a Capture or Read parameter (SP_OCT_ or SP_ORD_) for a designated datasource.

  • datasource is expressed as o.SID, where SID is the ORACLE_SID of the source Oracle instance.
  • value is the new parameter value.

Example:

sp_ctrl(sysA)> set param sp_oct_replicate_dload for o.oraA 1

In this example, the parameter is set for Capture for instance oraA, but other Capture processes for the same instance of sp_cop are not affected.

for datasource-datadest value

This option sets a Post parameter (SP_OPO_) for all Post processes posting data from one database to another. To constrain the change to a Post process associated with a named post queue, use this option with the [queue queuename] option.

  • datasource is expressed as o.SID, where SID is the ORACLE_SID of the source Oracle instance.
  • datadest is expressed as o.SID, where SID is the ORACLE_SID of the target Oracle instance.
  • value is the new parameter value.

Example:

sp_ctrl(sysC)> set param sp_opo_cont_on_err for o.oraA-o.oraC 1

In this example, the parameter is set for the Post process for instance oraA replicating to oraC, but other Post processes are not affected.

queue queuename

This option restricts the command’s effect to an Export, Import or Post process associated with a named queue.

  • queuename is the named queue’s name.

When used, the queue queuename option must appear after the required and optional syntax, but before the new value, as shown below:

Example 1: Export process

sp_ctrl(sysA)> set param sp_xpt_so_sndbuf queue QA to sysB 1024

In this example, the parameter is set for the Export process associated with named export queue QA, but other Export processes are not affected.

Example 2: Import process

sp_ctrl(sysD)> set param sp_imp_wcmt_msgcnt from sysC queue QA 10000

In this example, the parameter is set for the Import process associated with named export queue QA, but other Import processes are not affected.

Example 3: Post process

sp_ctrl(sysC)> set param sp_opo_cont_on_err queue QA for o.oraA-o.oraC 1

In this example, the parameter is set for the Post process associated with named post queue QA for replication between oraA and oraC, but other Post processes are not affected.

Example 4: Post process

sp_ctrl(sysC)> set param sp_opo_cont_on_err queue QA 1

In this example, the parameter is set for the Post process associated with named post queue QA, but other Post processes are not affected.

Remote options

These options enable you to issue the command on a remote machine and to script commands that include a login name, password, port number, or combination of those items.

Option Description
on host

Execute the command on a remote system (one other than the one where the current sp_ctrl session is running). You are prompted for login credentials for the remote system. If used, must be the last component of the command syntax.

Example: sp_ctrl(sysB)>status on SysA

on host:portnumber

Execute the command on a remote system when a remote login and port number must be provided. If used, must be the last component of the command syntax.

Example: sp_ctrl(sysB)>status on SysA:8304

on login/password@host

Execute the command on a remote system when a remote login, password, and host name must be provided. If used, must be the last component of the command syntax.

Example:sp_ctrl(sysB)>status on john/spot5489@SysA

on login/password@host:portnumber

Execute the command on a remote system when a remote login, password, host name, and port number must be provided. If used, must be the last component of the command syntax.

Example: sp_ctrl(sysB)>status on john/spot5489@SysA:8304

show

Show command

Use the show command to view the replication processes for an instance of sp_cop and the path the data is taking.

The following describes each column in the show command display:

Process

The Process column shows the SharePlex replication processes (services) spawned by the instance of sp_cop to which the current sp_ctrl session is connected. The command does not show the command and control process (sp_cnc) or any compare processes that are running.

  • If there are named export queues, there are multiple Export or Import processes, depending on whether it is a source or target sp_cop.
  • If there are named post queues, there are multiple Post processes, one for each queue.
  • The Post process is labeled MTPost.
  • For an instance of sp_cop running peer-to-peer replication, or for those that serve as both source and target sp_cop instances, all SharePlex replication processes are present.

Source

The Source column shows the source of the data being processed by a SharePlex process. A source can be one of the following:

  • For a Capture or Read process: the datasource (the source Oracle instance).
  • For an Export process: the name of the associated export queue. Default export queues bear the name of the source system. Named export queues bear their userassigned names, for example exptq1.
  • For an Import process: the name of the associated default export queue (for example, sysA), or the name of the associated named export queue, such as exptq1.
  • For a Post process: There can be one of several displays for the source of a Post process, depending on the replication configuration:
    • When there is a default export queue and a default post queue, the Post source is the short name of the associated post queue. The short name consists of the datasource and the source system’s name, in the format of o.ora10-elliot.
    • When there is a named export queue (which automatically creates a named post queue on the target system) the Post source consists of the datasource and the named export queue’s name, in the format of o.ora10-exptq1.
    • When there is a default export queue and a named post queue, the Post source consists of the datasource and the named post queue’s name, for example o.ora10- postq1.

Target

The Target column shows the destination, or target, of the data being processed by a SharePlex process.

A target can be one of the following:

  • For a Capture or Read process: There is no target to show for these processes. The data captured by the Capture process and routed by the Read process can be routed to one or many destinations.
  • For an Export process: the name of the target system.
  • For an Import process: the name of the target system.
  • For a Post process: the target.

State

The State column shows the status of each process:

  • Running
  • Idle (waiting for data to process)
  • Stopped by a user
  • Stopped because of an error.

PID

This column lists the process ID number for each process.

Usage

Supported sources: Oracle
Supported targets: All
Authorization level: Viewer (3)
Issued for: source or target system
Related commands: lstatus, qstatus, status

Syntax

Basic command Remote options
show

[ on host |

on host:portnumber |

on login/password@host |

on login/password@host:portnumber ]

Remote options

These options enable you to issue the command on a remote machine and to script commands that include a login name, password, port number, or combination of those items.

Option Description
on host

Execute the command on a remote system (one other than the one where the current sp_ctrl session is running). You are prompted for login credentials for the remote system. If used, must be the last component of the command syntax.

Example: sp_ctrl(sysB)>status on SysA

on host:portnumber

Execute the command on a remote system when a remote login and port number must be provided. If used, must be the last component of the command syntax.

Example: sp_ctrl(sysB)>status on SysA:8304

on login/password@host

Execute the command on a remote system when a remote login, password, and host name must be provided. If used, must be the last component of the command syntax.

Example:sp_ctrl(sysB)>status on john/spot5489@SysA

on login/password@host:portnumber

Execute the command on a remote system when a remote login, password, host name, and port number must be provided. If used, must be the last component of the command syntax.

Example: sp_ctrl(sysB)>status on john/spot5489@SysA:8304

show capture

Use of Show Capture

Use the show capture command to view statistics for the Capture process.

Basic command

The basic show capture command shows an overview of the process, such as the datasource, whether the process is running or stopped, and other basic information.

Detailed statistics

To view detailed statistics for the Capture process, use the show capture command with the [detail] option. That option shows detailed statistics that can help you assess the performance of the process, decide whether tuning parameters need to be adjusted, and detect problems or bottlenecks.

Detailed statistics for Oracle Capture

Statistic Description
Host The name of the local machine (source system).
System time The current time according to the system clock.
Source The name of the source Oracle instance.
Status

The status of the Capture process (running or stopped).

Since The time that Capture started.
Oracle current redo log The sequence number of the redo log to which Oracle is writing.
Capture current redo log The sequence number of the redo log that Capture is reading.
Capture log offset The location in the redo log of the record being processed by Capture.
Last redo record processed The record being processed by Capture or the last one processed if Capture is not currently replicating data.
Capture state

The state of the process, in relation to the replication work it performs

It can be one of the following:

  • INITIALIZING: Capture is starting up.
  • WAITING: Capture is reading the redo log and waiting for records that need to be replicated.
  • WAITING FOR LOGFILE: Capture is configured to wait and then try again if it cannot access the required log.
  • PROCESSING: Capture is processing a redo log record for replication.
  • STOPPED DUE TO MISSING ARCHIVE LOG: Capture is configured to stop when it cannot access the log that it needs.
Activation ID The internal identifying number of the configuration activation, which identifies the associated processes and queues.
Error count The number of records that were skipped due to Oracle errors since Capture started. Data from skipped records is not reflected in the target database.
Operations captured The number of redo records that Capture successfully processed for replication since it started.
Transactions captured The number of committed Oracle transactions whose operations Capture successfully replicated since it started.
Concurrent sessions The number of Oracle sessions being processed at the same time.
HWM concurrent sessions The largest number of concurrent Oracle sessions since Capture started.
Checkpoints performed The number of checkpoints to save the state of Capture since Capture started. Frequent checkpointing generates additional overhead on the system, but infrequent checkpoints cause SharePlex to recover less quickly from a system or instance failure. By default, Capture checkpoints every 2,000 messages, but it can be adjusted with the SP_OCT_CHECKPOINT_FREQ parameter.
Total operations processed The number of all Oracle operations and SharePlex internal operations processed by Capture since it started, including records captured for replication and records for objects not in the configuration.
Total transactions completed

The number of committed Oracle transactions processed by Capture since it started, including transactions captured for replication and transactions for objects not in the replication configuration.

Total Kbytes read The size in kilobytes of the data that was processed by Capture since it started.
Redo records in progress The number of records that Capture is processing.
Redo records processed The total number of redo records processed.
Redo records ignored The number of records that Capture ignored because they are not associated with objects in the configuration.
Redo records - last HRID The head row ID value for the last chained row processed by Capture.

Note: The show capture detail output for RAC systems will vary slightly from what is described here. The information is essentially the same, but is necessarily presented differently.

Usage

Supported sources: Oracle
Supported targets: All
Authorization level: Viewer (3)
Issued for: source system
Related commands: show export, show import, show post, show read

Syntax

Basic command Command options Remote options
show capture

[detail] [for datasource]

[ on host |

on host:portnumber |

on login/password@host |

on login/password@host:portnumber ]

Syntax description
Component Description
show capture
  • Shows the state of the Capture process and a summary of the operations captured.
  • detail

    Shows detailed statistics that can help you tune Capture’s performance and diagnose problems.

    Example:

    sp_ctrl(sysA)> show capture detail

    for datasource

    This option shows Capture statistics only for a specific datasource.

    datasource is expressed as o.SID where SID is an ORACLE_SID.

    Examples:

    sp_ctrl(sysA)> show capture for o.oraA

    Remote options

    These options enable you to issue the command on a remote machine and to script commands that include a login name, password, port number, or combination of those items.

    Option Description
    on host

    Execute the command on a remote system (one other than the one where the current sp_ctrl session is running). You are prompted for login credentials for the remote system. If used, must be the last component of the command syntax.

    Example: sp_ctrl(sysB)>status on SysA

    on host:portnumber

    Execute the command on a remote system when a remote login and port number must be provided. If used, must be the last component of the command syntax.

    Example: sp_ctrl(sysB)>status on SysA:8304

    on login/password@host

    Execute the command on a remote system when a remote login, password, and host name must be provided. If used, must be the last component of the command syntax.

    Example:sp_ctrl(sysB)>status on john/spot5489@SysA

    on login/password@host:portnumber

    Execute the command on a remote system when a remote login, password, host name, and port number must be provided. If used, must be the last component of the command syntax.

    Example: sp_ctrl(sysB)>status on john/spot5489@SysA:8304

    show config

    Use the show config command to display statistics for the active configuration.

    For example:

    sp_ctrl (irvspxu14:8567)> show config

     

    Materialized Views Replicating:

    “SCOTT”.”V5_ROWID”

    Tables Replicating with Key:

    “SCOTT”.”S1TEST2” KEY: KC

    “SCOTT”.”S2TEST2” KEY: KC

    “SCOTT”.”T1TEST2” KEY: KC

    “SCOTT”.”T2TEST2” KEY: KC

    Tables Replicating with no Key:

    “TED”.”DEMO_SRC”

    “TED”.”DEMO_DEST”

    “SCOTT”.”FOOS”

     

    filename : allscott

    Datasource : o.ora920

    Activated : 29-Jan-09 10:11:41

    Actid : 1810

     

    Total Objects : 160

    Total Objects Replicating : 160

    Total Objects Not Replicating : 0

    View config summary in /splex/rr/svn/var92/log/ora920_config_log

     

    The following is displayed if this command is executed before Capture is up:

    sp_ctrl (irvspxu14:8567)> show config

     

    Capture is not yet replicating the most recent activation

    Re-issue this command when capture’s replication is current

     

    Show Config provides the following statistics:

    • Config: The configuration name.
    • Datasource: The Oracle instance containing the objects being replicated.
    • Activated: The date and time that the configuration was activated.

    • Actid: The activation ID number for the configuration (mostly for use by Quest Software. Technical Support).
    • Total Objects: The number of objects in the configuration file.
    • Total Objects Replicating: The number of objects in the configuration that are replicating.
    • Total Objects Not Replicating: The number of objects in the configuration for which activation failed, and therefore are not replicating.
    • List of the tables in replication and having a primary or unique key, in replication and having no key, and not in replication

    For more information about the objects in the configuration, view the SID_config_log, where SID is the ORACLE_SID of the instance. SharePlex prints activation results and error messages in this file, which resides in the log sub-directory of the SharePlex variable- data directory.

    An example of the log file follows:

    File Name :wild

    Datasource :ora920

    Activated :29-Jan-09 10:11:41

    Actid :1810

     

    Total Objects :9

    Total Objects Replicating :9

    Total Objects Not Replicating :0

     

    Objects Replicating:

    "SCOTT"."SRC_TEST1"

    "SCOTT"."SRC_TEST2"

    "SCOTT"."SS2_TEST1"

    "SCOTT"."SRC_TEST3"

    "SCOTT"."SRC_TEST4"

    "SCOTT"."SS2_TEST2"

    "SCOTT"."SRC_TEST5"

    "SCOTT"."SRC_TEST6"

    "SCOTT"."SS2_TEST3"

     

    Objects Not Replicating:

    Note:It may take a few seconds or longer to display the statistics.

    Usage

    Supported sources: Oracle
    Supported targets: All
    Authorization level: Viewer (3)
    Issued for: source system
    Related commands: activate config, view config, verify config

    Syntax

    Basic command Remote options
    show config filename

    [ on host |

    on host:portnumber |

    on login/password@host |

    on login/password@host:portnumber ]

    Syntax description
    Component Description
    filename

    The name of the configuration for which you want to view statistics. Configuration names are case-sensitive.

    Example:

    sp_ctrl(sysA)> show config sales

    Remote options

    These options enable you to issue the command on a remote machine and to script commands that include a login name, password, port number, or combination of those items.

    Option Description
    on host

    Execute the command on a remote system (one other than the one where the current sp_ctrl session is running). You are prompted for login credentials for the remote system. If used, must be the last component of the command syntax.

    Example: sp_ctrl(sysB)>status on SysA

    on host:portnumber

    Execute the command on a remote system when a remote login and port number must be provided. If used, must be the last component of the command syntax.

    Example: sp_ctrl(sysB)>status on SysA:8304

    on login/password@host

    Execute the command on a remote system when a remote login, password, and host name must be provided. If used, must be the last component of the command syntax.

    Example:sp_ctrl(sysB)>status on john/spot5489@SysA

    on login/password@host:portnumber

    Execute the command on a remote system when a remote login, password, host name, and port number must be provided. If used, must be the last component of the command syntax.

    Example: sp_ctrl(sysB)>status on john/spot5489@SysA:8304

    Documents connexes

    The document was helpful.

    Sélectionner une évaluation

    I easily found the information I needed.

    Sélectionner une évaluation