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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...