Oracle database 12c:Install Examples
Example(样例)介质可以在Oracle数据库的官方页面上获得,具体地址如下:
(for Linux-64)
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/database12c-linux-download-2240591.html
下载好了之后,上传服务器:
(这里,我上传到服务器的“/software”目录下。)
1 2 3 4 5 6 7 8 |
[root@oracledb12c software]# pwd /software [root@oracledb12c software]# ll total 488016 -rwxrwxrwx 1 root root 499228127 Sep 3 13:48 linuxamd64_12102_examples.zip [root@oracledb12c software]# du -sh * 477M linuxamd64_12102_examples.zip [root@oracledb12c software]# |
解压:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
[root@oracledb12c software]# su - oracle [oracle@oracledb12c ~]# cd /software [oracle@oracledb12c software]# unzip linuxamd64_12102_examples.zip (... etc) inflating: examples/stage/shiphomeproperties.xml creating: examples/stage/fastcopy/ inflating: examples/stage/fastcopy/setperms1.sh inflating: examples/stage/fastcopy/racfiles.jar inflating: examples/stage/fastcopy/oracle.companionCD.db_DB_1.xml inflating: examples/stage/fastcopy/oracle.companionCD.db_DB_dirs.lst inflating: examples/stage/fastcopy/oracle.companionCD.db_DB_filemap.jar creating: examples/stage/globalvariables/ inflating: examples/stage/globalvariables/variable.properties inflating: examples/stage/globalvariables/globalvar.xml creating: examples/stage/sizes/ extracting: examples/stage/sizes/oracle.companionCD.db.DB.sizes.properties inflating: examples/stage/sizes/oracle.companionCD.db.12.1.0.2.0.sizes.properties inflating: examples/stage/sizes/oracle.companionCD.db12.1.0.2.0DB.sizes.properties [root@oracledb12c software]# |
安装前,先查看下当前的磁盘空间使用情况:
1 2 3 4 5 6 7 8 |
[root@oracledb12c ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 14G 9.4G 3.7G 73% / /dev/sda1 99M 25M 70M 26% /boot tmpfs 2.0G 0 2.0G 0% /dev/shm /dev/sdb1 30G 3.8G 25G 14% /oradata [root@oracledb12c ~]# |
设置DISPLAY变量:
1 2 3 4 |
[root@oracledb12c ~]# export DISPLAY=192.168.65.1:0.0 [root@oracledb12c ~]# xhost + access control disabled, clients can connect from any host [root@oracledb12c ~]# |
调出OUI:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
[root@oracledb12c ~]# su - oracle [oracle@oracledb12c ~]$ [oracle@oracledb12c ~]$ cd /software [oracle@oracledb12c software]$ ls examples linuxamd64_12102_examples.zip [oracle@oracledb12c software]$ [oracle@oracledb12c software]$ cd examples/ [oracle@oracledb12c examples]$ ls install response runInstaller stage welcome.html [oracle@oracledb12c examples]$ [oracle@oracledb12c examples]$ ./runInstaller Starting Oracle Universal Installer... Checking Temp space: must be greater than 415 MB. Actual 3693 MB Passed Checking swap space: must be greater than 150 MB. Actual 5951 MB Passed Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-09-04_09-24-54AM. Please wait ... [oracle@oracledb12c examples]$ [oracle@oracledb12c examples]$ You can find the log of this install session at: /u01/app/oraInventory/logs/installActions2015-09-04_09-24-54AM.log [oracle@oracledb12c examples]$ |
安装完成。
再次查看磁盘的空间使用情况:
1 2 3 4 5 6 7 8 |
[root@oracledb12c ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 14G 11G 2.9G 78% / /dev/sda1 99M 25M 70M 26% /boot tmpfs 2.0G 0 2.0G 0% /dev/shm /dev/sdb1 30G 3.8G 25G 14% /oradata [root@oracledb12c ~]# |
可以看到,安装Examples,消耗掉了:0.8 GB。
注:上面的安装过程中,我的数据库实例是没有开启的。
————————————————————
Done