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

Thread: SQL script in online backup

  1. #1
    Join Date
    Sep 2001
    Location
    philippines
    Posts
    3

    Unhappy

    to all,

    I am a new user of SQL and Oracle, can anyone provide me a script in SQL w/out using RMAN that will enable me to backup and restore in online status or database is up. Can I use the DOS command "copy" for backup online?

    richard.

  2. #2
    Join Date
    Aug 2001
    Location
    Waterloo, On
    Posts
    547
    You can use 'DOS 'copy' command after placing the tablespace (of the datafile(s) you are copying) in backup mode.
    I do not have a script but I can give you steps for online backup without RMAN.

    1) Execute 'archive log list' form sqlplus to note down the value of oldest online log sequence.

    2) Execute 'Alter Tablespace name begin backup;'

    3) Copy the datafiles using OS Commands.

    4) Execute 'Alter Tablespace end backup;'

    5) Repeat for all tablespaces to be backed up.

    6) Executer step 1 again, this time to note down last redolog required for using the online backup.

    7) Issue 'Alter system switch logfile' to archive current redo log.

    8) Do not forget to create a copy of control file by 'Alter database backup controlfile' statement.

    Hope this helps.




    Raminder Singh

    Oracle Certified DBA: Oracle 8i, 9i


    Mail me at raminderahluwalia@rediffmail.com.

  3. #3
    Join Date
    Sep 2001
    Location
    philippines
    Posts
    3
    to all,

    Can I use that steps in restoring datafiles?


    richard

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