Season’s Greetings….

So an another year is on the verge of being over and another new year is knocking on the door. Its that time of the year again to say goodbye to the old one and welcoming the new one with the open arms with a hope that it would bring a lot of happiness, success and good health for all of us.So from me, a very happy and prosperous 2012 to the entire Oracle community :-) . Hope in this year, we shall see a lot of new and exciting stuff ( as like always) from Oracle database side , giving us all new stuff to learn and play with. And how can I skip, Cloud Computing! Now that’s something that would be really interesting to watch out , isn’t it :-) ?

6 Comments

AIOUG’s Sangam 2011 Wrap-up….

AIOUG(All India Oracle Users Group) has finished its annual Oracle user group conference Sangam on this Saturday. It was their 3rd annual conference from the time they have started and it was my 2nd year of attending it. Due to some personal issues of mine, I was a little doubtful that whether I shall be able to make for it this time or not and fortunately, I was able to and as expected, it came out to be a great event! Lots of learning, meeting celebrities of Oracle database world along with fellow attendees, out of which some were old faces and some were new, it was an in and out two days completely packed with just Oracle all around which , at least for me is just simply awesome!

Just like the last two years of conference, this year’s also was a having a lot of who’s who of the Oracle world! The keynote was by Arup Nanda who needs no introduction I believe. Arup is a VERY well known expert in the Oracle database world and is a very frequent contributor on various online forums as well as the author of several books. His top 10 new features article series, covering every new release of Oracle database, is among the most popular technical articles for DBA’s. I was very excited to meet him because I have had interaction with him through emails already  and this time, I was finally going to meet him in-person. I met him outside the keynote hall and he immediately recognized me too when I told I am Aman :-) . I must say, besides being so good in the oracle database, he is also a very friendly and nice person as well. It was an utmost pleasure to listen to him live for two days and I shall be looking forward to meet him any time soon.

The other very memorable moment(at least for me) was to meet and hear someone who is one of the most well known names in the Oracle database world, Rich Niemiec. I must admit, I never even thought in a dream too that I would be able to meet Rich and not just meet but would be able to see him speaking. And even more, be in a pic with him :-) . He mentioned that his book Performance Tuning Tips and Techniques would be coming soon covering 11.2. He gave two presentations, one on each day of the conference. I must say, his style  of presenting and wittiness is just amazing! I really hope and wish that I shall get a chance to meet him soon again sometime.

This time, the Sangam team had decided to run parallel tracks of Java and application development along with the database track. Since both are not my domain, I didn’t attend any sessions of those tracks except of Bryn Llewellyn, PL/SQL Product Manager which was about the 11g’s enhancements about Pl/Sql. It was a very good presentation. Both, the content and the presenting style of Bryn, made the whole one hour of the presentation filled with lots of goodies related to Pl/Sql introduced in 11g. Another presentation which I attended and didn’t know about the speaker before, was of Kuassi Mensah(blog|Google+|Twitter|Facebook|LinkedIn) who is also a product manager at Oracle corporation. It was my first time to hear him speaking and his presentation was a very deep one, about the tuning of Oracle net services. It was an hour filled with lots of technical content presented in a very good way! I also met Hemant Chitale whom I know from a long time as he is a fellow member and a very active contributor over OTN forums. In addition to this, he is also one of the tech reviewers for my book. Though we have had many discussions over the forum and through the emails, this was the first time when I had a chance to meet him. Hemant is a very knowledgeable yet very down-to-earth and humble person in nature and it was an absolute pleasure to meet him. Last but certainly not the least, I met (again) Murali Vallath(LinkedIn|Twitter|Blog) who is the president of AIOUG. Its always a pleasure to meet him and the amount of efforts that he and his entire team puts in to make the conference a success, are just beyond words and even more, he is a very nice, humble and so down to earth person!

This year’s Sangam was also special for one another reason and that was that my very close friend Neeraj Bhatia(Blog|Google+|Twitter) was presenting his presentation this year which was titled as Did someone say Capacity Planning?(slides are available for the download at his blog). This was the first time that he was presenting and I must say, he did a fantastic job given that it was his very first public speaking. Now, since he has got the ball rolling, its my turn now to do the same.

Besides the great presentations and speakers, the entire conference, in the terms of the logistics and facilities,  was also maintained by  AIOUG team. The venue chosen this time was very spacious and lavish. It was the Crowne Plaza hotel Banglore which had fantastic arrangements for both conference space and food. The staff was very friendly and the overall appearance of the place was very eye catching. There were demo booths from Oracle support where they demonstrated power of Oracle Exadata live! The goodies offered to the attendees were also very nice.

To sum up, Sangam 2011 was yet another a very exciting,fun-filled and yet a great learning experience packed within 2 days. A big thanks again to Murali and his entire team to pull it through and I am already looking forward for 2012. 

No Comments

Oracle Education’s Training On Demand….

I always mention to everyone whoever approaches to me about learning Oracle database(and other technologies from Oracle) that the best place to learn it is from Oracle itself! There is no other place where you would get the 100% student satisfaction guarantee , will you? Besides offering the best of the quality training sessions for a very wide variety of Oracle technologies, Oracle University always brings up new and innovative ways to make the learning process more easier and comfortable for the delegates. The self study cd ROMs, LVC(Live Virtual Class) training format are the best examples of such innovative steps taken already. Continuing the same tradition, Oracle University has unveiled a completely new format of learning, training on demand!

Training on demand offers pre-recorded videos of training sessions of the course which are available to view online. The recordings contain the in-class training sessions delivered by the top instructors of OU. The sessions can be viewed as per your choice, for example, if you want to view the session of  day 5 only, you can do so. I think that this is the best of the best out of both self study cd ROMs and LVC since you get to learn on your on pace and also get the instructor lead teaching as well. Now isn’t that just awesome :-) ? Do check out the sample videos from the link posted above to see for yourself!

,

No Comments

EM 12c, Control The Cloud….

Just a quick post to mention(if you haven’t heard already) that newest release of Enterprise Manager , 12c is officially out now and is available for download(currently, only for Linux platform). C represents Cloud computing and it seems that the next release would be completely about it and its already started with Oracle Public Cloud . Interesting!

I shall be doing the download and installation of the EM 12c when I shall be back at home. Till then, here are the links for the downloading of the software and of its documentation.

Oracle Enterprise Manager Cloud Control Documentation

Oracle Enterprise Manager Download

Happy clouding :-) .

PS: Gokhan Atil has already posted a blog post about the installation of EM, check it out here.

,

2 Comments

Welcome ODA(Oracle Data Appliance)….

So a new cousin has come to Exadata family, Oracle Database Appliance aka ODA. I am traveling overseas at the moment so missed the live webcast but would see it tonight(hopefully) over here. Andy Colvin(oracle-ninja) has already started to play with it as he mentions here and here. It would be interesting to see how this “mini Exadata” picks up and what has it underneath its sleeves! Hope I shall get one to play with soon, anyone wants to gift it to me on my (upcoming) birthday :-) ?

No Comments

Recovering The OCR When It Is On ASM….

A good question came just now in the session from a delegate when we were discussing the restore and recovery of the Oracle Cluster Registry(OCR) . Its a well documented thing how to do it when the OCR is placed on a normal, shared storage, for example like “/dev/sda” . The steps to do so are listed in the documentation. But those steps won’t be working(in the same manner) from 11.2 onwards when the OCR can be placed on ASM. The question was that when the complete disk group is gone which had the OCR stored over it, how it would be possible to do the restore of the OCR backup(still done automatically every 4 hours like the previous releases) since the ASM diskgroup needs to be there to do the restore. Well, that’s a good question and for it, there is a published note on My Oracle Support(MOS) as well which we found out. So in case you get into the same situation, refer to the MOS# 1062983.1 How to restore ASM based OCR after complete loss of the CRS diskgroup.

Learning never stops when it’s something like Oracle you are playing with, isn’t it :-) .

, ,

2 Comments

11.2 RAC’s New Goodies, Node UnPinning….

From the past few months, I have been delivering a lots of sessions on 11.2 RAC and I must say, there are many new things which are being added to it. There are some more highlighted pieces  about the changes and some are not so much. So I have thought that I shall share those new goodies which didn’t qualify to be come in the limelight here :-) . Please note that that all what I shall mention is not an earth shattering news and/or internals. These are just notes or pointers about stuff that I found pretty interesting and worth sharing with everyone :-) .

So the first goodie is, node pinning!

Before 11.2 RAC, the only way to mention the nodes and their IP configurations was either DNS or in the static file /etc/hosts. This would assign the static IP’s only to the nodes and also, the numbers that would be assigned to the nodes would be unchangeable. But in 11.2, we have, besides DNS(and to some extent /etc/hosts file too but its not recommended to be used), DHCP available as well. This would mean that the IP addresses assigned to the nodes are going to be dynamic and would stay with them for certain time period only. This is also now applicable to the node numbers. They would also be assigned for a time period only and won’t remain the same all the time. So the nodes, which are from the fresh 11.2 cluster, would be unpinned i.e. there is no hard coupling between a node and its number and it may change as well. You can check whether the nodes of yours are pinned or unpinned with the OLSNODES command.


[grid@host01 ~]$ olsnodes -h
  Usage: olsnodes [ [-n] [-i] [-s] [-t] [<node> | -l [-p]] | [-c] ] [-g] [-v] 

where 

-n print node number with the node name 

-p print private interconnect address for the local node 

-i print virtual IP address with the node name 

<node> print information for the specified node 

-l print information for the local node 

-s print node status - active or inactive 

-t print node type - pinned or unpinned 

-g turn on logging 

-v Run in debug mode; use at direction of Oracle Support only. 

-c print clusterware name 

 

On my 3 node RAC running on OEL 5 and with db version 11201, this was the output.

[grid@host01 ~]$ olsnodes -t 

host01  Unpinned 

host02  Unpinned 

host03  Unpinned 



And now using the OLSNODES in the debug mode, we can see the node numbers assigned to them as well (we can see it in a more easy manner as well).


[grid@host01 ~]$ olsnodes -v
  lang init : Initializing LXL global 

main: Initializing CLSS context 

memberlist: No of cluster members configured = 256 

memberlist: Allocated mem for lease node vector. 

memberlist: Leased NodeList entries used = 3. 

memberlist: Getting information for nodenum = 1 

memberlist: node_name = host01 

memberlist: ctx->lsdata->node_num = 1 

print data: Printing the node data 

host01 

memberlist: Getting information for nodenum = 2 

memberlist: node_name = host02 

memberlist: ctx->lsdata->node_num = 2 

print data: Printing the node data 

host02 

memberlist: Getting information for nodenum = 3 

memberlist: node_name = host03 

memberlist: ctx->lsdata->node_num = 3 

print data: Printing the node data 

host03 

main: olsnodes executed successfully 

term: Terminating LSF 


And now with a more easy manner,


[grid@host01 ~]$ olsnodes -n
  host01  1 

host02  2 

host03  3 

If you do want to pin a node with its current number, it can be done(and undone) by the following way,


[root@host01 ~]# /u01/app/11.2.0/grid/bin/crsctl  pin css -n host03
  CRS-4664: Node host03 successfully pinned. 

[root@host01 ~]# /u01/app/11.2.0/grid/bin/olsnodes -n 

host01  1 

host02  2 

host03  3 

[root@host01 ~]# /u01/app/11.2.0/grid/bin/olsnodes -t 

host01  Unpinned 

host02  Unpinned 

host03  Pinned 

[root@host01 ~]# 

[root@host01 ~]# /u01/app/11.2.0/grid/bin/crsctl  unpin css -n host03 

CRS-4667: Node host03 successfully unpinned. 

[root@host01 ~]# /u01/app/11.2.0/grid/bin/olsnodes -t -n 

host01  1       Unpinned 

host02  2       Unpinned 

host03  3       Unpinned 

[root@host01 ~]# /u01/app/11.2.0/grid/bin/olsnodes -t -n host03 

host03  3       Unpinned 

[root@host01 ~]#

As I said before, all nodes which are going to be a part a fresh 11.2 RAC installation, would be by default unpinned only. And if you have the nodes from the old RAC installation, they would be considered as pinned by default after 11.2 upgrade. If you are going to attempt to delete a node that is already pinned, before you would proceed , you should unpin the node and then then go ahead.

Now, its not really something which would be serving as I said already I believe but still, it was a new thing for me to know :-) . And to be honest, this is really not a useless thing actually as this is a step forward of Oracle to break the hard coupling of a resource tied to a specific node, the way we are accustomed to manage them in the prior versions, something which I shall talk about in the next post. Till then, happy pinning/unpinning :) .

, ,

4 Comments

WordPress 3.2 Upgrade….

WordPress has released their major upgrade release 3.2. Its a BIG time change and I must say, its awesome! There were some quirks in my installation of the upgrades in the past due to some permission issues but thanks to our in-house web-db-specialist Sidhu, this time it went smoothly :-) . Its a new release and as Tim Hall mentioned in this blog post, its not going to be just another upgrade but would require you to do some pre-checks as well. Still, I don’t think that there would be any major trouble that you would face. So, if you can read this post, mine is already upgraded to 3.2 successfully :-) . So let the upgrade begin :-) .

No Comments

Book Review,Oracle 11gR1/R2 Real Application Clusters Essentials….

Oracle’s Real Application Cluster(RAC) is database’s industry’s most innovative, popular and (obviously) complex technologies. Using RAC and with a careful planning and proper design of the application, a shop can achieve immense scalability and performance without going for a very high end hardware. This is the reason, now a days, almost every shop that runs Oracle database, is having at least one implementation of RAC for sure and the numbers are keep on growing worldwide ensuring and establishing the fact that RAC is indeed one of the best technical milestones achieved by Oracle corp and with the upcoming releases of it for the version 11g, it has become even better!

You can read more about RAC from the below links,

http://www.oracle.com/us/products/database/options/real-application-clusters/index.html

http://en.wikipedia.org/wiki/Oracle_RAC

Being innovative technology means that RAC must be a complex piece of technology as well. Well, that should hardly come as any surprise since in RAC, there are many moving pieces and even within RAC, there is a lot that keeps on going all the time which makes it a tough thing to grasp. Though Oracle documentation does a very good job in explaining its in-how but still, its always welcome to have more information. That’s why, a book over such a complex technology is always a welcome thing. Being very advanced technology, there are just a handful of books available for it and the number is even lesser for the latest version 11.2. All these facts make the book, Oracle 11gR1/R2 Real Application Clusters Essentials from my friend Syed Jaffar Hussain and Ben Prusinski, published by Packt Publications a must-buy book!

There are always two approaches to write about a technical topic, write the internal but mostly, non-usable stuff in a real world and another, write what is going to be usable in the real life, production systems. The RAC Essential books does a very good job in making a dba very well aware about the RAC technology and holds her hand to go through with different aspects of it in a step-by-step process. The language chosen is simple, the layout within the chapters for the content is clean and doesn’t confuse one when he is reading the chapter.

The chapters start with the introduction of the high availability architecture making the reader understand that why such technology like RAC is needed. There can be several types of failures which may bring the business down and using RAC some of those failures can be taken away and one can still let the business run. With that introduction, the chapter goes into the introduction of several jewels under the umbrella of the MAA(Maximum Availability Architecture) which includes RAC, Data Guard, Streams and so on.This chapter should make the reader aware and confident about the technology and also would make him understand the necessity of it as well.

The chapter 2 starts with the RAC architecture thus diving deeper into the technical aspects of the RAC technology. This chapter also discusses the necessary hardware requirements such as network and storage, something which can be a very crucial factor in the RAC installation and configuration. With a very detailed presentation of it, the chapter goes more deeper with the explanation of some crucial processes of RAC with the discussion about ASM , the new features of 11.2 RAC and so on. With that knowledge in hand, the next chapter , chapter 3 should come easy for the reader since its about the installation and configuration of RAC. Since there are differences in the configuration of 11.1 and 11.2 RAC, the authors have tried to explain both the configurations so that the difference becomes evident to the reader.

The chapter 4 is devoted to the Automatic Storage Management(ASM). Those who are not keeping track with the latest new features of ASM, or even those who don’t know about ASM before, both should get a good deal of info about its architecture, configuration and most importantly the new things introduced in it by Oracle from 11.2. A detailed description of ASMCMD is also given which in itself has become a very elaborated utility from 11.2(there are about 60+ commands in it now compared to around 14 in the previous versions) .

The next chapters, 5, 6 , 7 and 8 covers up the most important that is needed by a production DBA to manage and administer a clustered environment. There is a lot that RAC offers and some things in RAC land are completely different compared from the single instance world. These chapters are covering the information about the debugging, handling the backups within the clustered environment and also about performance tuning, things which are not different compared to single instance but when done on RAC, come up with couples of new surprises which are covered up in these chapters. If you are not familiar with RAC before, I would suggest to read these chapters couple of times so that you can sync up the concepts and understand fully what’s there.

My favorite chapters from the entire book(just for the record, I liked the entire book) are the chapters 9 and 10 which cover up the part of upgrade and also some of the real world problems which both the authors are very well aware being old veterans in the database world. There are different ways that one can use to upgrade clustered environments and its not really a piece of cake many times. Since there can be many different bells and whistles that one would find in his own environment, may be not all the instructions given in the chapters may be applicable in the exact form but still, having an idea given here is going to be very useful for DBA to understand the entire life cycle of doing it. In the same way, its not possible that one would be lucky enough to see all the errors in his own environment, the chapter’s information about some of the real world issues related to RAC would come very handy when someone would see such things in his own world.

The 2nd last chapter is devoted to describe that how one can use the RAC in the E-biz environment. Strictly speaking about me here, since I am not having any knowledge about E-Biz, I just had a glance at it. But knowing that E-biz is a very complex piece of technology, the given information to manage it over RAC, I think it should come very useful to those DBA’s who manage it in their shops.

The book concludes with the discussion of some other components of MAA like data guard, streams and explains their usage with RAC. A detailed description of these components is provided in this chapter. Besides this, there is a very handy description of some the most useful goodies for the dba’s to be used in the clustered environment are given in a separate section. I guess that would be among the most used sections of the book.

Both Syed and Ben has done a very good job in choosing the topics , making their layout in terms of content and finally, writing them out. As I said already, RAC is something which needs that one must refer to a good book to understand it and since there is a lot of change in the 11.2 RAC, this book has come just in time for all who are willing to have a book which would prove as a very valuable addition in making the old concepts refreshed and describing the new concepts in a clear and simple manner! My sincere thanks and best wishes to Syed and Ben for their efforts to bring this book to us, the oracle community. And last but certainly not the least, my sincere thanks to Packt Publication as well for getting all the hard work done to make this book come to us. Well done guys!

2 Comments

OERR For Windows….

Oracle database’s documentation available at Tahiti is a really vast and impressive resource of knowledge. There is almost everything, that’s usable to a dba in his daily work, available over it and in a very elaborated manner. Out of all the books, one book, which I believe must have been accessed by many is the Error Message guide :-) . Now, it’s really quick and easy to navigate the error guide, search for the error number, it’s cause and then the action required to solve it from the online guide but at times, you don’t have the access to the online documentation. Okay, to be honest, that’s not a big deal still because you can download the documentation and can keep it with you. But still, doing that is again an additional task which, to be honest, some dba’s would care to do and some(most IMHO) won’t. That demands for something which should be able to give the error description without the usage of both online and offline documentation. Fortunately, there is a solution for almost everything when it comes to computers :-)   and for the mentioned trouble, Oracle supplies a utility OERR. This is an offline tool which can be used very easily to find the error description that you are getting. But there is just one trouble, this tool is NOT there for Windows, well it was till today ;-) .

My friend John Barrenechea has managed to put together the OERR for Windows and given the honor to me to use it before making it available to all. And I can say with full confidence that it works like a charm. I am honored that he has chosen me to make this tool available to Oracle community via my blog. So without further a due, here is the download link . There is a very elaborated readme file provided to explain the usage and  the mechanism used to create it. There are few features added, or you can say enhanced, in this version of OERR compared to it’s sibling available over Unix platforms. I encourage you all to download it, use and post the feedback of yours over here in the comments section and I shall pass them on to John. Happy troubleshooting :-) .

Update: There was a bug in the previous version of OERR found by John related to the prompt mode. It has been rectified and the new, updated version is available for download. Please check and post feedback.

8 Comments