Professional Documents
Culture Documents
1. Get certificates for website (you will need the URL, username, and
password). *Demonstration
2. Store the certificates in an Oracle Wallet (using OWM).
3. Set the Wallet in your procedure using
UTL_HTTP.SET_WALLET(wallet.path, wallet.password);
UTL_HTTP.BEGIN_REQUEST
UTL_HTTP.GET_RESPONSE(request);
Returns response.
The request will be ended when this function returns (regardless of
exception) so there is no need for END_REQUEST.
UTL_HTTP.READ_TEXT
You can now query this data in this way (*assuming your xml data is
well formed):
SELECT xtab.column1, xtab.column2, xtab.columnN
FROM xml_gtt x
,xmltable('/path1/path2/path3' passing
x.sys_nc_rowinfo$ columns
column1 VARCHAR2(100) path 'xmldata1'
,column2 VARCHAR2(100) path 'xmldata2'
,columnN VARCHAR2(20) path 'xmldataN') xtab;
SYS_NC_ROWINFO$ is the default column name of the gtt.
Example…
JSON
You can now query this data in a similar way as the XML data:
SELECT jtab.column1, jtab.column2, jtab.columnN
FROM json_gtt j
,json_table(j.sys_nc_rowinfo$, '$.path1.path2.path3'
COLUMNS(
column1 NUMBER path 'jsondata1'
,column2 VARCHAR2(100) path 'jsondata2'
,columnN VARCHAR2(20) path 'jsondataN‘)) jtab;
SYS_NC_ROWINFO$ is the default column name of the gtt.