Posts

Showing posts with the label Oracle DBA

Recovery Point Objective(RPO) and Recovery Time Objective(RTO)

RPO and RTO in Oracle Data Guard 1. Recovery Point Objective (RPO) What it is: RPO is about how much data loss you can tolerate if your primary database crashes. More precisely, it’s the maximum acceptable amount of time between your last backup (or last synchronized data) and the failure. In Oracle Data Guard terms: RPO means how far behind your standby database can lag before it’s no longer acceptable. It’s the "point in time" to which you can recover data after a failure. Example: Suppose you set your RPO as 5 minutes . If the primary database crashes, you accept that you might lose up to 5 minutes of data changes. Your standby must be kept synchronized enough so that, in case of failover, it won’t be more than 5 minutes behind the primary. 2. Recovery Time Objective (RTO) What it is: RTO is the maximum acceptable time to restore the database and get it up and running after a failure. In Oracle Data Guard terms: It’s the time between the failure ...

Automating DBA Tasks with Oracle GoldenGate - Part 2

Automating DBA Tasks with Oracle GoldenGate In this post, we will explore how to automate DBA jobs with Goldengate. If you're reading this directly, I recommend checking out Part 1 first to understand how it works. If you've already read Part 1, feel free to continue from here! Or you are already familiar with goldengate you are good enough to continue. Steps to Automate User Management in Goldengate Configure Goldengate parameters and place the required shell and SQL scripts. Add the necessary input into GG_USERMGMT_TB, such as the username, database name, and granted roles. Verify that the user has been successfully created in the database. This setup is sufficient to bring your bright idea to life using your environment. Here, the E_E01_1 extract acts as the master process to automate DBA job user management operations. I have two databases, orclpdb01 and orclpdb02, with the master extract process configured and running on or...

Automating DBA Tasks with Oracle GoldenGate - Part 1

Automating DBA Tasks with Oracle GoldenGate Oracle GoldenGate is widely recognized as one of the best tools for real-time data replication. It allows seamless database migrations, schema or table replication across homogeneous and heterogeneous environments, and enhances database performance by offloading reporting workloads. Additionally, it ensures high availability by enables Bi-directional or cascading database replication configurations. Beyond these well-known benefits, GoldenGate can also be leveraged for automating routine DBA tasks, reducing manual intervention and improving efficiency by Streamline Your DBA Tasks with EVENTACTIONS. Let's explore how you can leverage its EVENTACTIONS parameter to automate routine DBA tasks, reduce manual effort, and optimize workflows. In this post, I will demonstrate how GoldenGate can assist in automating key DBA operations, such as: Starting or stopping GoldenGate processes – Automate the m...

Goldengate introduction part-1

Image
What is Oracle GoldenGate? It is an application that provides real-time data integration, data replication, transactional change data capture, data transformations, high availability solutions, and verification between operational and analytical enterprise systems.With Oracle GoldenGate, you can move committed transactions across multiple systems in your enterprise over a secure or non-secure configuration. It supports a wide range of databases and data sources, providing replication between same types or between heterogeneous databases. For example, you could replicate between an Oracle Autonomous Database instance and an Oracle Database instance, or between two Oracle Database instances set up as source and target, or a two-way replication between MySQL database and Oracle Database instances. In addition, you can replicate to Java Messaging Queues, flat files, and to Big Data in combination with Oracle GoldenGate for Big Data. When Do You Use Oracle GoldenGate? Oracle GoldenGate...

Interview Questions - Oracle Data Guard - 2

1) What is a Redo Transport Service in Oracle Data Guard? The Redo Transport Service is responsible for transmitting redo data from the primary database to the standby database. It ensures that changes made to the primary database are replicated to the standby database, keeping them synchronized. The two modes of redo transport are synchronous and asynchronous. 2) How is log transport initiated from the Primary to Standby database?    Log transport from the Primary to Standby database in Oracle Data Guard is initiated through a series of steps and mechanisms that ensure the redo data (changes made to the database) is reliably transmitted and applied to the standby database. Here’s how the process works: A) Redo Generation:    As transactions are committed on the primary database, redo entries are generated and written to the online redo log files. B) Log Writer Process (LGWR):    The Log Writer process is responsible for writing redo entries from the redo l...

Interview Questions - Oracle Data Guard - 1

Image
 1. What is Oracle Data Guard? Oracle Data Guard is a high-availability and disaster recovery solution provided by Oracle Corporation for Oracle databases. It is designed to ensure data availability, integrity, and reliability by maintaining a synchronized copy of a primary database at one or more remote standby databases. 2. Explain the purpose of Oracle Data Guard. Oracle Data Guard is a high-availability, disaster recovery, and data  protection solution for Oracle databases. Its primary purposes are: 1. Data Protection: Data Guard ensures that data is consistently  and accurately replicated from a primary database to one or  more standby databases. This replication helps protect against  data loss due to hardware failures, human errors, or other  unexpected disruptions. 2. High Availability: By maintaining standby databases that can  take over in the event of a primary database failure, Data Guard  helps ensure that database services are contin...

Enhanced Guide on Importing Oracle Meta Notes

Assistant: Download Reference for Oracle Database/GI Update, Revision, PSU, SPU(CPU), Bundle Patches, Patchsets and Base Releases (Doc ID 2118136.2) Primary Note for Oracle GoldenGate Core Product Patch Sets (Doc ID 1645495.1) Primary Note for Database Proactive Patch Program (Doc ID 888.1) Troubleshoot Grid Infrastructure Startup Issues in 12.1.0.2 and Higher (Doc ID 2801511.1) Oracle Database Advisor Webcast Schedule and Archive recordings (Doc ID 1456176.1) Creating a Physical Standby database using RMAN restore the database from service (Doc ID 2283978.1) How to Roll Forward a Standby Database Using Recover Database From Service (Doc ID 2850185.1) Making Use Deferred PDB Recovery and the STANDBYS=NONE Feature with Oracle Multitenant (Doc ID 1916648.1) Roll Forward Physical Standby Using RMAN Incremental Backup in Single Command (Doc ID 2431311.1) 12c How to Roll Forward a Standby Database Using Recover Database From Service (Doc ID 2850185.1)Dataguard F...

Mail server configuration on RHEL using gmail

Copy Code yum -y install postfix cyrus-sasl-plain mailx vi /etc/postfix/main.cf # Add below detail in bottom of main.cf file relayhost = [smtp.gmail.com]:587 smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous vi /etc/postfix/sasl_passwd [smtp.gmail.com]:587 alertmailacc@gmail.com:app_password < How to Generate App Password > chmod 600 /etc/postfix/sasl_passwd postmap /etc/postfix/sasl_passwd systemctl restart postfix

Oracle session

As a Database Administrator (DBA), one of the most common troubleshooting activities requested is to identify and analyze the running processes on a database. This typically involves checking the status of sessions to determine whether they are active or inactive. To perform this task, a DBA would typically use monitoring tools or query the system catalog views to retrieve information about active sessions and the associated processes. They would then analyze the data to identify any issues or performance bottlenecks, such as long-running queries or blocked processes. In addition to monitoring active sessions, a DBA may also need to identify inactive sessions or processes that are consuming resources without performing any useful work. This could be a sign of a poorly designed application or a resource-intensive query that is consuming excessive CPU or memory. Overall, the goal of...