Académique Documents
Professionnel Documents
Culture Documents
But automatic archival is disabled yet and DBA must do manual archival by commands like the
followings:
SQL> alter system archive log current;
SQL> alter system archive log all;
But this solution is not permanent and automatic archival will be disabled again after restarting the
database; so for permanent change we must set parameter log_archive_start to TRUE:
SQL> alter system set log_archive_start=TRUE scope=spfile;
Disabling archivelog mode
To disabling ARCHIVELOG mode we must run the following commands:
SQL> alter system set log_archive_start=False scope=spfile;
SQL> create pfile from spfile;
SQL> shutdown immediate;
RMAN>connect target /
RMAN>show all;
MAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO %F; #
default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO
/u01/app/oracle/product/9.2.0/dbs/snapcf_TARGDB.f
DBID
3386862614
Copy dbid
number and remember the sid
6.Now moving this two backup pieces to new machine at tmp directory
#scp -r
NEWMACHINE
1.First change the permission for tmp (ex:- oracle@#chown oracle tmp
and backup pieces too #chown oracle o1-c-1p33popo3po2p
#chown oracle 09opqucsdj)
2.export ORACLE_SID=dbase1
oracle@./rman
RMAN>connect target /
3.Set DBID
RMAN> set dbid 3386862614
executing command: SET DBID
4.RMAN> startup nomount
startup failed: ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file /oracle/app/oracle/product/10.2.0/db_1/dbs/initdbase1.ora
starting Oracle instance without parameter file for retrival of spfile
Oracle instance started
Total System Global Area 159383552 bytes
Fixed Size 2019224 bytes
Variable Size 67108968 bytes
Database Buffers 83886080 bytes
RAM>run{
SET UNTIL SCN 745212;
> RESTORE DATABASE;
> SWITCH DATAFILE ALL;
> RECOVER DATABASE;
>}
12)Open the Database resetlogs option.
RMAN> alter database open resetlogs;