cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
cassoli2019 Visitor
Visitor

Oracle PowerShell RealTime Push

Good night,

I have been trying to send Oracle data via PowerShell for some time to stream to PowerBI, unsuccessfully so far.

I would be very grateful if someone could help me.

Below the script that I tried to assemble:

$endpoint = "https://api.powerbi.com/beta/aabfeafc-82d3-42f6-bec6-dba6ddbc5428/datasets/6712ca6e-2054-4e18-9583-c..."
while($true)
{
Add-Type -Path C:\ODP.NET_Managed_ODAC122cR1\odp.net\managed\common\Oracle.ManagedDataAccess.dll
$username = "username"
$password = "password"
$datasource = "datasource"
$connectionString = "User Id=$username;Password=$password;Data Source=$datasource"
$Qtde = "SELECT COUNT(CONHECIMENTO_ID) FROM FISCAL.CONHECIMENTO WHERE DATA_EMISSAO >= SYSDATE-1"
$TCte = "SELECT SUM(TOTAL_CONHECIMENTO) FROM FISCAL.CONHECIMENTO WHERE DATA_EMISSAO >= SYSDATE-1"
$payload = @{
"QTDE" =$Qtde
"TOTAL_CTE" =$TCte
}
Invoke-RestMethod -Method Post -Uri "$endpoint" -Body (ConvertTo-Json @($payload))
sleep 20
}

Tks
1 REPLY 1
Community Support Team
Community Support Team

Re: Oracle PowerShell RealTime Push

Hi @cassoli2019 

 

Sorry, I can't fix it on my side, please kindly raise your issue to support team for better advice:

https://powerbi.microsoft.com/en-us/support/

Support Ticket.gif

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 536 members 4,424 guests
Please welcome our newest community members: