standby

package
v0.2.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapStandby

func BootstrapStandby(ctx context.Context, dbdClient dbdpb.DatabaseDaemonClient) error

BootstrapStandby converts promoted standby to standard El Carro Oracle instance.

func CreateStandby

func CreateStandby(ctx context.Context, primary *Primary, standby *Standby, backupGcsPath, operationId string, dbdClient dbdpb.DatabaseDaemonClient) (*lropb.Operation, error)

CreateStandby creates a standby database by cloning a external database.

func DataGuardStatus

func DataGuardStatus(ctx context.Context, StandbyUniqueName string, dbdClient dbdpb.DatabaseDaemonClient) ([]string, error)

DataGuardStatus get configuration and this standby database status.

func PromoteStandby

func PromoteStandby(ctx context.Context, primary *Primary, standby *Standby, dbdClient dbdpb.DatabaseDaemonClient) error

PromoteStandby promotes standby database to primary.

func SetUpDataGuard

func SetUpDataGuard(ctx context.Context, primary *Primary, standby *Standby, passwordFileGcsPath string, dbdClient dbdpb.DatabaseDaemonClient) error

SetUpDataGuard sets up Data Guard between primary and standby.

func VerifyStandbySettings

func VerifyStandbySettings(ctx context.Context, primary *Primary, standby *Standby, passwordGcsPath, backupGcsPath string, dbdClient dbdpb.DatabaseDaemonClient) (settingErrs []*standbyhelpers.StandbySettingErr)

VerifyStandbySettings does preflight checks on standby settings.

Types

type Primary

type Primary struct {
	Host             string
	Port             int
	Service          string
	User             string
	PasswordAccessor SecretAccessor
}

Primary is a domain object that describes an Oracle external primary instance.

type SecretAccessor

type SecretAccessor interface {
	Get(context.Context) (string, error)
}

SecretAccessor defines the methods we use from the secret accessor.

type Standby

type Standby struct {
	CDBName      string
	DBUniqueName string
	DBDomain     string
	Host         string
	Port         int
	LogDiskSize  int64
	Version      string
}

Standby is a domain object that describes an Oracle standby replica instance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL