Starting / Stopping Databases using DGMGRL

Hi,
I was previously using Sqlplus to manage my Data Guard environment but I have not converted to using DGMGRL.
I was wanting to check ihow I start/stop my various databases using DGMGRL
For my primary I guess I use
DGMGRL> startup;
Q1. For my logical standby do I use
DGMGRL> startup;
Under sqlplus I then had to
alter database start logical standby apply immediate;
Q2. Do I still need to do this if the Broker is managing the standby ?
Q3. To shutdown the Logical Standby I guess I simply use
DGMGRL> shutdown;
Q4. For my Physical Standby I was using
startup nomount;
alter database mount standby database;
alter database recover managed standby database disconnect;
How does this translate into DGMGRL ?
Q5. To close the Physical Standby I was using
alter database recover managed standby database cancel;
shutdown;
Again how does this translate into DGMGRL ?
many thanks,
Jim

Jimbo wrote:
Hi,
I was previously using Sqlplus to manage my Data Guard environment but I have not converted to using DGMGRL.
I was wanting to check ihow I start/stop my various databases using DGMGRL
For my primary I guess I use
DGMGRL> startup;
Q1. For my logical standby do I use
DGMGRL> startup;
Under sqlplus I then had to
alter database start logical standby apply immediate;
Q2. Do I still need to do this if the Broker is managing the standby ?
Read ozgurumut's link, from before reply
DGMGRL> edit database <standby database> set  state='APPLY-ON';
In the default, dgmgrl starting apply process
Q3. To shutdown the Logical Standby I guess I simply use
DGMGRL> shutdown;
Q4. For my Physical Standby I was using
startup nomount;
alter database mount standby database;
alter database recover managed standby database disconnect;
How does this translate into DGMGRL ?
DGMGRL> startup mount;
DGMGRL> edit database <standby> set state='APPLY-ON'; -- it is not need, if stopped apply before shutdown
Q5. To close the Physical Standby I was using
alter database recover managed standby database cancel;
DGMGRL> edit database <standby> set state='APPLY-OFF';
Regards
Mahir M. Quluzade
p.s. ozgurumut I'm very glad see you at OTN forum my friend!

Similar Messages

  • Not able to stop database using srvctl

    When i stop database using srvctl from node1.. "srvctl stop database -d mosa" it does not stop. I tried "srvctl stop database -d mosa -o immediate" but to no luck. Could anybody help me on this issue.
    OS = HP-UX
    Database = Oracle 9i
    Instance1 = mosa1
    Instance2 = mosa2
    node1 = hp1
    node2 = hp2
    DB Size = 50GB
    I have opened another session to check srvctl status
    $srvctl status database -d mosa
    Instance mosa1 is not running on node hp_data1
    Instance mosa2 is running on node hp_data2
    NOTE:- BEfore i stop database, i had stopped listener.
    Regards,
    Vikhar

    Thank you , issue is solved.
    After i give below given command, i checked the status by
    $srvctl status database -d dbname
    $Instance mosa1 is not running in node1
    $Instance mosa1 is running in node2
    It means PROBLEM with instance2
    I have got following error message in alert_log file
    attempting to shut down the database and the database hangs at $srvctl stop database -d dbname. The alert log contains the following message:
    SHUTDOWN: Waiting for active calls to complete
    There are no other error messages in the alert log.
    +Solution Description:
    =====================
    Caveat: This note is intended for Unix platforms primarily, but we should
    address this issue on Windows platforms as well. On Windows, stopping the
    service is a valid workaround for these errors.
    Locate and kill any client connections to the database at the Unix level, as
    follows:
    1. Locate any client connections to the database using ps, and grep for any
    processes belonging to this .
    Example: ps -ef | grep V733
    2. Look for processes that include a 'Local=No' designation.
    Example: osupport 6235 1 0 Nov 24 0:01 oracleV733 (LOCAL=NO)
    3. Kill the Unix process(es) with the 'Local=No' designation.
    Example: Kill -9 6235
    Explanation:
    ============
    The database is waiting for pmon to clean up processes, but pmon is unable to
    clean them. The client connections to the server are causing the shutdown
    immediate or normal to hang. Killing them allows pmon to clean up and release
    the associated Oracle processes and resources+
    What resources are we talking about?
    1) Any non committed transactions must be rolled back
    2) Any temporary space (sort segments / lobs / session temporary tables) must be freed
    3) The session itself and any associated memory consumed by the session.
    4) Internal locks / enqueues must be cleaned up
    Often Oracle (SMON or PMON depending on whether Shared Server is used) will wait for the OS to terminate the process(es) associated with the session. I the OS never returns, or fails to terminate them, then the instance shutdown will hang with this message (Shutdown Waiting for Active Calls to Complete) Other means exist to achieve a quick shutdown.
    Thank you so much for your efforts.
    Edited by: VIKHARAHMED on Feb 27, 2011 10:19 PM
    Edited by: VIKHARAHMED on Feb 27, 2011 10:25 PM

  • HOW TO START MAKING DATABASE USING ORACLE SQL PLUS in 10g?

    how will i create database using sql plus?
    does the code of sql applicable to it..?
    do i have to use the "create db <database name>", use and " create table also,.."
    pls help me..
    thanks

    At dos prompt :
    C:\>set ORACLE_SID=<your SID>
    C:\>sqlplus / as sysdba
    you get connected as sys user. Don't use this connection to create your own objects, create users instead.... but it would be useful to read some documentation, for example Starting SQL*Plus and manuals mentioned there.

  • Can not start the cluster database using srvctl

    Created a RAC database with CRS.
    When i start the cluster database with srvctl, it appears that the database is started (i made sure using srvctl status), but when i try to login to the database using sqlplus, i get a message 'connected to idle instance'. if i try to start the database from sqlplus, i get message 'requested INSTANCE_NUMBER is busy!.
    any thoughts why i can not connect to the database using sqlplus after i start the database using srvctl?
    I stop the database using srvctl and started using traditional sqlplus, it will start with out any problem.
    what am i missing?

    check ur oracle_sid,also try to connect as sqlplus sys/****@prod as sysdba
    may be this is due to improper setting of init.ora file.
    and post ur sqlplus output here.
    Thanks
    Kuljeet Pal Singh

  • Error while starting database using #dbstart command

    Hello everybody...
    I have installed Oracle 10G release 2 successfully and also created my database,
    But when I try to start the database using #dbstart command I get the following error
    Failed to auto-start Oracle Net Listene using /oracle/10gR2//bin/tnslsnr
    chmod: modification des permissions de `/oracle/10gR1/startup.log': Operation not permited
    Processing Database instance "ASY_DB": log file /oracle/10gR1/startup.log
    I modified /oracle/10gR2//bin/bin to /oracle/10gR1/
    Then I get the following error...
    chmod: modification des permissions de `/oracle/10gR1/startup.log': Op├®ration n
    on permise
    Processing Database instance "ASY_DB": log file /oracle/10gR1/startup.log
    I´m running RedHat Entreprise Linux 4 ES on an i686...
    Please can you help me...?
    Infos: The database work succesfully with 10g Release 10.1.0
    Thanking you...
    Message was edited by:
    user526029

    Thanks for your reply...
    Below is the content of my /etc/oratab file...
    # This file is used by ORACLE utilities. It is created by root.sh
    # and updated by the Database Configuration Assistant when creating
    # a database.
    # A colon, ':', is used as the field terminator. A new line terminates
    # the entry. Lines beginning with a pound sign, '#', are comments.
    # Entries are of the form:
    # $ORACLE_SID:$ORACLE_HOME:<N|Y>:
    # The first and second fields are the system identifier and home
    # directory of the database respectively. The third filed indicates
    # to the dbstart utility that the database should , "Y", or should not,
    # "N", be brought up at system boot time.
    # Multiple entries with the same $ORACLE_SID are not allowed.
    ASY_DB:/oracle/10gR1:Y
    ~
    I wonder if the ORATAB file for 10.2 version is different form the one of 10.1...
    Thanks a lot for your help

  • Starting Stopping Oracle 10g XE on Linux

    Hi,
    I successfully installed Oracle 10g XE on Suse 10.0 as root. The install went without errors. I configured the oracle with "/etc/init.d/oracle-xe configure" and opted not to start oracle while bootup.
    Then whenever I clicked on Start Database or Stop Database link just nothing happens. The cursor changes shape and after sometime returns back to original shape.
    However, I was easily able to start/stop the database from command line: -
    /etc/init.d/oracle-xe enable
    /etc/init.d/oracle-xe start
    /etc/init.d/oracle-xe stop
    Then I edited /etc/init.d/oracle-xe to enable startup of oracle at bootup and everything work fine now.
    But I'm still not able to start/stop the database from the links provided in the KDE menu.
    By checking the links, they are pointing rightly to startdb.sh and stopdb.sh in scripts directory of config directory.
    Please help me.
    Thanks in advance.

    Hi,
    Thanks for the concern. When I ran su - oracle on KDE Konsole and then stopdb.sh, I got the following output: -
    xsetroot: Unable to open display ' '
    xsetroot: Unable to open display ' '
    and it worked. It stopped the database. Similarly by typing startdb.sh I was able to start the database with above two messages.
    Then came the real part. When I saw the menu entries for Starting & Stopping Database in KDE Menu, they were running as current user. I changed them to run as 'oracle' user and it worked.
    Now I'm able to start and stop database form the KDE Menu entries.
    Another Tip: May be useful to someone: -
    When we run the SQL Command Line Utility from KDE Menu in Suse 10.0 it runs in old style terminal. When I saw the script it ran i.e. startsqlplus.sh of some thing like this ( I don't remember the exact name, but you can find out by right clicking on menu entry and then edit item), it came to know that it was seeking gnome-terminal in /usr/bin and in Suse 10.0 gnome-terminal is located in /opt/gnome/bin!!!!!!. So, I made a symbolic link /usr/bin/gnome-terminal for /opt/gnome/bin/gnome-terminal and now it presents me with nice gnome-terminal to run SQL Plus command line.
    Thanks

  • How do starting/stopping of application services differ in R12 ??

    How do starting/stopping of application services differ in R12 when compared to 11i ??
    Can I start/stop services using opmnctl ??

    Can you plese refer me a document where role of OPMN and OC4J in R12 is mentioned ??? In short:-
    OPMN - Oracle Process Manager & Notification Server is component in Oracle Application Server (10g) to manage (start/stop/status) Application Server components (HTTP, OC4J)
    For more:-
    http://download.oracle.com/docs/cd/B14099_19/core.1012/b13996/intro.htm
    OC4J -- oracle container for java.
    In R12 we have 3 groups of OC4J's.
    oacore OC4J - framework based applications
    forms OC4J - forms based applications
    oafm OC4J - Fusion Middleware - for mapviewer, webservices, ascontrol.
    For more, pls read
    http://download.oracle.com/docs/cd/B10464_05/web.904/b10326/intro.htm
    thanks,
    JD

  • DVD Start/Stop and Subclips

    Question: In my browser I have double clicked a clip, it opens in the viewer, I then go to >View>DVD start/stop and the markers are inserted. Once I go back to the browser and highlight the markers and go to Modify>make subclips, FCP will only convert about 27 or 28 of the markers to subclips, when there is actually over 100 markers. Is there a maxium limit on the number of markers that can be converted or that will appear in the browser list? Hope I am clear.
    G5-1.8GHz-2GB DDR SDRAM- 250 ATA HD just upgraded to FCP 5.1
    Thanks,
    Mary
    Power Mac G5   Mac OS X (10.4.8)  

    I've done it both ways, not sure which is easier.
    HDV capture creates individual clips (individual media files) based on the detected start/stop and uses a name you specify at the initiation of the capture appending a sequence number to the end of the name for each new clip. S/S detect always uses the name "Segment". Like the Segment clips, HDV clips are in natural order, as you say. I'm guessing that the file system is smart enough to consider the entire number at the end of a name, but sorts character by charcter if the number is in the middle of the name.
    Just seems a little short sighted to use different naming conventions for essentially the same function, especially when it causes the files to be out of order.

  • Auto Start/Stop Oracle Database Lintener DBConslone on Linux

    Dear all
    I have install oracle 10.2.0 on redhat 4.7 every time i have to start manualy.
    it try with following scrip / process but database not starting automatically.
    Please any one can provide steps for auto start and stop oracel services on RedHat 4.7
    Once the instance is created, edit the "/etc/oratab" file setting the restart flag for each instance to 'Y'.
    TSH1:/u01/app/oracle/product/10.2.0:Y
    Next, create a file called "/etc/init.d/dbora" as the root user, containing the following.
    #!/bin/bash
    #chkconfig: 345 95 10
    #description: init script to start/stop oracle database 10g, TNS listener, EMS and isqlplus
    case $1 in
         start)
         su - oracle -c 'lsnrctl start'
         su - oracle -c 'dbstart'
    su - ora10g -c 'isqlplusctl start'
         su - oracle -c 'emctl start dbconsole'
         stop)
    su - oracle -c 'emctl stop dbconsole'
         su - oracle -c 'isqlplusctl stop'
    su - oracle -c 'dbshut'
    su - oracle -c 'lsnrctl stop'
         restart)
    su - oracle -c 'emctl stop dbconsole'
         su - oracle -c 'isqlplusctl stop'
    su - oracle -c 'dbshut'
    su - oracle -c 'lsnrctl stop'
         su - oracle -c 'lsnrctl start'
         su - oracle -c 'dbstart'
    su - ora10g -c 'isqlplusctl start'
         su - oracle -c 'emctl start dbconsole'
    esac
    create service on linux
    Actions >> System Settings >> Server Settings >> Services Then
    Actions >> Add Service Then
    Service Name = dbora Then Press Ok
    chmod a+x /etc/init.d/dbora
    Check is it running this service properly
    service dbora stop
    service dbora start
    showing error
    :bad interperter : no such file or directory
    Please forward me process/steps for auto start/stop oracel services

    :bad interperter : no such file or directorymeans that it could not find the interpreter which should be used to interpret the script.
    most probably this is caused by the shebang (#!/bin/bash)
    the default location of bash on RHEL (OEL/CentOS) is /bin/bash, which means that the shebang looks correct.
    can you make the shebang:
    #!/bin/bash -xso shelltracing is put on and execute script again?
    this will make clear if it is the shebang in your script, or in another script.

  • How to Start/Stop manually an oracle 9i database with a bat file?

    Hi;
    I have a manual Start/Stop of the db.
    How can i Start/Stop the 9i database all services with a batch file (windows 2000) ?
    All in one batch files ( One for Start & one for Stop)(Including listener)
    thanks for your answer !

    Save the scripts below in a batch file and use the first one to start your services, and the second one to shutdown.
    This script will shutdown your database first using SQL*Plus and stop the service later. This way you will avoid the timeout.
    Also will ask you for confirmation if you are sure to start Oracle services and database. press Y for yes and N for No.
    @echo off
    %systemdrive%
    REM #
    echo.
    echo You are about to start Oracle Services and Database
    echo.
    set /p Input=Do you want to continue? (Y=Yes N=No) =
    IF /i "%Input%"=="Y" (goto Proceed)
    exit /b
    :Proceed
    echo Oracle Instance and Services Startup in progress
    echo.
    Net start OracleOraHome92Agent
    Net start OracleOraHome92HTTPServer
    Net Start OracleOraHome92TNSListener
    Net Start OracleMTSRecoveryService
    Net Start OracleServiceORCL
    echo.
    echo Oracle ORCL Instance and Services Startup completed Successfully
    echo Good Bye
    echo on
    EXIT /BSave this one in a seperate batch, again it will ask for confirmation, and shutdown the database using SQL to avoid timeout
    Just replace the connect string with your own and the {SID} with your Database name
    @echo off
    %systemdrive%
    echo.
    echo You are about to shutdown Oracle Instance and Services
    echo.
    set /p Input=Do you want to continue? (Y=Yes N=No) =
    if /i "%Input%"=="y" (goto Proceed)
    exit /b
    :Proceed
    echo.
    echo Closing and Dismounting ORCL Database
    echo.
    echo shutdown immediate | sqlplus "/ @ORCL as sysdba"
    echo.
    echo Shutting down Oracle system services
    echo.
    Net Stop OracleService{SID}
    Net Stop OracleOraHome92HTTPServer
    Net Stop OracleOraHome92TNSListener
    Net Stop OracleMTSRecoveryService
    Net Stop OracleOraHome92Agent
    echo.
    echo Oracle Instance and Services Shutdown completed successfully
    echo Good Bye
    echo on
    EXIT /bTony Garabedian

  • I there, my question is quite simple, I would like to know if the "apple remote control" can be used with a mac mini and , if so, it can be used to control also the "logic pro" functions (e.g. record, start, stop etc). Thks a lot, Danilo

    I there, my question is quite simple, I would like to know if the "apple remote control" can be used with a mac mini and , if so, it can be used to control also the "logic pro" functions (e.g. record, start, stop etc). Thks a lot, Danilo

    Good work, thanks for the report.

  • How can i start oracle databases? i am using Oracle 8.1.6 for linux.

    when i run dbstart,it gives me following message:
    Database "ora4cweb" warm started.
    but when i use sqlplus,it says:
    ORA-01034: ORACLE not available
    i made a mistake ,i shutdown my linux before i shutdown oracle databases,how can i start oracle databases now?thanks in advance.

    try it without the scripts...
    login to linux as oracle
    start server manager
    svrmgrl
    connect internal
    startup
    select sysdate from dual;if that works
    exitcheck listener
    lsnrctl
    statif nothing running type
    start
    exitnull

  • How to start or shut down database using sql developer in windows

    Dear Sir/Madam,
    how we start or shut down database using sql developer in windows
    we are using oracle 11g release2, unix, java & oracle oracle weblogic administration
    Thanks & Regards
    Manish Kumar
    Datbase Team
    TCS Ltd.

    HI, Welcome to OTN form,
    SHUTDOWN is not a SQL statement but a SQL*Plus command . You cannot use SHUTDOWN in PL/SQL.
    Check following link:
    http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve042.htm#i2699551
    More Information please check OTN discussion: https://forums.oracle.com/thread/2349159
    Thank you

  • Create Stop and Start Table item using HTMLDB_ITEM - APEX 2.2.0

    Hi, all,
    I guess the subject says it all. How can I create a Stop and Start Table item using HTMLDB_ITEM? I think I can just output "< /table >< table>", but I'd like to use the built-in function if there is one, in case the way tables are rendered were to change, or in case my thinking is wrong, which is always possible ; - )
    Thanks, for this and for all of your help!

    Don, there is no function provided for this.
    Scott

  • How to stop and start RAC Database

    Hi,
    Can anybody tell me How to stop and start RAC Database.
    Pls give me the exact procedure for OS - IBM Aix 5.3.
    Rajkumar

    Burleson,
    It so appears, as from the numerous times you have been published incorrect, untested information, and non-working scripts, you are not an Oracle guru,
    but only a self-proclaimed one.
    It also appears nothing on your 'CV' can be easily verified.
    You state you are an 'adjunct professor emeritus', however anyone who was kicked out after a few months can call himself a 'professor emeritus'.
    Looking at the enormous amount insults and slander you have posted directed to me and others on this forum, showing a highly unprofessional attitude toward your peers,violating this forums rules of conduct, don't you think you deserved to be banned completely?
    After all, you are always promoting your own publications here, which is also in violation of the rules for this forum.
    What makes you think that "Sybrand" is a man's name? How many male Sybrand's do you know? I don't know any, not one.
    That's your problem. I'm as much as male, as you are a fat, ugly, self-proclaimed Oracle-guru, which you are clearly not, you are only a fraud, and this glares from all of your publications.,
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • Issue with fields of a database table

    Hi All, While browsing through database table T2515, i have observed that in 'fields' tab, there are only 2 fields visible ie MANDT and WWSSN. When we see the contents of table, there will be one more additional field called BEZTEK. Now my requiremen

  • 11gR1 - Personalizing BPM Worklist application

    Hello All, We are using Oracle 11g R1 BPM Worklist application. As per our business requirement, we would like to hide some of the items/regions/tabs in the worklist application. Example, we want only My Tasks tab, all other tabls should be hidden. S

  • Recovered iPhoto Library is missing data, can it be fixed?

    I accidently erased my Iphoto library, when I recovered it from Time Machine the most recent images do not show up. The events are blank put it shows how many files are in each event. When you try to open one image it shows an exlamation point in a c

  • Changing Applications on 6120c main menu

    Hi, I'v just got a 6120c, is it possible to change the menu on the main display? It currently shows: contacts-messages-clock-calendar-web-bluetooth. I would like to have (e.g.) messages-contacts-settings-logs-profiles. I've just 'upgraded' from a 682

  • Delete change request in transport queue

    hi, is there a possibility to delete change requests in the transport queue (stms)? thanks mike