Monday, March 16, 2015

Check online and offline datafiles

select a.file#, b.name ts_name from v$datafile a, v$tablespace b where a.ts#=b.ts# and b.name not in ('SYSTEM','SYSAUX') and a.status='ONLINE'




select a.file# from v$datafile a, v$tablespace b where a.ts#=b.ts# and b.name  in ('UNDOTBS1','UNDOTBS2');




select a.file# from v$datafile a, v$tablespace b where a.ts#=b.ts# and b.name not in ('SYSTEM','SYSAUX') and a.status='OFFLINE'

No comments:

Post a Comment

Featured Post

Apply Patch 22191577 latest GI PSU to RAC and DB homes using Opatch auto or manual steps

Patch 22191577: GRID INFRASTRUCTURE PATCH SET UPDATE 11.2.0.4.160119 (JAN2016) Unzip the patch 22191577 Unzip latest Opatch Version in or...