2、FTP传输打好的包
js_znjh_2./app/oracle$ftp 134.96.14.39
Connected to 134.96.14.39.
220 js_znjh_1 FTP server (Version 4.2 Sat Sep 8 09:49:58 CDT 2007) ready.
Name (134.96.14.39:oracle): oracle
331 Password required for oracle.
Password:
230-Last unsuccessful login: Tue Dec 29 14:36:56 BEIST 2009 on ftp from ::ffff:134.98.103.55
230-Last login: Thu Jan 7 15:06:50 BEIST 2010 on /dev/pts/2 from 134.98.83.38
230 User oracle logged in.
ftp> cd /app/oracle
250 CWD command successful.
ftp> bin
200 Type set to I.
ftp> dir
200 PORT command successful.
150 Opening data connection for /bin/ls.
total 1408
drwxrwxr-x 16 oracle dba 4096 Jan 12 2009 7592346
drwxr-x--- 3 oracle dba 256 Oct 15 11:00 admin
drwxr-xr-x 2 root system 256 Oct 12 14:21 lost+found
drwxr-x--- 5 oracle dba 256 Oct 15 15:06 oraInventory
drwxrwx--- 6 oracle dba 256 Oct 14 11:58 oraInventory_bak
-rw-r----- 1 oracle dba 713899 Oct 14 09:10 p7592346_10204_CPU.zip
drwxrwxr-x 3 oracle dba 256 Oct 13 09:26 product
drwxr-xr-x 2 oracle dba 256 Oct 13 09:09 utils
drwxr-xr-x 2 oracle dba 256 Jan 07 10:24 oracle.tar
226 Transfer complete.
ftp> get oracle.tar
3、解压:
ftp> quit
221 Goodbye.
js_znjh_2./app/oracle$ls
lost+found oracle.tar
js_znjh_2./app/oracle$tar xvf oracle.tar
4、在源库上备份控制文件并拷贝到目标库
5、在源库上根据spfile文件生成pfile文件并拷贝到目标库
6、源库先停应用,再停库,后拷贝源库的数据库文件(停机拷贝)
7、启源库
8、目标库做更改
SQL/PLUS登录报错:
js_znjh_2./app/oracle$export ORACLE_SID=idep2
js_znjh_2./app/oracle$sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Jan 7 13:21:18 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
exec(): 0509-036 Cannot load program oracleidep2 because of the following errors:
0509-130 Symbol resolution failed for /usr/lib/libc.a[aio_64.o] because:
0509-136 Symbol kaio_rdwr64 (number 1) is not exported from
dependent module /unix.
0509-136 Symbol listio64 (number 2) is not exported from
dependent module /unix.
0509-136 Symbol acancel64 (number 3) is not exported from
dependent module /unix.
0509-136 Symbol iosuspend64 (number 4) is not exported from
dependent module /unix.
0509-136 Symbol aio_nwait (number 5) is not exported from
dependent module /unix.
0509-136 Symbol aio_nwait64 (number 6) is not exported from
dependent module /unix.
0509-136 Symbol aio_nwait_timeout (number 7) is not exported from
dependent module /unix.
0509-136 Symbol aio_nwait_timeout64 (number 8) is not exported from
dependent module /unix.
0509-026 System error: Error 0
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
ERROR:
ORA-12547: TNS:lost contact
网上搜索提示说:AIO有问题,或没开放,命令查看:
js_znjh_2./dev$lsattr -El aio0
autoconfig defined STATE to be configured at system restart True
fastpath enable State of fast path True
kprocprio 39 Server PRIORITY True
maxreqs 4096 Maximum number of REQUESTS True
maxservers 10 MAXIMUM number of servers per cpu True
minservers 1 MINIMUM number of servers True
发现没问题,