Home / Oracle 9I Database Setup
Oracle 9I Database Setup
Author: admin03/10
Oracle 9I Database Setup Average ratng: 5,0/5 2144reviews
Oracle Recovery Manager RMAN Backup Demos. RESTORE AND RECOVERYSection 5. Datafile recovery. This section assumes that datafile 5 has been damaged and needs to berestored and recovered, and that the current controlfile and all other datafiles are intact. The database is open during the restore and recovery. The steps are offline the datafile that needs recovery restore the datafile from backups apply incrementals and archivelogs as necessary to recover. RUNSQL ALTER DATABASE DATAFILE 5 OFFLINE If you want to restore to a different location, uncomment the followingcommand. SET NEWNAME FOR DATAFILE 5 TO newdirectorynewfilename. RESTORE DATAFILE 5 If you restored to a different location, uncomment the command below to switch the controlfile to point to the file in the new location. SWITCH DATAFILE ALL RECOVER DATAFILE 5 SQL ALTER DATABASE DATAFILE 5 ONLINE Section 5. Tablespace recovery. This section assumes that tablespace tbs5, containing datafiles 5, 6, and 7 has been damaged and needs to be restored and recovered, and that the current. The database is open during the restore and recovery. Diccionario De Terminologia Psicologica Pdf. The steps are Offline the tablespace that needs recovery. Restore the tablespace from backups. Apply incrementals and archivelogs as necessary to recover. Online the recovered tablespace. RUNSQL ALTER TABLESPACE TBS5 OFFLINE If you want to restore to a different location, uncomment the following commands. SET NEWNAME FOR DATAFILE 5 TO newdirectorynewfilenamefor5. SET NEWNAME FOR DATAFILE 6 TO newdirectorynewfilenamefor6. SET NEWNAME FOR DATAFILE 7 TO newdirectorynewfilenamefor7. RESTORE TABLESPACE TBS5 If you restored to different locations, uncomment the commands below to switch the controlfile to point to the files in their new locations. SWITCH DATAFILE ALL RECOVER TABLESPACE TBS5 SQL ALTER TABLESPACE TBS5 ONLINE Section 5. Controlfile recovery. Oracle strongly recommends that you specify multiple controlfiles, on separate physical disks and controllers, in the CONTROLFILES initialization parameter. If one copy is lost due to media failure, copy one of the others over thelost controlfile and restart the instance. If you lose all copies of the controlfile, you must re create it usingthe CREATE CONTROLFILE sql command. You should use RMAN to recover a backup controlfile only if you have lost all copies of the current controlfile, because after restoring a backup. RESETLOGS and take a new whole database backup. Responses to Step by Step Oracle guides tejas patel Says December 8th, 2009 at 1231 pm. DBA. so please help me. This chapter provides information about the Database Instance metrics. I have a W2K server latest SP and update, on which an Oracle 9. The Oracle server runs several databases since months, with. This section assumes that all copies of the current controlfile have been lost, and that all initialization parameter files, datafiles and online logs are intact. Ensure you set your NLSLANG environment variable. NLSLANG americanamerica. Start RMAN without the TARGET option, and use the following commands to restore and recover the database SET DBID lt databaseid use database id from RMAN output as explained in Section 2. Top Leading Oracle Training in Chennai by Certified Experts. Recommended as Best Oracle Training Institute in Chennai with placements. Excellent Oracle training. Oracle 9I Database Setup' title='Oracle 9I Database Setup' />CONNECT TARGET lt targetconnectstring STARTUP NOMOUNT RUN You need to allocate channels if not using recovery catalog. Media manager parameter string must be same as in Section 1. ALLOCATE CHANNEL FOO TYPE SBT PARMS lt media manager parameter string ALLOCATE CHANNEL FOO2 TYPE DISK RESTORE CONTROLFILE from AUTOBACKUP ALTER DATABASE MOUNT RECOVER DATABASE ALTER DATABASE OPEN RESETLOGS You must take a new whole database backup after resetlogs as in Section 2. Section 5. 4 Block recovery Block recovery can be used to recover a corrupted blocks. It is not intended to recover complete datafile. Usually, the corruption is reported in alert logs, trace files or results of SQL commands For example, as a result of SQL command SQL SELECT FROM emp NAMEORA 0. ORACLE data block corrupted file 7, block 2. ORA 0. 15. 78 ORACLE data block corrupted file 7, block 2. Enable the backup optimization feature introduced in 9i to make sure that RMAN wont backup an archivelog or datafile if there already exists a backup of that file. ORA 0. 15. 78 ORACLE data block corrupted file 4, block 1. ORA 0. 11. 10 data file 7 oracledbstbs0. ORA 0. 11. 10 data file 4 oracledbstbs0. A87860_01/doc/network.817/a76933/netwiz4.gif' alt='Oracle 9I Database Setup' title='Oracle 9I Database Setup' />Use the following BLOCKRECOVER command to recover the corrupted blocks listed above BLOCKRECOVER DATAFILE 7 BLOCK 2. DATAFILE 4 BLOCK 1. The BLOCKRECOVER command can also be used to repair all corrupted blocks listed in VBACKUPCORRUPTION and VCOPYCORRUPTION. These views are populated whenever an RMAN process peforms a complete scan of a file for the purpose of backing it up, such as with the BACKUP or COPY command. Use the following command to repair all blocks listed in the VxxxCORRUPTION views command BLOCKRECOVER CORRUPTION LIST Section 5. Install Handling Mods Gta Sa. Disaster recovery A disaster recovery scenario assumes that you have lost everything. To perform recovery in this case, you would have to restore initialization parameters manually. Then use RMAN to restore and recover the database as described in this section. The commands below assume that all initialization parameter files are in place and the complete directory structure for datafiles is recreated. Ensure you set your NLSLANG environment variable. NLSLANG americanamerica. Start RMAN without the TARGET option, and use the following commands to restore and recover the database SET DBID lt databaseid use database id from RMAN output as explained in Section 2. CONNECT TARGET lt targetconnectstring STARTUP NOMOUNT RUN You need to allocate channels if not using recovery catalog. Media manager parameter string must be same as in Section 1. ALLOCATE CHANNEL FOO TYPE SBT PARMS lt media manager parameter string ALLOCATE CHANNEL FOO2 TYPE DISK Optionally you can use SET NEWNAME and SWITCH commands as described in Section 5. RESTORE CONTROLFILE from AUTOBACKUP ALTER DATABASE MOUNT RESTORE DATABASE RECOVER DATABASE ALTER DATABASE OPEN RESETLOGS You must take a new whole database backup after resetlogs as in Section 2. Section 5. 6 Database Point in time recovery This scenario assumes that all initialization files and the current controlfile are in place and you want to recover to a point in time 2. Ensure you set your NLSLANG environment variable. NLSLANG americanamerica. STARTUP MOUNT FORCE RUNSET UNTIL TIME TODATE2. RESTORE DATABASE RECOVER DATABASE ALTER DATABASE OPEN RESETLOGS You must take a new whole database backup after resetlogs as in Section 2. Top 5. 0 Oracle DBA Interview Questions And Answers. Oracle DBA Interview Questions and Answers will guide us now that the Oracle Database commonly referred to as Oracle RDBMS or simply Oracle is a relational database management system RDBMS produced and marketed by Oracle Corporation. As of 2. 00. 9, Oracle remains a major presence in database computing. So get preparation of Oracle DBA Jobs with this Oracle DBA Interview Questions with Answers guide.