<Red> Note: # commands starting with a symbol are all commands under a Super User. Commands starting with the $ symbol are all commands of oracle users. In this installation instruction, the Linux Logon account of oracle users is also Oracle </red>
Step 1. Set the user we need to create an oracle user and two groups for the installer
# Addgroup oinstall
# Addgroup DBA
# Addgroup nobody
# Useradd-G oinstall-g dba-P passwd-D/home/Oracle-S/bin/bash Oracle
# Usermod-G nobody
Step 2. Change the configuration
Add the following lines to the/etc/sysctl. conf file:
Kernel. Shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. SEM = 250 32000 100 128
FS. File-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Update the system and run:
# Sysctl-P
Add the following lines to the/etc/security/limits. conf file:
* Soft nproc 2407
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536
Establish a soft connection:
# Ln-S/usr/bin/awk
# Ln-S/usr/bin/RPM
# Ln-S/usr/bin/basename
By creating a new file/etc/RedHat-release and adding the following lines, cheat the installer to make it think our system is RedHat:
Red Hat Linux release 3.1 (Drupal)
Step 3. Install the oracleuser, decompress the installation software (10201_database_linux32.zip), and run the runinstaller File
# Su Oracle
$./Runinstaller
When running properly, you will see a GUI window interface.
During the installation process, the installer requires you to run two scripts with the root permission.
The first script is orainstroot. SH and runs directly.
The second script is root. Sh.
You must first do the following:
# Mkdir/etc/rc. d
# Ln-S/etc/rc0.d/etc/rc. d/rc0.d
# Ln-S/etc/rc2.d/etc/rc. d/rc2.d
# Ln-S/etc/rc3.d/etc/rc. d/rc3.d
# Ln-S/etc/rc4.d/etc/rc. d/rc4.d
# Ln-S/etc/rc5.d/etc/rc. d/rc5.d
# Ln-S/etc/rc6.d/etc/rc. d/rc6.d
# Ln-S/etc/init. d/etc/rc. d/init. d
Then run root. Sh.
Follow the prompts to complete the installation.
----------------------------------------------
The following are the problems encountered during installation:
1: The SSH service cannot be properly installed.
Cause: Install the SSH service on Ubuntu in the same version as the SSH client. When you use apt-Get install OpenSSH-server to install the SSH service, the system prompts that the server version to be installed is inconsistent with the client version.
Solution: Restore the content of the sources. list file, and then install the SSH service.
2: After the SSH service is installed, UBUNTU on Windows and virtual machines cannot communicate normally through SSH.
Cause: the Windows system has an arpfirewall.
Solution: Disable arpfirewall.
3: the Ubuntu network settings (IP, gateway, and DNS) on the virtual machine are correct, but cannot access the Internet normally.
Cause: the Windows system has an arpfirewall.
Solution: Disable arpfirewall.
4: The all_no_orcl error occurs during installation. Open the log file as prompted and find the following error:
Information: Creating/opt/Oracle/lib/liborasdkbase. so.10.2
Information: GCC:
Information:/usr/lib/libstdc ++. so.5: the file or directory does not exist.
Information:
Information:/opt/Oracle/bin/genorasdksh: failed to link liborasdkbase. so.10.2
Message: Make: *** [liborasdkbase] Error
1 It turns out that the libstdc ++ package is incorrect. After checking, the libstdc ++ 5 package should be installed, but the libstdc ++ 6 package has been installed when the system installs other programs, as a result, libstdc ++ 5 is not installed.
Solution,
As follows:
Open another terminal and execute the following command CD/usr/libln-s libstdc ++. so.6 libstdc ++. so.5
Return to the Oracle Installation page and try again.
5:
Exception information: the following error was found when logging on to sqlplus of Oracle10g:
[Oracle @ redhat4u4 10g] $ sqlplus/nolog
SQL * Plus: Release 10.2.0.3.0-production on Wed Oct 29 11:15:05 2008
Copyright (c) 1982,200 6, Oracle. All rights reserved.
SQL> Conn/As sysdba;
Oracleirmdb: Error while loading shared libraries: libaio. so.1: cannot open shared object file: no such file or directory
Error: ORA-12547: TNS: Lost contactsql> quitdisconnected
Error cause: the RPM package of libaio is not installed,
Solution: sudo apt-Get install libaio1 to install the missing package. The first installation is libaio. The apt-Get prompts me that it is unavailable and can be replaced by libaio1.
6: A black screen is displayed when the new user (Oracle) logs on.
Cause: the new user does not have the corresponding home directory.
Solution: Use a Super User to create an Oracle Home Directory and hand the ownership to the Oracle user.
# Mkdir/home/Oracle
# Chown-r Oracle/home/Oracle
7. The database instance is created successfully and the database is not created.
How to Use dbca (Database Configuration Assistant) to create a database.
Run the Oracle/product/10.2.0/db_1/bin/dbca file directly. In the displayed window, create a database according to the wizard.