lt_patch — the LightDB patch tool
lt_patch init [-i patchid]
lt_patch make
lt_patch install [-D ltdata] [-l lthome]
lt_patch remove [-D ltdata] [-l lthome] [-f] -i patchid
lt_patch list [-l lthome] [-i patchid]
lt_patch help ensure your
LightDB software stays current and secure.
it enables the application and rollback of patches to database on
a selected LightDB home (LTHOME).
lt_patch parses patch configuration and performs
the patching operations without user intervention.It can:
Perform kinds of checks.
Apply the patch.
Rollback the patch.
-l--lthomeSpecifies the file system location of the LightDB software. If this option is omitted, the environment variable LTHOME is used.
-D--ltdataSpecifies the file system location of the LightDB instance. If this option is omitted, the environment variable LTDATA is used.
-i--patch-idSpecifies the unique id of one patch.
-f--forceIgnore errors while executing uninstall shell script.
-V--versionPrint the lt_patch version and exit.
-?--helpShow help about lt_patch command line arguments, and exit.
Obtaining the patches you need: the first step is to determine what patches you need. Care about follow items of one patch:
Name: patch-1.0-8085
Apply Version: 13.8-22.4
Apply CPU: x86_64
Apply OS: kylinV10sp1
Applying the Patch to the Desired Targets (LTHOME).
Before performing any patch task, always read the patch README file for any special patching instructions.
Apply one patch: uncompress your obtained patch package and cd into the patch directory, then run follow command:
$lt_patch install -l /home/lightdb/stage/lightdb-x
Rollback one patch:
$lt_patch remove -l /home/lightdb/stage/lightdb-x -i patch-1.0-8085
Query patch information (list all patches information):
$lt_patch list -l /home/lightdb/stage/lightdb-x
Query patch information (list one patch information):
$lt_patch list -l /home/lightdb/stage/lightdb-x patch-1.0-8085
"lt_patch init" and "lt_patch make" is for internal developers only.