lt_patch

lt_patch — the LightDB patch tool

Synopsis

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]

Description

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.

Options

-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.

Overview of the Patch Process

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.3-22.2

  • Platform: kylinV10sp1.x86_64

Applying the Patch to the Desired Targets (LTHOME).

Note

Before performing any patch task, always read the patch README file for any special patching instructions.

Usage

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

Note

"lt_patch init" and "lt_patch make" is for internal developers only.