Getting the export · Oracle Cloud
How to download Oracle Cloud cost reports.
The daily cost reports from Billing and Cost Management, fetched with one CLI command and dropped together. One month is enough. The file is read in your browser tab and never uploaded.
Cost and usage reports
~5 MIN · ALREADY GENERATEDRecommended: every server is mapped exactly
- In the OCI console open Billing & Cost Management → Cost Management → Cost and Usage Reports. Oracle generates a cost report every day, one .csv.gz file per day, and keeps a year of them.
- Download last month’s files (around thirty), or fetch them in one go with the CLI:
oci os object bulk-download --namespace bling --bucket-name <tenancy-ocid> --prefix reports/cost-csv/ --download-dir ./oci-cost - Drop all of them here at once; they are merged into one month.
Compute shapes are sized from OCPU and memory hours per family; block and object storage from GB-months; Autonomous Database and MySQL as pools; outbound traffic from the GB in the report.
Things that trip people up
- The report bucket lives in Oracle’s tenancy: an administrator must add the IAM policy the documentation shows (it endorses Oracle’s usage-report tenancy) before the files are visible.
- Take the cost reports (reports/cost-csv), not the usage reports: usage reports have no cost column.
- Each file is one day. Drop a whole month of them, not a single day, or the servers will look tiny. Files that overlap are counted twice.
- With Universal Credits, cost/myCost is already at your commitment rate, so the figures are what you pay.
What the file needs to contain
Download a sample to compareColumn names are matched case-insensitively; extra columns are ignored.
- product/service
- product/Description
- usage/billedQuantity
- cost/billingUnitReadable
- cost/myCost
- cost/currencyCode
- lineItem/intervalUsageStart
- product/region
The sample holds a whole month in one file; real reports are one file per day and can be dropped together.
Have the file? Open the calculator and drop it in, or start from the Oracle Cloud sample.