Dashboards & Visualizations

Calling a query or proc in splunk

mlindokuhle
Loves-to-Learn

Hi all, I'm testing a connection that i have created using orcale db acccount, so i need to call or execute this query below.

so that i will be able to create a dashboard.

DECLARE 
v_cursor SYS_REFCURSOR; 
faID varchar(12);
despriction varchar(50);
currency varchar(3);
amount number ;
startD varchar(8);
endD varchar(8);
loID varchar (12);
Unit varchar(50);
begin 

TM_MAIN('B','00024657', v_cursor);
 
LOOP 
FETCH v_cursor 
INTO facility_ID,despriction, currency , amount , startD, endD ,loId, Unit; 
EXIT WHEN v_cursor%NOTFOUND; 
DBMS_OUTPUT.PUT_LINE(faID ||  ' | ' || despriction || '  ' || currency || '  ' || amount || ' ' || startD || ' ' || endD || ' ' || loId || ' | ' || glUnit );

END LOOP; 
CLOSE v_cursor; 
END;

  

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...