This document summarizes the key aspects of configuring and using Oracle Dataguard for disaster recovery. It discusses setting up a physical standby database, monitoring the replication process, and utilizing the standby for tasks like reporting and testing. Switching the primary and standby roles is also covered.
1) The document describes how to configure an Oracle 12c database with a Far Sync standby instance. It involves creating the control file and standby redo logs for the Far Sync instance, configuring the necessary parameters, and starting up the primary and Far Sync instances.
2) Issues arise when the Far Sync instance is shut down, preventing redo logs from being shipped to the physical standby. The document resolves this by configuring an alternate destination to directly ship logs from the primary to the physical standby.
3) When the Far Sync instance starts up again, Oracle Data Guard resynchronizes it and returns to shipping redo through the Far Sync instance to the physical standby, with the alternate destination becoming
Cloug Troubleshooting Oracle 11g Rac 101 Tips And TricksScott Jenner
The document provides an overview of troubleshooting techniques for Oracle 11g Real Application Clusters (RAC). It discusses proactive checks that can be performed to monitor the health of an 11g RAC environment, including verifying the status of RAC processes, the clusterware, and the automatic storage management (ASM). It also covers common 11g RAC problems such as offline clusterware resources, failed vote disks or OCR disks, and node reboot issues. Techniques for root cause analysis of problems are presented, including examining RAC log files.
T3 is an optimized protocol used to transport data between WebLogic Server and other Java programs. WebLogic Server tracks each Java Virtual Machine (JVM) it connects to and creates a single T3 connection to carry all traffic for a JVM. For example, if a client accesses an enterprise bean and JDBC connection pool on WebLogic Server, a single network connection is established between the WebLogic Server JVM and the client JVM.
Oracle 11g Installation With ASM and Data Guard SetupArun Sharma
In this article we will look at Oracle 11g installation with ASM storage and also setup physical standby on ASM.
We will be following below steps for our configuration:
Setup Primary Server
Setup Standby Server
Full article link is here: https://www.support.dbagenesis.com/post/oracle-11g-installation-with-asm-and-data-guard-setup
Francisco Munoz Alvarez will present on advanced RMAN backup and recovery techniques. Key topics include point-in-time recovery using RMAN, RMAN and Oracle Flashback technologies, performance tuning RMAN operations, and database duplication. The presentation will provide examples of using RMAN for incomplete database recovery at a specific point in time, system change number, or log sequence number.
The document provides guidance on different backup and recovery scenarios for both user-managed and RMAN-managed recovery in Oracle databases. It lists 7 user-managed recovery scenarios including recovering a missing system tablespace, non-system tablespace, or datafile. It also covers control file recovery and incomplete recovery up to a point in time or log sequence. For RMAN recovery, it recommends configuring automatic backups and retention policies and describes using RMAN to backup datafiles, control files, and archive logs.
12c database migration from ASM storage to NON-ASM storageMonowar Mukul
1. The document describes the process of migrating a database from ASM to non-ASM storage. This involves taking backups, changing initialization parameters, creating new datafiles and redo logs in non-ASM locations, mounting and opening the database.
2. Key steps include taking an ASM backup, creating a pfile with new datafile and logfile locations, restoring the controlfile, copying datafiles to the new locations, renaming datafiles, and adding new redo logs.
3. After completing these steps, the database is successfully migrated from ASM to non-ASM storage, with the datafiles and redo logs now residing in normal filesystem locations instead of ASM.
The document describes migrating database files from the "+DATA01" disk group to the new "+DATA02" disk group. It involves creating the new disk group, identifying database file locations, copying files to the new disk group using RMAN backups, and switching the database to use the new disk group.
The document provides an overview of the Oracle Database 11g product family, including the Standard Edition, Standard Edition One, and Enterprise Edition. It describes the key features included in each edition. It also outlines several optional features exclusively available for the Enterprise Edition, such as Oracle Active Data Guard, Oracle Advanced Security, Oracle Partitioning, Oracle Real Application Clusters, and various management packs. Finally, it briefly introduces some related Oracle products that can be used to extend the capabilities of the Oracle database, such as Oracle Exadata Storage Server, Oracle Audit Vault, and Oracle Secure Backup.
Installing oracle grid infrastructure and database 12c r1Voeurng Sovann
This document provides instructions for installing Oracle Grid Infrastructure and Oracle Database 12c R1 on a standalone Linux server. It describes how to:
1. Configure the server with required packages, users, groups, and directories for the Oracle software.
2. Install Oracle Grid Infrastructure 12c R1 using the Oracle Universal Installer and configure an ASM disk group and instance.
3. Install Oracle Database 12c R1 software, and use DBCA to create a database called "asmdb" that uses the ASM disk groups for storage and is accessible by the listener called "LISTENER_ASM".
This document describes procedures for quickly adding and deleting nodes and instances on UNIX-based Oracle Real Application Clusters (RAC) databases. It provides procedures for adding an Oracle Clusterware home and Oracle home with RAC to a new node using Oracle Universal Installer (OUI) interactively or silently. It also provides procedures for deleting an Oracle home with RAC and deleting an Oracle Clusterware home from an existing node using OUI. The procedures are presented in a step-by-step format and include notes about environment variables and performing steps in the specified order.
This document describes procedures for quickly adding and deleting nodes and instances on UNIX-based Oracle Real Application Clusters (RAC) databases. It provides procedures for adding an Oracle Clusterware home and Oracle home with RAC to a new node using Oracle Universal Installer (OUI) interactively or silently. It also provides procedures for deleting an Oracle home with RAC and deleting an Oracle Clusterware home from an existing node using OUI. The procedures are presented in a step-by-step format and include notes about environment variables and performing steps in the specified order.
Oracle Data Guard Physical Standby ConfigurationArun Sharma
There are various steps in which you can configure physical standby database. We need to make several changes to the primary database before we can even setup the standby database.
This article applies to Oracle 12c R2 database version
Full link of article is here: https://www.support.dbagenesis.com/post/configure-physical-standby
The document provides information about finding the location of OCR and voting disks in an Oracle RAC environment. It states that the OCR location can be found in the /etc/oracle/ocr.loc file and the voting disk location can be found using the crsctl query css votedisk command. It also provides information on backing up the OCR and voting disks, such as using dd to backup voting disks and ocrconfig to backup and restore OCR.
Fast-start failover enables automatic failovers in Oracle Data Guard environments without data loss or DBA intervention. When enabled, the Data Guard broker determines if a failover is needed and automatically initiates the failover to a pre-specified standby database. Expanded Enterprise Manager monitoring features allow monitoring of cluster interconnects, scalability for large clusters, viewing backup reports for database groups, and identifying cache performance trends. The Server Control Utility has been enhanced to support management of services and Automatic Storage Management instances within Oracle Real Application Clusters environments.
This document discusses various topics related to Oracle Data Guard configurations including:
- Choosing the appropriate protection mode based on bandwidth, latency, and data loss tolerance.
- Performance tuning techniques such as enabling SYNC parallelization in 11g and adjusting redo transport parameters.
- Best practices for role transitions like switchovers and failovers, including using flashback and real-time redo apply.
- Parameters for corruption detection and techniques for automatic block repair using standby databases.
Real Application Clusters (RAC) allow an Oracle database to run across multiple interconnected servers that appear as a single database to users. RAC provides high availability, scalability, and manageability. There are two types of RAC configurations: active/passive where one node is active and the other passive, and active/active where instances run concurrently on both servers and clients can access both. Automatic Storage Management (ASM) is an Oracle technology that manages disk storage for Oracle databases.
Schema replication using oracle golden gate 12cuzzal basak
This document provides instructions for configuring asynchronous schema replication between an Oracle source database and target database using Oracle GoldenGate 12c. It outlines the necessary steps which include:
1. Enabling supplemental logging and archivelog mode on both databases.
2. Installing the GoldenGate software and starting the Manager processes on both systems.
3. Configuring the Extract, Data Pump, and Replicate processes to replicate the BASAK schema and tables from the source PDBORCL to the target PRIPDB database.
4. Starting the Extract, Data Pump, and Replicate jobs to begin the replication process and ensure the BASAK schema and tables are synchronized between the source and target databases.
This document provides step-by-step instructions for creating a physical standby database using Oracle Data Guard. It describes setting up the primary database to enable archiving and configure necessary initialization parameters. It then outlines the process for creating a standby control file, backing up the primary database files, preparing the standby database initialization file, and starting up the physical standby database. The goal is to manually set up a physical standby environment that can take over if the primary database fails.
Administración de base de datos oracle - sesion 2Sefira111
El documento describe los principales componentes de la arquitectura de Oracle, incluyendo procesos como PMON, SMON, DBWn, LGWR, CKPT y ARCn, estructuras de memoria como el SGA (incluyendo el shared pool, database buffer cache y redo log buffer), y archivos de datos y redo logs. Explica el propósito de cada componente para la administración eficiente de una base de datos Oracle.
Administración de base de datos oracle - sesión 4Sefira111
Ejecutar el comando CREATE DATABASE.
Establecer la seguridad de la base de datos mediante la creación de archivos de redo log y de control multiplexados.
Crear un archivo de passwords.
Administracion de base de datos oracle tarea#02Celso
El documento describe las características y ventajas de Oracle Enterprise Manager 11g para la administración de bases de datos Oracle. En 3 oraciones o menos: Oracle Enterprise Manager 11g proporciona automatización para la administración de bases de datos Oracle, permitiendo maximizar el rendimiento y reducir los costos. Incluye funciones como diagnóstico automático de problemas, optimización de compresión de datos y soporte para Exadata. Oracle Enterprise Manager 11g ayuda a los administradores a mejorar la productividad en más de un 200%.
Administración de base de datos oracle - sesion 5Sefira111
Los archivos de control tienen las siguientes características:
Son pequeños y están en formato binario.
Son requeridos al montar la base de datos y para su operación.
Son usados por una sola base de datos.
Deben de ser multiplexados.
Su perdida o corrupción significaría un proceso de recuperación.
V$CONTROLFILE
V$CONTROLFILE_RECORD_SECTION
Vistas que se obtienen de los control files:
V$DATABASE
V$DATAFILE
V$TEMPFILE
V$TABLESPACE
V$LOG
Otros
The document discusses Oracle Database Vault, which provides an integrated security framework to control access to databases based on factors like network, users, privileges, roles, and SQL commands. It achieves separation of duties and prevents misuse of powerful privileges. Database Vault enforces compliance requirements and supports database consolidation while requiring no application changes and having minimal performance impact.
Este documento habla sobre la administración de bases de datos Oracle. Explica que el administrador se encarga de mantener los datos disponibles, seguros y con buen rendimiento. Describe que una instancia Oracle contiene procesos y estructuras de memoria, mientras que la base de datos proporciona el almacenamiento físico. También cubre cómo establecer conexiones y sesiones con una base de datos Oracle.
Los tablespaces en Oracle son espacios de almacenamiento donde se guardan los objetos de la base de datos como tablas e índices. Existen diferentes tipos de tablespaces como los temporales, de solo lectura y de deshacer cambios. Los tablespaces se pueden manipular creando, eliminando o cambiando su tamaño y estado entre online y offline.
Oracle dba interview questions with answerupenpriti
This document contains 10 questions about Oracle DBA interview questions and their answers. It covers topics like components of the SGA, the order in which Oracle processes SQL statements, mandatory datafiles for an Oracle 11g database, and how sessions communicate with the database. The questions test knowledge of Oracle architecture, processes, memory structures, and common administrative tasks.
An Oracle database instance consists of background processes that control one or more databases. A schema is a set of database objects owned by a user that apply to a specific application. Tables store data in rows and columns, and indexes and constraints help maintain data integrity and improve query performance. Database administrators perform tasks like installing and upgrading databases, managing storage, security, backups and high availability.
The document describes a 4 step demo of using Oracle's Database Backup Cloud Service: 1) Subscribe to the cloud service, 2) Install the backup module, 3) Configure RMAN backups, 4) Perform backups to the cloud, simulate data file deletion, restore and recover files from the cloud backup, and open the database. It includes screenshots and code snippets for configuring RMAN, performing backups, restoring and recovering files from the cloud backup service.
This document provides an overview of managing the Oracle database instance. It covers starting and stopping the Oracle database and components using Oracle Enterprise Manager and SQL*Plus. It describes accessing databases with SQL*Plus and modifying initialization parameters. It also discusses the stages of database startup, shutdown options, viewing the alert log, and accessing dynamic performance views.
RMAN has evolved since Oracle 8i and includes new features in Oracle 12c that help reduce downtime. In 12c, a container database can include pluggable databases. RMAN supports backup and recovery of container databases and individual pluggable databases. New features in 12c include the SYSBACKUP privilege which allows backups without granting full SYSDBA privileges, and support for multitenant container databases and pluggable databases.
The document describes how to convert a single instance Oracle database to Oracle Real Application Clusters (RAC) using RMAN. The key steps include:
1. Duplicating the single instance database to an auxiliary instance on the RAC nodes using RMAN DUPLICATE.
2. Configuring the RAC-specific initialization parameters and creating the necessary redo logs and undo tablespaces.
3. Starting instances on each RAC node and registering them with the Cluster Ready Services framework.
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsJohn Kanagaraj
Oracle Database 10g brought in a slew of tuning and performance related tools and indeed a new way of dealing with performance issues. Even though 10g has been around for a while, many DBAs haven’t really used many of the new features, mostly because they are not well known or understood. In this Expert session, we will look past the slick demos of the new tuning and performance related tools and go “under the hood”. Using this knowledge, we will bypass the GUI and look at the views and counters that matter and quickly understand what they are saying. Tools covered include AWR, ADDM, ASH, Metrics, Tuning Advisors and their related views. Much of information about Oracle Database 10g presented in this paper has been adapted from my book and I acknowledge that with gratitude to my publisher - SAMS (Pearson).
The document provides an overview of Oracle Enterprise Manager 12c (OEM12c) with the following key points:
1. It introduces OEM12c and its capabilities for complete cloud lifecycle management including planning, building, testing, deploying, monitoring cloud services.
2. It discusses how to install OEM12c including checking requirements, using the bundle patch, and setting the correct hostname during installation.
3. It covers some common troubleshooting steps like resolving issues with configuration requirements and changing the hostname or IP address.
4. It provides some tips for OEM12c like creating scripts for starting, stopping and checking status, and backing up the admin server configuration.
5.
LVOUG meetup #4 - Case Study 10g to 11gMaris Elsins
My presentation on a case study of 10g to 11g upgrade at LVOUG meetup #4 in 2012. Includes preserving execution plans by exporting them from 10g and importing as SQL Plan Baselines in 11gR2
This document summarizes new features in Oracle 11g Data Guard. Key changes include enabling redo transport compression, active standby for real-time queries, creating snapshot standbys, automatically replacing corrupted blocks, building physical standbys with RMAN, allowing dynamic parameter changes for logical standbys, supporting compressed tables, and applying parallel DDLs in logical standbys.
The document discusses Oracle Data Guard, a disaster recovery solution for Oracle databases. It provides:
1) An overview of Data Guard, explaining that it maintains a physical or logical standby copy of the primary database to enable failover in the event of outages or disasters.
2) Details on the different types of standby databases - physical, logical, and snapshot - and how they are maintained through redo application or SQL application.
3) The various Data Guard configuration options like real-time apply, time delay, and role transitions such as switchover and failover.
The document discusses using Statspack and AWR (Automatic Workload Repository) to analyze SQL performance and identify poorly performing queries. It provides examples of Statspack reports and how to interpret them to find SQL statements that are doing full table scans, experiencing buffer cache misses, or are inefficient due to lack of bind variables. The document also discusses how to identify SQL statements that are causing excessive sorting.
The document provides an introduction to Oracle Data Guard and high availability concepts. It discusses how Data Guard maintains standby databases to protect primary database data from failures, disasters, and errors. It describes different types of standby databases, including physical and logical standby databases, and how redo logs are applied from the primary database to keep the standbys synchronized. Real-time apply is also introduced, which allows for more up-to-date synchronization between databases with faster failover times.
Building tungsten-clusters-with-postgre sql-hot-standby-and-streaming-replica...Command Prompt., Inc
Alex Alexander & Linas Virbalas
Hot standby and streaming replication will move the needle forward for high availability and scaling for a wide number of applications. Tungsten already supports clustering using warm standby. In this talk we will describe how to build clusters using the new PostgreSQL features and give our report from the trenches.
This talk will cover how hot standby and streaming replication work from a user perspective, then dive into a description of how to use them, taking Tungsten as an example. We'll cover the following issues:
* Configuration of warm standby and streaming replication
* Provisioning new standby instances
* Strategies for balancing reads across primary and standby database
* Managing failover
* Troubleshooting and gotchas
Please join us for an enlightening discussion a set of PostgreSQL features that are interesting to a wide range of PostgreSQL users.
IOUG Collaborate 18 - Data Guard for BeginnersPini Dibask
The document discusses Oracle Data Guard, including:
- It provides a high-level overview of Oracle Data Guard and its basic concepts of high availability and disaster recovery.
- It describes the different types of standby databases (physical, logical, snapshot), modes (maximum protection, availability, performance), and options in Data Guard.
- It explains key Data Guard components and architecture like redo transport, apply services, role transitions, and the Data Guard broker.
This document provides an overview and introduction to Oracle Data Guard for beginners. It discusses:
- The different types of standby databases including physical, logical, and snapshot standbys.
- The various modes and options for configuring Data Guard such as real-time apply, time delay, and data protection modes.
- Role transitions including planned switchovers and unplanned failovers.
- How the Data Guard broker can be used to centrally manage Data Guard configurations.
- Some limitations of when Data Guard may not be the best solution.
- Tools for monitoring Data Guard configurations such as database views and monitoring solutions from Quest Software.
Project management Course in Australia.pptxdeathreaper9
Project Management Course
Over the past few decades, organisations have discovered something incredible: the principles that lead to great success on large projects can be applied to projects of any size to achieve extraordinary success. As a result, many employees are expected to be familiar with project management techniques and how they apply them to projects.
https://projectmanagementcoursesonline.au/
Connecting Attitudes and Social Influences with Designs for Usable Security a...Cori Faklaris
Many system designs for cybersecurity and privacy have failed to account for individual and social circumstances, leading people to use workarounds such as password reuse or account sharing that can lead to vulnerabilities. To address the problem, researchers are building new understandings of how individuals’ attitudes and behaviors are influenced by the people around them and by their relationship needs, so that designers can take these into account. In this talk, I will first share my research to connect people’s security attitudes and social influences with their security and privacy behaviors. As part of this, I will present the Security and Privacy Acceptance Framework (SPAF), which identifies Awareness, Motivation, and Ability as necessary for strengthening people’s acceptance of security and privacy practices. I then will present results from my project to trace where social influences can help overcome obstacles to adoption such as negative attitudes or inability to troubleshoot a password manager. I will conclude by discussing my current work to apply these insights to mitigating phishing in SMS text messages (“smishing”).
The Challenge of Interpretability in Generative AI Models.pdfSara Kroft
Navigating the intricacies of generative AI models reveals a pressing challenge: interpretability. Our blog delves into the complexities of understanding how these advanced models make decisions, shedding light on the mechanisms behind their outputs. Explore the latest research, practical implications, and ethical considerations, as we unravel the opaque processes that drive generative AI. Join us in this insightful journey to demystify the black box of artificial intelligence.
Dive into the complexities of generative AI with our blog on interpretability. Find out why making AI models understandable is key to trust and ethical use and discover current efforts to tackle this big challenge.
Securiport Gambia is a civil aviation and intelligent immigration solutions provider founded in 2001. The company was created to address security needs unique to today’s age of advanced technology and security threats. Securiport Gambia partners with governments, coming alongside their border security to create and implement the right solutions.
Project Delivery Methodology on a page with activities, deliverablesCLIVE MINCHIN
I've not found a 1 pager like this anywhere so I created it based on my experiences. This 1 pager details a waterfall style project methodology with defined phases, activities, deliverables, assumptions. There's nothing in here that conflicts with commonsense.
Lecture 8 of the IVE 2024 short course on the Pscyhology of XR.
This lecture introduced the basics of Electroencephalography (EEG).
It was taught by Ina and Matthias Schlesewsky on July 16th 2024 at the University of South Australia.
IT market in Israel, economic background, forecasts of 160 categories and the infrastructure and software products in those categories, professional services also. 710 vendors are ranked in 160 categories.
Welcome to our third live UiPath Community Day Amsterdam! Come join us for a half-day of networking and UiPath Platform deep-dives, for devs and non-devs alike, in the middle of summer ☀.
📕 Agenda:
12:30 Welcome Coffee/Light Lunch ☕
13:00 Event opening speech
Ebert Knol, Managing Partner, Tacstone Technology
Jonathan Smith, UiPath MVP, RPA Lead, Ciphix
Cristina Vidu, Senior Marketing Manager, UiPath Community EMEA
Dion Mes, Principal Sales Engineer, UiPath
13:15 ASML: RPA as Tactical Automation
Tactical robotic process automation for solving short-term challenges, while establishing standard and re-usable interfaces that fit IT's long-term goals and objectives.
Yannic Suurmeijer, System Architect, ASML
13:30 PostNL: an insight into RPA at PostNL
Showcasing the solutions our automations have provided, the challenges we’ve faced, and the best practices we’ve developed to support our logistics operations.
Leonard Renne, RPA Developer, PostNL
13:45 Break (30')
14:15 Breakout Sessions: Round 1
Modern Document Understanding in the cloud platform: AI-driven UiPath Document Understanding
Mike Bos, Senior Automation Developer, Tacstone Technology
Process Orchestration: scale up and have your Robots work in harmony
Jon Smith, UiPath MVP, RPA Lead, Ciphix
UiPath Integration Service: connect applications, leverage prebuilt connectors, and set up customer connectors
Johans Brink, CTO, MvR digital workforce
15:00 Breakout Sessions: Round 2
Automation, and GenAI: practical use cases for value generation
Thomas Janssen, UiPath MVP, Senior Automation Developer, Automation Heroes
Human in the Loop/Action Center
Dion Mes, Principal Sales Engineer @UiPath
Improving development with coded workflows
Idris Janszen, Technical Consultant, Ilionx
15:45 End remarks
16:00 Community fun games, sharing knowledge, drinks, and bites 🍻
Using ScyllaDB for Real-Time Write-Heavy WorkloadsScyllaDB
Keeping latencies low for highly concurrent, intensive data ingestion
ScyllaDB’s “sweet spot” is workloads over 50K operations per second that require predictably low (e.g., single-digit millisecond) latency. And its unique architecture makes it particularly valuable for the real-time write-heavy workloads such as those commonly found in IoT, logging systems, real-time analytics, and order processing.
Join ScyllaDB technical director Felipe Cardeneti Mendes and principal field engineer, Lubos Kosco to learn about:
- Common challenges that arise with real-time write-heavy workloads
- The tradeoffs teams face and tips for negotiating them
- ScyllaDB architectural elements that support real-time write-heavy workloads
- How your peers are using ScyllaDB with similar workloads
Increase Quality with User Access Policies - July 2024Peter Caitens
⭐️ Increase Quality with User Access Policies ⭐️, presented by Peter Caitens and Adam Best of Salesforce. View the slides from this session to hear all about “User Access Policies” and how they can help you onboard users faster with greater quality.
Planetek Italia is an Italian Benefit Company established in 1994, which employs 120+ women and men, passionate and skilled in Geoinformatics, Space solutions, and Earth science.
We provide solutions to exploit the value of geospatial data through all phases of data life cycle. We operate in many application areas ranging from environmental and land monitoring to open-government and smart cities, and including defence and security, as well as Space exploration and EO satellite missions.
3. Introduction The Motivation Dataguard Architecture & Features Creating a Physical Standby Maintaining your standby Using your Standby Performing a Switchover AGENDA
5. About Me Introduction Jason Arneil System Administrator/DBA Using Oracle since 1998 At Nominet since 2001
6. About Nominet Introduction Nominet is the internet registry for .uk domain names Nominet has been in existence for over 11 years Nominet is run as a not-for-profit company Nominet is owned by its members There are over 6 Million .uk domain names
7. Why Dataguard Motivation Big push on a Nominet Business Continuity Plan Dataguard is the Oracle solution for disaster recovery Physical Standby was the obvious option Maximum Availability Architecture (MAA)
10. Dataguard Features Architecture & Features Several Protection Modes Maximum Protection Maximum Availability Maximum Performance Several Transport Modes LGWR SYNC LGWR ASYNC ARCH
11. Prepare Primary & Standby Creating a Standby Prepare Primary Database Enable Force Logging SQL> alter database force logging; Modify initialization parameters Prepare Standby Database Setup directory structure Create spfile with correct parameters Start database in nomount
12. Log Transport Parameters Creating a Standby LOG_ARCHIVE_CONFIG='DG_CONFIG=(PRIMARY, STANDBY)' LOG_ARCHIVE_DEST_1='LOCATION=/var/oracle/PRIMARY/arch' LOG_ARCHIVE_DEST_2='SERVICE=PRIMARC DB_UNIQUE_NAME=PRIMARY' LOG_ARCHIVE_DEST_3='SERVICE=STANDBY LGWR ASYNC REOPEN=15 MAX_FAILURE=10 OPTIONAL VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY'
13. ssh tunnels Creating a Standby You may not wish your redo data being sent unencrypted across the internet to your standby. You can use ssh tunnels to avoid this ssh -N -L 3333:standby:1521 oracle@standby Now the tnsnames entry points to the localhost STANDBYARC = (DESCRIPTION = (SDU = 32767) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT=3333))) (CONNECT_DATA = (SERVICE_NAME = STANDBY)))
14. Some Other Parameters Creating a Standby FAL_SERVER FAL_CLIENT ARCHIVE_LAG_TARGET STANDBY_FILE_MANAGEMENT DB_FILE_NAME_CONVERT LOG_FILE_NAME_CONVERT
15. backup your primary Creating a Standby Backup primary - rman is good rman> backup format '/backup/%U' database plus archivelog; rman> backup format '/backup/%U' current controlfile for standby; Recover backup on standby node I like using rman duplicate to create standby: (oracle$) rman target sys/password@PRIMARY auxiliary / rman> duplicate target database for standby;
16. Start applying redo Creating a Standby Create standby redo log files on both primary and standby: sql> alter database add standby logfile thread 2 group 42 (’PATH_TO_DATA/standbyredo01.log') size 512M; Now you can start the physical standby recovering logs: sql>alter database recover managed standby database disconnect from session; Or if you prefer real time apply: sql>alter database recover managed standby database using current logfile disconnect from session;
17. Monitoring the Standby Maintaining your standby You have to ensure your standby is keeping up with your primary You can check which was the last log to have been applied to your standby is sql> SELECT MAX(SEQUENCE#), THREAD# FROM V$ARCHIVED_LOG where APPLIED='YES' GROUP BY THREAD#; MAX(SEQUENCE#) THREAD# -------------- ---------- 2976 1 1888 2
18. Monitoring Standby Progress Maintaining your standby A good way of checking what the background processes of your standby are up to is using v$managed_standby SQL> select process, sequence#, status from V$managed_standby; PROCESS SEQUENCE# STATUS -------- ---------- ------------ ARCH 2967 CLOSING ARCH 2974 CLOSING RFS 2977 IDLE MRP0 1889 APPLYING_LOG RFS 1889 IDLE RFS 2977 IDLE
19. Monitoring Your Standby Maintaining your standby You have to ensure your standby is keeping up with your primary V$DATAGUARD_STATS provides useful information SQL> select name, value from v$dataguard_stats; NAME VALUE -------------------------------- ------------------------------------ apply finish time +00 00:00:00 apply lag +00 00:00:11 estimated startup time 41 standby has been open N transport lag +00 00:00:03
20. Monitoring Your Standby Maintaining your standby A way of finding out what has been happening to your standby over a period time is to look at the v$dataguard_status view Log Apply Services 01-AUG-07 Media Recovery Waiting for thread 1 sequence 2977 (in transit) Log Apply Services 01-AUG-07 Media Recovery Waiting for thread 1 sequence 2977 (in transit) Log Apply Services 01-AUG-07 Media Recovery Waiting for thread 2 sequence 1889 (in transit) Remote File Server 01-AUG-07 Primary database is in MAXIMUM PERFORMANCE mode Remote File Server 01-AUG-07 RFS[53]: Successfully opened standby log 14: '+DATA2/standby/standbyredo02.log'
21. Oracle can’t divide by 0 Maintaining your standby Standby was happily working away ORA-07445: exception encountered: core dump [kcrarmb()+152] [SIGFPE] [Integer divide by zero] [0x00085C300 MRP process crashes No redo gets applied from this point Logs after the one that caused the ORA-07445 still being shipped A simple restart of the managed recovery process does a FAL and the standby is back up-to-date
22. kcrfr_resize2 Maintaining your standby Lots of problems after upgrade to 10.2.0.3 Recovery of Online Redo Log: Thread 2 Group 23 Seq 999 Reading mem 0 Mem# 0: +DATA3/standby/standbyredo11.log ORA-00600: internal error code, arguments: [kcrfr_resize2], [652614828032], [268423168], [], [], [], [], [] Perhaps caused by the following: Bug 3306010 OERI[kcrfr_resize2] possible in MEDIA recovery Media recovery may fail with ORA-600 [kcrfr_resize2] when the number of redo strands is set to a high value using log_parallelism.
23. kcrfr_resize2 Maintaining your standby This issue has recently been published as Note:453259.1 Triggered by having a large log_buffer This bug affects 10.2.0.3 and potentially 9.2.0.8 It is related to the size of the log_buffer parameter Fix is included in 10.2.0.4
24. kcrrupirfs Maintaining your standby ARC processes died on primary: ORA-00600: [kcrrupirfs.20] [4] [368] Trace file showed the following: Corrupt redo block 479421 detected: bad block number Flag: 0x0 Format: 0x0 Block: 0x00000000 Seq: 0x00000000 Beg: 0x0 Cks:0x0 <<<<<<<-- ----- Dump of Corrupt Redo Buffer -----000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
25. kcrrupirfs Maintaining your standby Oracle think initially think this ORA-600 error was hardware related There are NO indications of any hardware fault - the primary keeps running After a couple of weeks it was decided this was a “bug situation” This was bug 4767278 which talked about FAL not being able to read from multiple mirror sides when encountering invalid/stale redo in a file. Apparently required for ASM configurations because ASM does not guarantee all mirror sides contain same data after writing. We were using ASM, but external redundancy Oracle then said “The ASM group is not 100% sure if the patch 4767278 will fix the problem”
26. log corruption Maintaining your standby The Managed Recovery process crashed complaining about log corruption MRP0: Background Media Recovery terminated with error 355 ORA-00355: change numbers out of order ORA-00353: log corruption near block 2 change 1273622545 time 03/06/2007 08:32:46 ORA-00312: online log 13 thread 1: '+DATA2/standby/standbyredo01.log' Oracle blame the upgrade process at first. They suggest rebuilding the standby Then I notice that trying managed recovery rather than real time apply seems to allow the standby to progress
27. log corruption Maintaining your standby At this point Oracle say “it looks like a bug” Lots of time spent diagnosing the issue ALTER SYSTEM DUMP LOGFILE '+DATA2/nom/standby33.log' scn min 865465290 scn max 865465300; Eventually Oracle produced a patch 5746174 MRP HANGS WITH ASYNC LNS AND PARALLEL ARCHIVAL
28. Utilize those cpu cycles Using Your Standby A Standby can be considered an insurance policy Several ways to utilize your standby Run your backups from your standby Open your standby read only for reporting Flashback standby to look at old data Open your standby read write for testing purposes
29. Open for Reports Using Your Standby You need to cancel managed recovery sql> alter database recover managed standby database cancel; Then simply open the standby sql> alter database open; Redo is still transported to your standby To transition back to applying redo shutdown the open standby, startup mount and restart the recovery process
30. Open for read write Using Your Standby You must have flashback database enabled for this Stop redo apply on standby Create a restore point Activate the Standby & perform read/write testing Flashback to restore point Start the redo on the Standby again
31. Open for read write Using Your Standby Physical Standby Physical Standby read write Restore Point Flashback Database Activate standby
32. Flashback Database in a Nutshell Using Your Standby Set up Flashback Database alter system set db_recovery_file_dest_size = 8G; alter system set db_recovery_file_dest = 'your flashback destination'; alter system set db_flashback_retention_target = 1440 ; alter database flashback on; Once you have cancelled the standby recovery create a guaranteed restore point create guaranteed restore point before_activate;
33. Open for read write Using Your Standby Activate your Standby SQL> ALTER DATABASE ACTIVATE STANDBY DATABASE; You can open the Standby for business SQL> ALTER DATABASE OPEN; To become a Standby again shutdown and startup in mount SQL> FLASHBACK DATABASE TO RESTORE POINT BEFORE_ACTIVATE; SQL> ALTER DATABASE CONVERT TO PHYSICAL STANDBY;
34. Open for read write Using Your Standby However things never go according to plan ORA-00600: internal error code, arguments: [3705], [1], [8], [3], [8], [], [] This was bug 4479323 which is a bug with recovery (not standby specific) and only occurs in a RAC environment This is fixed in 10.2.0.3
35. It’s good to test Doing a Switchover A business continuity plan is no good unless it’s been tested It’s not all about the database Good to think in terms of services
36. Database Switchover Doing a Switchover Make sure your standby is up-to-date Check your primary database switchover status: primary> SELECT SWITCHOVER_STATUS FROM V$DATABASE; Switchover primary database primary> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY with session shutdown; Switchover the standby standby> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY with session shutdown;
37. DNS Primer Doing a switchover DNS allows translation from hostname to IP address example.co.uk IN A 162.0.0.1 Our principle is all services are accessed through a CNAME anexample.co.uk 5M IN CNAME example.co.uk relocation of the service is just a case of changing where the CNAME points
38. Conclusion Conclusion Dataguard is an efficient DR solution for your primary database Dataguard is mostly reliable but is not without it’s blips There are opportunities for gaining added value from your standby You can’t test your Business continuity plan enough