I usually update Oracle Support calls with screenshots, text snippets or infamous one-liners. However yesterday I needed to update a call with half our ACM/BPM environment SOAINFRA table dump. So poking around on the net I found a cool script from André Karlsson that did the trick.

Script

#!/bin/bash

HOST='transport.oracle.com'
USER='your.oracle.account@yourprovider.org'     #Add your Oracle Support iD
FILE=$1
SR=$2
FILEname=`basename $1`

transport () {
set -x
        curl -T ${FILE} -o ${FILEname} -u ${USER} "https://${HOST}/upload/issue/${SR}/"
}
if [[ -n $2 ]] ; then
        transport
else
cat << EOF
${0} [file] [SR]
EOF

fi

Runtime

jvzoggel$ ./upload.sh [FILENAME] 3-1234567890

References

All credits to André Karlsson and his blogpost here:
https://www.protractus.com/2014/05/upload-attachment-to-oracle-support-from-command-line/

Houd jij je kennis graag up to date?

Mis niets meer van onze kennisdocumenten, events, blogs en cases: ontvang als eerste het laatste nieuws in je inbox!

Fijn dat we je op de hoogte mogen houden!