0% found this document useful (0 votes)
65 views20 pages

7 Object Storage

Uploaded by

Kishore Adikar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views20 pages

7 Object Storage

Uploaded by

Kishore Adikar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 20

Object Storage Service

Overview
Oracle Cloud Infrastructure Object Storage service is an internet-scale, high-
performance storage platform that offers reliable and cost-efficient data durability. The
Object Storage service can store an unlimited amount of unstructured data of any
content type, including analytic data and rich content, like images and videos.

With Object Storage, you can safely and securely store or retrieve data directly from the
internet or from within the cloud platform. Object Storage offers multiple management
interfaces that let you easily manage storage at scale.

Object Storage is a regional service and is not tied to any specific compute instance. You
can access data from anywhere inside or outside the context of the Oracle Cloud
Infrastructure

Object storage offers 2 tiers:

1- Use Standard for data to which you need fast, immediate, and frequent access. Data
accessibility and performance justifies a higher price point to store data in the Object
Storage

2- Use Archive for data to which you seldom or rarely access, but that must be retained
and preserved for long periods of time. The cost efficiency of the Archive Storagetier
offsets the long lead time required to access the data

The purpose of this lab is to give you an overview of the Object Service and an example
scenario to help you understand how the service works.
Create a bucket in object storage
Lift and Shift Oracle EBS files (on-premises)

We need below files to be shifted from on-premises to Cloud

12.1.0.tar.gz
data.tar.gz
EBSapps.tar.gz

upload above objects from on-premises to cloud

Step 1 Install CLI (Automatically Installing CLI & Dependencies with CLI installer)

Login as oracle OS user and run the below command to install OCI cli.

su - oracle

-------------------------------------------------------------------------------------------------------
bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"

-------------------------------------------------------------------------------------------------------
Step 2 Configure CLI
Click add
[DEFAULT]
user=ocid1.user.oc1..aaaaaaaali3ip6am46ei6dbav6aukodtqcy4dqldt4fcvm6tixl3mjshvhlq
fingerprint=a2:41:5b:85:c2:57:ca:79:e4:37:e4:5a:ef:b0:32:59
tenancy=ocid1.tenancy.oc1..aaaaaaaan6qixpcf6dcf4e7b4awirrkv52yjrqaxo3nmyr2e52oseukxzfoa
region=us-phoenix-1
key_file=<path to your private keyfile> # TODO

Before using the CLI, you have to create a config file that contains the required credentials for working
with Oracle Cloud Infrastructure. Login as oracle OS user and run the below command and follow the
prompts.

/home/oracle/bin/oci setup config

Enter a location for your config [/home/oraqa/.oci/config]:


Enter a user OCID: ocid1.user.oc1..aaaaaaaali3ip6am46ei6dbav6aukodtqcy4dqldt4fcvm6tixl3mjshvhlq
Enter a tenancy OCID:
ocid1.tenancy.oc1..aaaaaaaan6qixpcf6dcf4e7b4awirrkv52yjrqaxo3nmyr2e52oseukxzfoa
Enter a region by index or name(e.g.
1: af-johannesburg-1, 2: ap-chiyoda-1, 3: ap-chuncheon-1, 4: ap-dcc-canberra-1, 5: ap-dcc-gazipur-1,
6: ap-hyderabad-1, 7: ap-ibaraki-1, 8: ap-melbourne-1, 9: ap-mumbai-1, 10: ap-osaka-1,
11: ap-seoul-1, 12: ap-singapore-1, 13: ap-sydney-1, 14: ap-tokyo-1, 15: ca-montreal-1,
16: ca-toronto-1, 17: eu-amsterdam-1, 18: eu-dcc-dublin-1, 19: eu-dcc-dublin-2, 20: eu-dcc-milan-1,
21: eu-dcc-milan-2, 22: eu-dcc-rating-1, 23: eu-dcc-rating-2, 24: eu-dcc-zurich-1, 25: eu-frankfurt-1,
26: eu-frankfurt-2, 27: eu-jovanovac-1, 28: eu-madrid-1, 29: eu-madrid-2, 30: eu-marseille-1,
31: eu-milan-1, 32: eu-paris-1, 33: eu-stockholm-1, 34: eu-zurich-1, 35: il-jerusalem-1,
36: me-abudhabi-1, 37: me-abudhabi-3, 38: me-dcc-doha-1, 39: me-dcc-muscat-1, 40: me-dubai-1,
41: me-jeddah-1, 42: mx-monterrey-1, 43: mx-queretaro-1, 44: sa-bogota-1, 45: sa-santiago-1,
46: sa-saopaulo-1, 47: sa-valparaiso-1, 48: sa-vinhedo-1, 49: uk-cardiff-1, 50: uk-gov-cardiff-1,
51: uk-gov-london-1, 52: uk-london-1, 53: us-ashburn-1, 54: us-chicago-1, 55: us-gov-ashburn-1,
56: us-gov-chicago-1, 57: us-gov-phoenix-1, 58: us-langley-1, 59: us-luke-1, 60: us-phoenix-1,
61: us-saltlake-2, 62: us-sanjose-1): us-phoenix-1
Do you want to generate a new API Signing RSA key pair? (If you decline you will be asked to supply the
path to an existing key.) [Y/n]: Y
Enter a directory for your keys to be created [/home/oraqa/.oci]:
Enter a name for your key [oci_api_key]:
Public key written to: /home/oraqa/.oci/oci_api_key_public.pem
Enter a passphrase for your private key ("N/A" for no passphrase):
Enter a passphrase for your private key ("N/A" for no passphrase):
Repeat for confirmation:
Private key written to: /home/oraqa/.oci/oci_api_key.pem
Fingerprint: 34:0e:b9:13:81:6c:e8:fa:bd:a1:2f:46:fd:fb:e3:11
Config written to /home/oraqa/.oci/config

cat /home/oraqa/.oci/config
[DEFAULT]
[DEFAULT]
user=ocid1.user.oc1..aaaaaaaali3ip6am46ei6dbav6aukodtqcy4dqldt4fcvm6tixl3mjshvhlq
fingerprint=34:0e:b9:13:81:6c:e8:fa:bd:a1:2f:46:fd:fb:e3:11
key_file=/home/oraqa/.oci/oci_api_key.pem
tenancy=ocid1.tenancy.oc1..aaaaaaaan6qixpcf6dcf4e7b4awirrkv52yjrqaxo3nmyr2e52oseukxzfoa
region=us-phoenix-1

cd /home/oraqa/.oci
cat oci_api_key_public.pem
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwWuDipafNWPP8NU49X0E
QnuWVDVnlHtRhNCC2ecHuqBwhzos9Apyxo1TpDrmwSWoLD8IZx+SXfQL26BydwmS
/Nepp9yotAVS8vmdKyq5/Mh7ZecoPcGJvLNIsg1V+b1bWeRUgZPvJlPLFQAQMAlE
Ym0Ooij05RgGKYZQ7pLgC3x/P3RDpEkUxyx+qnPnNbo6l8hkGwdjQ9meB+Hg9CMz
WBRrOGP65kqMc5cPCOS14eV24b5oMwHCSvfOpoYa9mrqLeONLRhYRqqDlt/4AQFL
G40cfujR9VnZE4LruXpDjnwIBYFPNHxqNSA4MP8TalW873JXsUvsPqRkurupyoio
IQIDAQAB
-----END PUBLIC KEY-----

Step 3 Copy Public Key to OCI

In the previous step the Public Key that’s generated should be upload to OCI.
/home/oracle/.oci/oci_api_key_public.pem

1. You need to login to Oracle OCI console.

2. On top Right click on User Name --> User Settings --> API Keys --> Add Public Key

3. Copy the Public Key in the box & click Add.


Step 4 Validate CLI installation

Let’s validate OCI install/configuration using the command which finds the namespace. Command to
find Namespace is -->

Note: It could 3 attempts to get below output


oci os ns get

{
"data": "axsfchrxonzb"
}
The namespace is matching. - axsfchrxonzb
Step 4 Upload Files to Object Storage

Create a bucket – EBSStroageFiles


Create PAR file
https://objectstorage.us-phoenix-1.oraclecloud.com/p/
IqLGUor0ZxLxARNqCmedYscVebbYKgRusFGT_tQk7WoDRNcLdZluATv9-vA38jrC/n/axsfchrxonzb/b/
EBSStroageFiles/o/

Append 3 file to below URL

https://objectstorage.us-phoenix-1.oraclecloud.com/p/
IqLGUor0ZxLxARNqCmedYscVebbYKgRusFGT_tQk7WoDRNcLdZluATv9-vA38jrC/n/axsfchrxonzb/b/
EBSStroageFiles/o/

upload (on-premises)

cd /d02/oracle/QA/backup
curl -T '12.1.0.tar.gz'
https://objectstorage.us-phoenix-1.oraclecloud.com/p/IqLGUor0ZxLxARNqCmedYscVebbYKgRusFGT_tQ
k7WoDRNcLdZluATv9-vA38jrC/n/axsfchrxonzb/b/EBSStroageFiles/o/12.1.0.tar.gz

curl -T ' data.tar.gz'


https://objectstorage.us-phoenix-1.oraclecloud.com/p/IqLGUor0ZxLxARNqCmedYscVebbYKgRusFGT_tQ
k7WoDRNcLdZluATv9-vA38jrC/n/axsfchrxonzb/b/EBSStroageFiles/o/data.tar.gz

curl -T 'EBSapps.tar.gz'
https://objectstorage.us-phoenix-1.oraclecloud.com/p/IqLGUor0ZxLxARNqCmedYscVebbYKgRusFGT_tQ
k7WoDRNcLdZluATv9-vA38jrC/n/axsfchrxonzb/b/EBSStroageFiles/o/EBSapps.tar.gz

It took around 2 hours to move 3 files which are 25 GB size.

You might also like