Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of silently installing oracle in CentOS under VMware

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

Today, the editor will share with you the relevant knowledge points about the method of silently installing oracle in CentOS under VMware. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look.

Environmental preparation:

Vmware+centos,jdk

1. Verify the disk size of the system

1. Command df-h

Ensure the available disk size 15gb (including the space needed for oracle installation 7.5gb + oracle installation zip package close to 3G + installation package extract files 3G)

If the disk is not satisfied, the installation will fail and the capacity needs to be expanded!

Second, installation preparation

1. Create system users and user groups running the oracle database

Groupadd oinstallgroupadd dbauseradd-g oinstall-g dba-m oracle

Passwd oracle # regardless of the prompt, enter the password twice in a row to succeed

two。 Create an oracle database installation directory and authorize the directory to oracle users

Mkdir-p / opt/oracle/database # oracle installation package unzipped files mkdir-p / opt/oracle/product/orainventory # mkdir-p / opt/oracle/product/12.2.0/db_1 # oracle installation directory chown-r oracle:oinstall / opt/oracle # change the owner of the oracle directory chmod 755-r / opt/oracle # change the permissions of the oracle directory

3. Install software packages that are dependent on oracle databases

3.1. Installation

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

3.2. Check to see if the installation is successful

Rpm-Q\ binutils\ compat-libstdc++-33\ elfutils-libelf\ elfutils-libelf-devel\ expat\ gcc\ gcc-c++\ glibc\ glibc-devel\ glibc-headers\ libaio\ libaio-devel\ libgcc\ libstdc++\ make\ pdksh\ sysstat\ unixodbc\ unixodbc-devel | grep "not installed"

4. To shut down selinux, you need to restart effectively (you can restart before you finally install oracle) vim / etc/selinux/config

5. Modify kernel parameter vim / etc/sysctl.conf

Add the following:

Net.ipv4.icmp_echo_ignore_broadcasts = 1

Net.ipv4.conf.all.rp_filter = 1

Fs.file-max = 6815744

Fs.aio-max-nr = 1048576

Kernel.shmall = 2097152

Kernel.shmmax = 2147483648

Kernel.shmmni = 4096

Kernel.sem = 250 32000 100 128

Net.ipv4.ip_local_port_range = 9000 65500

Net.core.rmem_default = 262144

Net.core.rmem_max= 4194304

Net.core.wmem_default= 262144

Net.core.wmem_max= 1048576

Sysctl-p # to make the configuration effective

6. Set restrictions on oracle users to improve system performance

Vim / etc/security/limits.conf

Add the following:

Oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536

7. Configure user environment variables

Vim / home/oracle/.bash_profile

Add the following:

Export oracle_base=/opt/oracle

Export oracle_home=$oracle_base/product/12.2.0/db_1

Export oracle_sid=orcl

Export oracle_term=xterm

Export path=$oracle_home/bin:/usr/sbin:$path

Export ld_library_path=$oracle_home/lib:/lib:/usr/lib

Export

Export nls_lang=american_america.zhs16gbk

Source / home/oracle/.bash_profile # invalidates configuration

8. Unpack the oracle installation file and extract it in the / opt/oracle/ directory

Unzip filename (unzip does not exist, can be installed by command: yum install unzip) pressurization is slow, need to wait

9. Configure the answer file

Vim / opt/oracle/database/response/db_install.rsp

10. Configure the orainventory directory location

Store the directory information for the installation of oracle software, which is needed for oracle installation and upgrade (preferably under the directory corresponding to oracle_base)

Vim / etc/orainst.loc

Add or modify to the following:

Inventory_loc=/opt/oracle/product/orainventory

Inst_group=oinstall

11. Restart centos,reboot

twelve。 Turn off the firewall, systemctl stop firewalld

3. Install oracle12 silently

1. Oracle users have logged in to linux system

two。 Silent installation

/ opt/oracle/database/runinstaller-silent-force-ignoreprereq-responsefile / opt/oracle/database/response/db_install.rsp

The execution process needs to wait a few minutes.

Monitoring logs:

Tail-f/opt/oracle/product/orainventory/logs/installactions2018-11-22-11-04-03am.log

3. Toggle root user login

4. Execute two sh files

4.1. Sh / opt/oracle/product/orainventory/orainstroot.sh

If there is no change to the script in the directory, you can create a new one with the following content:

# cat / oracleCpechogram print$2' print$2' awk f 'print$2' | $awk − f' {print$2}'| $awk-f'if'{print$ 1} '`if [${ruid}! = "root"]; then$ echo "this script must be executed as root" exit 1fiif [- d "/ etc"]; Fiif [- f "/ oracle/orainventory/orainst.loc]; then$cp / oracle/orainventory/orainst.loc / etc/orainst.loc;$chmod 644 / etc/orainst.locelseinvptr=/etc/orainst.locinvloc=/oracle/orainventorygrp=oinstallptrdir=" `dirname $invptr` "; # create the software inventory location pointer fileif [!-d" $ptrdir "]; then$ mkdir-p $ptrdir;fi$echo" creating the oracle inventory pointer file ($invptr) "; $echo inventory_loc=$invloc > $invptr$echo inst_group=$grp > > $invptrchmod 644$ invptr# create the inventory directory if it doesn't existif [!-d" $invloc "] Then $echo "creating the oracle inventory directory ($invloc)"; $mkdir-p $invloc;fifi$echo "changing permissions of / oracle/orainventory.adding read,write permissions for group.removing read,write,execute permissions for world."; $chmod-r glossrw oracle/orainventory;if [$?! = 0]; then $echo "oui-35086:warning: chmod of / oracle/orainventoryadding read,write permissions for group.,removing read,write,execute permissions for world. Failed! "; fi$echo" changing groupname of / oracle/orainventory to oinstall. "; $chgrp-r oinstall / oracle/orainventory;if [$?! = 0]; then $echo" oui-10057:warning: chgrp of / oracle/orainventory to oinstall failed! "; fi$echo" the execution of the script is complete. "

4.2. Sh / opt/oracle/product/12.2.0/db_1/root.sh

5. Toggle oracle user login

6. Install monitoring

$oracle_home/bin/netca / silent / responsefile / opt/oracle/database/response/netca.rsp

7. Start the listener

Lsnrctl start

8. View monitoring status

Lsnrctl status

9. Create a database through dbca

/ opt/oracle/product/12.2.0/db_1/bin/dbca-silent-createdatabase-templatename general_purpose.dbc-gdbname orcl-sid orcl-responsefile no_value-characterset zhs16gbk-memorypercentage 30-emconfiguration local

(delete: dbca-silent-deletedatabase-sourcedb orcl-sid orcl)

10. Start the instance (after it is created, it usually starts automatically)

Sqlplus / as sysdbasql > startupsql > select instance_name,version from v$instance

View the database file dbf

Sql > select name from v$datafile

These are all the contents of this article entitled "how to install oracle silently in CentOS under VMware". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report