Oracle Magazine, July/August 2019
ORACLE MAGAZINE JULY AUGUST 2019 77 Database Developer OPEN SOURCE interface for Oracle Cloud Infrastructure is also installed and configured correctly Oracle Cloud Infrastructure compartment Its a good idea to work inside an Oracle Cloud Infrastructure compartment so you dont accidentally affect the cloud objects of other users If youd like to use a specific compartment youll first need to get its Oracle Cloud ID OCID To get the OCID in your Oracle Cloud Infrastructure dashboard 1 Expand the menu 2 Click Identity Compartments 3 Find your compartment in the list 4 Click the OCID value 5 Click Copy in the pop up Now create an environment variable with this OCID value export OCI_ COMPARTMENT ocid1 compartment oc1 aBigLongGuidString The example code will look for this value or default to the root compartment if you dont set it PYTHON CODE The oci_ atp py utility module will include the methods that will create a new Oracle Autonomous Transaction Processing instance The module will include three methods and each method will accept an oci database DatabaseClient object create_ atp db_ client atp_ details The create_ atp method in oci_ atp py also accepts an oci database models CreateAutonomousDatabaseDetails object The atp_ details object defines the properties of the new Oracle Autonomous
You must have JavaScript enabled to view digital editions.