My Oracle Support Banner

Steps to Execute DGMGRL Commands Stored in Script File (Doc ID 2803050.1)

Last updated on JULY 12, 2023

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


NOTE: In the images and/or the document content below, the user information and environment data used represents fictitious data
from the Oracle sample schema(s), Public Documentation delivered with an Oracle database product or other training material.
Any similarity to actual environments, actual persons, living or dead, is purely coincidental and not intended in any manner.

For the purposes of this document, the following fictitious environment is used as an example to describe the procedure:

Primary database: orcl12201
Standby database: orcl12201_stby

Starting from Oracle Database 12c Release 2 (,  it is possible to use dgmgrl with script files.
The @ command allows you to execute DGMGRL commands stored in script files.
Use the "@" sign before the script name to execute the contents of the script.
The commands contained in the script are executed sequentially.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.