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

How to clone and install oracle software from Cloning $oracle_home in Oracle

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

This article will explain in detail how to clone and install oracle software on Cloning $oracle_home in Oracle. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Purpose: Cloning an Oracle Home, which can avoid repeated installation of oracle software on multiple machines.

1. Stop the related process

[root@node1 bin] #. / crsctl stop cluster-all

2. Package the dbhome_1 directory

[root@node1 11.2.0] # cd / u01/app/oracle/product/11.2.0/

[root@node1 11.2.0] # tar-zcvpf db_1.bak db_1/

[root@node1 11.2.0] # ls

Db_1 db_1.bak

Add:

Create a ZIP file with the Oracle home (but not the Oracle base) directory.

# zip-r dbhome_1.zip / u01/app/oracle/product/11.2.0/dbhome_1

Do not include the admin, fast_recovery_area, and oradata directories that are under the Oracle base directory. These directories are created in the target installation later, when you create a new database there.

3. (if it is an off-machine clone) copy the ZIP file to the appropriate directory of the target computer.

4. Decompress the tar package

# tar zxvf db_1.bak-C / app/oracle/product/11.2.0/

Note:

If there are multiple nodes, all nodes repeat steps 2, 3, 4.

5. Clear * .ora under $ORACLE_HOME/network/admin

6. Run the $ORACLE_HOME/perl/bin/perl clone.pl script

Node1- > $ORACLE_HOME/perl/bin/perl clone.pl ORACLE_BASE= "/ u01/app/oracle/" ORACLE_HOME= "/ app/oracle/product/11.2.0/db_1" OSDBA_GROUP=dba OSOPER_GROUP=oper-defaultHomeName

. / runInstaller-clone-waitForCompletion "ORACLE_BASE=/u01/app/oracle/", "ORACLE_HOME=/app/oracle/product/11.2.0/db_1", "oracle_install_OSDBA=dba"oracle_install_OSOPER=oper"-defaultHomeName-defaultHomeName-silent-noConfig-nowait

Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 6999 MB Passed

Preparing to launch Oracle Universal Installer from / tmp/OraInstall2017-09-06 / 04-30-28AM. Please wait... 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/cloneActions2017-09-06 04-30-28AM.log

. 100% Done.

Installation in progress (Wednesday, September 6, 2017 4:31:02 AM CST)

.... 78% Done.

Install successful

Setup in progress (Wednesday, September 6, 2017 4:33:11 AM CST)

Setup successful

End of install phases. (Wednesday, September 6, 2017 4:33:49 AM CST)

WARNING:

The following configuration scripts need to be executed as the "root" user.

/ 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 OraHome1 was successful.

Please check'/ u01/app/oraInventory/logs/cloneActions2017-09-06 0430-28AM.log' for more details.

Meaning:

Use the following syntax:

$ORACLE_HOME/perl/bin/perl clone.pl ORACLE_BASE= "target_oracle_base" ORACLE_HOME= "target_oracle_home"

OSDBA_GROUP=OSDBA_privileged_group OSOPER_GROUP=OSOPER_privileged_group-defaultHomeName

Add:

Oracle Universal Installer starts, and then records the cloning actions in the cloneActionstimestamp.log file. This log file is typically located in / orainventory_location/logs directory.

7. Re-monitor and build dbca database

To configure the connection information for the new database, run Net Configuration Assistant:

$cd $ORACLE_HOME/bin

$. / netca

To create a new database for the newly cloned Oracle home, run Database Configuration Assistant:

$cd $ORACLE_HOME/bin

$. / dbca

On "Cloning $oracle_home in Oracle how to clone and install oracle software" this article is shared here, 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, please share it out 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.

Share To

Database

Wechat

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

12
Report