public class DropBackup extends CommonShell implements UpgConstants
RestoreFromBackup
program,
and did not use the param to drop the backup tables at that time, then
this program will drop the backup tables as a separate step.
This program is called by RestoreFromBackup
when the -r
parameter is used.
This runs independently of MXServer. However, it is not injurious to run this program while MXServer is in use.
The commandline parameters for DropBackup are as follows, in addition to those in the superclass
CommonShell
.
Parameter ID | Parameter Value | Description |
---|---|---|
-g | (none) | This is optional. It indicates that this class has been instanciated by the Upgrade. |
-t | Table names delimited by commas | This is optional. If this parameter is
used, then the names of the Maximo tables whose temp tables should be
dropped will appear after this parameter, delimited by commas.
For example: -tITEM,TOOL,WORKORDER
If not specified, then all temp tables that are eligible to be dropped will be dropped. |
CommonShell
,
ConfigDB
,
RestoreFromBackup
listStream
DB2, doNotUpdateACTION, doNotUpdateALNDOMAIN, doNotUpdateAPPLICATIONAUTH, doNotUpdateAUTOKEY, doNotUpdateCONDITION, doNotUpdateCONTRACTPROPERTY, doNotUpdateCONTRACTTYPE, doNotUpdateCROSSOVERDOMAIN, doNotUpdateDOCTYPES, doNotUpdateLANGUAGE, doNotUpdateMAXAPPS, doNotUpdateMAXCONDDETAIL, doNotUpdateMAXCONTROLVALUE, doNotUpdateMAXDOMAIN, doNotUpdateMAXLOGAPPENDER, doNotUpdateMAXLOGGER, doNotUpdateMAXMENU, doNotUpdateMAXMESSAGES, doNotUpdateMAXMODULES, doNotUpdateMAXPROP, doNotUpdateMAXPROPVALUE, doNotUpdateMAXROLE, doNotUpdateMAXSEQUENCE, doNotUpdateMAXSERSECURITY, doNotUpdateMAXSERVICE, doNotUpdateMAXTABLEDOMAIN, doNotUpdateMAXVARS, doNotUpdateMAXVARTYPE, doNotUpdateMXCOLLAB, doNotUpdateMXCOLLABREF, doNotUpdateNUMERICDOMAIN, doNotUpdateNUMRANGEDOMAIN, doNotUpdatePORTLET, doNotUpdatePRICALC, doNotUpdateSECURITYRESTRICT, doNotUpdateSIGOPTION, doNotUpdateSYNONYMDOMAIN, doNotUpdateTAXTYPE, doNotUpdateWORKPRIORITY, doNotUpdateWORKTYPE, doNotUpdateWPEDITSETTING, messageCache, NEWONLY, OLDANDNEW, OLDONLY, ORACLE, SQLINET, SQLMICROSOFT, SQLSERVER, SYSDATATABLES, SYSTEMTABLES, UNKNOWN
Constructor and Description |
---|
DropBackup()
This constructor does nothing.
|
DropBackup(MXServer server)
This constructor accepts parameter for MXServer and
sets value for
mxs . |
Modifier and Type | Method and Description |
---|---|
void |
dropTempTable(java.lang.String tempTbName)
Drop the backup (temp) table.
|
void |
endSetupInstance(java.lang.String outdir,
java.lang.String outfile,
java.util.HashMap params)
Process
-t parameter, set value for tbnames . |
static void |
main(java.lang.String[] argv)
Main
|
void |
process()
Main processing method for this program.
|
void |
showMsg(java.lang.String str)
Call super, then add message in ConfigureService, if appropriate.
|
createOutfile, doCall, doDB2TextSearchCall, doSql, doSql, doSql, doSql, doWait, endProcess, endProcessInstance, endSetup, execRuntime, getDisplayMessage, getDisplayMessage, getOutfile, getOutstream, getProperty, getRootDirName, logSql, reformatForDB2, reformatForSqlsvr, setConnection, setDB2TextOutput, setup, setupFromPropfile, setupInstance, setupNested, setupNestedInstance, setUserLangCode, showMXException, showMXException
public DropBackup()
public void process() throws java.lang.Exception
dropTempTable
for each such table.process
in class CommonShell
java.lang.Exception
Util.getOldBackupTables(java.lang.String)
,
dropTempTable(java.lang.String)
public void dropTempTable(java.lang.String tempTbName) throws java.lang.Exception
tempTbName
- The table to be dropped, e.g. XXITEM
.java.lang.Exception
public void showMsg(java.lang.String str)
showMsg
in class CommonShell
str
- The one-line message to be displayed.ConfigureService.addConfigMsg(java.lang.String)
public void endSetupInstance(java.lang.String outdir, java.lang.String outfile, java.util.HashMap params) throws java.lang.Exception
-t
parameter, set value for tbnames
.endSetupInstance
in class CommonShell
outdir
- Not used.outfile
- Not used.params
- Parameters (see class javadocs).java.lang.Exception
public static void main(java.lang.String[] argv)