ibm_97_at_yahoo.com wrote:
See the Oracle Backup and Recovery Guide.
Below is some stuff in my shop. Ignore the custom scripts.
>Steps to create to clone a Oracle instance and rename the database name
- Verify disk space: df -k
- Create new initXXXX.ora file in $ORACLE_HOME/dbs and link with
$ORACLE_BASE/admin/XXXX/pfile
- Create backup control file in udump.
ALTER DATABASE BACKUP CONTROLFILE TO TRACE;
- Copy trace to CREATE subdirectory under $ORACLE_BASE/admin/XXXX/
- Verify instance shutdown from SVRMGR if it already exist.
If this box has the Sun HAC on consult the UNIX SYSADM before
starting.
- Run ofaren to rename files to new OFA standard: ofaren XXXX YYYY
- Run ofaadd to create files to new OFA standard if they don't exist:
ofaren XXXX
- If needed copy cold DBF files to OFA libraries. /u*/oradata/XXXX
- Update /var/opt/oratab
- Update .profile with new ORACLE_SID; Issue .PROFILE and check via
ENV command.
- Modify trace control file.
a) Update REUSE to SET and
b) Verify RESETLOGs and Remove NOARCHIVELOG
c) Remove comments; Verify ALTER commands for DATABASE are gone.
d) Update XXXX to YYYY via substitute command.
- Update Listener.ora and tnsnames.ora to point at YYYY
Recycle listener: lsnrctl stop lsnrctl start
- STARTUP DATABASE NOMOUNT after verifying proper directory from
svrmgrl.
- Run control file create. cntlXXXX.SQL
- If this is a hot backup you will net to perform the following
until to recovery point.
a) Alter database recover until cancel using backup controfile;
b) Alter database recover logfile ' /path/1_xxxx_YYYY.arc';
This one will prompt for the next archive.
c) Alter database recover automatic logfile '/path/1_xxxx_YYYY.arc';
This one will not prompt for the next archive.
d) Alter database recover cancel;
e) Alter database open resetlogs.
- Alter Database open resetlogs;
- Commit;
- Use SQLPLUS to verify via dual and query v$datafile on name and
status.
- Use client software to verify TNSNAMES.
- Shutdown and startup the database again.
- If possible use DBSHUT and DBSTART to verify oratabs.
- Turnover to developers
Received on Tue Aug 29 2000 - 06:51:26 CDT