How do I use Oracle for cold backup?

Updated on technology 2024-03-25
3 answers
  1. Anonymous users2024-02-07

    The usual steps for Oracle cold backup:

    1 Shut down the database gracefully.

    2 Back up all important files to the backup directory (data files, control files, redo log files, etc.) 3 Start the database after the backup is complete.

    When restoring with a cold backup, you only need to restore all the files to their original location and you can start the database.

    1 Go to the database sqlplus"/as sysdba"

    2 Start if you don't have one: sql>startup

    3 Query the directory where the datafile is located

    sql>select name from v$datafile;

    Query the directory where the control file is located

    sql>select name from v$controlfile;

    Query the directory where the redo log file is located

    sql>select member from v$logfile;

    4 Close the database.

    sql>shutdown

    5 Back up the file to the directory where you backed it up.

    cp /u01/app/oracle/oradata/orcl/*.dbf /home/mzl/backupdatabase#cp /u01/app/oracle/oradata/orcl/*.ctl /home/mzl/backupdatabase#cp /u01/app/oracle/oradata/orcl/*.

    log home mzl backupdatabase6 and then start the database.

    sqlplus "/as sysdba"

    sql>startup

    The cold backup is complete.

  2. Anonymous users2024-02-06

    The current strength of the local tyrant to accompany the funeral while sending.

  3. Anonymous users2024-02-05

    Hot backup allows you to back up the tablespace when the database is not down, and cold backup is a backup that must be copied from the tablespace after the database is shut down and the operating system commands are used.

    Hot backup is suitable for important databases, such as 7x24 production systems, and can ensure that the database can be restored to any point in time in combination with archive logs in the event of a crash without data loss.

    Cold backup cannot be restored only to the point in time when the database is restored, and all new data and modification records cannot be restored during the period from the time the backup is completed to the time when the database has a problem and needs to be restored.

    Hot backup can only be carried out in archive mode, cold backup does not need archive mode, archive mode will have a certain impact on system performance, especially disk IO, but compared with the benefits and security of archive, I believe that most DBAs will choose archive mode.

Related questions
4 answers2024-03-25

You go online ** dwarf dos toolbox, install him, and then restart, enter my dos toolbox, the ghost inside, and then the Chinese one, you just watch the operation yourself!

11 answers2024-03-25

It is best to analyze from multiple perspectives, such as the macro perspective, including the policy, the impact on the public, ......The micro includes the impact on the parties, and it is also multi-layered and multi-faceted, of course, because many times the understanding of something is not so deep, generally speaking, it is better to start from the macro.

1 answers2024-03-25

In oracle, the sequence is the sequence number, which is automatically incremented each time it is retrieved. Sequence has nothing to do with tables. >>>More

7 answers2024-03-25

Don't try it, the squid is so hot that it's water, and you can't wipe it off in the electric oven, and it's still dangerous.

4 answers2024-03-25

First of all, you have to prepare a *** empty disk,Then burn a system win7 (ios file format) to your disc,Put the system disc into the optical drive,There will be a *** RV drive in my computer。 >>>More