Escolar Documentos
Profissional Documentos
Cultura Documentos
Follow these steps: STEP 1: Shutdown the database if it is running. STEP 2: Take a full offline backup. STEP 3: Set the following parameters in parameter file. LOG_ARCHIVE_FORMAT=ica%s.%t.%r.arc LOG_ARCHIVE_DEST_1=location=/u02/ica/arc1 If you want you can specify second destination also LOG_ARCHIVE_DEST_2=location=/u02/ica/arc1 Step 3: Start and mount the database. SQL> STARTUP MOUNT STEP 4: Give the following command SQL> ALTER DATABASE ARCHIVELOG; STEP 5: Then type the following to confirm. SQL> ARCHIVE LOG LIST; STEP 6: Now open the database SQL>alter database open; Step 7: It is recommended that you take a full backup after you brought the database in archive log mode. To again bring back the database in NOARCHIVELOG mode. Follow these steps: STEP 1: Shutdown the database if it is running. STEP 2: Comment the following parameters in parameter file by putting " # " . # LOG_ARCHIVE_DEST_1=location=/u02/ica/arc1 # LOG_ARCHIVE_DEST_2=location=/u02/ica/arc2 # LOG_ARCHIVE_FORMAT=ica%s.%t.%r.arc
STEP 3: Startup and mount the database. SQL> STARTUP MOUNT; STEP 4: Give the following Commands SQL> ALTER DATABASE NOARCHIVELOG; STEP 5: Shutdown the database and take full offline backup.
$sqlplus Enter User:/ as sysdba SQL> ARCHIVE LOG LIST If the database is running in archive log mode then you can take online backups. Let us suppose we want to take online backup of "USERS" tablespace. You can query the V$DATAFILE view to find out the name of datafiles associated with this tablespace. Lets suppose the file is "/u01/ica/usr1.dbf ". Give the following series of commands to take online backup of USERS tablespace. $sqlplus Enter User:/ as sysdba SQL> alter tablespace users begin backup; SQL> host cp /u01/ica/usr1.dbf /u02/backup
SQL> ALTER DATABASE DATAFILE SQL>alter database open; Option 2:When you have the Backup.
'/u01/ica/usr1.dbf '
offline drop;
If the database is running in Noarchivelog mode and if you have a full backup. Then there are two options for you. i . Either you can drop the damaged datafile, if it does not contain important information which you can afford to loose. ii . Or you can restore from full backup. You will loose all the changes made to the database since last full backup. To drop the damaged datafile follow the steps shown previously. To restore from full database backup. Do the following. STEP 1: Take a full backup of current database. STEP 2: Restore from full database backup i.e. copy all the files from backup to their original locations. (UNIX) Suppose the backup is in "/u2/oracle/backup" directory. Then do the following. $cp /u02/backup/* /u01/ica
This will copy all the files from backup directory to original destination. Also remember to copy the control files to all the mirrored locations.
Then just do the following. STEP 1: Start sqlplus STEP 2: connect / as sysdba STEP 3: Start and do not mount a database like this. SQL> STARTUP NOMOUNT STEP 4: Run the "CR.SQL" script file. STEP 5: Mount and Open the database. SQL>alter database mount; SQL>alter database open; If you do not have a backup of Control file creation statement. Then you have to manually give the CREATE CONTROL FILE statement. You have to write the file names and sizes of all the datafiles. You will lose any datafiles which you do not include. Refer to "Managing Control File" topic for the CREATE CONTROL FILE statement.
STEP 4. Now open the database SQL>alter database open; Recovering from the Lost Archived Files: If you have lost the archived files. Then Immediately shutdown the database and take a full offline backup.
Database Replay
Explore Database Replay, the new tool that captures SQL statements and lets you replay them at will.
Partitioning
Learn about Referential, Internal, and Virtual Column partitioning; new sub-partitioning options; and more.
Edition-Based Redefinition
It's revolutionary: Patch or update your application's data objects while the application remains in uninterrupted use (in Release 2 only).
Schema Management
Add columns with a default value easily and explore invisible indexes, virtual columns, and read only tables.
PL/SQL Performance
Explore in-lining of code, "real" native compilation, PLS timer, use of simple integer, and more.
Transaction Management
Get an introduction to Flashback Data Archive and explore Enterprise Manager's LogMiner interface.
Security
Learn about Tablespace Encryption, case-sensitive passwords, data masking, and other features.
Manageability
Explore automatic memory management, multicolumn statistics, online patching, and more features.
Resiliency
Explore Automatic Health Monitor, Automatic Diagnostic Repository, and other new resiliency features.
Compression
Support for data compression is nothing new in Oracle Database, but 11g takes the concept to a new level with Advanced and Hybrid Columnar Compression.
Data Guard
Query the physical standby database in real time without shutting down recovery, just for starters.
SecureFiles
Explore next-generation LOBs: LOB encryption, compression, deduplication, and asynchronicity.
A btree index is in the form of binary tree and is the default index type Bitmap index has a bitmap for each distinct value indexed and each bit represents a row that may or may not contained the index value