Class: MintPress::OracleUtils::DGMGRLSessionImpl
- Inherits:
-
Object
- Object
- MintPress::OracleUtils::DGMGRLSessionImpl
- Includes:
- MintLogger, Utils
- Defined in:
- src/oracle-utils/lib/oracle-utils/dgmgrl-session.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 Utils
Instance Method Summary collapse
-
#add_member(type:, name:, connect_identifier:) ⇒ Object
DGMGRL> ADD DATABASE South_Sales AS CONNECT IDENTIFIER IS South_Sales.example.com; Database "South_Sales" added.
- #check_result(result) ⇒ Object
- #cli_runner(command:, args:, block: nil) ⇒ Object
- #close ⇒ Object
- #configuration_exists? ⇒ Boolean
-
#connect(db_service_name:, db_username:, db_password:, db_port: 1521, db_role: nil) ⇒ Object
Syntax: CONNECT
/ [@ ] [AS { SYSDBA | SYSDG }] CONNECT [/@ ] [AS { SYSDBA | SYSDG }] CONNECT /@ [AS { SYSDBA | SYSDG }] CONNECT / [AS { SYSDBA | SYSDG }] CONNECT. - #connected? ⇒ Boolean
-
#create_configuration(name:, primary_db:, connect_identifier:) ⇒ Object
The broker uses the specified connect-identifier to communicate with the specified database from other databases.
- #find_binary(oracle_home) ⇒ Object
-
#initialize(transport:, oracle_home:, options: {}) ⇒ DGMGRLSessionImpl
constructor
$ ./dgmgrl -h Usage: dgmgrl [
] [ [ ]] ::= -silent | -echo ::= / [@ ] [AS SYSDBA|SYSDG] ::= Or: dgmgrl [ ] @script_file_name. - #method_missing(sym, *args, &block) ⇒ Object
- #named_configuration_exists?(name) ⇒ Boolean
- #remove_configuration ⇒ Object
- #show_configuration ⇒ Object
- #show_database(database, property = nil) ⇒ Object
- #show_instance(instance, property = nil, options = nil) ⇒ Object
- #show_observer ⇒ Object
Methods included from MintLogger::Utils::Common
#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send
Methods included from Utils
Constructor Details
#initialize(transport:, oracle_home:, options: {}) ⇒ DGMGRLSessionImpl
$ ./dgmgrl -h
Usage: dgmgrl [] [ []]
::= -silent | -echo
::= /[@] [AS SYSDBA|SYSDG]
::=
Or: dgmgrl [] @script_file_name
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
Instance Method Details
#add_member(type:, name:, connect_identifier:) ⇒ Object
DGMGRL> ADD DATABASE South_Sales AS CONNECT IDENTIFIER IS South_Sales.example.com;
Database "South_Sales" added
#check_result(result) ⇒ Object
#cli_runner(command:, args:, block: nil) ⇒ Object
#close ⇒ Object
#configuration_exists? ⇒ Boolean
#connect(db_service_name:, db_username:, db_password:, db_port: 1521, db_role: nil) ⇒ Object
Syntax:
CONNECT /[@] [AS { SYSDBA | SYSDG }]
CONNECT [/@] [AS { SYSDBA | SYSDG }]
CONNECT /@ [AS { SYSDBA | SYSDG }]
CONNECT / [AS { SYSDBA | SYSDG }]
CONNECT
#connected? ⇒ Boolean
#create_configuration(name:, primary_db:, connect_identifier:) ⇒ Object
The broker uses the specified connect-identifier to communicate with the specified database from other databases. Therefore, you must ensure that the connect-identifier can be used to address the specified database from all databases in your configuration. For example, if TNS is used as the naming method, you must ensure that the tnsnames.ora file on every database and instance that is part of the configuration contains an entry for the connect-identifier. The connect identifier must resolve to the same connect descriptor. If the database that is being added is an Oracle RAC database, the connect-identifier provided here must reach all instances of the Oracle RAC, preferably with FAILOVER attributes set.