In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the relevant knowledge of "how to install Oracle database in VMWare virtual machine Centos7". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to install Oracle database in VMWare virtual machine Centos7" can help you solve the problem.
General editing commands:
Vi test.txt # enters edit mode
Press esc to exit editing mode when editing is finished
Wq enter to save the edited file
1. Set linux boot to automatically open the network connection, do not open the network connection securecrt connection.
Cd / etc/sysconfig/network-scripts/ # enter the network script directory
Vi ifcfg-ens33 # Editing Files
The last line of onboot=no is changed to "yes" to save and exit.
two。 Uninstall centos7 with jdk1.8, install your own jdk and set environment variables
Rpm-qa | grep jdk # check the jdk installation directory (jdk has been uninstalled on your computer, please borrow the picture. )
# use the remove command to remove all jdk related software
Yum-y remove java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64 yum-y remove java-1.7.0-openjdk-1.7.0.141-2.6.10.5.el7.x86_64yum-y remove java-1.7.0-openjdk-headless-1.7.0.141-2.6.10.5.el7.x86_64yum-y remove java-1.8.0-openjdk-headless-1.8 .0.131-11.b12.el7.x86_64yum-y remove copy-jdk-configs-2.2-3.el7.noarch
You can enter the java command to determine whether the uninstall is complete.
Vi / etc/profile # add your own jdk directory environment variable
Add the following:
Export java_home=/usr/local/soft/java/jdk1.7 # Note here is your jdk decompression directory export path=$java_home/bin:$pathexport classpath=.:$java_home/lib/dt.jar:$java_home/lib/tools.jar
Save exit
Source / etc/profile # makes the configuration effective
You can enter java, javac, java-version commands to determine whether the newly configured java environment is normal.
3. Create system users and user groups running the oracle database
Groupadd oinstallgroupadd dbauseradd-g oinstall-g dba-m oraclepasswd oracle # this command allows you to confirm your password twice. If the password is too simple and does not conform to the rules, you will be required to re-enter it.
4. Create an oracle database installation directory and authorize the directory to oracle users
Mkdir-p / opt/oraclemkdir-p / opt/oracle/orainventorymkdir-p / opt/oracle/databasechown-r oracle:oinstall / opt/oraclechown-r oracle:oinstall / opt/oracle/orainventorychown-r oracle:oinstall / opt/oracle/database
Note: it is best to choose the opt directory, and directly select the home directory to remind you that there is insufficient space during installation.
5. Modify os system identity
Vi / etc/redhat-release
Change the original system ID to: redhat-7
6. Install the software packages required for the oracle database
Yum-y install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixodbc unixodbc-devel pdksh numactl-devel glibc-headers
7. Turn off the firewall (permanent)
Systemctl disable firewalld.service
8. To shut down selinux, you need to restart it. You can wait until the next few steps are completed before rebooting.
Vi / etc/selinux/config
9. Modify kernel parameters
Vi / etc/sysctl.conf
Add the following:
Net.ipv4.icmp_echo_ignore_broadcasts = 1net.ipv4.conf.all.rp_filter = 1fs.file-max = 6815744fs.aio-max-nr = 1048576kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 25032000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmemmemroommax= 4194304net.core.wmemmemordefault= 262144net.core.wmemmemroommax= 1048576
Sysctl-p # to make the configuration effective
10. Set restrictions on oracle users to improve software performance
Vi / etc/security/limits.conf
Add:
Oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536
11. Configure user environment variables
Vi / home/oracle/.bash_profile
Add:
Export oracle_base=/opt/oracleexport oracle_home=$oracle_base/product/11.2.0/db_1export oracle_sid=orclexport oracle_term=xtermexport path=$oracle_home/bin:/usr/sbin:$pathexport ld_library_path=$oracle_home/lib:/lib:/usr/libexportexport nls_lang=american_america.zhs16gbk
Source / home/oracle/.bash_profile # makes the configuration effective
twelve。 Put the two compressed files of the oracle database into the / opt/oracle/database directory and extract them. The operation is not detailed.
Extract command: unzip file name
Authorize the directory after decompression: chown-r oracle:oinstall / opt/oracle/database/database/
13. Restart linux to log in with the oracle user
14. It is best to use the linux interface command to enter the / opt/oracle/database/database directory and execute the command:
. / runinstaller-jreloc / usr/local/soft/java/jdk1.7.0_80/
Note: the installation path of jdk during oracle installation is specified here, otherwise oracle will be stuck in a certain interface when it starts next, with a vertical bar in the middle! This problem has been bothering me for several days!
Wait a few seconds, the oracle installation interface appears. Congratulations, the installation can proceed normally!
Solution to the shortage of 15.swap space
Execute the command:
Dd if=/dev/zero of=/opt/swap bs=1024 count=2048000mkswap / opt/swapswapon / opt/swapfree-m # View memory status
Next, checkagain.
The problem of insufficient ok,swap is solved, check ignore all to continue next!
The installation of oracle is relatively long, just wait patiently.
When installing to 68%, the problem will pop up. Just click continue.
When you install to 95%, you will be prompted to configure the password of the database administrator account, and you need to execute two commands. Do not close the installation interface. After configuring the password, you can directly execute it in the directory.
Borrow the picture.
After installation is complete
[oracle@localhost ~] $lsnrctl start # enable listening service [oracle@localhost ~] $sqlplus / as sysdba # Log in sql > shutdown immediate # turn off database service immediately (usually closed) sql > startup # turn on database service (important, must-lose) sql > exit # exit the content on "how to install Oracle database in VMWare virtual machine Centos7" ends here, thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.