Advertisements
RSS

How to upload large files to Oracle Support calls

31 Mar

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/

Advertisements
 
Leave a comment

Posted by on 31-03-2017 in Uncategorized

 

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: