Class: MintPress::OracleEBS::Client

Inherits:
Common
  • Object
show all
Includes:
EbsUtils
Defined in:
src/oracle-ebs/lib/oracle-ebs/client-addnode.rb,
src/oracle-ebs/lib/oracle-ebs/client-config.rb,
src/oracle-ebs/lib/oracle-ebs/client-copy.rb,
src/oracle-ebs/lib/oracle-ebs/client-postclone.rb,
src/oracle-ebs/lib/oracle-ebs/client-preclone.rb,
src/oracle-ebs/lib/oracle-ebs/client.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

Constants included from Common

Common::VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from EbsUtils

#build_path, #check_base, #copy_direct, #copy_indirect, #create_tarball, #set_ebs_init, #translate_sff, #untar_tarball

Methods included from MintLogger::Utils::Common

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

Constructor Details

#initialize(opts = nil) ⇒ Client

Returns a new instance of Client.

Instance Attribute Details

#log_levelObject (readonly)

Returns the value of attribute log_level.

#optionsObject

Returns the value of attribute options.

#version_numericObject

Returns the value of attribute version_numeric.

Instance Method Details

#add_nodeObject

client methods pre-clone steps

#apps_tier_copy(src_ebs_host:, tgt_ebs_host:) ⇒ Object

apps_tier_copy: Copies the current RUN_BASE from the source host to the target host or builds a tarball of it

#apps_tier_fs_copy(tgt_ebs_host:) ⇒ Object

#apps_tier_pb_postclone(tgt_db_host:, tgt_ebs_host:) ⇒ Object

#apps_tier_post_preclone(tgt_ebs_host:) ⇒ Object

#apps_tier_postclone(tgt_db_host:, tgt_ebs_host:, src_runbase_port:) ⇒ Object

RAC Query SELECT CASE WHEN vi.instance_name = vd.name then 'N' ELSE 'Y' END RAC_ENV FROM v\$instance vi, v\$database vd;

#apps_tier_preclone(src_ebs_host:) ⇒ Object

#build_src_apps_tier(host_user:, host_address:, src_host_user:, transfer_options:, src_oracle_home:, src_tns_admin:, src_context_name:, src_db_port:, oraInst:, instance:) ⇒ Object

#build_src_db_tier(host_user:, host_address:, src_host_user:, transfer_options:, src_oracle_home:, src_tns_admin:, src_context_name:, src_db_port:, oraInst:, instance:) ⇒ Object

#build_src_environment(src_host_user:, environment:) ⇒ Object

#build_tgt_apps_tier(host_user:, host_address:, tgt_host_user:, transfer_options:, tgt_context_name:, oraInst:, instance:, add_node:) ⇒ Object

#build_tgt_db_tier(host_user:, host_address:, tgt_host_user:, transfer_options:, tgt_context_name:, oraInst:, instance:) ⇒ Object

#build_tgt_environment(tgt_host_user:, environment:, add_node:) ⇒ Object

#check_tgt_listener(src_db_host:, tgt_db_host:) ⇒ Object

#check_ugidsObject

#configure_pairs_files(patch_level:) ⇒ Object

#copy_db_homeObject

#copy_ebsObject

client methods copy ebs data

#copy_from_ebs_source(tgt_env_variable:, src_env_variable:, add_node:) ⇒ Object

#copy_homesObject

#create_oraInst(instance:) ⇒ Object

create_oraInst: Creates an OraInventory object from the oraInst attributes in the json for the current instance

#create_transfer_options(instance:) ⇒ Object

create_transfer_options: Creates the TransferOptions object from the transferOptions attributes in the json for the current instance

#db_configObject

client methods config steps

#db_home_copy(src_db_host:, tgt_db_host:) ⇒ Object

db_home_copy: Copies the ORACLE_HOME from the source host to the target host.

#db_importObject

#db_tier_postclone(src_db_host:, tgt_db_host:, src_db_port:) ⇒ Object

#db_tier_preclone(src_db_host:) ⇒ Object

#fnd_nodes_clean(tgt_db_host:) ⇒ Object

#get_host_info(host_id:) ⇒ Object

get_host_info: Returns an individual host from the hostList in the mintmodel based on the host_id passed in

#get_new_hostsObject

#get_utl_file_dir(tgt_db_host:) ⇒ Object

#hosts_from_json(opts) ⇒ Object

hosts_from_json: Populates the @src_ebs_hosts, @src_db_hosts, @tgt_ebs_hosts and @tgt_db_hosts arrays from the information in the json

#import_db(src_db_host:, tgt_db_host:) ⇒ Object

import_db: Imports the rsync backup into a new db

#parse_ifile(src_file_name:, tgt_file_name:, attributes:, directories:, src_db_host:, tgt_db_host:) ⇒ Object

parse_ifile: Parse the control file passed in, replacing values based on the parameters provided.

#parse_pfile(src_db_host:, tgt_db_host:) ⇒ Object

#partial?Boolean

Returns:

  • (Boolean)

#postcloneObject

#postclone_dbObject

#postclone_ebsObject

client methods post-clone steps

#precloneObject

#preclone_base(src_ebs_host:, base:) ⇒ Object

#preclone_bases(src_ebs_host:) ⇒ Object

#preclone_dbObject

#preclone_ebsObject

client methods pre-clone steps

#register_local_listener(src_db_host:, tgt_db_host:) ⇒ Object

relink_home: Relink the ORACLE_HOME on the target box

#rman_backupObject

#rman_backup_int(src_db_host:) ⇒ Object

rman_backup_int: Creates an RMAN backup of the source database.

#rman_copyObject

#rman_copy_int(src_db_host:, tgt_db_host:) ⇒ Object

rman_copy_int: Copies the RMAN backup set from the source host to the target host.

#run_adcfgcloneObject

#run_adclonectx(patch_level:) ⇒ Object

#shutdown_existing(tgt_db_host:, ignore_missing_run_file: false) ⇒ Object

shutdown_existing: Shutdown the database on the target host (if it already exists)

#stpall_if_reqd(src_ebs_host:, base:) ⇒ Object

#untarObject

#untar_db(tgt_db_host:, index:) ⇒ Object

#untar_ebs(tgt_ebs_host:) ⇒ Object

#update_invited_nodes(src_db_host:, tgt_db_host:) ⇒ Object

update_invited_nodes: Update the sqlnet.ora file to replace the source invited nodes with the target db and ebs nodes