Server environment Requirements
hard disk above 20G, must be higher than 1G of physical memory, swap space is generally twice times the memory, for example: 1G of memory can set the swap partition to 3G size
Under root user, perform the following steps:
Modify the user's shell limit, modify the/etc/security/limits.conf file
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
Modify the/etc/pam.d/login file
Session required/lib/security/pam_limits.so
Session Required Pam_limits.so
Modify the Linux kernel, modify the/etc/sysctl.conf file, enter the command: vi/etc/sysctl.conf
Fs.file-max = 6815744
FS.AIO-MAX-NR = 1048576
Kernel.shmall = 2097152
Kernel.shmmax = 2147483648
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Net.ipv4.ip_local_port_range = 9000 65500
Net.core.rmem_default = 4194304
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 1048576
/etc/sysctl.conf changes take effect immediately, execute the following command. Input:sysctl-p
Create related users and groups
Groupadd Oinstall
Groupadd dba
To create an Oracle user and password, enter the command:
Useradd-g oinstall-g dba-moracle
passwd Oracle
Then will let you enter the password, the password any input 2 times, but must be consistent, enter the confirmation
Create database software directory and data file directory, directory location, according to their own situation, pay attention to disk space, here I put it under the Oracle user, for example:
Enter the command:
Mkdir/home/oracle/app
Mkdir/home/oracle/app/oracle
Mkdir/home/oracle/app/oradata
Mkdir/home/oracle/app/oracle/product
Change directory owner is owned by Oracle user, enter command: CHOWN-R oracle:oinstall/home/oracle/app Configure environment variables for Oracle users, first, switch to the newly created Oracle user, enter: su–oracle, Then directly in input: Vi.bash_profile, add Xiamen content umask 022export oracle_base=/home/oracle/appexportoracle_home= $ORACLE _base/oracle/ Product/11.2.0/dbhome_1export oracle_sid=orclexport path= $PATH: $HOME/bin: $ORACLE _home/binexport ld_library_path=$ Oracle_home/lib:/usr/lib
The environment is fully configured here.
Now is the upload installation package to know the path,unzip decompression will generate database folder
Unzip Linux.x64_11gR2_database_1of2.zip
Unzip Linux.x64_11gR2_database_2of2.zip
If it is a corporate server, it is only possible to do command -line operations, you can use a Xmanager tool for graphical interface installation.
Xshell into the database,./runinstaller into the graphical interface installation steps, because writing this article chapters I have been installed, unable to match the picture. On-line and predecessors to build a map, graphical interface installation is basically the same as under Windows installation.
Oracle 11g installation under Linux