RSDB2SWITCH is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter RSDB2SWITCH into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: PRIMARY = Switch to primary DB host
Selection Text: REFRESH = Refresh current DB connection
Selection Text: STANDBY = Switch to standby DB host
Title: Switching of Database Host
Text Symbol: 001 = Primary DB host
Text Symbol: 002 = Standby DB host
Text Symbol: 003 = Settings:
Text Symbol: 004 = Present DB host
Text Symbol: 005 = Connection to current DB host is being refreshed.
Text Symbol: 006 = Switching to primary host
Text Symbol: 007 = Switching to standby host
Text Symbol: 008 = Operation completed successfully.
Text Symbol: 009 = Error in switch/refresh of connection!
Text Symbol: 010 = Operation:
Text Symbol: 011 = New DB host
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
STU3_ADMIN_SWITCH_DB_CON CALL FUNCTION 'STU3_ADMIN_SWITCH_DB_CON' EXPORTING NEW_DB_CON = newdbcon SWITCH_ALL_APP_SERVERS = ALLAPPS NEW_HOST = new_host WAIT_FOR_COMPLETION = WAIT MAX_WAIT_TIME = MAX_WAIT EXCEPTIONS ZOS_AS_SWITCH_TO_ANOTHER_LPAR = 1 COULD_NOT_DETERMINE_INSTANCES = 2 ERROR_DURING_SWITCH = 3 USER_NOT_AUTHORIZED = 4 NEW_DB_CON_UNKNOWN = 5 MAX_WAIT_TIME_EXCEEDED = 6 OTHERS = 7.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RSDB2SWITCH - Switching of Database Host RSDB2SWITCH - Switching of Database Host RSDB2SDB - Copy Contents of Table SDBAD to SDBADDB2 RSDB2SDB - Copy Contents of Table SDBAD to SDBADDB2 RSDB2RSTCOLL - Collect Objects needing RUNSTATS and Report into Alert Monitor RSDB2RSTCOLL - Collect Objects needing RUNSTATS and Report into Alert Monitor