{{announcement.body}}
{{announcement.title}}

Quick and Easy Configuration of Oracle Data Science Cloud Service

DZone 's Guide to

Quick and Easy Configuration of Oracle Data Science Cloud Service

In this article, we discuss how to quickly and easily configure an Oracle Data Science Cloud Service in a few steps.

· Cloud Zone ·
Free Resource

Hello to everyone,

To use some features of Oracle Data Science Cloud Service (to save models, to read basic data about OCI, to establish ADW or Object Storage connections), you need to configure this service when you first turn it on. A description of this configuration is described in the getting-started.ipynb notebook that comes in the service. I prepared a .sh considering that some steps can be automated in this recipe. Through this article, I will explain how to use this .sh quickly.

First of all, there is some information we need to make this configuration. These are:

  • Profile: You can set as [DEFAULT].
  • User OCID: You can get it from the screen that you will reach by following Identity -> Users -> User Details from the menu on the left in the OCI interface.

    User OCID
    User OCID
  • Keyfile Path: This file path will be filled automatically by commands that .sh will run.
  • Tenancy OCID: You can get it from the screen you will reach by following Administration -> Tenancy Details from the menu on the left in the OCI interface.

    Tenancy OCID
    Tenancy OCID
  • Region: Shortcode information of the region in which data center you have lifted your service. For example, if Germany Central (Frankfurt) is written at the top right of the screen, your region shortcode will be eu-frankfurt-1.

    Shortcode for region
    Shortcode for region

After getting this information, we write it down in the following sh:

Shell


After editing this .sh in your local, let's open a terminal via Oracle Data Science Cloud Service and change our directory to block_storage and create an empty file named oci_setup.sh. (After opening vi, we need to press the i button one time to write data in it). Paste the content of the .sh we edited in our local area, save, and exit (press ESC: wq! in order to save and exit vi).

Shell

CD to correct directory

CD to correct directory


Running script and exiting vi

Running script and exiting vi

Yes, our oci_setup.sh is ready. Now, we have two more left. The first of these operations is to run this .sh. We can run the .sh by typing the code below on the terminal screen.

Shell

Running .sh file

Running .sh file


.sh returns two values as output. The one we will use is the information that falls within the red area in the screenshot above. We copy all of this information and open the user information screen in OCI by following the Identity -> Users -> User Details path. We paste the copied information on the screen that opens by pressing the Add Public Key button we see on this screen. Then, we press the ADD button and save.

Adding API key

Adding API key


Adding public API key

Adding public API key


All our work is done now. Our OCI Data Science service is now configured. Finally, we can test the settings we made by running the command below.

Shell

Topics:
cloud, cloud configuration, config file, data science, oracle cloud

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}