1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| export ORACLE_SID=$SID_TEST
sqlplus -s "/as sysdba" << eof
spool dupli${SID_TEST}.lst
startup nomount pfile=${PFILE_REP}/init${SID_TEST}_0.ora
create controlfile set database $SID_TEST
logfile
group 1 ('${DATA_REP}/${SID_TEST}/log/${SID_PROD}/log1${SID_PROD}.dbf') SIZE 1M,
group 2 ('${DATA_REP}/${SID_TEST}/log/${SID_PROD}/log2${SID_PROD}.dbf') SIZE 1M,
group 3 ('${DATA_REP}/${SID_TEST}/log/${SID_PROD}/log3${SID_PROD}.dbf') SIZE 1M
resetlogs
datafile
'${DATA_REP}/${SID_TEST}/oradata/data${SID_PROD}_1.dbf',
'${DATA_REP}/${SID_TEST}/oraindx/index${SID_PROD}_1.dbf',
'${DATA_REP}/${SID_TEST}/oradata/rolbs${SID_PROD}_1.dbf',
'${DATA_REP}/${SID_TEST}/oradata/syst${SID_PROD}.dbf',
'${DATA_REP}/${SID_TEST}/oradata/tempo${SID_PROD}_1.dbf',
'${DATA_REP}/${SID_TEST}/oradata/tool${SID_PROD}_1.dbf'
maxinstances 8
maxlogfiles 32;
shutdown immediate
spool off
exit
eof |
Partager