Cleanup and FPL example
This commit is contained in:
14
SCRATCH
Normal file
14
SCRATCH
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Example cmd line for Future
|
||||||
|
|
||||||
|
./oracle_clone.sh -d --refresh -n BOXI4T12 \
|
||||||
|
-a SGA_TARGET,4G -a PGA_AGGREGATE_TARGET,2G -a db_unique_name,BOXI4T12_new \
|
||||||
|
-a SPFILE_LOCATION,'+DATA/BOXI4T12_NEW/PARAMETERFILE/rbrkspfileBOXI4T12.ora' \
|
||||||
|
-a CONTROL_FILES,'+RECO/BOXI4T12_NEW/CONTROLFILE/control01.ctl' \
|
||||||
|
-a DB_CREATE_ONLINE_LOG_DEST_1,'+RECO' \
|
||||||
|
-a DB_RECOVERY_FILE_DEST,'+RECO' -a DB_RECOVERY_FILE_DEST_SIZE,200G \
|
||||||
|
-a DB_CREATE_FILE_DEST,'+DATA' \
|
||||||
|
-a AUDIT_FILE_DEST,'/u01/app/odaorabase/oracle/admin/BOXI4T12_new/adump' \
|
||||||
|
-a ORACLE_HOME,'/u01/app/odaorahome/oracle/product/19.0.0.0/dbhome_11' \
|
||||||
|
-a PARAMETER_VALUE_CONVERT,'BOXI4P12','BOXI4T12' \
|
||||||
|
-a DB_FILE_NAME_CONVERT,'BOXI4P12','BOXI4T12' \
|
||||||
|
BOXI4P12 xxxtargethostxxx
|
||||||
@@ -2,27 +2,12 @@
|
|||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------------
|
||||||
# Oracle shell script support functions
|
# Oracle shell script support functions
|
||||||
# v0.2 - James Pattinson - August 2021
|
|
||||||
# v0.3 - U701053 - 30.03.2022 - if database not found, try to search with the ENDPOINT datagurad
|
|
||||||
# v0.4 - James Pattinson 25/01/23 - Adding support for Service Accounts
|
# v0.4 - James Pattinson 25/01/23 - Adding support for Service Accounts
|
||||||
#--------------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
MYDIR="$(dirname "$(realpath "$0")")"
|
MYDIR="$(dirname "$(realpath "$0")")"
|
||||||
source $MYDIR/rbk_api.conf
|
source $MYDIR/rbk_api.conf
|
||||||
|
|
||||||
# -- Mobi config ---------
|
|
||||||
#RBK_ENV=$OUTI/shell/rubrik/conf/rbk_env
|
|
||||||
# -- End Mobi config ----
|
|
||||||
|
|
||||||
# -- Mobi config -----------
|
|
||||||
#if [ -f "${RBK_ENV}" ] ; then
|
|
||||||
# source ${RBK_ENV}
|
|
||||||
#else
|
|
||||||
# echo "The ${RBK_ENV} file is not found ...."
|
|
||||||
# exit_with_error
|
|
||||||
#fi
|
|
||||||
# -- End Mobi config -------
|
|
||||||
|
|
||||||
nowait=0
|
nowait=0
|
||||||
|
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
@@ -79,12 +64,6 @@ find_database () {
|
|||||||
rest_api_get
|
rest_api_get
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#echo "================================="
|
|
||||||
#cat /tmp/rbkresponse.$$ | jq -r '.data[]' | tee /tmp/titi
|
|
||||||
#echo "================================="
|
|
||||||
#echo "cat /tmp/rbkresponse.$$ | jq -r '.data[]'"
|
|
||||||
|
|
||||||
|
|
||||||
# If no host is specified then just look for the DB with the right SID
|
# If no host is specified then just look for the DB with the right SID
|
||||||
if [ -z $RBK_HOST ]; then
|
if [ -z $RBK_HOST ]; then
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user