Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to access Oracle Function from powershell

mlazJun 22 2016 — edited Jun 24 2016

So I would like to know if there is a way to access an Oracle function and it's return value?

The System.Data.CommandType only has a method for stored procedure:

$cmd = New-Object Oracle.DataAccess.Client.OracleCommand($procedure,$conn)

$cmd.CommandType = [System.Data.CommandType]::StoredProcedure

Anyone ever connect to a function instead and retrieve it's return value?

Thanks in advance.

This post has been answered by Alex Keh-Oracle on Jun 22 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2016
Added on Jun 22 2016
4 comments
3,582 views