Lab 4: Configuring node.js apps with ATP

Similar documents
Lab 8: Building Microservices on Oracle Autonomous Transaction Processing Service

Bitnami Node.js for Huawei Enterprise Cloud

Lab 5: Working with REST APIs

Creating a connection using Simba ODBC Drivers to Oracle Autonomous Data Warehouse

SAP BusinessObjects. Erick Carlson SAP Solution Architect N.A. SAP on Oracle Team

Creating a connection from Microsoft Power BI Desktop to Oracle Autonomous Data Warehouse

Creating a connection from Informatica PowerCenter 9.6 to Oracle Autonomous Data Warehouse

Bitnami MEAN for Huawei Enterprise Cloud

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

This tutorial provides a basic understanding of the infrastructure and fundamental concepts of managing an infrastructure using Chef.

Step by Step SQL 17 Installation on CentOS Linux Release 7.4.

TangeloHub Documentation

IBM DataStage - Connecting to Oracle Autonomous Data Warehouse using Progress DataDirect ODBC driver

Administration Dashboard Installation Guide SQream Technologies

PiranaJS installation guide

Singularity: container formats

Connecting to Autonomous Data Warehouse with Progress DataDirect ODBC Driver

Linux Essentials Objectives Topics:

Use Jamf Self Service to upgrade to macos Mojave

USING DOCKER FOR MXCUBE DEVELOPMENT AT MAX IV

Oracle Cloud Using Oracle Autonomous Data Warehouse Cloud

Lab 03 Finish and Deploy an Application. Lab 3-1: Add DELETE to the Spring Boot REST Application

Dell EMC ME4 Series vsphere Client Plug-in

Let s manage agents. Tom Sightler, Principal Solutions Architect Dmitry Popov, Product Management

Configure Sensu and other Actions to Register Clients

Using PCF Ops Manager to Deploy Hyperledger Fabric

CROWDCOIN MASTERNODE SETUP COLD WALLET ON WINDOWS WITH LINUX VPS

Getting Started with the Google Cloud SDK on ThingsPro 2.0 to Publish Modbus Data and Subscribe to Cloud Services

Running Blockchain in Docker Containers Prerequisites Sign up for a LinuxONE Community Cloud trial account Deploy a virtual server instance

Copyright Heraflux Technologies. Do not redistribute or copy as your own. 1

SQL Server Administration on Linux 2017

Lab 2: Setting up secure access

The instructions in this document are applicable to personal computers running the following Operating Systems:

ovirt and Docker Integration

Deployment Guide for Nuage Networks VSP

Deployment Guide for Nuage Networks VSP

Oracle Cloud IaaS: Compute and Storage Fundamentals

Creating a connection from MicroStrategy to Oracle Autonomous Data Warehouse

MeshCentral 2. Installer s Guide. Version July 31, 2018 Ylian Saint-Hilaire

Software Preparation for Modelling Workshop

Implementation of Continuous Integration for Linux Images

Precursor Steps & Storage Node

Cloud Computing II. Exercises

OpenShift State of the Union brought to you by JBoss

Question: 1 Which three methods can you use to manage Oracle Cloud Infrastructure services? (Choose three.)

NAV Coin NavTech Server Installation and setup instructions

Platform Migrator Technical Report TR

Using aeneas for Audio-Text Synchronization

IBM z Systems Development and Test Environment Tools User's Guide IBM

Pulp Python Support Documentation

Alarm Counter. A Ceilometer OpenStack Application

From the Beginning: Your First Node.js Web Service

This tutorial will guide you how to setup and run your own minecraft server on a Linux CentOS 6 in no time.

An Insider s Guide to Oracle Autonomous Transaction Processing

Application Container Cloud

Zadara Enterprise Storage in

DEVOPS COURSE CONTENT

EnhancedEndpointTracker Documentation

This guide assumes that you are setting up a masternode for the first time. You will need:

File Storage Level 100

Deploying Cisco Nexus Data Broker Embedded for OpenFlow

Common Desktop Environment Advanced User's And System Administrator's Guide

SDK. About the Cisco SDK. Installing the SDK. Procedure. This chapter contains the following sections:

Deploying TimesTen Scaleout On Oracle Cloud Infrastructure

VIRTUAL MACHINES. By Seth Lemanek

VMware AirWatch Content Gateway for Linux. VMware Workspace ONE UEM 1811 Unified Access Gateway

Deploying TimesTen Scaleout On Oracle Cloud Infrastructure

OpenStack Havana All-in-One lab on VMware Workstation

Oracle Cloud CLI Reference for Oracle Cloud Infrastructure Compute Classic

Microsoft Cloud Workshop. Containers and DevOps Hackathon Learner Guide

Created by: Nicolas Melillo 4/2/2017 Elastic Beanstalk Free Tier Deployment Instructions 2017

MariaDB ColumnStore C++ API Building Documentation

SCALING DRUPAL TO THE CLOUD WITH DOCKER AND AWS

NFV in the Embedded World: Yocto Project and OpenStack

SUREedge MIGRATOR INSTALLATION GUIDE FOR NUTANIX ACROPOLIS

HP IT Operations Compliance Community Edition

SUREedge MIGRATOR INSTALLATION GUIDE FOR HYPERV

Getting Started with Phalcon

Quick Start Guide for Integrating Ziften Zenith and Microsoft Windows Defender ATP

Software Transfer Document. SensUs Digital. Valedictorian. Version July 6, 2017

High-performance computing on Microsoft Azure: GlusterFS

Git Command Line Tool Is Not Installed

Green Grass Demo: Vineyard / Agricultural IIoT

INSTALLATION INSTRUCTIONS FOR IPYTHON ENVIRONMENT

(Ubuntu 16.04) This guide will assist you in setting up an Aegeus Masternode on a Linux Server running Ubuntu (use at your own risk).

Embedded Linux. A Tour inside ARM's Kernel

Unzip command in unix

VIRTUAL GPU LICENSE SERVER VERSION AND 5.1.0

CS234 Azure Step-by-Step Setup

LGTM Enterprise System Requirements. Release , August 2018

VMware Fusion Tech Preview 2017: API/CLI Getting Started Guide

Masternode Setup Guide

Step 1: Setup a Gitlab account

Bitnami JRuby for Huawei Enterprise Cloud

Complete Guide to Setting Up Linda on Ubuntu 16 For Staking

Project 1 Setup. Some relevant details are the output of: 1. uname -a 2. cat /etc/*release 3. whereis java 4. java -version 5.

Catbook Workshop: Intro to NodeJS. Monde Duinkharjav

Tensorflow v0.10 installed from scratch on Ubuntu 16.04, CUDA 8.0RC+Patch, cudnn v5.1 with a 1080GTX

Inception Cloud User s Guide

OPENSTACK CLOUD RUNNING IN A VIRTUAL MACHINE. In Preferences, add 3 Host-only Ethernet Adapters with the following IP Addresses:

Transcription:

Lab 4: Configuring node.js apps with ATP Autonomous Transaction Processing provides all of the performance of the market-leading Oracle Database in an environment that is tuned and optimized for transaction processing workloads. Oracle Autonomous Transaction Processing (or ATP) service provisions in a few minutes and requires very little manual ongoing administration. ATP provides a TLS 1.2 encrypted secure connectivity for applications. In fact, using a secure encryption wallet is the only way to connect to an ATP service instance, ensuring every connection to your database is secure, regardless how it gets routed. Lab Objective Build a linux node.js application server and connect it to an Oracle ATP database service Steps Provision a linux compute VM to serve as the app server Install node.js, python 2.7 and required libaio libraries Install and configure oracle instant client Install node oracle drivers through npm Upload connection wallet and run sample app Let s get started. Provision a linux compute VM to serve as the app server

Log into your Oracle Cloud Infrastructure compute console and provision a Oracle Linux, Ubuntu or a CentOS machine. Note that you would need to provision an virtual cloud network (VCN) in your compartment. Note the public IP address of the machine provisioned. Now lets ssh into this host and configure it to run node.js on ATP Install node.js, python 2.7 and required libaio libraries ssh as user opc to your host machine $ ssh i /Users/kbhanushali/priv-ssh-key opc@ipaddress Download and install node.js, python and git. We will need git to download instant client and sample app. $ curl --silent --location https://rpm.nodesource.com/setup_10.x sudo bash - $ sudo yum install nodejs Install python 2.7 if it does not already exist on your machine. OEL 7.5 comes preinstalled with python 2.7

Ensure libaio is installed and up to date $ sudo yum install libaio You can check your node, npm and python installs using $ node --version $ npm --version $python --version Install and configure oracle instant client Next, lets download and install the oracle instant client software. You can download it from OTN at http://www.oracle.com/technetwork/database/databasetechnologies/instant-client/downloads/index.html For simplicity and to facilitate a direct download to your linux host, you can clone this git repository to your host machine $ git clone https://github.com/kbhanush/instantclient_12_2_linux We then unzip and move the files to /opt/oracle/instantclient_12_2 $ cd instantclient_12_2_linux/ $ unzip instantclient-basiclite-linux.x64-12.2.0.1.0.zip $cd cd instantclient_12_2/ $ sudo mv /home/opc/instantclient_12_2_linux/instantclient_12_2/ /opt/oracle/instantclient_12_2/ If there is no other Oracle software on the machine that will be impacted, then permanently add Instant Client to the run-time link path. For example, with sudo or as the root user: $ sudo sh -c "echo /opt/oracle/instantclient_12_2 > /etc/ld.so.conf.d/oracle-instantclient.conf" $ sudo ldconfig OR - set LD_LIBRARY_PATH in your bash_profile as $export LD_LIBRARY_PATH=/opt/oracle/instantclient_12_2:$LD_LIBRARY_PATH

Install node oracle drivers through npm Next, lets download our sample node.js app from git $git clone https://github.com/kbhanush/atpnodeapp In the node.js app folder we install the node oracle drivers from npm $ cd ATPnodeapp $ npm install oracledb Your sample application consists of 2 files, dbconfig.js and server.js Set dbuser, dbpassword and connectstring in dbconfig.js to point to your ATP database module.exports= { dbuser:"adminr", dbpassword:"xxxxxxxx", connectstring :"nodeappdb2_high" } Upload connection wallet and run sample app Finally, lets upload the connection wallet and run our sample app! From your local machine, $ scp -i ~/priv-ssh-keyfile wallet_nodeappdb.zip opc@ipaddress:/home/opc/atpnodeapp ssh back into your linux host and unzip wallet into a folder /home/opc/atpnodeapp/wallet_nodeappdb $ unzip wallet_nodeappdb2.zip -d wallet_nodeappdb/ set env variable TNS_ADMIN to point to the wallet folder and edit sqlnet.ora file in the wallet folder to point to the wallet as well $ export TNS_ADMIN="/home/opc/ATPnodeapp/wallet_NODEAPPDB/

Edit /home/opc/atpnodeapp/wallet_nodeappdb/sqlnet.ora as follows WALLET_LOCATION = (SOURCE = (METHOD = file) (METHOD_DATA = (DIRECTORY=$TNS_ADMIN))) SSL_SERVER_DN_MATCH=yes That s it. Get into your node app folder, run app in background and test with curl $ node server.js & $ curl http://localhost:3050 The application confirms connectivity to your ATP instance with this message Connection test succeeded. You connected to ATP as admin!