RedHat Enterprise Linux7.0 install Oracle12c, linux7.0oracle12c
1. Verify that 1.1 hard disk space requires 1.1.1 disk installation
Type |
Disk space occupied |
Enterprise Edition |
6.4 GB |
Standard Edition |
6.1 GB |
Standard Edition One |
6.1 GB |
1.1.2 TMP directory 1 GB space. Set TMP and TMPDIR when setting environment variables. 1.2 video card requirements 1024*768. 1.3 Runlevel level 3 or 1.4 swap requirements:
RAW |
Swap |
1G to 2G |
1.5 times |
2 GB to 16 GB |
Same as RAW |
16 GB or above |
16 GB |
View command: # grep SwapTotal/proc/meminfo # free1.5 memory: requirement: the minimum memory size is 1 GB. 2 GB or higher is recommended. View the command: # grep MemTotal/proc/meminfo 1.6 Operating System
- Oracle Linux 7
- Oracle Linux 6
- Oracle Linux 5
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 5
The above versions are all x86_64. # Cat/proc/version // view version 1.7 kernel Red Hat Enterprise Linux 7 version requirements: 3.10.0.54.0.1.el7.x86 _ 64 or update. 1.8 dependency software # rpm-qa binutils compat-libcap1 gcc-c ++ glibc-devel ksh libaio-devel libgcc libstdc ++-devel libXi libXtst make sysstat unixODBC- devel # rpm-qa binutils compat-libstdc ++-33 elfutils-libelf-devel-static gcc-c ++ glibc-common glibc- devel glibc-headers glibc-static kernel-headers initialize libaio-devel libgcc libgomp libstdc ++-devel libstdc ++-static make numactl-devel sysstat unixODBC-devel/ /26 packages of the verification command
- Binutils-2.23.52.0.1-12.el7.x86_64 (binutils-2.23.52.0.1-16.el7.x86_64)
- Compat-libcap1-1.10-3.el7.x86_64 (compat-libcap1-1.10-7.el7.x86_64)
- Gcc-4.8.2-3.el7.x86_64 (gcc-4.8.2-16.el7.x86_64)
- Gcc-c ++-4.8.2-3. el7.x86 _ 64 (gcc-c ++-4.8.2-16. el7.x86 _ 64)
- Glibc-2.17-36.el7.i686
- Glibc-2.17-36.el7.x86_64 (glibc-2.17-55.el7.x86_64)
- Glibc-devel-2.17-36.el7.i686
- Glibc-devel-2.17-36.el7.x86_64 (post-glibc-devel-2.17-55.el7.x86_64 installation)
- Ksh (post-installation)
- Libaio-0.3.109-9.el7.i686
- Libaio-0.3.109-9.el7.x86_64 (libaio-0.3.109-12.el7.x86_64)
- Libaio-devel-0.3.109-9.el7.i686
- Libaio-devel-0.3.109-9.el7.x86_64 (post-libaio-devel-0.3.109-12.el7.x86_64 installation)
- Libgcc-4.8.2-3.el7.i686
- Libgcc-4.8.2-3.el7.x86_64 (libgcc-4.8.2-16.el7.x86_64)
- Libstdc ++-4.8.2-3. el7.i686
- Libstdc ++-4.8.2-3. el7.x86 _ 64 (libstdc ++-4.8.2-16. el7.x86 _ 64)
- Libstdc +-devel-4.8.2-3.el7.i686
- Libstdc ++-devel-4.8.2-3.el7.x86_64 (libstdc ++-devel-4.8.2-16.el7.x86_64)
- LibXi-1.7.2-1.el7.i686
- LibXi-1.7.2-1.el7.x86_64 (libXi-1.7.2-2.1.el7.x86_64)
- LibXtst-1.2.2-1.el7.i686
- LibXtst-1.2.2-1.el7.x86_64 (libXtst-1.2.2-2.1.el7.x86_64)
- Make-3.82-19.el7.x86_64 (make-3.82-21.el7.x86_64)
- Sysstat-10.1.5-1.el7.x86_64 (sysstat-10.1.5-4.el7.x86_64)
- Zlib-1.2.7-13.el7.x86_64.rpm
- Zlib-devel-1.2.7-13.el7.x86_64.rpm
- UnixODBC-2.3.1-10.el7.x86_64 (oracle installable with ODBC connection) // http://www.unixodbc.org
- UnixODBC-devel-2.3.1-10.el7.x86_64 (oracle installable with ODBC connection) // http://www.unixodbc.org
# Rpm-ivh installation package name // installation package 1.9 users and groups determine whether oracle has been installed: # more/etcoraInst. loc # grep oinstall/etc/group # id create a group in oracle: #/usr/sbin/groupadd-g 54321 oinstall #/usr/sbin/groupadd-g 54322 dba #/usr/sbin/groupadd-g 54323 users create users: #/usr/sbin/useradd-u 54321-g oinstall-G dba, configure the password for oracle: # passwd oracle 1.10 create installation directory # mkdir-p/opt/app/oracle/product/12.1.0/db_1
# Chown-R oracle: oinstall/opt/app # chmod-R 775/opt/app # mkdir-p/opt/app/tmp
# Chown-R oracle: oinstall/opt/app/tmp # chmod-R 775/opt/app/tmp 1.11 configure the environment variable # su-oralce $ echo $ SHELL // my RHEL7.0 is bash, so the following are all used in bash. $ Vi ~ /. Add the following line to bash_profile:
1 # User specific environment and startup programs 2 umask 022 3 4 # +--------------------------+ 5 # | SETUP ORACLE ENVIRONMENT | 6 # +--------------------------+ 7 TMP=/opt/ora/tmp 8 TMPDIR=/opt/ora/tmp 9 export TMP TMPDIR10 11 ORACLE_HOME=/opt/app/oracle/product/12.1.0/db_112 export ORACLE_HOME13 ORACLE_BASE=/opt/app/oracle14 export ORACLE_BASE15 ORACLE_SID=afcsc16 export ORACLE_SID17 TNS_ADMIN=$ORACLE_HOME/network/admin18 export TNS_ADMIN19 NLS_LANG=AMERICAN_AMERICA.ZHS16GBK20 export NLS_LANG21 PATH=$PATH:$ORACLE_HOME/bin22 export PATH23 LANG=AMERICAN_AMERICA.ZHS16GBK24 export LANG25 # +--------------------------+26 # | LINUX STUFF |27 # +--------------------------+28 unset USERNAME
Run: source ~ /. Bash_profile 1.11 configure the kernel. Note: If the configuration is greater than the system data, you need to modify the configuration. Otherwise, no configuration is required. Required Configuration:
Parameters |
Value |
File |
Command |
Semmsl Semmns Semopm Semmni |
250 32000 100 128 |
/Proc/sys/kernel/sem |
#/Sbin/sysctl-a | grep sem |
Shmall |
3435973835 |
/Proc/sys/kernel/shmall // total memory 40% |
#/Sbin/sysctl-a | grep shm |
Shmmax |
4294967295 |
/Proc/sys/kernel/shmmax // Maximum shared memory. The recommended official document is 1/2 of the memory size. // My server is 8 GB memory, so it is 8*1024*1024*1024-1 // Value: 4294967295 (8 GB memory/2) |
#/Sbin/sysctl-a | grep shm |
Shmmni |
4096 |
/Proc/sys/kernel/shmmni |
#/Sbin/sysctl-a | grep shm |
File-max |
6815744 |
/Proc/sys/fs/file-max |
#/Sbin/sysctl-a | grep file-max |
Ip_local_port_range |
9000 65500 |
/Proc/sys/net/ipv4/ip_local_port_range |
#/Sbin/sysctl-a | grep ip_local_port_range |
Rmem_default |
262144 |
/Proc/sys/net/core/rmem_default |
#/Sbin/sysctl-a | grep rmem_default |
Rmem_max |
4194304 |
/Proc/sys/net/core/rmem_max |
#/Sbin/sysctl-a | grep rmem_max |
Wmem_default |
262144 |
/Proc/sys/net/core/wmem_default |
#/Sbin/sysctl-a | grep wmem_default |
Wmem_max |
1048576 |
/Proc/sys/net/core/wmem_max |
#/Sbin/sysctl-a | grep wmem_max |
Aio-max-nr |
1048576 |
|
|
# Vi/etc/sysctl. conf: Add fs. aio-max-nr = 1048576 by system Value Comparison
Fs. file-max = 6815744
Kernel. shmall = 3435973835
Kernel. sem = 250 32000 100 128
Net. ipv4.ip _ local_port_range = 9000 65500
Net. core. rmem_default = 262144
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 1048576 save and run the following command: #/sbin/sysctl-p 1.12 set the number of processes and the maximum number of sessions. edit the file: # vi/etc/security/limits. add the following statement to conf:
1 oracle soft nproc 20472 oracle hard nproc 163843 oracle soft nofile 10244 oracle hard nofile 655365 oracle soft stack 102406 oracle hard stack 10240
1.13 configure the PAM editing file: vi/etc/pam. d/login and add the following statement:
session required pam_limits.so
(Note: According to the comment of the last session rule, it should be added before the last rule.) 2. Install 2.1 uncompress and move linuxamd64_12c_database_1of2.zipand linuxamd64_12c_database5of2.zip to the/tmp directory for decompression. $ Cd/opt/ora/tmp $ unzip linuxamd64_12c_database_1of2.zip $ unzip linuxamd64_12c_databasesilicate f2.zip 2.2 installation $ cd/opt/ora/tmp/database/$. /runInstaller 2.3 reports an error during the installation process to more than 80% (after all files are copied and links are started), an error is reported.
1) Error
Ins_precomp.mk
INFO:/usr/bin/ld: <ORACLE_HOME>/lib // libnls12.a (lxhlang. o): undefined reference to symbol' _ tls_get_addr @ GLIBC_2.3 ′
This is because the library file that comes with the oracle Installation File is too old.
You need to delete the {ORACLE_HOME}/lib/stubs directory (for my settings,/opt/oracle/product/12.1.0.1.0/lib/stubs
Cd/opt/oracle/product/12.1.0.1.0/lib
Rm-rf stubs
2) click Retry on the graphic installation page to continue. An error is reported again.
Ins_rdbms.mk
Libclient12.a (kpue. o): undefined reference to symbol 'ons _ subscriber_close'
....
Libons. so: cocould not read symbols: Invalid operation
Modify rows 883 and 901 of rdbms/lib/ins_rdbms.mk
879 $(PLSHPROF) : $(ALWAYS) $(PLSHPROF_DEPS)880 $(SILENT)$(ECHO)881 $(SILENT)$(ECHO) " - Linking hierarchical profiler utility (plshprof)"882 $(RMF) $@883 $(PLSHPROF_LINKLINE) -lons.... 897 $(RMAN) : $(ALWAYS) $(RMAN_DEPS) 898 $(SILENT)$(ECHO) 899 $(SILENT)$(ECHO) " - Linking recovery manager (rman)" 900 $(RMF) $@ 901 $(RMAN_LINKLINE) -lons
3) In the graphics program Retry, 3rd errors are reported
Ins_rdbms.mk
Houzi. o: undefined reference to symbol 'ztcsh'
Libnnz12.so: cocould not read symbols: Invalid operation
Modify row 1067 of ins_rdbms.mk
1063 $(TG4PWD) : $(ALWAYS) $(TG4PWD_DEPS)1064 $(SILENT)$(ECHO)1065 $(SILENT)$(ECHO) " - Linking $(TG4DG4)pwd utility"1066 $(RMF) $@1067 $(TG4PWD_LINKLINE) -lnnz12