O'Reilly Databases

oreilly.comSafari Books Online.Conferences.

We've expanded our coverage and improved our search! Search for all things Database across O'Reilly!

Search Search Tips

advertisement
AddThis Social Bookmark Button

Print Subscribe to Databases Subscribe to Newsletters

Installing Oracle 9iR2 on Red Hat 9
Pages: 1, 2

Running the Installer

To install 9iR2 on Linux, Oracle recommends at least 512MB of RAM and at least 400MB of swap space. If you have less then 512MB of RAM and upgrading is not an option, you can resize your swap partition or create temporary swapping space. The later is a much more convenient option, as you will be needing this space only during the installation.



To set up a temporary Linux swap area, execute these lines as root:

% dd if=/dev/zero of=tmp_swap bs=1k count=900000
% chmod 600 tmp_swap
% mkswap tmp_swap
% swapon tmp_swap

After you finish installing, you can free this space:

% swapoff tmp_swap
% rm tmp_swap

Now that you have all the major obstacles out of the way, you can run the installer. Please remember that the Oracle installer must be run from X. You will need to allow the local oracle user to write to your X display:

$ xhost +127.0.0.1

Do not change to your CD-ROM mount directory (e.g., /mnt/cdrom), because you will not be able to unmount the first CD to insert others when asked. Start the installer from your home directory using:

$ su - oracle
$ /mnt/cdrom/install/linux/runInstaller

Installation

We will not describe the installation process in detail, as Oracle provides extensive documentation on that subject and it is way beyond the scope of this article. It is pretty much self-explanatory, but if you run into trouble, there's always a help button to assist you. If you need more help, check the docs directory on the Oracle CDs, the online Oracle Documentation, or Oracle Linux Center. During the installation, Oracle will ask you to insert other disks. When asked, open up a new console, unmount the current disk with umount /dev/cdrom (as root) and replace the disk. If Red Hat 9 does not mount it automagically, mount it yourself with mount /dev/cdrom and choose to continue with the installation wizard.

As you go along, your installation may produce three different errors:

  • You may see an error dialog informing about problems with ins_oemagent.mk. Ignore this one; we will fix it in post installation.

    Warning dialog screenshot
    Figure 1. ins_oemagent.mk errors

  • A dialog may inform you about an Error in invoking target install of makefile $ORACLE_HOME/ctx/lib/ins_ctx.mk.

    Warning dialog screenshot
    Figure 2. makefile error

    When this happens, open up a new X terminal and log in as the oracle user. Execute the following commands:

    [oracle@miniroko oracle]$ cd $ORACLE_HOME/install
    [oracle@miniroko install]$ tail make.log

    You will see a line like this:

    gcc -o ctxhx -L/opt/ora9/product/9.2/ctx/lib/ -L/opt/ora9/product/9.2/lib/
    -L/opt/ora9/product/9.2/lib/stubs/  /opt/ora9/product/9.2/ctx/lib/ctxhx.o
    -L/opt/ora9/product/9.2/ctx/lib/ -lm -lsc_ca -lsc_fa -lsc_ex -lsc_da -lsc_ut
    -lsc_ch -lsc_fi -lctxhx -lc -Wl,-rpath,/opt/ora9/product/9.2/ctx/lib -lnls9
    -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9

    Screenshot gnome terminal
    Figure 3. The make.log

    Copy this line, add -ldl at the end, and run it in $ORACLE_HOME/bin.

    [oracle@miniroko]$ cd $ORACLE_HOME/bin
    [oracle@miniroko bin]$ gcc -o ctxhx -L/opt/ora9/product/9.2/ctx/lib/ 
    -L/opt/ora9/product/9.2/lib/ -L/opt/ora9/product/9.2/lib/stubs/  
    /opt/ora9/product/9.2/ctx/lib/ctxhx.o -L/opt/ora9/product/9.2/ctx/lib/ 
    -lm -lsc_ca -lsc_fa -lsc_ex -lsc_da -lsc_ut -lsc_ch -lsc_fi -lctxhx -lc 
    -Wl,-rpath,/opt/ora9/product/9.2/ctx/lib -lnls9 -lcore9 -lnls9 -lcore9 
    -lnls9 -lxml9 -lcore9 -lunls9 -lnls9 -ldl

    Now you have fixed the problem, so hit the ignore button on the dialog and the installation will continue.

  • The installation may inform you that agent failed to start. Choose ignore on this one; we will also fix it in post installation.

Do not create a database at the end of the installation. Not all things are operational at this point, and we still need to perform some minor fixes. Click on Software only and continue. Don't worry, you will be able to create your database later using dbca, the Oracle database configuration assistant.

Database Create Screenshot
Figure 4. Do not create a database

Post-Installation

Let's fix the issues Oracle had with ins_ctx.mk and starting the agent. Open a new terminal and log in as the oracle user. Execute these lines:

[oracle@miniroko oracle]$ cd $ORACLE_HOME/network/lib
[oracle@miniroko lib]$ make -f ins_net_client.mk install

Now edit the $ORACLE_HOME/ctx/lib/ins_ctx.mk file. Change lines 13-14 from:

ctxhx: $(CTXHXOBJ)
$(LINK) $(CTXHXOBJ) $(INSO_LINK)

to

ctxhx: $(CTXHXOBJ)
$(LINK) -ldl $(CTXHXOBJ) $(INSO_LINK)

You are now ready to retry making:

[oracle@miniroko lib]$ make -f $ORACLE_HOME/ctx/lib/ins_ctx.mk install

Voila, you now have a fully working installation of Oracle 9iR2 database server. If you wish, you can now create your Oracle database using dbca.

Starting and Stopping the Database

svrmgrl is no longer supported by Oracle, so use sqlplus for startup and shutdown operations. To start the server:

[root@miniroko]# su - oracle
[oracle@miniroko oracle]$ lsnrctl start
[oracle@miniroko oracle]$ sqlplus /nolog
 
SQL*Plus: Release 9.2.0.1.0 - Production on ?et Svi 29 13:52:34 2003
 
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
 
SQL> connect / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
 
Total System Global Area   93393176 bytes
Fixed Size                   450840 bytes
Variable Size              75497472 bytes
Database Buffers           16777216 bytes
Redo Buffers                 667648 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

To shut down the server:

[root@miniroko]# su - oracle
[oracle@miniroko oracle]$ lsnrctl stop
[oracle@miniroko oracle]$ sqlplus /nolog
 
SQL*Plus: Release 9.2.0.1.0 - Production on ?et Svi 29 13:55:32 2003
 
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
 
SQL> connect / as sysdba
Connected.
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

To integrate Oracle with Red Hat's SysV init process and make startup and shutdown automatic, you can use Gurulab's Oracle9i RHL Run Package. I do not recommend Oracle's native scripts $ORACLE_HOME/bin/dbstart and $ORACLE_HOME/bin/dbshut, as they do not always work as advertised and require some changes.

Conclusion

You now have a fully featured Oracle installation on your computer. Please remember that Oracle 9.2 is not certified for Red Hat 9, and that this combination is not endorsed in production and deployment environments. As a workstation, however, it is perfectly stable and usable.

Roko Roic currently works at Tis.kis, developing core and user-level GSM related systems.


Return to the Linux DevCenter.


Comments on this article

1 to 28 of 28
  1. Oracle9iR2 postinstallation procedure in a shrink-wrapped Red Hat 9 and the freely downloadable version.
    2004-07-21 01:28:40  infxdba [View]

  2. Oracle 9iR2 Install on Red Hat Linux 9
    2004-06-04 13:05:53  Scrapper [View]

  3. according to problem (dbca)
    2004-05-11 04:11:03  matheus [View]

    • according to problem (dbca)
      2005-03-19 10:09:24  najeebuddinsyed [View]

    • according to problem (dbca)
      2005-03-19 10:07:58  najeebuddinsyed [View]

      • according to problem (dbca)
        2005-03-23 22:15:56  Installing-Oracle-9iR2-on-Red-Hat-9 [View]

  4. Problems in the installation
    2004-05-06 06:55:22  matheus [View]

    • Problems in the installation
      2004-05-07 06:58:20  erik45 [View]

  5. post installation problem
    2004-04-15 23:27:28  mateenma [View]

  6. problems with LSSV
    2004-03-08 14:09:25  danstraw [View]

    • problems with LSSV
      2004-05-06 07:04:38  matheus [View]

  7. Unable to Install 8.1.7 NOT 9i on Redhat 9
    2004-02-20 20:23:38  km1 [View]

  8. host undetermined error? help! anyone??
    2004-02-16 05:09:34  raquelli [View]

  9. Trackback from http://www.daen.dk/archives/000248.html
    Installing Oracle 9iR2 on Red Hat 9
    2004-02-09 13:18:04  [View]

  10. excellent article
    2004-02-06 13:31:34  ioc0023 [View]

  11. Error : LRM-00109
    2004-01-16 07:51:32  anonymous2 [View]

    • Error : LRM-00109
      2004-01-20 07:14:35  anonymous2 [View]

      • Error : LRM-00109
        2004-01-21 14:47:04  cbeale [View]

        • Error : LRM-00109
          2004-02-15 07:49:08  chakri_d [View]

          • Error : LRM-00109
            2004-04-14 08:24:42  artv999 [View]

  12. Thanks Roko !
    2004-01-14 08:16:56  jejik [View]

  13. Problem with national characters
    2004-01-12 04:56:51  anonymous2 [View]

  14. /tmp/orainstaRoot.sh. Unable to continue install.
    2003-12-21 19:10:46  anonymous2 [View]

  15. Order of installation
    2003-12-11 04:58:51  kebam [View]

  16. installer hangs on RH 2.4.20-20.8 upgraded to 2.4.20-20.9
    2003-12-08 07:29:47  anonymous2 [View]

    • installer hangs on RH 2.4.20-20.8 upgraded to 2.4.20-20.9
      2004-07-20 12:59:35  infxdba [View]

    • installer hangs on RH 2.4.20-20.8 upgraded to 2.4.20-20.9
      2004-07-20 07:18:26  infxdba [View]

    • installer hangs on RH 2.4.20-20.8 upgraded to 2.4.20-20.9
      2004-07-20 00:38:49  infxdba [View]

    • installer hangs on RH 2.4.20-20.8 upgraded to 2.4.20-20.9
      2004-05-06 07:07:12  matheus [View]

    • installer hangs on RH 2.4.20-20.8 upgraded to 2.4.20-20.9
      2003-12-22 15:52:08  anonymous2 [View]

    • installer hangs on RH 2.4.20-20.8 upgraded to 2.4.20-20.9
      2003-12-10 23:40:16  anonymous2 [View]

  17. Oracle installation problem on dbsnmp
    2003-11-13 14:37:55  franklincsng [View]

    • Oracle installation problem on dbsnmp (libvppdc.so)
      2005-11-29 22:49:55  screen2000 [View]

    • Oracle installation problem on dbsnmp
      2005-01-31 05:14:26  cmih1@yahoo.com [View]

  18. installer hangs with 1.1.8.1 linking to README
    2003-11-07 12:29:18  anonymous2 [View]

    • installer hangs with 1.1.8.1 linking to README
      2003-11-19 04:38:57  anonymous2 [View]

      • installer hangs with 1.1.8.1 linking to README
        2003-11-19 19:45:41  anonymous2 [View]

        • installer hangs with 1.1.8.1 linking to README
          2003-12-11 04:06:08  anonymous2 [View]

          • installer hangs with 1.1.8.1 linking to README
            2003-12-31 03:15:57  anonymous2 [View]

  19. help can't run the installation
    2003-11-04 06:10:00  anonymous2 [View]

    • help can't run the installation
      2003-11-06 22:51:28  anonymous2 [View]

  20. getting oracle & RH 9 to work with PHP
    2003-10-24 00:31:05  netnerdau [View]

    • getting oracle & RH 9 to work with PHP
      2004-09-06 01:44:43  liuguohui [View]

    • getting oracle & RH 9 to work with PHP
      2004-01-06 07:42:12  jmcintosh [View]

      • getting oracle & RH 9 to work with PHP
        2004-09-06 01:29:31  liuguohui [View]

        • getting oracle & RH 9 to work with PHP
          2004-09-06 01:35:44  liuguohui [View]

  21. can you help me??
    2003-10-14 01:44:19  jsl1 [View]

    • can you help me??
      2003-11-16 05:56:53  anonymous2 [View]

    • can you help me??
      2003-10-17 11:06:32  anonymous2 [View]

      • can you help me??
        2004-03-08 19:50:57  fredckp [View]

  22. /etc/sysctl.conf
    2003-10-09 01:15:38  anonymous2 [View]

  23. Library dependencies
    2003-10-07 07:51:40  anonymous2 [View]

  24. help can't complete intallation
    2003-10-06 16:04:58  anonymous2 [View]

  25. Oracle 9i install on Redhat 9
    2003-10-03 05:36:15  anonymous2 [View]

    • Oracle 9i install on Redhat 9 --> patch 9.2.0.4
      2003-10-06 06:12:28  anonymous2 [View]

      • Oracle 9i install on Redhat 9 --> patch 9.2.0.4
        2003-11-08 21:19:40  anonymous2 [View]

  26. A startup script - WORKS - on one condition
    2003-09-30 20:19:32  anonymous2 [View]

  27. Creating the Oracle database
    2003-09-27 23:55:58  anonymous2 [View]

  28. fetch the i686 packages
    2003-09-23 10:06:23  anonymous2 [View]

    • fetch the i686 packages
      2003-10-01 04:06:45  anonymous2 [View]

      • fetch the i686 packages
        2003-11-09 22:35:29  anonymous2 [View]

1 to 28 of 28


Tagged Articles

Be the first to post this article to del.icio.us

Related to this Article

Data Jujitsu: The Art of Turning Data into Product Data Jujitsu: The Art of Turning Data into Product
November 2012
$0.00 USD

Designing Great Data Products Designing Great Data Products
March 2012
$0.00 USD

Sponsored Resources

  • Inside Lightroom
Advertisement
O'reilly

© 2013, O’Reilly Media, Inc.

(707) 827-7019 (800) 889-8969

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.

About O'Reilly

  • Academic Solutions
  • Jobs
  • Contacts
  • Corporate Information
  • Press Room
  • Privacy Policy
  • Terms of Service
  • Writing for O'Reilly

Community

  • Authors
  • Community & Featured Users
  • Forums
  • Membership
  • Newsletters
  • O'Reilly Answers
  • RSS Feeds
  • User Groups

Partner Sites

  • makezine.com
  • makerfaire.com
  • craftzine.com
  • igniteshow.com
  • PayPal Developer Zone
  • O'Reilly Insights on Forbes.com

Shop O'Reilly

  • Customer Service
  • Contact Us
  • Shipping Information
  • Ordering & Payment
  • The O'Reilly Guarantee