Oracle 9i installation under Open Unix 8

Source: Internet
Author: User
Tags tmp file tmp folder

This article will introduce the installation process of Oracle Database 9i in Open Unix 8. If you have experience installing Oracle, you can use the quick installation manual. If you have never installed Oracle databases before, from this article, we will be familiar with the oracle installation process.

System Requirements:

The following system requirements apply to typical Oracle Installation and creation of simple databases.

Memory:

Installing Oralce 9i requires at least MB of memory

Exchange zone:

The size of the swap area is generally twice the size of the memory, at least MB

Optical Drive:

If you use a CD to install Oracle9i, you need a CDROM of more than 8 speeds on your computer. If you download the oracle9i package file, you do not need to use the CDROM.

Hard Disk Space:

The installation of the Oracle9i database requires at least GB of space.

Temporary hard disk space: the Oracle installer requires more than MB of temporary hard disk space during installation. We recommend that you use the/tmp folder as the zero-time folder. If the/tmp file does not have enough hard disk space, you can create a new folder as the temporary directory for installation, and then set the environment variables TEMP and TMPDIR to the corresponding location, for example:

Use bash

 
 
  1. mkdir /home/temp   
  2. TEMP=/home/temp ; export TEMP   
  3. TMPDIR=/home/temp ; export TMPDIR  

Use csh

 
 
  1. mkdir /home/temp   
  2. setenv TEMP /home/temp   
  3. setenv TMPDIR /home/temp  

Operating System:

Caldera Open Unix 8 (LKP software package must be installed)

JDK

If you want to install Oracle HTTP Server and also need to use blackdown JDK 1.3.1, please go to the following address to download the ftp://ftp.progsoc.uts.edu.au/pub/Linux/java/JDK-1.3.0/i386/rc1/j2sdk-1.3.0-RC1-linux-i386.tar.bz

Configure Kernel Parameters

Oracle9i uses Open UNIX 8 shared memory, swap zone and other resources for work. If your kernel parameter settings do not meet the requirements of oracle, problems may occur frequently when installing javasel9i or using it, therefore, it is particularly important and critical to configure system kernel parameters.

 
 
  1. Shared Memory SHMMAX 0.5 * (physical memory in machine)   
  2. SHMMIN 1   
  3. SHMMNI 100   
  4. SHMSEG 15   
  5. Semaphores SEMMNI 10000   
  6. SEMMSL 300   
  7. SEMMNS 610   
  8. SEMOPM 20   
  9. Process limits SCORLIM 0x7FFFFFFF   
  10. HCORLIM 0x7FFFFFFF   
  11. SDATLIM 0x7FFFFFFF   
  12. HDATLIM 0x7FFFFFFF   
  13. SVMMLIM 0x7FFFFFFF   
  14. HVMMLIM 0x7FFFFFFF   
  15. SFSZLIM 0x7FFFFFFF   
  16. HFSZLIM 0x7FFFFFFF   
  17. HFNOLIM 2048   
  18. SFNOLIM 128   
  19. NPROC 12500   
  20. Other NPBUF 100   
  21. MAXUP 5000   
  22. RECRVRETRIES 10000   
  23. FLCKREC 2000  

Install Open Unix 8 Patch

1. Download Patchftp: // ftp.caldera.com/pub/openunix8/ou800pk2/ou800pk2.image

2. Log On with the root user and enter the following command:

$ Su-

Password:

# Cat ou800pk2. image | pkgadd-d-

3. restart the computer

# Shutdown-g0

Add User

Specific users rather than root users are required for Oracle Installation and Use. According to oracle standards, three special users and user groups need to be added, to facilitate the installation and use of oracle, you can install and use oracle to a specific user.

First, create an oracle user group. Set this user group to dba:

Log on to the system as a root user;

Run # groupadd dba command to add a dba user group;

Add oracle users:

Log on to the system as a root user;

Run useradd-g dba-s/usr/bin/ksh-d/home/oracle-m oracle.

After running, the system creates a user oracle belonging to the dba user group. The main directory is/home/oracle using ksh.

Set Oracle Password

Log on to the system as a root user;

Run passwd oracle and enter the password

This user will be installed and used as the specified user, so it should be properly saved!

Create a mount point)

The typical installation of oracle9i requires at least two installation points: one installation of the basic operating program requires at least MB of hard disk space; the other is to store the database, requiring at least MB of hard disk space. To simplify installation, we can install the running program and database under the same installation point.

Find a partition with sufficient space on your file system and create a folder under the partition. Assume that the folder is/home/oracle.

Prepare to run KDE

Create a/home/oracle/. xinitrc File

Add/linux/usr/bin/startkde>/dev/null 2> & 1

Configure system environment variables

Many netizens failed to install oracle because the environment variables were not correctly configured. The configuration of the environment variables directly affects the later installation and configuration of oracle9i. Be careful when configuring the environment variables!

The following is an example for your reference.

 
 
  1. ORACLE_HOME=/home/oracle/product/9.0.1; export ORACLE_HOME   
  2. ORACLE_SID=oracle; export ORACLE_SID   
  3. LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH   
  4. NLS_LANG=american_america.ZHS16GBK; export NLS_LANG   
  5. PATH=$PATH:$ORACLE_HOME/bin   
  6. export PATH   
  7. TMPDIR=/tmp;export TMPDIR   
  8. umask 022  

Where:

ORACLE_HOME is the installation directory of system software;

ORACLE_SID is the SID of the database. You can set it here;

NLS_LANG is the character set of the database. To ensure that the database can output the input database, we need to set the character set to american_america.ZHS16GBK here, where american_america English character set and ZHS16GBK is the Chinese character set.

Log on to the system as an oracle user,

Log on to oracle again

Install Oralce9i

The installation of oracle9i supports almost all x-windows and remote virtual x-windows installation.

Run the startx command to go to x-windows.

After running, the kde interface will appear on your remote terminal several seconds later.

Open a console window and go to the directory where the oracle files are stored.

 
 
  1. gunzip Linux9i_Disk1.cpio.gz   
  2. cpio -idmv   
  3. gunzip Linux9i_Disk2.cpio.gz   
  4. cpio -idmv   
  5. gunzip Linux9i_Disk3.cpio.gz   
  6. cpio -idmv  

Command to decompress the three packages into three installation folders: Disk1, Disk2, and Disk3.

Go to the Disk1 directory

Cd Disk1

In the console window

./RunInstaller &

After running, an oui gui is displayed. The green window in the middle is the GUI for oracle installation.

Next we will perform the most basic installation of oracle9i. after entering the installation interface, click Next to go to the Next step:

Source refers to a file that contains Oracle product information. Generally, it automatically identifies the file. If it cannot be found, you can use the Browse button to manually specify the path.

Destination refers to the 9i installation path. Here we set $ ORACLE_HOME in the environment variable, if this column is blank, you need to re-check whether the values in the environment variables are set incorrectly. Confirm the correctness and click Next to proceed to the Next step:

Three installation options are available in this step:

Oracle9i Database 9.0.1.0.0: Install the Database server version, Administrative Tools, network services, and basic client software of oracle9i;

Oracle9i Client 9.0.1.0.0, enterprise Client software, network services, and development tools.

Oracle9i Mangement and Integration 9.0.1.0.0, install the Management Server, manage the network directory, integrated services, network services, and basic client software of Oracle.

Select the first option to install Oracle9i Database Service, and click "Install Next;

This step is to select the Oracle Installation type. There are three types to choose from: Enterprise Edition, Enterprise Edition, Standstard Edition, Peugeot Edition, and Custom installation. We select the Enterprise Edition installation, if you are familiar with Oracle products, you can choose Custom installation, select components for installation as needed, and then click Next to go to the Next step;

Here you can select a database template that is suitable for you. Generally, we select the first common database template. If you need to use a data warehouse, you can use a data warehouse template for installation. After confirmation, press Next to proceed to the Next step;

This step is to confirm the SID of Oracle9i and the Name of the Global Database. The SID value has been set in the environment variable, so it is automatically displayed here. The Global Database Name is Global Database Name) we can also specify the same value as SID. After confirmation, press Next to go to the Next step;

As we mentioned above, the character type of the database is critical in database supersteps. This step is to set the character set of the database. Previously we set NLS_LANG = american_america.ZHS16GBK, so we choose Simplifiled Chinese ZHS16GBK and press Next to go to the Next step;

Because we have selected the Enterprise version for installation, the system will install Oracle Web Server. JDK is required to install Oracle Web Server, we use the Browse button to specify the JDK directory so that the system can find the desired application during the installation process, and confirm to press Next to go to the Next step;

After all the options are selected, the system will provide an installation overview, which lists the components you have selected for installation. After confirming that everything you want to Install is in the list, Install the Install button, if you do not need to install other programs, press Exit to Exit the installation interface.

The installation speed of Oracle depends on the server performance. Generally, it takes 30 minutes to install it. A dialog box may pop up during the installation process. In the dialog box, some commands that need to be run by root must be executed, in this case, another console window is opened, su becomes root, and the commands in the prompt box are run. After the operation is complete, follow the instructions to continue the installation;

After the database is installed, the system runs the configuration tool to configure the network and database of the system. After the configuration is complete, the system automatically starts the database and enables the Oracle Web Server. After all the configurations are complete, click Next to complete the installation.

If everything is normal, OUI will see The Installation Of Oracle9i Database Was successful. this indicates that your Oracle9i Database is properly installed. If you want to Install other content, press the Next Install button to Install other content. Otherwise, press Exit to Exit the installation.

Use Oracle 9i Database

After the installation is complete, the Oracle database will be automatically started. Next we will use the actual supersteps to describe how to start and close the Oracle 9i Database.

Log on to the database as an oracle user and open a console window;

Shut down the Oracle 9i Database

$ Sqlplus "/as sysdba" // log on to the database as a sysdba user

 
 
  1. SQL*Plus: Release 9.0.1.0.0 - Production on Wed Jul 11 15:35:31 2001   
  2.  
  3. (c) Copyright 2001 Oracle Corporation. All rights reserved.   
  4. Connected to:   
  5. Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production   
  6. With the Partitioning option   
  7. JServer Release 9.0.1.0.0 - Production  

Run the shudown command to close the database.

 
 
  1. SQL> shutdown  
  2. Database closed.  
  3. Database dismounted.  
  4. ORACLE instance shut down.  
  5. SQL> 

Start Oracle 9i Database

 
 
  1. [oracle@wing bin]$ sqlplus " / as sysdba"  
  2. SQL*Plus: Release 9.0.1.0.0 - Production on Wed Jul 11 16:00:59 2001  
  3. (c) Copyright 2001 Oracle Corporation. All rights reserved.  
  4. Connected to an idle instance.  
  5. SQL> startup  
  6. ORACLE instance started.  
  7. Total System Global Area 336356520 bytes  
  8. Fixed Size 279720 bytes  
  9. Variable Size 268435456 bytes  
  10. Database Buffers 67108864 bytes  
  11. Redo Buffers 532480 bytes  
  12. Database mounted.  
  13. Database opened.  
  14. SQL> 

Start the Oracle 9i listener

Oracle listeners provide interfaces for client connection.

 
 
  1. $ lsnrctl  
  2. LSNRCTL for Linux: Version 9.0.1.0.0 - Production on 11-JUL-2001 16:12:17  
  3. Copyright (c) 1991, 2001, Oracle Corporation. All rights reserved.  
  4. Welcome to LSNRCTL, type "help" for information.  
  5. LSNRCTL> start  
  6. Starting /oracle/product/9.0.1/bin/tnslsnr: please wait...  
  7. TNSLSNR for Linux: Version 9.0.1.0.0 - Production  
  8. System parameter file is /oracle/product/9.0.1/network/admin/listener.ora  
  9. Log messages written to /oracle/product/9.0.1/network/log/listener.log  
  10. Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))  
  11. Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=OU8)(PORT=1521)))  
  12. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))  
  13. STATUS of the LISTENER  
  14. ------------------------  
  15. Alias LISTENER  
  16. Version TNSLSNR for Linux: Version 9.0.1.0.0 - Production  
  17. Start Date 11-JUL-2001 16:12:58  
  18. Uptime 0 days 0 hr. 0 min. 0 sec  
  19. Trace Level off  
  20. Security OFF  
  21. SNMP OFF  
  22. Listener Parameter File /oracle/product/9.0.1/network/admin/listener.ora  
  23. Listener Log File /oracle/product/9.0.1/network/log/listener.log  
  24. Listening Endpoints Summary...  
  25. (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))  
  26. (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=OU8)(PORT=1521)))  
  27. Services Summary...  
  28. Service "PLSExtProc" has 1 instance(s).  
  29. Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...  
  30. Service "oracle" has 1 instance(s).  
  31. Instance "oracle", status UNKNOWN, has 1 handler(s) for this service...  
  32. The command completed successfully  
  33. LSNRCTL> 

Disable the Oracle 9i listener

 
 
  1. [oracle@wing bin]$ lsnrctl  
  2. LSNRCTL for Linux: Version 9.0.1.0.0 - Production on 11-JUL-2001 16:12:17  
  3. Copyright (c) 1991, 2001, Oracle Corporation. All rights reserved.  
  4. Welcome to LSNRCTL, type "help" for information.  
  5. LSNRCTL> stop  
  6. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))  
  7. The command completed successfully  
  8. LSNRCTL> 

Disable Oracle Web Server

 
 
  1. cd $ORACLE_HOME/Apache/Apache/bin  
  2. ./stopJServ.sh  
  3. /oracle/product/9.0.1/Apache/Apache/bin/apachectl stop: httpd stopped 

Start Oracle Web Server

 
 
  1. cd $ORACLE_HOME/Apache/Apache/bin  
  2. $ ./startJServ.sh  
  3. /oracle/product/9.0.1/Apache/Apache/bin/apachectl start: httpd started 

After Oracle Web Server is started, the default port number is 7777.

Enter http://xxx.xx.xxx.xxx: 7777/in the client browser address bar/


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.