Question: How to find out the existence of different types of files and backups available with the usage of space in the Flash Recovery Area? Starting with Oracle 10G Release 2, a new view has been made available: V$FLASH_RECOVERY_AREA_USAGE. V$FLASH_RECOVERY_AREA_USAGE shows the percentage of the total disk quota used by different types of files, and […]
Oracle 10g
Database Crashed With ORA-19815, ORA-19809, ORA-16038
The Problem Instance terminated due to error 16038 as its not able to archive the log in FRA: ORA-19815: WARNING: db_recovery_file_dest_size of 99614720000 bytes is 100.00% used, and has 0 remaining bytes available. Sat Mar 8 00:57:07 2008 ************************************************************************ You have following choices to free up space from flash recovery area: 1. Consider changing RMAN […]
Rman Backups Failing with RMAN-20004
The Problem Recovery catalog has been configured. Production Database has been cloned and a connection has been made from the clone to Catalog database using rman. DBID of the clone instance has not been changed, (so is identical with source DBID). Rman backup fails with: RMAN-00571: RMAN-00569: RMAN-00571: RMAN-03002: failure of resync command at 01/5/2009 […]
Oracle Database – How to Rename a Datafile with Special Characters Created by Mistake
Question: We have mistakenly create a datafile with special charatcers. Also we get error ORA-01516 when we try to rename it using the normal method: sql> alter database rename file ‘old_file_name’ to ‘new_file_name’; The Solution 1. Bring the Tablespace offline. sql> alter tablespace [tablespace name] offline; 2. Copy/Move the File at the OS level specifying […]
How to Rename or Move Datafiles and Logfiles in Oracle Database
How to Rename or Move Datafiles and Logfiles In many situations, a datafile or logfile must be renamed inside Oracle. Whereas the contents of the file remain valid, you need to define a new physical name or location for it. For example: You want to move a database file to a different disk for performance […]
How To Size UNDO Tablespace For Automatic Undo Management
Sizing an UNDO tablespace requires three pieces of data. (UR) UNDO_RETENTION in seconds (UPS) Number of undo data blocks generated per second (DBS) Overhead varies based on extent and file size (db_block_size) The undo space needed is calculated as: UndoSpace = UR * (UPS * DBS) Two of the pieces of information can be obtained […]
How to duplicate a Oracle Database to a previous Incarnation
NOTE: In 11.2, there is a new option to duplicate syntax, INCARNATION, which allows you to duplicate the database to a previous incarnation using the RMAN duplicate command. For example: run { allocate auxiliary channel ch1 type ‘SBT_TAPE’ parms’ENV=(NB_ORA_CLIENT=xxx.com,NB_ORA_SERV=xxx.com)’; allocate auxiliary channel ch2 type ‘SBT_TAPE’ parms’ENV=(NB_ORA_CLIENT=xxx.com,NB_ORA_SERV=xxx.com)’; allocate auxiliary channel ch3 type ‘SBT_TAPE’ parms’ENV=(NB_ORA_CLIENT=xxx.com,NB_ORA_SERV=xxx.com)’; duplicate database […]
How to Modify an Existing ASM Spfile in a RAC Environment
This post provides an example on how to modify an existing Automatic Storage Management (ASM) spfile in a two-node Real Application Clusters (RAC) Environment. These steps can be applied to a multiple node Real Application Clusters (RAC) Environment. Applies To: Oracle Database – Enterprise Edition – Version 10.2.0.1 to 11.1.0.7 [Release 10.2 to 11.1] If […]
How to list all the named events set for a database
Oracle Internal Events, both named event (eg: ERRORSTACK) as numeric events (eg 10046) can be set at the session level. This post outlines how DataBase Administrators can verify which events have been set in a specific session or in the entire system. This can be achieved through the ORADEBUG functionality. The exact syntax to use […]
Step By Step Guide To Create Physical Standby On Normal File System For ASM Primary using RMAN
This post covers the detailed steps for creating a physical standby database on a normal file system using RMAN for a primary database in ASM. Overview Here the Standby database can be created using the following 2 methods: Normal Restore and Recovery using RMAN. Creating a Duplicate database for Standby using RMAN. Method 1 Perform […]