1:root User execution: Df-k/tmp
Free space is greater than 400M can
2:cat/etc/issue command to view Linux versions
3:uname-r command to view the kernel
4: Check the relevant packages
The command is: RPM-Q related package
5: Build two groups
/usr/sbin/groupadd Oinstall
/usr/sbin/groupadd DBA
6: Build Users
/USR/SBIN/USERADD-G oinstall-g dba Oracle
7:PASSWD Oracle to set a password for it
8:vi/etc/sysctl.conf (Modify this file) is as follows:
kernel.shm=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=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
Save exit.
9:/sbin/sysctl-p
Make the changed content effective
10: Execution vi/etc/security/limits.conf
Add the following content:
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
11: Execution Vi/etc/pam.d/login
Add the following content:
Session required/lib/security/pam_limits.so
12: Execution Vi/etc/profile
Join
if [$USER = "Oracle"];then
if [$SHELL = "/bin/ksh"];then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
13: Create the installation point as follows:
Mkdir-p/u01/app/oracle
Mkdir-p/u02/oradata
Chown-r Oracle:oinstall/u01/app/oracle/u02/oradata
Chmod-r 775/u01/app/oracle/u02/oradata
Registered Address: https://www.pppcloud.cn/index.html?referral_code=MTQwMDM0MA==A8X5
——————-The following are Oracle users ————-
New windows, using Oracle User
Su Oracle
Perform:
CD ~
VI. bash_profile
Add the following:
Umask 022
Temp=/tmp
Tmpdir=/tmp
Export TEMP TMPDIR
Oracle_base=/u01/app/oracle/oracle
Oracle_home=/u01/app/oracle/oracle/product/10.2.0/db_1
Oracle_sid=orcl
Export Oracle_base Oracle_sid Oracle_home
Path=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/u01/app/oracle/oracle/product/10.2.0/db_ 1/bin:/usr/x11r6/bin
Export PATH
Execute command: Make changes effective
source. bash_profile
———————————————
Log in with the Oracle user, enter the unpacked folder, and execute the runinstaller installation command.
When you execute the second script, prompt: Enter the full pathname of the local bin Directory:[/usr/local/bin]: When you enter directly
After the installation is complete, execute in the Oracle user's Terminal: ps-a
If there is a lot of oracle, it means the installation is successful
Lsnrctl Start monitoring (logged in as an Oracle user)
Emctl start Dbconsole start Enterprise Manager
Then download and install SQL plus9.0
cd/u01/app/oracle/product/10.2.0/db_1/bin/
./sqlplus/as SYSDBA
Oracle 10g for Linux