In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
When you are new to ORACLE, you will have some trouble installing ORACLE in LINUX environment.
In particular, people who do not have a LINUX foundation will have no idea how to install it. Baidu installs ORACLE, and the installation steps are also quite troublesome. Here, I will introduce you a relatively simple installation method.
I. LINUX system installation
Here we choose OEL6 x64
Oracle Linux download address
The project uses 64-bit system and database software.
So we installed the 64-bit version.
The OL6.5 version is used here.
Of course, you can choose any version of OL6.
Start to install the system, this system and ordinary LINUX system installation is no different, we install their own. Installing this system eliminates the need for everyone to create users, groups, and change permissions. Change kernel parameters, configure environment variables, and so on.
two。 Preparation before installation
1. Network Settin
Ip static configuration, subnet, gateway, DNS optional.
two。 Hostname Settin
Add a line at the end of vi / etc/hosts for example: 192.168.216.129 wyzc.com wyzc is IP + full hostname + hostname abbreviation
3. Configure YUM
Vi / etc/yum.repos.d/public-yum-ol6.repo can change enabled to 0, and then add the following line [6] name=6baseurl= file:///media
4. Load iso to install the software package
Umount / media/OL6.4... (tab completion) mount / dev/cdrom / media/rpm-- import / media/RPM-GPG-KEY*yum install oracle-rdbms-*-y
As long as the package is installed, all the packages you need will be loaded.
5. Create a folder
Mkdir / u01chown oracle:oinstall / U01-R
The preparatory work here is done.
three。 Install GI.
1. What is GI?
Grid Infrastructure-Grid Cluster and automatic Storage solution
Oracle11g installation software
two。 Download the required installation software, there are two compressed packages, decompress the two compressed packages together in the windows environment, it will automatically generate an ISO compressed package, you can mount to the virtual machine. And then execute
Umount / dev/cdrom mount / dev/cdrom / mntsu-oracleunzip / mnt/p10404530_112030_Linux-x86-64_3of7.zip switch to the root user, type xhost + to call up the graphical interface su-rootxhost + back to oracle user su-oracle to the grid folder cd grid to start the installation. / runInstaller
Here we change the installation path to facilitate future use.
This is the time server, you can choose to skip when you study, do not install, check the upper right corner to skip it.
Here you need to execute the command under the ROOT user.
After the execution of / u01/grid/11g/root.sh, look at the line I selected, copy it, and execute it.
After you finish the execution, you can see the prompt SUCCESSFULLY.
GI is installed here, go back to OK, and then exit.
3. Set environment variabl
We have just installed GI, and now we set the environment variables under the ORACLE user. After that, you can use GI.
Vi .grid11g
You can see that line 3 has a very long path. You need to execute echo $PATH under the oracle user. Copy the path and add PATH=$ORACLE_HOME/bin: (that's it).
4. Configure snooping
As shown in the figure, after the environment variable is set, under oracle, enter
. .grid11gnetca can do graphical installation monitoring.
Here we have all the GI installed, and then we can install DB
four。 Install DB
1. Extract the installation file
When we install GI, we have already mounted ISO, so we can execute the decompression command directly. Here is under the ORACEL user.
Unzip / mnt/p10404530_112030_Linux-x86-64_1of7.zip; unzip / mnt/p10404530_112030_Linux-x86-64_2of7.zip
After decompression is completed
Still want to switch to the ROOT user to execute xhost +, and then return to the oracle user to cd database./runInstaller after execution.
two。 Install DB
Here is the same as installing GI, just execute the command under the ROOT user, as shown below
At this point, the DB installation is complete, and then make an environment variable.
3. Set environment variabl
This is the same as the GI environment variable setting method.
Add a row of ORACLE_SID to vi.
4. Installation completed
As shown in the figure, we have all completed the installation, and the steps are simple and detailed. If you look at it carefully, you can install it successfully.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.