DB Refresh
DB Refresh
DB Refresh
Steps:
1)
SELECT rpad(A.TABLESPACE_NAME,10),rpad(A.FILE_NAME,55),SUM(B.BYTES/1048567)
FROM DBA_TEMP_FILES A, DBA_FREE_SPACE B WHERE A.FILE_ID=B.FILE_ID GROUP BY
rpad(A.TABLESPACE_NAME,10),rpad(A.FILE_NAME,55);
2)
---public DB Links
------------private dblinks
SELECT 'ALTER TABLESPACE ' || VTS.NAME || ' ADD TEMPFILE ''' || VTF.NAME|| '''SIZE
' || VTF.create_bytes / (1024 * 1024) || 'MB AUTOEXTEND ON;' FROM V$TABLESPACE
VTS, V$TEMPFILE VTF WHERE VTS.ts# = VTF.ts#;
4)
5)
6)
alter system set job_queue_processes=0;----------------This is important --- leave the value 0 after
refresh.
select owner, object_name, object_type, status from dba_objects where status <>'VALID';
show parameter
Prepare a script