We are proud to share our inclusion in the 2024 Gartner Magic Quadrant for Data Integration Tools. We believe this recognition reflects the differentiated business outcomes CData delivers to our customers.
Get the Report →How to 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, https://servername.fa.us2.oraclecloud.com.
- 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.