《Oracle Developer Day》

Abstract: "Oracle Developer Day"


It has been several years in the windows platform operating oracle database, as early as you want into the linux platform to learn oracle database management,

But from the selected unix like platforms, version, install OS, set the network, x window, graphics, and both are setbacks,

Both time-consuming and not any sense of accomplishment at all, the rise in recent days began to look for related discussions, the result is far away in sight.

Oracle Technology Network Developer Day

http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html

Step by step download, mount right away, ready-made lab environment, linux, database 11g R2, SQL Developer, TimesTen,

There x window, firefox; everything is so beautiful land, just as soon turn to frustration!

Shortly after that boot you will first see the following message ...

Memory for crash kernel (0x0 to 0x0) not within permissible range

Then stop running, there are two versions on the Web, one should not ignore it, the system will continue to run;

I took were, waited for hours motionless, and finally gave up this view.

Another is to open VirtualBox IO APIC, it's work!

Finally hurdle can be continued, and before that was also seen people react installing developer day on the network,

DB, Listener can not connect the type of problems, it was also vowed that as long as I can login x window you will be able to connect to the DB,

Whatever the outcome, there is oracle 10g OCP certified, the result was going to ask google.

This is followed by the sign-off oracle 11g sqlplus fail, I made the following checks:

tnsping OK, tnsnames.ora, listener.ora set, sqlplus login no problem,

But just can not operate DB, show sga, user will jump out of the following errors.

ORA-24324 service handle not initialized

ORA-24323 value not allowed

ORA-03113: end-of-file on communication channel

Dumbfounded! Try dbca, netca linux platform is not there, it really command is there, but there are error messages.

Oracle Net Services Configuration:

#

# An unexpected error has been detected by HotSpot Virtual Machine:

#

# SIGSEGV (0xb) at pc=0xa44b13a8, pid=2973, tid=3086891216

#

# Java VM: Java HotSpot(TM) Client VM (1.5.0_17-b02 mixed mode)

# Problematic frame:

# C [libnnz11.so+0x3c3a8]

#

# An error report file with more information is saved as hs_err_pid2973.log

#

# If you would like to submit a bug report, please visit:

# http://java.sun.com/webapps/bugreport/crash.jsp

#

/u01/app/oracle/product/11.2.0/dbhome_1/bin/netca: line 178: 2973

(Similar to the above message, but remember JVM version 1.6)

Detective chase chase chase, using the above news of the find this p8670579_112010_LINUX.zip Download

Reproduced source ZhangGang's blog

It turned out to be oracle bug, but also in the installation instructions never wrote this point.

Since found to try it!

At that time the windows platform opatch know this stuff, but not operated, only when upgrading oracle 9.2.0.1 to 9.2.0.8 patch set installed,

But this is a mouse or two points, the next step to do next.

So how is the next hurdle on opatch.

These two reference teach you quickly learn how to use the "Opatch" patching

7 Oracle Software Patching Using OPatch

1. Check the version of perl

[oracle@localhost 8670579]$ perl -v

This is perl, v5.8.8 built for i386-linux-thread-multi

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the

GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on

this system using "man perl" or "perldoc perl".  If you have access to the

Internet, point your browser at http://www.perl.org/, the Perl Home Page.

2. Check opatch version (originally in the default installation will install oracle database, oracle recommend using the latest opatch, but have a metalink account before downloading)

[oracle@localhost OPatch]$ perl opatch.pl lsinventory

Invoking OPatch 11.1.0.6.6

Oracle Interim Patch Installer version 11.1.0.6.6

Copyright (c) 2009, Oracle Corporation.  All rights reserved.

Oracle Home       : /home/oracle/app/oracle/product/11.2.0/dbhome_1

Central Inventory : /home/oracle/app/oraInventory

   from           : /etc/oraInst.loc

OPatch version    : 11.1.0.6.6

YES Version: 11.2.0.1.0

YES rental: rent /home/oracle/app/oracle/product/11.2.0/dbhome_1/ouiLog file: /home/oracle/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2011-01-24_06 -05-56AM.log

Patch history file: /home/oracle/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch_history.txt

Lsinventory Output file location : /home/oracle/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2011-01-24_06-05-56AM.txt

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

Installed Top-level Products (1):

Oracle Database 11g                                                  11.2.0.1.0

There are 1 products installed in this Oracle Home.

There are no Interim patches installed in this Oracle Home.

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

OPatch succeeded.

3. Close all oracle service

listener : lsnrctl stop

db: shutdown abort (only with shutdown abort, other modes will complain)

4. Next the Patch (Note that only performed in silent mode)

[oracle@localhost 8670579]$ perl /home/oracle/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch.pl apply -silent

Invoking OPatch 11.1.0.6.6

Oracle Interim Patch Installer version 11.1.0.6.6

Copyright (c) 2009, Oracle Corporation.  All rights reserved.

Oracle Home       : /home/oracle/app/oracle/product/11.2.0/dbhome_1

Central Inventory : /home/oracle/app/oraInventory

   from           : /etc/oraInst.loc

OPatch version    : 11.1.0.6.6

YES Version: 11.2.0.1.0

YES rental: /home/oracle/app/oracle/product/11.2.0/dbhome_1/oui

Log file location : /home/oracle/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2011-01-24_06-20-41AM.log

Patch history file: /home/oracle/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch_history.txt

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

The patch has more than one Archive Action but there is no Make Action.

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

ApplySession applying interim patch '8670579' to OH '/home/oracle/app/oracle/product/11.2.0/dbhome_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 = '/home/oracle/app/oracle/product/11.2.0/dbhome_1')

Is the local system ready for patching? [y|n]

Y (auto-answered by -silent)

User Responded with: Y

Backing up files and inventory (not for auto-rollback) for the Oracle Home

Backing up files affected by the patch '8670579' for restore. This might take a while...

Backing up files affected by the patch '8670579' for rollback. This might take a while...

Patching component oracle.network.rsf, 11.2.0.1.0...

Updating archive file "/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.a"  with "lib/libnnz11.a/ahseteco.o"

Updating archive file "/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.a"  with "lib/libnnz11.a/am11rkg.o"

Updating archive file "/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.a"  with "lib/libnnz11.a/amsha.o"

Updating archive file "/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.a"  with "lib/libnnz11.a/cpui32.o"

Updating archive file "/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.a"  with "lib/libnnz11.a/sha.o"

Updating archive file "/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.a"  with "lib/libnnz11.a/x931rand.o"

Updating archive file "/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.a"  with "lib/libnnz11.a/am11dkg.o"

Updating archive file "/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.a"  with "lib/libnnz11.a/am931rnd.o"

Updating archive file "/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.a"  with "lib/libnnz11.a/amsharnd.o"

Updating archive file "/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.a"  with "lib/libnnz11.a/ghash.o"

Updating archive file "/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.a"  with "lib/libnnz11.a/shacomm.o"

Copying file to "/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so"

ApplySession adding interim patch '8670579' to inventory

Verifying the update...

Inventory check OK: Patch ID 8670579 is registered in Oracle Home inventory with proper meta-data.

Files check OK: Files from Patch ID 8670579 are present in Oracle Home.

The local system has been patched and can be restarted.

OPatch succeeded.

5. Restart the listener, db

[oracle@localhost 8670579]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 24-JAN-2011 06:21:14

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

Starting /home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production

System parameter file is /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

Log messages written to /home/oracle/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=80))(PROTOCOL_STACK=

PRESENTATION=HTTP)(SESSION=RAW)))

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=21))(PROTOCOL_STACK=

PRESENTATION=FTP)(SESSION=RAW)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))

STATUS of the LISTENER

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

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production

Start Date                24-JAN-2011 06:21:14

Uptime                    0 days 0 hr. 0 min. 0 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

Listener Log File         /home/oracle/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=80))(PROTOCOL_STACK=(PRESENTATION=HTTP)(SESSION=RAW)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=21))(PROTOCOL_STACK=(PRESENTATION=FTP)(SESSION=RAW)))

The listener supports no services

The command completed successfully

[oracle@localhost 8670579]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Mon Jan 24 06:21:18 2011

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

SQL> conn / as sysdba

Connected to an idle instance.

SQL> startup

jORACLE instance started.

Total System Global Area  313860096 bytes

Fixed Size                  1336232 bytes

Variable Size             281021528 bytes

Database Buffers           25165824 bytes

Redo Buffers                6336512 bytes

Database mounted.

Database opened.

SQL> show sga

Total System Global Area  313860096 bytes

Fixed Size                  1336232 bytes

Variable Size             281021528 bytes

Database Buffers           25165824 bytes

Redo Buffers                6336512 bytes

Summary: This is a wonderful experience, then it is good to explore Hello.

Original: Big Box  "Oracle Developer Day"


Guess you like

Origin www.cnblogs.com/petewell/p/11489956.html