Category: Server Administration

Getting Oracle 10.2.0.1 to Start Automatically

I previously blogged about installing PeopleSoft HRMS 9 on a VMWare Image. One of the problems I had was getting the database to start automatically with the service when the image boots. We constantly boot and shutdown the image since we can only have one copy of it running at a time.

In my case, the problem appears to be an Oracle bug. Installing a patch fixed the problem. But, here is everything I learned on the issue.

Patch

Downloading the Patch:

  • Log into http://metalink.oracle.com
  • Go to Patches and Updates
  • Click on Simple Search
  • Search for Patch “4547817“, Platform Microsoft Windows (32-bit)
  • Download (543M)

Installing the Patch:

  • Unzipped it
  • Stopped the Web Server, App Server, Process Scheduler, and the Database
  • Ran the setup.exe
  • See the log below, I had to run catupgrd.sql

After Upgrading the oradim log said this:
Tue Jun 12 17:16:50 2007
c:\oracle\db10g\bin\oradim.exe -startup -sid hcm90 -usrpwd * -pfile c:\oracle\db10g\database\initHCM90.ora -log oradim.log -nocheck 0
Tue Jun 12 17:17:09 2007
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00704: bootstrap process failure
ORA-39700: database must be opened with UPGRADE option

So, I used the upgrade option as describe here.

sqlplus /nolog
connect / as sysdba
startup upgrade
@c:\oracle\db10g\rdbms\admin\catupgrd.sql

Logs to Check

Specific to the Service:

%oracle_home%\database\oradim.log

Tue Jun 05 15:28:13 2007
c:\oracle\db10g\bin\oradim.exe -startup -sid hcm90 -usrpwd * -pfile c:\oracle\db10g\database\initHCM90.ora -log oradim.log -nocheck 0
Tue Jun 05 15:28:18 2007
ORA-12560: TNS:protocol adapter error

%oracle_home%\database\sqlnet.log

***********************************************************************
Fatal NI connect error 12560, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oraclehcm90)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))’))(CONNECT_DATA=(SID=hcm90)(CID=(PROGRAM=c:\oracle\db10g\bin\oradim.exe)(HOST=PSQA895)(USER=SYSTEM))))

VERSION INFORMATION:
TNS for 32-bit Windows: Version 10.2.0.1.0 – Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 – Production
Time: 05-JUN-2007 15:28:18
Tracing not turned on.
Tns error struct:
ns main err code: 12560
TNS-12560: TNS:protocol adapter error
ns secondary err code: 0
nt main err code: 530
TNS-00530: Protocol adapter error
nt secondary err code: 2
nt OS err code: 0

Specific to the Listener

%oracle_home%\network\log\listener.log

TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 – Production on 05-JUN-2007 15:28:09

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

System parameter file is c:\oracle\db10g\network\admin\listener.ora
Log messages written to c:\oracle\db10g\network\log\listener.log
Trace information written to c:\oracle\db10g\network\trace\listener.trc
Trace level is currently 0

Started with pid=348
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=psqa895)(PORT=1521)))
Listener completed notification to CRS on start

TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
05-JUN-2007 15:29:23 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.150.25)(PORT=1040)) * establish * orcl * 12514

Other

&oracle_home%\sqlnet.log

The Service and the Registry

Deleting the Service:

At the command prompt> oradim -delete -sid <SID>

If either that doesn’t work or you have uninstalled, you have to open regedit and delete the following key:

HKLM\System\CurrentControlSet\Services\OracleService<SID>

Recreating Your Service:

At the command prompt>
oradim -new -sid <SID> -intpwd <password> -startmode AUTO -pfile <oracle_home>\database\init<SID>.ora

Other Registry Settings:

HKLM\Software\Oracle\Key_<Oracle Home Name>\ORA<SID>_AUTOSTART
Start the database when the service starts

HKLM\Software\Oracle\Key_<Oracle Home Name>\ORA<SID>_PFILE
Location of the Configuration File

HKLM\Software\Oracle\Key_<Oracle Home Name>\ORA<SID>_SHUTDOWN
Shutdown the database when the service stops

HKLM\Software\Oracle\Key_<Oracle Home Name>\ORA<SID>_SHUTDOWNTYPE
type of shutdown to do when stopping the server

Helpful Links

Windows Service Not Starting Your Database?

ORA-12560 on NT

Thread: ORACLE not available problem 10g release 2

Thread: DB not open, with Windows Service

Installing HCM90

I am in the process of installing PeopleSoft HR 9.0 in a VMWare instance for development. I hope to give more details later in case I ever need to do any of this later on.

Here is what I started with:

  • Windows 2003 Server installed in VMWare
  • PeopleSoft HR 8.9/PeopleTools 8.46 installed
  • Oracle 9.2 installed
  • Weblogic

I uninstalled the PeopleSoft, Weblogic, and Oracle database to get back to just a basic Windows installation.

Everything is installed on the same virtual computer because this is just for testing and development. So, I am not worried about connections to/from any other computers with this instance. The PeopleSoft is a demo database so that we have some test data.

Here is what I have installed:

  • Oracle 10g
  • PeopleTools 8.49
  • PeopleSoft HR 9.0
  • Tuxedo 9.1
  • Oracle SOA Suite

Here are some of the problems that I have had:

  • Hard drive space — originally, the PeopleSoft fit on a 25 Gigabyte hard drive; I had to add another 80 Gigabyte drive for this version.
  • Tuxedo Version: PeopleTools 8.48 will install with Tuxedo 8.1; PeopleTools 8.49 requires Tuxedo 9.1
  • Services automatically starting: still working on this one (database, application server, process scheduler)
  • Creating the PeopleSoft database (modifying scripts, running out of hard drive space, restarting the install, etc.)

I will try to blog what I have learned as I get time and as I work through the problems I still have left. Please let me know if there is anything in particular you are interested in in the meantime.