The syncdb command synchronizes Oracle catalog databases or the Oracle control file with the Tivoli® Storage Manager server.
>>-TDPOSYNC--syncdb---------------------------------------------> >--+-----------------------------------------+------------------> | .-installed tdpo.opt-. | '- -TDPO_OPTFILE=--+--------------------+-' '-pathname-----------' .-1------. .- -NUMCATalogs=--+--------+----------------------. | '-number-' | >--+-------------------------------------------------+--------->< | .-1------. | | .- -NUMORCINSTances=--+--------+-. | | | '-number-' | | '- -NOCATalog--+--------------------------------+-'
This parameter specifies the number of Oracle catalog databases that you want to synchronize. It prompts you for information for each catalog that exists on your node.
This parameter specifies the number of Oracle catalog databases that you want to synchronize and prompts you for information for each catalog.
Specify this option only when you use multiple Oracle catalogs to back up multiple target databases to the same Tivoli Storage Manager server under the same file space, node name, and owner name.
According to the number you specify for -numcatalogs, you are prompted for the user name, password, and connect string for each. If you do not specify -numcatalogs, the default is 1, and you are prompted only once.
You are prompted for start and end dates for your query. Then you are prompted for the following information for each catalog:
You are also prompted for the following date information to narrow your search:
If no dates are specified, Data Protection for Oracle displays all objects that are not in sync.
This parameter specifies the number of Oracle instances that you want to synchronize, and prompts you for information for each instance that exists on your node.
This parameter specifies the number of Oracle instances that you want to synchronize and prompts you for information for each instance.
Specify this option only when you use multiple Oracle instances to back up multiple target databases to the same Tivoli Storage Manager server under the same file space, node name, and owner name.
According to the number you specify for -numorcinstances, you are prompted for the user name, password, and connect string for each instance. If you do not specify a value for -numorcinstances, the default is 1, and you are prompted only once.
If no dates are specified, Data Protection for Oracle shows all objects that are not in sync.
Command: TDPOSYNC syncdb
Output:
IBM Tivoli Storage Manager for Databases:
Data Protection for Oracle
Version 7, Release 1, Level 0.0
(C) Copyright IBM Corporation 1997, 2013. All rights reserved.
From Date (01/01/1990): 01/01/2013
To Date (01/05/2013): 12/12/2013
Catalog 1 User Name: rman
Catalog 1 Password: rman
Catalog 1 Connect String: rman
Command: TDPOSYNC syncdb -nocatalog -numorcinstances=2
Output:
IBM Tivoli Storage Manager for Databases:
Data Protection for Oracle
Version 7, Release 1, Level 0.0
(C) Copyright IBM Corporation 1997, 2013. All rights reserved.
From Date (01/01/1990): 01/01/2013
To Date (01/05/2013): 12/12/2013
Oracle Database 1 User Name: OrcUser1
Oracle database 1 Password: OrcUser1pw
Oracle database 1 Connect String: Oracle_DB_A
Oracle Database 2 User Name: OrcYser2
Oracle database 2 Password: OrcUser2pw
Oracle database 2 Connect String: Oracle_DB_B
C:\Tivoli\Tsm\AgentOba>tdposync syncdb -numcatalogs=2 -TDPO_OPTFILE=c:\RMAN\
scripts\tdpo.opt
Output:
IBM Tivoli Storage Manager for Databases:
Data Protection for Oracle
Version 7, Release 1, Level 0.0
(C) Copyright IBM Corporation 1997, 2013. All rights reserved.
From Date (01/01/1990): 01/01/2013
To Date (01/05/2013): 12/12/2013
Catalog 1 User Name: rman
Catalog 1 Password: rman
Catalog 1 Connect String: rman
Catalog 2 User Name: rman2
Catalog 2 Password: rman2
Catalog 2 Connect String: rman2