Create Physical Standby Database using RMAN Backup Restore || DR DataGuard

Sdílet
Vložit
  • čas přidán 29. 05. 2020
  • Hi Friends,
    Welcome you back on exciting topic, today’s session is on
    Create Physical Standby Database using RMAN Backup Restore
    In this article, we will see Physical Standby database creation and configuration using RMAN backup and restore.
    Step 1: Connect to the Primary database and check if recovery area
    show parameter db_recovery
    Step 2: Connect to RMAN and take backup
    rman target /
    backup database plus archivelog;
    Step 3: Create standby control file from the primary database and create pfile from spfile.
    ALTER DATABASE CREATE STANDBY CONTROLFILE AS '/u01/DEVDRDB.ctl';
    CREATE PFILE FROM SPFILE;
    Step 4: Change following parameter in pfile.
    CHANGE FOLLOWING PARAMETER IN PFILE
    *.db_unique_name='DEVDRDB'
    *.fal_server='DEVDB'
    *.log_archive_dest_2='SERVICE=DEVDB ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=DEVDB'
    Step 5: Connect to Standby database server and create necessary directories.
    mkdir -p /u01/app/oracle/oradata/DEVDRDB/datafile
    mkdir -p /u01/app/oracle/oradata/DEVDRDB/controlfile
    mkdir -p /u01/app/oracle/fast_recovery_area/DEVDRDB/controlfile
    mkdir -p /u01/app/oracle/oradata/DEVDRDB/onlinelog
    mkdir -p /u01/app/oracle/fast_recovery_area/DEVDRDB/onlinelog
    Step 6: Transfer standby control file to standby database and rename it as defined in control_files initialization parameter.
    Step 7: Transfer backup to Standby database server
    Step 8: Transfer pfile to standby database
    Step 9: Transfer password file to standby database.
    Step 10: Connect to Standby database and create spfile from pfile.
    sqlplus / as sysdba
    create spfile from pfile;
    File created.
    Step 11: In standby database connect to RMAN and start the database in mount stage.
    rman target /
    startup mount
    Step 12: Restore database using restore database command.
    restore database;
    Step 13: Connect to SQL prompt of standby database and create redo log files.
    alter system set standby_file_management=manual;
    alter database add logfile ('/u01/app/oracle/oradata/DEVDRDB/onlinelog/redo01.log') size 512m;
    alter database add logfile ('/u01/app/oracle/oradata/DEVDRDB/onlinelog/redo02.log') size 512m;
    alter database add logfile ('/u01/app/oracle/oradata/DEVDRDB/onlinelog/redo03.log') size 512m;
    alter database add logfile ('/u01/app/oracle/fast_recovery_area/DEVDRDB/onlinelog/redo01.log') size 512m;
    alter database add logfile ('/u01/app/oracle/fast_recovery_area/DEVDRDB/onlinelog/redo02.log') size 512m;
    alter database add logfile ('/u01/app/oracle/fast_recovery_area/DEVDRDB/onlinelog/redo03.log') size 512m;
    alter system set standby_file_management=AUTO;
    Check Standby database synchronization with the Primary database
    Step 14: Connect to the Primary database and check the role of the primary database.
    select name,open_mode,database_role from v$database;
    Step 15: Connect to Standby database and check the role of the database.
    select name,open_mode,database_role from v$database;
    Step 16: Check maximum archive log sequence from the primary.
    select max(sequence#) from v$thread;
    Step 17: Check maximum archive log sequence from standby database.
    select max(sequence#) from v$thread;
    Step 18: Start the MRP process at standby side.
    alter database recover managed standby database disconnect from session;
    alter database recover managed standby database cancel;
    Step 19: Switch logfile at primary database
    alter system switch logfile;
    Step 20: Check again max archive log sequence at the standby database.
    select max(sequence#) from v$thread;
    Please do follow me and support me on,
    Blog: mallik034.blogspot.com/
    LinkedIn: / mallikarjun-ramadurg-3...
    twitter: / mallik034
    instagram: / mallik034
    Regards,
    Mallikarjun Ramadurg
    Mobile: +966 543796525
    WhatsApp: +91 9880616848
    Blog: mallik034.blogspot.com/
    LinkedIn: / mallikarjun-ramadurg-3...
    twitter: / mallik034
    Instagram: / mallik034
    CZcams: / @mallik034

Komentáře • 26

  • @krishnaarekar1278
    @krishnaarekar1278 Před 3 lety +2

    Thanks Malik sir for such a great video. Request you to please make one video on importance of each parameter in Data Guard configuration.

  • @aayushsingh1378
    @aayushsingh1378 Před 3 lety

    Excellent teaching skill

  • @nabrcnatureaquaculturebiof4172

    Nice 👍

  • @editor_irfan_
    @editor_irfan_ Před 3 lety +1

    Superbly explain Arjun sir 👍👍👍👍thanx for sharing

  • @meghakaradi
    @meghakaradi Před 4 lety +1

    Nice..waiting for more videos.

  • @krishnaarekar1278
    @krishnaarekar1278 Před rokem

    @Malikarjun Sir, Could you please share the steps or document which you have followed in this.
    Thank you so much.

  • @queenielu8877
    @queenielu8877 Před rokem

    @Malikarjun Sir, Could you please share the steps which you have followed in this.

  • @bharathkumar-ds8cd
    @bharathkumar-ds8cd Před 4 lety

    Good session sir.

    • @Mallik034
      @Mallik034  Před 4 lety

      Thank you & Keep watching. Request your colleagues and friends to subscribe my channel and keep watching these videos. Keep sharing the knowledge.

  • @mdmujahid8761
    @mdmujahid8761 Před 3 lety

    Thanks for information, Only one thing request you to change the COLOR of cmd as its not clearly visible sometimes in video.

  • @bharathkumar-ds8cd
    @bharathkumar-ds8cd Před 4 lety

    Please make one video. create dataguard set up pdb level. I checked CZcams till now no one post.thanks

    • @Mallik034
      @Mallik034  Před 4 lety

      Thats true. Let me make 19c RAC db with some PDBs and try to setup some DR for them. Please stay tuned.

  • @hadibuxoclits7712
    @hadibuxoclits7712 Před rokem +1

    can you please make same video for windows OS

  • @sushantmagdum4145
    @sushantmagdum4145 Před 3 lety

    Well explained... Can i get the document you followed?

    • @Mallik034
      @Mallik034  Před 3 lety +1

      Its been already shared in our telegram group @malllik034.
      Get it from there

    • @sushantmagdum4145
      @sushantmagdum4145 Před 2 lety

      @@Mallik034 thanks... But this document is not available in ur telegram group.. Only available for rac database.. Not for Standalone

  • @suriyam5359
    @suriyam5359 Před 3 měsíci

    Can you share the documents sir!?

  • @majjigavinodkumar8951
    @majjigavinodkumar8951 Před 2 lety +1

    can u plz share the pdf

  • @sadashivsbz2095
    @sadashivsbz2095 Před 2 měsíci

    Send that pdf please

  • @adityadayal6805
    @adityadayal6805 Před 3 lety +1

    You have bad audio