Building Oracle Virtual Environments

Source: Internet
Author: User

In many books about Oracle's database management, it's often said that you want to put different types of files on different disks. In the process of individual self-study, it is not possible to implement multiple disks. Here's how to construct a simulated environment by creating a directory on disk.

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/83/9E/wKiom1d4hoeiKLHHAAD8DBI6CKE994.png-wh_500x0-wm_3 -wmp_4-s_463473661.png "title=" 1.png "alt=" Wkiom1d4hoeiklhhaad8dbi6cke994.png-wh_50 "/>

Directory backup is used for database backups. The failure to do so may cause the database system to crash and may sometimes have to reload the Oracle system. To prevent this kind of thing from happening, make a full backup below. If the database crashes, simply restore the database with a backup, without having to re-install Oracle. Here are the steps to backup.

Sql> Connect sys/123456 as Sysdba

is connected.

Sql> col name for A50

Sql> select * from V$controlfile;


STATUS NAME Is_ block_size

------- -------------------------------------------------- --- ----------

File_size_blks

--------------

F:\APP\272343\ORADATA\ORCL\CONTROL01. CTL NO 16384

594


F:\APP\272343\FLASH_RECOVERY_AREA\ORCL\CONTROL02. C NO 16384

Tl

594



sql> shutdown Immediate

The database is closed.

The database has been uninstalled.

The ORACLE routine has been closed.

Sql> Host copy F:\app\272343\oradata\orcl\*.* E:\Backup

F:\APP\272343\ORADATA\ORCL\CONTROL01. Ctl

F:\APP\272343\ORADATA\ORCL\EXAMPLE01. Dbf

F:\APP\272343\ORADATA\ORCL\REDO01. LOG

F:\APP\272343\ORADATA\ORCL\REDO02. LOG

F:\APP\272343\ORADATA\ORCL\REDO03. LOG

F:\APP\272343\ORADATA\ORCL\SYSAUX01. Dbf

F:\APP\272343\ORADATA\ORCL\SYSTEM01. Dbf

F:\APP\272343\ORADATA\ORCL\TEMP01. Dbf

F:\APP\272343\ORADATA\ORCL\UNDOTBS01. Dbf

F:\APP\272343\ORADATA\ORCL\USERS01. Dbf

10 files have been copied.


Sql> Host copy F:\APP\272343\FLASH_RECOVERY_AREA\ORCL\ E:\Backup\database

F:\APP\272343\FLASH_RECOVERY_AREA\ORCL\CONTROL02. Ctl

1 files have been copied.


Sql> Host copy F:\app\272343\flash_recovery_area\orcl\*.* E:\Backup\database

F:\APP\272343\FLASH_RECOVERY_AREA\ORCL\CONTROL02. Ctl

1 files have been copied.


Sql> Host copy f:\app\272343\flash_recovery_area\orcl\* E:\Backup\database

F:\APP\272343\FLASH_RECOVERY_AREA\ORCL\CONTROL02. Ctl

1 files have been copied.


Sql> Startup

The ORACLE routine has been started.


Total System Global area 1071333376 bytes

Fixed Size 1375792 bytes

Variable Size 754975184 bytes

Database buffers 310378496 bytes

Redo buffers 4603904 bytes

The database is loaded.

The database is already open.

Sql>

The results of Col name for A20 and A25 effects;

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/83/9E/wKioL1d4vBfD9arRAAA47O-z2QU328.png-wh_500x0-wm_3 -wmp_4-s_2498580237.png "title=" 1.png "alt=" Wkiol1d4vbfd9arraaa47o-z2qu328.png-wh_50 "/>

Building Oracle Virtual Environments

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.