In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how to install Oracle database software by cloning. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
I. preparatory work
Sometimes, if the configurations of several machines are similar, you don't need to install the database software over and over again. In this case, clone installation can be used, which is faster than graphical interface and silent installation.
Source host: machine A
Target host: B machine
1. B machine creates users and user groups
# groupadd-g 501 oinstall
# groupadd-g 502 dba
# groupadd-g 503 oper
# useradd-g oinstall-G dba,oper-u 501-d / home/oracle oracle
Parameter description-g specifies the user group
-G specifies additional group
-d specify user directory
Activate oracle user (change oracle user password)
# passwd oracle
2. B machine creates database installation directory and assigns permissions
# mkdir-p / u01/app/oracle/product/11.2.0/db_1
# chown-R oracle:oinstall / U01
# chown-R oracle:oinstall / oradata
# chown-R oracle:oinstall / backup
# chown-R oracle:oinstall / archivelog
# chmod-R 775 / U01
# chmod-R 775 / oradata
# chmod-R 775 / backup
# chmod-R 775 / archivelog
Note: in a normal production environment, we install the database software (ORACLE_HOME) locally and the data (oradata/backup/archivelog) in storage
3. Check that the modified kernel parameters of machine B are the same as those of machine A.
# vi / etc/sysctl.conf
4. Check that the modified user limit file of machine B is consistent with that of machine A.
# vi / etc/security/limits.conf
5. Check that the Oracle environment variable of machine B is the same as that of machine A (oracle user)
$vi .bash _ pfile
6. B machine installs the corresponding requirement package
# yum install-y binutils compat* elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc gcc-c++ libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC-devel libaio-devel ksh
2. Start cloning
A machine operation:
1. Shut down the database
$sqlplus / as sysdba
SQL > shutdown immediate
two。 Turn off snooping
$lsnrctl stop
3. Package / u01/app/oracle/product/ directory
$cd / u01/app/oracle
$tar-cvf / u01/app/oracle/product.tar product/
4. Transfer the package to the B machine
$scp product.tar oracle@IP:/u01/app/oracle
B machine operation:
1. Extract the tar package
$cd / u01/app/oracle
$tar-xvf product.tar
two。 Check the listener.ora and tnsname.ora files in the $ORACLE_HOME/network/admin directory, and modify the HOST field to point to the local machine.
3. Run runinstall
$cd $ORACLE_HOME/oui/bin
$. / runInstall-silent-clone ORACLE_BASE='/u01/app/oracle' ORACLE_HOME='/u01/app/oracle/product/11.2.0/db_1/' ORACLE_HOME_NAME='ORACLE_HOME_1' (custom name)
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 3999 MB Passed
Preparing to launch Oracle Universal Installer from / tmp/OraInstall2018-12-05-08-32-20AM. Please wait... [oracle@localhost bin] $Oracle Universal Installer, Version 11.2.0.4.0 Production
Copyright (C) 1999, 2013, Oracle. All rights reserved.
You can find the log of this install session at:
/ u01/app/oraInventory/logs/cloneActions2018-12-05 08-32-20AM.log
. 100% Done.
Installation in progress (Wednesday, December 5, 2018 8:32:30 AM EST)
.... 78% Done.
Install successful
Linking in progress (Wednesday, December 5, 2018 8:32:36 AM EST)
Link successful
Setup in progress (Wednesday, December 5, 2018 8:33:04 AM EST)
Setup successful
End of install phases. (Wednesday, December 5, 2018 8:33:27 AM EST)
WARNING:A new inventory has been created in this session. However, it has not yet been registered as the central inventory of this system.
To register the new inventory please run the script'/ u01 with root privileges.
If you do not register the inventory, you may not be able to update or patch the products you installed.
The following configuration scripts need to be executed as the "root" user.
/ u01/app/oraInventory/orainstRoot.sh
/ u01/app/oracle/product/11.2.0/db_1/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
The cloning of ORACLE_HOME_1 was successful.
Please check'/ u01/app/oraInventory/logs/cloneActions2018-12-05mm 08-32-20AM.log 'for more details.
At this point, the installation of the Oracle database software has been completed
4. Turn on monitoring
$lsnrctl start
5. Verify the function of sqlplus
$sqlplus / as sysdba
Thank you for reading! This is the end of this article on "how to install Oracle database software through cloning". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.