root
on Linux systems, run the cp
command:
# cp -prf Grid_home copy_path
The Oracle Grid Infrastructure home contains files that are relevant only to the source node, so you can remove the unnecessary files from the copy of the Oracle Grid Infrastructure home in the log
, crs/init
, crf
, and cdata
directories. The following example for Linux and UNIX systems shows the commands to run to remove the unnecessary files from the copy of the Oracle Grid Infrastructure home:
[root@node1 root]# cd copy_path [root@node1 grid]# rm -rf log/host_name [root@node1 grid]# rm -rf gpnp/host_name [root@node1 grid]# find gpnp -type f -exec rm -f {} \; [root@node1 grid]# rm -rf cfgtoollogs/* [root@node1 grid]# rm -rf crs/init/* [root@node1 grid]# rm -rf cdata/* [root@node1 grid]# rm -rf crf/* [root@node1 grid]# rm -rf network/admin/*.ora [root@node1 grid]# rm -rf crs/install/crsconfig_params [root@node1 grid]# find . -name '*.ouibak' -exec rm {} \; [root@node1 grid]# find . -name '*.ouibak.1' -exec rm {} \; [root@node1 grid]# rm -rf root.sh* [root@node1 grid]# rm -rf rdbms/audit/* [root@node1 grid]# rm -rf rdbms/log/* [root@node1 grid]# rm -rf inventory/backup/*
On Linux and UNIX systems:
[root@node1 root]# cd copy_path [root@node1 grid]# tar -zcvpf /copy_path/gridHome.tgz .
In the preceding example, the cd
command changes the ___location to the copy of the Oracle Grid Infrastructure home with the unnecessary files removed that you created in the first two steps of this procedure, and the tar
command creates a file named gridHome.tgz
. In the tar
command, copy_path
represents the ___location of the copy of the Oracle Grid Infrastructure home.
On AIX or HPUX systems:
uncompress gridHome.tar.Z tar xvf gridHome.tar
On Windows systems, use WinZip to create a zip file.