Ready to get started?

Download a free trial of the Oracle SCM Cmdlets to get started:

 Download Now

Learn more:

Oracle SCM Icon Oracle SCM Data Cmdlets

An easy-to-use set of PowerShell Cmdlets offering real-time access to Oracle SCM. The Cmdlets allow users to easily read, write, update, and delete live data - just like working with SQL server.

Pipe Oracle SCM Data to CSV in PowerShell

Use standard PowerShell cmdlets to access Oracle SCM tables.

The CData Cmdlets Module for Oracle SCM is a standard PowerShell module offering straightforward integration with Oracle SCM. Below, you will find examples of using our OracleSCM Cmdlets with native PowerShell cmdlets.

Creating a Connection to Your Oracle SCM Data

The following connection properties are required to connect to Oracle SCM data.

  • Url: The URL of the account that you want to connect to. Typically, this will be the URL of your Oracle Cloud service. For example,
  • User: The username of your Oracle Cloud service account.
  • Password: The password of your Oracle Cloud service account.

$conn = Connect-OracleSCM  -Url "$Url" -User "$User" -Password "$Password"

Selecting Data

Follow the steps below to retrieve data from the Carriers table and pipe the result into to a CSV file:

Select-OracleSCM -Connection $conn -Table Carriers | Select -Property * -ExcludeProperty Connection,Table,Columns | Export-Csv -Path c:\myCarriersData.csv -NoTypeInformation

You will notice that we piped the results from Select-OracleSCM into a Select-Object cmdlet and excluded some properties before piping them into an Export-Csv cmdlet. We do this because the CData Cmdlets append Connection, Table, and Columns information onto each "row" in the result set, and we do not necessarily want that information in our CSV file.

The Connection, Table, and Columns are appended to the results in order to facilitate piping results from one of the CData Cmdlets directly into another one.