Tuesday, 21 March 2017

Clone Process individually on Oracle E-Business Suite 12.2.4

Detail Clone for Technology Stack Only
  • Database tier
    Run this command to clone the database tier technology stack:
    $ perl adcfgclone.pl dbTechStack
  • Applications tier
    Run this command to clone the applications tier technology stack, namely the OracleAS 10.1.2 Oracle Cloning Procedures Home, Oracle Fusion Middleware (FMW) Home, Oracle WebLogic Server domain configuration, and Oracle HTTP Server configuration:
    $ perl adcfgclone.pl atTechStack
    Run this command to clone the OracleAS 10.1.2 Oracle Home only:
    $ perl adcfgclone.pl dev10gHome
    Run this command to clone the FMW Home binaries only:
    $ perl adcfgclone.pl fmwHome
    Run this command to clone the Oracle WebLogic Server domain configuration only:
    $ perl adcfgclone.pl wlsConfig
    Run this command to clone the Oracle HTTP Server configuration only: 
    $ perl adcfgclone.pl ohsConfig
Important Restrictions on Application Tier Cloning
  • The wlsConfig and ohsConfig cloning commands will work only if a context file is passed in as an argument. In other words, for the wlsConfig and ohsConfigcommands the context file will not be cloned.
  • The fmwHome cloning command should be performed before the wlsConfig command is performed.
  • The ohsConfig cloning command cannot be performed before the wlsConfig command is performed.
  • Even though the ohsConfig cloning command will work without WebLogic Admin Server running, it is advisable to ensure WebLogic Admin Server has been started before performing the ohsConfig cloning command.

7.2 Cloning the Database Only

Run the following command to re-create the control file and configure the database. This command will not reconfigure the database Oracle Home.
$ perl adcfgclone.pl database

7.3 Configuring the Database Only

Run the following command to clean the topology data model and nodes, as well as to reconfigure the Oracle E-Business Suite data for the new Target. Ensure that the database is running and open before executing this command.
$ perl adcfgclone.pl dbconfig

7.4 Cloning the APPL_TOP Only

Run the following command to only clone and configure the APPL_TOP only. This command will not clone or configure the applications tier technology stack.
$ perl adcfgclone.pl appltop

Removing a Swap File From Use

Removing a Swap File From Use

If you have unneeded swap space, you can remove it.

How to Remove Unneeded Swap Space in UFS Root Environment

Become superuser.
Remove the swap space in a UFS root environment.
# /usr/sbin/swap -d /path/filename
The swap file name is removed so that it is no longer available for swapping. The file itself is not deleted.

Edit the /etc/vfstab file and delete the entry for the swap file.
Recover the disk space so that you can use it for something else.
# rm /path/filename
If the swap space is a file, remove it. Or, if the swap space is on a separate slice and you are sure you will not need it again, make a new file system and mount the file system.

For information on mounting a file system, see Mounting and Unmounting Oracle Solaris File Systems.

Verify that the swap file is no longer available.
# swap -l
Example 19-2 Removing Unneeded Swap Space

The following examples shows how to delete the /files/swapfile swap file.

# swap -d /files/swapfile
# (Remove the swap entry from the /etc/vfstab file)
# rm /files/swapfile
# swap -l
swapfile             dev  swaplo  blocks   free
/dev/dsk/c0t0d0s1   136,1      16 1638608 1600528
How to Remove a Swap Volume in a ZFS Root Environment

Most systems require some amount of swap space configured. If your system's swap space requirements change, then you might need to remove a swap volume before you can increase or decrease space allocated for swap. On a busy system, it might be easier to create a second swap volume if you need to increase swap space rather than trying to remove a swap volume that is busy just to increase its size.

Become superuser.
If the swap volume is in use, then you might not be able to delete it. Check to see if the swap area is in use.
# swap -l
swapfile             dev    swaplo   blocks     free
/dev/zvol/dsk/rpool/swap 102,2        16 16646128 16646128
In the above output, blocks == free, so the swap device is not actually being used.

If the swap area is not is use, remove the swap area.
# swap -d /dev/zvol/dsk/rpool/swap
Edit the /etc/vfstab file and delete the entry for the swap volume.
Verify that the swap volume is no longer available.
# swap -l

Adding or Changing Swap Space in an Oracle Solaris 11.1

You should have root privileges to add or change swap sapce

1. Identify the current Swap Volume

# swap -l
swapfile                 dev  swaplo   blocks   free
/dev/zvol/dsk/rpool/swap 256,1      16 1058800 1058800

2. Select one of the following to resize the swap volume.

a.If the current swap area is not in use, you can resize the size of the current swap volume, but you must reboot the system to see the increased swap space.
For example:

# zfs get volsize rpool/swap
NAME        PROPERTY  VALUE    SOURCE
rpool/swap  volsize   517M     -
# zfs set volsize=2g rpool/swap
# zfs get volsize rpool/swap
NAME        PROPERTY  VALUE    SOURCE
rpool/swap  volsize   2G       -
# init 6
If the system cannot be rebooted, add another swap volume to increase your total swap space.
For example:

# zfs create -V 2G rpool/swap2
Then, activate the second swap volume.

# swap -a /dev/zvol/dsk/rpool/swap2
# swap -l
swapfile                  dev  swaplo   blocks   free
/dev/zvol/dsk/rpool/swap  256,1      16 1058800 1058800
/dev/zvol/dsk/rpool/swap2 256,3      16 4194288 4194288
If necessary, add an entry for the second swap volume in the /etc/vfstab file.
For example:

/dev/zvol/dsk/rpool/swap2    -        -       swap    -       no      -