DBAsupport.com Forums - Powered by vBulletin
Results 1 to 8 of 8

Thread: Hot backup of a datafile

  1. #1
    Join Date
    Jan 2001
    Posts
    138

    Hot backup of a datafile

    We need to do hot backup of a datafile in our production database and copy it to the standby, since this datafile on the standby seems corrupted.

    I am looking for the safest way to do this.

    Do I issue a Alter datfile "path" begin backup command? How do I copy the file over to standby? Thanks.

  2. #2
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    Assuming your OS is unix. If its NT Click and drag

    ALTER TABLESPACE XYZ BEGIN BACKUP;
    cp p:/primary/xyz.dbf s:/standby/xyz.dbf
    ALTER TABLESPACE XYZ END BACKUP;

    p---> Primary Database Machine
    s---> Standby Databsse machine

    If machines are ssh enabled use scp instead of copy.
    Reddy,Sam

  3. #3
    Join Date
    Jan 2001
    Posts
    138
    I am assuming that we do the backup in svrmgrl.

    When the backup is done, copy the file over and then issue the end backup command. Am I right? Thanks.

  4. #4
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    You have option to use SQL*Plus or SVRMGRL if its 8i for SQL commands, you do not have any option if its 9i.
    Reddy,Sam

  5. #5
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Originally posted by sreddy
    You have option to use SQL*Plus or SVRMGRL if its 8i for SQL commands, you do not have any option if its 9i.
    It can be *any* tool that can execute SQL commands - you are not limited to SQL*Plus/svrmgrl. So you allways have many options.
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

  6. #6
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    Jmodic,

    You are right from general Usage of SQL, I meant at OS level we do these tasks like backing up tablespaces copying/moving datafiles etc.,
    Reddy,Sam

  7. #7
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Originally posted by sreddy
    I meant at OS level we do these tasks like backing up tablespaces
    No you don't. You can't put your tablespace in backup mode from OS level - you must allways use some application for that. And if you ment "from command line interface we do this task..." then again you certanly are not limited to SQL*Plus/svrmgrl - you can use any command line utility/application that is capable of executing SQL. You can even write your own, if you want.

    You are only limited to SQL*Plus/svrmgrl when it comes to database startup/shutdown. That is because STARUP/SHUTDOWN are not SQL commands, they are SQL*Plus's (or svrmgrl's) commands. So only those two tools will know what you want with those commands.
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

  8. #8
    Join Date
    Dec 2001
    Location
    Brazil
    Posts
    282
    Originally posted by jmodic
    You are only limited to SQL*Plus/svrmgrl when it comes to database startup/shutdown. That is because STARUP/SHUTDOWN are not SQL commands, they are SQL*Plus's (or svrmgrl's) commands. So only those two tools will know what you want with those commands.

    RMAN also accepts startup and shutdown commands.


    F.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width