tag:blogger.com,1999:blog-40923043593803973722024-03-14T08:34:34.395+05:30Apun's WeblogApun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.comBlogger79125tag:blogger.com,1999:blog-4092304359380397372.post-44955488624013245742016-06-07T02:19:00.005+05:302016-06-07T02:28:00.034+05:30Building a sub $300/month Oracle RAC on AWS - Part III<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="line-height: 1.2; margin-bottom: 3pt; margin-top: 0pt; text-align: left;">
<span style="font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;">In the previous two post (<a href="http://apunhiran.blogspot.com/2016/06/building-sub-300month-oracle-rac-on-aws.html" target="_blank">Building a sub $300/month Oracle RAC on AWS - Part I</a>, <a href="http://apunhiran.blogspot.com/2016/06/building-sub-300month-oracle-rac-on-aws_7.html" target="_blank">Building a sub $300/month Oracle RAC on AWS - Part II</a>) we discussed how to setup the network infrastructure, storage infrastructure and multicast setup for Oracle RAC. </span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">In this post we will setup the Oracle RAC cluster nodes, install Oracle Grid Clusterware, Oracle RAC Database software and create a working 2-node Oracle RAC database that would cost us less than $300/month.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We will create a single node Oracle RAC database and then add the 2nd node.</span></div>
<h3 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup First Oracle RAC Node</span></h3>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We will be setting up a t2.large EC2 instance type with 2 CPU and 8GB RAM.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Please refer to the previous post regarding the creating the JSON file for spawning new instance.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Below the JSON file I am using for creating this instance (node1.json).</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DryRun": false,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ImageId": "ami-ebbc438b",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "MinCount": 1,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "MaxCount": 1,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "KeyName": "OracleRACKeyPair",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "SecurityGroupIds": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "sg-eca3a58b"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "InstanceType": "t2.large",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Placement": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "AvailabilityZone": "us-west-2c"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "BlockDeviceMappings": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VirtualName": "root",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeviceName" : "/dev/sda1",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Ebs": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VolumeSize": 200,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeleteOnTermination": true,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VolumeType": "standard"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VirtualName": "Shared-storage01",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeviceName" : "/dev/xvdb",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Ebs": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VolumeSize": 20,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeleteOnTermination": true,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VolumeType": "standard"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Monitoring": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Enabled": false</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "SubnetId": "subnet-dac3dd83",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DisableApiTermination": true,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "InstanceInitiatedShutdownBehavior": "stop",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "PrivateIpAddress": "10.0.0.11",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "NetworkInterfaces": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeviceIndex": 0,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "AssociatePublicIpAddress": true</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Run the following command to spawn the first RAC instance.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 run-instances --cli-input-json file://node1.json</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">This would output a long JSON output, search for InstanceId and note the value associated with it.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Let’s add a name tag to our instance with value racnode01.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 create-tags --resources i-b91ad764 --tags Key=Name,Value=racanode01</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add the Virtual-IP, and SCAN IPs to this newly created instance.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">First find out the network interface name for the instance:</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 describe-instances --instance-ids i-b91ad764|grep NetworkInterfaceId</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "NetworkInterfaceId": "eni-8bb366d7",</span></div>
<span style="color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; white-space: pre-wrap;"><br /></span>
<br />
<h4 style="text-align: left;">
<span style="color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; white-space: pre-wrap;">Assign the IP addresses to the network interface:</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 assign-private-ip-addresses --network-interface-id eni-8bb366d7 --private-ip-addresses 10.0.0.21</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 assign-private-ip-addresses --network-interface-id eni-8bb366d7 --private-ip-addresses 10.0.0.31</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 assign-private-ip-addresses --network-interface-id eni-8bb366d7 --private-ip-addresses 10.0.0.32</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 assign-private-ip-addresses --network-interface-id eni-8bb366d7 --private-ip-addresses 10.0.0.33</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SSH to the host to continue setup:</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ssh -i "OracleRACKeyPair.pem" ec2-user@ec2-52-24-81-69.us-west-2.compute.amazonaws.com</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup SWAP space on the instance:</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@ip-10-0-0-11 dev]# /sbin/pvcreate -f /dev/xvdb</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Physical volume "/dev/xvdb" successfully created</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@ip-10-0-0-11 dev]# /sbin/vgcreate swapvol /dev/xvdb</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Volume group "swapvol" successfully created</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@ip-10-0-0-11 dev]# /sbin/lvcreate swapvol --size 20g --stripes 1 --name swapvol</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Logical volume "swapvol" created.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@ip-10-0-0-11 ec2-user]# mkswap /dev/swapvol/swapvol</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setting up swapspace version 1, size = 20971516 KiB</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">no label, UUID=6cca2252-7a25-4abc-9bb7-ad48a587ae5a</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@ip-10-0-0-11 ec2-user]# swapon -va</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">swapon /dev/mapper/swapvol-swapvol</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">swapon: /dev/mapper/swapvol-swapvol: found swap signature: version 1, page-size 4, same byte order</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">swapon: /dev/mapper/swapvol-swapvol: pagesize=4096, swapsize=21474836480, devsize=21474836480</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add the following to /etc/fstab and reboot:</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/dev/swapvol/swapvol swap swap defaults 0 0</span></div>
<span style="color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; white-space: pre-wrap;"><br /></span>
<br />
<h4 style="text-align: left;">
<span style="color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; white-space: pre-wrap;">Rename the host/instance:</span></h4>
<ul style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add HOSTNAME=”racnode01.oracleraczone.net” to /etc/sysconfig/network</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add DHCP_HOSTNAME="racnode01.oracleraczone.net" to /etc/sysconfig/network-scripts/ifcfg-eth0</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add “host-name racnode01.oracleraczone.net” to /etc/dhcp/dhclient-eth0.conf</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">echo racnode01.oracleraczone.net > /etc/hostname</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">hostname racnode01.oracleraczone.net</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add to /etc/hosts</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">127.0.0.1 racnode01.oracleraczone.net racnode01 localhost localhost.oracleraczone.net</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.0.0.11 racnode01.oracleraczone.net racnode01</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add “preserve_hostname: true” to /etc/cloud/cloud.cfg</span></div>
</li>
</ul>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Reboot the host to make sure the changes take effect.</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Connect the instance to the storage:</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Let’s mount the block storage we configured in the previous post to this instance.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">As root:</span></div>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Discover the iSCSI storage device</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># iscsiadm --mode discoverydb --type sendtargets --portal 10.0.0.51 --discover</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.0.0.51:3260,1 iqn.2016-05.com.amazon:storage.datavol0</span></div>
<ol start="2" style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Query the configs</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># iscsiadm --mode node --targetname iqn.2016-05.com.amazon:storage.datavol0 --portal 10.0.0.51:3260</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Login/Connect to the iSCSI device</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># iscsiadm --mode node --targetname iqn.2016-05.com.amazon:storage.datavol0 --portal 10.0.0.51:3260 --login</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Logging in to [iface: default, target: iqn.2016-05.com.amazon:storage.datavol0, portal: 10.0.0.51,3260] (multiple)</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Login to [iface: default, target: iqn.2016-05.com.amazon:storage.datavol0, portal: 10.0.0.51,3260] successful.</span></div>
<ol start="4" style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update /etc/iscsi/initiatorname.iscsi with the correct InitiatorName</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">InitiatorName=iqn.2016-05.com.amazon:storage.datavol0</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The block device should be visible now</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 dev]# ls /dev/sd?</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/dev/sda</span></div>
<ol start="6" style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Partition the disk</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 dev]# fdisk /dev/sda</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Welcome to fdisk (util-linux 2.23.2).</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Changes will remain in memory only, until you decide to write them.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Be careful before using the write command.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Device does not contain a recognized partition table</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Building a new DOS disklabel with disk identifier 0x46bf3811.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Command (m for help): n</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Partition type:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> p primary (0 primary, 0 extended, 4 free)</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> e extended</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Select (default p): p</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Partition number (1-4, default 1):</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">First sector (2048-312475647, default 2048):</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Using default value 2048</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Last sector, +sectors or +size{K,M,G} (2048-312475647, default 312475647):</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Using default value 312475647</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Partition 1 of type Linux and of size 149 GiB is set</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Command (m for help): w</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The partition table has been altered!</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Calling ioctl() to re-read partition table.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Syncing disks.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 dev]# ls /dev/sda?</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/dev/sda1</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure Oracle ASM:</span></h4>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Install oracleasm rpm</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root@racnode01 dev]# yum install kmod-oracleasm.x86_64 -y</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update /etc/sysconfig/oracleasm</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># ORACLEASM_ENABLED: 'true' means to load the driver on boot.</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLEASM_ENABLED=true</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># ORACLEASM_UID: Default UID owning the /dev/oracleasm mount point.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLEASM_UID=500</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># ORACLEASM_GID: Default GID owning the /dev/oracleasm mount point.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLEASM_GID=500</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># ORACLEASM_SCANBOOT: 'true' means fix disk perms on boot</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLEASM_SCANBOOT=true</span></div>
<ol start="3" style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Restart ASM lib</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 dev]# oracleasm exit</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 dev]# oracleasm init</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Loading module "oracleasm": oracleasm</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configuring "oracleasm" to use device physical block size</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Mounting ASMlib driver filesystem: /dev/oracleasm</span></div>
<ol start="4" style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Create DATA asmdisk</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 dev]# oracleasm createdisk DATA /dev/sda1</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Writing disk header: done</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Instantiating disk: done</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 disks]# pwd</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/dev/oracleasm/disks</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 disks]# ls -lrt</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">total 0</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">brw-rw---- 1 oracle dba 8, 1 May 18 13:45 DATA</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup N2N-edge for Oracle interconnect:</span></h4>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Create the following startup script /etc/init.d/n2n-edge.init:</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">#! /bin/bash</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">### BEGIN INIT INFO</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># Provides: n2n-edge</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># Required-Start: $remote_fs $syslog</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># Required-Stop: $remote_fs $syslog</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># Default-Start: 2 3 4 5</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># Default-Stop: 0 1 6</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># Short-Description: n2n-edge</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># Description: Start n2n edge node daemon</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">### END INIT INFO</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">N2N_IP=10.1.0.21</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">N2N_COMMUNITY=OracleRAC</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">N2N_SUPERNODE=10.0.0.51:1200</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">prog=edge</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">exec=/usr/sbin/edge</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">case "$1" in</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> start)</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> [ -x $exec ] || exit 5</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> echo -n "Starting $prog: "</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> $exec -v -a $N2N_IP -c $N2N_COMMUNITY -l $N2N_SUPERNODE -E >> /var/log/edge 2>&1 || (echo "[FAILED]";exit 6)</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> echo "[OK]"</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ;;</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> stop)</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> echo -n "Stopping $prog: "</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> kill `ps -ef | grep $prog | grep $N2N_COMMUNITY | awk '{print $2}'` || (echo "[FAILED]";exit 0)</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> echo "[OK]"</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ;;</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> restart)</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> echo -n "Restarting $prog: "</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> kill `ps -ef | grep $prog | grep $N2N_COMMUNITY | awk '{print $2}'` || (echo "[FAILED]";exit 0)</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> echo "STOPPED"</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> $exec -v -a $N2N_IP -c $N2N_COMMUNITY -l $N2N_SUPERNODE -E >> /var/log/edge 2>&1 || (echo "[FAILED]";exit 6)</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> echo "STARTED"</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> echo "[OK]"</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ;;</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> *)</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> exit 2</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">esac</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">exit $?</span></div>
<ol start="2" style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Make the script executable</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 init.d]# chmod +x n2n-edge.init</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add to system startup</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 init.d]# chkconfig --add n2n-edge.init</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 init.d]# chkconfig n2n-edge.init on</span></div>
<ol start="4" style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Start the service</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 init.d]# service n2n-edge.init start</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Starting edge: [OK]</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Generate ssh keys for Oracle user</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ ssh-keygen</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Generating public/private rsa key pair.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Enter file in which to save the key (/home/oracle/.ssh/id_rsa):</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Created directory '/home/oracle/.ssh'.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Enter passphrase (empty for no passphrase):</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Enter same passphrase again:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Your identification has been saved in /home/oracle/.ssh/id_rsa.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The key fingerprint is:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1b:fa:44:d0:7b:7f:cd:f8:b4:ca:79:2b:06:92:8d:0e oracle@racnode01.oracleraczone.net</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The key's randomart image is:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">+--[ RSA 2048]----+</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">| |</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">| . |</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">| . . |</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">| . . |</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">| S = |</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">| E B + + |</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">| . = . o o +|</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">| o . .+.+.|</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">| . .++oo|</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">+-----------------+</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">cat /home/oracle/.ssh/id_rsa.pub > /home/oracle/.ssh/authorized_keys</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Oracle RAC Installation</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Download Oracle software from: </span><a href="http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html</span></a></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Click “See All” for Linux x86-64.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Download both DB and Grid installation files:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Oracle Database 12c Release 1 Grid Infrastructure (12.1.0.2.0) for Linux x86-64</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Oracle Database 12c Release 1 (12.1.0.2.0) for Linux x86-64</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Copy this files over to the EC2 instance under /home/oracle/software</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Unzip the files (you may need to install unzip, yum install unzip -y).</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Install Oracle Clusterware Software</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Run the grid installer:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ /home/oracle/software/grid/runInstaller -silent -ignoreprereq -responsefile /home/oracle/response/grid.rsp</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Starting Oracle Universal Installer...</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Checking Temp space: must be greater than 415 MB. Actual 191784 MB Passed</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Checking swap space: must be greater than 150 MB. Actual 20479 MB Passed</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">………….</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">You can find the log of this install session at:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> /home/oracle/oraInventory/logs/installActions2016-05-18_05-29-56PM.log</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Tail the log file to see if there are any error.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">As the installer completes, you should see 2 messages:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">As a root user, execute the following script(s):</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1. /home/oracle/oraInventory/orainstRoot.sh</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">2. /home/oragrid/product/12.1/root.sh</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 oracle]# /home/oracle/oraInventory/orainstRoot.sh</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Changing permissions of /home/oracle/oraInventory.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Adding read,write permissions for group.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Removing read,write,execute permissions for world.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Changing groupname of /home/oracle/oraInventory to dba.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The execution of the script is complete.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 oracle]# /home/oragrid/product/12.1/root.sh</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Check /home/oragrid/product/12.1/install/root_racnode01.oracleraczone.net_2016-05-18_17-42-48.log for the output of root script</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 oracle]# tail -f /home/oragrid/product/12.1/install/root_racnode01.oracleraczone.net_2016-05-18_17-42-48.log</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Run this right after you get back the prompt as oracle user:</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/home/oragrid/product/12.1/crs/config/config.sh -silent -ignoreprereq -responsefile /home/oracle/response/gridconfig.rsp</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 .ssh]$ /home/oragrid/product/12.1/crs/config/config.sh -silent -ignoreprereq -responsefile /home/oracle/response/gridconfig.rsp</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">As a root user, execute the following script(s):</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1. /home/oragrid/product/12.1/root.sh</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Execute /home/oragrid/product/12.1/root.sh on the following nodes:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[racnode01]</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Successfully Setup Software.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[WARNING] [INS-43080] Some of the configuration assistants failed, were cancelled or skipped.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ACTION: Refer to the logs or contact Oracle Support Services.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">As install user, execute the following script to complete the configuration.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1. /home/oragrid/product/12.1/cfgtoollogs/configToolAllCommands RESPONSE_FILE=<response_file></response_file></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Note:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1. This script must be run on the same host from where installer was run.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">2. This script needs a small password properties file for configuration assistants that require passwords (refer to install guide documentation).</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode01 oracle]# /home/oragrid/product/12.1/root.sh</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Check /home/oragrid/product/12.1/install/root_racnode01.oracleraczone.net_2016-05-18_18-02-05.log for the output of root script</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ /home/oragrid/product/12.1/cfgtoollogs/configToolAllCommands RESPONSE_FILE=/home/oracle/response/gridconfig.rsp</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setting the invPtrLoc to /home/oragrid/product/12.1/oraInst.loc</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">perform - mode is starting for action: configure</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add the Oracle VIPs and SCAN IP</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">export ORACLE_HOME=/home/oragrid/product/12.1</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">export PATH=$PATH:$ORACLE_HOME/bin</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">export ORACLE_SID=+ASM1</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">VIP:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">crsctl add resource racnode01-v.ec2 -type cluster_resource -attr "CHECK_INTERVAL=10,PLACEMENT=favored,HOSTING_MEMBERS=racnode01,AUTO_START=always,START_DEPENDENCIES=hard(intermediate:ora.racnode01.vip),RELOCATE_BY_DEPENDENCY=1,STOP_DEPENDENCIES=hard(intermediate:ora.racnode01.vip)"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SCAN:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">crsctl add resource oraclerac-scan1.ec2 -type cluster_resource -attr "CHECK_INTERVAL=10,PLACEMENT=favored,HOSTING_MEMBERS=racnode01,AUTO_START=always,START_DEPENDENCIES=hard(intermediate:ora.scan1.vip),RELOCATE_BY_DEPENDENCY=1,STOP_DEPENDENCIES=hard(intermediate:ora.scan1.vip)"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">crsctl add resource oraclerac-scan2.ec2 -type cluster_resource -attr "CHECK_INTERVAL=10,PLACEMENT=favored,HOSTING_MEMBERS=racnode01,AUTO_START=always,START_DEPENDENCIES=hard(intermediate:ora.scan2.vip),RELOCATE_BY_DEPENDENCY=1,STOP_DEPENDENCIES=hard(intermediate:ora.scan2.vip)"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">crsctl add resource oraclerac-scan3.ec2 -type cluster_resource -attr "CHECK_INTERVAL=10,PLACEMENT=favored,HOSTING_MEMBERS=racnode01,AUTO_START=always,START_DEPENDENCIES=hard(intermediate:ora.scan3.vip),RELOCATE_BY_DEPENDENCY=1,STOP_DEPENDENCIES=hard(intermediate:ora.scan3.vip)"</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ASM Configs:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ sqlplus / as sysasm</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL*Plus: Release 12.1.0.2.0 Production on Wed May 18 18:31:04 2016</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Copyright (c) 1982, 2014, Oracle. All rights reserved.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Connected to:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">With the Real Application Clusters and Automatic Storage Management options</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> alter system set cluster_interconnects='10.1.0.21' scope=spfile sid='+ASM1';</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">System altered.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> alter system set cluster_interconnects='10.1.0.22' scope=spfile sid='+ASM2';</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">System altered.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> select name from v$asm_diskgroup;</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">NAME</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">------------------------------</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">DATA</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: italic; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Try to restart CRS and the host to make sure everything is working fine.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">As root: </span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/home/oragrid/product/12.1/bin/crsctl stop crs</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/home/oragrid/product/12.1/bin/crsctl start crs</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/home/oragrid/product/12.1/bin/crs_stat -t</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Install Oracle Database Software</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ /home/oracle/software/database/runInstaller -silent -ignoreprereq -responsefile /home/oracle/response/db.rsp</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Starting Oracle Universal Installer...</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Checking Temp space: must be greater than 500 MB. Actual 184146 MB Passed</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Checking swap space: must be greater than 150 MB. Actual 20479 MB Passed</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-05-18_07-34-39PM. Please wait ...[oracle@racnode01 ~]$ [WARNING] [INS-32008] Oracle base location cant be same as the user home directory.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> CAUSE: The specified Oracle base is same as the user home directory.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ACTION: Provide an Oracle base location other than the user home directory.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">You can find the log of this install session at:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> /home/oracle/oraInventory/logs/installActions2016-05-18_07-34-39PM.log</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">As a root user, execute the following script(s):</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1. /home/oracle/product/12.1/root.sh</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Execute /home/oracle/product/12.1/root.sh on the following nodes:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[racnode01]</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Run /home/oracle/product/12.1/root.sh as root.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: italic; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">This completed the software installation for Oracle.</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Database Creation</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">As Oracle user:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ . oraenv</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLE_SID = [oracle] ? orcl</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLE_HOME = [/home/oracle] ? /home/oracle/product/12.1</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The Oracle base has been set to /home/oracle</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Run Database Configuration Assistant to create the database:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ dbca -silent -responsefile /home/oracle/response/dbca.rsp</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Copying database files</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">3% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">9% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">15% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">21% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">27% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">30% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Creating and starting Oracle instance</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">32% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">36% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">40% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">44% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">48% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">49% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">52% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Creating cluster database views</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">54% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">72% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Completing Database Creation</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">75% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">78% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">87% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">90% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">99% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">100% complete</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Look at the log file "/home/oracle/cfgtoollogs/dbca/orcl/orcl.log" for further details.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ ps -ef|grep pmon</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">oracle 3227 1 0 May18 ? 00:00:05 asm_pmon_+ASM1</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">oracle 26018 1 0 19:25 ? 00:00:00 ora_pmon_orcl1</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<h4 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup Second Oracle RAC Node</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">To setup the 2nd RAC node, we need to follow the same steps we did for node1, except for the Oracle software installation.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Node2.json (change the IP address):</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DryRun": false,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ImageId": "ami-ebbc438b",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "MinCount": 1,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "MaxCount": 1,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "KeyName": "OracleRACKeyPair",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "SecurityGroupIds": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "sg-eca3a58b"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "InstanceType": "t2.large",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Placement": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "AvailabilityZone": "us-west-2c"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "BlockDeviceMappings": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VirtualName": "root",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeviceName" : "/dev/sda1",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Ebs": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VolumeSize": 200,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeleteOnTermination": true,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VolumeType": "standard"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VirtualName": "Shared-storage01",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeviceName" : "/dev/xvdb",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Ebs": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VolumeSize": 20,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeleteOnTermination": true,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VolumeType": "standard"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Monitoring": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Enabled": false</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "SubnetId": "subnet-dac3dd83",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DisableApiTermination": true,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "InstanceInitiatedShutdownBehavior": "stop",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "PrivateIpAddress": "10.0.0.12",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "NetworkInterfaces": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeviceIndex": 0,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "AssociatePublicIpAddress": true</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 run-instances --cli-input-json file://node2.json</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 create-tags --resources i-60e22bbd --tags Key=Name,Value=racanode02</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 describe-instances --instance-ids i-60e22bbd|grep NetworkInterfaceId</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "NetworkInterfaceId": "eni-0e15ca52",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 assign-private-ip-addresses --network-interface-id eni-0e15ca52 --private-ip-addresses 10.0.0.22</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SSH to the host to continue setup:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ ssh -i "OracleRACKeyPair.pem" ec2-user@ec2-52-11-160-98.us-west-2.compute.amazonaws.com</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Adding SWAP:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[ec2-user@ip-10-0-0-12 ~]$ sudo su</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@ip-10-0-0-12 ec2-user]# /sbin/pvcreate -f /dev/xvdb</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Physical volume "/dev/xvdb" successfully created</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@ip-10-0-0-12 ec2-user]# /sbin/vgcreate swapvol /dev/xvdb</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Volume group "swapvol" successfully created</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@ip-10-0-0-12 ec2-user]# /sbin/lvcreate swapvol --size 20g --stripes 1 --name swapvol</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Logical volume "swapvol" created.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@ip-10-0-0-12 ec2-user]# mkswap /dev/swapvol/swapvol</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setting up swapspace version 1, size = 20971516 KiB</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">no label, UUID=d5bd617a-0337-4355-a043-e88300af5192</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@ip-10-0-0-12 ec2-user]#</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@ip-10-0-0-12 ec2-user]# swapon -va</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">swapon /dev/mapper/swapvol-swapvol</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">swapon: /dev/mapper/swapvol-swapvol: found swap signature: version 1, page-size 4, same byte order</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">swapon: /dev/mapper/swapvol-swapvol: pagesize=4096, swapsize=21474836480, devsize=21474836480</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<h4 style="text-align: left;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Rename the host/instance:</span></h4>
<ul style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add HOSTNAME=”racnode02.oracleraczone.net” to /etc/sysconfig/network</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add DHCP_HOSTNAME="racnode02.oracleraczone.net" to /etc/sysconfig/network-scripts/ifcfg-eth0</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add “host-name racnode02.oracleraczone.net” to /etc/dhcp/dhclient-eth0.conf</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">echo racnode02.oracleraczone.net > /etc/hostname</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">hostname racnode02.oracleraczone.net</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add to /etc/hosts</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">127.0.0.1 racnode02.oracleraczone.net racnode02 localhost localhost.oracleraczone.net</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.0.0.12 racnode02.oracleraczone.net racnode02</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add “preserve_hostname: true” to /etc/cloud/cloud.cfg</span></div>
</li>
</ul>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Reboot the host to make sure the changes take effect.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[ec2-user@racnode02 ~]$ hostname</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Racnode02.oracleraczone.net</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Connect the instance to the storage:</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Let’s mount the block storage we configured in the previous post to this instance.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">As root:</span></div>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Discover the iSCSI storage device</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># iscsiadm --mode discoverydb --type sendtargets --portal 10.0.0.51 --discover</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.0.0.51:3260,1 iqn.2016-05.com.amazon:storage.datavol0</span></div>
<ol start="2" style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Login/Connect to the iSCSI device</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># iscsiadm --mode node --targetname iqn.2016-05.com.amazon:storage.datavol0 --portal 10.0.0.51:3260 --login</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Logging in to [iface: default, target: iqn.2016-05.com.amazon:storage.datavol0, portal: 10.0.0.51,3260] (multiple)</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Login to [iface: default, target: iqn.2016-05.com.amazon:storage.datavol0, portal: 10.0.0.51,3260] successful.</span></div>
<ol start="3" style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update /etc/iscsi/initiatorname.iscsi with the correct InitiatorName</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">InitiatorName=iqn.2016-05.com.amazon:storage.datavol0</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We can see the devices on node2 now</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode02 dev]# ls /dev/sda*</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/dev/sda /dev/sda1</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure Oracle ASM:</span></h4>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Install oracleasm rpm</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root@racnode02 dev]# yum install kmod-oracleasm.x86_64 -y</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update /etc/sysconfig/oracleasm</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># ORACLEASM_ENABLED: 'true' means to load the driver on boot.</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLEASM_ENABLED=true</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># ORACLEASM_UID: Default UID owning the /dev/oracleasm mount point.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLEASM_UID=500</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># ORACLEASM_GID: Default GID owning the /dev/oracleasm mount point.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLEASM_GID=500</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"># ORACLEASM_SCANBOOT: 'true' means fix disk perms on boot</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLEASM_SCANBOOT=true</span></div>
<ol start="3" style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Restart ASM lib</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode02 dev]# oracleasm exit</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode02 dev]# oracleasm init</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Loading module "oracleasm": oracleasm</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configuring "oracleasm" to use device physical block size</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Mounting ASMlib driver filesystem: /dev/oracleasm</span></div>
<ol start="4" style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Scan ASM disk</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode02 ec2-user]# ls -lrt /dev/oracleasm/disks/</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">total 0</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode02 ec2-user]# oracleasm scandisks</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Reloading disk partitions: done</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Cleaning any stale ASM disks…</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Scanning system for ASM disks…</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Instantiating disk "DATA"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode02 ec2-user]# ls -lrt /dev/oracleasm/disks/</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">total 0</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">brw-rw---- 1 oracle dba 8, 1 May 19 21:04 DATA</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup N2N-edge for Oracle interconnect: </span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Please refer to the instructions used for node1. Update </span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">N2N_IP=10.1.0.22</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup Passwordless SSH</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SCP file /home/oracle/.ssh/authorized_keys from both the nodes to your local filesystem.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">You would need to copy the file to temp and provide RW access to ec2-user first.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 .ssh]$ cp authorized_keys /tmp/authorized_keys_node1</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode02 .ssh]$ cp authorized_keys /tmp/authorized_keys_node2</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Copy to local machine:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ scp -i "OracleRACKeyPair.pem" ec2-user@ec2-52-39-119-153.us-west-2.compute.amazonaws.com:/tmp/authorized_keys_node1 .</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">authorized_keys_node1 100% 416 0.4KB/s 00:00</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ scp -i "OracleRACKeyPair.pem" ec2-user@ec2-52-11-160-98.us-west-2.compute.amazonaws.com:/tmp/authorized_keys_node2 .</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">authorized_keys_node2 100% 416 0.4KB/s 00:00</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Merge the files as authorized_keys and SCP back to the hosts:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ cat authorized_keys_node1 > authorized_keys</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ cat authorized_keys_node2 >> authorized_keys</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ scp -i "OracleRACKeyPair.pem" authorized_keys ec2-user@ec2-52-39-119-153.us-west-2.compute.amazonaws.com:/tmp/</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">authorized_keys 100% 832 0.8KB/s 00:00</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ scp -i "OracleRACKeyPair.pem" authorized_keys ec2-user@ec2-52-11-160-98.us-west-2.compute.amazonaws.com:/tmp/</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">authorized_keys 100% 832 0.8KB/s 00:00</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Copy them back to /home/oracle/.ssh directory.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Try ssh to the nodes and it should not ask for a password.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update /etc/hosts on both the nodes with:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.0.0.11 racnode01.oracleraczone.net racnode01</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.1.0.21 racnode01-i.oracleraczone.net racnode01-i</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.0.0.21 racnode01-v.oracleraczone.net racnode01-v</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.0.0.12 racnode02.oracleraczone.net racnode02</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.1.0.22 racnode02-i.oracleraczone.net racnode02-i</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.0.0.22 racnode02-v.oracleraczone.net racnode02-v</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.0.0.31 oraclerac-scan1.oracleraczone.net</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.0.0.32 oraclerac-scan2.oracleraczone.net</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.0.0.33 oraclerac-scan3.oracleraczone.net</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: #434343; font-family: "calibri"; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add Node 2 to the RAC Cluster</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">As oracle user on Node1:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ . oraenv</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLE_SID = [oracle] ? +ASM1</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The Oracle base has been set to /home/oracle</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ echo $ORACLE_HOME</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/home/oragrid/product/12.1</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Run addnode.sh to add node2 to the cluster:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ /home/oragrid/product/12.1/addnode/addnode.sh -silent -ignoreprereq "CLUSTER_NEW_NODES={racnode02}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={racnode02-v}"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Starting Oracle Universal Installer...</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Checking Temp space: must be greater than 120 MB. Actual 178417 MB Passed</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Checking swap space: must be greater than 150 MB. Actual 20276 MB Passed</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Prepare Configuration in progress.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Prepare Configuration successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.................................................. 8% Done.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">You can find the log of this install session at:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> /home/oracle/oraInventory/logs/addNodeActions2016-05-20_01-55-49PM.log</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Instantiate files in progress.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Instantiate files successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.................................................. 14% Done.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Copying files to node in progress.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Copying files to node successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.................................................. 73% Done.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Saving cluster inventory in progress.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.................................................. 80% Done.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Saving cluster inventory successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The Cluster Node Addition of /home/oragrid/product/12.1 was successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Please check '/tmp/silentInstall.log' for more details.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup Oracle Base in progress.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup Oracle Base successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.................................................. 88% Done.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">As a root user, execute the following script(s):</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1. /home/oracle/oraInventory/orainstRoot.sh</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">2. /home/oragrid/product/12.1/root.sh</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Execute /home/oracle/oraInventory/orainstRoot.sh on the following nodes:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[racnode02]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Execute /home/oragrid/product/12.1/root.sh on the following nodes:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[racnode02]</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The scripts can be executed in parallel on all the nodes.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">..........</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update Inventory in progress.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.................................................. 100% Done.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update Inventory successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Successfully Setup Software.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Execute the following scripts as root on node2 and make sure they are successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1. /home/oracle/oraInventory/orainstRoot.sh</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Changing permissions of /home/oracle/oraInventory.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Adding read,write permissions for group.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Removing read,write,execute permissions for world.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Changing groupname of /home/oracle/oraInventory to dba.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The execution of the script is complete.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">2. /home/oragrid/product/12.1/root.sh</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Check /home/oragrid/product/12.1/install/root_racnode02.oracleraczone.net_2016-05-20_14-06-41.log for the output of root script</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update VIPs and SCAN to incorporate the Second Oracle RAC host:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Login to Node1 and run the following commands:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ . oraenv</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLE_SID = [oracle] ? +ASM1</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The Oracle base has been set to /home/oracle</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add VIP for node2:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">crsctl add resource racnode02-v.ec2 -type cluster_resource -attr "CHECK_INTERVAL=10,PLACEMENT=favored,HOSTING_MEMBERS=racnode01 racnode02, AUTO_START=always,START_DEPENDENCIES=hard(intermediate:ora.racnode02.vip),RELOCATE_BY_DEPENDENCY=1,STOP_DEPENDENCIES=hard(intermediate:ora.racnode02.vip)"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Modify VIP for node1 to add node2:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">crsctl modify resource racnode01-v.ec2 -attr "CHECK_INTERVAL=10,PLACEMENT=favored,HOSTING_MEMBERS=racnode01 racnode02, AUTO_START=always,START_DEPENDENCIES=hard(intermediate:ora.racnode01.vip),RELOCATE_BY_DEPENDENCY=1,STOP_DEPENDENCIES=hard(intermediate:ora.racnode01.vip)"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update SCAN to incorporate node2:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">crsctl modify resource oraclerac-scan1.ec2 -attr "CHECK_INTERVAL=10,PLACEMENT=favored,HOSTING_MEMBERS=racnode01 racnode02, AUTO_START=always,START_DEPENDENCIES=hard(intermediate:ora.scan1.vip),RELOCATE_BY_DEPENDENCY=1,STOP_DEPENDENCIES=hard(intermediate:ora.scan1.vip)"</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">crsctl modify resource oraclerac-scan2.ec2 -attr "CHECK_INTERVAL=10,PLACEMENT=favored,HOSTING_MEMBERS=racnode01 racnode02, AUTO_START=always,START_DEPENDENCIES=hard(intermediate:ora.scan2.vip),RELOCATE_BY_DEPENDENCY=1,STOP_DEPENDENCIES=hard(intermediate:ora.scan2.vip)"</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">crsctl modify resource oraclerac-scan3.ec2 -attr "CHECK_INTERVAL=10,PLACEMENT=favored,HOSTING_MEMBERS=racnode01 racnode02, AUTO_START=always,START_DEPENDENCIES=hard(intermediate:ora.scan3.vip),RELOCATE_BY_DEPENDENCY=1, STOP_DEPENDENCIES=hard(intermediate:ora.scan3.vip)"</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add the Oracle database to Node2:</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">As Oracle user on Node1:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ /home/oracle/product/12.1/addnode/addnode.sh -silent -ignoreprereq "CLUSTER_NEW_NODES={racnode02}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={racnode02-v}"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Starting Oracle Universal Installer...</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Checking Temp space: must be greater than 120 MB. Actual 178061 MB Passed</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Checking swap space: must be greater than 150 MB. Actual 20266 MB Passed</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Prepare Configuration in progress.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Prepare Configuration successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.................................................. 8% Done.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">You can find the log of this install session at:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> /home/oracle/oraInventory/logs/addNodeActions2016-05-20_06-25-23PM.log</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Instantiate files in progress.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Instantiate files successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.................................................. 14% Done.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Copying files to node in progress.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Copying files to node successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.................................................. 73% Done.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Saving cluster inventory in progress.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.................................................. 80% Done.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Saving cluster inventory successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The Cluster Node Addition of /home/oracle/product/12.1 was successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Please check '/tmp/silentInstall.log' for more details.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup Oracle Base in progress.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup Oracle Base successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.................................................. 88% Done.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">As a root user, execute the following script(s):</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1. /home/oracle/product/12.1/root.sh</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Execute /home/oracle/product/12.1/root.sh on the following nodes:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[racnode02]</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">..........</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update Inventory in progress.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.................................................. 100% Done.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update Inventory successful.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Successfully Setup Software.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">From Node2 execute:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[root@racnode02 ec2-user]# /home/oracle/product/12.1/root.sh</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Check /home/oracle/product/12.1/install/root_racnode02.oracleraczone.net_2016-05-20_19-06-45.log for the output of root script</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Adding Database Instance on Node2</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ . oraenv</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLE_SID = [orcl1] ? orcl1</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ORACLE_HOME = [/home/oracle] ? /home/oracle/product/12.1</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The Oracle base remains unchanged with value /home/oracle</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ sqlplus / as sysdba</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL*Plus: Release 12.1.0.2.0 Production on Fri May 20 19:14:22 2016</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Copyright (c) 1982, 2014, Oracle. All rights reserved.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Connected to:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Advanced Analytics and Real Application Testing options</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> alter database add logfile thread 2 group 4 ('+DATA') size 50M, group 5 ('+DATA') size 50M, group 6 ('+DATA') size 50M;</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Database altered.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> alter database enable public thread 2;</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Database altered.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> create undo tablespace undotbs2 datafile '+DATA' size 65M autoextend on maxsize 30G;</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Tablespace created.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> alter system set undo_tablespace=undotbs2 scope=spfile sid='orcl2';</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">System altered.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> alter system set instance_number=2 scope=spfile sid='orcl2';</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">System altered.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> alter system set cluster_database_instances=2 scope=spfile sid='*';</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">System altered.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> ALTER SYSTEM SET CLUSTER_INTERCONNECTS = '10.1.0.21' scope=spfile sid='orcl1';</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">System altered.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> ALTER SYSTEM SET CLUSTER_INTERCONNECTS = '10.1.0.22' scope=spfile sid='orcl2';</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">System altered.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> alter system reset CLUSTER_INTERCONNECTS scope=spfile sid='*';</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">System altered.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">On Node2 create the init file for Oracle:</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode02 dbs]$ cp $ORACLE_HOME/dbs/initorcl1.ora $ORACLE_HOME/dbs/initorcl2.ora</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Adding Instance to CRS:</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">On node1:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ srvctl add instance -d orcl -i orcl2 -n racnode02</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 ~]$ srvctl stop database -d orcl</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 dbs]$ srvctl start database -d orcl</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[oracle@racnode01 dbs]$ srvctl status database -d orcl -v</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Instance orcl1 is running on node racnode01. Instance status: Open.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Instance orcl2 is running on node racnode02. Instance status: Open.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Well we are finally done. It takes a while but everything falls into place eventually. </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Enable traffic to port 1521 so that we can connect from outside of AWS:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 authorize-security-group-ingress --group-id sg-eca3a58b --protocol tcp --port 1521 --cidr 0.0.0.0/0</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">This would enable anyone to connect to these hosts, so please make sure you provide the IP address range of your network.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">There would be problems connecting to the public IP/public DNS from outside of AWS.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The workaround I have seen to work is:</span></div>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Stop listener</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Remove/rename listener.ora</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Let CRS restart the listener automatically</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">This should enable you to connect to the AWS oracle via sqlplus from your laptop:</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sqlplus system/Ch3ap0RAC@52.39.119.153:1521/orcl</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL*Plus: Release 11.2.0.4.0 Production on Mon May 23 12:18:41 2016</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Copyright (c) 1982, 2013, Oracle. All rights reserved.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Connected to:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Advanced Analytics and Real Application Testing options</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> set lines 300</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> col HOST_NAME format a30</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SQL> select inst_id,INSTANCE_NAME,HOST_NAME,VERSION,STARTUP_TIME,STATUS from gv$instance;</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> INST_ID INSTANCE_NAME HOST_NAME</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> VERSION</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> STARTUP_T STATUS</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">---------- ---------------- ------------------------------ ----------------- --------- ------------</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> 1 orcl1</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> racnode01.oracleraczone.net 12.1.0.2.0</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> 20-MAY-16 OPEN</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> 2 orcl2</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> racnode02.oracleraczone.net 12.1.0.2.0</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> 20-MAY-16 OPEN</span></div>
<br /></div>
Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com0San Francisco, CA, USA37.7749295 -122.4194155000000137.373501499999996 -123.06486250000002 38.1763575 -121.77396850000001tag:blogger.com,1999:blog-4092304359380397372.post-79003516713677087882016-06-07T00:32:00.003+05:302016-06-07T02:28:12.990+05:30Building a sub $300/month Oracle RAC on AWS - Part II<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">In the previous post (<a href="http://apunhiran.blogspot.com/2016/06/building-sub-300month-oracle-rac-on-aws.html" target="_blank">Building a sub $300/month Oracle RAC on AWS - Part I</a>) we discussed the network setup required for Oracle RAC. In this post we will explore setting up shared storage required for Oracle RAC.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Oracle RAC is a shared storage system, every node in the cluster Read/Write to the the same storage system. In enterprise set up this space is dominated by enterprise storage companies like EMC, NetApp etc. EMC provides block storage for Oracle and NetApp provides Network Attached Storage for running shared storage for Oracle RAC.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We will explore using block storage in AWS to setup RAC. AWS is working on providing NFS or Elastic File System in their cloud. This is in beta currently and not generally available. Whenever I have access to EFS I will update this document on how to use EFS for RAC.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Let’s get familiar with some important terms that would help us understand the ISCSI storage server:</span></div>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">iSCSI storage - iSCSI stands for “Internet Small Computer System Interface”. It’s basically block storage using TCP. </span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">iSCSI Initiator - Connects external iSCSI-based storage to hosts with an Ethernet network adapter over TCP.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">iSCSI Target - Host which acts as a storage device capable of providing shared block storage in the form of virtual hard disks (VHDs) to clients across a TCP/IP network.</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">In our case the Oracle RAC instances would be iSCSI initiators and storage instance iSCSI target.</span></div>
<span id="docs-internal-guid-18b39d45-26d7-0133-94c2-581d2712a285"></span><br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">For more details: </span><span style="color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"><a href="http://searchstorage.techtarget.com/definition/iSCSI" style="text-decoration: none;">http://searchstorage.techtarget.com/definition/iSCSI</a></span></div>
<h3 style="text-align: left;">
<span style="font-family: "calibri"; font-size: 26.666666666666664px; white-space: pre-wrap;">Setup iSCSI Target</span></h3>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup Storage Instance</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Let’s spin our first AWS EC2 instance which is act as our iSCSI target or the storage server.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">In our effort to remain cheap let’s spin a “t2.micro” instance with Ubuntu OS.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">What is EC2: Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. Details can be found at: </span><a href="https://aws.amazon.com/ec2" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://aws.amazon.com/ec2</span></a></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">EC2 instance types can be found at: </span><a href="https://aws.amazon.com/ec2/instance-types/" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://aws.amazon.com/ec2/instance-types/</span></a></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b id="docs-internal-guid-c2adbf41-26d7-580d-073f-ba947c0bdf77" style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">T2.micro instance has 1 CPU and 1GB memory.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">AWS command-line provides an easy way to generate a skeleton JSON file which can be used to define all instance attributes required to start a new EC2 instance.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 run-instances --generate-cli-skeleton </span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Its best to redirect the output of this command to a file, which we can then edit as per our requirements.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 run-instances --generate-cli-skeleton > storage01.json</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">I have updated the JSON file as per our requirements to build a t2.micro instance.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DryRun": false,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ImageId": "ami-9abea4fb",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "MinCount": 1,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "MaxCount": 1,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "KeyName": "OracleRACKeyPair",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "SecurityGroupIds": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "sg-eca3a58b"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "InstanceType": "t2.micro",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Placement": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "AvailabilityZone": "us-west-2c"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "BlockDeviceMappings": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VirtualName": "root",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeviceName" : "/dev/sda1",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Ebs": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VolumeSize": 8,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeleteOnTermination": true,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VolumeType": "standard"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VirtualName": "Shared-storage01",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeviceName" : "/dev/xvdb",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Ebs": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VolumeSize": 150,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeleteOnTermination": true,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VolumeType": "standard"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Monitoring": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Enabled": false</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "SubnetId": "subnet-dac3dd83",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DisableApiTermination": true,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "InstanceInitiatedShutdownBehavior": "stop",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "PrivateIpAddress": "10.0.0.51",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "NetworkInterfaces": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DeviceIndex": 0,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "AssociatePublicIpAddress": true</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Note: the values of </span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">KeyName, SecurityGroupIds, SubnetId </span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">have been taken from the resources we created in Part 1. The </span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">PrivateIpAddress </span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">is taken from the DNS JSON we created, with property name storage01.oracleraczone.net.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">After the JSON file is updated, running the following command will spawn our storage instance.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 run-instances --cli-input-json file://storage01.json</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">This would output a long JSON output, search for InstanceId and note the value associated with it.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Let’s add a name tag to our instance with value iSCSI-storage01</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 create-tags --resources i-f2e31b2f --tags Key=Name,Value=iSCSI-storage01</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Now that we have an instance running let’s ssh to the newly created ubuntu instance and install the required iSCSI software to make it storage server. Get the instance id from the JSON output from the instance creation command.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 describe-instances --instance-ids i-f2e31b2f |grep PublicDnsName</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "PublicDnsName": "ec2-52-39-23-189.us-west-2.compute.amazonaws.com",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">To enable 22 to the instance, add inbound rule to your security group:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 authorize-security-group-ingress --group-id sg-eca3a58b --protocol tcp --port 22 --cidr 0.0.0.0/0</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Ssh to the instance:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ssh -i "OracleRACKeyPair.pem" ubuntu@ec2-52-39-23-189.us-west-2.compute.amazonaws.com</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Installing iSCSI software:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">sudo apt-get update</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">sudo apt-get upgrade</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Sudo apt-get install iscsitarget</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update iSCSI default properties:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root@ip-10-0-0-227:/etc/tgt/conf.d# sudo vi /etc/default/iscsitarget</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ISCSITARGET_ENABLE=true</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ISCSITARGET_MAX_SLEEP=3</span><span style="background-color: transparent; color: black; font-family: "consolas"; font-size: 13.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Restart the service to enable the setting:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo service iscsitarget restart</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Install logical volume manager for ubuntu:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ apt-get install lvm2</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Let’s create a new volume using the 150G disk we added while creating the instance.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo pvcreate /dev/xvdb</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Physical volume "/dev/xvdb" successfully created</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo vgcreate oraclerac-data /dev/xvdb</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Volume group "oraclerac-data" successfully created</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo lvcreate oraclerac-data --size 149g --stripes 1 --name datalvol</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Logical volume "datalvol" created</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update iSCSI config to scan this newly created volume and present it as network block device.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add the following to /etc/iet/ietd.conf:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Target iqn.2016-05.com.amazon:storage.datavol0</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Lun 0 Path=/dev/oraclerac-data/datalvol,Type=fileio,ScsiId=lun0,ScsiSN=lun0</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo service iscsitarget restart</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> * Removing iSCSI enterprise target devices:[ OK ]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> * Stopping iSCSI enterprise target service:[ OK ]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> * Removing iSCSI enterprise target modules:[ OK ]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> * Starting iSCSI enterprise target service:[ OK ]</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup Multicast IP for Oracle RAC</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Multicasting in networking terms is a group communication technique. It’s a one-to-many communication over network. Multicast uses network infrastructure efficiently by requiring the source to send a packet only once, even if it needs to be delivered to a large number of receivers. The nodes in the network take care of replicating the packet to reach multiple receivers only when necessary. (</span><a href="https://en.wikipedia.org/wiki/Multicast" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://en.wikipedia.org/wiki/Multicast</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">).</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Oracle Grid Infrastructure 11.2.0.2 introduces a new feature called "Redundant Interconnect Usage", which provides an Oracle internal mechanism to make use of physically redundant network interfaces for the Oracle (private) interconnect. As part of this new feature, multicast based communication on the private interconnect is utilized to establish communication with peers in the cluster on each startup of the stack on a node. Once the connection with the peers in the cluster has been established, the communication is switched back to unicast. Per default, the 230.0.1.0 address (port 42424) on the private interconnect network is used for multicasting. (</span><a href="https://community.oracle.com/thread/2398409?tstart=0" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://community.oracle.com/thread/2398409?tstart=0</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">).</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">EC2 doesn’t provide an option to setup multicast out of the box. To setup a network for the interconnect we use point-2-point VPN for the RAC nodes using N2N. N2N enable instances to be members of a community which supports multicast IP among its members. Each member in the community run the edge component of N2N and get information about the other instances from the master or supernode. </span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We can use our storage server to act as the supernode for this N2N setup and overcome the lack of multicast in EC2. (</span><a href="https://www.buckhill.co.uk/blog/how-to-enable-broadcast-and-multicast-on-amazon-aws-ec2/2#.VzGI4pMrJ0s" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://www.buckhill.co.uk/blog/how-to-enable-broadcast-and-multicast-on-amazon-aws-ec2/2#.VzGI4pMrJ0s</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">)</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Install subversion:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo apt-get install subversion</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Download and install N2N:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo svn co </span><a href="https://svn.ntop.org/svn/ntop/trunk/n2n" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://svn.ntop.org/svn/ntop/trunk/n2n</span></a></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ cd n2n/n2n_v2</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Disable encryption:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo vi Makefile</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Search for N2N_OPTION_AES and update it to N2N_OPTION_AES=no</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Disable Compression in n2n.h:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Search for “#define N2N_COMPRESSION_ENABLED 1” and change it to “#define N2N_COMPRESSION_ENABLED 0”</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo make</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo make install</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Create an autostart script for supernode:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo vi /etc/init.d/supernode-start</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">#!/bin/sh</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/usr/sbin/supernode -l 1200</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo chmod +x /etc/init.d/supernode-start</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ cd /etc/rc0.d</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo update-rc.d supernode-start defaults</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ sudo /etc/init.d/supernode-start</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ ps -ef|grep supernode</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12px; vertical-align: baseline; white-space: pre-wrap;">root 7972 1 0 07:22 ? 00:00:00 /usr/sbin/supernode -l 1200</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12px; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Most of the above can be achieved using GUI. Adding screenshots for reference:</span></div>
<br /></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-left: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxYhUbOIptn2Zf2B97UxwkhEcanAsP8iqhqX47452BwbGu2WmAW9NNnCghh2R2g94vg2bJEmugv1d5UIUvTFYql3SZJ5vSwDIGEJ91bafiR37jzzR8LMLfy-YJ0VzmkmeOOabHR2WLst-k/s1600/2-1.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="419" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxYhUbOIptn2Zf2B97UxwkhEcanAsP8iqhqX47452BwbGu2WmAW9NNnCghh2R2g94vg2bJEmugv1d5UIUvTFYql3SZJ5vSwDIGEJ91bafiR37jzzR8LMLfy-YJ0VzmkmeOOabHR2WLst-k/s640/2-1.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: "calibri"; font-size: 15px; text-align: left; white-space: pre-wrap;">Creating EC2 install, click on EC2 from the AWS dashboard.
</span></td></tr>
</tbody></table>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-left: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZmJW8R6433TKcli7CmK9iCv33cV8-MJIv7b9NRwlzJwhAIPZgm3TAcKt0M9f_KRzUBo5Dtkk7wAjQxrp_WBKOs-gHjCeA9IxiX4YThB40IrJJo-ucc9Dz-XDaAy0LBB1tkMsq-TVzfSkK/s1600/2-2.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="422" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZmJW8R6433TKcli7CmK9iCv33cV8-MJIv7b9NRwlzJwhAIPZgm3TAcKt0M9f_KRzUBo5Dtkk7wAjQxrp_WBKOs-gHjCeA9IxiX4YThB40IrJJo-ucc9Dz-XDaAy0LBB1tkMsq-TVzfSkK/s640/2-2.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: "\22 \\22 calibri\\22 \22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Click on “Launch Instance”.</span></td></tr>
</tbody></table>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-c2adbf41-26db-0ce0-57a7-3052818104c3"></span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="font-family: "\22 calibri\22 "; font-size: 15px; white-space: pre-wrap;"><br /></span>
<span style="font-family: "\22 calibri\22 "; font-size: 15px; white-space: pre-wrap;"><br /></span></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-left: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJmDSb17X8I0jAzLfnrZTToL-df7KpRl6aw8BCfyeROJZ1jy07Ezbt9T6Yq1M3dd0F8GARWUmTFMsqVATA55BVLSTCh5yP1LM06SOeL_5OAl06xVUoz7-8XzRCe7ktgFLGJWRMIEeMeSIV/s1600/2-3.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="224" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJmDSb17X8I0jAzLfnrZTToL-df7KpRl6aw8BCfyeROJZ1jy07Ezbt9T6Yq1M3dd0F8GARWUmTFMsqVATA55BVLSTCh5yP1LM06SOeL_5OAl06xVUoz7-8XzRCe7ktgFLGJWRMIEeMeSIV/s640/2-3.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: "\22 \\22 calibri\\22 \22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Select the ubuntu image or the list.</span></td></tr>
</tbody></table>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-c2adbf41-26db-5da6-931d-36f02810d095"></span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br /></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-left: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmIdkaM-2MRwEh1qUMe4ddZb2YJGtaocrLh4NJG4PF_xjBAfNb5iCVjojHWURzZOtBFCek8iPWeZZe_FnWoVfGwarM4jGey62vWdzJk17xwTd74nDeHxuNXiDDbrAZtNfSKjmjmzhUnkY4/s1600/2-4.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="304" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmIdkaM-2MRwEh1qUMe4ddZb2YJGtaocrLh4NJG4PF_xjBAfNb5iCVjojHWURzZOtBFCek8iPWeZZe_FnWoVfGwarM4jGey62vWdzJk17xwTd74nDeHxuNXiDDbrAZtNfSKjmjmzhUnkY4/s640/2-4.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: "\22 \\22 calibri\\22 \22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Select t2.micro instance for the instance types.</span></td></tr>
</tbody></table>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-c2adbf41-26db-9ef5-a13d-f46d3bc204d7"></span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="font-family: "\22 calibri\22 "; font-size: 15px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-left: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1aLw5O98qdy6JE0N2D3KH5XugJWk1CSjzQys1cVAFz_qIlUGuySMmNQGyKkSyewNy2PoVf80BKnMs5InpK-NvcKKZ62UL4Ts9K0zR24KWHb1Vo90P6HXu2xJ0NK9_9V28m8UCu3mfImbm/s1600/2-5.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="316" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1aLw5O98qdy6JE0N2D3KH5XugJWk1CSjzQys1cVAFz_qIlUGuySMmNQGyKkSyewNy2PoVf80BKnMs5InpK-NvcKKZ62UL4Ts9K0zR24KWHb1Vo90P6HXu2xJ0NK9_9V28m8UCu3mfImbm/s640/2-5.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: "\22 \\22 calibri\\22 \22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Enter the information abou the network, subnet, IP address etc.</span></td></tr>
</tbody></table>
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-c2adbf41-26db-dbeb-6316-faaacfa8e90c"></span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="font-family: "\22 calibri\22 "; font-size: 15px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-left: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixv6xAsynppUehZAObiEbhh7QIVLSZPgg7equ3SNjD5mKT8XkgwsC0L4zKx0k1f3oyI-UasE3f8xTQ0XkOBep8lEJEyPj_Z2mBuofT1o2_0qVNjfXuehStTC53mZSN4qP0YBqTfoZVNtv4/s1600/2-6.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="316" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixv6xAsynppUehZAObiEbhh7QIVLSZPgg7equ3SNjD5mKT8XkgwsC0L4zKx0k1f3oyI-UasE3f8xTQ0XkOBep8lEJEyPj_Z2mBuofT1o2_0qVNjfXuehStTC53mZSN4qP0YBqTfoZVNtv4/s640/2-6.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: "\22 \\22 calibri\\22 \22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Add the extra 150G storage as magnetic. This would be used as shared storage for Oracle RAC.</span></td></tr>
</tbody></table>
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-c2adbf41-26dc-231d-b8d4-271fbcbc86ce"></span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="font-family: "\22 calibri\22 "; font-size: 15px; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-left: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFZ0DfYID7V8Ecwbwh-5ktuYNFDVbOiIaoe7DMu-mbWYCDLzwKJIIcTduHa0ALcpAay1jpi_i7Nr7Fs0wmsog8b-V9wFvxMCXAwWMT3oBerSNWeurFaF3DdGDiIFaV5ikUebcb1VrPT0nC/s1600/2-7.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="318" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFZ0DfYID7V8Ecwbwh-5ktuYNFDVbOiIaoe7DMu-mbWYCDLzwKJIIcTduHa0ALcpAay1jpi_i7Nr7Fs0wmsog8b-V9wFvxMCXAwWMT3oBerSNWeurFaF3DdGDiIFaV5ikUebcb1VrPT0nC/s640/2-7.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: "\22 \\22 calibri\\22 \22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Click Next, and add a name tag.</span></td></tr>
</tbody></table>
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-c2adbf41-26dc-6805-5348-723060b97985"></span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="font-family: "\22 calibri\22 "; font-size: 15px; white-space: pre-wrap;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-left: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK3siLVUJCY4V7DLtrIcUWOSf1Cut1Vp2DMzZzftQgfzma63mMWtK5AetR3QL6mQLhFpxNlP06eRURIUp4Hc2gduGkxdBF-aOSkqQFwRyA3XEOAfVf07XN9xuqv35TWM6LoWQNJQya13KD/s1600/2.8.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="316" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK3siLVUJCY4V7DLtrIcUWOSf1Cut1Vp2DMzZzftQgfzma63mMWtK5AetR3QL6mQLhFpxNlP06eRURIUp4Hc2gduGkxdBF-aOSkqQFwRyA3XEOAfVf07XN9xuqv35TWM6LoWQNJQya13KD/s640/2.8.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: "\22 \\22 calibri\\22 \22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Select the security group we created earlier and click, Next.</span></td></tr>
</tbody></table>
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-c2adbf41-26dd-e62f-6d90-81d166b4813f"></span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="font-family: "\22 calibri\22 "; font-size: 15px; white-space: pre-wrap;"><br /></span></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-left: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWx9o9HtUvCvEKVqj88diQXTjoTz7JOQ5q6RJvhjqcm3GuZVW91Toh7VyfBRu6Pxsczel9z4Ppuh_DPBMD-exBd4lVeJDEmnjxky0efNYK_y1m3IQZ4YTx9sMgWjmpS1JSANbBfNPMjiPf/s1600/2-9.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="304" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWx9o9HtUvCvEKVqj88diQXTjoTz7JOQ5q6RJvhjqcm3GuZVW91Toh7VyfBRu6Pxsczel9z4Ppuh_DPBMD-exBd4lVeJDEmnjxky0efNYK_y1m3IQZ4YTx9sMgWjmpS1JSANbBfNPMjiPf/s640/2-9.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: "\22 \\22 calibri\\22 \22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Click “launch”.</span></td></tr>
</tbody></table>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-c2adbf41-26de-3055-8d3a-093b53159d13"></span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="font-family: "\22 calibri\22 "; font-size: 15px; white-space: pre-wrap;"><br /></span></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-left: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja5ZKfA1aYqSicoWFEnFMnxW3NQivjuUwowqxJiCcVqBLgA7aiTwZtcfmcPVxOLcJtk3kvgMYjip-B5JRLtIw-M_EycWihxqVod7uTtOMxWlMZWv8zEJo8sPxJVns4SbgzssWvoJFq5WuL/s1600/2-10.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="390" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja5ZKfA1aYqSicoWFEnFMnxW3NQivjuUwowqxJiCcVqBLgA7aiTwZtcfmcPVxOLcJtk3kvgMYjip-B5JRLtIw-M_EycWihxqVod7uTtOMxWlMZWv8zEJo8sPxJVns4SbgzssWvoJFq5WuL/s640/2-10.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: "\22 \\22 calibri\\22 \22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Select the correct Key-Pair and Launch instance.</span></td></tr>
</tbody></table>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-c2adbf41-26de-7e36-914c-76d5ab89125d"></span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br /></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-left: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGVszLOkF3a64-iIeHIqjRMD4SAKPKLQ3Jim23WEOxw-DVMtMrB8DVg3uh6u7qVMfaviIm2qAPNKbkZsC2NTJNhSPcV7Pv75g01xYcihxPSl_nBGZuG__CGyQP8qUshK6Cv9VYimkYZjBp/s1600/2-11.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="256" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGVszLOkF3a64-iIeHIqjRMD4SAKPKLQ3Jim23WEOxw-DVMtMrB8DVg3uh6u7qVMfaviIm2qAPNKbkZsC2NTJNhSPcV7Pv75g01xYcihxPSl_nBGZuG__CGyQP8qUshK6Cv9VYimkYZjBp/s640/2-11.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: "\22 \\22 calibri\\22 \22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Review the status screen and click “View Instances”.</span></td></tr>
</tbody></table>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-c2adbf41-26de-b506-9955-bf9c4c033360"></span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3rl6NvGZT-MTi2E9cKMjtouWmPhc66cPcujrEE6-r9A5jBtNUXXMPKc1z0kpTTSlxC4HeLNjYniWt5cBwNL385QjbVhPRNhsQdx78NwVPocsdUPBg_SmCYxizWRWxrnqmvk05uv-gsRhm/s1600/2-12.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="304" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3rl6NvGZT-MTi2E9cKMjtouWmPhc66cPcujrEE6-r9A5jBtNUXXMPKc1z0kpTTSlxC4HeLNjYniWt5cBwNL385QjbVhPRNhsQdx78NwVPocsdUPBg_SmCYxizWRWxrnqmvk05uv-gsRhm/s640/2-12.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: "\22 \\22 calibri\\22 \22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">After a while we can see an instance running.</span></td></tr>
</tbody></table>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<span style="background-color: white; color: #9900ff; font-family: "\22 \\22 \\\\22 calibri\\\\22 \\22 \22 "; font-size: 24px; text-align: center; text-decoration: underline; white-space: pre-wrap;">This completes the Shared Storage and N2N Setup via command-line and GUI.</span>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<br />
<div style="text-align: left;">
<span style="color: #9900ff; font-family: "\22 calibri\22 "; text-decoration: underline; white-space: pre-wrap;"><a href="http://apunhiran.blogspot.com/2016/06/building-300-oracle-rac-on-aws-part-iii.html" target="_blank">Building a sub $300/month Oracle RAC on AWS - Part III</a><span style="font-size: large;"><br /></span></span></div>
<span style="background-color: white; color: #9900ff; font-family: "calibri"; font-size: 24px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="background-color: white; color: #9900ff; font-family: "calibri"; font-size: 24px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="background-color: white; color: #9900ff; font-family: "calibri"; font-size: 24px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="background-color: white; color: #9900ff; font-family: "calibri"; font-size: 24px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br /></div>
</div>
Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com0San Francisco, CA, USA37.7749295 -122.4194155000000137.373501499999996 -123.06486250000002 38.1763575 -121.77396850000001tag:blogger.com,1999:blog-4092304359380397372.post-45398887599311021512016-06-06T05:55:00.000+05:302016-06-11T02:51:20.963+05:30Building a sub $300/month Oracle RAC on AWS - Part I<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">NOTE:</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> The idea and inspiration of building a cheap Oracle RAC come from Amazon’s documentation (</span><a href="https://aws.amazon.com/articles/7455908317389540" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://aws.amazon.com/articles/7455908317389540</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">)</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">This setup is best for testing or non-prod as we would not build network and storage resiliency.</span></div>
<b id="docs-internal-guid-59081fa1-22f9-23f6-d89b-b011aabfe5dd" style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">This would be a 3 part series where we discuss different components of AWS that are needed to be setup to enable us to install Oracle RAC on AWS. This would involve setting up networking, shared storage and RAC hosts/nodes. Which would eventually lead to installation of the Oracle grid and database software and RAC database creation.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We would use command-line and UI during this setup.</span></div>
<span style="font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">The AWS UI can be quite intimidating, the main landing page looks like:</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi79L0cs0hWvK0Lag8e65RJhcLA-cqWIMM2zRe7HfVjQMNGfV6obqXZ7Xfl86dwoVHqO4xMK2sTpHQU4Bgvfj1M8ThvuikIu-9XzN7hjAWu7Z9DnTB0qlo-vdZzHn-Whb-rvR6c5HvTOoSR/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="304" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi79L0cs0hWvK0Lag8e65RJhcLA-cqWIMM2zRe7HfVjQMNGfV6obqXZ7Xfl86dwoVHqO4xMK2sTpHQU4Bgvfj1M8ThvuikIu-9XzN7hjAWu7Z9DnTB0qlo-vdZzHn-Whb-rvR6c5HvTOoSR/s640/1.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<span id="docs-internal-guid-59081fa1-22fa-86e8-ac41-cb121e606083"><span style="font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">Let’s setup the command-line interface for AWS:</span></span></div>
<ul style="margin-bottom: 0pt; margin-top: 0pt; text-align: left;">
<li style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Installing AWS command-line utility</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">unzip awscli-bundle.zip</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span></div>
</li>
<li style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Test the installation</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">aws --version</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 13.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span></div>
</li>
<li style="background-color: transparent; color: black; font-family: Consolas; font-size: 13.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup credentials</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 13.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Create file $HOME/.aws/credentials and add your aws_access_key_id & aws_secret_access_key</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[default]</span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">aws_access_key_id = <your access key></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">aws_secret_access_key=<your secret access key></span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">You should receive these when your user was created or you can ask you AWS admin to generate and provide these for your ID. More details can be found at: </span><a href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSGettingStartedGuide/AWSCredentials.html" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSGettingStartedGuide/AWSCredentials.html</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 13.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span></a></div>
</li>
<li><span style="font-family: "calibri"; font-size: 14.666666666666666px; white-space: pre-wrap;">Configure default AWS region</span></li>
</ul>
<div class="separator" style="clear: both; text-align: left;">
<span id="docs-internal-guid-59081fa1-22fa-b1b9-957e-a23826fe9d20"><span style="font-family: "courier new"; font-size: 12px; vertical-align: baseline; white-space: pre-wrap;"> $ aws configure</span><span style="font-family: "courier new"; font-size: 12px; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="font-family: "courier new"; font-size: 12px; vertical-align: baseline; white-space: pre-wrap;"> AWS Access Key ID [****************XXXX]:</span><span style="font-family: "courier new"; font-size: 12px; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="font-family: "courier new"; font-size: 12px; vertical-align: baseline; white-space: pre-wrap;"> AWS Secret Access Key [****************xXxX]:</span><span style="font-family: "courier new"; font-size: 12px; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="font-family: "courier new"; font-size: 12px; vertical-align: baseline; white-space: pre-wrap;"> Default region name [us-west-2]:</span><span style="font-family: "courier new"; font-size: 12px; vertical-align: baseline; white-space: pre-wrap;"><br class="kix-line-break" /></span><span style="font-family: "courier new"; font-size: 12px; vertical-align: baseline; white-space: pre-wrap;"> Default output format [None]:</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 26.666666666666664px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Part 1: Network Infrastructure Setup</span></h3>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Let’s begin with building the network infrastructure needed in AWS to setup Oracle RAC.</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup VPC</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">VPC or Virtual Private Cloud create a logical isolated network for you on which you have total control. Think of this as your personal data center. You can add hosts, storage, access permissions over the resources (EC2, S3 etc.) provisioned in the VPC. Detailed documentation can be found here: </span><a href="https://aws.amazon.com/vpc/" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://aws.amazon.com/vpc/</span></a></div>
<div class="separator" style="clear: both; text-align: left;">
<span id="docs-internal-guid-59081fa1-22fb-ff1b-ae52-e8d680695a3e"><br /><span style="font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">Command-line:</span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 create-vpc --cidr-block 10.0.0.0/16</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Vpc": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "InstanceTenancy": "default",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "State": "pending",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VpcId": "vpc-ebad038f",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "CidrBlock": "10.0.0.0/16",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DhcpOptionsId": "dopt-9ea35ffb"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b id="docs-internal-guid-59081fa1-22fc-fd8a-16e2-781e5caed373" style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Details on cidr-block can be found at </span><a href="https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing</span></a></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Let’s add a name to this VPC so that it’s easy to identify.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 create-tags --tags Key=Name,Value=OracleRAC-VPC --resources vpc-ebad038f</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 describe-vpcs --vpc-ids vpc-ebad038f</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Vpcs": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VpcId": "vpc-ebad038f",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "InstanceTenancy": "default",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Tags": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Value": "OracleRAC-VPC",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Key": "Name"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "State": "available",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DhcpOptionsId": "dopt-9ea35ffb",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "CidrBlock": "10.0.0.0/16",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "IsDefault": false</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Enable DNS and DNS Hostname support</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 modify-vpc-attribute --vpc-id vpc-ebad038f --enable-dns-support</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 modify-vpc-attribute --vpc-id vpc-ebad038f --enable-dns-hostnames</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup Internet Gateway</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">To enable us to connect to your newly created VPC from outside/internet we need to setup an internet gateway and enable our VPC to make use of that.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Create internet gateway:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 create-internet-gateway</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "InternetGateway": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Tags": [],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "InternetGatewayId": "igw-0e13286b",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Attachments": []</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Connect the VPC to the internet gateway:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 attach-internet-gateway --internet-gateway-id igw-0e13286b --vpc-id vpc-ebad038f</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Verify:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 describe-internet-gateways --internet-gateway-ids igw-0e13286b</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "InternetGateways": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Tags": [],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "InternetGatewayId": "igw-0e13286b",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Attachments": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "State": "available",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VpcId": "vpc-ebad038f"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We need to enable routing traffic from the VPC to the internet gateway, for that we need to update the routing table of our VPC with the appropriate rule. Details of AWS routing table can be found at: </span><a href="http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html</span></a></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Get routing table details from our VPC:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 describe-route-tables --filters "Name=vpc-id,Values=vpc-ebad038f"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "RouteTables": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Associations": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "RouteTableAssociationId": "rtbassoc-fbd0e99f",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Main": true,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"RouteTableId": "rtb-719b0d15"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "RouteTableId": "rtb-719b0d15",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VpcId": "vpc-ebad038f",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "PropagatingVgws": [],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Tags": [],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Routes": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "GatewayId": "local",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DestinationCidrBlock": "10.0.0.0/16",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "State": "active",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Origin": "CreateRouteTable"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Now add the route/rule to the routing table:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 create-route --route-table-id rtb-719b0d15 --destination-cidr-block 0.0.0.0/0 --gateway-id igw-0e13286b</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Return": true</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup Subnet</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Create a new subnet for Oracle RAC with the VPC:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 create-subnet --vpc-id vpc-ebad038f --cidr-block 10.0.0.0/24</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Subnet": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VpcId": "vpc-ebad038f",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "CidrBlock": "10.0.0.0/24",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "State": "pending",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "AvailabilityZone": "us-west-2c",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "SubnetId": "subnet-dac3dd83",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "AvailableIpAddressCount": 251</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Tag the subnet with an identifiable name:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 create-tags --resources subnet-dac3dd83 --tags Key=Name,Value=OracleRAC-Subnet</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Verify:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 describe-subnets --subnet-ids subnet-dac3dd83</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Subnets": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VpcId": "vpc-ebad038f",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Tags": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Value": "OracleRAC-Subnet",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Key": "Name"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "CidrBlock": "10.0.0.0/24",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "MapPublicIpOnLaunch": false,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "DefaultForAz": false,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "State": "available",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "AvailabilityZone": "us-west-2c",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "SubnetId": "subnet-dac3dd83",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "AvailableIpAddressCount": 251</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup Placement Group</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">A placement group is a logical grouping of instances within a single Availability Zone. Using placement groups enables applications to participate in a low-latency, 10 Gigabits per second (Gbps) network. </span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We create a placement to group all the Oracle RAC instances logically together to take benefit of the faster network and lower latency.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 create-placement-group --group-name OracleRAC-PlacementGroup --strategy cluster</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 describe-placement-groups</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "PlacementGroups": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "GroupName": "OracleRAC-PlacementGroup",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "State": "available",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Strategy": "cluster"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup DNS</span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We need to setup DNS to be able to identify the various components of Oracle RAC by names.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Oracle RAC would include 2 hosts, storage, SCAN name, virtual names, private names. We need to setup DNS using AWS Route 53 service. We need to first create a private hosted zone using Route 53. Details can be found at: </span><a href="http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-private.html" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-private.html</span></a></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Create Private Hosted Zone:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws route53 create-hosted-zone --name oracleraczone.net --vpc VPCRegion=us-west-2,VPCId=vpc-ebad038f --caller-reference OracleRAC-2016-05-04</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ChangeInfo": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Status": "PENDING",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "SubmittedAt": "2016-05-04T21:39:19.615Z",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Id": "/change/C1EMZL7SEBW9FX"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "HostedZone": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecordSetCount": 2,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "CallerReference": "OracleRAC-2016-05-04",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Config": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "PrivateZone": true</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Id": "/hostedzone/Z26IJOYZR20BT8",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "oracleraczone.net."</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Location": "https://route53.amazonaws.com/2013-04-01/hostedzone/Z26IJOYZR20BT8",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VPC": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VPCId": "vpc-ebad038f",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "VPCRegion": "us-west-2"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Create DNS record for Oracle RAC:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">To create the DNS names for hosts, storage, scan etc for Oracle RAC we need to create a JSON documents with these relations which will be used AWS Route 53 to create the required DNS entries:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Create a file as oraclerac.json with the following text:</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{ </span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Changes": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {"Action": "UPSERT",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecordSet": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "oraclerac-scan.oracleraczone.net","Type": "A","TTL": 300,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecords": [{"Value": "10.0.0.31"},{"Value": "10.0.0.32"},{"Value": "10.0.0.33"}]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {"Action": "UPSERT",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecordSet": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "oraclerac-scan1.oracleraczone.net","Type": "A","TTL": 300,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecords": [{"Value": "10.0.0.31"}]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {"Action": "UPSERT",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecordSet": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "oraclerac-scan2.oracleraczone.net","Type": "A","TTL": 300,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecords": [{"Value": "10.0.0.32"}]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {"Action": "UPSERT",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecordSet": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "oraclerac-scan3.oracleraczone.net","Type": "A","TTL": 300,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecords": [{"Value": "10.0.0.33"}]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {"Action": "UPSERT",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecordSet": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "racnode01-i.oracleraczone.net","Type": "A","TTL": 300,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecords": [{"Value": "10.1.0.21"}]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {"Action": "UPSERT",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecordSet": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "racnode01-v.oracleraczone.net","Type": "A","TTL": 300,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecords": [{"Value": "10.0.0.21"}]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {"Action": "UPSERT",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecordSet": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "racnode01.oracleraczone.net","Type": "A","TTL": 300,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecords": [{"Value": "10.0.0.11"}]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {"Action": "UPSERT",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecordSet": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "racnode02-i.oracleraczone.net","Type": "A","TTL": 300,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecords": [{"Value": "10.1.0.22"}]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {"Action": "UPSERT",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecordSet": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "racnode02-v.oracleraczone.net","Type": "A","TTL": 300,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecords": [{"Value": "10.0.0.22"}]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {"Action": "UPSERT",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecordSet": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "racnode02.oracleraczone.net","Type": "A","TTL": 300,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecords": [{"Value": "10.0.0.12"}]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {"Action": "UPSERT",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecordSet": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "storage01.oracleraczone.net","Type": "A","TTL": 300,</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecords": [ {"Value": "10.0.0.51"}]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ]</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Now lets upload these details using AWS Route 53 CLI:</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws route53 change-resource-record-sets --hosted-zone-id Z26IJOYZR20BT8 --change-batch file://oraclerac.json</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ChangeInfo": {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Status": "PENDING",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "SubmittedAt": "2016-05-04T21:51:04.752Z",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Id": "/change/C1QJM0W9873VAZ"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Verify if the DNS records have been updated:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws route53 list-resource-record-sets --hosted-zone-id Z26IJOYZR20BT8</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecordSets": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecords": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Value": "ns-1536.awsdns-00.co.uk."</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Value": "ns-0.awsdns-00.com."</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Value": "ns-1024.awsdns-00.org."</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Value": "ns-512.awsdns-00.net."</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Type": "NS",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "oracleraczone.net.",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "TTL": 172800</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "ResourceRecords": [</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Value": "ns-1536.awsdns-00.co.uk. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ],</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Type": "SOA",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "Name": "oracleraczone.net.",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "TTL": 900</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> },</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">……</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Output is truncated due to its length.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">This finally completes the network setup for Oracle RAC.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Let’s just setup the security for our VPC, which would enable us to ssh to the Oracle RAC hosts be create later and call it a day :).</span></div>
<h4 style="text-align: left;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Setup Security Group </span></h4>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">A security group acts as a virtual firewall that controls the traffic for one or more instances. When you launch an instance, you associate one or more security groups with the instance. More detail at: </span><a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html</span></a></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">To enable communication between the hosts and to enable access control to the instances we create we need create a security group. Later we can create rules which would enable us to ssh to our instances.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 create-security-group --group-name OracleRACSecurityGroup --description "Communication with/between Oracle RAC instances" --vpc-id vpc-ebad038f</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "GroupId": "sg-eca3a58b"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Enable traffic from outside to our VPC:</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 authorize-security-group-ingress --group-id sg-eca3a58b --protocol -1 --port -1 --source-group sg-eca3a58b</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Lastly, lets generate an RSA private key using which we would be able to ssh to the EC2 instances once they are created.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ aws ec2 create-key-pair --key-name OracleRACKeyPair</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "KeyMaterial": "-----BEGIN RSA PRIVATE KEY-----\blabblabblabblabblabblabblabblabblab/wGsoRXVTyK4PFw+vCXZp2nJQ82C1pcV+fooXR4GLhV\nTTCLdx92a7C3N8MFJm/blabblabblabblabblabblabblabblab\blabblabblabblabblabblab+qespZjSj+h71K2\ntIsp9jKXq993NlVLpv4CoGFhh9baCcE+LOAdw/uE8+fwPmLOzC7FizD/xWHAxC2s1KbwcRrKXdF……………………………</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">……………………………</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">……………………………</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">……………………………</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">HCINJ1mY5Pr31YKB5UrogSBewQotRKYcydIhkClqDcCxwEZ\blabblabblabblabblabblabblabblabblab/H6LgNF4AsBYpIEnHyd6PVG53YATwKBgHlhMP3d+jVE/blabblabblabblabblabblab\nTloLWbn9UqzGqQ3vcIlvWXcRs/NUg+rFipol17JhTvNOJm89di574fOSyHihLYpbsySZ+7W+YBtW\blabblabblab+5nUE4VOPKfqSVcAqth6rRBzmxXsinne7kqrXFbmea9\n-----END RSA PRIVATE KEY-----",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "KeyName": "OracleRACKeyPair",</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "KeyFingerprint": "100:c3:2f:r1:e8:07:51:55:9d:z3:49:d2:3f:4e:a9:01:ac:97:52:10"</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Copy from -----BEGIN RSA PRIVATE KEY----- through -----END RSA PRIVATE KEY----- into a file on your local host called OracleRACKey.pem. Change the permissions on the file to “600”.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "courier new"; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">$ chmod 600 OracleRACKey.pem</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b id="docs-internal-guid-59081fa1-2315-fa14-6e36-6c904e1e1ef6" style="font-weight: normal;"><br /></b></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">All of the above can be achieved using GUI. Adding screenshots for reference:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">From the dashboard, under the Networking Section, select “VPC”.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br />
<span style="font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">Note: Anytime to get to the main dashboard, click the orange cube on the top left of the page.</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA4LeVQ1WMtk5R73p6wIM15v5T584kVbd2MTu0YcwhZNWh6kD2OGfnvOpvUtrsBFByUKni2kDm9zCEEciiO0nrGAyLHUulppnR9lVKNaGHHm_teEB7R87Vpozqbbju3Gpe5vKv2ztY6Dan/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="145" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA4LeVQ1WMtk5R73p6wIM15v5T584kVbd2MTu0YcwhZNWh6kD2OGfnvOpvUtrsBFByUKni2kDm9zCEEciiO0nrGAyLHUulppnR9lVKNaGHHm_teEB7R87Vpozqbbju3Gpe5vKv2ztY6Dan/s400/2.png" width="400" /></a></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-uNpTFhX7UynhGl2XdzmrW1QVdb6CAOl1i4v-SHd0xhaYp9MESKbhiCpud6Sb265dcihrbwyrB23zzpXjFeUQAK6tzTcPfJYnnTkNchTpa7Z8_1JCiIaQIf1pi9MH1XRsJBgCPnyjbO1C/s1600/3.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="376" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-uNpTFhX7UynhGl2XdzmrW1QVdb6CAOl1i4v-SHd0xhaYp9MESKbhiCpud6Sb265dcihrbwyrB23zzpXjFeUQAK6tzTcPfJYnnTkNchTpa7Z8_1JCiIaQIf1pi9MH1XRsJBgCPnyjbO1C/s640/3.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="background-color: white; font-family: "\22 calibri\22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Click on “Start VPC Wizard”:</span></td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8d9QA6yzQNo7GndklP1dtBIxbQ180tBFBz9ANQQNVYrSNlNY6d2v6qqAAGQLw_EdS33-yBTOVlo_CDmvFx944tsGAIBOB1kuERvJNE2Bwa9V7xE8jXwVDBAwH39M_BafWj-NKzUAYR52O/s1600/4.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="270" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8d9QA6yzQNo7GndklP1dtBIxbQ180tBFBz9ANQQNVYrSNlNY6d2v6qqAAGQLw_EdS33-yBTOVlo_CDmvFx944tsGAIBOB1kuERvJNE2Bwa9V7xE8jXwVDBAwH39M_BafWj-NKzUAYR52O/s640/4.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="background-color: white; font-family: "\22 calibri\22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Click Select.</span></td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidi91RiEEMOQllGDlbGPXdpwiWeeWs20CFWw8HOpVKEQsF1DOHyIKHy7kEPDhuc3ssGv1b4D-UgXzucx4E8gREAKZyNx1N6INwPdGGln90W-kKBmjngLEhf0PfJcb5Ch9eJAhw-Sd5uZl8/s1600/5x.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="166" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidi91RiEEMOQllGDlbGPXdpwiWeeWs20CFWw8HOpVKEQsF1DOHyIKHy7kEPDhuc3ssGv1b4D-UgXzucx4E8gREAKZyNx1N6INwPdGGln90W-kKBmjngLEhf0PfJcb5Ch9eJAhw-Sd5uZl8/s640/5x.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: left;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">Update VPC Name, Zone, Subnet Name and then click “Create VPC”.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span id="docs-internal-guid-59081fa1-2300-3b7f-c043-19881e79777e" style="font-weight: normal;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: left;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">This creates the VPC, Internet Gateway & Subnet, in just a couple of clicks. Now to create the hosted zone and DNS. </span></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: left;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">From the main AWS dashboard, Click Route 53.</span></div>
</td></tr>
</tbody></table>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSEp_yRd8dElv3Qjtil-n-E-5wijwV0DUCTGYoOrNW-NGaXbua_WX4ttSCKKnACmdHHnJqCl8x9aPhWUNfY2_v0lqdvbZdrc_O1Gt8OMysubmC9cYOA_JX2AKK8VUWOVgFjUzg2MhkMdYz/s1600/6x.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="292" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSEp_yRd8dElv3Qjtil-n-E-5wijwV0DUCTGYoOrNW-NGaXbua_WX4ttSCKKnACmdHHnJqCl8x9aPhWUNfY2_v0lqdvbZdrc_O1Gt8OMysubmC9cYOA_JX2AKK8VUWOVgFjUzg2MhkMdYz/s640/6x.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="background-color: white; font-family: "\22 calibri\22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Click on Hosted Zones.</span></td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinkJVcVAYofitNnlQ7IIF6DXGps4a3RfpzNFL2RwNh4KUvStM-YtUsboQpMdUE85xBdw286dqDkh2eqkCu7nqutS5hKHh7rUP5seQbNGPQS6lQubMMtWsC1lBkm6C0fZUYNRVCAIiUbjRM/s1600/7.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="244" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinkJVcVAYofitNnlQ7IIF6DXGps4a3RfpzNFL2RwNh4KUvStM-YtUsboQpMdUE85xBdw286dqDkh2eqkCu7nqutS5hKHh7rUP5seQbNGPQS6lQubMMtWsC1lBkm6C0fZUYNRVCAIiUbjRM/s640/7.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="background-color: white; font-family: "\22 calibri\22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Click on Create Hosted Zone.</span></td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: left;">
<span id="docs-internal-guid-59081fa1-2300-df4d-2efc-c1662ba70dbb"></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7YxqwD36toZ-zpecZLFfG-SuazQfSedO9aPcFTV7jhsr6qG6OHgOsNrh_e_LrmZbG6agYqqAss_xccdR8Tl62Jy0mGFwv8_TAKxEhu-zk7ir6Od1WSCf2JxXOzjtU-KSijpWYA1WEUAs9/s1600/8.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="452" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7YxqwD36toZ-zpecZLFfG-SuazQfSedO9aPcFTV7jhsr6qG6OHgOsNrh_e_LrmZbG6agYqqAss_xccdR8Tl62Jy0mGFwv8_TAKxEhu-zk7ir6Od1WSCf2JxXOzjtU-KSijpWYA1WEUAs9/s640/8.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="background-color: white; font-family: "\22 calibri\22 "; font-size: 15px; text-align: left; white-space: pre-wrap;">Update the Domain Name, Comment, select Type as Private and then select the VPC from the drop down. Click “Create”.</span></td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7YxqwD36toZ-zpecZLFfG-SuazQfSedO9aPcFTV7jhsr6qG6OHgOsNrh_e_LrmZbG6agYqqAss_xccdR8Tl62Jy0mGFwv8_TAKxEhu-zk7ir6Od1WSCf2JxXOzjtU-KSijpWYA1WEUAs9/s1600/8.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;"><br /></a></div>
<div>
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLmqQZ_Fh7sLw_K-z50Ok9mcR2ykGzLYOIzy6nTh3pdORzBrmqM-p4XOpR6Q3BBBpO1kccNFIPz3skLbGVXaMGOQ15xTn-r8wJkGRfBmuZfJQt0KDKxunj1foUmcZij-_sOH3Esgkmty7E/s1600/9.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="334" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLmqQZ_Fh7sLw_K-z50Ok9mcR2ykGzLYOIzy6nTh3pdORzBrmqM-p4XOpR6Q3BBBpO1kccNFIPz3skLbGVXaMGOQ15xTn-r8wJkGRfBmuZfJQt0KDKxunj1foUmcZij-_sOH3Esgkmty7E/s640/9.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: left;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">Now add DNS entries for instances, private and virtual IP etc. Eg.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: left;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-59081fa1-2302-daca-70e9-b3187e0eeb66"></span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: left;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">Click “Create Record Set”</span></div>
</td></tr>
</tbody></table>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: 14.666666666666666px; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><br /></span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: 14.666666666666666px; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><br /></span></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ3AVcWwViUJ1PAkoWE6gLIJ8GomtE3HCoPz7O5g15mTX9Hp6ei0CyKsicMqThVvklYeDVBIMn5hCQenegLZIOhBgMNBRB3AdTp7nzIEVTcr3eiCZsTfmQHZ9991itzvhegCFqYGWjut9Q/s1600/10x.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="392" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ3AVcWwViUJ1PAkoWE6gLIJ8GomtE3HCoPz7O5g15mTX9Hp6ei0CyKsicMqThVvklYeDVBIMn5hCQenegLZIOhBgMNBRB3AdTp7nzIEVTcr3eiCZsTfmQHZ9991itzvhegCFqYGWjut9Q/s640/10x.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: left;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">Click “Create”.</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: left;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">Similarly add entries for each instance, private, virtual and storage interfaces. Refer to JSON file created earlier.</span></div>
</td></tr>
</tbody></table>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b id="docs-internal-guid-59081fa1-2303-43b9-54bc-3ada6498912b" style="font-weight: normal;"><br /></b></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQjMIEv-UEvYtTwaoe2fRKtuT8HyV6vfhsPEuE-VR30_pKkx8ZvKAuaTwb4wy2yQZ1epyfzP3ZedHrwy4UQUi3vb8HRgBB3pp59g6a2G2XmFR5ihF8OsrmhKZjVFBBITdnywcoG9QUrmxr/s1600/11.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="430" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQjMIEv-UEvYtTwaoe2fRKtuT8HyV6vfhsPEuE-VR30_pKkx8ZvKAuaTwb4wy2yQZ1epyfzP3ZedHrwy4UQUi3vb8HRgBB3pp59g6a2G2XmFR5ihF8OsrmhKZjVFBBITdnywcoG9QUrmxr/s640/11.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: left;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">Creating Security Group</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: left;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;"></span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: left;">
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">From the main dashboard, Click “EC2”.</span><br />
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; vertical-align: baseline; white-space: pre-wrap;">Click on “Security Groups” from the left menu under “Network & Security”.</span></div>
</td></tr>
</tbody></table>
<div>
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div>
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div>
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-59081fa1-2303-97da-dd0e-e37f484bded1"></span></span><br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-59081fa1-2303-97da-dd0e-e37f484bded1">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVUOHTuTa5Vlaim02fS2QtDYulcPiE9YFkCaRMB55qeoYFiYHjYYWvyE1eFuX0-8gO_STb9CJBbDUTohde9vGqYmO8knuMdcfnTCkZWUJ0wH-0S2GVKrK2tgu0sQnaCOuYGttzMUuk76mp/s1600/12a.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="166" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVUOHTuTa5Vlaim02fS2QtDYulcPiE9YFkCaRMB55qeoYFiYHjYYWvyE1eFuX0-8gO_STb9CJBbDUTohde9vGqYmO8knuMdcfnTCkZWUJ0wH-0S2GVKrK2tgu0sQnaCOuYGttzMUuk76mp/s640/12a.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-size: 15px; text-align: left;">Click “Create Security Group”.</span></td></tr>
</tbody></table>
</span></span><br />
<div>
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-59081fa1-2303-97da-dd0e-e37f484bded1"><span style="font-size: 14.666666666666666px; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><br /></span></span></span></div>
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-59081fa1-2303-97da-dd0e-e37f484bded1">
</span></span>
<br />
<div>
<span style="background-color: white; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-59081fa1-2303-97da-dd0e-e37f484bded1"><span style="font-size: 14.666666666666666px; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><br /></span></span></span></div>
<span style="background-color: white; color: black; font-family: "calibri"; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-59081fa1-2303-97da-dd0e-e37f484bded1"><span style="font-size: 14.666666666666666px;">
</span></span></span>
<br />
<div style="font-size: 14.666666666666666px; font-weight: 400;">
<span style="background-color: white; color: black; font-family: "calibri"; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-59081fa1-2303-97da-dd0e-e37f484bded1"><br /></span></span></div>
<span style="background-color: white; color: black; font-family: "calibri"; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-59081fa1-2303-97da-dd0e-e37f484bded1">
<span style="font-size: 14.666666666666666px;">
</span><table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; font-size: 14.666666666666666px; font-weight: 400; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiufrnbxHeRaZNqLziB4oBOxqD2MqkAAAlk7MYhJBHUsFNdgTqOEqZeAHyHiFBbRmp_cDmbtRnoupsGgNHOhJPrwIAvMdA0-uOMOaGQhMcGn3lDfQcDw_iDlEUzTCwJfKGMBUTSds4AdYfA/s1600/12.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="352" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiufrnbxHeRaZNqLziB4oBOxqD2MqkAAAlk7MYhJBHUsFNdgTqOEqZeAHyHiFBbRmp_cDmbtRnoupsGgNHOhJPrwIAvMdA0-uOMOaGQhMcGn3lDfQcDw_iDlEUzTCwJfKGMBUTSds4AdYfA/s640/12.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-size: 15px; text-align: left;">Update Group Name, Description, Select the correct VPC. Add rule to ssh. Click “Create”.</span></td></tr>
</tbody></table>
<span style="font-size: 14.666666666666666px;">
</span></span></span><br />
<div class="separator" style="clear: both; font-size: 14.666666666666666px; font-weight: 400; text-align: center;">
</div>
<span style="background-color: white; color: black; font-family: "calibri"; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-59081fa1-2303-97da-dd0e-e37f484bded1">
<span style="font-size: 14.666666666666666px;">
</span><div>
<div style="font-size: 14.666666666666666px; font-weight: 400;">
<span style="font-size: 14.666666666666666px; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><span style="font-size: 14.6667px; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; line-height: normal; orphans: 2; white-space: normal; widows: 2;"></span></span></div>
<div class="c3 c11" style="line-height: normal; text-align: center;">
<div style="font-size: 11pt; font-weight: 400;">
<span style="font-size: 14.666666666666666px; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><span style="font-size: 14.6667px; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; line-height: normal; orphans: 2; white-space: normal; widows: 2;"><span class="c4 c15" style="color: #9900ff; font-size: 18pt; text-decoration: underline;">This completes the Network Setup via command-line and GUI.</span></span></span></div>
<div style="font-size: 11pt; font-weight: 400; text-align: left;">
<span style="font-size: 14.666666666666666px; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><span style="font-size: 14.6667px; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; line-height: normal; orphans: 2; white-space: normal; widows: 2;"><span class="c4 c15" style="color: #9900ff; font-size: 18pt; text-decoration: underline;"><br /></span></span></span></div>
<div style="text-align: left;">
<span style="vertical-align: baseline;"><span style="line-height: normal; white-space: normal;"><span class="c4 c15" style="color: #9900ff; font-size: 18pt; text-decoration: underline;"><a href="http://apunhiran.blogspot.com/2016/06/building-sub-300month-oracle-rac-on-aws_7.html" target="_blank">Building a sub $300/month Oracle RAC on AWS - Part II</a></span></span></span></div>
<div style="font-weight: 400; text-align: left;">
<span style="vertical-align: baseline;"><span style="line-height: normal; white-space: normal;"><a href="http://apunhiran.blogspot.com/2016/06/building-300-oracle-rac-on-aws-part-iii.html" target="_blank">Building a sub $300/month Oracle RAC on AWS - Part III</a></span></span></div>
</div>
<span style="font-size: 14.666666666666666px; font-weight: 400; vertical-align: baseline;"><span style="font-size: 14.6667px; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; line-height: normal; orphans: 2; white-space: normal; widows: 2;">
</span></span>
<br />
<div style="font-size: 14.666666666666666px; font-weight: 400;">
</div>
</div>
<span style="font-size: 14.666666666666666px;">
</span></span></span></div>
</div>
Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com0San Francisco, CA, USA37.7749295 -122.4194155000000137.373501499999996 -123.06486250000002 38.1763575 -121.77396850000001tag:blogger.com,1999:blog-4092304359380397372.post-82530643325584162642014-02-19T07:35:00.000+05:302016-06-03T05:49:05.496+05:30Steps to install Mysql Master-Slave Replication using Tungsten<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
NOTE: <i>Master note on Tungsten installation and setup: http://datacharmer.blogspot.com/2013/04/installing-and-administering-tungsten.html</i><br />
<br />
<b><i>Below are the steps I have used to setup Mysql replication using Tungsten</i></b><br />
<br />
<i>Please review the prerequisites for this installtion from https://code.google.com/p/tungsten-replicator/wiki/InstallationPreRequisites</i><br />
<br />
1.) Install mysql on the master and slave hosts.<br />
You can download mysql community edition from http://dev.mysql.com/downloads/mysql/<br />
<br />
2.) Download tungsten from https://code.google.com/p/tungsten-replicator/downloads/list<br />
I am using Tungsten Replicator 2.1.0 Binary Build.<br />
<br />
3.) Login to mysql on master and slave as root user and create tungsten user and database:<br />
grant all on *.* to 'tungsten'@'%' identified by 'secret' with grant option;<br />
create database tungsten;<br />
<br />
4.) Disable binlog_checksum<br />
set global binlog_checksum=NONE;<br />
This is required else you would receive following error while setting up tungsten:<br />
<br />
ERROR >> host1 >> This instance is running with BinLog checksum enabled which is not yet supported (MySQLCheckSumCheck)<br />
<br />
5.) Unzip and untar the Tungsten Replicator 2.1.0 downloaded in step 2. I use mysql OS user for all the setup.<br />
tar -xzf tungsten-replicator-2.1.0-343.tar.gz<br />
cd tungsten-replicator-2.1.0-343<br />
<br />
6.) Tungsten configurations:<br />
Setup environment:<br />
export PATH=$PATH:$PWD/cookbook (eg. /home/mysql/tungsten-replicator-2.1.0-343/cookbook)<br />
Update config files:<br />
vi cookbook/COMMON_NODES.sh and update the hostnames<br />
<br />
#!/bin/bash<br />
# (C) Copyright 2012,2013 Continuent, Inc - Released under the New BSD License<br />
# Version 1.0.5 - 2013-04-03<br />
<br />
export NODE1=master01<br />
export NODE2=slave01<br />
<br />
Note: Incase you want to have multiple slaves add NODE3, NODE4....<br />
<br />
vi cookbook/USER_VALUES.sh and update the TUNGSTEN_HOME locations, etc. This file will be used for installing tungsten components.<br />
<br />
<pre class="brush:text;">#!/bin/bash
# (C) Copyright 2012,2013 Continuent, Inc - Released under the New BSD License
# Version 1.0.5 - 2013-04-03
# User defined values for the cluster to be installed.
# Where to install Tungsten Replicator
export TUNGSTEN_BASE=/home/mysql_data/installs/cookbook
# Directory containing the database binary logs
export BINLOG_DIRECTORY=/home/mysql_data
# Path to the script that can start, stop, and restart a MySQL server
export MYSQL_BOOT_SCRIPT=/etc/init.d/mysql
# Path to the options file
export MY_CNF=/usr/my.cnf
# Database credentials
export DATABASE_USER=tungsten
export DATABASE_PASSWORD=secret
export DATABASE_PORT=3306
# Name of the service to install
export TUNGSTEN_SERVICE=cookbook
# Replicator ports
export RMI_PORT=10000
export THL_PORT=2112
# If set, replicator starts after installation
[ -z "$START_OPTION" ] && export START_OPTION=start
##############################################################################
# Options used by the "direct slave " installer only
# Modify only if you are using 'install_master_slave_direct.sh'
##############################################################################
export DIRECT_MASTER_BINLOG_DIRECTORY=$BINLOG_DIRECTORY
export DIRECT_SLAVE_BINLOG_DIRECTORY=$BINLOG_DIRECTORY
export DIRECT_MASTER_MY_CNF=$MY_CNF
export DIRECT_SLAVE_MY_CNF=$MY_CNF
##############################################################################
##############################################################################
# Variables used when removing the cluster
# Each variable defines an action during the cleanup
##############################################################################
[ -z "$STOP_REPLICATORS" ] && export STOP_REPLICATORS=1
[ -z "$REMOVE_TUNGSTEN_BASE" ] && export REMOVE_TUNGSTEN_BASE=1
[ -z "$REMOVE_SERVICE_SCHEMA" ] && export REMOVE_SERVICE_SCHEMA=1
[ -z "$REMOVE_TEST_SCHEMAS" ] && export REMOVE_TEST_SCHEMAS=1
[ -z "$REMOVE_DATABASE_CONTENTS" ] && export REMOVE_DATABASE_CONTENTS=0
[ -z "$CLEAN_NODE_DATABASE_SERVER" ] && export CLEAN_NODE_DATABASE_SERVER=1
##############################################################################
</pre>
<br />
<br />
Validation before actual installation:<br />
export VERBOSE=1<br />
cd /home/mysql/tungsten-replicator-2.1.0-343 and the run the following command.<br />
<pre></pre>
<pre>[mysql@master01 tungsten-replicator-2.1.0-343]$ cookbook/validate_cluster</pre>
<br />
I had strange errors when I tried to run this command after going to /home/mysql/tungsten-replicator-2.1.0-343/cookbook. So make sure you are in tungsten-replicator-2.1.0-343 directory before trying the below command.<br />
This command with read the values you updated in the files above and make sure there are no error. Incase of any errors it will notify you. I received the following errors:<br />
<pre>#####################################################################
# Errors for master01
#####################################################################
ERROR >> master01 >> This instance is running with BinLog checksum enabled which is not yet supported (MySQLCheckSumCheck)
#####################################################################
# Errors for slave01
#####################################################################
ERROR >> slave01 >> The slave datasource tungsten@slave01.corp.yahoo.com:3306 (WITH PASSWORD) has a running slave SQL thread (MySQLNoMySQLReplicationCheck)
ERROR >> slave01 >> This instance is running with BinLog checksum enabled which is not yet supported (MySQLCheckSumCheck)
</pre>
<br />
After fixing these error the command was successful:<br />
<br />
cookbook/validate_cluster<br />
<pre class="brush:text;">[mysql@master01 tungsten-replicator-2.1.0-343]$ cookbook/validate_cluster
# Performing validation check ...
## 1 (host: master01)
./tools/tungsten-installer \
--master-slave \
--master-host=master01 \
--datasource-user=tungsten \
--datasource-password=secret \
--datasource-port=3306 \
--service-name=cookbook \
--home-directory=/home/mysql_data/installs/cookbook \
--cluster-hosts=master01,slave01 \
--datasource-mysql-conf=/usr/my.cnf \
--datasource-log-directory=/home/mysql_data -a \
--datasource-boot-script=/etc/init.d/mysql \
--rmi-port=10000 \
--thl-port=2112 \
--validate-only -a \
--info \
--start
INFO >> Start: Check that the master-host is part of the config
INFO >> Finish: Check that the master-host is part of the config
#####################################################################
# Tungsten Community Configuration Procedure
#####################################################################
NOTE: To terminate configuration press ^C followed by ENTER
#####################################################################
# Preliminary checks for master01:/home/mysql_data/installs/cookbook
#####################################################################
#####################################################################
# Preliminary checks for slave01:/home/mysql_data/installs/cookbook
#####################################################################
INFO >> slave01 >> Start: OpenSSL Library Check
INFO >> slave01 >> Finish: OpenSSL Library Check
INFO >> slave01 >> Start: SSH login
INFO >> slave01 >> Finish: SSH login
INFO >> slave01 >> Start: Writeable temp directory
INFO >> slave01 >> Finish: Writeable temp directory
INFO >> slave01 >> Start: Ruby version
INFO >> slave01 >> Finish: Ruby version
#####################################################################
# Local checks for /home/mysql_data/installs/cookbook
#####################################################################
INFO >> master01 >> Start: Writeable home directory
INFO >> master01 >> Finish: Writeable home directory
INFO >> master01 >> Start: Operating system
INFO >> master01 >> Finish: Operating system
INFO >> master01 >> Start: Java version
INFO >> master01 >> Finish: Java version
INFO >> master01 >> Start: Hostname
INFO >> master01 >> Finish: Hostname
INFO >> master01 >> Start: Package download check
INFO >> master01 >> Finish: Package download check
INFO >> master01 >> Start: Replicator is running check
INFO >> master01 >> The replicator in /home/mysql_data/installs/cookbook is stopped.
INFO >> master01 >> Finish: Replicator is running check
INFO >> master01 >> Start: Replicator RMI port is available check
INFO >> master01 >> The replicator RMI port is available
INFO >> master01 >> Finish: Replicator RMI port is available check
INFO >> master01 >> Start: Transferred log storage check
INFO >> master01 >> Finish: Transferred log storage check
INFO >> master01 >> Start: No hidden services check
INFO >> master01 >> Finish: No hidden services check
INFO >> master01 >> Start: Replication service checks
INFO >> master01 >> Start: THL storage check
INFO >> master01 >> Finish: THL storage check
INFO >> master01 >> Start: Service transferred log storage check
INFO >> master01 >> Finish: Service transferred log storage check
INFO >> master01 >> Start: Service name check
INFO >> master01 >> Finish: Service name check
INFO >> master01 >> Start: Different master/slave datasource check
INFO >> master01 >> Finish: Different master/slave datasource check
INFO >> master01 >> Start: Parallel replication consistency check
INFO >> master01 >> Finish: Parallel replication consistency check
INFO >> master01 >> Start: MySQL client check
INFO >> master01 >> MySQL client version: /usr/bin/mysql Ver 14.14 Distrib 5.6.12, for Linux (x86_64) using EditLine wrapper
INFO >> master01 >> Finish: MySQL client check
INFO >> master01 >> Start: Replication credentials login check
INFO >> master01 >> MySQL server and login is OK for tungsten@master01:3306 (WITH PASSWORD)
INFO >> master01 >> Finish: Replication credentials login check
INFO >> master01 >> Start: Replication user permissions check
INFO >> master01 >> Checking user permissions: GRANT ALL PRIVILEGES ON *.* TO 'tungsten'@'%' IDENTIFIED BY PASSWORD '*14E65567ABDB5135D0CFD9A70B3032C179A49EE7' WITH GRANT OPTION
INFO >> master01 >> All privileges configured correctly
INFO >> master01 >> Finish: Replication user permissions check
INFO >> master01 >> Start: Binary logs enabled check
INFO >> master01 >> Finish: Binary logs enabled check
INFO >> master01 >> Start: MySQL config file is available
INFO >> master01 >> Finish: MySQL config file is available
INFO >> master01 >> Start: MySQL Server ID
INFO >> master01 >> Finish: MySQL Server ID
INFO >> master01 >> Start: MySQL Server Port
INFO >> master01 >> Finish: MySQL Server Port
INFO >> master01 >> Start: MySQL settings check
INFO >> master01 >> Checking innodb_flush_log_at_trx_commit
INFO >> master01 >> Checking max_allowed_packet
WARN >> master01 >> The value of max_allowed_packet is too small for tungsten@master01:3306 (WITH PASSWORD)
INFO >> master01 >> Finish: MySQL settings check
INFO >> master01 >> Start: No MySQL replication check
INFO >> master01 >> Checking that MySQL replication is not running on the slave datasource
INFO >> master01 >> Finish: No MySQL replication check
INFO >> master01 >> Start: Mysqldump method availability check
INFO >> master01 >> mysqldump found at /usr/bin/mysqldump
INFO >> master01 >> Finish: Mysqldump method availability check
INFO >> master01 >> Start: MySQL 5.6 binlog Checksum Check
INFO >> master01 >> Checking that MySQL Binlog Checksum is not enabled
INFO >> master01 >> Finish: MySQL 5.6 binlog Checksum Check
INFO >> master01 >> Finish: Replication service checks
#####################################################################
# Remote checks for slave01:/home/mysql_data/installs/cookbook
#####################################################################
INFO >> slave01 >> Start: Writeable home directory
INFO >> slave01 >> Finish: Writeable home directory
INFO >> slave01 >> Start: Operating system
INFO >> slave01 >> Finish: Operating system
INFO >> slave01 >> Start: Java version
INFO >> slave01 >> Finish: Java version
INFO >> slave01 >> Start: Hostname
INFO >> slave01 >> Finish: Hostname
INFO >> slave01 >> Start: Package download check
INFO >> slave01 >> Finish: Package download check
INFO >> slave01 >> Start: Replicator is running check
INFO >> slave01 >> The replicator in /home/mysql_data/installs/cookbook is stopped.
INFO >> slave01 >> Finish: Replicator is running check
INFO >> slave01 >> Start: Replicator RMI port is available check
INFO >> slave01 >> The replicator RMI port is available
INFO >> slave01 >> Finish: Replicator RMI port is available check
INFO >> slave01 >> Start: Transferred log storage check
INFO >> slave01 >> Finish: Transferred log storage check
INFO >> slave01 >> Start: No hidden services check
INFO >> slave01 >> Finish: No hidden services check
INFO >> slave01 >> Start: Replication service checks
INFO >> slave01 >> Start: THL storage check
INFO >> slave01 >> Finish: THL storage check
INFO >> slave01 >> Start: Service transferred log storage check
INFO >> slave01 >> Finish: Service transferred log storage check
INFO >> slave01 >> Start: Service name check
INFO >> slave01 >> Finish: Service name check
INFO >> slave01 >> Start: Different master/slave datasource check
INFO >> slave01 >> Finish: Different master/slave datasource check
INFO >> slave01 >> Start: Parallel replication consistency check
INFO >> slave01 >> Finish: Parallel replication consistency check
INFO >> slave01 >> Start: MySQL client check
INFO >> slave01 >> MySQL client version: /usr/bin/mysql Ver 14.14 Distrib 5.6.12, for Linux (x86_64) using EditLine wrapper
INFO >> slave01 >> Finish: MySQL client check
INFO >> slave01 >> Start: Replication credentials login check
INFO >> slave01 >> MySQL server and login is OK for tungsten@slave01:3306 (WITH PASSWORD)
INFO >> slave01 >> Finish: Replication credentials login check
INFO >> slave01 >> Start: Replication user permissions check
INFO >> slave01 >> Checking user permissions: GRANT ALL PRIVILEGES ON *.* TO 'tungsten'@'%' IDENTIFIED BY PASSWORD '*14E65567ABDB5135D0CFD9A70B3032C179A49EE7' WITH GRANT OPTION
INFO >> slave01 >> All privileges configured correctly
INFO >> slave01 >> Finish: Replication user permissions check
INFO >> slave01 >> Start: Binary logs enabled check
INFO >> slave01 >> Finish: Binary logs enabled check
INFO >> slave01 >> Start: MySQL config file is available
INFO >> slave01 >> Finish: MySQL config file is available
INFO >> slave01 >> Start: MySQL Server ID
INFO >> slave01 >> Finish: MySQL Server ID
INFO >> slave01 >> Start: MySQL Server Port
INFO >> slave01 >> Finish: MySQL Server Port
INFO >> slave01 >> Start: MySQL settings check
INFO >> slave01 >> Checking innodb_flush_log_at_trx_commit
INFO >> slave01 >> Checking max_allowed_packet
WARN >> slave01 >> The value of max_allowed_packet is too small for tungsten@slave01:3306 (WITH PASSWORD)
INFO >> slave01 >> Finish: MySQL settings check
INFO >> slave01 >> Start: No MySQL replication check
INFO >> slave01 >> Checking that MySQL replication is not running on the slave datasource
INFO >> slave01 >> Finish: No MySQL replication check
INFO >> slave01 >> Start: Mysqldump method availability check
INFO >> slave01 >> mysqldump found at /usr/bin/mysqldump
INFO >> slave01 >> Finish: Mysqldump method availability check
INFO >> slave01 >> Start: MySQL 5.6 binlog Checksum Check
INFO >> slave01 >> Checking that MySQL Binlog Checksum is not enabled
INFO >> slave01 >> Finish: MySQL 5.6 binlog Checksum Check
INFO >> slave01 >> Finish: Replication service checks
INFO >> Validation finished
NOTE >> Deployment finished
</pre>
<br />
<br />
Installation of Master Slave topology:<br />
Execute the below command. (Execute it from tungsten-replicator-2.1.0-343 directory)<br />
cookbook/install_master_slave<br />
<pre>[mysql@master01 tungsten-replicator-2.1.0-343]$ cookbook/install_master_slave
## 1 (host: master01)
./tools/tungsten-installer \
--master-slave \
--master-host=master01 \
--datasource-user=tungsten \
--datasource-password=secret \
--datasource-port=3306 \
--service-name=cookbook \
--home-directory=/home/mysql_data/installs/cookbook \
--cluster-hosts=master01,slave01 \
--datasource-mysql-conf=/usr/my.cnf \
--datasource-log-directory=/home/mysql_data -a \
--datasource-boot-script=/etc/init.d/mysql \
--rmi-port=10000 \
--thl-port=2112 \
--start
WARN >> master01 >> The value of max_allowed_packet is too small for tungsten@master01:3306 (WITH PASSWORD)
WARN >> slave01 >> The value of max_allowed_packet is too small for tungsten@slave01:3306 (WITH PASSWORD)
--------------------------------------------------------------------------------------
Topology: 'MASTER_SLAVE'
--------------------------------------------------------------------------------------
# node master01
cookbook [master] seqno: -1 - latency: -1.000 - ONLINE
# node slave01
cookbook [slave] seqno: -1 - latency: -1.000 - ONLINE
Deployment completed
Topology :'master_slave'
Tungsten path : /home/mysql_data/installs/cookbook
Nodes : (master01 slave01)
Master services : (master01)
Slave services : (slave01)
MySQL version : 5.6.12-enterprise-commercial-advanced-log
MySQL port : 3306
MySQL shortcut : mysql --defaults-file=cookbook/my.cookbook.cnf
Tungsten release : tungsten-replicator-2.1.0-343
Installation log : cookbook/current_install.log
</pre>
<br />
<br />
<b>Testing replication:</b><br />
Tungsten provides built in scripts to test replication:<br />
cookbook/test_cluster<br />
prove cookbook/test_cluster<br />
<pre>[mysql@master01 tungsten-replicator-2.1.0-343]$ prove cookbook/test_cluster
cookbook/test_cluster .. ok
All tests successful.
Files=1, Tests=72, 19 wallclock secs ( 0.04 usr 0.01 sys + 7.40 cusr 0.80 csys = 8.25 CPU)
Result: PASS
</pre>
<br />
<br />
Other tests:<br />
1.) <b>Get information about replication:</b><br />
<pre>[mysql@master01 tungsten-replicator-2.1.0-343]$ prove cookbook/test_cluster
cookbook/test_cluster .. ok
All tests successful.
Files=1, Tests=72, 19 wallclock secs ( 0.04 usr 0.01 sys + 7.40 cusr 0.80 csys = 8.25 CPU)
Result: PASS
[mysql@master01 tungsten-replicator-2.1.0-343]$ cookbook/show_cluster
--------------------------------------------------------------------------------------
Topology: 'MASTER_SLAVE'
--------------------------------------------------------------------------------------
# node master01.corp.yahoo.com
cookbook [master] seqno: 59 - latency: 0.465 - ONLINE
# node slave01.corp.yahoo.com
cookbook [slave] seqno: 59 - latency: 0.968 - ONLINE
</pre>
<br />
<br />
2.) <b>Detailed replication information using cookbook/trepctl command:</b><br />
<pre>[mysql@master01 tungsten-replicator-2.1.0-343]$ cookbook/trepctl services
Processing services command...
NAME VALUE
---- -----
appliedLastSeqno: 59
appliedLatency : 0.465
role : master
serviceName : cookbook
serviceType : local
started : true
state : ONLINE
Finished services command...
</pre>
<br />
Replication Status:<br />
<pre>[mysql@master01 tungsten-replicator-2.1.0-343]$ cookbook/trepctl status
Processing status command...
NAME VALUE
---- -----
appliedLastEventId : mysql-bin.000007:0000000000012894;0
appliedLastSeqno : 59
appliedLatency : 0.465
channels : 1
clusterName : default
currentEventId : mysql-bin.000007:0000000000012894
currentTimeMillis : 1374172674662
dataServerHost : master01.corp.yahoo.com
extensions :
latestEpochNumber : 0
masterConnectUri :
masterListenUri : thl://master01.corp.yahoo.com:2112/
maximumStoredSeqNo : 59
minimumStoredSeqNo : 0
offlineRequests : NONE
pendingError : NONE
pendingErrorCode : NONE
pendingErrorEventId : NONE
pendingErrorSeqno : -1
pendingExceptionMessage: NONE
pipelineSource : jdbc:mysql:thin://master01.corp.yahoo.com:3306/
relativeLatency : 213.662
resourcePrecedence : 99
rmiPort : 10000
role : master
seqnoType : java.lang.Long
serviceName : cookbook
serviceType : local
simpleServiceName : cookbook
siteName : default
sourceId : master01.corp.yahoo.com
state : ONLINE
timeInStateSeconds : 427.683
transitioningTo :
uptimeSeconds : 432.196
version : Tungsten Replicator 2.1.0 build 343
Finished status command...
</pre>
<br />
<b>Stop Replication:</b><br />
<pre>[mysql@master01 tungsten-replicator-2.1.0-343]$ cookbook/trepctl stop
Do you really want to stop replication service cookbook? [yes/NO] yes
Service stopped successfully: name=cookbook
</pre>
<br />
<b>Start Replication:</b><br />
<pre>[mysql@master01 tungsten-replicator-2.1.0-343]$ cookbook/trepctl -service cookbook start
Service started successfully: name=cookbook
</pre>
<br />
Try [mysql@master01 tungsten-replicator-2.1.0-343]$ cookbook/trepctl help for a lot more options.</div>
<script type="text/javascript">
SyntaxHighlighter.highlight();
</script></div>Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com0tag:blogger.com,1999:blog-4092304359380397372.post-21160610622502575992012-08-03T08:28:00.000+05:302013-02-14T01:42:28.733+05:30Oracle Compression: To Compress Or Not To Compress<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="p1">
Reference to Oracle Advanced Compression: <a href="http://www.oracle.com/us/products/database/db-advanced-compression-option-1525064.pdf">http://www.oracle.com/us/products/database/db-advanced-compression-option-1525064.pdf</a></div>
<div class="p2">
<br /></div>
<h3 style="text-align: left;">
<b>I.) Environment Setup and Compression Test:</b></h3>
<div class="p2">
<br /></div>
<h4 style="text-align: left;">
1.) Table COMPRESSION_TEST to be used for testing. The size of the table is:</h4>
<div class="p1">
<code></code></div>
<div class="p1">
00:42:47 SQL> select segment_name,bytes/1024/1024/1024 "Size in GB" from dba_segments where owner='APUN' and segment_name='COMPRESSION_TEST';</div>
<div class="p2">
<br /></div>
<div class="p1">
SEGMENT_NAME<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> Size in GB</div>
<div class="p1">
----------------------------------------------------------------------</div>
<div class="p1">
COMPRESSION_TEST<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> 37.208984375</div>
<div class="p2">
<br /></div>
<div class="p1">
This is a typical data warehousing aggregate table. It has both varchar2 and number columns:</div>
<div class="p1">
select COLUMN_NAME,DATA_TYPE,DATA_LENGTH from user_tab_columns where table_name='COMPRESSION_TEST'</div>
<div class="p2">
<br /></div>
<div class="p1">
COLUMN_NAME<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> DATA_TYPE DATA_LENGTH</div>
<div class="p1">
------------------------------ ---------- ------------</div>
<div class="p1">
ID1<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>22</div>
<div class="p1">
ID2<span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>22</div>
<div class="p1">
ID3 <span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>22</div>
<div class="p1">
ID4<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>22</div>
<div class="p1">
ID5<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>22</div>
<div class="p1">
ID6<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>22</div>
<div class="p1">
ID7<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>22</div>
<div class="p1">
ID8<span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>22</div>
<div class="p1">
ID9<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>22</div>
<div class="p1">
ID10<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>VARCHAR2 <span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>1</div>
<div class="p1">
ID11 <span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> 22</div>
<div class="p1">
ID12<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>22</div>
<div class="p1">
CODE1<span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>VARCHAR2 <span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>1024</div>
<div class="p1">
CODE2<span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>VARCHAR2 <span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>1024</div>
<div class="p1">
CODE3<span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>VARCHAR2 <span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>1024</div>
<div class="p1">
CODE4<span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>VARCHAR2 <span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>1024</div>
<div class="p1">
ID13<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>22</div>
<div class="p1">
ID14 <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>22</div>
<div class="p1">
ID15<span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>22</div>
<div class="p1">
ID16 <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>22</div>
<div class="p1">
ID17 <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>NUMBER<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>22</div>
<div class="p1">
DETAILS<span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>VARCHAR2 <span class="Apple-tab-span"> </span> <span class="Apple-tab-span"> </span>4000</div>
<div class="p2">
<br /></div>
<div class="p1">
</div>
<div class="p2">
<br /></div>
<h4 style="text-align: left;">
<b>2.) I create a table with BASIC compression:</b></h4>
<div class="p1">
<code></code></div>
<div class="p1">
15:05:27 SQL> create table COMPRESSION_TEST_BASIC tablespace USERS compress as select * from COMPRESSION_TEST;</div>
<div class="p2">
<br /></div>
<div class="p1">
Table created.</div>
<div class="p2">
<br /></div>
<div class="p1">
Table Size after Compression:</div>
<div class="p2">
<br /></div>
<div class="p1">
16:27:19 SQL> select segment_name,bytes/1024/1024/1024 from user_segments where segment_name='COMPRESSION_TEST_BASIC';</div>
<div class="p2">
<br /></div>
<div class="p1">
SEGMENT_NAME<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> BYTES/1024/1024/1024</div>
<div class="p1">
-------------------------------------------------- --------------------</div>
<div class="p1">
COMPRESSION_TEST_BASIC<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> 9.724609375</div>
<div class="p2">
<br /></div>
<div class="p1">
</div>
<div class="p2">
<br /></div>
<h4 style="text-align: left;">
3.) Now I am creating a table with "Compress for OLTP":</h4>
<div class="p1">
<code></code></div>
<div class="p1">
16:28:48 SQL> create table COMPRESSION_TEST_OLTP tablespace USERS compress for oltp as select * from COMPRESSION_TEST;</div>
<div class="p2">
<br /></div>
<div class="p2">
<br /></div>
<div class="p1">
Table created.</div>
<div class="p2">
<br /></div>
<div class="p1">
Table Size after compression:</div>
<div class="p1">
16:51:12 SQL> 16:51:12 SQL> select segment_name,bytes/1024/1024/1024 from user_segments where segment_name='COMPRESSION_TEST_OLTP';</div>
<div class="p2">
<br /></div>
<div class="p1">
SEGMENT_NAME<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> BYTES/1024/1024/1024</div>
<div class="p1">
-------------------------------------------------- --------------------</div>
<div class="p1">
COMPRESSION_TEST_OLTP<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span> 10.895507813</div>
<div class="p2">
<br /></div>
<div class="p1">
</div>
<div class="p2">
<br /></div>
<h4 style="text-align: left;">
II.) Deciding to Compress an existing tables or not</h4>
<div class="p2">
<br /></div>
<div class="p1">
We would like to evaluate the amount of compression we would get before we decide to compress a table. We can do a "create table as select" as above, but this would not be feasible for very large table.</div>
<div class="p1">
Oracle provides a handy procedure to estimate the compression we would get on an existing table. The procedure is called DBMS_COMPRESSION.GET_COMPRESSION_RATIO. DBMS_COMPRESSION.GET_COMPRESSION_RATIO cannot be used to find the ratio for BASIC compression.</div>
<div class="p2">
<br /></div>
<div class="p1">
Note: Please create a tablespace which you would use for this testing, as this procedure can use a lot of space for getting the compression ratio. We would not want to use our application or users tablespace as it would be difficult to retrieve this space back. You can create a tablespace named SCRAP and then drop it after the evaluation is done.</div>
<div class="p2">
<br /></div>
<div class="p1">
I have create a small wrapper procedure in SYS schema for this:</div>
<div class="p1">
<code></code></div>
<div class="p1">
CREATE OR REPLACE PROCEDURE CHECK_COMPRESSION</div>
<div class="p1">
(OWNNAME IN VARCHAR2,</div>
<div class="p1">
TABNAME IN VARCHAR2,</div>
<div class="p1">
TBSPNAME IN VARCHAR2,</div>
<div class="p1">
COMTYPE IN NUMBER)</div>
<div class="p1">
IS</div>
<div class="p1">
COMPRESSION_RATIO NUMBER;</div>
<div class="p1">
COMPRESSION_TYPE VARCHAR2(500);</div>
<div class="p1">
BLKCNT_COMPRESSION NUMBER;</div>
<div class="p1">
BLKCNT_NOCOMPRESSION NUMBER;</div>
<div class="p1">
ROWS_COMPRESSED NUMBER;</div>
<div class="p1">
ROWS_NOCOMPRESSED NUMBER;</div>
<div class="p1">
BEGIN</div>
<div class="p1">
DBMS_COMPRESSION.GET_COMPRESSION_RATIO(</div>
<div class="p1">
SCRATCHTBSNAME => TBSPNAME,</div>
<div class="p1">
OWNNAME => OWNNAME,</div>
<div class="p1">
TABNAME => TABNAME,</div>
<div class="p1">
PARTNAME =>NULL, -- PARTITION NAME</div>
<div class="p1">
COMPTYPE => COMTYPE,</div>
<div class="p1">
BLKCNT_CMP =>BLKCNT_COMPRESSION, -- NUMBER OF BLOCKS COMPRESSED</div>
<div class="p1">
BLKCNT_UNCMP =>BLKCNT_NOCOMPRESSION, -- NUMBER OF BLOCKS NON COMPRESSED</div>
<div class="p1">
ROW_CMP =>ROWS_COMPRESSED, -- NUMBER OF ROWS COMPRESSED</div>
<div class="p1">
ROW_UNCMP =>ROWS_NOCOMPRESSED, -- NUMBER OF ROWS NON COMPRESSED</div>
<div class="p1">
CMP_RATIO =>COMPRESSION_RATIO, -- COMPRESSION RATIO</div>
<div class="p1">
COMPTYPE_STR =>COMPRESSION_TYPE); -- COMPRESSION TYPE</div>
<div class="p1">
DBMS_OUTPUT.PUT_LINE('COMPRESSION RATIO :'||COMPRESSION_RATIO);</div>
<div class="p1">
DBMS_OUTPUT.PUT_LINE('COMPRESSION TYPE :'||COMPRESSION_TYPE);</div>
<div class="p1">
DBMS_OUTPUT.PUT_LINE('BLOCKS COMPRESSED :'||BLKCNT_COMPRESSION);</div>
<div class="p1">
DBMS_OUTPUT.PUT_LINE('BLOCKSUNCOMPRESSED:'||BLKCNT_NOCOMPRESSION);</div>
<div class="p1">
DBMS_OUTPUT.PUT_LINE('ROWS COMPRESSED :'||ROWS_COMPRESSED);</div>
<div class="p1">
DBMS_OUTPUT.PUT_LINE('ROWS UNCOMPRESSED:'||ROWS_NOCOMPRESSED);</div>
<div class="p1">
END;</div>
<div class="p1">
/ </div>
<div class="p1">
</div>
<div class="p2">
<br /></div>
<div class="p1">
<b>Usage of the above procedure is:</b></div>
<div class="p1">
<br />
<div class="p1">
exec apun.check_compression('TABLE_OWNER','TABLE_NAME','TABLESPACE_NAME',Type of Compression to Test);</div>
</div>
<div class="p2">
<br /></div>
<div class="p1">
<b>Value/Option of Type of Compression are:</b></div>
<div class="p1">
TYPE: NO COMPRESSION </div>
<div class="p1">
VALUE: 1</div>
<div class="p1">
TYPE: COMPRESSION FOR OLTP</div>
<div class="p1">
VALUE: 2</div>
<div class="p2">
<br /></div>
<div class="p1">
Other details can be found in the documentation at: <a href="http://docs.oracle.com/cd/E14072_01/appdev.112/e10577/d_compress.htm">http://docs.oracle.com/cd/E14072_01/appdev.112/e10577/d_compress.htm</a></div>
<div class="p2">
<br /></div>
<div class="p1">
17:30:08 SQL> exec check_compression('APUN','COMPRESSION_TEST','SCRAP',2);</div>
<div class="p1">
COMPRESSION RATIO :3.4</div>
<div class="p1">
COMPRESSION TYPE :"Compress For OLTP"</div>
<div class="p1">
BLOCKS COMPRESSED :2745</div>
<div class="p1">
BLOCKSUNCOMPRESSED:9344</div>
<div class="p1">
ROWS COMPRESSED :304</div>
<div class="p1">
ROWS UNCOMPRESSED:106</div>
<div class="p2">
<br /></div>
<div class="p1">
PL/SQL procedure successfully completed.</div>
<div class="p2">
<br /></div>
<div class="p1">
As per the output it suggests that the compression ratio is 3.4</div>
<div class="p1">
Our uncompressed table size was: 37.2 GB</div>
<div class="p1">
Our compressed for OLTP size was: 10.8</div>
<div class="p1">
So if we divide 37.2 by 3.4 we get 10.9 GB, which is very close to what we achieved when we actually compressed it. DBMS_COMPRESSION.GET_COMPRESSION_RATIO output is quite reliable :).</div>
<div class="p2">
<br /></div>
<div class="p2">
<br /></div>
<div class="p1">
Compression can be very useful in large databases. It save disk space as well can improve performance, as oracle has to load less block in the SGA.</div>
</div>Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com0tag:blogger.com,1999:blog-4092304359380397372.post-66372884059967261062012-05-31T04:47:00.002+05:302012-09-01T05:48:59.504+05:30Quick Hadoop 2-node Cluster Setup for Oracle DBAs<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b><i><u><span style="color: #660000;">OS Version: Red Hat Enterprise Linux Server release 5.6 </span></u></i></b><br />
<b><i><u><span style="color: #660000;">Hadoop Version: 1.0.1</span></u></i></b><br />
<b><i><u><span style="color: #660000;">Hosts: host1, host2</span></u></i></b><br />
<b><i><u><span style="color: #660000;"><br /></span></u></i></b>
<br />
<h3 style="text-align: left;">
<b><i><u><span style="color: #660000;">Step 1: Install Java on the Hosts</span></u></i></b></h3>
yum install java-1.6.0-openjdk-devel.x86_64<br />
<br />
Check for Java version<br />
java -version<br />
<br />
<h3 style="text-align: left;">
<b><i><u><span style="color: #660000;">Step 2: Create OS Group and User on hosts</span></u></i></b></h3>
Add Group:<br />
/usr/sbin/groupadd hdfs<br />
<br />
Add User:<br />
/usr/sbin/useradd -G hdfs -d /home/hadoop hadoop<br />
<br />
Change user password:<br />
passwd hadoop<br />
<br />
<h3 style="text-align: left;">
<u><i><b><span style="color: #660000;">Step 3: Setup password less ssh between the hadoop users on both the hosts</span></b></i></u></h3>
login to hadoop user on both the hosts:<br />
hadoop@host1:<br />
ssh-keygen -t rsa<br />
cat $HOME/.ssh/id_rsa.pub &gt;&gt; $HOME/.ssh/authorized_keys<br />
Copy file $HOME/.ssh/authorized_keys to host2 /tmp/<br />
hadoop@host2:<br />
ssh-keygen -t rsa<br />
cat $HOME/.ssh/id_rsa.pub &gt;&gt; $HOME/.ssh/authorized_keys<br />
cat /tmp/authorized_keys &gt;&gt; $HOME/.ssh/authorized_keys<br />
Now copy the $HOME/.ssh/authorized_keys to host1 /tmp<br />
chmod 700 $HOME/.ssh<br />
cd $HOME/.ssh<br />
chmod 600 *<br />
hadoop@host1:<br />
cp /tmp/authorized_keys $HOME/.ssh/authorized_keys<br />
chmod 700 $HOME/.ssh<br />
chmod 700 $HOME/.ssh<br />
cd $HOME/.ssh<br />
chmod 600 *<br />
ssh host1<br />
ssh host2<br />
hadoop@host2:<br />
ssh host1<br />
ssh host2<br />
<br />
This is setup password ssh between hadoop user on both the hosts<br />
<br />
<h3 style="text-align: left;">
<b><i><u><span style="color: #660000;">Step 4: Download and install hadoop</span></u></i></b></h3>
Download location: <a href="http://www.apache.org/dyn/closer.cgi/hadoop/common/">http://www.apache.org/dyn/closer.cgi/hadoop/common/</a><br />
Download the release of your choice.<br />
Download hadoop-1.0.1.tar.gz, ungzip and untar<br />
<br />
mv hadoop-1.0.1 hadoop<br />
<br />
Hadoop location: /home/hadoop/hadoop<br />
<br />
<h3 style="text-align: left;">
<i><u><span style="color: #660000;">Step 5: Configure Hadoop</span></u></i></h3>
<br />
<b>5.a: Update JAVA_HOME in /home/hadoop/conf/hadoop-env.sh</b><br />
<br />
export JAVA_HOME=/usr/lib/jvm/jre-1.6.0-openjdk.x86_64<br />
<br />
<b>5.b: Add following entry to /home/hadoop/conf/core-site.xml</b><br />
<br />
<property></property><code></code><br />
<br />
<property><br />
<name>hadoop.tmp.dir</name><br />
<value>/home/hadoop/tmp</value><br />
<description>A base for other temporary directories.</description><br />
</property><br />
<br />
<property><br />
<name>fs.default.name</name><br />
<value>hdfs://localhost:54310</value><br />
<description>The name of the default file system. A URI whose<br />
scheme and authority determine the FileSystem implementation. The<br />
uri's scheme determines the config property (fs.SCHEME.impl) naming<br />
the FileSystem implementation class. The uri's authority is used to<br />
determine the host, port, etc. for a filesystem.</description><br />
</property><br />
</div>
</div>
<br />
<property></property><br />
<br />
<b>5.c: Add following to /home/hadoop/conf/mapred-site.xml</b><br />
<br />
<br />
<property><br />
<name>mapred.job.tracker</name><br />
<value>localhost:54311</value><br />
<description>The host and port that the MapReduce job tracker runs<br />
at. If "local", then jobs are run in-process as a single map<br />
and reduce task.<br />
</description><br />
</property><br />
<div>
<br /></div>
<br />
<br />
<b>5.d: Add following to /home/hadoop/conf/hdfs-site.xml</b><br />
<b><br /></b>
<property></property><br />
<br />
<property><br />
<name>dfs.replication</name><br />
<value>1</value><br />
<description>Default block replication.<br />
The actual number of replications can be specified when the file is created.<br />
The default is used if replication is not specified in create time.<br />
</description><br />
</property><br />
<property></property><br />
<br />
<b>5.e: Update /home/hadoop/conf/masters with the name of the master node</b><br />
<b><br /></b>
[hadoop@host1 conf]$ more masters<br />
host1<br />
<br />
<b>5.f: Update /home/hadoop/conf/slaves with the name of the slave nodes</b><br />
<br />
[hadoop@host1 conf]$ more slaves<br />
host1<br />
host2<br />
<br />
<b>5.g: Format name node</b><br />
<br />
<code></code><br />
<code>[hadoop@host1 ~]$ hadoop namenode -format</code><br />
<code>12/05/09 09:42:03 INFO namenode.NameNode: STARTUP_MSG: </code><br />
<code>/************************************************************</code><br />
<code>STARTUP_MSG: Starting NameNode</code><br />
<code>STARTUP_MSG: host = host1/66.228.160.91</code><br />
<code>STARTUP_MSG: args = [-format]</code><br />
<code>STARTUP_MSG: version = 1.0.1</code><br />
<code>STARTUP_MSG: build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0 -r 1243785; compiled by 'hortonfo' on Tue Feb 14 08:15:38 UTC 2012</code><br />
<code>************************************************************/</code><br />
<code>12/05/09 09:42:03 INFO util.GSet: VM type = 64-bit</code><br />
<code>12/05/09 09:42:03 INFO util.GSet: 2% max memory = 17.77875 MB</code><br />
<code>12/05/09 09:42:03 INFO util.GSet: capacity = 2^21 = 2097152 entries</code><br />
<code>12/05/09 09:42:03 INFO util.GSet: recommended=2097152, actual=2097152</code><br />
<code>12/05/09 09:42:03 INFO namenode.FSNamesystem: fsOwner=hadoop</code><br />
<code>12/05/09 09:42:03 INFO namenode.FSNamesystem: supergroup=supergroup</code><br />
<code>12/05/09 09:42:03 INFO namenode.FSNamesystem: isPermissionEnabled=true</code><br />
<code>12/05/09 09:42:03 INFO namenode.FSNamesystem: dfs.block.invalidate.limit=100</code><br />
<code>12/05/09 09:42:03 INFO namenode.FSNamesystem: isAccessTokenEnabled=false accessKeyUpdateInterval=0 min(s), accessTokenLifetime=0 min(s)</code><br />
<code>12/05/09 09:42:03 INFO namenode.NameNode: Caching file names occuring more than 10 times </code><br />
<code>12/05/09 09:42:03 INFO common.Storage: Image file of size 112 saved in 0 seconds.</code><br />
<code>12/05/09 09:42:03 INFO common.Storage: Storage directory /home/hadoop/tmp/dfs/name has been successfully formatted.</code><br />
<code>12/05/09 09:42:03 INFO namenode.NameNode: SHUTDOWN_MSG: </code><br />
<code>/************************************************************</code><br />
<code>SHUTDOWN_MSG: Shutting down NameNode at host1/66.228.160.91</code><br />
<code>************************************************************/</code><br />
<br />
<br />
<h3 style="text-align: left;">
<i><u><span style="color: #660000;">Step 6: Startup hadoop</span></u></i></h3>
<code></code><br />
<code>[hadoop@host1 bin]$ ./start-all.sh </code><br />
<code>starting namenode, logging to /home/hadoop/hadoop/libexec/../logs/hadoop-hadoop-namenode-host1.out</code><br />
<code>host2: starting datanode, logging to /home/hadoop/hadoop/libexec/../logs/hadoop-hadoop-datanode-host2.out</code><br />
<code>host1: starting datanode, logging to /home/hadoop/hadoop/libexec/../logs/hadoop-hadoop-datanode-host1.out</code><br />
<code>host1: starting secondarynamenode, logging to /home/hadoop/hadoop/libexec/../logs/hadoop-hadoop-secondarynamenode-host1.out</code><br />
<code>host1: Exception in thread "main" java.io.IOException: Cannot lock storage /home/hadoop/temp/dfs/namesecondary. The directory is already locked.</code><br />
<code>host1: <span class="Apple-tab-span" style="white-space: pre;"> </span>at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.lock(Storage.java:602)</code><br />
<code>host1: <span class="Apple-tab-span" style="white-space: pre;"> </span>at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.analyzeStorage(Storage.java:455)</code><br />
<code>host1: <span class="Apple-tab-span" style="white-space: pre;"> </span>at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode$CheckpointStorage.recoverCreate(SecondaryNameNode.java:615)</code><br />
<code>host1: <span class="Apple-tab-span" style="white-space: pre;"> </span>at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:175)</code><br />
<code>host1: <span class="Apple-tab-span" style="white-space: pre;"> </span>at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.<init>(SecondaryNameNode.java:129)</init></code><br />
<code>host1: <span class="Apple-tab-span" style="white-space: pre;"> </span>at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:567)</code><br />
<code>starting jobtracker, logging to /home/hadoop/hadoop/libexec/../logs/hadoop-hadoop-jobtracker-host1.out</code><br />
<code>host2: starting tasktracker, logging to /home/hadoop/hadoop/libexec/../logs/hadoop-hadoop-tasktracker-host2.out</code><br />
<code>host1: starting tasktracker, logging to /home/hadoop/hadoop/libexec/../logs/hadoop-hadoop-tasktracker-host1.out</code><br />
<br />
<br />
<b>Checks:</b><br />
[hadoop@host1 bin]$ jps<br />
20358 JobTracker<br />
20041 DataNode<br />
20528 TaskTracker<br />
19869 NameNode<br />
27905 Jps<br />
26450 oc4j.jar<br />
20229 SecondaryNameNode<br />
<br />
[hadoop@host2 ~]$ jps<br />
12522 Jps<br />
1737 TaskTracker<br />
1572 DataNode<br />
<br />
jps - Java Virtual Machine Process Status Tool, show the java VMs running.<br />
<br />
<h3 style="text-align: left;">
<i><u><span style="color: #660000;">Step 7: Running a basic Map Reduce Test</span></u></i></h3>
<br />
I am using the sample test from: <a href="http://wiki.apache.org/hadoop/WordCount">http://wiki.apache.org/hadoop/WordCount</a><br />
<br />
<b>7.a: Create directories in Hadoop:</b><br />
<b><br /></b>
[hadoop@host1 ~]$ hadoop dfs -mkdir input<br />
[hadoop@host1 ~]$ hadoop dfs -mkdir output<br />
<br />
Hadoop shell reference: <a href="http://hadoop.apache.org/common/docs/r0.17.1/hdfs_shell.html">http://hadoop.apache.org/common/docs/r0.17.1/hdfs_shell.html</a><br />
<br />
<b>7.b: Copy the script from the web to /home/hadoop/WordCount.java and compile</b><br />
<b><br /></b>
create directory wordcount<br />
mkdir -p /home/hadoop/wordcount<br />
<br />
[hadoop@host1 ~]$ javac -classpath /usr/share/hadoop/hadoop-core-1.0.1.jar -d wordcount WordCount.java<br />
[hadoop@host1 ~]$ jar -cvf /home/hadoop/wordcount.jar -C wordcount/ .<br />
[hadoop@host1 ~]$ jar -cvf /home/hadoop/wordcount.jar -C wordcount/ .<br />
added manifest<br />
adding: org/(in = 0) (out= 0)(stored 0%)<br />
adding: org/myorg/(in = 0) (out= 0)(stored 0%)<br />
adding: org/myorg/WordCount$Map.class(in = 1938) (out= 798)(deflated 58%)<br />
adding: org/myorg/WordCount.class(in = 1546) (out= 749)(deflated 51%)<br />
adding: org/myorg/WordCount$Reduce.class(in = 1611) (out= 649)(deflated 59%)<br />
<br />
This will create the jar file to be used in the test.<br />
<br />
<b>7.c: Create input files:</b><br />
<br />
file1:<br />
Hello World Bye World<br />
file2:<br />
Hello Hadoop Goodbye Hadoop<br />
<br />
<b>7.d: Copy the files over to Hadoop:</b><br />
<br />
[hadoop@host1 ~]$ hadoop dfs -copyFromLocal file1 input<br />
[hadoop@host1 ~]$ hadoop dfs -copyFromLocal file2 input<br />
[hadoop@host1 ~]$ hadoop dfs -ls input<br />
Found 2 items<br />
-rw-r--r-- 1 hadoop supergroup 23 2012-05-09 09:44 /user/hadoop/input/file1<br />
-rw-r--r-- 1 hadoop supergroup 28 2012-05-09 09:44 /user/hadoop/input/file2<br />
<br />
<b>7.e: Run the Map Reduce Java program:</b><br />
<br />
<code></code><br />
<code>[hadoop@host1 ~]$ hadoop jar /home/hadoop/wordcount.jar org.myorg.WordCount /user/hadoop/input /user/hadoop/output</code><br />
<code>12/05/30 16:03:44 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.</code><br />
<code>12/05/30 16:03:44 INFO mapred.FileInputFormat: Total input paths to process : 2</code><br />
<code>12/05/30 16:03:44 INFO mapred.JobClient: Running job: job_201205091119_0004</code><br />
<code>12/05/30 16:03:45 INFO mapred.JobClient: map 0% reduce 0%</code><br />
<code>12/05/30 16:03:58 INFO mapred.JobClient: map 100% reduce 0%</code><br />
<code>12/05/30 16:04:10 INFO mapred.JobClient: map 100% reduce 100%</code><br />
<code>12/05/30 16:04:15 INFO mapred.JobClient: Job complete: job_201205091119_0004</code><br />
<code>12/05/30 16:04:15 INFO mapred.JobClient: Counters: 30</code><br />
<code>12/05/30 16:04:15 INFO mapred.JobClient: Job Counters </code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Launched reduce tasks=1</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: SLOTS_MILLIS_MAPS=19996</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Total time spent by all reduces waiting after reserving slots (ms)=0</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Total time spent by all maps waiting after reserving slots (ms)=0</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Launched map tasks=3</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Data-local map tasks=3</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: SLOTS_MILLIS_REDUCES=10031</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: File Input Format Counters </code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Bytes Read=55</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: File Output Format Counters </code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Bytes Written=41</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: FileSystemCounters</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: FILE_BYTES_READ=79</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: HDFS_BYTES_READ=412</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: FILE_BYTES_WRITTEN=86679</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: HDFS_BYTES_WRITTEN=41</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Map-Reduce Framework</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Map output materialized bytes=91</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Map input records=2</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Reduce shuffle bytes=51</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Spilled Records=12</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Map output bytes=82</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Total committed heap usage (bytes)=443023360</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: CPU time spent (ms)=1440</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Map input bytes=51</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: SPLIT_RAW_BYTES=357</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Combine input records=8</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Reduce input records=6</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Reduce input groups=5</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Combine output records=6</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Physical memory (bytes) snapshot=576110592</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Reduce output records=5</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Virtual memory (bytes) snapshot=2767060992</code><br />
<code>12/05/30 16:04:16 INFO mapred.JobClient: Map output records=8</code><br />
<br />
<br />
<b>7.f: Check for the output in hadoop:</b><br />
<br />
[hadoop@host1 ~]$ hadoop dfs -ls output<br />
Found 3 items<br />
-rw-r--r-- 2 hadoop supergroup 0 2012-05-09 11:22 /user/hadoop/output/_SUCCESS<br />
drwxr-xr-x - hadoop supergroup 0 2012-05-09 11:22 /user/hadoop/output/_logs<br />
-rw-r--r-- 2 hadoop supergroup 41 2012-05-09 11:22 /user/hadoop/output/part-00000<br />
<br />
<b>7.g: Check the output:</b><br />
<br />
[hadoop@host1 ~]$ hadoop dfs -cat /user/hadoop/output/part-00000<br />
Bye<span class="Apple-tab-span" style="white-space: pre;"> </span>1<br />
Goodbye<span class="Apple-tab-span" style="white-space: pre;"> </span>1<br />
Hadoop<span class="Apple-tab-span" style="white-space: pre;"> </span>2<br />
Hello<span class="Apple-tab-span" style="white-space: pre;"> </span>2<br />
World<span class="Apple-tab-span" style="white-space: pre;"> </span>2<br />
<br />
This completes the quick setup of a 2 node hadoop cluster.<br />
<br />
While trying to setup and learn I referred to the following links. My thanks and regards for all the help:<br />
<br />
For single node setup: <a href="http://hadoop.apache.org/common/docs/current/single_node_setup.html#Local">http://hadoop.apache.org/common/docs/current/single_node_setup.html#Local</a><br />
For cluster setup: <a href="http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-multi-node-cluster/">http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-multi-node-cluster/</a><br />
<a href="http://hortonworks.com/blog/set-up-apache-hadoop-in-minutes-with-rpms/">http://hortonworks.com/blog/set-up-apache-hadoop-in-minutes-with-rpms/</a><br />
<a href="http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-multi-node-cluster/">http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-multi-node-cluster/</a><br />
<br /></div>
Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com2tag:blogger.com,1999:blog-4092304359380397372.post-15039982078142284292012-05-26T05:34:00.000+05:302012-05-26T05:34:01.043+05:30Setup Data replication from Oracle to MongoDB<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b>Credits: </b><a href="http://tebros.com/2011/09/keep-mongodb-and-oracle-in-sync-using-streams-advanced-queuing/">http://tebros.com/2011/09/keep-mongodb-and-oracle-in-sync-using-streams-advanced-queuing/</a><br />
<br />
<b>Components used:</b><br />
<i>MongoDB: MongoDB shell version: 2.0.5</i><br />
<i>Oracle: 11.2.0.2</i><br />
<i>Oracle Advanced Queuing</i><br />
<i>Perl scripting</i><br />
<i>DBD:Oracle: perl DBD for Oracle</i><br />
<i>JSON perl module.</i><br />
<br />
<b>The model for this setup is:</b><br />
Replicate HR.EMPLOYEES table from Oracle to MongoDB.<br />
Use Oracle AQ to queue insert, update & delete and then use perl script to dequeue them in MongoDB.<br />
<br />
<b>Step 1:</b><br />
Use SCOTT.EMP table available in the SCOTT schema in oracle.<br />
<b><i>The structure is:</i></b><br />
<code></code><br />
<code>SQL> desc emp</code><br />
<code><br /></code><br />
<code> Name<span class="Apple-tab-span" style="white-space: pre;"> </span> Data Type </code><br />
<code> -------------------------</code><br />
<code> EMPNO<span class="Apple-tab-span" style="white-space: pre;"> </span> NUMBER(4) </code><br />
<code> ENAME<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(10) </code><br />
<code> JOB<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(9) </code><br />
<code> MGR<span class="Apple-tab-span" style="white-space: pre;"> </span> NUMBER(4) </code><br />
<code> HIREDATE<span class="Apple-tab-span" style="white-space: pre;"> </span> DATE </code><br />
<code> SAL<span class="Apple-tab-span" style="white-space: pre;"> </span> NUMBER(7,2) </code><br />
<code> COMM<span class="Apple-tab-span" style="white-space: pre;"> </span> NUMBER(7,2) </code><br />
<code> DEPTNO <span class="Apple-tab-span" style="white-space: pre;"> </span> NUMBER(2) </code><br />
<br />
<br />
<b>Step 2: Grant execute on DBMS_AQ, DBMS_AQADM to SCOTT</b><br />
<br />
<code></code><br />
<code>SQL> grant execute on DBMS_AQ to SCOTT;</code><br />
<code><br /></code><br />
<code>Grant succeeded.</code><br />
<code><br /></code><br />
<code>SQL> grant execute on DBMS_AQADM to SCOTT;</code><br />
<code><br /></code><br />
<code>Grant succeeded.</code><br />
<code><br /></code><br />
<br />
<br />
<b>Step 3: Setup Queue Table in Oracle</b><br />
<br />
<code></code><br />
<code>CREATE TYPE EMP_T AS OBJECT (MSG VARCHAR2(4000));</code><br />
<code><br /></code><br />
<code>BEGIN</code><br />
<code>-- THIS PROCEDURE CREATES A QUEUE TABLE FOR MESSAGES OF A PREDEFINED TYPE.</code><br />
<code>DBMS_AQADM.CREATE_QUEUE_TABLE(</code><br />
<code> QUEUE_TABLE => 'EMPQUEUE_QT',</code><br />
<code> QUEUE_PAYLOAD_TYPE => 'EMP_T'</code><br />
<code>);</code><br />
<code><br /></code><br />
<code>-- This procedure creates a queue in the specified queue table.</code><br />
<code>DBMS_AQADM.CREATE_QUEUE(</code><br />
<code> QUEUE_NAME => 'EMPQUEUE_Q',</code><br />
<code> QUEUE_TABLE => 'EMPQUEUE_QT'</code><br />
<code>);</code><br />
<code><br /></code><br />
<code>-- This procedure enables the specified queue for enqueuing or dequeuing.</code><br />
<code>DBMS_AQADM.START_QUEUE(</code><br />
<code> QUEUE_NAME => 'EMPQUEUE_Q'</code><br />
<code>);</code><br />
<code>END;</code><br />
<code>/</code><br />
<code><br /></code><br />
<code>QUEUE TABLE Structure:</code><br />
<code>SQL> desc AQ$EMPQUEUE_QT</code><br />
<code> Name<span class="Apple-tab-span" style="white-space: pre;"> </span> Null? Type</code><br />
<code> ----------------------------------------- -------- ----------------------------</code><br />
<code> QUEUE<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(30)</code><br />
<code> MSG_ID <span class="Apple-tab-span" style="white-space: pre;"> </span> NOT NULL RAW(16)</code><br />
<code> CORR_ID<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(128)</code><br />
<code> MSG_PRIORITY<span class="Apple-tab-span" style="white-space: pre;"> </span> NUMBER</code><br />
<code> MSG_STATE<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(16)</code><br />
<code> DELAY<span class="Apple-tab-span" style="white-space: pre;"> </span> DATE</code><br />
<code> DELAY_TIMESTAMP<span class="Apple-tab-span" style="white-space: pre;"> </span> TIMESTAMP(6)</code><br />
<code> EXPIRATION<span class="Apple-tab-span" style="white-space: pre;"> </span> NUMBER</code><br />
<code> ENQ_TIME<span class="Apple-tab-span" style="white-space: pre;"> </span> DATE</code><br />
<code> ENQ_TIMESTAMP<span class="Apple-tab-span" style="white-space: pre;"> </span> TIMESTAMP(6)</code><br />
<code> ENQ_USER_ID<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(30)</code><br />
<code> ENQ_TXN_ID<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(30)</code><br />
<code> DEQ_TIME<span class="Apple-tab-span" style="white-space: pre;"> </span> DATE</code><br />
<code> DEQ_TIMESTAMP<span class="Apple-tab-span" style="white-space: pre;"> </span> TIMESTAMP(6)</code><br />
<code> DEQ_USER_ID<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(30)</code><br />
<code> DEQ_TXN_ID<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(30)</code><br />
<code> RETRY_COUNT<span class="Apple-tab-span" style="white-space: pre;"> </span> NUMBER</code><br />
<code> EXCEPTION_QUEUE_OWNER<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(30)</code><br />
<code> EXCEPTION_QUEUE<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(30)</code><br />
<code> USER_DATA<span class="Apple-tab-span" style="white-space: pre;"> </span> EMP_T</code><br />
<code> ORIGINAL_QUEUE_NAME<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(30)</code><br />
<code> ORIGINAL_QUEUE_OWNER<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(30)</code><br />
<code> EXPIRATION_REASON<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(18)</code><br />
<code> SENDER_NAME<span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(30)</code><br />
<code> SENDER_ADDRESS <span class="Apple-tab-span" style="white-space: pre;"> </span> VARCHAR2(1024)</code><br />
<code> SENDER_PROTOCOL<span class="Apple-tab-span" style="white-space: pre;"> </span> NUMBER</code><br />
<code> ORIGINAL_MSGID <span class="Apple-tab-span" style="white-space: pre;"> </span> RAW(16)</code><br />
<code><br /></code><br />
<code>SQL> SELECT name, queue_table,enqueue_enabled,dequeue_enabled,user_comment FROM user_queues; </code><br />
<code><br /></code><br />
<code>NAME<span class="Apple-tab-span" style="white-space: pre;"> </span> QUEUE_TABLE<span class="Apple-tab-span" style="white-space: pre;"> </span>ENQUEUE DEQUEUE USER_COMMENT </code><br />
<code>------------------------------ ------------------------------ -----</code><br />
<code>EMPQUEUE_Q<span class="Apple-tab-span" style="white-space: pre;"> </span> EMPQUEUE_QT<span class="Apple-tab-span" style="white-space: pre;"> </span>YES<span class="Apple-tab-span" style="white-space: pre;"> </span>YES </code><br />
<code>AQ$_EMPQUEUE_QT_E<span class="Apple-tab-span" style="white-space: pre;"> </span> EMPQUEUE_QT<span class="Apple-tab-span" style="white-space: pre;"> </span>NO<span class="Apple-tab-span" style="white-space: pre;"> </span>NO <span class="Apple-tab-span" style="white-space: pre;"> </span>exception queue</code><br />
<code><br /></code><br />
<br />
<br />
<b>Step 4: Create procedure to enqueue messages/DMLs</b><br />
<br />
<code></code><br />
<code>CREATE OR REPLACE PROCEDURE enqueue_emp(payload VARCHAR2) AS</code><br />
<code> msg1 emp_t := emp_t(NULL);</code><br />
<code> msg_id RAW(16);</code><br />
<code> priority NUMBER;</code><br />
<code> enqueue_options DBMS_AQ.ENQUEUE_OPTIONS_T;</code><br />
<code> message_properties DBMS_AQ.MESSAGE_PROPERTIES_T;</code><br />
<code>BEGIN</code><br />
<code> msg1.msg := payload;</code><br />
<code> message_properties.priority := 1;</code><br />
<code> DBMS_AQ.ENQUEUE(</code><br />
<code> queue_name => 'EMPQUEUE_Q',</code><br />
<code> enqueue_options => enqueue_options,</code><br />
<code> message_properties => message_properties,</code><br />
<code> payload => msg1,</code><br />
<code> msgid => msg_id);</code><br />
<code>END;</code><br />
<code>/</code><br />
<code><br /></code><br />
<br />
<br />
<b>Step 5: Create procedure to dequeue messages/DMPs to be used to load data in mongoDB.</b><br />
<br />
<code></code><br />
<code><br /></code><br />
<code>CREATE PROCEDURE dequeue_emp(payload OUT VARCHAR2) AS</code><br />
<code> msg1 emp_t := emp_t(NULL);</code><br />
<code> msg_id RAW(16);</code><br />
<code> dequeue_options DBMS_AQ.DEQUEUE_OPTIONS_T;</code><br />
<code> message_properties DBMS_AQ.MESSAGE_PROPERTIES_T;</code><br />
<code>BEGIN</code><br />
<code> DBMS_AQ.DEQUEUE(</code><br />
<code> queue_name => 'EMPQUEUE_Q',</code><br />
<code> dequeue_options => dequeue_options,</code><br />
<code> message_properties => message_properties,</code><br />
<code> payload => msg1,</code><br />
<code> msgid => msg_id</code><br />
<code> );</code><br />
<code> payload := msg1.msg;</code><br />
<code>END;</code><br />
<code>/</code><br />
<code><br /></code><br />
<br />
<br />
<b>Step 6: Create Trigger to queue DMLs on table SCOTT.EMP</b><br />
<br />
<code></code><br />
<code>CREATE OR REPLACE TRIGGER emp_q_trig</code><br />
<code> AFTER INSERT OR UPDATE OR DELETE ON emp</code><br />
<code> FOR EACH ROW</code><br />
<code>DECLARE</code><br />
<code> msg VARCHAR2(4000);</code><br />
<code>BEGIN</code><br />
<code> IF INSERTING OR UPDATING THEN</code><br />
<code> msg := '{"empno":' || :new.empno || ',"ename":"' || :new.ename || '"';</code><br />
<code> msg := msg||',"job":"' || :new.job || '","mgr":"' || :new.mgr || '"';</code><br />
<code> msg := msg||',"hiredate":"' || :new.HIREDATE || '","sal":"' || :new.sal || '"';</code><br />
<code> msg := msg||',"comm":"' || :new.COMM || '","deptno":"' || :new.DEPTNO || '"';</code><br />
<code> msg := msg||',"dml_type":"';</code><br />
<code> msg := msg|| CASE WHEN INSERTING THEN 'I' ELSE 'U' END || '"}';</code><br />
<code> ELSE</code><br />
<code> msg := '{"empno":' || :old.empno || ',"dml_type":"D"}';</code><br />
<code> END IF; </code><br />
<code> enqueue_emp(msg);</code><br />
<code>END;</code><br />
<code>/</code><br />
<br />
<br />
<b>Step 7: Lets test the AQ Setup</b><br />
<code></code><br />
<code>SQL> select * from emp;</code><br />
<code><br /></code><br />
<code> EMPNO ENAME JOB<span class="Apple-tab-span" style="white-space: pre;"> </span> MGR HIREDATE<span class="Apple-tab-span" style="white-space: pre;"> </span> SAL COMM DEPTNO</code><br />
<code>---------- ---------- --------- ---------- --------- ---------- ---------- ----------</code><br />
<code> 7369 SMITH CLERK<span class="Apple-tab-span" style="white-space: pre;"> </span> 7902 17-DEC-80<span class="Apple-tab-span" style="white-space: pre;"> </span> 800 <span class="Apple-tab-span" style="white-space: pre;"> </span> 20</code><br />
<code> 7499 ALLEN SALESMAN<span class="Apple-tab-span" style="white-space: pre;"> </span> 7698 20-FEB-81<span class="Apple-tab-span" style="white-space: pre;"> </span> 1600 300<span class="Apple-tab-span" style="white-space: pre;"> </span> 30</code><br />
<code> 7521 WARD SALESMAN<span class="Apple-tab-span" style="white-space: pre;"> </span> 7698 22-FEB-81<span class="Apple-tab-span" style="white-space: pre;"> </span> 1250 500<span class="Apple-tab-span" style="white-space: pre;"> </span> 30</code><br />
<code> 7566 JONES MANAGER<span class="Apple-tab-span" style="white-space: pre;"> </span> 7839 02-APR-81<span class="Apple-tab-span" style="white-space: pre;"> </span> 2975 <span class="Apple-tab-span" style="white-space: pre;"> </span> 20</code><br />
<code> 7654 MARTIN SALESMAN<span class="Apple-tab-span" style="white-space: pre;"> </span> 7698 28-SEP-81<span class="Apple-tab-span" style="white-space: pre;"> </span> 1250 1400<span class="Apple-tab-span" style="white-space: pre;"> </span> 30</code><br />
<code> 7698 BLAKE MANAGER<span class="Apple-tab-span" style="white-space: pre;"> </span> 7839 01-MAY-81<span class="Apple-tab-span" style="white-space: pre;"> </span> 2850 <span class="Apple-tab-span" style="white-space: pre;"> </span> 30</code><br />
<code> 7782 CLARK MANAGER<span class="Apple-tab-span" style="white-space: pre;"> </span> 7839 09-JUN-81<span class="Apple-tab-span" style="white-space: pre;"> </span> 2450 <span class="Apple-tab-span" style="white-space: pre;"> </span> 10</code><br />
<code> 7788 SCOTT ANALYST<span class="Apple-tab-span" style="white-space: pre;"> </span> 7566 19-APR-87<span class="Apple-tab-span" style="white-space: pre;"> </span> 3000 <span class="Apple-tab-span" style="white-space: pre;"> </span> 20</code><br />
<code> 7839 KING PRESIDENT <span class="Apple-tab-span" style="white-space: pre;"> </span> 17-NOV-81<span class="Apple-tab-span" style="white-space: pre;"> </span> 5000 <span class="Apple-tab-span" style="white-space: pre;"> </span> 10</code><br />
<code> 7844 TURNER SALESMAN<span class="Apple-tab-span" style="white-space: pre;"> </span> 7698 08-SEP-81<span class="Apple-tab-span" style="white-space: pre;"> </span> 1500 <span class="Apple-tab-span" style="white-space: pre;"> </span> 0<span class="Apple-tab-span" style="white-space: pre;"> </span> 30</code><br />
<code> 7876 ADAMS CLERK<span class="Apple-tab-span" style="white-space: pre;"> </span> 7788 23-MAY-87<span class="Apple-tab-span" style="white-space: pre;"> </span> 1100 <span class="Apple-tab-span" style="white-space: pre;"> </span> 20</code><br />
<code> 7900 JAMES CLERK<span class="Apple-tab-span" style="white-space: pre;"> </span> 7698 03-DEC-81<span class="Apple-tab-span" style="white-space: pre;"> </span> 950 <span class="Apple-tab-span" style="white-space: pre;"> </span> 30</code><br />
<code> 7902 FORD ANALYST<span class="Apple-tab-span" style="white-space: pre;"> </span> 7566 03-DEC-81<span class="Apple-tab-span" style="white-space: pre;"> </span> 3000 <span class="Apple-tab-span" style="white-space: pre;"> </span> 20</code><br />
<code> 7934 MILLER CLERK<span class="Apple-tab-span" style="white-space: pre;"> </span> 7782 23-JAN-82<span class="Apple-tab-span" style="white-space: pre;"> </span> 1300 <span class="Apple-tab-span" style="white-space: pre;"> </span> 10</code><br />
<code><br /></code><br />
<code>14 rows selected.</code><br />
<code><br /></code><br />
<code>SQL> UPDATE EMP SET COMM=200 WHERE EMPNO=7369;</code><br />
<code><br /></code><br />
<code>1 ROW UPDATED.</code><br />
<code><br /></code><br />
<code>SQL> COMMIT;</code><br />
<code><br /></code><br />
<code>COMMIT COMPLETE.</code><br />
<code><br /></code><br />
<code>SQL> SELECT COUNT(*) FROM AQ$EMPQUEUE_QT;</code><br />
<code><br /></code><br />
<code> COUNT(*)</code><br />
<code>----------</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span> 1</code><br />
<code><br /></code><br />
<code>SQL> DECLARE</code><br />
<code> 2 VAR1 VARCHAR2(4000);</code><br />
<code> 3 BEGIN</code><br />
<code> 4 DEQUEUE_EMP(VAR1);</code><br />
<code> 5 DBMS_OUTPUT.PUT_LINE('QUEUE OUTPUT:'|| VAR1);</code><br />
<code> 6 END;</code><br />
<code> 7 /</code><br />
<code>QUEUE OUTPUT:{"EMPNO":7369,"ENAME":"SMITH","JOB":"CLERK","MGR":"7902","HIREDATE":"17-DEC-80","SAL":"800","COMM":"200","DEPTNO":"20"","DML_TYPE":"U"}</code><br />
<code><br /></code><br />
<code>PL/SQL PROCEDURE SUCCESSFULLY COMPLETED.</code><br />
<code><br /></code><br />
<code>SQL> SELECT COUNT(*) FROM AQ$EMPQUEUE_QT;</code><br />
<code><br /></code><br />
<code> COUNT(*)</code><br />
<code>----------</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span> 0</code><br />
<br />
<br />
We can see the QUEUE Output as well.<br />
<br />
<b>Step 8: Create a perl script to dequeue the message to mongoDB collection called EMP.</b><br />
<br />
<code></code><br />
<code>--------------Script Start------------------</code><br />
<code>#!/usr/bin/perl</code><br />
<code><br /></code><br />
<code>use strict;</code><br />
<code>use DBI;</code><br />
<code>use DBD::Oracle;</code><br />
<code>use MongoDB;</code><br />
<code>use MongoDB::OID;</code><br />
<code>use Time::Local;</code><br />
<code>use JSON;</code><br />
<code><br /></code><br />
<code>#Connect to the Oracle DB</code><br />
<code>my $dbh = DBI->connect("dbi:Oracle:host=hostname1;port=1521;sid=test","scott","tiger")</code><br />
<code> or die "Error: " . $DBI::errstr;</code><br />
<code><br /></code><br />
<code>#Connect to Mongo DB</code><br />
<code>my $conn=MongoDB::Connection->new(host => 'hostname1:27020');</code><br />
<code>print "conn $conn\n";</code><br />
<code><br /></code><br />
<code>#Connect to required Mongo DB</code><br />
<code>my $db=$conn->test;</code><br />
<code>print "db $db\n";</code><br />
<code><br /></code><br />
<code>#Connect to the required Mongo Collection</code><br />
<code>my $coll=$db->emp;</code><br />
<code>print "Collection: $coll\n";</code><br />
<code><br /></code><br />
<code># Count the messages in Oracle Queue</code><br />
<code>my $sql1 = "select count(*) from AQ\$EMPQUEUE_QT";</code><br />
<code>my $stm1 = $dbh->prepare($sql1);</code><br />
<code>$stm1->execute();</code><br />
<code>my $ccc = $stm1->fetchrow_array();</code><br />
<code>print "Message Count: $ccc\n";</code><br />
<code><br /></code><br />
<code>#Fetch the Oracle AQ Queue Data</code><br />
<code>my $aqdata;</code><br />
<code>my $sql2 = "BEGIN dequeue_emp(:aqdata); END;";</code><br />
<code>my $stm2 = $dbh->prepare($sql2);</code><br />
<code>$stm2->bind_param_inout(":aqdata", \$aqdata,4000);</code><br />
<code><br /></code><br />
<code>#Start of the while loop</code><br />
<code>my $counter="1";</code><br />
<code><br /></code><br />
<code>while ($counter <= $ccc) {</code><br />
<code>$stm2->execute();</code><br />
<code>print "Counter: $counter\n";</code><br />
<code>##JSON output {"empno":7369,"ename":"SMITH","job":"CLERK","mgr":"7902","hiredate":"17-DEC-80","sal":"800","comm":"200","deptno":"20","dml_type":"U"}</code><br />
<code>my $json = $aqdata;</code><br />
<code>my $decoded_json = decode_json($json);</code><br />
<code>print $decoded_json->{"dml_type"};</code><br />
<code>print "\n";</code><br />
<code>print $decoded_json->{"ename"};</code><br />
<code>print "\n";</code><br />
<code><br /></code><br />
<code>if ($decoded_json->{"dml_type"} eq "I"){</code><br />
<code>$coll->insert({empno => $decoded_json->{"empno"},ename => $decoded_json->{"ename"}, job => $decoded_json->{"job"}, mgr => $decoded_json->{"mgr"}, hiredate => $decoded_json->{"hiredate"}, sal => $decoded_json->{"sal"}, comm => $decoded_json->{"comm"}, deptno => $decoded_json->{"deptno"}});</code><br />
<code>print "Insert if \n";</code><br />
<code>}</code><br />
<code>if ($decoded_json->{"dml_type"} eq "U"){</code><br />
<code>$coll->remove({"empno" => $decoded_json->{"empno"}});</code><br />
<code>$coll->insert({empno => $decoded_json->{"empno"},ename => $decoded_json->{"ename"}, job => $decoded_json->{"job"}, mgr => $decoded_json->{"mgr"}, hiredate => $decoded_json->{"hiredate"}, sal => $decoded_json->{"sal"}, comm => $decoded_json->{"comm"}, deptno => $decoded_json->{"deptno"}});</code><br />
<code>print "Update if \n";</code><br />
<code>}</code><br />
<code>if ($decoded_json->{"dml_type"} eq "D"){</code><br />
<code>$coll->remove({"empno" => $decoded_json->{"empno"}});</code><br />
<code>print "Delete if \n";</code><br />
<code>}</code><br />
<code>$counter ++;</code><br />
<code>}</code><br />
<code><br /></code><br />
<code>--------------Script END------------------</code><br />
<br />
<br />
<b>Step 9: Executing and testing the data replication</b><br />
<br />
<code></code><br />
<code>SQL> update emp set comm=200 where empno=7369;</code><br />
<code><br /></code><br />
<code>1 row updated.</code><br />
<code><br /></code><br />
<code>SQL> commit;</code><br />
<code><br /></code><br />
<code>Commit complete.</code><br />
<code><br /></code><br />
<code>SQL> select count(*) from aq$EMPQUEUE_QT;</code><br />
<code><br /></code><br />
<code> COUNT(*)</code><br />
<code>----------</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span> 1</code><br />
<code><br /></code><br />
<code>###Executing the perl script</code><br />
<code><br /></code><br />
<code>[oracle@hostname1 perlstuff]$ perl o2m_emp.pl </code><br />
<code>conn MongoDB::Connection=HASH(0x1b45c630)</code><br />
<code>db MongoDB::Database=HASH(0x1b930580)</code><br />
<code>Collection: MongoDB::Collection=HASH(0x1c1c5210)</code><br />
<code>Message Count: 1</code><br />
<code>Counter: 1</code><br />
<code>U</code><br />
<code>SMITH</code><br />
<code>Update if</code><br />
<code><br /></code><br />
<code>####Checking the data in mongoDB</code><br />
<code>[oracle@hostname1 ~]$ mongo --port 27020</code><br />
<code>MongoDB shell version: 2.0.5</code><br />
<code>connecting to: 127.0.0.1:27020/test</code><br />
<code>> use test</code><br />
<code>switched to db test</code><br />
<code>> show collections</code><br />
<code>emp</code><br />
<code>system.indexes</code><br />
<code>> db.emp.find()</code><br />
<code>{ "_id" : ObjectId("4fc016298b93a68269000000"), "comm" : "200", "sal" : "800", "job" : "CLERK", "mgr" : "7902", "hiredate" : "17-DEC-80", "deptno" : "20", "ename" : "SMITH", "empno" : NumberLong(7369) }</code><br />
<code>></code><br />
<code><br /></code><br />
<br />
<br />
<b>Step 10: Seed existing data to MongoDB from Oracle</b><br />
<br />
We had 14 rows existing in SCOTT.EMP table. We might want to load those rows in MongoDB and then start the replication.<br />
Spool the output of the below SQL<br />
<code></code><br />
<code>sqlplus scott/tiger</code><br />
<code><br /></code><br />
<code>select '$collection->insert({"EMPNO"=>'||empno||',"ENAME"=>"'||ename||'","JOB"=>"'||job||'","MGR"=>"'||mgr||'","HIREDATE"=>"'||hiredate||'","SAL"=>"'||sal||'","COMM"=>"'||comm||'","DEPTNO"=>"'||deptno||'"});' from emp;</code><br />
<code><br /></code><br />
<code><b>### Create a perl script to load these into MongoDB:</b></code><br />
<code>--------------Script Start------------------</code><br />
<code>#!/usr/bin/perl</code><br />
<code><br /></code><br />
<code>use strict;</code><br />
<code>use MongoDB;</code><br />
<code>use MongoDB::OID;</code><br />
<code>use Time::Local;</code><br />
<code><br /></code><br />
<code>my $conn=MongoDB::Connection->new(host => 'hostname1:27020');</code><br />
<code><br /></code><br />
<code>print "conn $conn\n";</code><br />
<code><br /></code><br />
<code>my $db=$conn->test;</code><br />
<code><br /></code><br />
<code>print "db $db\n";</code><br />
<code><br /></code><br />
<code>my $collection=$db->emp;</code><br />
<code><br /></code><br />
<code>print "collection $collection\n";</code><br />
<code><br /></code><br />
<code>my $cursor=$collection->find;</code><br />
<code><br /></code><br />
<code>print "cursor $cursor\n\n";</code><br />
<code><br /></code><br />
<code>$collection->insert({"EMPNO"=>7369,"ENAME"=>"SMITH","JOB"=>"CLERK","MGR"=>"7902","HIREDATE"=>"17-DEC-80","SAL"=>"800","COMM"=>"200","DEPTNO"=>"20"});</code><br />
<code>$collection->insert({"EMPNO"=>7499,"ENAME"=>"ALLEN","JOB"=>"SALESMAN","MGR"=>"7698","HIREDATE"=>"20-FEB-81","SAL"=>"1600","COMM"=>"300","DEPTNO"=>"30"});</code><br />
<code>$collection->insert({"EMPNO"=>7521,"ENAME"=>"WARD","JOB"=>"SALESMAN","MGR"=>"7698","HIREDATE"=>"22-FEB-81","SAL"=>"1250","COMM"=>"500","DEPTNO"=>"30"});</code><br />
<code>$collection->insert({"EMPNO"=>7566,"ENAME"=>"JONES","JOB"=>"MANAGER","MGR"=>"7839","HIREDATE"=>"02-APR-81","SAL"=>"2975","COMM"=>"","DEPTNO"=>"20"});</code><br />
<code>$collection->insert({"EMPNO"=>7654,"ENAME"=>"MARTIN","JOB"=>"SALESMAN","MGR"=>"7698","HIREDATE"=>"28-SEP-81","SAL"=>"1250","COMM"=>"1400","DEPTNO"=>"30"});</code><br />
<code>$collection->insert({"EMPNO"=>7698,"ENAME"=>"BLAKE","JOB"=>"MANAGER","MGR"=>"7839","HIREDATE"=>"01-MAY-81","SAL"=>"2850","COMM"=>"","DEPTNO"=>"30"});</code><br />
<code>$collection->insert({"EMPNO"=>7782,"ENAME"=>"CLARK","JOB"=>"MANAGER","MGR"=>"7839","HIREDATE"=>"09-JUN-81","SAL"=>"2450","COMM"=>"","DEPTNO"=>"10"});</code><br />
<code>$collection->insert({"EMPNO"=>7788,"ENAME"=>"SCOTT","JOB"=>"ANALYST","MGR"=>"7566","HIREDATE"=>"19-APR-87","SAL"=>"3000","COMM"=>"","DEPTNO"=>"20"});</code><br />
<code>$collection->insert({"EMPNO"=>7839,"ENAME"=>"KING","JOB"=>"PRESIDENT","MGR"=>"","HIREDATE"=>"17-NOV-81","SAL"=>"5000","COMM"=>"","DEPTNO"=>"10"});</code><br />
<code>$collection->insert({"EMPNO"=>7844,"ENAME"=>"TURNER","JOB"=>"SALESMAN","MGR"=>"7698","HIREDATE"=>"08-SEP-81","SAL"=>"1500","COMM"=>"0","DEPTNO"=>"30"});</code><br />
<code>$collection->insert({"EMPNO"=>7876,"ENAME"=>"ADAMS","JOB"=>"CLERK","MGR"=>"7788","HIREDATE"=>"23-MAY-87","SAL"=>"1100","COMM"=>"","DEPTNO"=>"20"});</code><br />
<code>$collection->insert({"EMPNO"=>7900,"ENAME"=>"JAMES","JOB"=>"CLERK","MGR"=>"7698","HIREDATE"=>"03-DEC-81","SAL"=>"950","COMM"=>"","DEPTNO"=>"30"});</code><br />
<code>$collection->insert({"EMPNO"=>7902,"ENAME"=>"FORD","JOB"=>"ANALYST","MGR"=>"7566","HIREDATE"=>"03-DEC-81","SAL"=>"3000","COMM"=>"","DEPTNO"=>"20"});</code><br />
<code>$collection->insert({"EMPNO"=>7934,"ENAME"=>"MILLER","JOB"=>"CLERK","MGR"=>"7782","HIREDATE"=>"23-JAN-82","SAL"=>"1300","COMM"=>"","DEPTNO"=>"10"});</code><br />
<code>--------------Script END------------------</code><br />
<br />
<br />
<b>DEMO for AQ:</b> <a href="http://psoug.org/reference/aq_demo1.html">http://psoug.org/reference/aq_demo1.html</a><br />
<div>
<br /></div>
</div>Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com3tag:blogger.com,1999:blog-4092304359380397372.post-25312986197484070812012-05-26T01:36:00.002+05:302012-05-31T05:49:29.533+05:30MongoDB Install and Quick Setup<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b>1.) Download MongoDB </b>from - <a href="http://www.mongodb.org/downloads">http://www.mongodb.org/downloads</a><br />
Copy is over to your host, unzip it.<br />
Thats all to install Mongo DB.<br />
<br />
<b>2.) Create directory for storing your data</b><br />
<br />
mkdir /home/oracle/data<br />
You can create this directory anywhere on the host/filer/shared storage.<br />
<br />
<b>3.) Start mongoDB </b>(<a href="http://www.mongodb.org/display/DOCS/Starting+and+Stopping+Mongo#StartingandStoppingMongo-RunningasaDaemon">http://www.mongodb.org/display/DOCS/Starting+and+Stopping+Mongo#StartingandStoppingMongo-RunningasaDaemon</a>)<br />
<br />
cd to bin directory inside the downloaded/uncompress mongoDB software.<br />
cd /home/oracle/mongodb/bin<br />
<br />
run ./mongod<br />
<br />
By default it will start the mongoDB on port 27017.<br />
<br />
<b><i><u>Startup options:</u></i></b><br />
<br />
If you want to change the port start it as:<br />
./mongod --port 12345<br />
<br />
To specify the data location:<br />
<br />
./mongod --dbpath /home/oracle/data --port 12345<br />
<br />
To specify the log directory path (store DB log like the alert log in oracle):<br />
<br />
./mongod --dbpath /home/oracle/data --port 12345 -logpath /home/oracle/logs/mongo.log<br />
<br />
To run it as a daemon<br />
<br />
./mongod --dbpath /home/oracle/data --port 12345 --fork --logpath /home/oracle/logs/mongo.log<br />
<br />
To get all the command like options (<a href="http://www.mongodb.org/display/DOCS/Command+Line+Parameters">http://www.mongodb.org/display/DOCS/Command+Line+Parameters</a>)<br />
<br />
./mongod -h<br />
<br />
<b>4.) Login/Connect to the mongoDB database instance</b><br />
<br />
./mongo --port <port db="" specified="" starting="" the="" u="" while=""></port><br />
<br />
./mongo --port 12345<br />
<br />
Note: Just by starting multiple mongoDB instance on multiple port creates multiple mongoDB instances.<br />
<br />
You can now run mongoDB commands<br />
<code></code><br />
<code>./mongo --port 12345</code><br />
<code>PRIMARY> use admin</code><br />
<code>switched to db admin</code><br />
<code>PRIMARY> show dbs --> Shows the databases.</code><br />
<code>local<span class="Apple-tab-span" style="white-space: pre;"> </span>10.1982421875GB</code><br />
<code>test<span class="Apple-tab-span" style="white-space: pre;"> </span>0.203125GB</code><br />
<code>PRIMARY> db.help() --> Give list of Admin commands</code><br />
<code>DB methods:</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.addUser(username, password[, readOnly=false])</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.auth(username, password)</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.cloneDatabase(fromhost)</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.commandHelp(name) returns the help for the command</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.copyDatabase(fromdb, todb, fromhost)</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.createCollection(name, { size : ..., capped : ..., max : ... } )</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.currentOp() displays the current operation in the db</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.dropDatabase()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.eval(func, args) run code server-side</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.getCollection(cname) same as db['cname'] or db.cname</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.getCollectionNames()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.getLastError() - just returns the err msg string</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.getLastErrorObj() - return full status object</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.getMongo() get the server connection object</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.getMongo().setSlaveOk() allow this connection to read from the nonmaster member of a replica pair</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.getName()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.getPrevError()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.getProfilingLevel() - deprecated</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.getProfilingStatus() - returns if profiling is on and slow threshold </code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.getReplicationInfo()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.getSiblingDB(name) get the db at the same server as this one</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.isMaster() check replica primary status</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.killOp(opid) kills the current operation in the db</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.listCommands() lists all the db commands</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.logout()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.printCollectionStats()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.printReplicationInfo()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.printSlaveReplicationInfo()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.printShardingStatus()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.removeUser(username)</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.repairDatabase()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.resetError()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.runCommand(cmdObj) run a database command. if cmdObj is a string, turns it into { cmdObj : 1 }</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.serverStatus()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.setProfilingLevel(level,<slowms>) 0=off 1=slow 2=all</slowms></code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.shutdownServer()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.stats()</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.version() current version of the server</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.getMongo().setSlaveOk() allow queries on a replication slave server</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.fsyncLock() flush data to disk and lock server for backups</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>db.fsyncUnock() unlocks server following a db.fsyncLock()</code><br />
<code><br /></code><br />
<code>PRIMARY> use test --> Change database</code><br />
<code>switched to db test</code><br />
<code>PRIMARY> show collections ---> Query the tables/collections in the database</code><br />
<code>customer</code><br />
<code>person</code><br />
<code>system.indexes</code><br />
<code>PRIMARY> db.customer.count() ---> select the row count (in oracle - select count(*) from customer;)</code><br />
<code>49996</code><br />
<br />
<b>5.) Shutdown MongoDB</b><br />
<code></code><br />
<code>[oracle@host1 ~]$ ps -ef|grep mongo</code><br />
<code>oracle 11899 1 0 12:25 ? 00:00:00 mongod --port 12345 --dbpath /home/oracle/test --rest --fork --logpath /home/oracle/test/mongo.log</code><br />
<code>oracle 11912 11755 0 12:25 pts/0 00:00:00 grep mongo</code><br />
<code>[oracle@host1 ~]$ mongo --port 12345</code><br />
<code>MongoDB shell version: 2.0.5</code><br />
<code>connecting to: 127.0.0.1:12345/test</code><br />
<code>> use admin</code><br />
<code>switched to db admin</code><br />
<code>> db.shutdownServer()</code><br />
<code>Fri May 25 12:26:04 DBClientCursor::init call() failed</code><br />
<code>Fri May 25 12:26:04 query failed : admin.$cmd { shutdown: 1.0 } to: 127.0.0.1:12345</code><br />
<code>server should be down...</code><br />
<code>Fri May 25 12:26:04 trying reconnect to 127.0.0.1:12345</code><br />
<code>Fri May 25 12:26:04 reconnect 127.0.0.1:12345 ok</code><br />
<code>Fri May 25 12:26:04 Socket say send() errno:104 Connection reset by peer 127.0.0.1:12345</code><br />
<code>Fri May 25 12:26:04 Error: error doing query: unknown shell/collection.js:151</code><br />
<code>> exit</code><br />
<code>bye</code><br />
<code>[oracle@host1 ~]$ ps -ef|grep mongo</code><br />
<code>oracle 11919 11755 0 12:26 pts/0 00:00:00 grep mongo</code><br />
<div>
</div>
<div>
<br /></div>
<div>
<br /></div>
</div>Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com0tag:blogger.com,1999:blog-4092304359380397372.post-23416293266695076052012-05-24T04:04:00.002+05:302012-05-31T05:49:58.440+05:30How to display Oracle PL/SQL "OUT" variable in perl<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b>Step 1: Create a procedure in oracle with OUT variable</b><br />
<code></code><br />
<code>create procedure testing (timendate out varchar2)</code><br />
<code>as</code><br />
<code>begin</code><br />
<code>select systimestamp into timendate from dual;</code><br />
<code>end;</code><br />
<code>/</code><br />
<br />
Note: Above proc outputs systimestamp.<br />
<br />
<b>Step 2: Test the proc output in Oracle</b><br />
<code></code><br />
<code>set serveroutput on</code><br />
<code>declare</code><br />
<code>time varchar2(200);</code><br />
<code>begin</code><br />
<code>testing(time);</code><br />
<code>dbms_output.put_line('Returned: ' ||time);</code><br />
<code>end;</code><br />
<code>/</code><br />
<br />
The output should be like:<br />
Returned: 23-MAY-12 03.20.00.502124 PM -07:00<br />
<br />
PL/SQL procedure successfully completed.<br />
<br />
<b>Step 3: Get this output from a perl script</b><br />
<br />
<code></code><br />
<code>#!/usr/bin/perl</code><br />
<code><br /></code><br />
<code>#Adding the Oracle DBD Perl modules</code><br />
<code>use DBI;</code><br />
<code>use DBD::Oracle;</code><br />
<code><br /></code><br />
<code>#Defining the connection to the Oracle DB</code><br />
<code>my $dbh = DBI->connect("dbi:Oracle:host=hostname;port=1521;sid=test","system","oracle")</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>or die "Error: " . $DBI->errstr;</code><br />
<code><br /></code><br />
<code>#Perl variable for storing the PL SQL Proc output.</code><br />
<code>my $proc_out;</code><br />
<code><br /></code><br />
<code>#Preparing the Oracle Statement to be execute. ":proc_out" is the oracle variable.</code><br />
<code>my $sql = "BEGIN testing(:proc_out); END;";</code><br />
<code>my $stm = $dbh->prepare($sql);</code><br />
<code><br /></code><br />
<code>#bind_param_inout takes a REFERENCE to program variable as an argument. It passes the pointer to variable to Oracle, not the variable itself</code><br />
<code><br /></code><br />
<code>$stm->bind_param_inout(":proc_out", \$proc_out,400);</code><br />
<code><br /></code><br />
<code>#execute the SQL Statement</code><br />
<code>$stm->execute()</code><br />
<code> or die "Database Error: " . $sth->errstr;</code><br />
<code><br /></code><br />
<code>#Print the output</code><br />
<code>print "Current System Time Is: $proc_out\n";</code><br />
<code><br /></code><br />
<br />
<br />
Output should be like:<br />
<br />
<b>Current System Time Is: 23-MAY-12 03.25.55.364674 PM -07:00</b><br />
<b><br /></b><br />
Detailed reference from <a href="http://www.dba-oracle.com/t_dbi_perl_bind_calls.htm">http://www.dba-oracle.com/t_dbi_perl_bind_calls.htm</a><br />
<div>
<br /></div>
</div>Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com0tag:blogger.com,1999:blog-4092304359380397372.post-39247074530156943542012-05-19T05:07:00.001+05:302012-05-31T05:50:39.293+05:30Install & Configure Perl DBD for Oracle 11.2 on Redhat Linux<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h3 style="text-align: left;">
Steps 1: Install Oracle 11.2 server/client on the host</h3>
You can download oracle from <a href="http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html" target="_blank">download.oracle.com</a><br />
<br />
<h3 style="text-align: left;">
Steps 2: Install Perl on the host.</h3>
Check if perl is already installed on the host:<br />
# perl -v<br />
Most hosts have perl already installed.<br />
You can download and install perl from <a href="http://www.perl.org/get.html">http://www.perl.org/get.html</a>.<br />
<br />
<h3 style="text-align: left;">
Step 3: Download PERL DBD-Oracle </h3>
<br />
Download link: <a href="http://search.cpan.org/~pythian/DBD-Oracle-1.44/">http://search.cpan.org/~pythian/DBD-Oracle-1.44/</a><br />
<br />
<h3 style="text-align: left;">
Step 4: unzip and untar the download DBD-Oracle</h3>
[oracle@host1 tmp]$ gunzip DBD-Oracle-1.44.tar.gz<br />
[oracle@host1 tmp]$ tar -xvf DBD-Oracle-1.44.tar<br />
<br />
<h3 style="text-align: left;">
Step 5: Create file oci.conf </h3>
Create file oci.conf at /etc/ld.so.conf.d/ as <b>root</b> with the location of Oracle LD_LIBRARY_PATH<br />
<br />
<i>For this example:</i><br />
<i>ORACLE_HOME=/u01/product/11.2</i><br />
<i>PATH=$PATH:$ORACLE_HOME/bin</i><br />
<i>LD_LIBRARY_PATH=/u01/product/11.2/lib</i><br />
<br />
[root@host1 ~]$ more /etc/ld.so.conf.d/oci.conf<br />
/u01/product/11.2/lib<br />
<br />
Run ldconfig to update ld.so.conf<br />
<br />
<b>[root@host1 ld.so.conf.d]# ldconfig -v</b><br />
<br />
<i>What is ldconfig (from the man pages)</i><br />
<i>"DESCRIPTION: ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/lib and /usr/lib). The cache is used by the run-time linker, ld.so or ld-linux.so. ldconfig checks the header and filenames of the libraries it encounters when determining which versions should have their links updated."</i><br />
For more details: <a href="http://linux.die.net/man/8/ldconfig">http://linux.die.net/man/8/ldconfig</a><br />
<br />
<h3 style="text-align: left;">
Step 6: Install DBD-Oracle</h3>
Go to the directory where u untared the downloaded DBD-Oracle<br />
<b>Note</b>: Make sure u have completed Step 5<br />
<br />
<b>[root@host1 DBD-Oracle-1.44]# perl Makefile.PL -V 11.2.0</b><br />
<b>[root@host1 DBD-Oracle-1.44]# make install</b><br />
<br />
<u><i><b>This should complete the DBD-Oracle installation!!!!!</b></i></u><br />
<br />
<h3 style="text-align: left;">
Step 7: Test the install</h3>
Login back as Oracle user:<br />
Create a script (dbd_oracle_test.pl) with the text below:<br />
<br />
<code></code><br />
<code>#!/usr/bin/perl</code><br />
<code><br /></code><br />
<code>$host="host1";</code><br />
<code>$ora_listener="LISTENER";</code><br />
<code>$oracle_sid="test";</code><br />
<code>$listener_port="1521";</code><br />
<code>$ora_user="system";</code><br />
<code>$ora_password="oracle";</code><br />
<code>$db_table="dba_users";</code><br />
<code><br /></code><br />
<code>use DBI;</code><br />
<code>use DBD::Oracle;</code><br />
<code><br /></code><br />
<code>my $dbh = DBI->connect("dbi:Oracle:host=$host;port=$listener_port;sid=$oracle_sid",$ora_user, $ora_password)</code><br />
<code> or die "Error Connecting to Oracle : " . DBI->errstr;</code><br />
<code><br /></code><br />
<code>my $stm = $dbh->prepare("SELECT username,created FROM $db_table")</code><br />
<code> or die "Database Error: " . $dbh->errstr;</code><br />
<code><br /></code><br />
<code>$stm->execute()</code><br />
<code> or die "Database Error: " . $sth->errstr;</code><br />
<code><br /></code><br />
<code>while (( $username,$created ) = $stm->fetchrow_array() )</code><br />
<code>{<span class="Apple-tab-span" style="white-space: pre;"> </span></code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>print "\n";</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>print " Username: $username\n";</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>print " Created Date: $created\n";</code><br />
<code><span class="Apple-tab-span" style="white-space: pre;"> </span>print "\n";</code><br />
<code>}</code><br />
<code><br /></code><br />
<code>$stm->finish;</code><br />
<code><br /></code><br />
<code>$dbh->disconnect;</code><br />
<br /></div>Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com4tag:blogger.com,1999:blog-4092304359380397372.post-86711800104955224492011-12-01T06:24:00.002+05:302011-12-01T06:26:06.610+05:30dbms_metadata.get_ddl & ORA-31603I wanted to allow a database user/schema called TEST (other than user with SYSDBA privileges) to have privileges to run dbms_metadata.get_ddl for any object in the database. Basically for other schemas in the database. Even though I provided execute privileges on the package and even DBA privilege to the user it still gave:<br /><code><br />16:37:39 SQL> select dbms_metadata.get_ddl('PACKAGE','PACK1','SCOTT') from dual;<br />ERROR:<br />ORA-31603: object "PACK1" of type PACKAGE not found in schema "SCOTT"<br />ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105<br />ORA-06512: at "SYS.DBMS_METADATA", line 3912<br />ORA-06512: at "SYS.DBMS_METADATA", line 5678<br />ORA-06512: at line 1<br /></code><br />The privileges required to allow a user/schema (TEST) to be able to run the package are:<br /><code><br />grant SELECT_CATALOG_ROLE to TEST;<br />The most important steps is:<br />ALTER USER TEST DEFAULT ROLE SELECT_CATALOG_ROLE;<br /></code><br /><br />Just by granting SELECT_CATALOG_ROLE to the user/schema you would still get ORA-31603.<br />So we must alter the user and make SELECT_CATALOG_ROLE as its default role.Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com1tag:blogger.com,1999:blog-4092304359380397372.post-38844971129362160692011-09-01T02:49:00.000+05:302011-09-01T02:49:28.382+05:30How to Move OCR and Voting Disk to ASM Diskgroup in 11gR2<b>Case:</b> Moving to Redhat Linux 5/Oracle Enterprise Linux 5, which does not support Raw filesytem.
Steps: (these steps can be performanced on 11gR2)
<b>1.) Check the current location of ocr file:</b>
<pre>
[root@host1 bin]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3004
Available space (kbytes) : 259116
ID : 798462606
Device/File Name : /mnt/cludata/ocrfile
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
</pre>
2.) <b>Add a Mirror OCR location</b> else you might encounter error :PROT-28: Cannot delete or replace the only configured Oracle Cluster Registry location <br>
<b>i.) Create the file (as root) </b> <br>
<pre>
cp /dev/null /mnt/cludata/ocrmirror
chown root:dba /mnt/cludata/ocrmirror
chmod 640 /mnt/cludata/ocrmirror
[root@host1 cludata]# pwd
/rmanbkp1/cludata
[root@host1 cludata]# ls -lrt
total 23784
-rw-r----- 1 root dba 272756736 Aug 31 12:37 ocrfile
-rw-r----- 1 root dba 0 Aug 31 13:12 ocrmirror
-rw-r----- 1 oracle dba 21004288 Aug 31 13:12 cssfile
</pre> <br>
<b>ii.) Add the mirror OCR file</b><br>
<pre>
[root@host1 cludata]# ocrconfig -add /rmanbkp1/cludata/ocrmirror
[root@host1 cludata]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3004
Available space (kbytes) : 259116
ID : 798462606
Device/File Name : /mnt/cludata/ocrfile
Device/File integrity check succeeded
Device/File Name : /mnt/cludata/ocrmirror
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
</pre>
<b>3.) Check ASM Diskgroup compatibility (login as sqlplus / as sysasm)</b>
<pre>
col name format a10
col COMPATIBILITY format a20
col DATABASE_COMPATIBILITY format a20
select name,COMPATIBILITY,DATABASE_COMPATIBILITY from v$asm_diskgroup;
NAME COMPATIBILITY DATABASE_COMPATIBILI
---------- -------------------- --------------------
DG_ARCH01 10.1.0.0.0 10.1.0.0.0
DG_SYS01 10.1.0.0.0 10.1.0.0.0
DG_TEMP01 10.1.0.0.0 10.1.0.0.0
DG_DATA01 10.1.0.0.0 10.1.0.0.0
</pre>
<b>4.) Upgrade the compatibility to 11.2</b>
compatible.asm
<pre>
SQL> alter diskgroup DG_ARCH01 set attribute 'compatible.asm'='11.2';
Diskgroup altered.
SQL> alter diskgroup DG_SYS01 set attribute 'compatible.asm'='11.2';
Diskgroup altered.
SQL> alter diskgroup DG_TEMP01 set attribute 'compatible.asm'='11.2';
Diskgroup altered.
SQL> alter diskgroup DG_DATA01 set attribute 'compatible.asm'='11.2';
Diskgroup altered.
SQL> select name,COMPATIBILITY,DATABASE_COMPATIBILITY from v$asm_diskgroup;
NAME COMPATIBILITY DATABASE_COMPATIBILI
---------- -------------------- --------------------
DG_ARCH01 11.2.0.0.0 10.1.0.0.0
DG_SYS01 11.2.0.0.0 10.1.0.0.0
DG_TEMP01 11.2.0.0.0 10.1.0.0.0
DG_DATA01 11.2.0.0.0 10.1.0.0.0
</pre>
Update compatible.rdbms
<pre>
SQL> alter diskgroup DG_ARCH01 set attribute 'compatible.rdbms'='11.2';
Diskgroup altered.
SQL> alter diskgroup DG_SYS01 set attribute 'compatible.rdbms'='11.2';
Diskgroup altered.
SQL> alter diskgroup DG_TEMP01 set attribute 'compatible.rdbms'='11.2';
Diskgroup altered.
SQL> alter diskgroup DG_DATA01 set attribute 'compatible.rdbms'='11.2';
Diskgroup altered.
SQL> select name,COMPATIBILITY,DATABASE_COMPATIBILITY from v$asm_diskgroup;
NAME COMPATIBILITY DATABASE_COMPATIBILI
---------- -------------------- --------------------
DG_ARCH01 11.2.0.0.0 11.2.0.0.0
DG_SYS01 11.2.0.0.0 11.2.0.0.0
DG_TEMP01 11.2.0.0.0 11.2.0.0.0
DG_DATA01 11.2.0.0.0 11.2.0.0.0
</pre>
<b>5.) Move OCR file to ASM:</b>
<pre>
ocrconfig -replace /rmanbkp1/cludata/ocrfile -replacement +DG_ARCH01
ocrconfig -replace /rmanbkp1/cludata/ocrmirror -replacement +DG_SYS01
</pre>
<b>6.) Check OCR:</b>
<pre>
[root@host1 cludata]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3004
Available space (kbytes) : 259116
ID : 798462606
Device/File Name : +DG_ARCH01
Device/File integrity check succeeded
Device/File Name : +DG_SYS01
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
</pre>
<b>7.) Restart CRS to check if it comes back fine.</b><br>
NOTE: You will not be able to stop just ASM now, as the OCR file is in ASM<br>
<b>
8.) Check OCR:( as oracle user )</b>
<pre>
[oracle@host1]~% /home/oragrid/product/11.2/bin/cluvfy comp ocr -n all -verbose
Verifying OCR integrity
Checking OCR integrity...
Checking the absence of a non-clustered configuration...
All nodes free of non-clustered, local-only configurations
ASM Running check passed. ASM is running on all cluster nodes
Checking OCR config file "/etc/oracle/ocr.loc"...
OCR config file "/etc/oracle/ocr.loc" check successful
Disk group for ocr location "+DG_SYS01" available on all the nodes
Disk group for ocr location "+DG_ARCH01" available on all the nodes
Checking size of the OCR location "+DG_SYS01" ...
Size check for OCR location "+DG_SYS01" successful...
Size check for OCR location "+DG_SYS01" successful...
Size check for OCR location "+DG_SYS01" successful...
Size check for OCR location "+DG_SYS01" successful...
Checking size of the OCR location "+DG_ARCH01" ...
Size check for OCR location "+DG_ARCH01" successful...
Size check for OCR location "+DG_ARCH01" successful...
Size check for OCR location "+DG_ARCH01" successful...
Size check for OCR location "+DG_ARCH01" successful...
WARNING:
This check does not verify the integrity of the OCR contents. Execute 'ocrcheck' as a privileged user to verify the contents of OCR.
OCR integrity check passed
Verification of OCR integrity was successful.
</pre>
<b>9.) Move Voting disk now</b>
<pre>
[root@host1 cludata]# crsctl replace votedisk +DG_ARCH01
CRS-4256: Updating the profile
Successful addition of voting disk aa5d2a1024384faebf3f2c108e6b203a .
Successful deletion of voting disk 253472991d324fb9bfab1f1301385697.
Successfully replaced voting disk group with +DG_ARCH01.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
</pre>
<b>10.) Check Voting Disk:</b>
<pre>
[root@host1 cludata]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE aa5d2a1024384faebf3f2c108e6b203a (ORCL:DISK2) [DG_ARCH01]
Located 1 voting disk(s).
[root@host1 cludata]# crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
</pre>
<b>11.) Check contents of ocr.loc file</b>
<pre>
[root@host1 cludata]# more /etc/oracle/ocr.loc
#Device/file /mnt/cludata/ocrmirror getting replaced by device +DG_SYS01
ocrconfig_loc=+DG_ARCH01
ocrmirrorconfig_loc=+DG_SYS01
local_only=false
</pre>
ALL LOOKS GOOD NOW !!!
Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com2tag:blogger.com,1999:blog-4092304359380397372.post-66626895885351068572011-07-21T07:07:00.003+05:302011-07-21T07:12:10.143+05:30Oracle: Rename single/RAC Database<span style="font-weight:bold;">Method 1:</span> Recreate control file with the new DB name, the old tried and tested method.<br /><span style="font-weight:bold;">Method 2:</span> Use new utility called NID<br /><span style="font-weight:bold;">Steps to rename Databases using the new NID utility:</span><br /><span style="font-weight:bold;">1.) Stop database</span><br /><code><br />[oracle@testing1]~% srvctl status database -d test<br />Instance test1 is running on node testing1<br />Instance test2 is running on node testing2<br /><br />srvctl stop database -d test<br /></code><br /><br /><span style="font-weight:bold;">2.) startup mount the database:</span><br /><code><br />[oracle@testing1]~% sqlplus / as sysdba<br /><br />SQL*Plus: Release 11.2.0.2.0 Production on Thu Jul 21 00:50:44 2011<br />Copyright (c) 1982, 2010, Oracle. All rights reserved.<br />Connected to an idle instance.<br />SQL> startup mount<br />ORACLE instance started.<br /><br />Total System Global Area 1.2527E+10 bytes<br />Fixed Size 2238104 bytes<br />Variable Size 8120174952 bytes<br />Database Buffers 4294967296 bytes<br />Redo Buffers 109346816 bytes<br />Database mounted.<br /></code><br /><span style="font-weight:bold;">3.) Exit and run the "nid" utility</span><br /><br /><span style="font-weight:bold;">nid sys/oracle@test DBNAME=new</span><br /><br /><code><br />[oracle@testing1]~% nid sys/m4gent4 DBNAME=new <br /><br />DBNEWID: Release 11.2.0.2.0 - Production on Thu Jul 21 00:55:12 2011<br /><br />Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.<br /><br />NID-00002: Parse error: LRM-00108: invalid positional parameter value 'sys/m4gent4'<br /><br />Change of database ID failed during validation - database is intact.<br />DBNEWID - Completed with validation errors.<br /><br /></code><br /><br /><span style="font-weight:bold;">Correct the syntax:<br />nid target=sys/oracle@test DBNAME=new</span><br /><br /><code><br />[oracle@testing1]~% nid target=sys/m4gent4 DBNAME=new<br /><br />DBNEWID: Release 11.2.0.2.0 - Production on Thu Jul 21 00:56:04 2011<br /><br />Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.<br /><br />Connected to database test (DBID=3952648861)<br /><br />NID-00120: Database should be mounted exclusively<br /><br /><br />Change of database name failed during validation - database is intact.<br />DBNEWID - Completed with validation errors.<br /></code><br /><br /><span style="font-weight:bold;">Incase of RAC, we need to set cluster_database=FALSE to change DB name. Then stop and mount the DB again.</span><br /><br /><code><br />SQL> alter system set cluster_database=FALSE scope=spfile;<br /><br />System altered.<br /><br />SQL> shutdown immediate;<br />ORA-01109: database not open<br /><br /><br />Database dismounted.<br />ORACLE instance shut down.<br />SQL> startup mount<br />ORACLE instance started.<br /><br />Total System Global Area 1.2527E+10 bytes<br />Fixed Size 2238104 bytes<br />Variable Size 8120174952 bytes<br />Database Buffers 4294967296 bytes<br />Redo Buffers 109346816 bytes<br />Database mounted.<br /><br /></code><br /><br /><span style="font-weight:bold;">nid target=sys/oracle@test DBNAME=new</span><br /><code><br />[oracle@testing1]~% nid target=sys/m4gent4 DBNAME=new<br /><br />DBNEWID: Release 11.2.0.2.0 - Production on Thu Jul 21 00:59:54 2011<br /><br />Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.<br /><br />Connected to database test (DBID=3952648861)<br /><br />Connected to server version 11.2.0<br /><br />Control Files in database:<br /> +DG_SYS01/test/control01.ctl<br /> +DG_DATA01/test/control02.ctl<br /><br />Change database ID and database name test to NEW? (Y/[N]) => Y<br /><br />Proceeding with operation<br />Changing database ID from 3952648861 to 388598347<br />Changing database name from test to NEW<br /> Control File +DG_SYS01/test/control01.ctl - modified<br /> Control File +DG_DATA01/test/control02.ctl - modified<br /> Datafile +DG_SYS01/test/datafile/system.261.75517911 - dbid changed, wrote new name<br /> Datafile +DG_SYS01/test/datafile/sysaux.262.75517911 - dbid changed, wrote new name<br /> Datafile +DG_DATA01/test/datafile/undotbs1.258.75518469 - dbid changed, wrote new name<br /> Datafile +DG_DATA01/test/datafile/undotbs2.260.75518577 - dbid changed, wrote new name<br /> Datafile +DG_DATA01/test/datafile/users.257.75518565 - dbid changed, wrote new name<br /> Control File +DG_SYS01/test/control01.ctl - dbid changed, wrote new name<br /> Control File +DG_DATA01/test/control02.ctl - dbid changed, wrote new name<br /> Instance shut down<br /><br />Database name changed to NEW.<br />Modify parameter file and generate a new password file before restarting.<br />Database ID for database NEW changed to 388598347.<br />All previous backups and archived redo logs for this database are unusable.<br />Database has been shutdown, open database with RESETLOGS option.<br />Succesfully changed database name and ID.<br />DBNEWID - Completed succesfully.<br /></code><br /><br /><span style="font-weight:bold;">4.) Copy the old inittest1.ora as initnew1.ora, update the DB_NAME, instance_name parameter to reflect the new name.<br />Then startup mount</span><br /><code><br />SQL> startup mount pfile='/home/oracle/software/dbcreate/test/inittest1.ora' <br />ORACLE instance started.<br /><br />Total System Global Area 1.2527E+10 bytes<br />Fixed Size 2238104 bytes<br />Variable Size 8120174952 bytes<br />Database Buffers 4294967296 bytes<br />Redo Buffers 109346816 bytes<br />Database mounted.<br /></code><br /><br /><span style="font-weight:bold;">5.) Resetlog open the database. </span><br /><code><br />SQL> ALTER DATABASE OPEN RESETLOGS;<br />Database altered.<br /><br />SQL> select open_mode from v$database;<br /><br />OPEN_MODE<br />--------------------<br />READ WRITE<br /><br /></code><br /><br /><span style="font-weight:bold;">6.) Create spfile</span><br /><code><br />SQL> create spfile='+DG_SYS01/NEW/spfileNEW.ora' from pfile='/home/oracle/software/dbcreate/test/inittest1.ora';<br /><br />File created.<br /></code><br />NOTE: For single node DB, steps are over. Step 7 for RAC only.<br /><br /><span style="font-weight:bold;">7.) Add DB to the cluster</span><br /><code><br />[oracle@testing1]~/software/dbcreate/test% srvctl add database -d NEW -o /home/oracle/product/11.2 -r primary -s OPEN -p +DG_SYS01/NEW/spfileNEW.ora<br />[oracle@testing1]~/software/dbcreate/test% srvctl add instance -d NEW -i NEW1 -n testing1<br />[oracle@testing1]~/software/dbcreate/test% srvctl add instance -d NEW -i NEW2 -n testing2<br />[oracle@testing1]~/software/dbcreate/test% srvctl config database -d NEW -a<br />Database unique name: NEW<br />Database name: <br />Oracle home: /home/oracle/product/11.2<br />Oracle user: oracle<br />Spfile: +DG_SYS01/NEW/spfileNEW.ora<br />Domain: <br />Start options: open<br />Stop options: immediate<br />Database role: PRIMARY<br />Management policy: AUTOMATIC<br />Server pools: NEW<br />Database instances: NEW1,NEW2<br />Disk Groups: <br />Mount point paths: <br />Services: <br />Type: RAC<br />Database is enabled<br />Database is administrator managed<br />[oracle@testing1]~/software/dbcreate/test% vi inittest1.ora <br />[oracle@testing1]~/software/dbcreate/test% srvctl start database -d NEW<br />[oracle@testing1]~/software/dbcreate/test% srvctl status database -d NEW<br />Instance NEW1 is running on node testing1<br />Instance NEW2 is running on node testing2<br /><br /> INST_ID INSTANCE_NAM HOST_NAME STATUS STARTED VERSION<br />-------- ------------------------- ----------------------------------- ---------- <br /> 1 new1 testing1 OPEN 20 Jul 18:25:20 11.2.0.2.0<br /> 2 new2 testing2 OPEN 20 Jul 18:25:22 11.2.0.2.0<br /></code>Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com6tag:blogger.com,1999:blog-4092304359380397372.post-1087383539144685442011-05-19T05:13:00.001+05:302011-05-19T05:15:16.281+05:30IMPDP Stuck with wait event - "wait for unread message on broadcast channel"I was trying to run data import using impdp and the job was stuck with wait event "wait for unread message on broadcast channel".<br />This is an idle wait event as per oracle, that means oracle is waiting for something to happen for the session to proceed.<br /><br />I googled and checked metalink but couldn't really find a solution and my job was stuck indefinitely.<br />From one of the forums online I figured out an old defunct job in the DB can cause new impdp sessions to be stuck.<br /><br />Hence I queried dba_datapump_jobs and found out that I have an old job in "NOT RUNNING" state:<br /><code><br />SQL> select * from dba_datapump_jobs;<br /><br />OWNER_NAME JOB_NAME OPERATION JOB_MODE STATE DEGREE ATTACHED_SESSIONS DATAPUMP_SESSIONS<br />------------ ------------------------------ ------------ ------------ ------------------- ------------ ----------------- -----------------<br />SYSTEM NEW1 IMPORT TABLE EXECUTING 4 1 3<br />SYSTEM SYS_IMPORT_FULL_01 IMPORT FULL NOT RUNNING 0 0 0<br /></code><br />Checked to find the underlying object:<br /><code><br />SQL> SELECT a.object_id, a.object_type, a.owner, a.object_name, a.status<br /> FROM dba_objects a, dba_datapump_jobs j<br /> WHERE a.owner=j.owner_name AND a.object_name=j.job_name<br /> and j.job_name='SYS_IMPORT_FULL_01';<br /><br /> OBJECT_ID OBJECT_TYPE OWNER OBJECT_NAME STATUS<br />------------ ------------------- -------------------- ---------------------- -------<br /> 984119 TABLE SYSTEM SYS_IMPORT_FULL_01 VALID<br /><br />15:02:47 SQL> select owner,object_name,subobject_name, object_type,last_ddl_time from dba_objects where object_id=984119<br />/<br /><br />OWNER OBJECT_NAME SUBOBJECT_NAME OBJECT_TYPE LAST_DDL_TIME<br />-------------------- ---------------------------------------- ------------------------------ ------------------- -------------------<br />SYSTEM SYS_IMPORT_FULL_01 TABLE 13-08-2010 19:59:50<br /></code><br />Dropped the datapump job table:<br /><code><br />15:02:59 SQL> drop table SYSTEM.SYS_IMPORT_FULL_01;<br /><br />Table dropped.<br /></code><br />And then my impdp job "NEW1" started progressing:<br /><code><br />15:04:03 SQL> select * from dba_datapump_jobs;<br /><br />OWNER_NAME JOB_NAME OPERATION JOB_MODE STATE DEGREE ATTACHED_SESSIONS DATAPUMP_SESSIONS<br />------------ ------------------------------ ------------ ------------ ------------------- ------------ ----------------- -----------------<br />SYSTEM NEW1 IMPORT TABLE EXECUTING 4 1 6<br /></code><br /><span style="font-weight:bold;">NOTE:</span> Please make sure that the old job is NOT RUNNING.<br />Secondly, if its a known job you can also try to:<br />impdp username/password attach=JOB_NAME<br />and then at the IMPDP prompt do a kill_job. This should also clear the jobs status from dba_datapump_jobs.Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com2tag:blogger.com,1999:blog-4092304359380397372.post-43798038483331738822011-01-27T00:47:00.007+05:302011-02-09T05:06:06.941+05:30Drop Materialized View takes a long timeRecently I had to drop a couple of large Materialized View.<br />And dropping them was taking a long time, as it tries to drop the data in both source and destination DB. In Source DB it tries to purge the mview log and at destination mview itself.<br />To accelerate the process I tried truncating the mview tables at destination and also the mview log table at source.<br /><br /><span style="font-weight:bold;">At destination (mview site):</span><br /><code><br />truncate table mview_to_drop;<br /></code><br /><span style="font-weight:bold;">At source (mview log site):</span><br /><code><br />select master,log_table from dba_mview_logs where master='MVIEW_TO_DROP';<br />LOG_OWNER MASTER LOG_TABLE<br />------------ ------------------------------ ------------------------------<br />SCOTT MVIEW_TO_DROP MLOG$_MVIEW_TO_DROP<br /><br />truncate table SCOTT.MLOG$_MVIEW_TO_DROP;<br /><br /></code><br /><br /><span style="font-weight:bold;">Now back at destination site:</span><br /><code><br />drop materialized view SCOTT.MVIEW_TO_DROP;<br /><br />Materialized view dropped.<br /><br /></code><br /><br />This is the fastest way I could find, please let me know if anyone else has any ideas.Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com4tag:blogger.com,1999:blog-4092304359380397372.post-52126945210063907322011-01-14T04:41:00.002+05:302011-01-14T04:46:42.662+05:30How to Setup Resource Manager to Control DB ResourcesStep By Step Setup:<br /><br /><span style="font-weight:bold;">Step 1: Create a work area for creation/modification of resource manager objects.</span><br /><code><br />SQL> exec dbms_resource_manager.create_pending_area(); <br /></code><br /><span style="font-weight:bold;">Step 2: Create Resource Manager PLAN</span><br /><code> <br />SQL> exec dbms_resource_manager.create_plan(plan => 'PLAN_NAME', comment => 'Comments abt the plan'); <br />e.g.<br />SQL> exec dbms_resource_manager.create_plan( plan => 'ETL_PLAN', comment => 'PLAN for ETL processes'); <br /></code><br /><span style="font-weight:bold;">Step 3: Create a consumer group which to which the PLAN details would be assigned</span><br /><code> <br />SQL> exec dbms_resource_manager.create_consumer_group ( consumer_group => 'COUNSUMER_GROUP_NAME' , comment =>'Comments abt the consumer_group'); <br /><br />e.g.<br />SQL> exec dbms_resource_manager.create_consumer_group ( consumer_group => 'ETL_GROUP' , comment =>'Check Max Degree of parallelism for ETL process'); <br /></code><br /><span style="font-weight:bold;">Step 4: Assign the Consumer group to the Resource Plan created and define the resource limits<br /></span><code> <br />SQL> exec dbms_resource_manager.create_plan_directive( plan => 'ETL_PLAN', <br /> group_or_subplan => 'ETL_GROUP',<br /> comment => '',<br /> cpu_p1 => NULL,<br /> cpu_p2 => NULL,<br /> cpu_p3 => NULL,<br /> cpu_p4 => NULL,<br /> cpu_p5 => NULL,<br /> cpu_p6 => NULL,<br /> cpu_p7 => NULL,<br /> cpu_p8 => NULL,<br /> parallel_degree_limit_p1 => 1,<br /> active_sess_pool_p1 => NULL,<br /> queueing_p1 => NULL,<br /> switch_group => NULL,<br /> switch_time => NULL,<br /> switch_estimate => false,<br /> max_est_exec_time => NULL,<br /> undo_pool => NULL,<br /> max_idle_time => NULL,<br /> max_idle_blocker_time => NULL,<br /> switch_time_in_call => NULL); <br /></code><br /><span style="font-weight:bold;">Examples:</span><br /><span style="font-weight:bold;">1.) Limit max parallelism</span><br /><code> <br />SQL> exec dbms_resource_manager.create_plan_directive ( plan => 'ETL_PLAN', <br /> group_or_subplan =>'ETL_GROUP',<br /> comment => 'Limit CPU resource', <br /> parallel_degree_limit_p1 => 4 ); <br /></code><br /><span style="font-weight:bold;">2.) Disconnect Idle Users after a Predetermined time</span><br /><code> <br />SQL> exec dbms_resource_manager.create_plan_directive(plan => 'ETL_PLAN', <br /> group_or_subplan => 'ETL_GROUP', <br /> comment => 'Limit idle time', <br /> max_idle_time => 300);<br /></code><br /><span style="font-weight:bold;">3.) Control CPU Resources </span><br /><code> <br />SQL> exec dbms_resource_manager.create_plan_directive ( plan => 'ETL_PLAN', <br /> group_or_subplan =>'ETL_GROUP',<br /> comment => 'Limit CPU resource', <br /> cpu_p1 => 80 ); <br /></code><br /><span style="font-weight:bold;">4.) Limit max number of concurrently active sessions </span><br /><code> <br />SQL> exec DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE ( plan => 'ETL_PLAN',<br /> group_or_subplan =>'ETL_GROUP', <br /> comment => 'Max 10 Active Sessions with 20 in queue, rest to timeout', <br /> active_sess_pool_p1=>10, <br /> queueing_p1=>20);<br /></code><br /><span style="font-weight:bold;">Step 5: Validate the PLAN </span>setting. <br /><code> <br />SQL> exec dbms_resource_manager.validate_pending_area(); <br /></code><br />You will encounter the below error:<br /><code> <br />ERROR at line 1:<br />ORA-29382: validation of pending area failed<br />ORA-29377: consumer group OTHER_GROUPS is not part of top-plan ETL_PLAN<br />ORA-06512: at "SYS.DBMS_RMIN", line 437<br />ORA-06512: at "SYS.DBMS_RESOURCE_MANAGER", line 798<br />ORA-06512: at line 2<br /></code><br />Basically for each plan we need to define the plan directives for the OTHER_GROUPS also, what that means is determine limits for all other sessions other than those bound by the consumer group ETL_GROUP.<br /><code> <br />SQL> exec dbms_resource_manager.create_plan_directive ( plan => 'ETL_PLAN', <br /> group_or_subplan =>'OTHER_GROUPS',<br /> comment => 'Limit CPU resource', <br /> parallel_degree_limit_p1 => 2); <br /><br />SQL> exec dbms_resource_manager.validate_pending_area(); <br /></code> <br /><span style="font-weight:bold;">Step 6: Submit the changes/pending area that was created</span><br /><code> <br />SQL> exec dbms_resource_manager.submit_pending_area(); <br /></code><br /><span style="font-weight:bold;">Step 7: Switch the consumer group of the schema/user</span><br /><code> <br />SQL> exec dbms_resource_manager.create_pending_area(); <br />SQL> exec dbms_resource_manager_privs.grant_switch_consumer_group(grantee_name=>'SCOTT',consumer_group=>'ETL_GROUP',grant_option=>FALSE); <br /><br />Make is the default/initial consumer group for the user.<br />SQL> exec dbms_resource_manager.set_initial_consumer_group(user => 'SCOTT',consumer_group =>'ETL_GROUP'); <br /><br />SQL> exec dbms_resource_manager.submit_pending_area(); <br /></code><br /><br /><span style="font-weight:bold;">Others:</span><br /><span style="font-weight:bold;">Modify Consumer Group:</span><br /><code> <br />exec dbms_resource_manager.UPDATE_PLAN_DIRECTIVE( plan => 'ETL_PLAN', group_or_subplan => 'ETL_GROUP', new_comment => 'ETL_GROUP Change the DOP to 8', new_parallel_degree_limit_p1 => 8);<br /></code>Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com0tag:blogger.com,1999:blog-4092304359380397372.post-58371898692437580132010-11-30T07:33:00.002+05:302010-11-30T07:36:40.921+05:30How to refresh MVIEW in parallelRefresh TYPES are COMPLETE/FAST/ON COMMIT/ON DEMAND<br />Couple of things you should do to make a mview to refresh in parallel:<br />1.) Alter the master table to make sure it allows parallelism:<br /><code><br />alter table <table_name> parallel (degree 4);<br />To check<br />select degree from dba_tables where table_name='<table_name>';<br /></code><br />2.) When you create the mview log (incase of FAST refresh mviews), create it with a parallel clause:<br /><code><br />create materialized view log on <table_name> parallel (degree 4);<br />OR<br />Incase of existing mviews:<br />alter materialized view log on <table_name> parallel (degree 4);<br /></code><br />3.) When you create the mview, create it with a parallel clause:<br /><code><br />create materialized view <mview_name> REFRESH COMPLETE ON DEMAND as select /*+ PARALLEL (table_name,4) */ * from <table_name>@dblink;<br />OR<br />create materialized view <mview_name> REFRESH COMPLETE ON DEMAND parallel 4 as select * from <table_name>@dblink;<br />Or<br />Incase of existing mviews:<br />alter table <mview_name> parallel (degree 4);<br />alter materialized view <mview_name> parallel (degree 4);<br /></code><br />Lastly while executing the refresh:<br /><code><br />EXECUTE DBMS_MVIEW.REFRESH(LIST=>'<mview_name>',PARALLELISM=>4);<br /></code><br />This should make your mview refresh in parallel. With the above example the mview should run with parallel degree 4.<br /><br />PS: Make sure that parallel is enabled for your database, check parameters:<br /><br />PARALLEL_MAX_SERVERS <br />PARALLEL_EXECUTION_MESSAGE_SIZE <br />PARALLEL_ADAPTIVE_MULTI_USER <br />PARALLEL_AUTOMATIC_TUNING <br /><br />Make sure that the above parameter are set to allow any parallelism to work.<br />Sample values for these parameters:<br /><code><br />SQL> show parameter PARALLEL_MAX_SERVERS<br />NAME TYPE VALUE<br />------------------------------------ ----------- ------------------------------<br />parallel_max_servers integer 120<br />SQL> show parameter PARALLEL_EXECUTION_MESSAGE_SIZE<br />NAME TYPE VALUE<br />------------------------------------ ----------- ------------------------------<br />parallel_execution_message_size integer 16384<br />SQL> show parameter PARALLEL_ADAPTIVE_MULTI_USER<br />NAME TYPE VALUE<br />------------------------------------ ----------- ------------------------------<br />parallel_adaptive_multi_user boolean TRUE<br />SQL> show parameter PARALLEL_AUTOMATIC_TUNING<br />NAME TYPE VALUE<br />------------------------------------ ----------- ------------------------------<br />parallel_automatic_tuning boolean FALSE<br /></code><br /><br />Note: <br />1.) Replace <table_name> with the table name.<br />2.) Replace <mview_name> with materialized view name.<br />3.) Replacedblink with the name of the database link.Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com2tag:blogger.com,1999:blog-4092304359380397372.post-74765482595463266962010-11-17T00:06:00.004+05:302010-11-17T00:18:15.591+05:30Import Error: IMP-00032: SQL statement exceeded buffer lengthWhile trying to import a big table with 1000s of partitions I got error:<br /><code><br />IMP-00032: SQL statement exceeded buffer length<br />IMP-00008: unrecognized statement in the export file:<br /> MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "TEST_PART_1" NOLOGGING COMPRESS, PARTITION "TEST_NOV_1" VALUES LESS THAN (2010112806) PCTFREE 0 PCTUSED 40...<br /></code><br />The table was exported simiply with:<br /><code><br />exp system/oracle file=tab.dmp tables=table_part<br /></code><br />While run import:<br /><code><br />imp system/oracle file=tab.dmp fromuser=scott touser=tiger<br /></code><br />I got the above error.<br />I tried various combination of parameter buffer i.e.<br /><code><br />imp system/oracle file=tab.dmp fromuser=scott touser=tiger buffer=1000000 commit=y<br /></code><br />etc, but still got the error. So I wanted to know whats the value required for buffer.<br /><br />Solution:<br />In the source database we need to run:<br /><code><br />SQL> select dbms_lob.getlength (dbms_metadata.get_ddl('TABLE','table_part','SCOTT')) "SQL_LENGTH" from dual;<br /><br />SQL_LENGTH<br />----------<br /> 3886502<br /></code><br />The above output gives the value of buffer we need to have atleast to run the import, so I used:<br /><code><br />imp system/o1ympic file=tabs.dmp log=tabs.log fromuser=SCOTT touser=TIGER commit=y ignore=Y buffer=44886502<br /></code><br /><br />This solved the problem.<br />Metalink Note: 846397.1Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com2tag:blogger.com,1999:blog-4092304359380397372.post-66287456549053406692010-09-09T06:05:00.003+05:302010-09-09T06:11:14.997+05:30Oracle 11gr2 Grid: root.sh fails on node2, asmlib issueA very interesting problem which took me quite a while to resolve.<br />Issue while running root.sh on node 2 during 11gr2 grid software installation i was receiving the following error:<br />Error in root.sh:<br /><code><br />DiskGroup DG_SYS01 creation failed with the following message:<br />ORA-15018: diskgroup cannot be created<br />ORA-15031: disk specification 'ORCL:DISK0' matches no disks<br /><br /><br />Configuration of ASM failed, see logs for details<br />Did not succssfully configure and start ASM<br />CRS-2500: Cannot stop resource 'ora.crsd' as it is not running<br />CRS-4000: Command Stop failed, or completed with errors.<br />Command return code of 1 (256) from command: /oragrid/product/11.2/bin/crsctl stop resource ora.crsd -init<br />Stop of resource "ora.crsd -init" failed<br />Failed to stop CRSD<br /></code><br /><br />Error in ASM alert log:<br /><code><br />ORA-15183: ASMLIB initialization error [driver/agent not installed]<br />WARNING: FAILED to load library: /opt/oracle/extapi/64/asm/orcl/1/libasm.so<br />ERROR: diskgroup DG_SYS01 was not mounted<br />NOTE: cache deleting context for group DG_SYS01 1/-239075992<br />WARNING: Disk Group DG_SYS01 containing configured OCR is not mounted<br />ORA-15032: not all alterations performed<br />ORA-15017: diskgroup "DG_SYS01" cannot be mounted<br />ORA-15063: ASM discovered an insufficient number of disks for diskgroup "DG_SYS01"<br />ERROR: ALTER DISKGROUP ALL MOUNT<br />Wed Sep 08 22:09:42 2010<br />SQL> CREATE DISKGROUP DG_SYS01 EXTERNAL REDUNDANCY DISK 'ORCL:DISK0' ATTRIBUTE 'compatible.asm'='11.2.0.0.0' /* ASMCA */<br />ORA-15018: diskgroup cannot be created<br />ORA-15031: disk specification 'ORCL:DISK0' matches no disks<br />ERROR: CREATE DISKGROUP DG_SYS01 EXTERNAL REDUNDANCY DISK 'ORCL:DISK0' ATTRIBUTE 'compatible.asm'='11.2.0.0.0' /* ASMCA */<br />kfdp_dismount(): 3<br />kfdp_dismountBg(): 3<br />ERROR: diskgroup DG_SYS01 was not created<br /></code><br /><br />What was puzzling was that why is node2 trying to run CREATE diskgroup, while node1 has run successfully and created the diskgroup.<br />Other errors in cssd.log<br /><code><br />2010-09-08 20:06:14.856: [ SKGFD][1151920448]ERROR: -14(asmlib /opt/oracle/extapi/64/asm/orcl/1/libasm.so version failed with 2)<br />...<br />2010-09-08 20:06:14.856: [ SKGFD][1151920448]Discovery skipping bad asmlib :ASM:/opt/oracle/extapi/64/asm/orcl/1/libasm.so:<br /><br />2010-09-08 20:06:14.856: [ CSSD][1151920448]clssnmvDiskVerify: Successful discovery of 0 disks<br />2010-09-08 20:06:14.856: [ CSSD][1151920448]clssnmCompleteInitVFDiscovery: Completing initial voting file discovery<br />2010-09-08 20:06:14.857: [ CSSD][1151920448]clssnmvFindInitialConfigs: No voting files found<br /></code><br /><br />This showed that it looked like an issue with the oracleasm library.<br />But I was able to execute all /etc/init.d/oracleasm commands without any problems.<br />e.g /etc/init.d/oracleasm listdisks --> this showed all the disk correctly.<br /><br />I tried rerunning /etc/init.d/oracleasm configure. But still continued to get the error.<br /><br />I used steps mentioned in http://jarneil.wordpress.com/2008/07/07/asmlib-troubleshooting/ to make sure the libraries were installed properly. This note was really helpful, I would like to thank the author.<br />The libraries were installed properly.<br /><br />I had actually reinstalled the oracleasm libraries also:<br /><code><br />[oracle@node2]/% rpm -qa |grep oracleasm<br />oracleasm-support-2.1.3-1.el5<br />oracleasm-2.6.18-128.el5debug-2.0.5-1.el5<br />oracleasm-2.6.18-128.el5-2.0.5-1.el5<br />oracleasm-2.6.18-128.el5xen-2.0.5-1.el5<br />oracleasm-2.6.18-128.el5-debuginfo-2.0.5-1.el5<br />oracleasmlib-2.0.4-1.el5<br /></code><br /><br />Finally after a lot of searching (google, metalink..etc...etc).<br />I found metalink note "FAQ ASMLIB CONFIGURE,VERIFY, TROUBLESHOOT [ID 359266.1]" on metalink and started with all the checks mentioned.<br />Finally I figured out that there was problem with my /etc/sysconfig/oracleasm file. This file on other servers is a sym link:<br /><code><br />[oracle@node1]/% ls -lrt /etc/sysconfig/oracle*<br />-rw-r--r-- 1 root root 774 Sep 8 23:32 /etc/sysconfig/oracleasm-_dev_oracleasm<br />lrwxrwxrwx 1 root root 24 Sep 8 23:36 /etc/sysconfig/oracleasm -> oracleasm-_dev_oracleasm<br /></code><br />But in my case it was:<br /><code><br />[root@node2 sysconfig]# ls -lrt oracle*<br />-rw-r--r-- 1 root root 574 Mar 18 2009 oracleasm<br />lrwxrwxrwx 1 root root 24 Sep 7 23:30 oracleasm.rpmsave -> oracleasm-_dev_oracleasm<br />-rw-r--r-- 1 root root 774 Sep 8 23:32 oracleasm-_dev_oracleasm<br /></code><br />And all the parameters were blank inside oracleasm. What I understood is that libasm.so used oracleasm file.<br />So I:<br /><code><br />[root@node2 sysconfig]# ln -s oracleasm-_dev_oracleasm oracleasm<br />[root@node2 sysconfig]# ls -lrt oracle*<br />lrwxrwxrwx 1 root root 24 Sep 7 23:30 oracleasm.rpmsave -> oracleasm-_dev_oracleasm<br />-rw-r--r-- 1 root root 774 Sep 8 23:32 oracleasm-_dev_oracleasm<br />lrwxrwxrwx 1 root root 24 Sep 8 23:36 oracleasm -> oracleasm-_dev_oracleasm<br />[root@node2 sysconfig]# rm oracleasm.rpmsave<br />rm: remove symbolic link `oracleasm.rpmsave'? y<br /></code><br /><br />Now as I had already run root.sh and it had failed, i was unable to run it again:<br /><code><br />[root@node2 11.2]# ./root.sh<br />Running Oracle 11g root.sh script...<br /><br />The following environment variables are set as:<br /> ORACLE_OWNER= oracle<br /> ORACLE_HOME= /oragrid/product/11.2<br /><br />Enter the full pathname of the local bin directory: [/usr/local/bin]:<br />The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)<br />[n]: y<br /> Copying dbhome to /usr/local/bin ...<br />The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)<br />[n]: y<br /> Copying oraenv to /usr/local/bin ...<br />The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)<br />[n]: y<br /> Copying coraenv to /usr/local/bin ...<br /><br />Entries will be added to the /etc/oratab file as needed by<br />Database Configuration Assistant when a database is created<br />Finished running generic part of root.sh script.<br />Now product-specific root actions will be performed.<br />2010-09-08 23:37:12: Parsing the host name<br />2010-09-08 23:37:12: Checking for super user privileges<br />2010-09-08 23:37:12: User has super user privileges<br />Using configuration parameter file: /oragrid/product/11.2/crs/install/crsconfig_params<br />CRS is already configured on this node for crshome=0<br />Cannot configure two CRS instances on the same cluster.<br />Please deconfigure before proceeding with the configuration of new home.<br /></code><br /><br />So first we have to deconfigure the previous run of root.sh:<br /><code><br />[root@node2 11.2]# crs/install/rootcrs.pl -verbose -deconfig -force<br />2010-09-08 23:37:48: Parsing the host name<br />2010-09-08 23:37:48: Checking for super user privileges<br />2010-09-08 23:37:48: User has super user privileges<br />Using configuration parameter file: crs/install/crsconfig_params<br />PRCR-1035 : Failed to look up CRS resource ora.cluster_vip.type for 1<br />PRCR-1068 : Failed to query resources<br />Cannot communicate with crsd<br />PRCR-1070 : Failed to check if resource ora.gsd is registered<br />Cannot communicate with crsd<br />PRCR-1070 : Failed to check if resource ora.ons is registered<br />Cannot communicate with crsd<br />PRCR-1070 : Failed to check if resource ora.eons is registered<br />Cannot communicate with crsd<br /><br />ACFS-9200: Supported<br />CRS-4535: Cannot communicate with Cluster Ready Services<br />CRS-4000: Command Stop failed, or completed with errors.<br />CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'node2'<br />CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'node2'<br />CRS-2677: Stop of 'ora.drivers.acfs' on 'node2' succeeded<br />CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'node2' has completed<br />CRS-4133: Oracle High Availability Services has been stopped.<br />error: package cvuqdisk is not installed<br />Successfully deconfigured Oracle clusterware stack on this node<br /></code><br /><br />After this I restart oracleasm:<br /><code><br />[root@node2 11.2]# /etc/init.d/oracleasm stop<br />Dropping Oracle ASMLib disks: [ OK ]<br />Shutting down the Oracle ASMLib driver: [ OK ]<br />[root@node2 11.2]# /etc/init.d/oracleasm start<br />Initializing the Oracle ASMLib driver: [ OK ]<br />Scanning the system for Oracle ASMLib disks: [ OK ]<br /></code><br /><br />Check that the sym link is also in place, basically to see if restarting oracleasm changed anything:<br /><code><br />lrwxrwxrwx 1 root root 24 Sep 8 23:36 oracleasm -> oracleasm-_dev_oracleasm<br /></code><br />All looking fine i reran root.sh and it went through fine.<br /><br />Some command that I ran in the pursuit to find the problem:<br /><code><br />/etc/init.d/oracleasm listdisks<br />/etc/init.d/oracleasm start<br />/etc/init.d/oracleasm status<br />ls -rlt /dev/oracleasm/disks/<br />/etc/init.d/oracleasm querydisk DISK0<br />rpm -ql oracleasm-support<br />df -ha |grep asm<br />rpm -ql oracleasmlib<br />/usr/sbin/oracleasm-discover<br />/usr/sbin/oracleasm-discover 'ORCL:*'<br />/usr/sbin/oracleasm-discover 'ORCL:*'<br /></code>Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com3tag:blogger.com,1999:blog-4092304359380397372.post-22371157646884762272010-08-28T05:57:00.005+05:302010-09-02T02:39:37.778+05:30Oracle 11gR2 Grid Infrastructure Installation StepsStep By Step Installation 11gR2 Non ASM<br />========================================<br />Connect as root user:<br />1.) groupadd dba<br />2.) useradd -d /home/oracle -g dba -G dba oracle<br />3.) Create directories for oracle grid installation, the directory path should not be same as $ORACLE_BASE. Assuming $ORACLE_BASE=/oracle.<br /> mkdir /oragrid<br /> Make sure the directory as atleast 5GB free space.<br />4.) Change the owner of the directory to oracle:dba<br /> chown -R oracle:dba /oragrid<br />5.) RPM requirements (From Metalink note# 880989.1:<br /><code><br /> 1.) binutils-2.17.50.0.6-6.el5 (x86_64) <br /> 2.) compat-libstdc++-33-3.2.3-61 (x86_64) <<< both ARCH's are required. See next line. <br /> 3.) compat-libstdc++-33-3.2.3-61 (i386) <<< both ARCH's are required. See previous line. <br /> 4.) elfutils-libelf-0.125-3.el5 (x86_64) <br /> 5.) glibc-2.5-24 (x86_64) <<< both ARCH's are required. See next line. <br /> 6.) glibc-2.5-24 (i686) <<< both ARCH's are required. See previous line. <br /> 7.) glibc-common-2.5-24 (x86_64) <br /> 8.) ksh-20060214-1.7 (x86_64) <br /> 9.) libaio-0.3.106-3.2 (x86_64) <<< both ARCH's are required. See next line. <br /> 10.) libaio-0.3.106-3.2 (i386) <<< both ARCH's are required. See previous line. <br /> 11.) libgcc-4.1.2-42.el5 (i386) <<< both ARCH's are required. See next line. <br /> 12.) libgcc-4.1.2-42.el5 (x86_64) <<< both ARCH's are required. See previous line. <br /> 13.) libstdc++-4.1.2-42.el5 (x86_64) <<< both ARCH's are required. See next line. <br /> 14.) libstdc++-4.1.2-42.el5 (i386) <<< both ARCH's are required. See previous line. <br /> 15.) make-3.81-3.el5 (x86_64) <br /> 16.) elfutils-libelf-devel-0.125-3.el5.x86_64.rpm <br /> a.) requires elfutils-libelf-devel-static-0.125-3.el5.x86_64.rpm as a prerequisite, as listed below. <br /> b.) elfutils-libelf-devel and elfutils-libelf-devel-static each depend upon the other. Therefore, they must be installed together, in one (1) "rpm -ivh" command as follows: <br /> rpm -ivh elfutils-libelf-devel-0.125-3.el5.x86_64.rpm elfutils-libelf-devel-static-0.125-3.el5.x86_64.rpm <br /> 17.) glibc-headers-2.5-24.x86_64.rpm <br /> a.) requires kernel-headers-2.6.18-92.el5.x86_64.rpm as a prerequisite, as listed below <br /> 18.) glibc-devel-2.5-24.x86_64.rpm <<< both ARCH's are required. See next item. <br /> 19.) glibc-devel-2.5-24.i386.rpm <<< both ARCH's are required. See previous item. <br /> 20.) gcc-4.1.2-42.el5.x86_64.rpm <br /> a.) requires libgomp-4.1.2-42.el5.x86_64.rpm as a prerequisite, as listed below <br /> 21.) libstdc++-devel-4.1.2-42.el5.x86_64.rpm <br /> 22.) gcc-c++-4.1.2-42.el5.x86_64.rpm <br /> 23.) libaio-devel-0.3.106-3.2.x86_64.rpm <<< both ARCH's are required. See next item <br /> 24.) libaio-devel-0.3.106-3.2.i386.rpm <<< both ARCH's are required. See previous item. <br /> 25.) sysstat-7.0.2-1.el5.x86_64.rpm <br /> 26.) unixODBC-2.2.11-7.1.x86_64.rpm <<< both ARCH's are required. See next item <br /> 27.) unixODBC-2.2.11-7.1.i386.rpm <<< both ARCH's are required. See previous item. <br /> 28.) unixODBC-devel-2.2.11-7.1.x86_64.rpm <<< both ARCH's are required. See next item <br /> 29.) unixODBC-devel-2.2.11-7.1.i386.rpm <<< both ARCH's are required. See previous item. <br /></code><br />Command to check:<br /><code><br /> rpm -qa |grep -E "binutils|compat-libstdc++|elfutils-libelf-|glibc-|glibc-common-|ksh-|libaio-|libgcc-|libstdc++|make|gcc|sysstat|unixODBC"<br /></code> <br />6.) Values for /etc/sysctl.conf (these are suggested, these values should be calculated with respect to the memory/cpu/processes of the server.)<br /><code> <br /> kernel.shmall = physical RAM size / pagesize For most systems<br /> kernel.shmmax = 1/2 of physical RAM eg. for 32g ram it should be 17179869184.<br /> kernel.shmmni = 4096 <br /> kernel.sem = 250 32000 100 128 <br /> fs.file-max = 409200<br /> fs.aio-max-nr = 1048576<br /> net.ipv4.ip_local_port_range = 9000 65500 <br /> net.core.rmem_default = 262144 <br /> net.core.rmem_max = 4194304 <br /> net.core.wmem_default = 262144 <br /> net.core.wmem_max = 1048576 <br /></code><br />7.) Make sure u have configured a scan IP, for more details on what is scan IP please refer to: http://www.oracle.com/technetwork/database/clustering/overview/scan-129069.pdf<br />Make sure your /etc/hosts file has entries or hostname, host IP address, Interconnect name, Interconnect IP address, virtual hostname, virtual host IP address for all RAC nodes and on all RAC nodes.<br /><br />8a.) Since we are using Network Time Protocol (NTP) for synchronization of time across all the servers in the cluster, a mandatory requirement with 11gR2 is to enable the slewing option by adding ‘-x’ argument in the ntp configuration file as seen below: -<br /># vi /etc/sysconfig/ntpd<br /><code><br /># Drop root to id 'ntp:ntp' by default.<br />OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid" #add -x in the options string.<br /># Set to 'yes' to sync hw clock after successful ntpdate<br />SYNC_HWCLOCK=no<br /># Additional options for ntpdate<br />NTPDATE_OPTIONS="" <br /></code><br /><span style="font-weight:bold;">Restart ntpd daemon.</span><br />[root@node1 oracle]# /etc/init.d/ntpd stop<br />Shutting down ntpd: [ OK ]<br />[root@node1 oracle]# /etc/init.d/ntpd start<br />ntpd: Synchronizing with time server: [ OK ]<br />Starting ntpd: [ OK ]<br /><br />8b.) Update /etc/security/limits.conf with:<br /><code><br /> oracle soft nproc 2047 <br /> oracle hard nproc 16384 <br /> oracle soft nofile 1024 <br /> oracle hard nofile 65536<br /></code><br />9.) Add following line in the /etc/pam.d/login file:<br /><code><br /> session required pam_limits.so <br /></code><br />10.) Add the following lines to /etc/profile: <br /><code><br /> if [ $USER = "oracle" ]; then <br /> if [ $SHELL = "/bin/ksh" ]; then <br /> ulimit -u 16384 <br /> ulimit -n 65536 <br /> else <br /> ulimit -u 16384 -n 65536 <br /> fi <br /> fi <br /></code> <br />11.) Setup user equivalence between the oracle user of the rac nodes.<br />12.) Run Cluverify (change directory where you have copied and unzipped the oracle 11gr2 grid software)<br />#./runcluvfy.sh stage -pre crsinst -n node1,node2 -verbose<br /><br />--Fix any error you see.<br /><br />13.) Start ./runInstaller<br />Screenshots:<br /><br /><a href="http://picasaweb.google.com/lh/photo/Gl0jWFlCt4VsY5Vj9_J4qw?feat=embedwebsite"><img src="http://lh4.ggpht.com/_viek7Sw5RrM/THhhnftqAJI/AAAAAAAABNA/jTqWzRGMQRM/s400/1.JPG" /></a><br /><br /><span style="font-weight:bold;">Welcome Screen</span><br /><br />14.) <br /><a href="http://picasaweb.google.com/lh/photo/ePREUMEqMBhT55UqmeyBLg?feat=embedwebsite"><img src="http://lh5.ggpht.com/_viek7Sw5RrM/THhTwMgQ1nI/AAAAAAAABLU/Ip5MdpAnbeU/s400/2.JPG" /></a><br /><br /><span style="font-weight:bold;">Select Advanced Installation</span><br /><br />15.)<br /><a href="http://picasaweb.google.com/lh/photo/u_LQfdTSkJqxEHFWf3f5Kg?feat=embedwebsite"><img src="http://lh5.ggpht.com/_viek7Sw5RrM/THhTwNMcNxI/AAAAAAAABLY/PCotkjCb6dE/s400/3.JPG" /></a><br /><br /><span style="font-weight:bold;">Select all required languages, I have selected only English</span><br /><br />16.)<br /><a href="http://picasaweb.google.com/lh/photo/AxIXPOFycc9vW5E5ldBPZA?feat=embedwebsite"><img src="http://lh4.ggpht.com/_viek7Sw5RrM/THhTwa1iunI/AAAAAAAABLc/fMQsNs7YnjE/s400/4.JPG" /></a><br /><br /><span style="font-weight:bold;">Specify scan name, cluster name, and scan listener port.</span><br /><br />17.) <br /><a href="http://picasaweb.google.com/lh/photo/3f_Sm36Q5j9Q4Ttyy1O24A?feat=embedwebsite"><img src="http://lh5.ggpht.com/_viek7Sw5RrM/THhTwXyLkoI/AAAAAAAABLg/w8432XZBKdo/s400/5.JPG" /></a><br /><br /><span style="font-weight:bold;">Provide RAC node information, along with virtual name.</span><br /><br />18.)<br /><a href="http://picasaweb.google.com/lh/photo/SzH5UQ2G8PDVWK2fjEbJNg?feat=embedwebsite"><img src="http://lh3.ggpht.com/_viek7Sw5RrM/THhT3tzgIII/AAAAAAAABLk/983iy4pl_fY/s400/6.JPG" /></a><br /><br /><span style="font-weight:bold;">Review is the the interfaces, subnet mask are correct and select the public/private accordingly.(private is for interconnect).<br /></span><br /><br />19.) <br /><a href="http://picasaweb.google.com/lh/photo/nB7nJEt7dqkysDYe26EacQ?feat=embedwebsite"><img src="http://lh3.ggpht.com/_viek7Sw5RrM/THhT3newobI/AAAAAAAABLo/dh5xHJze0i8/s400/7.JPG" /></a><br /><br /><span style="font-weight:bold;">Oracle will do some validation checks</span><br /><br />20.)<br /><a href="http://picasaweb.google.com/lh/photo/q6HFDcBCfZN9DGYkYShgDg?feat=embedwebsite"><img src="http://lh6.ggpht.com/_viek7Sw5RrM/THhT3wtaQSI/AAAAAAAABLs/Uzoqhs7YcQk/s400/8.JPG" /></a><br /><br /><span style="font-weight:bold;">Select ASM/shared file system, depending on what u are using. I am using shared file system.</span><br /><br />21.)<br /><a href="http://picasaweb.google.com/lh/photo/AVCSnhrOTexTjsLmdyQ1GQ?feat=embedwebsite"><img src="http://lh6.ggpht.com/_viek7Sw5RrM/THhT32gCP0I/AAAAAAAABLw/QNsuM6c-fqA/s400/9.JPG" /></a><br /><br /><span style="font-weight:bold;">Select location for OCR.</span><br /><br />22.)<br /><a href="http://picasaweb.google.com/lh/photo/Q8FLwbZp977YpzoIc5A4CQ?feat=embedwebsite"><img src="http://lh6.ggpht.com/_viek7Sw5RrM/THhbUZwMxsI/AAAAAAAABM0/bRki_UUD47s/s400/10.JPG" /></a><br /><br /><span style="font-weight:bold;">Select location of voting disks.</span><br /><br />23.)<br /><a href="http://picasaweb.google.com/lh/photo/uxOiDCreCQeN67-MktXiCQ?feat=embedwebsite"><img src="http://lh5.ggpht.com/_viek7Sw5RrM/THhT-2Q5TNI/AAAAAAAABL4/oIdFiYyKN-0/s400/11.JPG" /></a><br /><br /><span style="font-weight:bold;">Failure Support, I dont plan to use this.</span><br /><br />24.)<br /><a href="http://picasaweb.google.com/lh/photo/eimpYMqzmqdnf9Uf7JNZ3Q?feat=embedwebsite"><img src="http://lh4.ggpht.com/_viek7Sw5RrM/THhT--oQtCI/AAAAAAAABL8/gzy5HddMgPk/s400/12.JPG" /></a><br /><br /><span style="font-weight:bold;">Select the OS groups.</span><br /><br />25.) <br /><a href="http://picasaweb.google.com/lh/photo/XaxZvuWmVa6Iwbz_3EvIZg?feat=embedwebsite"><img src="http://lh6.ggpht.com/_viek7Sw5RrM/THhT_G8BLAI/AAAAAAAABMA/BHy9nQtYTOA/s400/13.JPG" /></a><br /><br /><span style="font-weight:bold;">Warning message, ignore it</span><br /><br />26.)<br /><a href="http://picasaweb.google.com/lh/photo/VZJmeQo2bt-BYiR2n5zd2w?feat=embedwebsite"><img src="http://lh3.ggpht.com/_viek7Sw5RrM/THhT_OKm0AI/AAAAAAAABME/SgE20aASqSo/s400/14.JPG" /></a><br /><br /><span style="font-weight:bold;">Specify oracle_base and grid installation folder.</span><br /><br />27.)<br /><a href="http://picasaweb.google.com/lh/photo/-8PALzJzbvU0Bc1gRf94Ig?feat=embedwebsite"><img src="http://lh4.ggpht.com/_viek7Sw5RrM/THhT_INLsMI/AAAAAAAABMI/a1HOS99bYlA/s400/15.JPG" /></a><br /><br /><span style="font-weight:bold;">Specify Oracle Inventory Location.</span><br /><br />28.)<br /><a href="http://picasaweb.google.com/lh/photo/KumAV6KZgZckckDyxKm5ww?feat=embedwebsite"><img src="http://lh4.ggpht.com/_viek7Sw5RrM/THhUGL33E9I/AAAAAAAABMM/EXfBQk72iYI/s400/16.JPG" /></a><br /><br /><span style="font-weight:bold;">Oracle perform pre-checks. I am ignoring swap space issue.</span><br /><br />29.)<br /><a href="http://picasaweb.google.com/lh/photo/Dw_1YuNnwjIFOqLLTdXj6A?feat=embedwebsite"><img src="http://lh3.ggpht.com/_viek7Sw5RrM/THhUGCEup_I/AAAAAAAABMQ/ne29cwrDBvc/s400/17.JPG" /></a><br /><br /><span style="font-weight:bold;">Final summary page!!</span><br /><br />30.)<br /><a href="http://picasaweb.google.com/lh/photo/RsUdLwT-d8LKvS-LAxp0wA?feat=embedwebsite"><img src="http://lh4.ggpht.com/_viek7Sw5RrM/THhUGd9ii-I/AAAAAAAABMU/JjwE8lK2nAk/s400/18.JPG" /></a><br /><br /><span style="font-weight:bold;">Ignore this warning</span><br /><br />31.)<br /><a href="http://picasaweb.google.com/lh/photo/GvvFljpxDhn3yKoY6bNXHw?feat=embedwebsite"><img src="http://lh6.ggpht.com/_viek7Sw5RrM/THhUGcyEOyI/AAAAAAAABMY/iNLtPs3ENPI/s400/19.JPG" /></a><br /><br /><span style="font-weight:bold;">Shows installation Progress</span><br /><br />32.)<br /><a href="http://picasaweb.google.com/lh/photo/Qqgf1njrWCHFGrz_ibCyrg?feat=embedwebsite"><img src="http://lh4.ggpht.com/_viek7Sw5RrM/THhUGYJeqOI/AAAAAAAABMc/K1hWZaV3_3E/s400/20.JPG" /></a><br /><br /><span style="font-weight:bold;">Run the scripts</span><br /><br />33.) Run <span style="font-weight:bold;">/oracle/oraInventory/orainstRoot.sh</span><br /><code><br />[root@node1 oraInventory]# ./orainstRoot.sh<br />Changing permissions of /oracle/oraInventory.<br />Adding read,write permissions for group.<br />Removing read,write,execute permissions for world.<br /><br />Changing groupname of /oracle/oraInventory to dba.<br />The execution of the script is complete.<br /></code><br /><br />34.) <span style="font-weight:bold;">Run $GRID_HOME/root.sh</span><br /><code><br />[root@node1 11.2]# ./root.sh<br />Running Oracle 11g root.sh script...<br /><br />The following environment variables are set as:<br /> ORACLE_OWNER= oracle<br /> ORACLE_HOME= /oragrid/product/11.2<br /><br />Enter the full pathname of the local bin directory: [/usr/local/bin]:<br /> Copying dbhome to /usr/local/bin ...<br /> Copying oraenv to /usr/local/bin ...<br /> Copying coraenv to /usr/local/bin ...<br /><br /><br />Creating /etc/oratab file...<br />Entries will be added to the /etc/oratab file as needed by<br />Database Configuration Assistant when a database is created<br />Finished running generic part of root.sh script.<br />Now product-specific root actions will be performed.<br />2010-08-27 23:25:19: Parsing the host name<br />2010-08-27 23:25:19: Checking for super user privileges<br />2010-08-27 23:25:19: User has super user privileges<br />Using configuration parameter file: /oragrid/product/11.2/crs/install/crsconfig_params<br />Creating trace directory<br />LOCAL ADD MODE<br />Creating OCR keys for user 'root', privgrp 'root'..<br />Operation successful.<br /> root wallet<br /> root wallet cert<br /> root cert export<br /> peer wallet<br /> profile reader wallet<br /> pa wallet<br /> peer wallet keys<br /> pa wallet keys<br /> peer cert request<br /> pa cert request<br /> peer cert<br /> pa cert<br /> peer root cert TP<br /> profile reader root cert TP<br /> pa root cert TP<br /> peer pa cert TP<br /> pa peer cert TP<br /> profile reader pa cert TP<br /> profile reader peer cert TP<br /> peer user cert<br /> pa user cert<br />Adding daemon to inittab<br />CRS-4123: Oracle High Availability Services has been started.<br />ohasd is starting<br />CRS-2672: Attempting to start 'ora.gipcd' on 'node1'<br />CRS-2672: Attempting to start 'ora.mdnsd' on 'node1'<br />CRS-2676: Start of 'ora.gipcd' on 'node1' succeeded<br />CRS-2676: Start of 'ora.mdnsd' on 'node1' succeeded<br />CRS-2672: Attempting to start 'ora.gpnpd' on 'node1'<br />CRS-2676: Start of 'ora.gpnpd' on 'node1' succeeded<br />CRS-2672: Attempting to start 'ora.cssdmonitor' on 'node1'<br />CRS-2676: Start of 'ora.cssdmonitor' on 'node1' succeeded<br />CRS-2672: Attempting to start 'ora.cssd' on 'node1'<br />CRS-2672: Attempting to start 'ora.diskmon' on 'node1'<br />CRS-2676: Start of 'ora.diskmon' on 'node1' succeeded<br />CRS-2676: Start of 'ora.cssd' on 'node1' succeeded<br />CRS-2672: Attempting to start 'ora.ctssd' on 'node1'<br />CRS-2676: Start of 'ora.ctssd' on 'node1' succeeded<br />clscfg: -install mode specified<br />Successfully accumulated necessary OCR keys.<br />Creating OCR keys for user 'root', privgrp 'root'..<br />Operation successful.<br />CRS-2672: Attempting to start 'ora.crsd' on 'node1'<br />CRS-2676: Start of 'ora.crsd' on 'node1' succeeded<br />Now formatting voting disk: /u05/cludata/votedisk1.<br />Now formatting voting disk: /u01/oradata/orcl/cludata/votedisk2.<br />Now formatting voting disk: /u02/oradata/orcl/cludata/votedisk3.<br />CRS-4603: Successful addition of voting disk /u05/cludata/votedisk1.<br />CRS-4603: Successful addition of voting disk /u01/oradata/orcl/cludata/votedisk2.<br />CRS-4603: Successful addition of voting disk /u02/oradata/orcl/cludata/votedisk3.<br />## STATE File Universal Id File Name Disk group<br />-- ----- ----------------- --------- ---------<br /> 1. ONLINE a893117617e74ffebfd7a379396f281d (/u05/cludata/votedisk1) []<br /> 2. ONLINE 018eafc00dfd4fa9bf568fa245581dcf (/u01/oradata/orcl/cludata/votedisk2) []<br /> 3. ONLINE 0460f0a8560d4f0abf624c47870654fd (/u02/oradata/orcl/cludata/votedisk3) []<br />Located 3 voting disk(s).<br />CRS-2673: Attempting to stop 'ora.crsd' on 'node1'<br />CRS-2677: Stop of 'ora.crsd' on 'node1' succeeded<br />CRS-2673: Attempting to stop 'ora.ctssd' on 'node1'<br />CRS-2677: Stop of 'ora.ctssd' on 'node1' succeeded<br />CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'node1'<br />CRS-2677: Stop of 'ora.cssdmonitor' on 'node1' succeeded<br />CRS-2673: Attempting to stop 'ora.cssd' on 'node1'<br />CRS-2677: Stop of 'ora.cssd' on 'node1' succeeded<br />CRS-2673: Attempting to stop 'ora.gpnpd' on 'node1'<br />CRS-2677: Stop of 'ora.gpnpd' on 'node1' succeeded<br />CRS-2673: Attempting to stop 'ora.gipcd' on 'node1'<br />CRS-2677: Stop of 'ora.gipcd' on 'node1' succeeded<br />CRS-2673: Attempting to stop 'ora.mdnsd' on 'node1'<br />CRS-2677: Stop of 'ora.mdnsd' on 'node1' succeeded<br />CRS-2672: Attempting to start 'ora.mdnsd' on 'node1'<br />CRS-2676: Start of 'ora.mdnsd' on 'node1' succeeded<br />CRS-2672: Attempting to start 'ora.gipcd' on 'node1'<br />CRS-2676: Start of 'ora.gipcd' on 'node1' succeeded<br />CRS-2672: Attempting to start 'ora.gpnpd' on 'node1'<br />CRS-2676: Start of 'ora.gpnpd' on 'node1' succeeded<br />CRS-2672: Attempting to start 'ora.cssdmonitor' on 'node1'<br />CRS-2676: Start of 'ora.cssdmonitor' on 'node1' succeeded<br />CRS-2672: Attempting to start 'ora.cssd' on 'node1'<br />CRS-2672: Attempting to start 'ora.diskmon' on 'node1'<br />CRS-2676: Start of 'ora.diskmon' on 'node1' succeeded<br />CRS-2676: Start of 'ora.cssd' on 'node1' succeeded<br />CRS-2672: Attempting to start 'ora.ctssd' on 'node1'<br />CRS-2676: Start of 'ora.ctssd' on 'node1' succeeded<br />CRS-2672: Attempting to start 'ora.crsd' on 'node1'<br />CRS-2676: Start of 'ora.crsd' on 'node1' succeeded<br />CRS-2672: Attempting to start 'ora.evmd' on 'node1'<br />CRS-2676: Start of 'ora.evmd' on 'node1' succeeded<br /><br />node1 2010/08/27 23:36:53 /oragrid/product/11.2/cdata/node1/backup_20100827_233653.olr<br />Preparing packages for installation...<br />cvuqdisk-1.0.7-1<br />Configure Oracle Grid Infrastructure for a Cluster ... succeeded<br />Updating inventory properties for clusterware<br />Starting Oracle Universal Installer...<br /><br />Checking swap space: must be greater than 500 MB. Actual 12287 MB Passed<br />The inventory pointer is located at /etc/oraInst.loc<br />The inventory is located at /oracle/oraInventory<br />'UpdateNodeList' was successful.<br /></code><br /><br /><span style="font-weight:bold;">Run the same on node2</span><br /><br /><code><br />[root@node2 11.2]# ./root.sh<br />Running Oracle 11g root.sh script...<br /><br />The following environment variables are set as:<br /> ORACLE_OWNER= oracle<br /> ORACLE_HOME= /oragrid/product/11.2<br /><br />Enter the full pathname of the local bin directory: [/usr/local/bin]:<br /> Copying dbhome to /usr/local/bin ...<br /> Copying oraenv to /usr/local/bin ...<br /> Copying coraenv to /usr/local/bin ...<br /><br /><br />Creating /etc/oratab file...<br />Entries will be added to the /etc/oratab file as needed by<br />Database Configuration Assistant when a database is created<br />Finished running generic part of root.sh script.<br />Now product-specific root actions will be performed.<br />2010-08-27 23:44:15: Parsing the host name<br />2010-08-27 23:44:15: Checking for super user privileges<br />2010-08-27 23:44:15: User has super user privileges<br />Using configuration parameter file: /oragrid/product/11.2/crs/install/crsconfig_params<br />Creating trace directory<br />LOCAL ADD MODE<br />Creating OCR keys for user 'root', privgrp 'root'..<br />Operation successful.<br />Adding daemon to inittab<br />CRS-4123: Oracle High Availability Services has been started.<br />ohasd is starting<br />CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node node1, number 1, and is terminating<br />An active cluster was found during exclusive startup, restarting to join the cluster<br />CRS-2672: Attempting to start 'ora.mdnsd' on 'node2'<br />CRS-2676: Start of 'ora.mdnsd' on 'node2' succeeded<br />CRS-2672: Attempting to start 'ora.gipcd' on 'node2'<br />CRS-2676: Start of 'ora.gipcd' on 'node2' succeeded<br />CRS-2672: Attempting to start 'ora.gpnpd' on 'node2'<br />CRS-2676: Start of 'ora.gpnpd' on 'node2' succeeded<br />CRS-2672: Attempting to start 'ora.cssdmonitor' on 'node2'<br />CRS-2676: Start of 'ora.cssdmonitor' on 'node2' succeeded<br />CRS-2672: Attempting to start 'ora.cssd' on 'node2'<br />CRS-2672: Attempting to start 'ora.diskmon' on 'node2'<br />CRS-2676: Start of 'ora.diskmon' on 'node2' succeeded<br />CRS-2676: Start of 'ora.cssd' on 'node2' succeeded<br />CRS-2672: Attempting to start 'ora.ctssd' on 'node2'<br />CRS-2676: Start of 'ora.ctssd' on 'node2' succeeded<br />CRS-2672: Attempting to start 'ora.crsd' on 'node2'<br />CRS-2676: Start of 'ora.crsd' on 'node2' succeeded<br />CRS-2672: Attempting to start 'ora.evmd' on 'node2'<br />CRS-2676: Start of 'ora.evmd' on 'node2' succeeded<br /><br />node2 2010/08/27 23:47:32 /oragrid/product/11.2/cdata/node2/backup_20100827_234732.olr<br />Preparing packages for installation...<br />cvuqdisk-1.0.7-1<br />Configure Oracle Grid Infrastructure for a Cluster ... succeeded<br />Updating inventory properties for clusterware<br />Starting Oracle Universal Installer...<br /><br />Checking swap space: must be greater than 500 MB. Actual 12287 MB Passed<br />The inventory pointer is located at /etc/oraInst.loc<br />The inventory is located at /oracle/oraInventory<br />'UpdateNodeList' was successful.<br /></code><br /><br />Press "OK" after running all the scripts on all the nodes.<br /><br />35.)<br /><a href="http://picasaweb.google.com/lh/photo/PTVAL9VA7Ftwdgbt9ovuKQ?feat=embedwebsite"><img src="http://lh3.ggpht.com/_viek7Sw5RrM/THhUKXOhAVI/AAAAAAAABMg/1egbZn4Ej3M/s400/21.JPG" /></a><br /><br />I received the above error, this can be fixed later. Refer to the post<br /><a href="http://apunhiran.blogspot.com/2010/08/oracle-failed-to-initialize-gpnp.html">Oracle: Failed to initialize GPnP</a><br /><br /><span style="font-weight:bold;">Pres "OK" and then press "Skip" on the original screen.</span><br /><br /><a href="http://picasaweb.google.com/lh/photo/sfpWH_bAvR4G4k2I8tYqzA?feat=embedwebsite"><img src="http://lh5.ggpht.com/_viek7Sw5RrM/THhUKtpuBGI/AAAAAAAABMk/GpNhfwCMjRY/s400/22.JPG" /></a><br /><br />36.)<br /><a href="http://picasaweb.google.com/lh/photo/S0wJill5pHpEzVgQD5Eq1A?feat=embedwebsite"><img src="http://lh5.ggpht.com/_viek7Sw5RrM/THhUKsF256I/AAAAAAAABMo/xYyGYFis8CM/s400/23.JPG" /></a><br /><br /><span style="font-weight:bold;">Oracle 11gr2 Grid Infrastructure for a 2 Node RAC has completed successfully.</span>Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com1tag:blogger.com,1999:blog-4092304359380397372.post-65197652694003316142010-08-28T05:44:00.006+05:302010-08-28T05:56:56.993+05:30Oracle: Failed to initialize GPnPReceived error: Failed to initialize GPnP, during Oracle 11gR2 Grid installation.<br />This failure occurred in the step after running the root.sh, "Oracle Private Interconnect Configuration Assistant".<br />This error occurs when oracle tries to execute "oifcfg setif".<br />Error Stack:<br /><code><br />INFO: Started Plugin named: Oracle Private Interconnect Configuration Assistant<br />INFO: Found associated job<br />INFO: Starting 'Oracle Private Interconnect Configuration Assistant'<br />INFO: Starting 'Oracle Private Interconnect Configuration Assistant'<br />INFO: Failed to initialize GPnP<br />WARNING:<br />INFO:<br />INFO: Completed Plugin named: Oracle Private Interconnect Configuration Assistant<br />INFO: Oracle Private Interconnect Configuration Assistant failed.<br />INFO: Oracle Private Interconnect Configuration Assistant failed.<br /></code><br /><a href="http://picasaweb.google.com/lh/photo/PTVAL9VA7Ftwdgbt9ovuKQ?feat=embedwebsite"><img src="http://lh3.ggpht.com/_viek7Sw5RrM/THhUKXOhAVI/AAAAAAAABMg/1egbZn4Ej3M/s400/21.JPG" /></a><br /><br />The issue occurs when we start installation with a wrong ORA_NLS10 environment parameter. Best is to unset the variable before installation or change it to point to $GRID_HOME/nls/data:<br /><code><br />unset ORA_NLS10<br />or <br />export ORA_NLS10=$GRID_HOME/nls/data<br /></code><br /><br />After doing that run the command:<br />[root@node1 oracle]# oifcfg setif -global eth1/10.100.3.0:cluster_interconnect<br />[root@node2 oracle]# oifcfg setif -global eth1/10.100.3.0:cluster_interconnect<br /><br />Here eth1 is interconnect interface, 10.100.3.0 is the subnet for the interconnect IP address.<br /><br />Syntax details for oifcfg command:<br /><code><br />Name:<br /> oifcfg - Oracle Interface Configuration Tool.<br /><br />Usage: oifcfg iflist [-p [-n]]<br /> oifcfg setif {-node <nodename> | -global} {<if_name>/<subnet>:<if_type>}...<br /> oifcfg getif [-node <nodename> | -global] [ -if <if_name>[/<subnet>] [-type <if_type>] ]<br /> oifcfg delif [{-node <nodename> | -global} [<if_name>[/<subnet>]]]<br /> oifcfg [-help]<br /><br /> <nodename> - name of the host, as known to a communications network<br /> <if_name> - name by which the interface is configured in the system<br /> <subnet> - subnet address of the interface<br /> <if_type> - type of the interface { cluster_interconnect | public }<br /></code>Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com0tag:blogger.com,1999:blog-4092304359380397372.post-56605549217109957222010-08-18T05:05:00.009+05:302010-08-26T04:15:51.723+05:30ORA-12060: During Mview CreationWell I had racked my brains a lot to create an mview on a large table across geographies, and it failed a few times.<br />Plus to increase my problem the character set was also different between the two DBs.:<br /><code><br /><span style="font-weight:bold;">Master Site:</span><br />SQL> select * from nls_database_parameters@link1 where PARAMETER='NLS_CHARACTERSET';<br />PARAMETER VALUE<br />------------------------------ ------------------------------<br />NLS_CHARACTERSET WE8MSWIN1252<br /><br /><span style="font-weight:bold;">Mview Site:</span><br />SQL> select * from nls_database_parameters where PARAMETER='NLS_CHARACTERSET';<br />PARAMETER VALUE<br />------------------------------ ------------------------------<br />NLS_CHARACTERSET AL32UTF8<br /><br /></code><br />I started by creating the mview directly:<br /><code><br />create materialized view user.test1<br />ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING<br />STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645<br />PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)<br />TABLESPACE "users"<br />PARALLEL 4<br />BUILD IMMEDIATE<br />REFRESH FAST ON DEMAND<br />WITH PRIMARY KEY<br />START WITH sysdate+0 NEXT SYSDATE+6/24<br />USING DEFAULT LOCAL ROLLBACK SEGMENT<br />DISABLE QUERY REWRITE<br />AS select * from user.test1@link1;<br /></code><br /><br />This ran for ever and finally failed with <span style="font-weight:bold;">ORA-01555</span>, as expected, as it ran for almost a day.<br />To give a background the size of the table is 1G.<br /><br /><span style="font-weight:bold;">Then I finally decided to use the PREBUILT Table option:</span><br />So I took an export backup of that table in the master site and imported it in mview site.<br />And then tried to recreate the mview with PREBUILT TABLE option:<br /><code><br />create materialized view user.test1 ON PREBUILT TABLE<br />refresh fast with primary key for update<br />as<br />select col1,col2 from user.test1@link1;<br /><br />Which failed with:<br />Col1,<br />*<br />ERROR at line 6:<br /><span style="font-weight:bold;">ORA-12060: shape of prebuilt table does not match definition query</span><br /></code><br /><br />Well I checked the table structure and realized that the col size for char data type had become 2 folds as during import, due to character set conversion this happens.<br /><br />Then I searched metalink, etc, and found an options called "WITH REDUCED PRECISION", to be used when there is col mis-match.<br /><code><br />create materialized view user.test1 ON PREBUILT TABLE WITH REDUCED PRECISION<br />refresh fast with primary key for update<br />as<br />select col1,col2 from user.test1@link1;<br /></code><br />But it still failed:<br /><br />create materialized view user.test1 ON PREBUILT TABLE WITH REDUCED PRECISION<br /> *<br />ERROR at line 1:<br /><span style="font-weight:bold;">ORA-12060: shape of prebuilt table does not match definition query</span><br /><br />What resolved the problem is removing <span style="font-weight:bold;">"with primary key for update"</span><br /><code><br />create materialized view user.test1 ON PREBUILT TABLE WITH REDUCED PRECISION<br />refresh fast on demand<br />as<br />select col1,col2 from user.test1@link1;<br /><br />Materialized view created.<br /></code>Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com1tag:blogger.com,1999:blog-4092304359380397372.post-82318980351743564992009-09-23T16:43:00.000+05:302009-09-23T16:45:31.695+05:30Configuring and starting ons daemon in non RAC DB<span style="font-weight:bold;"><span style="font-style:italic;">Mostly used in case of Data Guard.</span></span><br /><br /><span style="font-weight:bold;">1.) Change directory to $ORACLE_HOME/opmn/conf</span><br /><br /><br />[oracle@TEST conf]$ pwd<br />/opt/app/oracle/10.2/opmn/conf<br />[oracle@TEST conf]$ ls -lrt<br />total 12<br />-rw-r--r-- 1 oracle oinstall 71 Feb 21 2006 ons.config.tmp<br />-rw------- 1 oracle oinstall 44 Oct 8 2008 ons.config.backup.10203<br />-rw------- 1 oracle oinstall 44 Oct 8 2008 ons.config<br /><br /><span style="font-weight:bold;">2.) Update the ons configuration file. (ons.config)</span><br /><br />[oracle@TEST conf]$ more ons.config<br />localport=6100<br />remoteport=4200<br />loglevel=3<br />nodes=10.224.57.68:6200,10.224.56.38:6200 --> Mention the primary and standby servers with their ons ports<br />walletfile=$ORACLE_HOME/opmn/conf/ssl.wlt/default --> To enable SSL access between the ons services.<br /><br />---The nodes parameter points to the primary and standby hosts followed by the remote port for the ONS daemon running on that port.<br />---The walletfile parameters point to the walletfile name. A wallet file is used by the Oracle Secure Sockets Layer (SSL) to store SSL certificates. If a wallet file is specified to ONS, it will use SSL when communicating with other ONS instances and require SSL certificate authentication from all ONS instances that try to connect to it. This means that if you want to turn on SSL for one ONS instance, then you must turn it on for all instances that are connected. Oracle recommends using SSL for all ONS communications.<br /><br /><br /><span style="font-weight:bold;">3.) Start ONS</span><br /><br />[oracle@TEST conf]$ onsctl start<br />onsctl: ons started<br /><br />Configure and start ONS on both primary and standby.Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com0tag:blogger.com,1999:blog-4092304359380397372.post-492654610788362112009-09-19T20:46:00.003+05:302009-09-19T21:07:43.282+05:30How To: Configure Data Guard Fast-Start Failover Step By Step<span style="font-weight:bold;">Note: Physcial Standby should be working fine and Data Guard Broker has already been configured and working fine.<br /></span><br /><a href="http://apunhiran.blogspot.com/2009/09/step-by-step-data-guard-setup-for.html">How to Setup Data Guard</a><br /><a href="http://apunhiran.blogspot.com/2009/09/how-to-configure-data-guard-broker.html">How To: Configure Data Guard Broker</a><br /><br /><span style="font-weight:bold;">1.) Set Local_Listener (Primary):</span><br /><br />For the database to register with the data guard listener we need to get the local_listener parameter.<br />SQL> show parameter local_listener<br />NAME TYPE VALUE<br />------------------------------------ ----------- ------------------------------<br />local_listener string<br /><br />SQL> alter system set local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = 10.224.56.38)(PORT = 1521))';<br />System altered.<br /><br />SQL> alter system register;<br />System altered.<br /><br />SQL> show parameter local_listener<br />NAME TYPE VALUE<br />------------------------------------ ----------- ------------------------------<br />local_listener string (ADDRESS = (PROTOCOL = TCP)(HOST = 10.224.56.38)(PORT = 1521))<br /><br /><span style="font-weight:bold;">2.) Verify force logging:</span><br /><br />SQL> select force_logging from v$database;<br />FOR<br />---<br />YES<br /><br />Should be YES.<br /><br /><span style="font-weight:bold;">3.) Should use spfile:</span><br />SQL> show parameter spfile;<br />NAME TYPE VALUE<br />------------------------------------ ----------- ------------------------------<br />spfile string /opt/app/oracle/10.2/dbs/spfileorcl.ora<br /><br /><span style="font-weight:bold;">4.) Should use a password file:</span><br /><br />SQL> select * from v$pwfile_users;<br />USERNAME SYSDB SYSOP<br />----------------------------------------<br />SYS TRUE TRUE<br /><br /><span style="font-weight:bold;">5.) Remote login should be enabled:</span><br /><br />SQL> show parameter remote_login_passwordfile<br />NAME TYPE VALUE<br />-------------------------------------------------<br />remote_login_passwordfile string EXCLUSIVE<br /><br /><span style="font-weight:bold;">6.) DB_UNIQUE_NAME should be set:</span><br /><br />SQL> show parameter db_unique_name<br />NAME TYPE VALUE<br />-------------------------------------------------<br />db_unique_name string orcl<br /><br /><span style="font-weight:bold;">7.) Flash Recovery Ares should be set:</span><br /><br />SQL> show parameter db_recovery_file<br />NAME TYPE VALUE<br />-----------------------------------------------------------------------------<br />db_recovery_file_dest string /opt/app/oracle/flash_recovery_area<br />db_recovery_file_dest_size big integer 2G<br /><br />To set it, use the following commands:<br /><br />alter system set db_recovery_file_dest_size = 2g scope=both;<br />alter system set db_recovery_file_dest = '<directory_location>' scope=both;<br /><br /><span style="font-weight:bold;">8.) Standby file management should be AUTO:</span><br /><br />SQL> show parameter standby_file_management<br />NAME TYPE VALUE<br />--------------------------------------------------<br />standby_file_management string MANUAL<br /><br />SQL> alter system set standby_file_management=auto;<br />System altered.<br /><br />SQL> show parameter standby_file_management<br />NAME TYPE VALUE<br />-------------------------------------------------------<br />standby_file_management string AUTO<br /><br /><span style="font-weight:bold;">9.) log_archive_config should be set:</span><br /><br />SQL> show parameter log_archive_config<br />NAME TYPE VALUE<br />-----------------------------------------------------------------------------<br />log_archive_config string DG_CONFIG=(orcl,orcl1)<br /><br /><span style="font-weight:bold;">10.) Standby Redo logs should be created:</span><br /><br />SQL> select group#, type, member from v$logfile where type = 'STANDBY';<br />GROUP# TYPE MEMBER<br />-------------------------------------------------------------------------------------<br />3 STANDBY /opt/app/oracle/flash_recovery_area/orcl/onlinelog/o1_mf_3_5bvzkzgs_.log<br />4 STANDBY /opt/app/oracle/flash_recovery_area/orcl/onlinelog/o1_mf_4_5bvzl8hf_.log<br /><br /><span style="font-weight:bold;">10.) Enable flash back database:</span><br /><br />alter database flashback on<br />*<br />ERROR at line 1:<br /><span style="font-weight:bold;">ORA-38759: Database must be mounted by only one instance and not open.</span><br /><br />Well need to mount the database to run this command.<br /><br />SQL> shutdown immediate;<br />Database closed.<br />Database dismounted.<br />ORACLE instance shut down.<br />SQL> startup mount<br />ORACLE instance started.<br /><br />Total System Global Area 2684354560 bytes<br />Fixed Size 2086352 bytes<br />Variable Size 570427952 bytes<br />Database Buffers 2097152000 bytes<br />Redo Buffers 14688256 bytes<br />Database mounted.<br />SQL> alter database flashback on;<br />Database altered.<br /><br />SQL> alter system set db_flashback_retention_target = 60 scope=both;<br />System altered.<br /><br />SQL> select flashback_on from v$database;<br />FLASHBACK_ON<br />------------------<br />YES<br /><br />SQL> show parameter db_flashback_retention_target<br />NAME TYPE VALUE<br />------------------------------------ ----------- ------------------------------<br />db_flashback_retention_target integer 60<br /><br />SQL> alter database set standby database to maximize availability;<br />Database altered.<br /><br />SQL> select protection_mode from v$database;<br />PROTECTION_MODE<br />--------------------<br />MAXIMUM AVAILABILITY<br /><br />Enable Flashback DB on Standby also.<br />SQL> alter database recover managed standby database cancel;<br />Database altered.<br /><br />SQL> alter database flashback on;<br />Database altered.<br /><br />SQL> alter system set db_flashback_retention_target = 60 scope=both;<br />System altered.<br /><br /><span style="font-weight:bold;">11.) Muliplex the data broker configuration files in 2 different disk, for protection.<br /></span><br />SQL> show parameter dg_broker_config_file<br />NAME TYPE VALUE<br />------------------------------------ ----------- ------------------------------<br />dg_broker_config_file1 string /opt/app/oracle/10.2/dbs/dr1orcl.dat<br />dg_broker_config_file2 string /opt/app/oracle/10.2/dbs/dr2orcl.dat<br /><br />SQL> alter system set dg_broker_config_file2='/opt/app/oracle/oradata/orcl/dr2orcl.dat';<br />alter system set dg_broker_config_file2='/opt/app/oracle/oradata/orcl/dr2orcl.dat'<br />*<br />ERROR at line 1:<br /><span style="font-weight:bold;">ORA-02097: parameter cannot be modified because specified value is invalid<br />ORA-16573: attempt to change configuration file for an enabled broker configuration<br /></span><br />Well looks like the above problem is not easy to resolve. We need to disable the configuration, and also stop DMON process by doing alter system set dg_broker_start='false'; <br /><br />And then we can change the location of these files. Well I am not doing that right now. As I saw a bug filed on metalink that there are errors in restarting DMON after change in the file location. (BUG:5955795).<br /><br />Well now doing the change of location.<br />SQL> ALTER SYSTEM SET DG_BROKER_START=FALSE;<br /><br />System altered.<br />[oracle@APP3 dbs]$ mv dr2orcl.dat old.dr2orcl.dat<br />[oracle@APP3 dbs]$ mv dr1orcl.dat old.dr1orcl.dat<br /><br />SQL> alter system set dg_broker_config_file2='/opt/app/oracle/oradata/orcl/dr2orcl.dat';<br />System altered.<br /><br />SQL> ALTER SYSTEM SET DG_BROKER_START=TRUE;<br />System altered.<br /><br />SQL> show parameter dg_broker_config_file<br />NAME TYPE VALUE<br />-----------------------------------------------------------------------------<br />dg_broker_config_file1 string /opt/app/oracle/10.2/dbs/dr1regdb.dat<br />dg_broker_config_file2 string /opt/app/oracle/oradata/orcl/dr2orcl.dat<br /><br /><br />DGMGRL> create configuration 'DBTEST' as primary database is 'orcl' connect identifier is 'orcl';<br />Configuration "DBTEST" created with primary database "orcl"<br />DGMGRL> show configuration<br /><br />Configuration<br />Name: DBTEST<br />Enabled: NO<br />Protection Mode: MaxPerformance<br />Fast-Start Failover: DISABLED<br />Databases:<br />orcl - Primary database<br /><br />Current status for "DBTEST":<br />DISABLED<br /><br />DGMGRL> ALTER CONFIGURATION SET PROTECTION MODE AS MAXAVAILABILITY ;<br />Succeeded.<br />DGMGRL> show configuration<br /><br />Configuration<br />Name: DBTEST<br />Enabled: NO<br />Protection Mode: MaxAvailability<br />Fast-Start Failover: DISABLED<br />Databases:<br />orcl - Primary database<br /><br />Current status for "DBTEST":<br />DISABLED<br /><br />FYI very useful metalink 808783.1 (Step By Step How to Recreate Dataguard Broker Configuration)<br /><br /><span style="font-weight:bold;">12.) Edit database setting in data guard like</span><br /><br />DGMGRL> edit database orcl set property LogXptMode='SYNC';<br />Property "logxptmode" updated<br />DGMGRL> edit database orcl set property NetTimeout=10;<br />Property "nettimeout" updated<br />DGMGRL> edit database orcl1 set property NetTimeout=10;<br />Property "nettimeout" updated<br />DGMGRL> enable configuration<br /><span style="font-weight:bold;">Error: ORA-16627: operation disallowed since no standby databases would remain to support protection mode</span><br /><br />Enable the LogXptMode to SYNC for standby also.<br />DGMGRL> edit database orcl1 set property LogXptMode='SYNC';<br />Property "logxptmode" updated<br /><br />DGMGRL> enable configuration<br />Operation requires shutdown of instance "orcl" on database "orcl"<br />Shutting down instance "orcl"...<br />Database closed.<br />Database dismounted.<br />ORACLE instance shut down.<br />Operation requires startup of instance "orcl" on database "orcl"<br /><br />Startup the DB manually.<br /><br />We I had some more errors:<br /><span style="font-weight:bold;">Warning: ORA-16608: one or more databases have warnings</span><br /><span style="font-weight:bold;">Error: ORA-16795: database resource guard detects that database re-creation is required<br /></span><br />i did<br />DGMGRL> enable resource orcl1<br />Enabled.<br /><br />Well did not help. I problem was grave, I needed standby redo log files in the standby DB also.<br />SQL> alter database recover managed standby database cancel;<br />Database altered.<br /><br />SQL> alter database add standby logfile group 3 size 50M;<br />Database altered.<br /><br />SQL> alter database add standby logfile group 4 size 50M;<br />Database altered.<br /><br />GROUP# STATUS TYPE MEMBER IS_<br />--------------------------------------------------------------------------------- ---<br />1 ONLINE /home/oracle/oradata/orcl/redo01.log NO<br />2 ONLINE /home/oracle/oradata/orcl/redo02.log NO<br />3 STANDBY /home/oracle/oradata/flash_recovery_area/orcl/orcl1/onlinelog/o1_mf_3_5c3kdj01_.log YES<br />4 STANDBY /home/oracle/oradata/flash_recovery_area/orcl/orcl1/onlinelog/o1_mf_4_5c3kdw63_.log YES<br /><br />I decide to start redo apply !!<br />SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE disconnect;<br /><br />Database altered.<br /><br />Well some more errors: in data guard log.<br /><span style="font-weight:bold;">RSM0: HEALTH CHECK WARNING: ORA-16826: apply service state is inconsistent with the DelayMins property<br /></span>DGMGRL> show site verbose orcl<br />Site<br />Name: 'orcl'<br />Hostname: 'APP3'<br />Instance name: 'orcl'<br />Service Name: 'orcl'<br />Standby Type: 'physical'<br />Enabled: 'yes'<br />Required: 'yes'<br />Default state: 'PRIMARY'<br />Intended state: 'PRIMARY'<br />PFILE: ''<br />Number of resources: 1<br />Resources:<br />Name: orcl (default) (verbose name='orcl')<br />Current status for "orcl":<br /><span style="font-weight:bold;">Warning: ORA-16570: operation requires restart of database "orcl"</span><br /><br />Need to restart the primary DB.<br />Whenever you see any error in the "show configuration" output. Check "show site verbose <sitename>" to find which site has what error.<br />Well after the restart of the primary database:<br />DGMGRL> show configuration<br /><br />Configuration<br />Name: DBTEST<br />Enabled: YES<br />Protection Mode: MaxAvailability<br />Fast-Start Failover: ENABLED<br />Databases:<br />orcl - Primary database<br />orcl1 - Physical standby database<br />- Fast-Start Failover target<br /><br />Current status for "DBTEST":<br />SUCCESS<br /><br /><span style="font-weight:bold;">13.) Enable Fast-start failover:</span><br /><br />DGMGRL> enable fast_start failover;<br />Enabled.<br /><br /><span style="font-weight:bold;">14.) Start Observer:</span><br />Idealy observer should be started on another host, to observe the primary, as if the host goes down it can monitor the outage and do specify actions.<br />DGMGRL> start observer;<br />Observer started<br />The session will seem to hang. You can do a control C. Or create and run the script as nohup.<br />eg.<br />#!/bin/sh<br /><br />dgmgrl sys/oracle <<!<br />start observer;<br />!<br />Another Way:<br />CentOS4.4-64:wrpws:oracle > nohup dgmgrl sys/oracle@orcl "start observer file='$ORACLE_HOME/dbs/fsfo.dat'" -logfile $HOME/observer.log &<br /><br />And another way to start:<br />[oracle@APP3 scripts]$ dgmgrl -logfile $HOME/observer.log sys/oracle@orcl "start observer" &<br /><br /><span style="font-weight:bold;">15. Lets test the configuration:</span><br />SQL> select FS_FAILOVER_STATUS,FS_FAILOVER_CURRENT_TARGET,FS_FAILOVER_THRESHOLD,FS_FAILOVER_OBSERVER_PRESENT,FS_FAILOVER_OBSERVER_HOST from v$database;<br /><br />FS_FAILOVER_STATUS FS_FAILOVER_CURRENT_TARGET FS_FAILOVER_THRESHOLD FS_FAIL FS_FAILOVER_OBSERVER_HOST<br />--------------------- ------------------------------ --------------------- ------- ------------------------------<br />SYNCHRONIZED orcl1 30 YES wrpws<br /><br /><br />Switchover in both directions:<br />DGMGRL for Linux: Version 10.2.0.4.0 - 64bit Production<br /><br />Copyright (c) 2000, 2005, Oracle. All rights reserved.<br /><br />Welcome to DGMGRL, type "help" for information.<br />Connected.<br />DGMGRL> show configuration<br /><br />Configuration<br />Name: DBTEST<br />Enabled: YES<br />Protection Mode: MaxAvailability<br />Fast-Start Failover: ENABLED<br />Databases:<br />orcl - Primary database<br />orcl1 - Physical standby database<br />- Fast-Start Failover target<br /><br />Current status for "DBTEST":<br />SUCCESS<br /><br />DGMGRL> switchover to orcl1;<br />Performing switchover NOW, please wait...<br />Operation requires shutdown of instance "orcl" on database "orcl"<br />Shutting down instance "orcl"...<br /><span style="font-weight:bold;">ORA-01109: database not open</span><br /><br />Database dismounted.<br />ORACLE instance shut down.<br />Operation requires shutdown of instance "orcl" on database "orcl1"<br />Shutting down instance "orcl"...<br /><span style="font-weight:bold;">ORA-01109: database not open</span><br /><br />Database dismounted.<br />ORACLE instance shut down.<br />Operation requires startup of instance "orcl" on database "orcl"<br />Starting instance "orcl"...<br />Unable to connect to database<br /><span style="font-weight:bold;">ORA-12514: TNS:listener does not currently know of service requested in connect descriptor<br /></span><br />Failed.<br />You are no longer connected to ORACLE<br />Please connect again.<br />Unable to start instance "orcl"<br />You must start instance "orcl" manually<br />Operation requires startup of instance "orcl" on database "orcl1"<br />You must start instance "orcl" manually<br />Switchover succeeded, new primary is "orcl1"<br /><br />I had to manually start up the databases to see if they switched well. They did reverse the roles both sides.<br /><span style="font-weight:bold;">Checked metalink note: 308943.1 to resolve the above problem.</span><br />The listener.ora entries:<br />SID_LIST_LISTENER =<br />(SID_LIST =<br />(SID_DESC =<br />(GLOBAL_DBNAME = orcl)<br />(ORACLE_HOME = /home/oracle/10.2)<br />(SID_NAME = orcl)<br />(SERVICE_NAME = orcl1)<br />)<br />(SID_DESC =<br />(GLOBAL_DBNAME = orcl1_DGMGRL) ##--->Should be db_unique_name_DGMGRL.db_domain<br />(ORACLE_HOME = /home/oracle/10.2)<br />(SID_NAME = orcl)<br />(SERVICE_NAME = orcl1)<br />)<br />)<br /><br />After fixing the listener issue, the error was rectified and the switchover was working seemlessly.<br />DGMGRL> switchover to orcl1;<br />Performing switchover NOW, please wait...<br />Operation requires shutdown of instance "orcl" on database "orcl"<br />Shutting down instance "orcl"...<br />ORA-01109: database not open<br /><br />Database dismounted.<br />ORACLE instance shut down.<br />Operation requires shutdown of instance "orcl" on database "orcl1"<br />Shutting down instance "orcl"...<br />ORA-01109: database not open<br /><br />Database dismounted.<br />ORACLE instance shut down.<br />Operation requires startup of instance "orcl" on database "orcl"<br />Starting instance "orcl"...<br />ORACLE instance started.<br />Database mounted.<br />Operation requires startup of instance "orcl" on database "orcl1"<br />Starting instance "orcl"...<br />ORACLE instance started.<br />Database mounted.<br />Switchover succeeded, new primary is "orcl1"<br />DGMGRL> show configuration<br /><br />Configuration<br />Name: DBTEST<br />Enabled: YES<br />Protection Mode: MaxAvailability<br />Fast-Start Failover: ENABLED<br />Databases:<br />orcl - Physical standby database<br />- Fast-Start Failover target<br />orcl1 - Primary database<br /><br />Current status for "DBTEST":<br />SUCCESS<br /><br />Switchover Back to the Primary:<br /><br />DGMGRL> switchover to orcl;<br />Performing switchover NOW, please wait...<br />Operation requires shutdown of instance "orcl" on database "orcl1"<br />Shutting down instance "orcl"...<br />ORA-01109: database not open<br /><br />Database dismounted.<br />ORACLE instance shut down.<br />Operation requires shutdown of instance "orcl" on database "orcl"<br />Shutting down instance "orcl"...<br />ORA-01109: database not open<br /><br />Database dismounted.<br />ORACLE instance shut down.<br />Operation requires startup of instance "orcl" on database "orcl1"<br />Starting instance "orcl"...<br />ORACLE instance started.<br />Database mounted.<br />Operation requires startup of instance "orcl" on database "orcl"<br />Starting instance "orcl"...<br />ORACLE instance started.<br />Database mounted.<br />Switchover succeeded, new primary is "orcl"<br />DGMGRL><br /><br />This completes the testing for switchover.<br />Its takes about 2.5 mins to switchover.<br /><br /><span style="font-weight:bold;"><span style="font-style:italic;">Now the testing for Failover:</span></span><br /><br />Check that there is enough flashback data available in the primary database, atleast 30-40 mins.<br /><br />SQL> select (sysdate - oldest_flashback_time)*24*60 as history from v$flashback_database_log;<br /><br />HISTORY<br />----------<br />486.133333<br /><br />Lets create a table and put some data to see if there is any data loss in the failover.<br /><br />SQL> create table x as select * from all_objects;<br /><br />Table created.<br /><br />SQL> select count(*) from x;<br /><br />COUNT(*)<br />----------<br />9915<br /><br />SQL> shutdown abort;<br />ORACLE instance shut down.<br />SQL> exit<br /><br />Observer Log:<br /><br />[W000 09/17 09:53:56.79] Failed to start the Observer.<br /><span style="font-weight:bold;">Error: ORA-16647: could not start more than one observer</span><br /><br />Failed.<br /><br />[W000 09/17 10:02:22.38] Failed to start the Observer.<br />Observer started<br />[W000 09/17 10:02:53.82] Observer started.<br />Observer stopped<br />Observer started<br />[W000 09/17 10:15:42.88] Observer started.<br /><br />15:14:04.26 Friday, September 18, 2009<br />Initiating fast-start failover to database "orcl1"...<br />Performing failover NOW, please wait...<br />Failover succeeded, new primary is "orcl1"<br />15:14:13.79 Friday, September 18, 2009<br /><br />Status from dgmgrl on the new primary:<br />CentOS4.4-64:wrpws:oracle > dgmgrl sys/oracle<br />DGMGRL for Linux: Version 10.2.0.4.0 - 64bit Production<br /><br />Copyright (c) 2000, 2005, Oracle. All rights reserved.<br /><br />Welcome to DGMGRL, type "help" for information.<br />Connected.<br />DGMGRL> show configuration<br /><br />Configuration<br />Name: DBTEST<br />Enabled: YES<br />Protection Mode: MaxAvailability<br />Fast-Start Failover: ENABLED<br />Databases:<br />orcl - Physical standby database (disabled)<br />- Fast-Start Failover target<br />orcl1 - Primary database<br /><br />Current status for "DBTEST":<br /><span style="font-weight:bold;">Warning: ORA-16608: one or more databases have warnings</span><br /><br />Record count from the new primary:<br />CentOS4.4-64:wrpws:oracle > sqlplus sys as sysdba<br /><br />SQL*Plus: Release 10.2.0.4.0 - Production on Fri Sep 18 15:17:32 2009<br /><br />Copyright (c) 1982, 2007, Oracle. All Rights Reserved.<br /><br />Enter password:<br /><br />Connected to:<br />Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production<br />With the Partitioning, OLAP, Data Mining and Real Application Testing options<br /><br />SQL> select count(*) from x;<br /><br />COUNT(*)<br />----------<br />9915<br /><br />Now to reinstate the old primary as standby:<br />I started the old primary in mount mode, after about 30 sec I see activity in the observer.log<br />15:25:27.74 Friday, September 18, 2009<br />Initiating reinstatement for database "orcl"...<br />Reinstating database "orcl", please wait...<br />Operation requires shutdown of instance "orcl" on database "orcl"<br />Shutting down instance "orcl"...<br />ORA-01109: database not open<br /><br />Database dismounted.<br />ORACLE instance shut down.<br />Operation requires startup of instance "orcl" on database "orcl"<br />Starting instance "orcl"...<br />ORACLE instance started.<br />Database mounted.<br />Continuing to reinstate database "orcl" ...<br />Reinstatement of database "orcl" succeeded<br />15:26:27.32 Friday, September 18, 2009<br /><br />When you do show configuration in dgmgrl you will get the following error:<br /><span style="font-weight:bold;">Warning: ORA-16817: unsynchronized Fast-Start Failover configuration</span><br /><br />Just switch a couple fo logfile (alter system switch logfile;) in sqlplus and then check the output of dgmgrl, it should be fine:<br />CentOS4.4-64:wrpws:oracle > dgmgrl sys/oracle<br />DGMGRL for Linux: Version 10.2.0.4.0 - 64bit Production<br /><br />Copyright (c) 2000, 2005, Oracle. All rights reserved.<br /><br />Welcome to DGMGRL, type "help" for information.<br />Connected.<br />DGMGRL> show configuration<br /><br />Configuration<br />Name: DBTEST<br />Enabled: YES<br />Protection Mode: MaxAvailability<br />Fast-Start Failover: ENABLED<br />Databases:<br />orcl - Physical standby database<br />- Fast-Start Failover target<br />orcl1 - Primary database<br /><br />Current status for "DBTEST":<br />SUCCESS<br /><br />DGMGRL><br /><br /><span style="font-weight:bold;">Well this completes my testing and implementation of Fast-Start Failover!!!<br />I hope this helps.</span>Apun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com4tag:blogger.com,1999:blog-4092304359380397372.post-78575835125570393692009-09-19T20:34:00.003+05:302009-09-19T20:45:45.073+05:30How To: Configure Data Guard BrokerConfiguring Data Guard Broker:<br />NOTE: You should have your physical standby already setup.<br /><a href="http://apunhiran.blogspot.com/2009/09/step-by-step-data-guard-setup-for.html">How to Setup Data Guard</a><br /><br /><span style="font-weight:bold;">1.) Check parameter DG_BROKER_START on primary:</span><br />SQL> show parameter DG_BROKER_START<br /><br />NAME TYPE VALUE<br />------------------------------------ ----------- ------------------------------<br />dg_broker_start boolean FALSE<br /><br /><span style="font-weight:bold;">2.) Set DG_BROKER_START to true on primary:</span><br />SQL> alter system set DG_BROKER_START=true scope=both;<br /><br />System altered.<br /><br /><span style="font-weight:bold;">3.)Check DG_BROKER_START on standby side:</span><br />SQL> show parameter DG_BROKER_START<br /><br />NAME TYPE VALUE<br />------------------------------------ ----------- ------------------------------<br />dg_broker_start boolean FALSE<br /><br /><span style="font-weight:bold;">4.) Set DG_BROKER_START to true on standby:</span><br />SQL> alter system set DG_BROKER_START=true scope=both;<br /><br />System altered.<br /><span style="font-weight:bold;"><br />5.) Define a service for the listener that includes the db_unique_name_DGMGRL.db_domain values for the GLOBAL_DBNAME:</span><br />Update the listener.ora file on primary and standby<br />SID_LIST_LISTENER =<br /> (SID_LIST =<br /> (SID_DESC =<br /> (GLOBAL_DBNAME = orcl.abc.com)<br /> (ORACLE_HOME = /opt/app/oracle/10.2)<br /> (SID_NAME = orcl)<br /> )<br /> (SID_DESC =<br /> (GLOBAL_DBNAME = orcl_DGMGRL.abc.com) --><db_unique_name>_DGMGRL.<db_domain><br /> (ORACLE_HOME = /opt/app/oracle/10.2)<br /> (SID_NAME = orcl)<br /> )<br /> )<br /><br /><span style="font-weight:bold;">6.) Now to create the data guard broker configurations:</span><br /><br />[oracle@APP3 admin]$ dgmgrl<br />DGMGRL for Linux: Version 10.2.0.4.0 - 64bit Production<br /><br />Copyright (c) 2000, 2005, Oracle. All rights reserved.<br /><br />Welcome to DGMGRL, type "help" for information.<br />DGMGRL> connect sys/oracle<br />Connected.<br />DGMGRL> create configuration 'DBTEST'<br />> as primary database is 'orcl'<br />> connect identifier is orcl;<br />Configuration "DBTEST" created with primary database "orcl"<br />DGMGRL><br /><br />DGMGRL> show configuration<br /><br />Configuration<br /> Name: DBTEST<br /> Enabled: NO<br /> Protection Mode: MaxPerformance<br /> Fast-Start Failover: DISABLED<br /> Databases:<br /> orcl - Primary database<br /><br />Current status for "DBTEST":<br />DISABLED<br /><br />DGMGRL><br /><br /><span style="font-weight:bold;">7.) Now add standby DB to the data broker configuration:</span><br /><br />DGMGRL> add database 'orcl1' as<br />> connect identifier is orcl1<br />> maintained as physical;<br />Database "orcl1" added<br />DGMGRL><br />DGMGRL> show configuration<br /><br />Configuration<br /> Name: DBTEST<br /> Enabled: NO<br /> Protection Mode: MaxPerformance<br /> Fast-Start Failover: DISABLED<br /> Databases:<br /> orcl - Primary database<br /> orcl1 - Physical standby database<br /><br />Current status for "DBTEST":<br />DISABLED<br /><br /><span style="font-weight:bold;">8.) Now enable the configurations:</span><br />DGMGRL> enable configuration<br />Enabled.<br />DGMGRL> show configuration<br /><br />Configuration<br /> Name: DBTEST<br /> Enabled: YES<br /> Protection Mode: MaxPerformance<br /> Fast-Start Failover: DISABLED<br /> Databases:<br /> orcl - Primary database<br /> orcl1 - Physical standby database<br /><br />Current status for "DBTEST":<br />Warning: ORA-16607: one or more databases have failed<br /><br /><br />DGMGRL> show database verbose orcl1<br /><br />Database<br /> Name: orcl1<br /> Role: PHYSICAL STANDBY<br /> Enabled: YES<br /> Intended State: ONLINE<br /> Instance(s):<br /> orcl<br /><br /> Properties:<br /> InitialConnectIdentifier = 'orcl1'<br /> ObserverConnectIdentifier = ''<br /> LogXptMode = 'ARCH'<br /> Dependency = ''<br /> DelayMins = '0'<br /> Binding = 'OPTIONAL'<br /> MaxFailure = '0'<br /> MaxConnections = '1'<br /> ReopenSecs = '300'<br /> NetTimeout = '180'<br /> LogShipping = 'ON'<br /> PreferredApplyInstance = ''<br /> ApplyInstanceTimeout = '0'<br /> ApplyParallel = 'AUTO'<br /> StandbyFileManagement = 'MANUAL'<br /> ArchiveLagTarget = '0'<br /> LogArchiveMaxProcesses = '3'<br /> LogArchiveMinSucceedDest = '1'<br /> DbFileNameConvert = '/opt/app/oracle/oradata/orcl, /home/oracle/oradata/orcl'<br /> LogFileNameConvert = '/opt/app/oracle/oradata/orcl, /home/oracle/oradata/orcl, /opt/app/oracle/flash_recovery_area/orcl/onlinelog, /home/oracle/oradata/flash_recovery_area/orcl'<br /> FastStartFailoverTarget = ''<br /> StatusReport = '(monitor)'<br /> InconsistentProperties = '(monitor)'<br /> InconsistentLogXptProps = '(monitor)'<br /> SendQEntries = '(monitor)'<br /> LogXptStatus = '(monitor)'<br /> RecvQEntries = '(monitor)'<br /> HostName = 'wrpws'<br /> SidName = 'orcl'<br /> LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=wrpws)(PORT=1521))'<br /> StandbyArchiveLocation = '/home/oracle/oradata/orcl/archive'<br /> AlternateLocation = ''<br /> LogArchiveTrace = '0'<br /> LogArchiveFormat = '%t_%s_%r.arc'<br /> LatestLog = '(monitor)'<br /> TopWaitEvents = '(monitor)'<br /><br />Current status for "orcl1":<br />Error: ORA-12545: Connect failed because target host or object does not exist<br /><br /><br />DGMGRL><br /><br />Well the problem in my case was that the hostname was not getting resolved. I added the hostname to the host file and it started working.<br /><br />After this error I got error:<br />Current status for "orcl1":<br />Error: ORA-16664: unable to receive the result from a remote database<br /><br />Well same problem, communication between the 2 database. Make sure that the /etc/hosts files have entries of all other servers, with name and IP address.<br />Always review the log_archive_dest_2 parameter, to have the right entries and service is accessible.<br /><br />DGMGRL> enable configuration<br />Enabled.<br />DGMGRL> show configuration<br /><br />Configuration<br /> Name: DBTEST<br /> Enabled: YES<br /> Protection Mode: MaxPerformance<br /> Fast-Start Failover: DISABLED<br /> Databases:<br /> orcl - Primary database<br /> orcl1 - Physical standby database<br /><br />Current status for "DBTEST":<br />SUCCESS<br /><br />DGMGRL><br /><br />This should setup Data Guard Broker.<br /><br />COMMANDS Available in DGMGRL:<br /><br />DGMGRL> help<br /><br />The following commands are available:<br /><br />add Add a standby database to the broker configuration<br />connect Connect to an Oracle instance<br />create Create a broker configuration<br />disable Disable a configuration, a database, or Fast-Start Failover<br />edit Edit a configuration, database, or instance<br />enable Enable a configuration, a database, or Fast-Start Failover<br />exit Exit the program<br />failover Change a standby database to be the primary database<br />help Display description and syntax for a command<br />quit Exit the program<br />reinstate Change a disabled database into a viable standby database<br />rem Comment to be ignored by DGMGRL<br />remove Remove a configuration, database, or instance<br />show Display information about a configuration, database, or instance<br />shutdown Shutdown a currently running Oracle instance<br />start Start Fast-Start Failover observer<br />startup Start an Oracle database instance<br />stop Stop Fast-Start Failover observer<br />switchover Switch roles between the primary database and a standby database<br /><br />Use "help <command>" to see syntax for individual commandsApun Hiranhttp://www.blogger.com/profile/04745021360458270341noreply@blogger.com6