botang 发表于 2018-10-26 20:06:04

课程第50/51/52次(2018-10-26星期五、2018-10-29星期一和2018-11-02星期五)


$ srvctl stop instance -db racdb -node station12-force
$ srvctl status database -db racdb
Instance RACDB_2 is running on node station11
Instance RACDB_1 is not running on node station12
$ srvctl convert database -h

Convert RAC One Node database to RAC database having one instance.

Usage: srvctl convert database -db <db_unique_name> -dbtype RAC [-node <node>]
    -db <db_unique_name>         Unique name of database to convert
    -dbtype <type>               Type of database to which to convert: RAC
    -node <node>                   Candidate server for administrator-managed RAC database to run on
    -help                        Print usage

Convert RAC database having one instance to RAC One Node database.

Usage: srvctl convert database -db <db_unique_name> -dbtype RACONENODE [-instance <inst_name>] [-timeout <timeout>]
    -db <db_unique_name>         Unique name of database to convert
    -dbtype <type>               Type of database to which to convert: RACONENODE
    -instance <inst_name>          Instance name prefix; required for administrator-managed RAC One Node database
    -timeout <timeout>             Online relocation timeout in minutes
    -help                        Print usage

12c OCMDataguard:
DGMGRL> edit database 'prod5h1' set property TransportLagThreshold=30;
Property "transportlagthreshold" updated
DGMGRL> edit database 'prod5h2' set property TransportLagThreshold=30;
Property "transportlagthreshold" updated
DGMGRL> edit database 'prod5h1' set property ApplyLagThreshold=45;
Property "applylagthreshold" updated
DGMGRL> edit database 'prod5h2' set property ApplyLagThreshold=45;
Property "applylagthreshold" updated

12c MAA环境(可以在16G内存的笔记本环境中实现):






页: [1]
查看完整版本: 课程第50/51/52次(2018-10-26星期五、2018-10-29星期一和2018-11-02星期五)