RedHat Enterprise Linux7.0 Installation oracle12c

Source: Internet
Author: User
Tags chmod odbc odbc connection

1. Verify the 1.1 hard disk space requirements 1.1.1 installation disk
Type Disk space consumption
Enterprise Edition 6.4GB
Standard Edition 6.1GB
Standard Edition One 6.1GB
1.1.2 tmp directory 1GB space. When setting environment variables, set TMP and Tmpdir. 1.2 graphics card requires 1024x768. 1.3 RunLevel Level 3 or 5. 1.4 SwapRequirements:
RAW Swap
1G to 2G 1.5 times times
2G to 16G Equal to Raw
Above 16G 16G
View command: # grep swaptotal/proc/meminfo # free1.5 Memory: Required: Memory minimum 1G, recommended 2G or higher.view command: # grep memtotal/proc/meminfo1.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
all of the above are x86_64 versions。 # Cat/proc/version//view version 1.7 kernel red Hat Enterprise Linux 7 Release requirements: 3.10.0.54.0.1.el7.x86_64 or update. 1.8 Dependent Software # RPM-QA binutils compat-libcap1 gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc+ +-devel libxi libxtst make Sysstat unixODBC unixodbc-devel # rpm-qa binutils compat-libstdc++-33 elfutils-libelf elfutils -libelf-devel elfutils-libelf-devel-static gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers glibc-static Kernel-headers pdksh libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel libstdc++-static make Numactl-devel sys Stat UnixODBC unixodbc-devel//verification Command 26 packs
  • 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 (installed after glibc-devel-2.17-55.el7.x86_64)
  • Ksh (Rear mount)
  • 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 (installed after libaio-devel-0.3.109-12.el7.x86_64)
  • 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 Install package name//install package 1.9 Users and groups determine if oracle:# more/etcorainst.loc# grep oinstall/etc/group# ID was installed Oracle Create Group: #/usr/sbin /groupadd-g 54321 oinstall#/usr/sbin/groupadd-g 54322 dba#/usr/sbin/groupadd-g 54323 oper Create User: #/usr/sbin/useradd-u 54321-G oinstall-g dba,oper Oracle Setup password: # 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 Configuration environment variable # su-oralce$ echo $SHELL//My RHEL7.0 is bash , so the following are all used in bash. $ VI ~/.bash_profile Add the following line:
1 # User specific environment and startup programs2Umask0223  4# +--------------------------+5# | SETUP ORACLE Environment |6# +--------------------------+7tmp=/opt/ora/tmp8tmpdir=/opt/ora/tmp9 Export TMP TMPDIRTen  Oneoracle_home=/opt/app/oracle/product/12.1.0/db_1 A Export Oracle_home -oracle_base=/opt/app/Oracle - Export Oracle_base theOracle_sid=AFCSC - Export Oracle_sid -tns_admin= $ORACLE _home/network/Admin - Export Tns_admin +nls_lang=American_america. ZHS16GBK - Export Nls_lang +Path= $PATH: $ORACLE _home/bin A Export PATH atlang=American_america. ZHS16GBK - Export LANG -# +--------------------------+ -# | LINUX STUFF | -# +--------------------------+ -Unset USERNAME


Execution: Source ~/.bash_profile 1.11 Configuration Kernel Note: Configuration changes are required to configure larger than system data, 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, official document recommendation is 1/2 of memory
My server is 8G memory, so for 8*1024*1024*1024-1
Value is 4294967295 (8G 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.confAdd by System value comparison:FS.AIO-MAX-NR = 1048576
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 after saving effective command: #/sbin/sysctl-p 1.12 Set Number of processes and maximum number of sessions edit file: # vi/etc/security/limits.conf Add the following statement:
1 Oracle           soft     nproc           20472 Oracle           hard    nproc           16384 3 Oracle           soft     nofile           1024x7684 Oracle           hard    nofile           65536 5 Oracle           soft     stack            102406 Oracle           hard    Stack            10240

1.13 Configuring the PAM Edit file: Vi/etc/pam.d/login Add the following statement:
Session    required     pam_limits.so
(Note: Based on the comments of the last session rule, it should be added before the last rule) 2 installation 2.1 decompression will linuxamd64_12c_database_1of2.zip and Linuxamd64_12c_database_ 2of2.zip move to the/tmp directory to extract the uncompressed. $ cd/opt/ora/tmp$ Unzip linuxamd64_12c_database_1of2.zip$ Unzip linuxamd64_12c_database_2of2.zip 2.2 installation $ cd/opt/ora/ tmp/database/$./runinstaller 2.3 Error installation process to more than 80% (all files are copied and started after the link), error
1) Error
Ins_precomp.mk
INFO:/usr/bin/ld: <oracle_home>/lib//libnls12.a (LXHLANG.O): undefined reference to symbol ' [email protected]@ glibc_2.3′
This is because the library file that comes with the Oracle installation file is too old

Need to delete {oracle_home}/lib/stubs This directory (for my settings, that is/opt/oracle/product/12.1.0.1.0/lib/stubs

Cd/opt/oracle/product/12.1.0.1.0/lib
RM-RF stubs
2) in the graphical installation screen Click Retry continue, Error again

Ins_rdbms.mk
libclient12.a (KPUE.O): undefined reference to symbol ' Ons_subscriber_close '
....
Libons.so:could not read Symbols:invalid operation
Modify the Rdbms/lib/ins_rdbms.mk 883 rows and 901 rows

879$ (PLSHPROF): $ (always) $ (plshprof_deps)880$ (SILENT) $ (ECHO)881$ (SILENT) $ (ECHO)"-Linking Hierarchical Profiler utility (PLSHPROF)"882$ (RMF) [email protected]883$ (plshprof_linkline)-lons ....897$ (RMAN): $ (always) $ (rman_deps)898$ (SILENT) $ (ECHO)899$ (SILENT) $ (ECHO)"-Linking Recovery Manager (Rman)"  the$ (RMF) [email protected]901$ (rman_linkline)-lons


3) in the graphics program Retry, the 3rd time error

Ins_rdbms.mk
houzi.o:undefined reference to symbol ' ZTCSH '
Libnnz12.so:could not read Symbols:invalid operation
Modify 1067 lines of INS_RDBMS.MK

1063 $ (TG4PWD): $ (always) $ (tg4pwd_deps) 1064          $ (SILENT) $ (ECHO)1065         " -Linking $ (TG4DG4) PWD utility " 1066          $ (RMF) [email protected]1067         $ (tg4pwd_linkline)-lnnz12

RedHat Enterprise Linux7.0 Installation oracle12c

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.