In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1.1 download installation package
Oracle official website address please do not allow me to put Baidu oracle,51CTO content restrictions!
1) Open the official website and find the download link, as shown in the figure.
2) Select more downloads.
3) Select the database version. The latest version is selected here.
4) receive the license agreement and choose the linux version for download
5) accept the license agreement and click linuxx64_12201_database.zip
6) you can create one if you do not have one in the Oracle account.
7) then you can download it
1.2 detailed explanation of the installation process
Note that the installation of oracle needs to be installed in the graphical interface (you can also choose to install silently in command-line mode, which is very tedious and not recommended). You need to choose to install the graphical interface or install the graphical interface after the installation of the system.
The centos6.9 Desktop version is used this time.
1.2.1 system release Notes
[root@Oracle ~] # cat / etc/redhat-release
CentOS release 6.9 (Final)
[root@Oracle] # uname-a
Linux Oracle 2.6.32-696.el6.x86_64 # 1 SMP Tue Mar 21 19:29:05 UTC 2017 x86 "64 GNU/Linux
1.2.2 install dependency packages
Install the dependency package and check
[root@oracle ~] # yum install gcc gcc-c++ ksh libaio-devel libstdc++-devel compat-libstdc++-33 compat-libcap1-y
Installed:
Compat-libcap1.x86_64 0RO 1.10-1
Compat-libstdc++-33.x86_64 0VOR 3.2.3-69.el6gcc.x86_64 0RU 4.4.7-18.el6gcc-c++.x86_64 0RU 4.4.7-18.el6
Ksh.x86_64 0RO 20120801-35.el6_9
Libaio-devel.x86_64 0RO 0.3.107-10.el6
Libstdc++-devel.x86_64 0RU 4.4.7-18.el6
1.2 installation process
1. Decompress the file
Cd / server/oracle/ unzip linuxx64_12201_database.zip
two。 Create an oracle user and switch to an oracle user
Useradd oraclepasswd oracle
Chown-R oracle.oracle / server/tools/database/
3. Switch to oracle user and configure environment variables
Su-oracle
Configure environment variables (under oracle users):
Vim .bash _ profile
# use for oracle
Export ORACLEBASE=/usr/oracle
Export ORACLEHOME=$ORACLEBASE/product
Export ORACLESID=orcl
Export PATH=$PATH:$HOME/bin:$ORACLEHOME/bin
Export LDLIBRARYPATH=$ORACLEHOME/lib:/usr/lib
4. Enter the installation directory and execute the installation script (under oracle user)
Cd / server//database
. / runInstaller
After running the above process, if you do not have the red installation interface below, do not panic, you may need to wait a while, if you do not want to wait, you can run again, if the above inspection conditions are not met, directly Baidu to find a way, do not repeat.
Note: when installing here, there may be an error: prvf-0002 cannot retrieve the local node name
In this case, the / etc/hosts file is not well written, and you need to add native parsing.
Format: static IP hostname
5. Configure the database and go to the web management page (multi-figure)
Enter your own email address (do not email me, thank you)
Choose to create a new database
Install Select Server Type
The desktop type has less functionality, so choose the server type.
Select the installation type of the database
You can select a single instance here
For installation, select advanced installation for customized installation.
Choose the database version here and select the enterprise version.
Specify the installation directory
Note that the installed directory should have enough space, and oracle needs more space.
Specify product list catalogue
Select the type of database to create
Select the database name, which is fine by default.
Pay attention to memory settings
Since I am a virtual machine, the memory is kept to a minimum.
Select utf8 in the character set
Select the example on the installation
Because I am for testing purposes, I install the samples
Select the way the data is stored
Cloud management, those with oracle can be added.
Data recovery, turning on
Set user password
I have a unified password here. It is recommended to set a high-strength password in the production environment.
It is relatively simple to set the password to oracle, and all systems will indicate that it does not comply with the security specification. Just choose Yes.
The type of database operation used (default)
Begin the installation.
Check to see if the environment is correct and there will be a fix script for the error.
Note: open the terminal to find the location of the script according to the prompt and use the repair script to fix it. Pay attention to the use of root users (ps: I have a problem with insufficient swap space expectation. I only have 2G at the beginning. I didn't give it well at the beginning. I found a way to increase the swap space. Baidu can find many ways. )
Run this script as the root user
After the repair is complete, you can continue the following operations.
Click the next step to install. The installation speed is slow. Wait patiently.
Execute the script during installation (as in the above script execution process, open the terminal, find a location and run these two scripts under the identity of root. _ when the second script is executed, there will be some selection information that can be defaulted throughout)
[root@oracle ~] # sh / oracle/app/oraInventory/orainstRoot.sh
Change permissions / oracle/app/oraInventory.
Add read and write permissions for the group.
Removes global read, write, and execute permissions.
Change the group name / oracle/app/oraInventory to oracle.
The execution of the script is complete.
[root@oracle ~] # sh / oracle/app/oraclea/product/12.2.0/dbhome_1/root.sh
When executing this script, just enter all the way (except for special needs).
Note: there is an error in the middle and the reason for the failure of Configuration Assistant (details can be judged by the log)
1. Check to see if the c:\ windows\ System32\ drivers\ etc\ hosts file 127.0.0.1 is blocked.
two。 And IP address do not use DHCP to automatically obtain IP, you need to specify an IP address. This problem error can be solved as long as you find the cause and let the monitor start normally.
3. The failure of the firewall to shut down caused
4. Check that other network configurations are correct.
When the installation is complete, use the browser to access it as prompted (the browser may report that the flash plug-in is missing and install one)
User name is system
The password I set is 123456.
The installation is complete at this point.
Some simple commands in command-line mode and the problems I encountered when using the command line for service deployment, as well as some differences between 12C and previous versions, will be posted on my next blog.
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
-- oracle 11g--SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_
© 2024 shulou.com SLNews company. All rights reserved.