Вы находитесь на странице: 1из 3

RESTORE THE DATABASE BACK TO - 10.2.0.

RESTORE THE DATABASE TO 10.2.0.1 - IF ANYTHING FAILED

This article is intended as a brief guide to restore the Oracle database to 10.2.0.4 on Linux distro (OEL - 5.5). Let's suppose the upgrade process fails, then you can always go back to 10.2.0.1 level be restoring the backup we took at the beginning of the process and start over the upgrade .Just shut down the database and restore the backups as follows: SHUTDOWN THE DATABASE USER is "SYS" SQL> shut immediate; Database closed. Database dismounted. ORACLE instance shut down. RESTORE THE OLD $ORACLE_HOME & OLD ORAINVENTORY $ echo $ORACLE_HOME /u01/app/oracle/product/10.2.0/db_1 $ cd /u01/app/oracle/product/10.2.0/ $ rm -fr db_1 $ tar -xzf /home/oracle/orclhomebackup.tar.gz $ cd $ORACLE_BASE/oradata $ rm -rf orcltest $ tar xzf /home/oracle/orclbackup.tar.gz Exploring the Oracle DBA Technology by Gunasekaran ,Thiyagu

RESTORE THE DATABASE BACK TO - 10.2.0.1

RESTORE A CONSISTENT COPY OF FILES AND TEMP FILES DATAFILES CONTROL FILES and REDO LOG FILES etc .. $ cd $ORACLE_BASE/oradata $ rm -rf orcltest $ tar xzf /home/oracle/orclbackup.tar.gz START THE DATABASE AND SEE WHICH VERSION IS IT? $ sqlplus / as sysdba Connected to an idle instance. SQL> startup ORACLE instance started. Total System Global Area 285212672 bytes Fixed Size Variable Size Database Buffers Redo Buffers Database mounted. Database opened. SQL> select * from sys.v$version; BANNER Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production 1218992 bytes 92276304 bytes 188743680 bytes 2973696 bytes

TNS for Linux: Version 10.2.0.1.0 Production NLSRTL Version 10.2.0.1.0 - Production Exploring the Oracle DBA Technology by Gunasekaran ,Thiyagu

RESTORE THE DATABASE BACK TO - 10.2.0.1

We can see 10.2.0.1 database components loaded into the database SQL > SELECT COMP_NAME, VERSION, STATUS FROM SYS.DBA_REGISTRY;
COMP_NAME VERSION STATUS

Oracle Database Catalog Views Oracle Database Packages and Types Oracle Workspace Manager JServer JAVA Virtual Machine Oracle XDK Oracle Database Java Packages Oracle Expression Filter Oracle Data Mining Oracle Text Oracle XML Database Oracle Rules Manager Oracle interMedia OLAP Analytic Workspace Oracle OLAP API OLAP Catalog Spatial Oracle Enterprise Manager 17 rows selected.

10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0 10.2.0.1.0

VALID VALID VALID VALID VALID VALID VALID VALID VALID VALID VALID VALID VALID VALID VALID VALID VALID

Exploring the Oracle DBA Technology by Gunasekaran ,Thiyagu

Вам также может понравиться