此多媒体陈列厅包含 23 张图像。
数据库软件安装过程 dbca运行过程 sqlplus执行 Oracle 8i完整 … 继续阅读
1.Back Up database
一般情况下rman备份
2.备份ocr和vote disk
[root@rac2 bin]# ./ocrconfig -export /tmp/ocr_export.bak [root@rac2 bin]# more /etc/oracle/ocr.loc ocrconfig_loc=/dev/raw/raw11 local_only=FALSE [root@rac2 bin]# dd if=/dev/raw/raw11 of=/tmp/ocr_dd.bak [root@rac2 bin]# dd if=/dev/raw/raw31 of=/tmp/vote_dd.bak
3.Update Oracle Time Zone Definitions
Actions for the DSTv4 update in the 10.2.0.5 patchset [ID 1086400.1]
4.Stopping All Processes
滚动升级关闭一个节点所有进程,非滚动升级关闭所有进程
$ isqlplusctl stop $ emctl stop dbconsole $ srvctl stop service -d db_name [-s service_name_list [-i inst_name]] $ srvctl stop instance -d db_name -i inst_name $ srvctl stop asm -n node $ srvctl stop listener -n node [-l listenername] $ srvctl stop nodeapps -n node # CRS_home/bin/crsctl stop crs(root执行,滚动升级不需要关闭)
5.Back Up the System
$ORACLE_BASE中文件,主要包括(db和crs安装文件/oraInventory文件)
6.升级crs软件
执行./runInstaller选择crs目录
执行下面命令
# CRS_home/bin/crsctl stop crs
# CRS_home/install/root102.sh
7.升级db软件
关闭crs和db所有进程(步骤同4)
执行./runInstaller选择db目录
执行下面命令
# ORACLE_HOME/root.sh
8.升级数据库
8.1)检查数据库升级需要满足条件,对存在不合适之处,进行修正
How to Download and Run Oracle’s Database Pre-Upgrade Utility [ID 884522.1]
SQL> STARTUP UPGRADE SQL> SPOOL upgrade_info.log SQL> @/rdbms/admin/utlu102i.sql SQL> SPOOL OFF SQL> ALTER SYSTEM SET CLUSTER_DATABASE=FALSE SCOPE=spfile; --其他根据upgrade_info.log中提示修改 SQL> SHUTDOWN IMMEDIATE SQL> STARTUP UPGRADE
8.2)启动监听
srvctl start listener -n node
8.3)升级数据库
SQL> SPOOL patch.log SQL> @?/rdbms/admin/catupgrd.sql --检查patch.log,发现有错误查找原因,重新执行catupgrd.sql脚本 SQL> SPOOL OFF SQL> SHUTDOWN IMMEDIATE SQL> STARTUP SQL> @?/rdbms/admin/utlrp.sql SQL> ALTER SYSTEM SET CLUSTER_DATABASE=TRUE SCOPE=spfile; --包括其他修改调整参数 SQL> SHUTDOWN IMMEDIATE --使用rac管理相关命令,启动需要启动资源
9.修改相关目录权限
# ORACLE_HOME/install/changePerm.sh
具体操作步骤请阅读README.html
最近因为一个测试环境需要oracle 9i,我在Oracle linux 4.8上安装,竟然遇到几个问题记录下:
1.运行runInstaller提示如下错误
[oracle@xifenfei Disk1]$ ./runInstaller [oracle@xifenfei Disk1]$ Initializing Java Virtual Machine from /tmp/OraInstall2012-03-04_09-32-16PM/jre/bin/java. Please wait... Error occurred during initialization of VM Unable to load native library: /tmp/OraInstall2012-03-04_09-32-16PM/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
解决方法:打上p3006854_9204_LINUX.zip补丁
[root@xifenfei tmp]$ unzip p3006854_9204_LINUX.zip Archive: p3006854_9204_LINUX.zip creating: 3006854/ inflating: 3006854/rhel3_pre_install.sh inflating: 3006854/README.txt [root@xifenfei 3006854]# cd 3006854 [root@xifenfei 3006854]# chmod +x rhel3_pre_install.sh [root@xifenfei 3006854]# ./rhel3_pre_install.sh Applying patch... Ensuring permissions are correctly set... Done. Patch successfully applied
2.在Linking Oracle9i到63%时入到如下错误
解决办法:在/usr/bin目录下有gcc 和 gcc32两个文件,执行 mv gcc gcc296 和 mv gcc32 gcc,完成之后,retry安装界面
[root@xifenfei tmp]# cd /usr/bin [root@xifenfei bin]# ls gcc* gcc gcc32 gcc4 [root@xifenfei bin]# mv gcc gcc296 [root@xifenfei bin]# mv gcc32 gcc
3.执行netca/dbca报如下错误
[oracle@xifenfei Disk1]$ dbca /u01/oracle/jre/1.1.8/bin/../lib/i686/green_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so) Unable to initialize threads: cannot find class java/lang/Thread Could not create Java VM [oracle@xifenfei Disk1]$ netca /u01/oracle/jre/1.1.8/bin/../lib/i686/native_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so) Unable to initialize threads: cannot find class java/lang/Thread Could not create Java VM
解决办法:在环境变量中加上LD_ASSUME_KERNEL=2.4.1
vi .bash_profile --加上下面语句 export LD_ASSUME_KERNEL=2.4.1 source ~/.bash_profile
17813235971 |
QQ 咨询 |