oracle 打补丁过程 补丁 7272646

redhet enterprise linux 6.1安装oracle 11.1.0.6.0

会提示错误:OUI-18001:the operating system 'Linux Version redhat-6.1' is not support

需要改变种更改的方法,编辑文件 /etc/redhat-release 把Red Hat Enterprise Linux Server release6 (Tikanga) 改成版本5:
redhat-4

引用自http://space.itpub.net/12778571/viewspace-165720

然后升级到11.1.0.7.0

11.1.0.6.0升级到11.1.0.7.0登录时回出现如下错误。

SQL> startup
ORACLE instance started.

Total System Global Area 5010685952 bytes
Fixed Size 2159272 bytes
Variable Size 3758099800 bytes
Database Buffers 1207959552 bytes
Redo Buffers 42467328 bytes
ORA-03113: end-of-file on communication channel
Process ID: 5465
Session ID: 665 Serial number: 3

依据http://topic.csdn.net/u/20091009/11/3ab91b8d-5a6d-4353-a86a-f79c219946d0.html

提示安装补丁。

下面是小提示:

虎子(371934167) 17:00:35
请问大家 # Ensure that the directory containing the opatch script appears in # your $PATH; then enter the following command: # # % opatch apply #
那么 opatch apply
到底在哪里?
轻风依旧(48208049) 17:01:39
进入到补丁目录,执行这个命令啊。。。。
opath没有就下栽安装一下。
虎子(371934167) 17:02:04
opatch是个软件?
广州-Ben(93655257) 17:02:10
export PATH=$ORACLE_HOME/OPatch:$PATH

#-------------------------------------------------------------------------

# 7272646 - ORA-27103 WHEN MEMORY_TARGET > 3G

#-------------------------------------------------------------------------

#

# DATE: Oct 14, 2008

# -------------------------------

# Platform Patch for: 226

# Product Version #: 11.1.0.7.0

# Product Patched: RDBMS

#

# Bugs Fixed by this patch:

# -------------------------

# 7272646 - ORA-27103 WHEN MEMORY_TARGET > 3G

#

# Patch Installation Instructions:

# --------------------------------

# To apply the patch, unzip the PSE container file:

#

# p7272646_11107_Linux-x86-64.zip

#

# Set your current directory to the directory where the patch

# is located:

#

# % cd 7272646

#

# Ensure that the directory containing the opatch script appears in

# your $PATH; then enter the following command:

#

# % opatch apply //检查目录环境变量 $ORACLE_HOME/OPatch在不在PATH里面,否则export PATH=$ORACLE_HOME/OPatch:$PATH

#

# Patch Special Instructions:

# ---------------------------

# Make sure all instances running under the ORACLE_HOME being patched

# are cleanly shutdown before installing this patch. Also ensure that

# the tool used to terminate the instance(s) has exited cleanly.

#

# If the Oracle inventory is not setup correctly this utility will

# fail. To check accessibility to the inventory you can use the

# command

#

# % opatch lsinventory //执行完这步骤,启动数据库的时候要startup upgrade命令,

#

# If you have any problems installing this PSE or are not sure

# about inventory setup please call Oracle support.

#

# Patch Deinstallation Instructions:

# ----------------------------------

# Use the following command:

#

# % cd 7272646

# % opatch rollback -id 7272646

#

这里是term的安装过程提示:


[oracle@ywdb db_1]$ export PATH=$ORACLE_HOME/OPatch:$PATH
[oracle@ywdb db_1]$ cd /u01/
[oracle@ywdb u01]$ ls
app lost+found stage
[oracle@ywdb u01]$ cd stage/
[oracle@ywdb stage]$ cd 7272646/
[oracle@ywdb 7272646]$ ls
etc files README.txt
[oracle@ywdb 7272646]$ opatch apply
Invoking OPatch 11.1.0.6.2

Oracle Interim Patch Installer version 11.1.0.6.2
Copyright (c) 2007, Oracle Corporation. All rights reserved.


Oracle Home : /u01/app/oracle/product/11.1.0/db_1
Central Inventory : /u01/app/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.1.0.6.2
OUI version : 11.1.0.7.0
OUI location : /u01/app/oracle/product/11.1.0/db_1/oui
Log file location : /u01/app/oracle/product/11.1.0/db_1/cfgtoollogs/opatch/opatch2012-05-22_17-03-09PM.log

ApplySession applying interim patch '7272646' to OH '/u01/app/oracle/product/11.1.0/db_1'

Running prerequisite checks...

OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.


Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.1.0/db_1')


Is the local system ready for patching? [y|n]
Y^H^Hy
Could not recognize input. Please re-enter.
y
User Responded with: Y
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '7272646' for restore. This might take a while...
Backing up files affected by the patch '7272646' for rollback. This might take a while...

Patching component oracle.rdbms, 11.1.0.7.0...
Updating archive file "/u01/app/oracle/product/11.1.0/db_1/lib/libgeneric11.a" with "lib/libgeneric11.a/sskgm.o"
Running make for target client_sharedlib
Running make for target ioracle
ApplySession adding interim patch '7272646' to inventory

Verifying the update...
Inventory check OK: Patch ID 7272646 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 7272646 are present in Oracle Home.

The local system has been patched and can be restarted.


OPatch succeeded.
[oracle@ywdb 7272646]$ lsnrctl start

LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 22-MAY-2012 17:04:03

Copyright (c) 1991, 2008, Oracle. All rights reserved.

Starting /u01/app/oracle/product/11.1.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.1.0.7.0 - Production
System parameter file is /u01/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/ywdb/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1522)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ywdb)(PORT=1522)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.1.0.7.0 - Production
Start Date 22-MAY-2012 17:04:03
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/ywdb/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1522)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ywdb)(PORT=1522)))
The listener supports no services
The command completed successfully
[oracle@ywdb 7272646]$ emctl start dbconsole
OC4J Configuration issue. /u01/app/oracle/product/11.1.0/db_1/oc4j/j2ee/OC4J_DBConsole_ywdb_ywdb not found.
[oracle@ywdb 7272646]$ emctl start dbconsole
OC4J Configuration issue. /u01/app/oracle/product/11.1.0/db_1/oc4j/j2ee/OC4J_DBConsole_ywdb_ywdb not found.
[oracle@ywdb 7272646]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.1.0.7.0 - Production on Tue May 22 17:04:44 2012

Copyright (c) 1982, 2008, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/11.1.0/db_1/dbs/initywdb.ora'
SQL> exit
Disconnected
[oracle@ywdb 7272646]$ cd ~
[oracle@ywdb ~]$ echo $ORACLE_SID
ywdb
[oracle@ywdb ~]$ export ORACLE_SID=orcl
[oracle@ywdb ~]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.1.0.7.0
Copyright (c) 1996, 2008 Oracle Corporation. All rights reserved.
https://ywdb:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ................... started.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.1.0/db_1/ywdb_orcl/sysman/log
[oracle@ywdb ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.1.0.7.0 - Production on Tue May 22 17:07:05 2012

Copyright (c) 1982, 2008, Oracle. All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> startup
ORA-03135: connection lost contact
SQL> connect sys/oracle
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0


SQL> exit
[oracle@ywdb ~]$ opatch lsinventory
Invoking OPatch 11.1.0.6.2

Oracle Interim Patch Installer version 11.1.0.6.2
Copyright (c) 2007, Oracle Corporation. All rights reserved.


Oracle Home : /u01/app/oracle/product/11.1.0/db_1
Central Inventory : /u01/app/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.1.0.6.2
OUI version : 11.1.0.7.0
OUI location : /u01/app/oracle/product/11.1.0/db_1/oui
Log file location : /u01/app/oracle/product/11.1.0/db_1/cfgtoollogs/opatch/opatch2012-05-22_17-10-23PM.log

Lsinventory Output file location : /u01/app/oracle/product/11.1.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2012-05-22_17-10-23PM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (2):

Oracle Database 11g 11.1.0.6.0
Oracle Database 11g Patch Set 1 11.1.0.7.0
There are 2 products installed in this Oracle Home.


Interim patches (1) :

Patch 7272646 : applied on Tue May 22 17:03:34 CST 2012
Created on 14 Oct 2008, 02:36:06 hrs PST8PDT
Bugs fixed:
7272646

--------------------------------------------------------------------------------

OPatch succeeded.
[oracle@ywdb ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.1.0.7.0 - Production on Tue May 22 17:10:54 2012

Copyright (c) 1982, 2008, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 6680915968 bytes
Fixed Size 2160272 bytes
Variable Size 4429187440 bytes
Database Buffers 2214592512 bytes
Redo Buffers 34975744 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
Process ID: 23167
Session ID: 170 Serial number: 5

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@ywdb ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.1.0.7.0 - Production on Tue May 22 17:12:38 2012

Copyright (c) 1982, 2008, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup upgrade;
ORACLE instance started.

Total System Global Area 6680915968 bytes
Fixed Size 2160272 bytes
Variable Size 4429187440 bytes
Database Buffers 2214592512 bytes
Redo Buffers 34975744 bytes
Database mounted.
Database opened.
SQL> #

你可能感兴趣的:(数据库,操作系统,网络)