This instructions optionally include adding an extra mount point, enabling NFS, and installing VNC for remote GUI connectivity.
Create an EC2 Instance
1. Login to the AWS Management Console at:
https://us-west-2.console.aws.amazon.com/console/home
2. Click on "EC2" on the left-hand menu
3. Navigate to Instances > Launch Instance
4. "Select" the Red Hat Enterprise Linux 7.1 instance type
5. Select an instance type (e.g., t2.medium)
6. Click on "Next: Configure Instance Details"
7. Keep all defaults
8. Click on "Next: Add Storage"
9. Click on "Add New Volume"
10. Enter the size of "10" for 10GB
11. Click on "Next: Tag Instance"
12. Enter the name of your instance (just a name, e.g., "My Oracle Server")
13. Click on "Next: Configure Security Group"
14. Provide a Security Group name and description, and add the firewall rules you want to allow
16. Click on "Launch" after reviewing the settings
17. Enter a new key pair name, download key pair, and click on "Launch Instances"
18. Click on "View Instances" and the instance should be up in a few minutes
Create an Elastic IP
19. Click on "Elastic IP" on the left-hand menu
20. Click on "Allocate New Address"
21. Click on "Yes, Allocate"
22. Click on "Close"
23. Right-click on the IP address and select "Associate Address"
24. Click on the Instance field and select your EC2 instance from the list
Create a Putty PPK File for SSH Access
25. Follow these instructions to convert the downloaded .pem file to a Putty compatible .ppk file
26. Login to the server via Putty or equivalent SSH client as the "ec2-user"
27. Then type sudo su - to login as the root user
Setup the Linux Server
yum install telnet
yum install wget
yum install gcc
yum install gcc-c++
yum install glibc-devel
yum install libaio
yum install libaio-devel
yum install sysstat
yum install libstdc++-devel
yum install compat-libstdc++
yum install compat-libstdc
29. Define a hostname
hostname oradev.raastech.com
30. Type the following to get your local IP address
ifconfig -a | grep broadcast | awk '{print $2}'
31. Edit the local hosts by typing vi /etc/hosts file and manually add your public and private IP addresses and a hostname of your choosing
52.27.XXX.XXX oradev-ext.raastech.com oradev-ext
172.31.XXX.XXX oradev.raastech.com oradev
32. Create the Oracle unix user
groupadd oinstall
groupadd dba
useradd nobody
useradd -c "Oracle Software Owner" -g oinstall -G dba oracle
passwd oracle
33. Edit the profile for both the 'root' and 'oracle' users to something more readable
vi /root/.bash_profile /home/oracle/.bash_profile
34. Add the following and save the file
export PS1="\u@\h:\$PWD> "
alias ls='ls'
alias ll='ls -l'
35. Edit the sysctl file
vi /etc/sysctl.conf
36. Add the following and save the file, updating the hostname and domainname accordingly
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536
# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65535
# Semaphores: semmsl, semmns, semopm, semmni
kernel.shmmni = 4096
kernel.sem = 256 32000 100 142
fs.file-max = 6815744
fs.aio-max-nr = 1048576
kernel.hostname = oradev.raastech.com
kernel.domainname = raastech.com
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_max=1048576
kernel.msgmni = 2878
37. Load the sysctl settings
sysctl -p
38. Edit the configuration for the pam_limits module
39. Add the following to the bottom and save the file
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
Add an Extra 10GB Mount Point (optional)
mkdir -p /u01
chown oracle:oinstall /u01
41. Add the extra EC2 volume and mount it
echo "View available disks"
lsblk
echo "Confirm that /dev/xvdb is a 'data' volume"
file -s /dev/xvdb
echo "Create file system, all data will be lost in it"
mkfs -t ext4 /dev/xvdb
echo "Backup fstab and edit it"
cp /etc/fstab /etc/fstab.orig.20150528
echo "/dev/xvdb /u01 ext4 defaults,nofail 0 2" >> /etc/fstab
echo "Mount /u01"
mount /u01
chown oracle:oinstall /u01
echo "Confirm that /u01 is mounted and available"
df -m
Install an NFS Server (optional)
42. Install the necessary NFS packages
yum install nfs-utils
43. Create a share folder
mkdir -p /u01/share
chown oracle:oinstall /u01/share
44. Edit the /etc/exports file
vi /etc/exports
45. Add the following and save the file (the hostnames denote which clients should have access)
/u01/share oraclient1.raastech.com(no_root_squash,rw,sync)
/u01/share oraclient2.raastech.com(no_root_squash,rw,sync)
46. Start the NFS server
service rpcbind start
service nfs start
47. Open port 2049 on the local firewall to allow remote NFS access to other EC2 instances
service firewalld start
firewall-cmd --permanent --zone=public --add-port=2049/tcp
firewall-cmd --reload
Configure the NFS Clients (optional)
48. On the client servers, run the following commands
yum install nfs-utils
telnet soadb.raastech.com 2049
mkdir -p /u01/share
chown oracle:oinstall /u01/share
sudo echo "oradev.raastech.com:/u01/share /u01/share nfs defaults 0 0" >> /etc/fstab
mount /u01/share
df -m
Install and Configure the VNC Server (optional)
49. Install the required VNC packages
yum groupinstall 'Server with GUI'
yum install tigervnc-server
yum install xclock
50. Open up the VNC port 5901 for remote access
firewall-cmd --permanent --zone=public --add-port=5901/tcp
firewall-cmd --reload
51. Start the VNC server
vncserver :1 -geometry 1280x720 -depth 16
52. Edit the profile script
vi /root/.bash_profile
53. Add the following and save the file
xhost +
54. Edit the profile script of additional unix users that will require GUI access
vi /home/oracle/.bash_profile
55. Add the following
export DISPLAY=:1
56. Connect via a VNC client such TightVNC on port 1
Applicable Versions:
- Amazon Web Services (2015)
- Red Hat Enterprise Linux 7.1 64-bit
Comprehensive and unified set of components seamlessly integrates on premises and cloud applications and services. Rapidly provision, deploy, manage and connect your Mark Hurd Oracle and 3rd party applications to reduce complexity and achieve one connected enterprise…..
ReplyDeleteIt is really a great work and the way in which you are sharing the knowledge is excellent.Thanks for your informative article
ReplyDeleteAws Online Training
Nice Information about Provisioning an AWS instance for general Oracle software my sincere thanks for sharing this post
ReplyDeleteAWS Training in BTM Layout
The solving of data problems become very easy for everyone by making of this activewizards.com which is make the data scientist availability very easy for everyone. Because the best data scientist always help you to manage your big and huge data which is not managed by you.
ReplyDeleteNice blog has been shared by you. before i read this blog i didn't have any knowledge about this but now i got some knowledge so keep on sharing such kind of an interesting blogs.
ReplyDeleteWeblogic Admin Training
I Just Love to read Your Articles Because they are very easy to understand.Very Helpful Post And Explained Very Clearly About All the things.Very Helpful. Coming To Our Self We Provide Restaurant Equipment Parts Through Out US At Very Affordable Prices And Also We Offer Same Day Shipping In US.We Offer Only Genuine Products.Thanks For Posting.HAve a Nice Day!
ReplyDeleteInformative Post! Thank you such a great amount for sharing. This pretty post, it was so great to peruse and helpful to enhance my insight as refreshed one, continue blogging... Vendor Reconciliation | CA Firms | Warehouse Audit
ReplyDeleteThankful for the Informative Post The Best article, Bala Guntipalli
ReplyDeleteWhatever We Are Gathering the information from the blogs,we have to keep on updating it,Chicago Immediate care in Chicago.By getting them into one place.Really thanks for posting.Very Thankful for the Informative Post.Really Thanks For Sharing.
ReplyDeleteThis Blog Provides Very Useful and great Information. United States Medical Licensing Examination Thanks for sharing.
ReplyDeleteAWS Training in Bangalore - Live Online & Classroom
ReplyDeletemyTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.ACC
IOT Training in Bangalore - Live Online & Classroom
ReplyDeleteIOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.
thanks for sharing
ReplyDeleteSoftware Testing Training In Chennai
Nice post keep do posting The Info was too good, for more information regarding the technology Click
ReplyDeleteAmazon web Services Training
Salesforce certification Training program
Salesforce Training online in India
This comment has been removed by the author.
ReplyDeleteThanks for blog really informative. Hope i will find more interesting post from you
ReplyDeleteUiPath Training in Bangalore
UiPath Training in BTM
Artificial Intelligence training in Bangalore
Artificial Intelligence training in BTM
data science with python training in Bangalore
data science with python training in BTM
ReplyDeleteThank you much more for sharing the worthful post. Your post is very inspiring for me and kindly updating...
Excel Training in Chennai
Excel Advanced course
Pega Training in Chennai
Tableau Training in Chennai
Unix Training in Chennai
Oracle Training in Chennai
Soft Skills Training in Chennai
JMeter Training in Chennai
Excel Training in OMR
Excel Training in Anna Nagar
I Got Job in my dream company with decent 12 Lacks Per Annum salary, I have learned this world most demanding course out there in the current IT Market from the big data training in bangaloreProviders who helped me a lot to achieve my dreams comes true. Really worth trying Freelance seo expert in bangalore
ReplyDeleteReally nice post. Provided helpful information. I hope that you will post more updates like this
ReplyDeleteAWS Training
AWS Online Training
I got some clear information from this blog.. Thanks for taking a time to share this blog...
ReplyDeleteAWS Training in Chennai
AWS Training in Bangalore
Best AWS Training in Bangalore
AWS Training Institutes in Bangalore
AWS Certification Training in Bangalore
Data Science Courses in Bangalore
DevOps Training in Bangalore
DOT NET Training in Bangalore
AWS Training in BTM
Best AWS Training in Marathahalli
Thanks for post.I do agree your blog for quiz programming concepts, which is very helpful to grow up your knowledge. keep sharing more
ReplyDeleteAWS training in chennai | AWS training in anna nagar | AWS training in omr | AWS training in porur | AWS training in tambaram | AWS training in velachery
Superb Blog post on aws domainAWS Training in Chennai
ReplyDeleteI like this article. Hope i will find more interesting post from you.
ReplyDeletePython Training in Chennai
Python Training in Bangalore
Python Training in Hyderabad
Python Training in Coimbatore
Python Training
python online training
python flask training
python flask online training
I gathered a lot of information through this article.Every example is easy to undestandable and explaining the logic easily,Thanks much for sharing.
ReplyDeleteWeb Designing Training in Chennai
Web Designing Course in Chennai
Web Designing Training in Bangalore
Web Designing Course in Bangalore
Web Designing Training in Hyderabad
Web Designing Course in Hyderabad
Web Designing Training in Coimbatore
Web Designing Training
Web Designing Online Training
Good Post! , it was so good to read and useful to improve my knowledge as an updated one, keep blogging.After seeing your article I want to say that also a well-written article with some very good information which is very useful for the readers....thanks for sharing it and do share more posts likethis.
ReplyDeletehttps://www.3ritechnologies.com/course/selenium-online-training/
Hello,This is really too useful and have more ideas from yours. keep sharing many techniques. eagerly waiting for your new blog and useful information……nice…….
ReplyDeleteAws Training in Chennai
Aws Training in Velachery
Aws Training in Tambaram
Aws Training in Porur
Aws Training in Omr
Aws Training in Annanagar
Aivivu chuyên vé máy bay, tham khảo
ReplyDeletesăn vé máy bay giá rẻ đi Mỹ
các chuyến bay từ mỹ về việt nam hôm nay
đặt vé từ nhật về việt nam
vé máy bay từ đức về việt nam giá rẻ
ve may bay tu canada ve viet nam
ve may bay vietnam airline tu han quoc ve viet nam
các khách sạn cách ly ở quảng ninh
chuyến bay chuyên gia trung quốc