Skip to Main Content
  • Questions
  • USERID with utl_http.request(v_url) to run a report

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Steve.

Asked: August 16, 2016 - 4:00 pm UTC

Last updated: August 17, 2016 - 1:54 am UTC

Version: 11g

Viewed 1000+ times

You Asked

I have a stored procedure which saves reports to disk using utl_http.

E.g. http://host:port/reports/rwservlet?server=oradev+USERID=username/dbpw@dev+report=myrpt+paramform=no+desformat=PDF+destype=file+desname=

The USERID parameter requires the database username/password and I don't want the password hardcoded in the stored procedure. Any idea how hardcoding the password can be avoided?

Thanks

and Connor said...

Consider using a keymap file for the parameters that do not change

https://docs.oracle.com/cd/E16764_01/bi.1111/b32121/pbr_run013.htm

Is this answer out of date? If it is, please let us know via a Comment

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library