DMK Oracle
release_2.2.0
release_2.2.0
  • Introduction
  • Release 2 note
  • ⚙️Installation and configuration
    • Installation & Upgrade & De-installation (Unix)
    • Installation & Upgrade & De-installation (Windows)
    • Functionalities & Features
    • Advanced Configuration
    • Variables and aliases
    • Migration to DMK
  • 🗄️Structure
    • Structure
    • Oracle Grid Infrastructure & DMK
    • Oracle Database Multitenant – DMK features
  • 📃Scripts
    • Status script
    • O.S Start/Stop script integration
      • O.S Start/Stop script integration until Red Hat/Oracle Linux 6
      • O.S Start/Stop script integration since Red Hat/Oracle Linux 7
    • dmk.sh / dmk-core.pl
    • service_start_stop.ksh
    • database.ksh
    • db_crs.ksh
    • listener.ksh
    • listener_vcs.ksh
    • fsdisc.ksh
    • emctlagent.ksh
    • emctlgrid.ksh
    • opmnctl.ksh
    • goldengate.ksh
    • dgobserver.ksh
    • version.ksh|version
    • housekeeping.{ksh|cmd }
    • odiagentctl.{ksh}
    • Libraries
      • DMK_ENV.pm
      • DMK_STATUS.pm
  • ℹ️Appendix
  • 🧩Extension
    • dmk_dbbackup
      • Introduction
      • Release notes
      • Installation
      • Functionalities & Features
      • Structure
      • dmk_rman.{ksh|cmd}
      • dmk_dtpump.{ksh|cmd}
      • dmk_backup_report.{ksh|cmd}
      • Appendix
    • dmk_dbcreate
      • Introduction
      • Release notes
      • Installation & Upgrade & De-Installation
      • Functionalities & Features
      • Database creation
      • Structure
      • Bug fix :DMK-14-10 and Oracle 12c
      • Appendix
    • dmk_dbduplicate
      • Introduction
      • Release notes
      • Installation & Upgrade & De-Installation
      • Functionalities & Features
      • Database duplicates/clones
      • Structure
      • Scheduling
      • Example
      • Appendix
    • dmk_ha
      • Introduction
      • Release notes
      • Installation & Upgrade & De-Installation
      • Functionalities & Features
      • Structure
      • Scripts
      • Data Guard : archivelog management strategy (Oracle 10g/11g)
      • Data Guard monitoring
      • DMK_HA virtual IP solution for Unix/Linux
      • DMK_HA virtual IP solution for Microsoft Windows
      • Oracle GoldenGate with Oracle Active Data Guard
      • Appendix
    • dmk_sql
      • Introduction
      • Installation & Upgrade & De-installation
      • Functionalities & Features
      • Structure
      • References
      • Scripts
      • Generate Report
      • Search
  • 📄OFA
    • Introduction
    • OFA Naming guidelines
    • OFA directory structure
Powered by GitBook
On this page
  • alldgcheck.ksh
  • check_primary.ksh
  • check_standby.ksh
  • sdg.ksh
  • purge_standby_applied_archlog.ksh
  • convert_standby.sh
  1. Extension
  2. dmk_ha

Scripts

This chapter presents the available scripts. All our scripts have a detailed synopsis please check the option “-h” or “—help”.

alldgcheck.ksh

This script serves to print all database Data Guard status using the database view V$DATABASE.

Syntax

alldgcheck.ksh

check_primary.ksh

This script serves to execute a script only if the database role is PRIMARY.

check_primary.ksh [SID] [Command & Parameters]

check_standby.ksh

This script serves to execute a script only if the database role is STANBDY. It executes the script if the database is either stopped, in nomount, mounted or open read-only.

check_standby.ksh [SID] [Command & Parameters]

sdg.ksh

This script serves to printout the Data Guard broker configuration and his state of the current database instance (in your environment). Parameters permit to print either the status of the configuration or the detail of a database.

sdg.{ksh|ps1} [-p|-s|none] [–v] [-m]

purge_standby_applied_archlog.ksh

This script serves for the deletion of standby database archive logs. Starting with Oracle 11g this script has become obsolete as of the new RMAN parameter “ARCHIVELOG DELETION POLICY”. Please check the Swiss Oracle User Group article, available within the package under “${DMK_HA}/doc”

purge_standby_applied_archlog.ksh [SID] [Keep interval in days]

convert_standby.sh

This script converts a standby database to a snapshot or physical standby database. Use -sn to convert a standby database from physical to snapshot. Use -ph to convert a standby database from snapshot to physical. Username and password needs to be provided to connect to the standby database using Oracle Net. It is recommended to use SYSDG priviledged user rather than a SYSDBA priviledged user for security concern.

convert_standby.sh [SID] [username] [password] [tnsname_entry] [-sn|-ph]
PreviousStructureNextData Guard : archivelog management strategy (Oracle 10g/11g)

Last updated 5 months ago

🧩