Class: MintPress::OracleEBS::DBHost

Inherits:
Object
  • Object
show all
Includes:
MintLogger
Defined in:
src/oracle-ebs/lib/oracle-ebs/dbhost.rb

Properties (Read/Write)

Properties (Read Only)

Constant Summary

Constants included from MintLogger

MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MintLogger::Utils::Common

#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send

Constructor Details

#initialize(attributes) ⇒ DBHost

initialize: Setup the DBHost object

Raises:

  • (ArgumentError)

Instance Attribute Details

#accountsObject (readonly)

Returns the value of attribute accounts.

#bin_scriptObject (readonly)

Returns the value of attribute bin_script.

#control_fileObject (readonly)

Returns the value of attribute control_file.

#data_topsObject (readonly)

Returns the value of attribute data_tops.

#db_ownerObject (readonly)

Returns the value of attribute db_owner.

#endpointObject (readonly)

Returns the value of attribute endpoint.

#fix_listenerObject (readonly)

Returns the value of attribute fix_listener.

#hostObject (readonly)

Returns the value of attribute host.

#listener_scriptObject (readonly)

Returns the value of attribute listener_script.

#oraInstObject (readonly)

Returns the value of attribute oraInst.

#purge_rman_dirObject (readonly)

Returns the value of attribute purge_rman_dir.

Instance Method Details

#add_invited_nodes(new_hosts:) ⇒ Object

add_invited_nodes: Add one or more additional hosts into the tcp.invited_nodes list in sqlnet.ora

#build_bin_env_fileObject

build_bin_env_file: Creates the environment file to source before running scripts on the target host.

#build_bin_scriptObject

build_bin_script: Creates a shell script to run commands from ORACLE_HOME/bin - allows us to get around environments before the clone is finished where the environment files aren't there yet.

#build_db_status_scriptObject

build_db_status_script: Creates a plsql script that allows us to swap a database between OPEN, MOUNTED, STARTED and SHUTDOWN.

#build_listener_scriptObject

build_listener_script: Creates a shell script that updates the listener.ora, sqlnet.ora and tnsnames.ora files based on the source/target environment info.

#call_bin_script(command:, script:, user_pass: :IGNORE, timeout: 1800, ignore_missing_run_file: false) ⇒ Object

call_bin_script: runs the @host.call_bin_script routine, passing the db_owner in as the sudo user.

#fix_home_path(src_path:, tgt_path:, src_db_host:) ⇒ Object

#get_patch_levelObject

#inspectObject

#load_variablesObject

load_variables: Uses the host transport to derive the various environment variables from the host and to locate the oracle inventory.

Raises:

  • (ArgumentError)

#run_adautocfgObject

#run_lsnrctl(status:) ⇒ Object

#run_sql_script(script_contents:, username:, password:, use_utils: false) ⇒ Object

#set_db_status(target_status:, ignore_missing_run_file: false) ⇒ Object

set_db_status: alter the db between STARTED, MOUNTED, OPEN, SHUTDOWN

#shutdown_abort_dbObject

shutdown_abort: Shutdown Abort the database

#startup_db(mode: "OPEN") ⇒ Object

startup_db: Startup the database in the requested mode

#to_sObject

#update_autocfg(src_ebs_host:) ⇒ Object