本文主要向大家介绍了Oracle数据库之Oracle12c install on CentOS7,通过具体的内容向大家展现,希望对大家学习Oracle数据库有所帮助。
SIT Test DB server:
[root@pss-db-test ~]# uname -r
3.10.0-693.21.1.el7.x86_64
[root@pss-db-test db_1]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
[root@pss-db-test PSSDBbak]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 30G 20G 9.7G 68% /
devtmpfs 28G 0 28G 0% /dev
tmpfs 28G 6.9G 21G 25% /dev/shm
tmpfs 28G 17M 28G 1% /run
tmpfs 28G 0 28G 0% /sys/fs/cgroup
/dev/sdc1 2.0T 455G 1.5T 24% /data
/dev/sda1 497M 79M 419M 16% /boot
tmpfs 5.6G 0 5.6G 0% /run/user/0
/dev/sdb1 111G 26G 80G 25% /mnt/resource
tmpfs 5.6G 0 5.6G 0% /run/user/1001
/dev/loop0 4.3G 4.3G 0 100% /mnt/centos7
https://support.oracle.com/epmos/faces/CertifyResults?_adf.ctrl-state=12t9mjeyu2_9&searchCtx=st%255EANY%257Cpa%255Epi%255E564_Oracle%2BDatabase%257Evi%255E569%257Epli%255E35_Linux%2Bx86-64%257Eplvi%255E198%257Epln%255ELinux%2Bx86-64%2BRed%2BHat%2BEnterprise%2BLinux%2B5%257E%257C&_afrLoop=422537297086636
https://docs.oracle.com/cd/B19306_01/install.102/b15667.pdf
1.3 Shipped Kernels Oracle Linux 7 is shipped with the following kernels: • Red Hat Compatible Kernel (RHCK),
based on mainline Linux version 3.10. • Unbreakable Enterprise Kernel Release 3 (UEK R3), starting with 3.8.13,
based on mainline Linux version 3.8. This is the default kernel.
http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_database_1of2.zip
http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_database_2of2.zip
[root@pss-db-test oracle12c]# wget -b http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_database_1of2.zip
Continuing in background, pid 102627.
Output will be written to wget-log.1
[root@pss-db-test oracle12c]# tail -f wget-log.1
Resolving login.oracle.com (login.oracle.com)... 209.17.4.8
Connecting to login.oracle.com (login.oracle.com)|209.17.4.8|:443... connected.
HTTP request sent, awaiting response... 401 Authorization Required
Authorization failed.
wget --http-user= --http-password= -b http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_database_1of2.zip
wget -O linuxamd64_12102_database_1of2.zip -b http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_database_1of2.zip?AuthParam=1525327359_595ffd13c451876a19e1015c48700706
wget -O linuxamd64_12102_database_2of2.zip -b http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_database_2of2.zip?AuthParam=1525327590_7f5e90233d2f3a45a7c45ecf6e711545
-------------------------------------------------------------------------------
after downloaded, try to install oracle12c
-------------------steps below begin--------------------------
step1:Check Hardware Requirements
[root@pss-db-test oracle12c]# ls -ll
total 2629112
-rw-r--r--. 1 root root 178 May 3 05:24 filelist.txt
-rw-r--r--. 1 root root 1673544724 Jul 11 2014 linuxamd64_12102_database_1of2.zip
-rw-r--r--. 1 root root 1014530602 Jul 11 2014 linuxamd64_12102_database_2of2.zip
-rw-r--r--. 1 root root 5162 May 3 05:53 wget-log
-rw-r--r--. 1 root root 2328 May 3 05:19 wget-log.1
-rw-r--r--. 1 root root 2436 May 3 05:56 wget-log.2
-rw-r--r--. 1 root root 2567209 May 3 06:06 wget-log.3
-rw-r--r--. 1 root root 1539673 May 3 06:08 wget-log.4
[root@pss-db-test oracle12c]# grep "model name" /proc/cpuinfo
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
[root@pss-db-test oracle12c]# cat /proc/cpuinfo | grep "processor" | wc -l
8
[root@pss-db-test oracle12c]# cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
1
[root@pss-db-test oracle12c]# cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
1
[root@pss-db-test oracle12c]# grep MemTotal /proc/meminfo
MemTotal: 57703176 kB
[root@pss-db-test oracle12c]# topas
-bash: topas: command not found
[root@pss-db-test oracle12c]# top
top - 07:29:24 up 8 days, 6:21, 2 users, load average: 0.00, 0.01, 0.05
Tasks: 154 total, 1 running, 153 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.3 us, 0.1 sy, 0.0 ni, 99.5 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st
KiB Mem : 57703176 total, 23158080 free, 522856 used, 34022240 buff/cache
KiB Swap: 0 total,