Class: MintPress::OracleEBS::DBHost
- Inherits:
-
Object
- Object
- MintPress::OracleEBS::DBHost
- 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
-
#accounts ⇒ Object
readonly
Returns the value of attribute accounts.
-
#bin_script ⇒ Object
readonly
Returns the value of attribute bin_script.
-
#control_file ⇒ Object
readonly
Returns the value of attribute control_file.
-
#data_tops ⇒ Object
readonly
Returns the value of attribute data_tops.
-
#db_owner ⇒ Object
readonly
Returns the value of attribute db_owner.
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#fix_listener ⇒ Object
readonly
Returns the value of attribute fix_listener.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#listener_script ⇒ Object
readonly
Returns the value of attribute listener_script.
-
#oraInst ⇒ Object
readonly
Returns the value of attribute oraInst.
-
#purge_rman_dir ⇒ Object
readonly
Returns the value of attribute purge_rman_dir.
Instance Method Summary collapse
-
#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_file ⇒ Object
build_bin_env_file: Creates the environment file to source before running scripts on the target host.
-
#build_bin_script ⇒ Object
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_script ⇒ Object
build_db_status_script: Creates a plsql script that allows us to swap a database between OPEN, MOUNTED, STARTED and SHUTDOWN.
-
#build_listener_script ⇒ Object
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_level ⇒ Object
-
#initialize(attributes) ⇒ DBHost
constructor
initialize: Setup the DBHost object.
- #inspect ⇒ Object
-
#load_variables ⇒ Object
load_variables: Uses the host transport to derive the various environment variables from the host and to locate the oracle inventory.
- #run_adautocfg ⇒ Object
- #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_db ⇒ Object
shutdown_abort: Shutdown Abort the database.
-
#startup_db(mode: "OPEN") ⇒ Object
startup_db: Startup the database in the requested mode.
- #to_s ⇒ Object
- #update_autocfg(src_ebs_host:) ⇒ Object
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
Instance Attribute Details
#accounts ⇒ Object (readonly)
Returns the value of attribute accounts.
#bin_script ⇒ Object (readonly)
Returns the value of attribute bin_script.
#control_file ⇒ Object (readonly)
Returns the value of attribute control_file.
#data_tops ⇒ Object (readonly)
Returns the value of attribute data_tops.
#db_owner ⇒ Object (readonly)
Returns the value of attribute db_owner.
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
#fix_listener ⇒ Object (readonly)
Returns the value of attribute fix_listener.
#host ⇒ Object (readonly)
Returns the value of attribute host.
#listener_script ⇒ Object (readonly)
Returns the value of attribute listener_script.
#oraInst ⇒ Object (readonly)
Returns the value of attribute oraInst.
#purge_rman_dir ⇒ Object (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_file ⇒ Object
build_bin_env_file: Creates the environment file to source before running scripts on the target host.
#build_bin_script ⇒ Object
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_script ⇒ Object
build_db_status_script: Creates a plsql script that allows us to swap a database between OPEN, MOUNTED,
STARTED and SHUTDOWN.
#build_listener_script ⇒ Object
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_level ⇒ Object
#inspect ⇒ Object
#load_variables ⇒ Object
load_variables: Uses the host transport to derive the various environment variables from the host and to
locate the oracle inventory.
#run_adautocfg ⇒ Object
#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_db ⇒ Object
shutdown_abort: Shutdown Abort the database
#startup_db(mode: "OPEN") ⇒ Object
startup_db: Startup the database in the requested mode