Oracle 10g installed on Red Hat AS4 has many related examples on the Internet. I will only make reference for this.
1> install AS4
Put the CD in and so on. Now we are talking about partitions, which are usually divided into two parts.
I>/root directory,/boot and swap
-Swap partitions are generally twice the memory, but you can also use more. www.bkjia.com depends on your actual needs.
-In the/boot guide area, it is enough to say 100% MB in the book. You can also give him more points, but no matter how much points, his possession is.
-/. The rest can be allocated to the/root directory, including/usr,/tmp,/home, And/var, which are all shared in the remaining space.
Ii> disable SELinux without a firewall (which can be enabled after Linux is installed)
Iii> select an installation item
Desktop options:
(√) X Window System (select default)
(√) GNOME Desktop Environment (select default)
(√) KDE Desktop Environment (select default)
Application options:
(√) Text-based Internet (select default)
Server options:
(√) Server configuration tool (select all)
(√) Windows File Server (select all)
Development Options:
(√) Development tools (select all)
System Options:
(√) Management tools (select default)
(√) Printing support (select the default value)
Click Next to complete the installation. After installation, you must manually install the corresponding package.
Libaio-0.3.93-4.i386.rpm (this package I got online, at least not in my installation disk, others can be found in the third installation disk)
Libaio-devel-0.3.102-1.i386.rpm
Libaio-devel-0.3.103-3.i386.rpm
Readline-devel-4.3-13.i386.rpm
(Rpm-ivh *****. rpm/rpm-Uhv *****. rpm)
After completing the preceding operations, you can install oracle10g.
2> basic oracle 10 Gb operations (first Log On As A root user)
I> create a user group
Generally, three user groups are created: oinstall, dba, and role.
[Root @ oracleserver etc] #/usr/sbin/groupadd oinstall
[Root @ oracleserver etc] #/usr/sbin/groupadd dba
[Root @ oracleserver etc] #/usr/sbin/groupadd Partition
Ii> create a user
[Root @ oracleserver etc] #/usr/sbin/useradd-g (create an initial group oinstall) oinstall-G (define a member using oinstall) dba, login-d (the location and user name used for each login with a new account)/home/oracle
Iii> grant oracle Password
[Root @ oracleserver etc] # passwd oracle
Iv> edit the oracle configuration file (vi editing is used in the example. You can also add it to the desktop and use gedit)
[Root @ oracleserver etc] # vi/home/oracle/. bash_profile
Enter the following content in the file:
Umask 022
PATH =/bin:/usr/local/bin:/usr/X11R6/bin
LD_LIBRARY_PATH =/usr/lib:/usr/X11R6/lib
ORACLE_BASE =/u01/app/oracle
ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1
ORACLE_SID = cbase
LD_LIBRARY_PATH = $ ORACLE_HOME/jdk/jre/lib/i386/server: $ ORACLE_HOME/rdbms/lib: $ ORACLE_HOME/lib: $ LD_LIBRARY_PATH
PATH = $ ORACLE_HOME/bin: $ PATH
Export PATH LD_LIBRARY_PATH
Export ORACLE_BASE ORACLE_HOME ORACLE_SID
Save and exit
V> Create an oracle Installation File directory
[Root @ oracleserver etc] # mkdir-p (create a directory and write the full directory)/u01/app/oracle
[Root @ oracleserver etc] # chown-R (recursively changing the folder owner) oracle: oinstall/u01/app
[Root @ oracleserver etc] # chmod-R (recursively changing folder operation permissions) 775 (read/write)/u01/app
Vi> edit the System Environment File
[Root @ oracleserver etc] # vi/etc/sysctl. conf
Kernel. sem = 250 32000 100 128
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 262144
Net. core. rmem_max = maid. core. wmem_default = 262144
Net. core. wmem_max = 262144
Save and exit
Vii> make the edited file take effect
[Root @ oracleserver etc] #/sbin/sysctl-p
Or
[Root @ oracleserver etc] # reboot
Viii> install oracle
Copy the Oracle compressed file to the oracledirectory (my compressed file is 10__database_linux32.zip on the roottable)
[Root @ oracleserver Desktop] # xhost +
[Root @ oracleserver Desktop] # cp./10201_database_linux32.zip/home/oracle
[Root @ oracleserver Desktop] # su-oracle (switch user)
[Oracle @ oracleserver ~] $ Unzip./10201_database_linux32.zip
[Oracle @ oracleserver ~] $ Cd/database
[Oracle @ oracleserver ~] $./RunInstaller
Ix> precautions during installation
When the following configuration scripts need to be executed as the "root" user is displayed in the prompt box, another window is opened to execute the corresponding steps. Others are the same as installing oracle in windows.