1. Prepare the prerequest.
1.1 Check your OS prerequest
First of all, we need some prerequisite before the installation:
- A server installed linux 4 or linux 5.
- Require the root account and password of the server.
- At least 10G free disk space of your server.
- At least 2G memory of the server.
- The oracle install media of appropriate bit (32 or 64) with you OS.
1.2 Prepare the install media
You can download install media from oracle web site www.oracle.com or AAXIS fileserver: \\fileserver\Software\Database\.
Here, for example, we download the follow 2 files from \\fileserver\Software\Database\Oracle11gR2_Linux64
- linux.x64_11gR2_database_1of2.zip
- linux.x64_11gR2_database_1of2.zip
Next we need to upload the 2 files to the server which you need to install oracle database, here we put them into file folder /opt/oracle_software/
- Notes: If /opt/oracle_software/ is not exists then execute "mkdir -p /opt/oracle_software" by root to create it.
Then, unzip the 2 files by root using the follow command:
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_1of2.zip
1.3 Download the Install shell zip package
All the shell is contain in the zip package:
- shell_install_oracle.zip: http://download.youkuaiyun.com/detail/yfleng2002/5234367
You need to download it and unload it to the server you need to install oracle, after upload it, you can see the folder structure like this:
install_oracle.sh is the executable shell program.
- ./config/ is a folder to put all the config files.
- ./config/settings.conf is the config file.
- ./log/ is a folder to put all the log files.
2. Modify the configuration file
The configuration file is settings.conf which you download at step 1.3, you can modify it or leave it to the default value.
The follow is the description of the parameter in the configuration file:
- install_media_path=/opt/oracle_software
- log_path=/opt/log
- ORACLE_BASE=/opt/oracle
- ORACLE_HOME=/opt/oracle/11gR2
- ORACLE_SID=leng
- memoryLimit=500
- oracle_os_password=oracle
- oracle_admin_password=oracle
- processes=2000
- sessions=2200
- ignore_package_fail=N
3. Run the shell scripts on you linux
3.1 Execute the shell.
cd /folder
./install_oracle.sh
3.2 Troubleshooting
After you issue the command ./install_oracle.sh, the install process will start. First it will check the environment and put the result to the log file. On the screen, it will tips the log file location. You can review the log file to check the result, if there are error, please correct it an try again.