Oracle Dataguard background process, log apply service internals

Dataguard Background process:
1.       Logwriter process
2.       Archiver process
3.       Logwriter network server (LNS)
4.       Fetch archive logs (FAL) For client server mechanism
5.       Remote file server
6.       Managed recovery process for physical standby
7.       Logical standby process for logical standby
8.       Data guard broker monitor (DMON) – If incase dg broker enabled

Apply services at High Level-          Data guard apply services comprises of two parts
o   Redo Apply for physical standby
o   Sql Apply for logical standby

-        The Physical standby and logical standby databases utilize the same redo transport and role management services, only apply service is different.

Redo apply: A physical standby database applies redo data received from the primary database using oracle media recovery process.
  1.    Redo applies uses a specialized process called the managed recovery process.
  2.   As the RFS process is writing redo data to standby redo logs (SRL’s). MRP process reads the redo data and applies it to the physical standby database.
  3.    MRP is started in the physical standby database by mounting the database using below command.
-          Sql > alter database recover managed standby database using current logfile disconnect from the session;

Sql Apply: Sql apply uses a collection of background process that perform the task of applying changes from the primary database to the logical standby database.

 Logical standby database:
  • -          Logical standby database contains the same logical information at standby DB.
  • -          Physical organization and structure of the data can be different.
  • -          Synchronization with the primary database through sql apply.
  • -          Can be used for queries and reporting at any time.

-         Service to be involved for logical standby : Log transport services, Log apply services

Log Transport services:  Transmit the redo data from the primary database to standby. Enforce the data protection modes.

Log apply services: Automatically apply the archived redo logs on the standby database. Maintains transitional synchronization with primary database. Allows transitionally consistent read-only access to the data.

What are the Oracle Database upgradation method’s?


What is database upgradation:

Database upgradation means moving existing version of database to higher release version. In the process of upgradation of database dictionary compatible with a newer oracle database version. Below actions has included in the part of upgrading.
  1.        Adding, dropping, or modifying columns in system tables and views.
  2.        Creating new system packages or procedures.
  3.        Modifying existing system packages or procedures.
  4.        Creating, modifying, or dropping database users, roles, and privileges.
  5.        Modifying seed data that is used by Oracle database components.
     Why go for upgradation:

    There are numerous features releasing in oracle version by version. Those newly released features will simplifying the DBA tasks and time.

Database upgradation methods:
  1.        DBUA and command line
  2.        Transportable tablespace or Full Transportable Export/Import
  3.        Oracle Datapump Export / Import
  4.        Traditional export and import methods.
For upgradation of from lower version to higher, must verify the Database upgrade compatibility matrix and fall back strategy.

Database upgrade/downgrade compatibility matrix Doc ID 551141.1
  • Prerequisites for the database upgradation / check lists:
  • Cleanup: Purge the recycle bin, check the invalid and duplicate objects in SYS and SYSTEM users.
  • Components: Check for mandatory, invalid components and remove the obsolete components.
  • Check the materialized views: Verify the all materialized view status, refresh in-case any materialized views that are not fresh.
  • Create baseline: Preserve the performance statistics.
  • Backup: Take the full backup of database, binaries backup.
  • Dictionary statistics: Gather the dictionary statistics, it fasts the upgradation and reduce downtime.
  • Time zone:  Verify the source database timezone and target database timezone, if source database timezone is higher version of target apply the timezone patch to match the source and target databases.
Note: Must be empty the recycle bin during the upgrade process to avoid possible ORA-00600 errors, and to minimize the upgrade time.

What are the requirements for Oracle RAC / Grid 11g, 12c installation

What is Cluster, requirements to build cluster database.

Oracle clusterware enables one or more than servers into single unit and communicate each other. Oracle cluster manages the resources such as server names, VIP’s, private IP’s, Public IP’s, scan IP’s, databases, listeners, instances, services and so on, and these resources doesn’t allow to modify. For example resources names like as ora.host_name.resource_name.

Hardware requirements for the Oracle RAC
Hardware components (Servers) of the clusterware is similar. However, a server is part of the cluster requires second network to communicate each other, this second network is called as the interconnect. This interconnect network is a private network using a switch that only the nodes in the cluster can access.
Note: Oracle doesn’t support using cross cables as clusterware interconnects.
1.       At least two network interfaces to the public network.
2.       At least two network interfaces to the private interconnect network.

 Storage requirements for the Oracle Clusterware / Grid infrastructure:
The clusterware servers required common shared storage (cluster-aware storage) mounted in all servers. Oracle clusterware supports NFS, iSCSI, DAS, NAS and SAN storage's.

Oracle RAC/Grid Components:
OCR
Voting Disk
OLR

Networking Configurations:
Scan IP’s
Public IP’s
Private IP’s
Virtual IP’s

Oracle Clusterware Stack:

1.       Cluster ready services Stack
2.       Oracle high availability services stack

Cluster Ready Services Stack:

1.       Cluster Ready Services (CRS)
2.       Cluster Synchronization Services (CSS)
3.       Oracle ASM
4.       Cluster Time Synchronization Service
5.       Event Management (EVM)
6.       Oracle Notification Service (ONS)
7.       Oracle Agent (oraagent)
8.       Oracle Root Agent (orarootagent)

Oracle High Availability Service Stack:

1.       Cluster Logger service (ologgerd)
2.       System Monitor Service (osysmond)
3.       Grid Plug and Play (GPNPD)
4.       Grid interprocess Communication (GIPC)
5.       Multicast Domain Name Service (mDNS)
6.       Oracle Grid Naming Service (GNS)