1. select a language. it is best to select ENGLISH. It's a good habit to start from English. In fact, garbled characters are also saved. 2. Disk partitioning. If your disk is large and you do not need to consider fixing the machine crash, you can select automatic partitioning. My virtual machine's disk is 20 GB, so it is divided into 7 ....
1. select a language. it is best to select ENGLISH.
It's a good habit to start from English. In fact, garbled characters are also saved.
2. Disk partitioning.
If your disk is large and you do not need to consider fixing the machine crash, you can select automatic partitioning. My VM's disk is 20 GB, so I divide it into 7.9gb for the root partition, 1 GB for/boot, 2 GB for the swap partition, and 10 GB for/oracle. Of course, if you have a larger hard disk, you will be happy. I am too poor to help you.
For the size of swap partitions, experts on the oracle official website have suggested that the minimum RAM required is 512 MB, and the minimum swap space required is 1 GB. For systems with less than or equal to 2 GB of RAM, the swap space should be twice the number of RAM; for systems with more than 2 GB of RAM, the swap space should be one to two times the number of RAM.
3. firewall: no
4. SELinux: Disabled
5. installation package: custom software installation package
6. select the development Tools, X Software Development, and Legacy Software Development under the Development column, but it is best to pay attention to the detail section of these options, because talnet is not installed by default.
7. wait until the installation is complete. After the installation is complete, when you are prompted to enter the authentication, you can choose to authenticate later, and you will not be notified later.
8. for better ORACLE performance. We recommend that you disable the following services:
Chkconfig cups off
Chkconfig sendmail off
Chkconfig isdn off
Chkconfig smartd off
Chkconfig iptables off
Chkconfig pcmcia off
9. enable FTP, sshd, and Telnet
II. ORACLE installation
1. check whether the required software package for ORACLE installation in REDHAT Linux has been installed
Binutils
Compat-db
Compat-libstdc ++
Gcc
Gcc-c ++
Glibc
Glibc-common
Libstdc ++
Libstdc ++-devel
Make
Pdksh
Openmotif-2.2.2-16
Sysstat
Setarch
You can use the following statement to check:
Rpm-qa binutils compat-* control-center gcc * glibc * gnome-libs libstdc * make pdksh sysstat xscreensaver setarch
Package to be installed: sysstat: fourth disk
Make sure that all the above software packages have been installed before proceeding
2. create an Oracle Group and user account
Run the following statement with root:
Groupadd oinstall
Groupadd dba
Useradd-m-g oinstall-G dba oracle
Id oracle: query user information (confirm creation)
Passwd oracle
3. create a directory
Use root to execute the following statement. of course, the directory will be placed as you are:
Mkdir-p/home/oracle/app/oracle
Chown-R oracle: oinstall/home/oracle/app/oracle
Chmod-R 775/home/oracle/app/oracle
4. configure Linux kernel parameters
The following configuration is the minimum value required by oracle10g. if your computer configuration is larger than this value, you do not need to change it:
Cat>/etc/sysctl. conf < 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
Net. core. rmem_default = 1048576
Net. core. wmem_default = 262144
Net. core. rmem_max = 1048576
Net. core. wmem_max = 262144
EOF
/Sbin/sysctl-p
Give a brief explanation and description of each parameter value:
(1) shmmax: this parameter defines the maximum size (in bytes) of the shared memory segment ). The default value is 32 M. for oracle, the default value is too low and is usually set to 2G.
(2) shmmni: This kernel parameter is used to set the maximum number of shared memory segments within the system. The default value of this parameter is 4096. Generally, no changes are required.
(3) shmall: this parameter indicates the total amount of shared memory that can be used by the system at one time (in pages ). The default value is 2097152, which does not need to be modified.
(4) sem: this parameter indicates the set semaphore.
(5) file-max: maximum number of file handles. The file handle setting indicates the number of files that can be opened in linux.
5. set Shell restrictions for oracle users
Cat>/etc/security/limits. conf < Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
EOF
Cat>/etc/pam. d/login < Session required/lib/security/pam_limits.so
EOF
Cat>/etc/profile < If [\ $ USER = "oracle"]; then
If [\ $ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Umask 022
Fi
EOF
Cat>/etc/csh. login < If (\ $ USER = "oracle") then
Limit maxproc 16384
Limit descriptors 65536
Umask 022
Endif
EOF
6. oracle User Environment variables
Su-
Vi. bash_profile
Umask 022
Export ORACLE_BASE =/home/oracle/app/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1
Export ORACLE_SID = oracle10
Export PATH = $ ORACLE_HOME/bin: $ PATH: $ HOME/bin
ORACLE_SID is the SID of the database to be created.
7. copy the installation file, decompress it, and then execute
./RunInstaller
Installation Overview:
Oracle home location:/home/oracle/app/oracle/product/10.2.0/db_1
Unix dba group: dba
System identifier (SID): oracle10
Gobal database name: oracle10g password oracle10g11
Start oracle Database
1. go to sqlplus:
Sqlplus/nolog
2. connect to the database as sysdba and start the Oracle database engine:
SQL> conn/as sysdba
SQL> startup
3. exit sqlplus and run Listener.
SQL> exit
$ Lsnrctl start
In this way, the TNS of the database is started and the database can be connected through the network. Generally, it is enough to start these two instances. if you want to use EM provided by Oracle to manage Oracle, you also need to start the EM console and run the following command:
$ Emctl start dbconsole
Author: "technical stepping on"