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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...