diff --git a/SCRATCH b/SCRATCH new file mode 100644 index 0000000..d2bd6a2 --- /dev/null +++ b/SCRATCH @@ -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 \ No newline at end of file diff --git a/oracle_funcs.sh b/oracle_funcs.sh index 1b3c39c..e95ef78 100755 --- a/oracle_funcs.sh +++ b/oracle_funcs.sh @@ -2,27 +2,12 @@ # #-------------------------------------------------------------------------------------------------------- # 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 #-------------------------------------------------------------------------------------------------------- MYDIR="$(dirname "$(realpath "$0")")" 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 if [[ "$OSTYPE" == "darwin"* ]]; then @@ -79,12 +64,6 @@ find_database () { rest_api_get 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 [ -z $RBK_HOST ]; then