[Oracle Installation] detailed steps for installing Oracle 9.2.0 under Linux as 2.1

Source: Internet
Author: User

Install Oracle 9.2.0 in Linux as 2.1

As early as in the Forum, many colleagues praised how Redhat as 2.1 was easy to use and never had a chance to try this trendy environment. Since the Oracle OCM test environment is also RH as 2.1, I want to install it more. I did not think that this test allowed me to install the OS four times and Oracle three times. It is really stupid. I didn't want to write it out, but I thought it could save some time for other people who are as stupid as me. So I wrote it again.

The main problems occurred during installation, not in Oracle installation, but in RedHat as 2.1 installation. I will describe the installation steps.

Install RedHat Advanced Server 2.1
1. Put it into the CD boot System
2. Select the language of the environment.
3. Select keyboard settings. We recommend that you generic 105-Key (Intl) PC; U. S. English;
Enable Dead keys.
4. Mouse settings.
5. Select "Custom" for the installation method ".
This place is very important. There are two options: Advanced Server and custom. The default value is "Advanced Server ". If "Advanced Server" is selected here, several errors will occur during the relink installation of Oracle, and "sqlplus" cannot run after installation.
Explanation: Oracle uses different compile Oracle program tools on different platforms. In the RH as 2.1 environment, GCC and binutils are used. GCC and binutils are installed only when "server develop" package and "kernel develop" package are installed. This is not specified in the Oracle Installation manual, because Oracle thinks we should have installed these two packages. This is the cause of the first and second installation errors.
6. Hard Disk Partition, select-manually partition with disk druid
This is the second place where I encountered an OS error. One time/tmp is not enough, and the other time is/usr not enough.
According to Oracle requirements,/tmp is recommended to be 400 M. If you select "automatic partitioning", the size of/tmp is definitely not enough. problems will occur when you install oracle. The space for swap is recommended as 2 GB.
/Usr size: If you wait for the packages to be installed, 2 GB is required. If you choose to install all packages (select everything), 4 GB space is required.
7. Boot Loader-use LILO as the Boot Loader
8. network configuration-do not use configure using DHCP
9. Firewall-No Firewall
10. Additional language support-I use English USA. You chose it.
11. timezone-Time Zone
12. Root Password-do not add another user at this time. Because you cannot specify a group for the user, a group with the same name as the added user will be created.
13. Package group selection-select the packages you want to install. The following must be selected (2 GB space required). The last one is everything, which requires 4 GB space.
1) printing support
2) classic X Window System
3) X Window System
4) KDE
5) Sound and multimedia
6) Network support
7) Networked managed Workstation
8) Utilities
9) Software Development
10) kernel development
11) Windows compatability/interoperability
12) Advanced Server
Oracle recommends that you do not install everything, but if you love it, you can install it only if you have enough space.
In this case, do not forget to check the "select individual packages" at the bottom.
14. In the individual package, select:
System Environment ==> daemons ==> "TFTP-server" and "WU-FTPd" otherwise you need to install FTP. If you do not install SFTP, you can also use SFTP.
15. Boot floppy creation-I don't seem to have succeeded. Simply jump over. It doesn't matter.
16. Graphics configuration: Oracle recommended color depth => high color 16bit
Screen Resolution => 1024x768
Choose "KDE"
Nothing else. I will not talk about how to set up Linux. Here I will talk about how to install the system.

Install Oracle
1. Of course the DBA group and oracle users are created. Useradd/groupadd is the easiest thing to do.
2. Switch the device you intend to install Oracle to the Oracle user name. For example,/u01.
# Chown ORACLE: DBA/u01
3. Kernel Parameter:
1) modify the current environment without using reboot server (better than installing Sun Solaris, Solaris can only change the control file, and then reboot)
# Cd/proc/sys/kernel
Modify the parameter values by using the following command syntax:
A. # echo 100 32000 100 100> SEM
This sets semmsl, semmns, semopm, semmni
B. # echo 2147483648> shmmax
C. # Echo 1> shmmin
D. # echo 100> shmmni
2) modify the control file: More/etc/sysctl. conf, and change it to: (use VI)
# Disables packet forwarding
Net. ipv4.ip _ forward = 0
# Enables Source Route verification
Net. ipv4.conf. Default. rp_filter = 1
# Disables the magic-sysrq key
Kernel. sysrq = 0
Kernel. shmmax = 256000000
Kernel. shmmin = 1
Kernel. shmmni = 100
Kernel. SEM = 250 32000 32 128
4. Oracle user profile:
Under/home/Oracle, the file name is. bash_profile
Note that you must add the path parameter after the original path. Do not overwrite the original path and overwrite it by yourself. This will cause the bash shell to work abnormally.
PATH is followed by:/u01/APP/Oracle/product/9.2.0/bin:/usr/CCS/bin:/usr/bin/X11/:/usr/local/bin
Others include:
Umask 022
Export ORACLE_HOME =/u01/APP/Oracle/product/9.2.0
Export oracle_base =/u01/APP/Oracle
Export ora_nls33 = $ ORACLE_HOME/ocommon/NLS/admin/Data
Export oracle_sid = (you have your own name, four to eight English letters)
These are recommended by Oracle. You don't like them. I think that ORACLE_HOME is too long, but it is better to follow this in the production environment. Otherwise, your colleagues may have opinions.
5. Oracle will be installed later.
Mount/mnt/CDROM (it should be done by root)
Enter the Oracle user (Su-Oracle)
$ CD/mnt/CDROM
$./Runinstaller
6. When I changed the second Oracle CD, there was an error "Device Busy" and there was no way to umount CDROM. Oracle recommends this:
. Return to the session/window where the installer was launched.
. Press the return key once or twice to get the Unix prompt.
. Change directory to a location other than the CDROM mount point, for example 'CD/tmp '.
. You shoshould now be able to 'umount' or 'object' the 1st CD-Rom.

I used/sbin/Fuser-VM/mnt/CDRom and killed the PID with kill-9.

There is nothing else. If you have any questions, please ask here.
Finally, thanks to parrotao, chao_ping and tigerfish for their help.
Reference:
Metalink Note: 215288.1, 201370.1, 146566.1

From biti_riany:

Do not do this here
$ CD/mnt/CDROM
$./Runinstaller

No need to run CD/mnt/CDROM
Run $./mnt/CDROM/runinstaller to change the disk and then umount.

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.