Академический Документы
Профессиональный Документы
Культура Документы
158662656 bytes
Fixed Size
Variable Size
Database Buffers
Redo Buffers
2226456
104859368
46137344
5439488
bytes
bytes
bytes
bytes
So to work around this we will generate a text file via SQL*PLUS which will cont
ain the SET NEWNAME commands and call this file from RMAN.
These are the contents of the text file rename_files.sql
set head off pages 0 feed off echo off verify off
set lines 200
spool rename_datafiles.lst
select SET NEWNAME FOR DATAFILE
|| FILE# ||
TO
e,instr(name, / ,-1)+1) ||
; from v$datafile;
spool off
exit;
||
/home/oracle/sqlfun/ || substr(na
1
2
3
4
5
6
7
8
TO
TO
TO
TO
TO
TO
TO
TO
'/home/oracle/sqlfun/system01.dbf';
'/home/oracle/sqlfun/sysaux01.dbf';
'/home/oracle/sqlfun/undotbs01.dbf';
'/home/oracle/sqlfun/users01.dbf';
'/home/oracle/sqlfun/threatened_fauna_data.dbf';
'/home/oracle/sqlfun/example_temp01.dbf';
'/home/oracle/sqlfun/EXAMPLE_5';
'/home/oracle/sqlfun/INDEX_DATA_6';
file name=/home/oracle/sqlfun/sys
file name=/home/oracle/sqlfun/sys
file name=/home/oracle/sqlfun/und
file name=/home/oracle/sqlfun/use
file name=/home/oracle/sqlfun/thr
file name=/home/oracle/sqlfun/exa
file name=/home/oracle/sqlfun/EXA
file name=/home/oracle/sqlfun/IND
TO
||
/home/oracle/sql