#!/usr/local/bin/perl # executeDP.pl # # Copyright (c) 2006, 2007, Oracle. All rights reserved. # use English; use File::Basename; use File::Copy; use File::Spec; use Cwd; my $extend="false"; # --------------------------------------------------------- # The value can be any of the following: # true = Delete the instance data files created. # false = Do not delete the instance data files created. $deleteInstanceData="true"; # This is used when the above variable is set "false" # The dir name or path specified here will be created # if it doesn't exist. # Creates a directory -instance_data in the path specified or if null , will create in the local directory $instanceLoc=""; # --------------------------------------------------------- # ---------------------------------------------- # The/ value should be false in actual production $debug = "false"; # ---------------------------------------------- # ----------------------------------------------------- # constant to define the duration of sleep (in seconds) # before checking DP status again while monitoring # ----------------------------------------------------- $sleepConstant=10; # ----------------------------------------- # constant to define the tolerable time out # for DP execution (in seconds) # ----------------------------------------- $timeOutTime=4*60*60; # ---------------------------------------------- # constant to define the time out count. # this will be equal to total tolerable time out # divided by the duration of sleep # ---------------------------------------------- $timeOutCount=$timeOutTime/$sleepConstant; #writeLog("Number of arguments passed : " . $#ARGV); if($#ARGV < 5) { print "\nThis is a script that can be used to run deployment procedures using command line interface.The following arguments need to be provided for execution. The command line interface for patching deployment procedures now supports multiple patches as well\n\n"; print "Usage: $as \n\t -t \n"; print "\t -p \n"; print "\t -g \n"; print "\t [-n (optional)] \n"; print "\t [-s in the format yyyy/MM/dd HH:mm (optional). If not specified, the procedure will be executed immediately.]\n"; print "\t [-z