Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

Query to Moving data files between disks

$
0
0
set trimspool on wrap off
set heading off
set verify off
set pages 1000 lines 1000
spool rename.sql

select    'alter database rename file ''' ||
     name || ''' to ''' ||
     replace(name || ''';', '/u01', '/u02')
from     v$datafile
/

select    'alter database rename file ''' ||
    member || ''' to ''' ||
    replace(member || ''';', '/u01', '/u02')
from    v$logfile
/
spool off

Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>