Posts

Showing posts with the label oci

Oracle Cloud Infrastructure command line client and object storage

Image
Yesterday I blogged about a Google Drive client, and 2 years back a blogged about a custom workflow I was using to push and pull file(s) from/to Google Drive on Linux. I recently got access to Oracle Cloud Infrastructure so thought doing an equivalent task might be a good way to get my toes wet. As with most of the cloud infrastructure platforms available, Oracle provides us with a command line tool we can use. This project source code is open sourced (under UPL 1.0 and Apache 2.0) and hosted over on GitHub . Christoph Ruepprich has previously blogged about this tool, but I wanted to go through it myself - so a lot of this information may be redundant if you already followed along with his blog post . For my test case, I wanted to test in an isolated environment so I went ahead and pulled the latest ubuntu release using Docker: docker pull ubuntu:latest Then I enter that environment by running: docker run -it ubuntu:latest This will bring me to a shell prompt with root ac...

Making connections to the Oracle Database from Golang

I posted the other day about getting going with Golang[ 1 ], and as mentioned am planning to do a series of posts on various aspects of the language - as a means to help with the learning process. Being an Oracle developer, it seemed logical I would want to be able to make connections to the Oracle database. Built into the language core is an SQL interface (for issuing queries and statements) which is through the module "database/sql". The other side of it is that you need a valid driver. A list of available drivers is on the go wiki[ 2 ]. You will see that there are 2 listed for Oracle. How do I judge which project to use? First I see that one has considerably more stars and for another, the online commentary I see also seems to suggest that same package. And that is  https://github.com/mattn/go-oci8 . Driver setup Before we get to the driver, you need to make sure you have an Oracle client and the SDK installed on your system. For, this I followed the steps as per the...