Installation of Oracle XE under Linux system:
1. Physical hardware requirements, CPU requirements are not high, the general purchase of the cloud server is not a problem, memory minimum 1G RAM, hard disk 16GB minimum.
grep memtotal/proc/meminfo #查看物理内存大小
2. The size of the swap area is 2GB minimum, if the size is insufficient, Oracle will report an exception during installation to prevent the
We use the grep swaptotal/proc/meminfo directive to see the swap size, the general cloud server is not configured to display: Swaptotal 0 kb
If so, we configure a 2GB swap area:
Mkdir/swap #根目录下创建一个swap文件夹
Cd/swap #切换到swap文件夹
dd if=/dev/zero of=swapfile bs=1m count=2048 #创建交换文件swapfile, BS units, manually specify units for the count of M,count, increase Add 1m*2048=2g
mkswap swapfile #把swapfile file created swap zone
swapon swapfile #激活,
Vi/etc/fstab #编辑自动挂载设置,
#在末行添上 swap/swap/swapfile swap defaults 0 2
It is important to note that if you do not configure Fstab, Reactivation of the swapfile file is required after each reboot of the system
At this point, the swap partition we created, with the free-m command to see, this is my cloud server results, each individual situation is different,
Total used free shared buffers Cached
mem:994 930 63 0 29 794
-/+ buffers/cache:106 887
swap:2047 0 2047
Install Oracle XE:
1. Download the Oracle installation file, which is a 64-bit Oracle link that downloads the Oracle 11g XE version, which requires an Oracle account to be downloaded.
2. Switch to the directory where you downloaded the installation files and extract the Disk1 folder using the unzip instructions.
3. Switch to the Disk1 folder, using the rpm command,rpm-ivh xxx.rpm.
Configure Oracle:
After the installation is complete, run /etc/init.d/oracle-xe Configure, and the system prompts you to set the parameters:
Specify the HTTP port that'll be used for Oracle application Express [8080]: 8080 #不填写则按默认端口8080设置
Specify a port that'll be used for the database listener [1521]: 1521 #不填写则按默认端口1521设置
Specify a password to is used for database accounts, Note that the same password would be a used for SYS and SYSTEM. #填写数据库密码, this password will be used as the SYS and SYSTEM account
Want Oracle Database 11g Express Edition to being started on boot (y/n) [y]: y #默认开启
After setting up, wait a moment, we will be happy to use the Oracle database.
A concise guide to installing Oracle-xe under Linux