SlideShare a Scribd company logo
1 of 41
Download to read offline
RAC Database Administration
Objectives
• After completing this lesson, you should be able to:
– Use Enterprise Manager cluster database pages
– Define redo log files in a RAC environment
– Define undo tablespaces in a RAC environment
– Start and stop RAC databases and instances
– Modify initialization parameters in a RAC environment
– Manage ASM instances in a RAC environment
Cluster Database Home Page
Cluster Database Home Page
Cluster Database Instance Home Page
Cluster Database Instance
Administration Page
Cluster Home Page
The Configuration Section
The Configuration Section
Topology Viewer
Enterprise Manager Alerts and RAC
Enterprise Manager Metrics and RAC
Enterprise Manager Metrics and RAC
Enterprise Manager Alert History and RAC
Enterprise Manager Blackouts and RAC
Redo Log Files and RAC
…
RAC01.THREAD=1
RAC02.THREAD=2
…
SPFILE
Shared storage
Group 1
Thread 1
Node1
RAC01
Node2
RAC02
Group 2
Group 3
Group 4
Thread 2
Group 5
ALTER DATABASE ADD LOGFILE THREAD 2 GROUP 4;
ALTER DATABASE ADD LOGFILE THREAD 2 GROUP 5;
ALTER DATABASE ENABLE THREAD 2;
Automatic Undo Management and RAC
…
RAC01.UNDO_TABLESPACE=undotbs3
RAC02.UNDO_TABLESPACE=undotbs2
…
ALTER SYSTEM SET UNDO_TABLESPACE=undotbs3 SID='RAC01';
undotbs3
Node1
RAC01
Node2
RAC02
undotbs1
SPFILE
undotbs2
Shared storage
Transaction recovery
Pending
offline
Consistent reads
Starting and Stopping RAC Instances
– Multiple instances can open the same database
simultaneously.
– Shutting down one instance does not interfere with
other running instances.
– SHUTDOWN TRANSACTIONAL LOCAL does not
wait for other instances’ transactions to finish.
– RAC instances can be started and stopped by using:
• Enterprise Manager
• Server Control (SRVCTL) utility
• SQL*Plus
– Shutting down a RAC database means shutting
down all instances accessing the database.
Starting and Stopping
RAC Instances with SQL*Plus
[stc-raclin01] $ echo $ORACLE_SID
RACDB1
sqlplus / as sysdba
SQL> startup
SQL> shutdown
[stc-raclin02] $ echo $ORACLE_SID
RACDB2
sqlplus / as sysdba
SQL> startup
SQL> shutdown
[stc-raclin01] $sqlplus / as sysdba
SQL> startup
SQL> shutdown
SQL> connect sys/oracle@RACDB2 as sysdba
SQL> startup
SQL> shutdown
OR
Starting and Stopping
RAC Instances with SRVCTL
– start/stop syntax:
– Examples:
srvctl start|stop instance -d <db_name> -i <inst_name_list>
[-o open|mount|nomount|normal|transactional|immediate|abort>]
[-c <connect_str> | -q]
$ srvctl start instance -d RACDB -i RACDB1,RACDB2
$ srvctl stop instance -d RACDB -i RACDB1,RACDB2
srvctl start|stop database -d <db_name>
[-o open|mount|nomount|normal|transactional|immediate|abort>]
[-c <connect_str> | -q]
$ srvctl start database -d RACDB -o open
Switch Between the Automatic
and Manual Policies
srvctl modify database -d RACB -y MANUAL;
$ srvctl config database -d RACB -a
ex0044 RACB1 /u01/app/oracle/product/10.2.0/db_1
ex0045 RACB2 /u01/app/oracle/product/10.2.0/db_1
DB_NAME: RACB
ORACLE_HOME: /u01/app/oracle/product/10.2.0/db_1
SPFILE: +DGDB/RACB/spfileRACB.ora
DOMAIN: null
DB_ROLE: null
START_OPTIONS: null
POLICY: AUTOMATIC
ENABLE FLAG: DB ENABLED
$
RAC Initialization Parameter Files
– An SPFILE is created if you use the DBCA.
– The SPFILE must be created on a shared volume
or shared raw device.
– All instances use the same SPFILE.
– If the database is created manually, then create an
SPFILE from a PFILE.
Node1
RAC01
SPFILE
SPFILE=…
initRAC01.ora
Node2
RAC02
SPFILE=…
initRAC02.ora
SPFILE Parameter Values and RAC
– You can change parameter settings using the ALTER
SYSTEM SET command from any instance:
– SPFILE entries such as:
• *.<pname> apply to all instances
• <sid>.<pname> apply only to <sid>
• <sid>.<pname> takes precedence over *.<pname>
– Use current or future *.<dpname> settings for
<sid>:
– Remove an entry from your SPFILE:
ALTER SYSTEM RESET <dpname> SCOPE=SPFILE sid='<sid|*>';
ALTER SYSTEM RESET <dpname> SCOPE=MEMORY sid='<sid>';
ALTER SYSTEM SET <dpname> SCOPE=MEMORY sid='<sid|*>';
EM and SPFILE Parameter Values
SCOPE=MEMORY
EM and SPFILE Parameter Values
SCOPE=SPFILE
SCOPE=BOTH
RAC Initialization Parameters
Parameters That Require Identical Settings
– ACTIVE_INSTANCE_COUNT
– ARCHIVE_LAG_TARGET
– COMPATIBLE
– CLUSTER_DATABASE/CLUSTER_DATABASE_INSTANCE
– CONTROL_FILES
– DB_BLOCK_SIZE
– DB_DOMAIN
– DB_FILES
– DB_NAME
– DB_RECOVERY_FILE_DEST/DB_RECOVERY_FILE_DEST_S
IZE
– DB_UNIQUE_NAME
– INSTANCE_TYPE
– PARALLEL_MAX_SERVERS
– REMOTE_LOGIN_PASSWORD_FILE
– MAX_COMMIT_PROPAGATION_DELAY
– TRACE_ENABLED
– UNDO_MANAGEMENT
Parameters That Require Unique
Settings
• Instance settings:
– THREAD
– ROLLBACK_SEGMENTS
– INSTANCE_NAME
– ASM_PREFERRED_READ_FAILURE_GROUPS
• INSTANCE_NUMBER
• UNDO_TABLESPACE
Quiescing RAC Databases
– Use the ALTER SYSTEM QUIESCE RESTRICTED
statement from a single instance:
– The database cannot be opened by other instances after
the ALTER SYSTEM QUIESCE… statement starts.
– The ALTER SYSTEM QUIESCE RESTRICTED and
ALTER SYSTEM UNQUIESCE statements affect all
instances in a RAC environment.
– Cold backups cannot be taken when the database is in a
quiesced state.
SQL> ALTER SYSTEM QUIESCE RESTRICTED;
Terminating Sessions on a Specific
Instance
SQL> SELECT SID, SERIAL#, INST_ID
2 FROM GV$SESSION WHERE USERNAME='JFV';
SID SERIAL# INST_ID
---------- ---------- ----------
140 3340 2
SQL> ALTER SYSTEM KILL SESSION '140,3340,@2';
System altered.
SQL>
ALTER SYSTEM KILL SESSION '140,3340,@2'
*
ERROR at line 1:
ORA-00031: session marked for kill
How SQL*Plus Commands Affect
Instances
SQL*Plus Command Associated Instance
ARCHIVE LOG Generally affects the current instance
CONNECT Affects the default instance if no instance is
specified in the CONNECT command
HOST Affects the node running the SQL*Plus session
RECOVER Does not affect any particular instance, but rather
the database
SHOW PARAMETER and
SHOW SGA
Show the current instance parameter and SGA
information
STARTUP and
SHUTDOWN
Affect the current instance
SHOW INSTANCE Displays information about the current instance
Node1
Transparent Data Encryption and
Wallets in RAC
– One wallet shared by all instances on shared storage:
• No additional administration required
– One copy of the wallet on each local storage:
• Local copies need to be synchronized each time master key is
changed
ALTER SYSTEM SET ENCRYPTION KEY
Wallet
Master keys
Node2
Wallet
Master key
Noden
Wallet
Master key
Manual copy
Manual
copy
1
2
ASM: General Architecture
ASM
instance
SID=+ASM1
ASM
instance
SID=+ASM2
ASM disks ASM disks ASM disks ASM disks ASM disks ASM disks
ASM disk group Tom ASM disk group Bob ASM disk group Harry
DB
instance
SID=sales1
DB
instance
SID=test1
DB
instance
SID=sales2
DB
instance
SID=test2
ASMB
ASMB
FG
FG FG
FG
Node2
Node1 Group Services
tom=+ASM1
bob=+ASM1
harry=+ASM1
Group Services
tom=+ASM2
bob=+ASM2
harry=+ASM2
DBW0
DBW0
DBW0
DBW0
ASMB
RBAL RBAL
ARB0
ARBA
…
ARB0
ARBA
…
ASMB
RBAL
RBAL RBAL
RBAL
GMON
GMON
ASM Instance and Crash Recovery in
RAC
Disk group A
Node2
+ASM2
Node1
+ASM1
Both instances mount
disk group
Disk group A
Node2
+ASM2
Node1
+ASM1
ASM instance failure
Disk group A
Node2
+ASM2
Node1
Disk group repaired
by surviving instance
Disk Group A
Node2
+ASM2
Node1
+ASM1
Only one instance
mounts disk group
Disk Group A
Node2
+ASM2
Node1
+ASM1
ASM instance failure
Disk Group A
Node2
+ASM2
Node1
Disk group repaired
when next mounted
ASM crash recovery
ASM instance recovery
ASM Instance Initialization Parameters
and RAC
– CLUSTER_DATABASE: This parameter must be set
to TRUE.
– ASM_DISKGROUP:
• Multiple instances can have different values.
• Shared disk groups must be mounted by each ASM
instance.
– ASM_DISKSTRING:
• Multiple instances can have different values.
• With shared disk groups, every instance should be able to
see the common pool of physical disks.
– ASM_POWER_LIMIT: Multiple instances can have
different values.
ASM and SRVCTL with RAC
– SRVCTL enables you to manage ASM from an
Oracle Clusterware (OC) perspective:
• Add an ASM instance to OC.
• Enable an ASM instance for OC automatic restart.
• Start up an ASM instance.
• Shut down an ASM instance.
• Disable an ASM instance from OC automatic restart.
• Remove an ASM instance configuration from the OCR.
• Get some status information.
• Set ASM instance dependency to database instance.
– The DBCA allows you to create ASM instances as
well as helps you to add and enable them with OC.
ASM and SRVCTL with RAC: Examples
$ srvctl start asm –n clusnode1
$ srvctl stop asm –n clusnode1 –o immediate
$ srvctl add asm -n clusnode1 -i +ASM1 -o /ora/ora10
$ srvctl disable asm –n clusnode1 –i +ASM1
• Start an ASM instance on the specified node:
• Stop an ASM instance on the specified node:
• Add OCR data about an existing ASM instance:
• Disable OC management of an ASM instance:
$ srvctl modify instance -d crm -i crm1 -s +asm1
ASM Disk Groups with EM in RAC
Disk Group Performance Page and RAC
Summary
• In this lesson, you should have learned how to:
– Use Enterprise Manager cluster database pages
– Define redo log files in a RAC environment
– Define undo tablespaces in a RAC environment
– Start and stop RAC databases and instances
– Modify initialization parameters in a RAC environment
– Manage ASM instances in a RAC environment
Practice 4: Overview
• This practice covers manipulating redo threads.

More Related Content

Similar to les04.pdf

12c Flex ASM: Moving to Flex ASM
12c Flex ASM: Moving to Flex ASM12c Flex ASM: Moving to Flex ASM
12c Flex ASM: Moving to Flex ASMMonowar Mukul
 
Making MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureMaking MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureIlmar Kerm
 
Sun oracle-maa-060407
Sun oracle-maa-060407Sun oracle-maa-060407
Sun oracle-maa-060407Sal Marcus
 
12c database migration from ASM storage to NON-ASM storage
12c database migration from ASM storage to NON-ASM storage12c database migration from ASM storage to NON-ASM storage
12c database migration from ASM storage to NON-ASM storageMonowar Mukul
 
Cassandra Summit 2014: Lesser Known Features of Cassandra 2.1
Cassandra Summit 2014: Lesser Known Features of Cassandra 2.1Cassandra Summit 2014: Lesser Known Features of Cassandra 2.1
Cassandra Summit 2014: Lesser Known Features of Cassandra 2.1DataStax Academy
 
My sql fabric ha and sharding solutions
My sql fabric ha and sharding solutionsMy sql fabric ha and sharding solutions
My sql fabric ha and sharding solutionsLouis liu
 
MySQL Replication Basics -Ohio Linux Fest 2016
MySQL Replication Basics -Ohio Linux Fest 2016MySQL Replication Basics -Ohio Linux Fest 2016
MySQL Replication Basics -Ohio Linux Fest 2016Dave Stokes
 
MySQL Replication Update -- Zendcon 2016
MySQL Replication Update -- Zendcon 2016MySQL Replication Update -- Zendcon 2016
MySQL Replication Update -- Zendcon 2016Dave Stokes
 
How oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 finalHow oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 finalAjith Narayanan
 
Dsi 11g convert_to RAC
Dsi 11g convert_to RACDsi 11g convert_to RAC
Dsi 11g convert_to RACAnil Kumar
 
Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0Santosh Kangane
 
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Alex Zaballa
 
ORACLE RAC DBA ONLINE TRAINING
ORACLE RAC DBA ONLINE TRAININGORACLE RAC DBA ONLINE TRAINING
ORACLE RAC DBA ONLINE TRAININGTRAINING ICON
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsJohn Kanagaraj
 
Oracle12c flex asm_flexcluster - Y V RAVI KUMAR
Oracle12c flex asm_flexcluster - Y V RAVI KUMAROracle12c flex asm_flexcluster - Y V RAVI KUMAR
Oracle12c flex asm_flexcluster - Y V RAVI KUMARpasalapudi123
 
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...Kristofferson A
 

Similar to les04.pdf (20)

12c Flex ASM: Moving to Flex ASM
12c Flex ASM: Moving to Flex ASM12c Flex ASM: Moving to Flex ASM
12c Flex ASM: Moving to Flex ASM
 
Making MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureMaking MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid Infrastructure
 
Sun oracle-maa-060407
Sun oracle-maa-060407Sun oracle-maa-060407
Sun oracle-maa-060407
 
12c database migration from ASM storage to NON-ASM storage
12c database migration from ASM storage to NON-ASM storage12c database migration from ASM storage to NON-ASM storage
12c database migration from ASM storage to NON-ASM storage
 
oracle dba
oracle dbaoracle dba
oracle dba
 
Rac nonrac clone
Rac nonrac cloneRac nonrac clone
Rac nonrac clone
 
Cassandra Summit 2014: Lesser Known Features of Cassandra 2.1
Cassandra Summit 2014: Lesser Known Features of Cassandra 2.1Cassandra Summit 2014: Lesser Known Features of Cassandra 2.1
Cassandra Summit 2014: Lesser Known Features of Cassandra 2.1
 
My sql fabric ha and sharding solutions
My sql fabric ha and sharding solutionsMy sql fabric ha and sharding solutions
My sql fabric ha and sharding solutions
 
MySQL Replication Basics -Ohio Linux Fest 2016
MySQL Replication Basics -Ohio Linux Fest 2016MySQL Replication Basics -Ohio Linux Fest 2016
MySQL Replication Basics -Ohio Linux Fest 2016
 
MySQL Replication Update -- Zendcon 2016
MySQL Replication Update -- Zendcon 2016MySQL Replication Update -- Zendcon 2016
MySQL Replication Update -- Zendcon 2016
 
Oracle ORA Errors
Oracle ORA ErrorsOracle ORA Errors
Oracle ORA Errors
 
How oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 finalHow oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 final
 
Dsi 11g convert_to RAC
Dsi 11g convert_to RACDsi 11g convert_to RAC
Dsi 11g convert_to RAC
 
Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0
 
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
 
ORACLE RAC DBA ONLINE TRAINING
ORACLE RAC DBA ONLINE TRAININGORACLE RAC DBA ONLINE TRAINING
ORACLE RAC DBA ONLINE TRAINING
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
 
Oracle12c flex asm_flexcluster - Y V RAVI KUMAR
Oracle12c flex asm_flexcluster - Y V RAVI KUMAROracle12c flex asm_flexcluster - Y V RAVI KUMAR
Oracle12c flex asm_flexcluster - Y V RAVI KUMAR
 
Rmoug ashmaster
Rmoug ashmasterRmoug ashmaster
Rmoug ashmaster
 
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
 

More from VAMSICHOWDARY61 (10)

les11.pdf
les11.pdfles11.pdf
les11.pdf
 
les09.pdf
les09.pdfles09.pdf
les09.pdf
 
les06.pdf
les06.pdfles06.pdf
les06.pdf
 
001.Oracle RAC Architecture - Real Application Cluster.pdf
001.Oracle RAC Architecture - Real Application Cluster.pdf001.Oracle RAC Architecture - Real Application Cluster.pdf
001.Oracle RAC Architecture - Real Application Cluster.pdf
 
les07.pdf
les07.pdfles07.pdf
les07.pdf
 
les12.pdf
les12.pdfles12.pdf
les12.pdf
 
les10.pdf
les10.pdfles10.pdf
les10.pdf
 
les08.pdf
les08.pdfles08.pdf
les08.pdf
 
les03.pdf
les03.pdfles03.pdf
les03.pdf
 
les01.pdf
les01.pdfles01.pdf
les01.pdf
 

Recently uploaded

ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 

Recently uploaded (20)

ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 

les04.pdf

  • 2. Objectives • After completing this lesson, you should be able to: – Use Enterprise Manager cluster database pages – Define redo log files in a RAC environment – Define undo tablespaces in a RAC environment – Start and stop RAC databases and instances – Modify initialization parameters in a RAC environment – Manage ASM instances in a RAC environment
  • 14. Enterprise Manager Alert History and RAC
  • 16. Redo Log Files and RAC … RAC01.THREAD=1 RAC02.THREAD=2 … SPFILE Shared storage Group 1 Thread 1 Node1 RAC01 Node2 RAC02 Group 2 Group 3 Group 4 Thread 2 Group 5 ALTER DATABASE ADD LOGFILE THREAD 2 GROUP 4; ALTER DATABASE ADD LOGFILE THREAD 2 GROUP 5; ALTER DATABASE ENABLE THREAD 2;
  • 17. Automatic Undo Management and RAC … RAC01.UNDO_TABLESPACE=undotbs3 RAC02.UNDO_TABLESPACE=undotbs2 … ALTER SYSTEM SET UNDO_TABLESPACE=undotbs3 SID='RAC01'; undotbs3 Node1 RAC01 Node2 RAC02 undotbs1 SPFILE undotbs2 Shared storage Transaction recovery Pending offline Consistent reads
  • 18. Starting and Stopping RAC Instances – Multiple instances can open the same database simultaneously. – Shutting down one instance does not interfere with other running instances. – SHUTDOWN TRANSACTIONAL LOCAL does not wait for other instances’ transactions to finish. – RAC instances can be started and stopped by using: • Enterprise Manager • Server Control (SRVCTL) utility • SQL*Plus – Shutting down a RAC database means shutting down all instances accessing the database.
  • 19. Starting and Stopping RAC Instances with SQL*Plus [stc-raclin01] $ echo $ORACLE_SID RACDB1 sqlplus / as sysdba SQL> startup SQL> shutdown [stc-raclin02] $ echo $ORACLE_SID RACDB2 sqlplus / as sysdba SQL> startup SQL> shutdown [stc-raclin01] $sqlplus / as sysdba SQL> startup SQL> shutdown SQL> connect sys/oracle@RACDB2 as sysdba SQL> startup SQL> shutdown OR
  • 20. Starting and Stopping RAC Instances with SRVCTL – start/stop syntax: – Examples: srvctl start|stop instance -d <db_name> -i <inst_name_list> [-o open|mount|nomount|normal|transactional|immediate|abort>] [-c <connect_str> | -q] $ srvctl start instance -d RACDB -i RACDB1,RACDB2 $ srvctl stop instance -d RACDB -i RACDB1,RACDB2 srvctl start|stop database -d <db_name> [-o open|mount|nomount|normal|transactional|immediate|abort>] [-c <connect_str> | -q] $ srvctl start database -d RACDB -o open
  • 21. Switch Between the Automatic and Manual Policies srvctl modify database -d RACB -y MANUAL; $ srvctl config database -d RACB -a ex0044 RACB1 /u01/app/oracle/product/10.2.0/db_1 ex0045 RACB2 /u01/app/oracle/product/10.2.0/db_1 DB_NAME: RACB ORACLE_HOME: /u01/app/oracle/product/10.2.0/db_1 SPFILE: +DGDB/RACB/spfileRACB.ora DOMAIN: null DB_ROLE: null START_OPTIONS: null POLICY: AUTOMATIC ENABLE FLAG: DB ENABLED $
  • 22. RAC Initialization Parameter Files – An SPFILE is created if you use the DBCA. – The SPFILE must be created on a shared volume or shared raw device. – All instances use the same SPFILE. – If the database is created manually, then create an SPFILE from a PFILE. Node1 RAC01 SPFILE SPFILE=… initRAC01.ora Node2 RAC02 SPFILE=… initRAC02.ora
  • 23. SPFILE Parameter Values and RAC – You can change parameter settings using the ALTER SYSTEM SET command from any instance: – SPFILE entries such as: • *.<pname> apply to all instances • <sid>.<pname> apply only to <sid> • <sid>.<pname> takes precedence over *.<pname> – Use current or future *.<dpname> settings for <sid>: – Remove an entry from your SPFILE: ALTER SYSTEM RESET <dpname> SCOPE=SPFILE sid='<sid|*>'; ALTER SYSTEM RESET <dpname> SCOPE=MEMORY sid='<sid>'; ALTER SYSTEM SET <dpname> SCOPE=MEMORY sid='<sid|*>';
  • 24. EM and SPFILE Parameter Values SCOPE=MEMORY
  • 25. EM and SPFILE Parameter Values SCOPE=SPFILE SCOPE=BOTH
  • 27. Parameters That Require Identical Settings – ACTIVE_INSTANCE_COUNT – ARCHIVE_LAG_TARGET – COMPATIBLE – CLUSTER_DATABASE/CLUSTER_DATABASE_INSTANCE – CONTROL_FILES – DB_BLOCK_SIZE – DB_DOMAIN – DB_FILES – DB_NAME – DB_RECOVERY_FILE_DEST/DB_RECOVERY_FILE_DEST_S IZE – DB_UNIQUE_NAME – INSTANCE_TYPE – PARALLEL_MAX_SERVERS – REMOTE_LOGIN_PASSWORD_FILE – MAX_COMMIT_PROPAGATION_DELAY – TRACE_ENABLED – UNDO_MANAGEMENT
  • 28. Parameters That Require Unique Settings • Instance settings: – THREAD – ROLLBACK_SEGMENTS – INSTANCE_NAME – ASM_PREFERRED_READ_FAILURE_GROUPS • INSTANCE_NUMBER • UNDO_TABLESPACE
  • 29. Quiescing RAC Databases – Use the ALTER SYSTEM QUIESCE RESTRICTED statement from a single instance: – The database cannot be opened by other instances after the ALTER SYSTEM QUIESCE… statement starts. – The ALTER SYSTEM QUIESCE RESTRICTED and ALTER SYSTEM UNQUIESCE statements affect all instances in a RAC environment. – Cold backups cannot be taken when the database is in a quiesced state. SQL> ALTER SYSTEM QUIESCE RESTRICTED;
  • 30. Terminating Sessions on a Specific Instance SQL> SELECT SID, SERIAL#, INST_ID 2 FROM GV$SESSION WHERE USERNAME='JFV'; SID SERIAL# INST_ID ---------- ---------- ---------- 140 3340 2 SQL> ALTER SYSTEM KILL SESSION '140,3340,@2'; System altered. SQL> ALTER SYSTEM KILL SESSION '140,3340,@2' * ERROR at line 1: ORA-00031: session marked for kill
  • 31. How SQL*Plus Commands Affect Instances SQL*Plus Command Associated Instance ARCHIVE LOG Generally affects the current instance CONNECT Affects the default instance if no instance is specified in the CONNECT command HOST Affects the node running the SQL*Plus session RECOVER Does not affect any particular instance, but rather the database SHOW PARAMETER and SHOW SGA Show the current instance parameter and SGA information STARTUP and SHUTDOWN Affect the current instance SHOW INSTANCE Displays information about the current instance
  • 32. Node1 Transparent Data Encryption and Wallets in RAC – One wallet shared by all instances on shared storage: • No additional administration required – One copy of the wallet on each local storage: • Local copies need to be synchronized each time master key is changed ALTER SYSTEM SET ENCRYPTION KEY Wallet Master keys Node2 Wallet Master key Noden Wallet Master key Manual copy Manual copy 1 2
  • 33. ASM: General Architecture ASM instance SID=+ASM1 ASM instance SID=+ASM2 ASM disks ASM disks ASM disks ASM disks ASM disks ASM disks ASM disk group Tom ASM disk group Bob ASM disk group Harry DB instance SID=sales1 DB instance SID=test1 DB instance SID=sales2 DB instance SID=test2 ASMB ASMB FG FG FG FG Node2 Node1 Group Services tom=+ASM1 bob=+ASM1 harry=+ASM1 Group Services tom=+ASM2 bob=+ASM2 harry=+ASM2 DBW0 DBW0 DBW0 DBW0 ASMB RBAL RBAL ARB0 ARBA … ARB0 ARBA … ASMB RBAL RBAL RBAL RBAL GMON GMON
  • 34. ASM Instance and Crash Recovery in RAC Disk group A Node2 +ASM2 Node1 +ASM1 Both instances mount disk group Disk group A Node2 +ASM2 Node1 +ASM1 ASM instance failure Disk group A Node2 +ASM2 Node1 Disk group repaired by surviving instance Disk Group A Node2 +ASM2 Node1 +ASM1 Only one instance mounts disk group Disk Group A Node2 +ASM2 Node1 +ASM1 ASM instance failure Disk Group A Node2 +ASM2 Node1 Disk group repaired when next mounted ASM crash recovery ASM instance recovery
  • 35. ASM Instance Initialization Parameters and RAC – CLUSTER_DATABASE: This parameter must be set to TRUE. – ASM_DISKGROUP: • Multiple instances can have different values. • Shared disk groups must be mounted by each ASM instance. – ASM_DISKSTRING: • Multiple instances can have different values. • With shared disk groups, every instance should be able to see the common pool of physical disks. – ASM_POWER_LIMIT: Multiple instances can have different values.
  • 36. ASM and SRVCTL with RAC – SRVCTL enables you to manage ASM from an Oracle Clusterware (OC) perspective: • Add an ASM instance to OC. • Enable an ASM instance for OC automatic restart. • Start up an ASM instance. • Shut down an ASM instance. • Disable an ASM instance from OC automatic restart. • Remove an ASM instance configuration from the OCR. • Get some status information. • Set ASM instance dependency to database instance. – The DBCA allows you to create ASM instances as well as helps you to add and enable them with OC.
  • 37. ASM and SRVCTL with RAC: Examples $ srvctl start asm –n clusnode1 $ srvctl stop asm –n clusnode1 –o immediate $ srvctl add asm -n clusnode1 -i +ASM1 -o /ora/ora10 $ srvctl disable asm –n clusnode1 –i +ASM1 • Start an ASM instance on the specified node: • Stop an ASM instance on the specified node: • Add OCR data about an existing ASM instance: • Disable OC management of an ASM instance: $ srvctl modify instance -d crm -i crm1 -s +asm1
  • 38. ASM Disk Groups with EM in RAC
  • 39. Disk Group Performance Page and RAC
  • 40. Summary • In this lesson, you should have learned how to: – Use Enterprise Manager cluster database pages – Define redo log files in a RAC environment – Define undo tablespaces in a RAC environment – Start and stop RAC databases and instances – Modify initialization parameters in a RAC environment – Manage ASM instances in a RAC environment
  • 41. Practice 4: Overview • This practice covers manipulating redo threads.