On a Solaris UNIX box, if I enter:
#java -jar ords.war uninstall
at the prompt, the program runs and I provide it with parameters, host name, port number, SID, sys password and apps password.
How do I script this?
In a Bash script I've tried (with pre defined parameters of course!):
/u10/staging/jre1.7.0_25/bin/sparcv9/java -jar ords.war uninstall <<EOF
$HOST_LOWER
$PORT_NUMBER
$SID_UPPER
$SYS_PASSWORD
$APPS_PASSWORD
EOF
and I get this:
Mar 16, 2017 5:29:05 PM oracle.dbtools.rt.config.setup.Uninstall execute
WARNING: Console is unavailable and required for Advanced installation
What am I doing wrong other than being an Oracle DBA/Developer, messing about with Java and Bash scripts?!