Recently, the company has changed the computer, and the 10 Gb memory is still quite powerful. First, the Oralce runtime environment is installed on the local machine. I thought it would be very smooth, but there were still some minor problems, record it and help you sort it out. It is also the beginning of the blog. I remember the first time I installed Oracle on Linux, I did not know how many days I had to spend, the installation package was incorrect, and the environment variable configuration was poor. I couldn't think of any problems, and I couldn't understand them. Now, it seems that this is a process that must be taken. Many things can be seen at will only by practice and summarization, such as a simple Oracle installation, most of the problems are caused by the lack of operating system knowledge, so the Linux Foundation should be well established.
For ease of use, the Vbox virtual machine is selected for this installation. The operating system is Oracle Linux 6.3 and Oracle is 11g R2. The installation of Oracle is very detailed on the official website. Therefore, it is safe and convenient to directly install Oracle in accordance with the official website documents without having to search for installation documents from the Internet.
Install Oracle 11gR2 (x64) in CentOS 6.4)
Steps for installing Oracle 11gR2 in vmwarevm
Install Oracle 11g XE R2 In Debian
The basic steps of the Oracle document are described as follows:
1. Log On As A root user
To install the software, you need the root permission. In addition, because it is generally not installed on the local machine, you also need Linux to support X windows and install xterm.
2. Confirm hardware requirements, memory
To understand basic requirements, such as Oracle11gR2 and at least 1 GB memory, run the following command to view
# Grep MemTotal/proc/meminfo
# Grep SwapTotal/proc/meminfo
# Free
3. software requirements, operating systems, kernels, and various packages
As long as Oracle supports the operating system, there is generally no problem; the main part is the various installation packages, there may be some exquisite, the installation documentation only lists the necessary packages, and did not elaborate on how to install, if the server can access the Internet and the network speed is OK, yum install will be done quickly, but it is usually installed on the Intranet and won't make you so smooth. Therefore, you generally need to configure local yum
# Mkdir/mnt/mydvd
# Mount-t iso9660/dev/dvd/mnt/mydvd
# Vi/etc/yum. repos. d/my-yum.repo
[Myyum]
Name = yumtest
Baseurl = file: // mnt/mydvd/Server
Gpcheck = 0
Enable = 1
4. Create users and groups
Includes three groups of one user, Oracle Installation group-oinstall, OSDBA group-dba, user-oracle, OSOPER group-Users
View the oinstall group:
# More/etc/oraInst. loc
Inventory_loc =/u01/app/oraInventory
Inst_group = oinstall
View the dba group:
# Grep dba/etc/group
If not, create the command:
#/Usr/sbin/groupadd oinstall
#/Usr/sbin/groupadd dba
Check whether the oracle user exists and whether the user belongs to the corresponding group
# Id oracle
If an Oracle user exists, the group is incorrect:
#/Usr/sbin/usermod-g oinstall-G dba oracle
If the user does not exist
#/Usr/sbin/useradd-g oinstall-G dba oracle
Set Password
# Passwd oracle
5. Configure Kernel Parameters and resource limits
You can directly paste the parameter information in the official document.
For more details, please continue to read the highlights on the next page: