Oracle Data Guard Switchover and Switchback Manual

Summary Switchover: Switchover in Oracle Data Guard is a planned role transition between primary and standby databases without data loss or downtime. It is used for maintenance, testing, or planned failover. After switchover, the standby becomes the primary and the original primary becomes the standby. Switchback: Switchback is the reverse process of switchover, restoring the original primary as the primary database. It involves coordinated role changes ensuring no data loss and maintaining synchronization between databases. ...

October 6, 2025 · 410 words · kidtz

Upgrade In-place AVDF 20.12 to 20.15

Summary This runbook provides a clear and ordered sequence for upgrading Oracle Audit Vault & Database Firewall (AVDF) from 20.12 to 20.15. It covers: Preparing the environment and downloads. Performing pre-checks. Upgrading AVS in HA mode (standby first, then primary). Post-upgrade steps for AVS including password hardening. Verifying agent upgrades. Upgrading Database Firewall nodes, handling certificates, and re-registering if needed. Applying post-upgrade hardening patch and optional kernel cleanup. Final validation with pre/post comparisons and useful monitoring commands. Following this guide ensures minimal downtime, verified HA functionality, and secured configuration after the upgrade. ...

September 24, 2025 · 455 words · kidtz

Oracle Data Guard in RAC

Summary This guide provides a structured procedure for configuring Oracle Data Guard in a Real Application Clusters (RAC) environment. It includes prerequisites, database and parameter setup, listener and network configuration, preparing the standby instance (with pfile details), enabling managed recovery, and final verification. Following these steps ensures a robust disaster recovery solution with synchronized primary and standby databases. Reference Oracle Doc ID: 2283978.1 1. Prerequisites On both servers: select name, open_mode, log_mode from v$database; archive log list; startup mount; alter database archivelog; alter database force logging; alter database open; show parameter db_reco; ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=5G SCOPE=BOTH SID='*'; ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='+RECO01' SCOPE=BOTH SID='*'; alter database flashback on; 2. Configure Parameter Data Guard (Primary) ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='DG_CONFIG=(dbsiha,dbsihadrc)' SCOPE=BOTH SID='*'; ALTER SYSTEM SET LOG_ARCHIVE_DEST_1='LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=DBSIHA' SCOPE=BOTH SID='*'; ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=dbsihadrc ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=dbsihadrc' SCOPE=BOTH SID='*'; ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ENABLE SCOPE=BOTH SID='*'; ALTER SYSTEM SET FAL_SERVER=dbsihadrc SCOPE=BOTH SID='*'; ALTER SYSTEM SET FAL_CLIENT=dbsiha SCOPE=BOTH SID='*'; ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT=AUTO scope=both sid='*'; add standby redo logs: ...

September 24, 2025 · 599 words · kidtz

Edb Cluster Setup with EFM failover manager

Prerequsite: edb installed efm installed configuration cluster open port 7800,7809 between node Step configure: install efm , get repo repo: curl -1sSLf 'https://downloads.enterprisedb.com/gmwxCGUaP97Ygbc4eQB7x8mo7kSVzT9I/enterprise/setup.rpm.sh' | sudo -E bash install efm tools sudo dnf -y install edb-efm47 Prereq before cluster on edb master Create User Replicator for Replication Role only su - enterprisedb psql edb create user replicator with replication encrypted password 'P@ssw0rd'; Change postgresql.conf parameter vi "/pgdata/postgresql.conf" cat "/pgdata/postgresql.conf" | grep -i listen_addresses listen_addresses = '*' # what IP address(es) to listen on; Change pg_hba.conf parameter cat "/pgdata/pg_hba.conf" | grep -i replicator host replication replicator 192.168.200.113/32 trust host replication replicator 192.168.200.114/32 trust Restart edb-as-15 service systemctl stop edb-as-15 systemctl start edb-as-15 systemctl status edb-as-15 Check replication master status (After Slaves Configured) ...

February 17, 2025 · 3 min · 448 words · kidtz

Edb Postgres Installation

Get repor from EDB here Select platform and verison edb platform: version edb: Then will show step how to installation Run script in the terminal Get repo auto: curl -1sSLf 'https://downloads.enterprisedb.com/gmwxCGUaP97Ygbc4eQB7x8mo7kSVzT9I/enterprise/setup.rpm.sh' | sudo -E bash install edb sudo dnf -y install edb-as15-server create /pgadata for data directory mkdir /pgdata chown enterprisedb:enterprisedb /pgdata initiate EDB database su - enterprisedb /usr/edb/as15/bin/initdb -D /pgdata Change edb-as-15.service parameter cd /lib/systemd/system vi /lib/systemd/system/edb-as-15.service type this: vi edb-as-15.service; cat edb-as-15.service # It's not recommended to modify this file in-place, because it will be # overwritten during package upgrades. If you want to customize, the # best way is to create a file "/etc/systemd/system/edb-as-15.service", # containing # .include /lib/systemd/system/edb-as-15.service # ...make your changes here... # For more info about custom unit files, see PT ANTAM Tbk-Instalasi EDB Advanced Server 15 19 # http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_cust om_unit_file.3F # Note: changing PGDATA will typically require adjusting SELinux # configuration as well. [Unit] Description=EDB Postgres Advanced Server 15 After=syslog.target network.target [Service] Type=notify User=enterprisedb Group=enterprisedb # Location of database directory #Environment=PGDATA=/var/lib/edb/as15/data #PIDFile=/var/lib/edb/as15/data/postmaster.pid Environment=PGDATA=/pgdata PIDFile=/pgdata/postmaster.pid # Where to send early-startup messages from the server (before the logging # options of postgresql.conf take effect) # This is normally controlled by the global default set by systemd # StandardOutput=syslog # Disable OOM kill on the postmaster OOMScoreAdjust=-1000 ExecStartPre=/usr/edb/as15/bin/edb-as-15-check-db-dir ${PGDATA} ExecStart=/usr/edb/as15/bin/edb-postgres -D ${PGDATA} ExecReload=/bin/kill -HUP $MAINPID KillMode=mixed KillSignal=SIGINT # Give a reasonable amount of time for the server to start up/shut down TimeoutSec=300 [Install] WantedBy=multi-user.target Change postgresql.conf parameter ...

February 17, 2025 · 2 min · 261 words · kidtz