oracle补丁安装
青牛(北京)技术有限公司
文件标识
版 本 号
V1.0
密 级
内部
Oracle补丁安装手册
编制
程虹桥
日期
2006-11-3
审核
日期
批准
日期
修订记录
版本编号
版本日期
修订人
说明
2006-11-3
程虹桥
...
青牛(北京)技术有限公司
文件标识
版 本 号
V1.0
密 级
内部
Oracle补丁安装手册
编制
程虹桥
日期
2006-11-3
审核
日期
批准
日期
修订记录
版本编号
版本日期
修订人
说明
2006-11-3
程虹桥
目 录
3一、
获得Oracle9i补丁p4163445_92070_SOLARIS.zip到WEB服务器
3二、
解压补丁程序:
3三、
安装Oracle补丁,前提中断核心系统程序,停止数据库
4四、
安装补丁程序:
4(1)
通过Xbrowser,以oracle用户登陆到核心系统上。
4(2)
键入cd /export/home1/oraclepatch/Disk1/install
5(3)
点击Next,显示如图:
6(4)
点击Install开始进行安装:
7(5)
当安装到图右下部显示为8时,即接近99%会弹出下图,提示我们以root用户进入然后运行/export/home1/root.sh
7(6)
返回到SecureCRT(或XShell等远程连接工具)窗口下
8五、
启动数据库:
9六、
启动业务程序:
Oracle9i补丁安装
1、 获得Oracle9i补丁p4163445_92070_SOLARIS.zip到WEB服务器
2、 解压补丁程序:
1、 以Oracle用户登陆到核心系统
2、 在/export/home1建立一个文件夹,命名为Oraclepatch
3、 将p4163445_92070_SOLARIS.zip,从WEB通过ftp传到文件夹Oraclepatch下
4、 unzip p4163445_92070_SOLARIS.zip在/export/home1/oraclepatch下生成一个Disk1
。
3、 安装Oracle补丁,前提中断核心系统程序,停止数据库
1. 以XSM用户登陆系统停止核心程序命令:STOP-ALL然后用SHOW-SYS,看是否所有进程已经停止
2. 用以下方式运行sqlplus,然后停止数据库
bash-2.05$ sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on Thu Nov 2 17:13:39 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> conn /as sysdba(键入命令:以系统管理员身份连接)
SQL> shutdown immediate(键入命令:停止数据库)
bash-2.05$ lsnrctl stop(键入命令:停止数据库监听)
LSNRCTL for Solaris: Version 9.2.0.1.0 - Production on 02-NOV-2006 18:02:10
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY
=EXTPROC)))
The command completed successfully
4、 安装补丁程序:
(1) 通过Xbrowser,以oracle用户登陆到核心系统上。
打开终端如图:
(2) 键入cd /export/home1/oraclepatch/Disk1/install
(1) 键入./ runInstaller
(2) 进入Oracle补丁安装程序,如下图所示:
(3) 点击Next,显示如图:
(4) 点击Install开始进行安装:
(5) 当安装到图右下部显示为8时,即接近99%会弹出下图,提示我们以root用户进入然后运行/export/home1/root.sh
(6) 返回到SecureCRT(或XShell等远程连接工具)窗口下
运行/export/home1/root.sh后会出现以下显示:
# /export/home1/root.sh
Running Oracle9 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /export/home1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y(连续输入y后回车)
Copying coraenv to /usr/local/bin ...
Adding entry to /var/opt/oracle/oratab file...
Entries will be added to the /var/opt/oracle/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
以上运行完后,点击OK,补丁安装成功。
5、 启动数据库:
1、启动数据库:
bash-2.05$su - oracle
password:oracle
bash-2.05$ sqlplus /nolog
SQL> conn /as sysdba
SQL> shutdown immediate
SQL> startup mount
SQL> alter database archivelog;
SQL> shutdown immediate
SQL> startup
SQL> quit
2、启动监听:
bash-2.05$ lsnrctl start
LSNRCTL for Solaris: Version 9.2.0.7.0 - Production on 02-NOV-2006 18:13:59
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Starting /export/home1/bin/tnslsnr: please wait...
TNSLSNR for Solaris: Version 9.2.0.7.0 - Production
System parameter file is /export/home1/network/admin/listener.ora
Log messages written to /export/home1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ynxsm)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Solaris: Version 9.2.0.7.0 - Production
Start Date 02-NOV-2006 18:13:59
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File /export/home1/network/admin/listener.ora
Listener Log File /export/home1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ynxsm)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
6、 启动业务程序:
bash-2.05$ STRT-XSM
PAGE
0
本文档为【oracle补丁安装】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。