Sunday, January 10, 2021

 Drop and recreate Temporary tablespace


CREATE TEMPORARY TABLESPACE TEMP_01 TEMPFILE '/u02/oradata/DEV/temp_01.dbf' SIZE 500m autoextend on next 10m maxsize unlimited;

ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMP_01;

DROP TABLESPACE TEMP including contents and datafiles;

CREATE TEMPORARY TABLESPACE TEMP TEMPFILE '/u02/oradata/DEV/temp01.dbf' SIZE 500m autoextend on next 10m maxsize unlimited;

ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMP;

DROP TABLESPACE TEMP_01 including contents and datafiles;


Add extra temp files
================

alter tablespace temp add tempfile '/u02/oradata/DEV/temp02.dbf' size 500m reuse autoextend on next 10m maxsize unlimited;

alter tablespace temp add tempfile '/u02/oradata/DEV/temp03.dbf' size 500m reuse autoextend on next 10m maxsize unlimited;

check the undo size
==============

SELECT SUM(a.bytes)/(1024*1024*1024) as
 UNDO_SIZE  FROM v$datafile a,
v$tablespace b,
dba_tablespaces c 
WHERE c.contents = 'UNDO'   AND c.status = 'ONLINE'   
AND b.name = c.tablespace_name   AND a.ts# = b.ts#;

Saturday, January 2, 2021

 

 RMAN Duplicate


Duplicate a Database Using RMAN in Oracle Database 11g Release 2


https://oracle-base.com/articles/11g/duplicate-database-using-rman-11gr2


Recovery Manager (RMAN) Database Duplication Enhancements in Oracle Database 12c Release 1 (12.1)


https://oracle-base.com/articles/12c/recovery-manager-rman-database-duplication-enhancements-12cr1

  RMAN-20207: UNTIL TIME or RECOVERY WINDOW is before RESETLOGS time https://shivanandarao-oracle.com/2012/12/05/rman-20207-until-time-or-re...