Database in Microsoft Azure

Today we are going to look at what it takes to install Oracle Database Enterprise Edition 12c in Microsoft Azure. We had previously looked at deploying Application Express in Azure. The steps to deploy Enterprise Edition are almost the same. We start with the same process by logging into the portal, click on New, search for Oracle and look for the enterprise edition of the database.



In this example we are going to select Enterprise Edition 12c.

The two links at the bottom link you to the licensing and privacy statements from the Oracle website. Note that the license is not included for this edition of the database and you need to adhere to the licensing restrictions of a perpetual license for a cloud deployment. If we refer back to our calculations for perpetual license in AWS we amortize the database license over four years brings this cost to $3,720/month for a four core server as recommended by Microsoft. Note that we can go with a smaller core count and smaller memory count unlike with Amazon. AWS restricts us to a minimum core count for the Oracle database but Azure allows you to go below the suggested minimums to a system that is unusable. It is impossible to run the database on a single core 1 GB of RAM but the option is presented to you. From the previous screen, we click Create to start the deployment. We can only deploy into a Classic Virtual Machine instance.

The first things that we need to define are the server name, username to log in as, and password or ssh keys for the username. We can also define a new storage group or pull from an existing storage group. For our test either works.

When we look at the shapes suggested by Microsoft, a D12 Standard shape (4 cores and 28 GB) is the smallest configuration. This comes in at $290/month or roughly $10/day. This is a little more than we want to pay for a simple test system. We can get by with 2 cores and 3.75 GB for a simple experiment. We can do this at $89/month or roughly $3/day with an A2 Standard shape. We select the shape and click Select.


On the next screen we select the storage profile. The first option is Standard or Premium disk. If we select Premium SSD our shape gets resized to D2 Standard at a much higher per month charge. This gives us a higher IOP to storage which might or might not be required for our deployment. If we default back to Standard to get the lower shape cost, we have the option or locally replicated data, replication between data centers, and read access in a second geo the price goes from $2.40/100 GB/month to $4.80 to $6.10. We will go for the locally replicated data to minimize cost. We can define a new domain name for this account or accept the default. We can also define a virtual network for this instance as well. We can select the subnet routine as well as dynamic or static ip address assignment. We are going to accept the defaults for the network.


We do need to open port 1521 by adding an endpoint to this instance. If we scroll down on the network screen we can add a port by adding an endpoint. We might or might not want to open up this port. When we do this it opens up the port to the world. We can tunnel through ssh to access port 1521 but for demonstration purposes we are going to open up this port to the world and potentially look at white listing or ip address restricting access to this instance. We might also want to open port 1158 to see the enterprise manager console, port 80 for application express which is also available in enterprise edition of the database.

We do have the option of monitoring extensions to look at how things are performing. We are going to skip this option for our experiment but it is interesting to note that you do have additional options for monitoring.

We are not going to explore the diagnostics storage or availability sets because they really don’t apply to the database. They are more concerned with operating system and do not extend into the database. At this point we are ready to launch the instance so we click Ok. We do get one final review before we provision the instance with the database installed.

When we click Ok we get a message that the instance is deploying. We can look at more detail by clicking on the bell icon at the top and drilling down into the deployment detail.


It is important to note that the database binaries are installed by the database is not configured. There is no listener running. The ORACLE_SID has not been set. We need to run the odbca to create a database instance.

Other tutorials on installing an Oracle Database on Azure can be found at

To create a database at this point we need to run the dbca command. When I first tried to execute this command I got a strange error in that the system asked for a password then cleared the screen. This is a known issue relating to line wrap and XTERM configurations. It can be fixed by going into the putty settings and turning off line wrap.

If we look at the command line needed to create a database with dbca we notice that we first need -silent to disable the system from using a default X-Window screen to walk you through the installation. We do not have the X-Window system enabled or the ports configured so we need to install the database from the command line. This is done with the -silent option. The second option is -createDatabase. This tells dbca to create a new database. We also need to define a template to use as the foundation. Fortunately we have pre-defined templates in the /u01/app/oracle/product/12.1.0/dbhome_1/assistants/dbca/templates directory. We will be usign the General_Purpose.dbc template. We could use the Data_Warehouse.dbc or create a new one with the New_Database.dbt template. We also need to define the ORACLE_SID and characterset with the -gdbName, -sid, and -characterSet parameters. We finally wrap up the command options with -responseFile set to NO_VALUE. The entire command looks like

dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname orcl -sid orcl -responseFile NO_VALUE -characterSet AL32UTF8 -memoryPercentage 30 -emConfiguration LOCAL

This will create a database with ORACLE_SID set to orcl. We add a couple of other paramters to configure enterprise manager to be local rather than a central enterprise manager agent and limit the memory that we will use to 30% of the memory on the system.





The database creation agent will configure the database. This step will take 10-15 minutes to get to 100%. Some tutorials on how to use dbca in the silent mode can be found at

There are really no videos on youtube showing an install. In our example we should have include the -pdbName option to create an initial pluggable database as part of our database installation. Once we see the 100%, the database is complete. We then need to set our ORACLE_SID, ORACLE_HOME, PATH, and start the listener so that we can connect to the database. This is done with the commands


oraenv
export ORACLE_HOME=/u01/app/oracle/product/12.0.1/db_home
export PATH=$PATH:$ORACLE_HOME/bin
lsnrctl start


https://blogs.oracle.com/pshuff/resource/azure_db_12c_dbca_lsnrctl.png” width=”90%”>

From here we can look at the header information to verify that we installed a 12c Enterprise Edition and look at the location of the data files with the following commands


select * from v$version;
select con_id, name from v$datafile order by 1;



We can connect with SQL Developer because we opened up port 1521.


In summary, we can deploy Oracle Database 12c into the Microsoft Azure cloud. We get a partial install when we provision the database from the Marketplace. We still need to go through the dbca configuration as well as spinning up the listener and opening up the right ports for the database. The solution is not PaaS but database on IaaS. We can not size up the database with a single command. We do not get patching or automated backup, in fact we have not event setup backup at this point. This is similar to the Amazon AWS installation in EC2 but falls short of the database as a service delivered as PaaS in the Oracle Public Cloud. Pricing has the same considerations as the Database on AWS EC2 discussion we had yesterday with the only difference being the price for the compute and storage instance. We did not need to look at the online calculator because Microsoft does a very good job of presenting pricing options when you are configuring the instance. Again, we are not trying to say that once implementation is better or worse than the other but provide information so that you can decide your tradeoffs when selecting one cloud vendor over another.

181 thoughts on “Database in Microsoft Azure”

  1. I actually wanted to post a simple remark in order to express gratitude to you for the lovely suggestions you are writing at this site. My time intensive internet search has finally been compensated with reliable facts and techniques to write about with my company. I ‘d mention that most of us website visitors actually are unequivocally lucky to dwell in a fantastic place with many special people with beneficial ideas. I feel quite fortunate to have come across the website and look forward to many more awesome minutes reading here. Thanks a lot once more for all the details.

  2. I am just writing to let you understand of the helpful experience my cousin’s daughter enjoyed studying your webblog. She picked up some things, with the inclusion of how it is like to have an amazing giving heart to have many more clearly comprehend a variety of grueling subject matter. You undoubtedly did more than her expected results. Many thanks for presenting these priceless, healthy, edifying and even cool tips on the topic to Sandra.

  3. My wife and i ended up being quite happy when Edward managed to round up his researching from the ideas he obtained through your web page. It’s not at all simplistic to just choose to be offering secrets that some people might have been trying to sell. And we also already know we’ve got the blog owner to thank for this. Most of the explanations you made, the simple site menu, the friendships you will assist to create – it is most amazing, and it’s really assisting our son in addition to the family feel that the subject is amusing, and that’s very indispensable. Many thanks for all the pieces!

  4. Needed to put you a little bit of remark in order to thank you so much the moment again about the gorgeous methods you have featured above. This has been really extremely generous with you in giving extensively what many individuals would have advertised for an electronic book to help with making some bucks for their own end, and in particular considering that you could have tried it if you wanted. The creative ideas as well worked to be a good way to be aware that other people have similar dreams just as my very own to figure out good deal more in terms of this problem. I’m certain there are several more fun instances up front for many who check out your blog.

  5. I want to express some thanks to you for rescuing me from such a scenario. After checking throughout the world wide web and getting concepts that were not productive, I figured my entire life was gone. Living without the approaches to the problems you’ve resolved all through your good article content is a crucial case, as well as the ones that could have in a negative way affected my career if I hadn’t discovered your web page. Your own mastery and kindness in controlling the whole thing was priceless. I’m not sure what I would’ve done if I had not encountered such a solution like this. It’s possible to at this time look forward to my future. Thanks for your time so much for this reliable and sensible guide. I won’t be reluctant to suggest your site to any person who desires care on this subject.

  6. I enjoy you because of each of your work on this blog. My aunt take interest in going through investigation and it’s really easy to see why. I know all regarding the compelling method you present reliable ideas by means of the blog and therefore recommend response from some others on the subject plus our daughter has always been understanding a great deal. Have fun with the rest of the new year. You are carrying out a superb job.

  7. I truly wanted to post a message so as to appreciate you for these unique recommendations you are placing at this site. My long internet search has now been rewarded with reasonable information to write about with my partners. I would assume that many of us visitors are rather fortunate to dwell in a remarkable network with many wonderful people with good tricks. I feel very happy to have discovered your entire web pages and look forward to really more fun moments reading here. Thanks again for a lot of things.

  8. I as well as my buddies have already been analyzing the great pointers on your web blog then at once came up with an awful feeling I had not thanked you for them. These guys had been as a result happy to read through all of them and have now very much been making the most of these things. Thank you for being really thoughtful and then for figuring out these kinds of ideal things millions of individuals are really wanting to understand about. Our honest apologies for not saying thanks to you sooner.

  9. Thanks for all of your hard work on this web page. Kim enjoys participating in research and it’s simple to grasp why. A lot of people notice all regarding the powerful method you provide simple thoughts by means of the blog and as well as strongly encourage participation from others on this area of interest so our favorite daughter is being taught a lot of things. Take advantage of the remaining portion of the new year. You are always doing a good job.

  10. I together with my friends were actually looking through the excellent tricks from your site then unexpectedly I got a horrible feeling I had not expressed respect to the web blog owner for them. The people came totally glad to read through all of them and have now in fact been taking pleasure in these things. Thank you for actually being so considerate and for having varieties of notable things most people are really desirous to be informed on. Our own sincere apologies for not expressing gratitude to sooner.

  11. Needed to draft you that bit of note to finally say thanks a lot as before considering the magnificent tricks you’ve featured in this case. It’s simply incredibly open-handed of people like you to offer without restraint all that many people could have advertised as an electronic book to help make some bucks for themselves, most importantly now that you might well have done it if you ever considered necessary. These strategies also acted as the easy way to recognize that other people online have a similar zeal just like my very own to know a good deal more concerning this condition. I think there are many more pleasurable occasions up front for many who scan through your site.

  12. I together with my guys ended up analyzing the great helpful tips on your web page while quickly developed a horrible feeling I had not thanked you for those secrets. Those men are actually totally very interested to read through all of them and have in effect unquestionably been using them. Thank you for turning out to be simply considerate and for pick out this sort of wonderful areas millions of individuals are really wanting to know about. My sincere apologies for not expressing gratitude to you earlier.

  13. I simply desired to say thanks all over again. I’m not certain the things that I would have created in the absence of the type of advice contributed by you regarding that field. Entirely was the intimidating situation for me, however , observing the very expert fashion you solved the issue made me to weep for joy. I will be happier for the advice as well as hope that you know what a powerful job you happen to be doing training men and women through the use of your webpage. Most probably you’ve never got to know all of us.

  14. A lot of thanks for every one of your efforts on this blog. My niece take interest in making time for research and it is easy to understand why. Most of us learn all of the compelling way you render both interesting and useful tips and hints by means of the blog and even boost participation from other ones on that issue so my child is truly starting to learn a whole lot. Enjoy the rest of the year. You’re conducting a really good job.

  15. I want to express my passion for your generosity supporting women who have the need for assistance with this niche. Your special commitment to getting the solution all around had become wonderfully powerful and has truly helped workers much like me to reach their goals. Your new important hints and tips signifies a lot to me and even further to my office colleagues. Regards; from each one of us.

  16. I precisely wished to say thanks yet again. I am not sure what I could possibly have accomplished in the absence of the entire ways provided by you about this theme. Completely was a terrifying concern for me, however , witnessing the specialised style you processed it made me to jump for contentment. I am just thankful for this help and even sincerely hope you are aware of an amazing job your are carrying out instructing people today by way of your site. Most likely you have never come across any of us.

  17. I wish to convey my admiration for your kindness giving support to persons who should have help with this important idea. Your personal dedication to getting the solution along turned out to be extraordinarily interesting and have continually empowered most people like me to arrive at their endeavors. Your own warm and friendly key points means a lot to me and even further to my colleagues. With thanks; from everyone of us.

  18. I have to show my love for your kind-heartedness supporting men and women that need help with in this concept. Your special dedication to passing the message across has been unbelievably valuable and has regularly enabled employees like me to reach their endeavors. Your new insightful guideline implies a whole lot to me and additionally to my office workers. Regards; from all of us.

  19. I wanted to send a message in order to appreciate you for the fabulous tips you are posting at this site. My time intensive internet look up has at the end of the day been compensated with really good details to write about with my colleagues. I ‘d repeat that most of us site visitors actually are undoubtedly endowed to dwell in a remarkable website with very many awesome professionals with very beneficial points. I feel really blessed to have come across the webpages and look forward to tons of more amazing times reading here. Thanks a lot once more for everything.

  20. My husband and i have been quite ecstatic when Emmanuel could round up his preliminary research using the precious recommendations he made from your own blog. It is now and again perplexing to just possibly be freely giving steps that many others have been trying to sell. We take into account we have got the website owner to give thanks to for that. The specific explanations you have made, the straightforward website menu, the friendships you can help foster – it’s got most terrific, and it’s really assisting our son in addition to us understand this subject is enjoyable, which is extremely essential. Thanks for all!

  21. Thanks so much for giving everyone an extraordinarily brilliant opportunity to check tips from this website. It is always so awesome and full of a good time for me and my office co-workers to search your site at a minimum thrice a week to read the new secrets you will have. Not to mention, I am usually pleased with all the very good inspiring ideas you give. Selected two points on this page are in reality the very best we have ever had.

  22. I would like to show appreciation to the writer just for bailing me out of such a situation. Just after surfing throughout the the web and getting strategies that were not productive, I figured my entire life was over. Living minus the solutions to the difficulties you have resolved as a result of this review is a critical case, and the ones which might have adversely affected my entire career if I hadn’t come across your web page. That mastery and kindness in controlling all things was precious. I’m not sure what I would have done if I hadn’t come across such a stuff like this. I can now look forward to my future. Thanks a lot so much for your specialized and effective guide. I will not be reluctant to refer your site to any person who should receive guidance on this issue.

  23. I not to mention my buddies were found to be following the best thoughts on your site then immediately developed an awful suspicion I had not thanked the blog owner for those secrets. Most of the ladies came glad to read through them and already have definitely been enjoying these things. Thank you for truly being quite thoughtful and then for figuring out these kinds of high-quality topics millions of individuals are really wanting to understand about. Our sincere apologies for not expressing gratitude to earlier.

  24. I really wanted to write a quick remark in order to appreciate you for all the fabulous techniques you are giving on this website. My time consuming internet lookup has finally been honored with pleasant content to exchange with my visitors. I ‘d believe that we website visitors actually are unquestionably lucky to be in a superb network with very many lovely professionals with helpful tips and hints. I feel somewhat privileged to have used the weblog and look forward to really more exciting minutes reading here. Thank you again for everything.

  25. I intended to put you the tiny note in order to give thanks the moment again on your wonderful guidelines you’ve shown above. It’s really unbelievably generous of people like you to make unhampered all a lot of folks might have distributed for an electronic book to make some cash for themselves, certainly since you might well have done it in the event you considered necessary. Those smart ideas additionally worked to be the great way to be certain that many people have similar fervor much like my very own to understand significantly more in respect of this condition. I am sure there are numerous more fun instances in the future for individuals who view your website.

  26. Thank you a lot for providing individuals with an extremely brilliant chance to discover important secrets from this blog. It’s always so nice and also jam-packed with a great time for me and my office mates to visit your site not less than three times weekly to study the new tips you have got. Of course, I am always contented with all the attractive secrets you serve. Certain 1 areas on this page are definitely the most beneficial we have all had.

  27. I in addition to my buddies were actually taking note of the good thoughts on your web page and then at once I had an awful feeling I never thanked the website owner for them. All the young boys had been happy to study all of them and have very much been loving them. I appreciate you for being considerably thoughtful as well as for having this form of incredibly good tips most people are really needing to discover. Our honest regret for not expressing gratitude to you sooner.

  28. I am just writing to make you know what a remarkable discovery my cousin’s girl encountered viewing your web site. She learned several things, which included what it’s like to possess an incredible teaching spirit to have certain people easily know a number of specialized things. You actually surpassed my desires. Many thanks for providing such insightful, healthy, revealing not to mention easy tips on this topic to Emily.

  29. I would like to get across my gratitude for your kindness supporting individuals who absolutely need help on your concept. Your special commitment to getting the solution all over appeared to be certainly helpful and have consistently made workers like me to achieve their goals. The important key points indicates a great deal a person like me and still more to my fellow workers. Regards; from each one of us.

  30. I as well as my buddies happened to be analyzing the best ideas located on your site and so before long I had a horrible feeling I never thanked the web blog owner for those techniques. These boys were certainly glad to read all of them and have in effect truly been taking pleasure in them. I appreciate you for being well helpful and then for utilizing certain great topics millions of individuals are really wanting to learn about. Our honest regret for not expressing appreciation to earlier.

  31. I am just commenting to let you understand of the outstanding discovery my wife’s princess enjoyed visiting your webblog. She discovered numerous things, including how it is like to possess an incredible giving nature to get men and women quite simply gain knowledge of selected specialized subject matter. You undoubtedly did more than visitors’ expected results. Thank you for supplying such important, trusted, educational and also unique thoughts on that topic to Gloria.

  32. I would like to express some thanks to the writer just for bailing me out of this setting. Right after researching through the world-wide-web and coming across advice that were not productive, I figured my entire life was well over. Being alive without the solutions to the issues you have resolved by means of your main website is a crucial case, and ones which could have negatively affected my career if I hadn’t discovered your site. Your own personal training and kindness in touching all the things was important. I don’t know what I would’ve done if I had not discovered such a step like this. I can at this moment relish my future. Thanks for your time so much for this professional and amazing guide. I will not hesitate to refer the website to anyone who wants and needs recommendations on this issue.

  33. I would like to convey my admiration for your generosity in support of men and women that really need assistance with the area of interest. Your special dedication to getting the solution up and down became quite valuable and has all the time permitted guys and women like me to achieve their goals. Your amazing valuable key points means a great deal to me and substantially more to my office workers. With thanks; from all of us.

  34. Thank you a lot for providing individuals with remarkably superb possiblity to discover important secrets from this website. It is always so cool and as well , stuffed with a great time for me and my office acquaintances to search your website at a minimum thrice in 7 days to find out the fresh items you will have. Of course, I am also at all times pleased considering the amazing thoughts served by you. Some 3 ideas on this page are undeniably the best we’ve ever had.

  35. I want to show appreciation to the writer for bailing me out of this type of predicament. Right after looking out through the online world and seeing opinions which were not pleasant, I was thinking my entire life was done. Living devoid of the solutions to the problems you have solved as a result of your entire short post is a crucial case, as well as the ones which could have in a wrong way damaged my entire career if I had not discovered your web page. Your actual mastery and kindness in playing with the whole lot was excellent. I am not sure what I would have done if I had not discovered such a step like this. I am able to at this moment look ahead to my future. Thanks so much for the reliable and sensible guide. I will not hesitate to endorse your web page to anyone who should get tips about this issue.

  36. Thank you so much for providing individuals with an extremely spectacular chance to read from this blog. It can be so enjoyable and jam-packed with a great time for me personally and my office mates to search your web site the equivalent of 3 times per week to study the new secrets you will have. And indeed, I am also actually motivated considering the beautiful things served by you. Some two points on this page are in truth the most beneficial I’ve ever had.

  37. I would like to convey my gratitude for your kind-heartedness supporting men and women who need help on this particular subject. Your very own dedication to getting the solution all-around came to be extremely valuable and has frequently permitted workers like me to achieve their dreams. Your useful report signifies this much a person like me and even more to my office colleagues. Thank you; from everyone of us.

  38. I would like to express some appreciation to the writer for rescuing me from this particular matter. Just after looking out through the world-wide-web and getting ideas that were not beneficial, I believed my entire life was over. Living without the solutions to the problems you’ve solved through your review is a critical case, and the kind which might have in a wrong way affected my entire career if I had not encountered the blog. Your main talents and kindness in taking care of a lot of things was precious. I am not sure what I would have done if I hadn’t come across such a subject like this. I am able to at this moment look ahead to my future. Thanks for your time very much for your professional and sensible guide. I won’t be reluctant to suggest your web sites to anyone who should receive guidance on this area.

  39. Thank you for your own efforts on this web page. My aunt really loves conducting investigation and it is simple to grasp why. My spouse and i learn all of the lively way you provide valuable things on your web site and as well encourage response from others on the idea and our own daughter is actually understanding a great deal. Take advantage of the remaining portion of the new year. You are always doing a remarkable job.

  40. Thank you so much for giving everyone remarkably remarkable possiblity to check tips from this web site. It is often so beneficial and as well , packed with a good time for me and my office friends to visit your site at minimum thrice in one week to learn the newest items you have. And indeed, I’m so usually pleased for the unbelievable principles served by you. Selected 2 facts in this article are surely the most impressive we have ever had.

  41. I definitely wanted to write a small message to say thanks to you for these superb strategies you are giving here. My rather long internet research has finally been rewarded with high-quality facts and strategies to share with my good friends. I ‘d express that most of us visitors actually are definitely blessed to exist in a remarkable community with very many awesome professionals with great opinions. I feel truly fortunate to have used the web pages and look forward to really more entertaining moments reading here. Thanks once more for all the details.

  42. Thank you so much for giving everyone an extremely wonderful possiblity to check tips from here. It really is very brilliant and also packed with a great time for me and my office fellow workers to search your web site on the least 3 times per week to see the fresh issues you have got. And lastly, I am just actually happy concerning the staggering guidelines you give. Some 1 ideas in this post are rather the very best we have had.

Leave a Reply

Your email address will not be published. Required fields are marked *