While trying to run Oracle Report services from from the command line I received the following error.
REP-0178: Reports Server cannot establish connection.
I tried executing the "rwclient" like this:
$ORACLE_HOME/bin/rwclient server=rep_wls_reports_serverName_asinst_1
\ report=$MW_HOME/rdf/test.rdf
\ userid=userid/password@orcl.world
\ desformat=pdf
\ destype=file desname=$MW_HOME/test/test.pdf
I ran oracle process manager and notification (opmn) to see the status of my installed processes
$ORACLE_INSTANCE/bin/opmn status -l
Using "rwclient" from $ORACLE_INSTANCE and changing the server to the name shown in opmn status command fixed my issue.