Solaris8上迁移oracle8i---上
从251服务器上备份数据库,迁移到81服务器上。
两个服务器系统都是Solaris 8系统。oracle是8i 的。
root@mem #cat /etc/release
Solaris 8 2/04 s28s_hw4wos_05a SPARC
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
Assembled 08 January 2004
root@mem # uname -a
SunOS mem 5.8 Generic_117350-28 sun4u sparc SUNW,Sun-Fire-V890
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
PL/SQL Release 8.1.7.4.0 - Production
CORE 8.1.7.0.0 Production
TNS for Solaris: Version 8.1.7.4.0 - Production
NLSRTL Version 3.4.1.0.0 - Production
1、全备份251服务器的数据库,脚本:
bash-2.03$ cat rmanbak.sh
rman target / nocatalog <<EOF
run {
allocate channel c1 type disk format '/u2/oracle/rman/df_%d_%s_%p';
allocate channel c2 type disk format '/u2/oracle/rman/df_%d_%s_%p';
allocate channel c3 type disk format '/u2/oracle/rman/df_%d_%s_%p';
allocate channel c4 type disk format '/u2/oracle/rman/df_%d_%s_%p';
allocate channel c5 type disk format '/u2/oracle/rman/df_%d_%s_%p';
allocate channel c6 type disk format '/u2/oracle/rman/df_%d_%s_%p';
backup database;
sql 'alter system archive log current';
release channel c1;
release channel c2;
release channel c3;
release channel c4;
release channel c5;
release channel c6;
# backup all archive logs
allocate channel c1 type disk format '/u2/oracle/rman/al_%d_%s_%p';
allocate channel c2 type disk format '/u2/oracle/rman/al_%d_%s_%p';
allocate channel c3 type disk format '/u2/oracle/rman/al_%d_%s_%p';
allocate channel c4 type disk format '/u2/oracle/rman/al_%d_%s_%p';
BACKUP ARCHIVELOG ALL DELETE INPUT;
release channel c1;
release channel c2;
release channel c3;
release channel c4;
# backup CONTROLFILE
allocate channel c1 type disk format '/u2/oracle/rman/cntrl_%d_%s_%p';
BACKUP CURRENT CONTROLFILE;
release channel c1;
}
EOF
bash-2.03$
bash-2.03$ cat rr.log
Recovery Manager: Release 8.1.7.4.0 - Production
RMAN-06005: connected to target database: PROD (DBID=4167122059)
RMAN-06009: using target database controlfile instead of recovery catalog
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24> 25> 26> 27> 28> 29> 30> 31> 32>
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c1
RMAN-08500: channel c1: sid=24 devtype=DISK
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c2
RMAN-08500: channel c2: sid=33 devtype=DISK
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c3
RMAN-08500: channel c3: sid=21 devtype=DISK
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c4
RMAN-08500: channel c4: sid=35 devtype=DISK
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c5
RMAN-08500: channel c5: sid=29 devtype=DISK
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c6
RMAN-08500: channel c6: sid=34 devtype=DISK
RMAN-03022: compiling command: backup
RMAN-03023: executing command: backup
RMAN-08008: channel c1: starting full datafile backupset
RMAN-08502: set_count=117 set_stamp=784474080 creation_time=28-MAY-12
RMAN-08010: channel c1: specifying datafile(s) in backupset
RMAN-08522: input datafile fno=00404 name=/u5/testdata/invd05.dbf
RMAN-08522: input datafile fno=00395 name=/u5/testdata/invd03.dbf
.......................省略线..........................
RMAN-08522: input datafile fno=00375 name=/u5/testdata/pax02.dbf
RMAN-08008: channel c2: starting full datafile backupset
RMAN-08502: set_count=118 set_stamp=784474081 creation_time=28-MAY-12
RMAN-08010: channel c2: specifying datafile(s) in backupset
RMAN-08522: input datafile fno=00355 name=/u5/testdata/dxtd_db.dbf
RMAN-08522: input datafile fno=00384 name=/u5/testdata/invx03.dbf
.......................省略线..........................
RMAN-08522: input datafile fno=00377 name=/u5/testdata/benx02.dbf
RMAN-08008: channel c3: starting full datafile backupset
RMAN-08502: set_count=119 set_stamp=784474082 creation_time=28-MAY-12
RMAN-08010: channel c3: specifying datafile(s) in backupset
RMAN-08522: input datafile fno=00402 name=/u5/testdata/dxtd_db01.dbf
RMAN-08522: input datafile fno=00394 name=/u5/testdata/dxtx_db1.dbf
.......................省略线..........................
RMAN-08522: input datafile fno=00347 name=/u5/testdata/imcx01.dbf
RMAN-08522: input datafile fno=00369 name=/u5/testdata/iecx02.dbf
RMAN-08008: channel c4: starting full datafile backupset
RMAN-08502: set_count=120 set_stamp=784474087 creation_time=28-MAY-12
RMAN-08010: channel c4: specifying datafile(s) in backupset
RMAN-08522: input datafile fno=00008 name=/u5/testdata/applsysd01.dbf
RMAN-08522: input datafile fno=00356 name=/u5/testdata/dxtx_db.dbf
.......................省略线..........................
RMAN-08522: input datafile fno=00348 name=/u5/testdata/okbd01.dbf
RMAN-08522: input datafile fno=00370 name=/u5/testdata/oex02.dbf
RMAN-08522: input datafile fno=00385 name=/u5/testdata/oed02.dbf
RMAN-08008: channel c5: starting full datafile backupset
RMAN-08502: set_count=121 set_stamp=784474095 creation_time=28-MAY-12
RMAN-08010: channel c5: specifying datafile(s) in backupset
RMAN-08522: input datafile fno=00073 name=/u5/testdata/invd01.dbf
RMAN-08522: input datafile fno=00361 name=/u5/testdata/dxt_datainvx02.dbf
RMAN-08522: input datafile fno=00397 name=/u5/testdata/applsysd05.dbf
RMAN-08522: input datafile fno=00411 name=/u5/testdata/dxtd_db04.dbf
RMAN-08522: input datafile fno=00001 name=/u5/testdata/system01.dbf
RMAN-08011: including current controlfile in backupset
RMAN-08522: input datafile fno=00002 name=/u5/testdata/system02.dbf
RMAN-08522: input datafile fno=00037 name=/u5/testdata/pod01.dbf
.......................省略线..........................
RMAN-08522: input datafile fno=00352 name=/u5/testdata/cuxd01.dbf
RMAN-08522: input datafile fno=00383 name=/u5/testdata/oem_01.dbf
RMAN-08008: channel c6: starting full datafile backupset
RMAN-08502: set_count=122 set_stamp=784474105 creation_time=28-MAY-12
RMAN-08010: channel c6: specifying datafile(s) in backupset
RMAN-08522: input datafile fno=00074 name=/u5/testdata/invx01.dbf
RMAN-08522: input datafile fno=00365 name=/u5/testdata/invd02.dbf
RMAN-08522: input datafile fno=00399 name=/u5/testdata/dxtx_db2.dbf
.......................省略线..........................
RMAN-08522: input datafile fno=00351 name=/u5/testdata/xnix01.dbf
RMAN-08522: input datafile fno=00380 name=/u5/testdata/ecd02.dbf
RMAN-08013: channel c3: piece 1 created
RMAN-08503: piece handle=/u2/oracle/rman/df_PROD_119_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:43:12
RMAN-08008: channel c3: starting full datafile backupset
RMAN-08502: set_count=123 set_stamp=784476674 creation_time=28-MAY-12
RMAN-08010: channel c3: specifying datafile(s) in backupset
RMAN-08522: input datafile fno=00290 name=/u5/testdata/applsysd02.dbf
RMAN-08522: input datafile fno=00368 name=/u5/testdata/applsysd03.dbf
.......................省略线..........................
RMAN-08522: input datafile fno=00349 name=/u5/testdata/okbx01.dbf
RMAN-08522: input datafile fno=00372 name=/u5/testdata/jtfx02.dbf
RMAN-08013: channel c4: piece 1 created
RMAN-08503: piece handle=/u2/oracle/rman/df_PROD_120_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:50:54
RMAN-08013: channel c5: piece 1 created
RMAN-08503: piece handle=/u2/oracle/rman/df_PROD_121_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:54:11
RMAN-08013: channel c1: piece 1 created
RMAN-08503: piece handle=/u2/oracle/rman/df_PROD_117_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:55:11
RMAN-08013: channel c6: piece 1 created
RMAN-08503: piece handle=/u2/oracle/rman/df_PROD_122_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:58:11
RMAN-08013: channel c2: piece 1 created
RMAN-08503: piece handle=/u2/oracle/rman/df_PROD_118_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:59:10
RMAN-08013: channel c3: piece 1 created
RMAN-08503: piece handle=/u2/oracle/rman/df_PROD_123_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:24:22
RMAN-03022: compiling command: sql
RMAN-06162: sql statement: alter system archive log current
RMAN-03023: executing command: sql
RMAN-03022: compiling command: release
RMAN-03023: executing command: release
RMAN-08031: released channel: c1
RMAN-03022: compiling command: release
RMAN-03023: executing command: release
RMAN-08031: released channel: c2
RMAN-03022: compiling command: release
RMAN-03023: executing command: release
RMAN-08031: released channel: c3
RMAN-03022: compiling command: release
RMAN-03023: executing command: release
RMAN-08031: released channel: c4
RMAN-03022: compiling command: release
RMAN-03023: executing command: release
RMAN-08031: released channel: c5
RMAN-03022: compiling command: release
RMAN-03023: executing command: release
RMAN-08031: released channel: c6
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c1
RMAN-08500: channel c1: sid=24 devtype=DISK
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c2
RMAN-08500: channel c2: sid=33 devtype=DISK
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c3
RMAN-08500: channel c3: sid=21 devtype=DISK
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c4
RMAN-08500: channel c4: sid=35 devtype=DISK
RMAN-03022: compiling command: backup
RMAN-03023: executing command: backup
RMAN-08009: channel c1: starting archivelog backupset
RMAN-08502: set_count=124 set_stamp=784478145 creation_time=28-MAY-12
RMAN-08014: channel c1: specifying archivelog(s) in backup set
RMAN-08504: input archivelog thread=1 sequence=2316 recid=2214 stamp=772535543
RMAN-08504: input archivelog thread=1 sequence=2317 recid=2215 stamp=772584904
.......................省略线..........................
RMAN-08504: input archivelog thread=1 sequence=2374 recid=2272 stamp=775525248
RMAN-08504: input archivelog thread=1 sequence=2375 recid=2273 stamp=775574247
RMAN-08009: channel c2: starting archivelog backupset
RMAN-08502: set_count=125 set_stamp=784478145 creation_time=28-MAY-12
RMAN-08014: channel c2: specifying archivelog(s) in backup set
RMAN-08504: input archivelog thread=1 sequence=2376 recid=2274 stamp=775623181
RMAN-08504: input archivelog thread=1 sequence=2377 recid=2275 stamp=775671986
.......................省略线..........................
RMAN-08504: input archivelog thread=1 sequence=2435 recid=2333 stamp=778678756
RMAN-08009: channel c3: starting archivelog backupset
RMAN-08502: set_count=126 set_stamp=784478145 creation_time=28-MAY-12
RMAN-08014: channel c3: specifying archivelog(s) in backup set
RMAN-08504: input archivelog thread=1 sequence=2436 recid=2334 stamp=778727885
.......................省略线..........................
RMAN-08504: input archivelog thread=1 sequence=2494 recid=2392 stamp=781495638
RMAN-08504: input archivelog thread=1 sequence=2495 recid=2393 stamp=781544539
RMAN-08009: channel c4: starting archivelog backupset
RMAN-08502: set_count=127 set_stamp=784478145 creation_time=28-MAY-12
RMAN-08014: channel c4: specifying archivelog(s) in backup set
RMAN-08504: input archivelog thread=1 sequence=2496 recid=2394 stamp=781593220
RMAN-08504: input archivelog thread=1 sequence=2497 recid=2395 stamp=781641969
.......................省略线..........................
RMAN-08504: input archivelog thread=1 sequence=2553 recid=2451 stamp=784464359
RMAN-08504: input archivelog thread=1 sequence=2554 recid=2452 stamp=784478138
RMAN-08013: channel c1: piece 1 created
RMAN-08503: piece handle=/u2/oracle/rman/al_PROD_124_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:34:02
RMAN-08071: channel c1: deleting archivelog(s)
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2316.arc recid=2214 stamp=772535543
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2317.arc recid=2215 stamp=772584904
.......................省略线..........................
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2374.arc recid=2272 stamp=775525248
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2375.arc recid=2273 stamp=775574247
RMAN-08013: channel c4: piece 1 created
RMAN-08503: piece handle=/u2/oracle/rman/al_PROD_127_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:34:24
RMAN-08071: channel c4: deleting archivelog(s)
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2496.arc recid=2394 stamp=781593220
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2497.arc recid=2395 stamp=781641969
.......................省略线..........................
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2553.arc recid=2451 stamp=784464359
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2554.arc recid=2452 stamp=784478138
RMAN-08013: channel c2: piece 1 created
RMAN-08503: piece handle=/u2/oracle/rman/al_PROD_125_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:34:39
RMAN-08071: channel c2: deleting archivelog(s)
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2376.arc recid=2274 stamp=775623181
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2377.arc recid=2275 stamp=775671986
.......................省略线..........................
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2434.arc recid=2332 stamp=778630008
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2435.arc recid=2333 stamp=778678756
RMAN-08013: channel c3: piece 1 created
RMAN-08503: piece handle=/u2/oracle/rman/al_PROD_126_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:34:45
RMAN-08071: channel c3: deleting archivelog(s)
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2436.arc recid=2334 stamp=778727885
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2437.arc recid=2335 stamp=778776599
.......................省略线..........................
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2494.arc recid=2392 stamp=781495638
RMAN-08514: archivelog filename=/u2/oracle/rman/arch/arch_1_2495.arc recid=2393 stamp=781544539
RMAN-03022: compiling command: release
RMAN-03023: executing command: release
RMAN-08031: released channel: c1
RMAN-03022: compiling command: release
RMAN-03023: executing command: release
RMAN-08031: released channel: c2
RMAN-03022: compiling command: release
RMAN-03023: executing command: release
RMAN-08031: released channel: c3
RMAN-03022: compiling command: release
RMAN-03023: executing command: release
RMAN-08031: released channel: c4
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c1
RMAN-08500: channel c1: sid=24 devtype=DISK
RMAN-03022: compiling command: backup
RMAN-03023: executing command: backup
RMAN-08008: channel c1: starting full datafile backupset
RMAN-08502: set_count=128 set_stamp=784480245 creation_time=28-MAY-12
RMAN-08010: channel c1: specifying datafile(s) in backupset
RMAN-08011: including current controlfile in backupset
RMAN-08013: channel c1: piece 1 created
RMAN-08503: piece handle=/u2/oracle/rman/cntrl_PROD_128_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:00:02
RMAN-03022: compiling command: release
RMAN-03023: executing command: release
RMAN-08031: released channel: c1
RMAN>
Recovery Manager complete.
bash-2.03$
bash-2.03$
2、将备份集全部rcp到81服务器上。
3、将数据库HOME打包,拷贝到81。
解压,配置环境变量ORACLE_HOME、ORACLE_SID、pfile等,首先确保能使用sqlplus连上。
更多参考:
Solaris8上迁移oracle8i---下
更多参考:
the specified nodes are not clusterable
根据rowid删除表中重复的行
Agent process exited abnormally during initialization
一次字符乱码的解决过程
rman实验(一)
rman实验(二)
ORA-00600: internal error code, arguments: [keltnf
ORA-00600: ORA-12012 ORA-08102解决
linux下完全删除oracle
INFO: /usr/bin/ld: crt1.o: No such file: No such file or directory
centos4.8_64上安装oracle10201建库报ORA-12547
EM乱码解决
ORA-31613 Master process DM00 failed during startup
ORA-00600: internal error code, arguments: [4194], [29], [27], [], [], [], [], []
ORA-24324 ORA-01041 ORA-03113
centos5.3升级oracle
pdksh-5.2.14-36.el5.i386.rpm
使用rman进行数据库迁移
oracle10.2.0.1升级到10.2.0.4报错
Upgrade Oracle 10g from 10.2.0.1 to 10.2.0.4 (Single Instance)
改oracle的name和dbid
修改oracle实例名
Solaris8上迁移oracle8i---上
Solaris8上迁移oracle8i---下
未备份归档日志导致数据丢失的实验
使用NBU进行数据库迁移
catalog备份数据库
RMAN FORMAT字符串格式化
Error: can not register my instance state - -1
not all alterations performed
The ASM instance configured on the local node is a single-instance ASM
/u01/crs102/bin/crsctl.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared
Initializing the Oracle ASMLib driver: [FAILED]
ORA-00245: control file backup operation failed
WARNING: failed to read mirror side 1 of virtual extent 229 logical extent
模拟恢复参数文件
Interface eth0 checked failed
import server uses ZHS16GBK character set (possible charset conversion)

本文详细介绍了如何在Solaris8系统上迁移Oracle8i数据库,包括全备份、归档日志备份、数据库迁移、环境配置等关键步骤。涵盖了从251服务器到81服务器的迁移流程,并提供了脚本示例和故障排除建议。
252

被折叠的 条评论
为什么被折叠?



