这里是term的安装过程提示:
[Oracle@ www.linuxidc.com db_1]$ export PATH=$ORACLE_HOME/OPatch:$PATH
[oracle@ www.linuxidc.com db_1]$ cd /u01/
[oracle@ www.linuxidc.com u01]$ ls
app lost+found stage
[oracle@ www.linuxidc.com u01]$ cd stage/
[oracle@ www.linuxidc.com stage]$ cd 7272646/
[oracle@ www.linuxidc.com 7272646]$ ls
etc files README.txt
[oracle@ www.linuxidc.com 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@ www.linuxidc.com 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@ www.linuxidc.com 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@ www.linuxidc.com 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@ www.linuxidc.com 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@ www.linuxidc.com 7272646]$ cd ~
[oracle@ www.linuxidc.com ~]$ echo $ORACLE_SID
ywdb
[oracle@ www.linuxidc.com ~]$ export ORACLE_SID=orcl
[oracle@ www.linuxidc.com ~]$ 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@ www.linuxidc.com ~]$ 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@ www.linuxidc.com ~]$ 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@ www.linuxidc.com ~]$ 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@ www.linuxidc.com ~]$ 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> #
更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
