This section reviews problems and solutions that may be associated with the activation of a configuration file.
If the issue you are experiencing is not listed in this documentation, search the SharePlex Knowledge Base at:
The Knowledge Base provides filtering options and links to other resources that can help you use and troubleshoot SharePlex.
Note: Many configuration problems can be prevented by using the verify config command in sp_ctrl before you activate a configuration or reactivate one containing new or changed objects. The verify config command reviews the configuration to help ensure that basic requirements for activation and replication have been satisfied. See theSharePlex Reference Guide for more information.
SharePlex cannot locate the configuration file
If SharePlex cannot locate the configuration file that you want to activate, verify its location. Configuration files must reside in the config sub-directory of the SharePlex variable-data directory for activation to succeed. The create config command in sp_ctrl automatically puts configuration files in that directory. It is possible someone moved it.
Problems also occur if the configuration file was created without using the create config command. This can happen if the file was created directly through the operating system or if the config.sql or build_config.sql script was used to create it. If the working directory at the time was not the config sub-directory, or if the file was saved to a different directory, the activation will not find it.
Solution: Move the configuration file to the config sub-directory of the SharePlex variable-data directory.
Some objects failed to activate
If SharePlex cannot activate one or more objects listed in the configuration file, it will continue to activate the other ones and display the names of the ones that failed in the ID_oconf##.log file.
The following are reasons why individual objects fail to activate.
Problem | Description | Solution |
---|---|---|
Invalid objects |
You may be trying to replicate objects that are not supported by SharePlex. |
To understand the objects and operations that SharePlex supports, see the SharePlex Release Notes that accompany this release. |
Invalid target systems |
SharePlex could not get routing information. |
Verify the names of the targets, and fix any syntax errors in the routing map. For some databases you specify an instance name, while for others you specify the actual database name. For routing instructions, see: After your fix the routing syntax, activate the affected configuration again. |
Syntax errors and misspelled words |
Misspelled names, object names specified without an owner name, and other improper syntax in the configuration specification can cause activation of an object to fail. |
Run the verify config command to view the errors. For help with configuration syntax, see Configure SharePlex to Replicate Data. |
(Oracle) SharePlex cannot lock tables |
If activation cannot lock the tables in the configuration file, activation of that table will fail. |
Assign the SharePlex database user the privilege to lock tables. |
Activation failed completely
There are several things can cause the entire activation of a configuration to fail. Common error messages for configuration activation problems are:
Bad configuration file
The Oracle sid SID specified in the config file is invalid.
The following are causes and solutions for activation failures.
Problem | Description | Solution |
---|---|---|
Password problems |
If SharePlex is having trouble connecting to the source database and you know the SharePlex account exists, find out if someone changed the password. |
Update the connection information. For more information, see Change the SharePlex Database Account. |
Deactivation followed too closely by activation |
In rare cases, if you activate a configuration too soon after a deactivation, the activation fails. |
Before you activate a new configuration after deactivating one, wait until you see the following message in the Event Log: Notice: sp_ordr (for o.ora10 queue o.ora10) Deactivated. |
No datasource specification |
The datasource specification is wrong or incomplete. An error similar to the following is returned: The datasource specified in the config file is invalid. |
Specify as: Datasource:o.SID |
(Oracle) Incorrect ORACLE_SID | The wrong ORACLE_SID is specified on the Datasource:o.SID line. |
Edit the configuration file to specify the correct ORACLE_SID. |
(Oracle)Insufficient PROCESSES setting |
If Oracle Error 20 (ORA-00020 maximum number of processes (string) exceeded) is the cause of an activation failure, it is because Oracle ran out of resources on the source system to allow one or more threads to log on. |
Increase the PROCESSES parameter in Oracle or decrease the number of activation threads that you are using. The number of threads is controlled by the threads option of the activate config command. |
(Oracle) ORA-00942: table or view does not exist. |
SharePlex cannot access the Data Dictionary. |
Make certain that the O7_DICTIONARY_ACCESSIBILITY parameter in the init.ora file is set to TRUE. (This is the default.) The database must be restarted if the parameter is changed. |
The reconcile command is slow to complete
This applies to activation and reconcile of an Oracle source. If you issue the reconcile command when source database activity is low, the command process can, in some circumstances, seem to stall. This happens because the reconcile command is dependent on data continuing to arrive from the source system. If there is no replicated activity on the source system after the point of the hot backup or copy, the reconcile process waits until source activity resumes. This is normal.
Common activation errors
The following are common error messages that you might encounter when activating a configuration.
ACTIVATE CONFIG error messages | Cause | Solution |
---|---|---|
line n, source object name (T_HFL_1) not of form OWNER.TABLE | The owner name may be missing from one or more objects listed in the configuration file. | Specify object names as ownername.objectname. |
syntax error in line n. | There is a syntax error on the specified line of the configuration file. | Fix the incorrect syntax. For more information, see Configure SharePlex to Replicate Data. |
line n, bad routing spec (o.ora10) | There is a syntax error in the routing map. | Make sure the routing map is written correctly. For more information, see Routing Specifications in a Configuration File. |
File does not exist. | SharePlex cannot find the configuration file. | Issue the list config command. If the file you want to activate is not listed, it may not be in the config sub-directory of the variable-data directory. Find the file and move it to that directory, then issue the activate config command again. |
Attempt to run sp_conf when sp_conf is already active | The configuration is already in the process of being activated. | None required. |
Login parameters not set... | A SharePlex account and internal tables do not exist in the source database. | Run the Database Setup utility. For more information, see Database Setup Utilities in the SharePlex Reference Guide. |
WARNING, not all objects activated successfully. Check activation log. | One or more tables failed to activate. | For more information, see Some objects failed to activate. |
Deactivate/flush a nonactive datasource | You are attempting to deactivate a configuration that is not active. | No action is necessary if this is the configuration that you wanted to deactivate. To see a list of configurations, use the list config command. |
(Oracle) Currently involved in transaction. | Objects in the configuration file are locked. | SharePlex cannot lock Oracle tables to analyze them if another process has them locked. If the locks are from source transaction activity, try activating at a time when the database is less busy. |