04-RAC DB Administration Overview
04-RAC DB Administration Overview
04-RAC DB Administration Overview
4-2 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Redo Log Files and RAC
Node1 Node2
RAC01 RAC02
Shared storage
Group 1 SPFILE
… Group 4
Group 2 RAC01.THREAD=1
Group 5
RAC02.THREAD=2
Group 3 …
Thread 2
Thread 1
4-3 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Automatic Undo Management and RAC
Pending Node1 Node2
offline
RAC01 RAC02
Consistent reads
Transaction recovery
Shared storage
undotbs3
… SPFILE
RAC01.UNDO_TABLESPACE=undotbs1
RAC02.UNDO_TABLESPACE=undotbs2
undotbs1 undotbs2
…
4-4 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Starting and Stopping RAC Instances
4-5 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Starting and Stopping
RAC Instances with srvctl
• start/stop syntax:
$ srvctl start instance -db db_unique_name –node node_name
-instance instance_name_list[-startoption
open|mount|nomount|normal|transactional|immediate|abort]
• Examples:
$ srvctl start instance -db orcl -instance orcl1,orcl2
4-6 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Starting and Stopping
RAC Instances with SQL*Plus
[host01] $ echo $ORACLE_SID
orcl1
sqlplus / as sysdba
SQL> startup
SQL> shutdown
4-7 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Switch Between Automatic
and Manual Policies
$ srvctl config database -db orcl -a
Database unique name: orcl
Database name: orcl
Oracle home: /oracle/product/19c
Oracle user: oracle
Spfile: +DATA/orcl/spfileorcl.ora
Password file: +DATA/orcl/orapworcl
Domain: cluster01.example.com
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: orcldb
Database instances:
Disk Groups:
Mount point paths:
Services:
Type: RAC
...
4-8 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
RAC Initialization Parameter Files
Node1 Node2
RAC01 RAC02
initRAC01.ora initRAC02.ora
SPFILE=… SPFILE=…
SPFILE
4-9 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
SPFILE Parameter Values and RAC
• COMPATIBLE
• CLUSTER_DATABASE
• CONTROL_FILES
• DB_BLOCK_SIZE
• DB_DOMAIN
• DB_FILES
• DB_NAME
• DB_RECOVERY_FILE_DEST
• DB_RECOVERY_FILE_DEST_SIZE
• DB_UNIQUE_NAME
• INSTANCE_TYPE (RDBMS or ASM)
• PARALLEL_EXECUTION_MESSAGE_SIZE
• REMOTE_LOGIN_PASSWORDFILE
• UNDO_MANAGEMENT
Instance settings:
• INSTANCE_NAME
• INSTANCE_NUMBER
• UNDO_TABLESPACE
• THREAD
• ROLLBACK_SEGMENTS
2
Node1 Node2 Noden
Manual copy