OCI

Oracle Cloud Infrastructure

To retrieve some useful information about the (linux) server you are on, try these commands from a shell prompt...

hostnamectl

rpm -qa --last

If it's an Oracle database server, try this...

rpm -qa | egrep -i 'dbaas|exa|dcs'

Note that this will return nothing by default on a Compute node that just happens to be running a database but would be expected to return some information on a Database node.

OCID

*** Needs review - doesn't seem to work ***

Tenancy

TENANCY=$(oci iam compartment list \

--all \

--compartment-id-in-subtree true \

--access-level ACCESSIBLE \

--include-root \

--raw-output \

--query "data[?contains(\"id\",'tenancy')].id | [0]")

echo ${TENANCY}

User

f1=$(oci iam user list --compartment-id ${TENANCY} | grep description | awk 'NR==1 {print $2}' | sed  -e 's/"//g' -e 's/,//g')

f2=$(oci iam user list --compartment-id ${TENANCY} | grep description | awk 'NR==2 {print $2}' | sed -e 's/"//g' -e 's/,//g')

USEROCID=$(oci iam user list --compartment-id ${TENANCY} --output table | grep $f2 | grep $f1 | awk {'print $30'})

echo ${USEROCID}

Bibliography

https://www.oracle.com/a/ocom/docs/cloud/oracle-cloud-infrastructure-platform-overview-wp.pdfhttps://developer.oracle.com/technologies/oci-quick-reference.html
https://www.oracle.com/corporate/blog/free-certifications-oracle-oci-autonomous-033020.html http://dgielis.blogspot.com/2019/10/free-oracle-cloud-10-running-sqlcl-and.html https://www.dbarj.com.br/en/2020/10/get-your-tenancy-ocid-using-a-single-oci-cli-command/https://www.dbarj.com.br/wp-content/uploads/2020/10/SPOUG20-Rodrigo-Jorge-Deep-dive-into-Oracle-Cloud-metadata_compressed.pdfhttps://blogs.oracle.com/cloud-infrastructure/announcing-improved-navigation-for-the-oci-console
Oracle Quick Starthttps://github.com/oracle-quickstart
Costshttps://www.oracle.com/uk/cloud/cost-estimator.htmlhttps://valuenavigator.oracle.com/benefitcalculatorhttps://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/servicelimits.htm
Manageabilityhttps://www.oracle.com/manageability/ (Oracle Cloud Observability and Management Platform)
Availabilityhttps://blogs.oracle.com/cloud-infrastructure/post/building-resilient-cloud-architectures-tenets
Free Tierhttps://docs.cloud.oracle.com/en-us/iaas/Content/FreeTier/resourceref.htmhttps://docs.oracle.com/en-us/iaas/Content/FreeTier/freetier.htm
Networkhttps://blogs.oracle.com/cloud-infrastructure/announcing-the-inter-region-latency-dashboard-for-oracle-cloud-infrastructure
Terraformhttps://docs.cloud.oracle.com/en-us/iaas/releasenotes/changes/2c47e9db-fb77-4520-8766-c71c6e02937e/ 
2023https://www.cio.com/article/649108/oracle-adds-compute-services-to-its-cloudcustomer-offering.html
2021https://www.reuters.com/article/us-oracle-cloud-idUSKBN2BN1LQ (Oracle offers to move clients to cloud for free as it plays catch-up)https://cloudwars.co/oracle/oracle-ceo-safra-catz-6-reasons-bullish-oracle-cloud/
2020https://blogs.oracle.com/cloud-infrastructure/how-to-get-the-most-from-oracle-linux-on-oracle-cloud
2019https://www.zdnet.com/article/oracle-announces-oracle-autonomous-linux
2017https://www.itpro.co.uk/cloud/29645/view-from-the-airport-oracle-openworld-2017https://www.zdnet.com/article/openworld-2017-what-we-learned-about-oracles-ai-cloud-strategies2016https://www.computerworld.com/article/3087616/oracle-will-give-cloud-users-first-dibs-on-its-next-big-database-update.htmlhttps://www.zdnet.com/article/oracles-cloud-computing-plan-bring-services-to-customers-on-premiseshttps://www.zdnet.com/article/oracle-acquires-netsuite-in-9-3-billion-deal2015https://www.zdnet.com/article/oracle-acquires-stackengine-plots-new-cloud-campus-in-austinhttps://www.zdnet.com/article/oracle-open-world-2015-integrated-cloud-apps2014https://www.zdnet.com/article/oracle-continues-to-bolster-cloud-stack-starting-at-database-level/