lt_patch — the LightDB patch tool
lt_patch
init
[-i patchid
]
lt_patch
make
lt_patch
install
[-l lthome
]
lt_patch
remove
[-l lthome
] -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
--lthome
Specifies the file system location of the LightDB software. If this option is omitted, the environment variable LTHOME is used.
-i
--patch-id
Specifies the unique id of one patch.
-V
--version
Print the lt_patch version and exit.
-?
--help
Show 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:
Patch ID: 001
LightDB Version: 13.8-22.3
Platform: kylinV10sp1.x86_64
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 001
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 001
"lt_patch init" and "lt_patch make" is for internal developers only.