Site Vists

There might be so many reasons why one would want to have a website or a blog. But if you ask me, I didn’t have clear one to start with. I didn’t even bother to retrieve my login credentials for this site for a very long time. So basically I didn’t have anything to blog about.

Recently one of my friends started a site of his own on http://www.ritzyblogs.com and this got me thinking back to the olden days when I initially started this. Since Ritzy was upto something with his posts, I too wanted to get started (should I say continue) on it. Of course I can’t match up to his standards, but hey I’m not competing! I’m just happy that he inspired something for me to get started.

The moment I think of posts, there are so many topics that come to the mind which I want it to make its way here. But, the clarity of the thought is very short lived and hence the few posts. But what the heck…let me just enjoy the moment as kid and also have some feeling that somebody somebody might stumble upon this and hopefully read my rants 🙂

With that in mind, I’ve putup a cluster maps image – which shows the location of my visitors. Right now the only visitors to this site would be the ones whom I hold them by collar or even send out a threatning call to check it out. But I want to be optimistic and If I can come out with some posts regularly, then I’m hoping the clarity of my thoughts will also improve – should it not?

PHS/SPCA

I’ve always loved animals and dogs in particular. Not sure why but I can easily relate to a dog than any other pet. They are the best thing on the planet for just one reason as they live in the moment. No matter how your relation was with the dog, they don’t get back at you to score even. Thats the beauty of them.

Right from my childhood I’ve never had the opportunity to have a pet. My mom was very scared of dogs – hence no pets at home. My dad loved dogs, but mom ruled the house. After I started working, I gathered some courage to put the question of having another pet, but this time, mom gave a simple choice; either me or the dog gets to stay at the house. So I had to make a choice and of-course I choose to stay at home.

After getting married, I thought now I surely can have one now, but then again it got turned down by my wife – as she is scared of dogs. Somehow the women in my life seem to have the final say on this.

But I had to get associated with dogs one way or the other, so when one of my friend told me about Peninsula Humane Society & SPCA, I was very eager to join them. They are always in need of volunteers for their projects and I applied for Dog Training Assistant. My application was accepted and I’ve my New Volunteer Orientation on Saturday, March 7th.

I’m looking forward for tomorrow and will update more on the event later.

Got My Account Back!!!

Hurray!!!

I’m a very happy man now. For a long time, I had forgotten the password for this site. Also didn’t realize which email account I had associated with this blog. After digging around my old emails, now I’ve finally managed to link this to my primary google account. So from now on, I can post my rant out here 😉

The second one day international between India and New Zealand will start in about an hour. This time, I’ve bought a package from tvnsports for $10 and its worth every damm penny. I’m having a ball watching cricket online 🙂

Go Wireless

Ever since I got my first D-Link wireless router, I’m really impressed with the concept of wireless. No more nagging wires around. With all the marketing talks about the speeds you get with wireless, I still vote for it. Just the thought of sitting anywhere in the house and fiddling with your laptop is such a nice thing.

Somehow the first router I got (D-Link) wasn’t so easy to configure. But manged to get it done and it was working good…before its adapter fused out. I need to order a new adapter for it. This time, I bought a Netgear WGR614 for a friend for $32 at Fry’s store in Sunnyvale. Just tried to setup and damm its so easy to configure. If you are not from a networking background, then the setup process is so user friendly. Netgear did a good job at simplifying the setup process. There are more options for the advanced user, but a newbie would be able to set it up in like less than 10 minutes with some level of security (WPA) passphrase.

I would definitely consider Netgear routers for my next one.

HTMLDB 2.0

Have been hearing a lot of stuff on htmldb on how easy it is to develop web-based applications. For a novice like me in web technologies, I really wanted to try it out. So have got it installed on my laptop now. The basic steps that I followed:

  • Installed 10gR2 and created a “v10gR2” db
  • Installed HTTP server from the 10gR2 companinon CD
  • Installed HTMLDB 2.0 for win32 by downloading it from here.

All three installs didn’t give me any problems. The only area where I got confused was in configuring htmldb 2.0. The installation guide of htmldb2.0 made reference to a file called marvel.conf – which I never found in any of the directories where HTTP Server was installed. Also the guide was on using 10gR1 HTTP Server, whereas I was using the R2 HTTP Server.

Still, I was able to configure it on 10gR2 HTTP Server.

Summary of the changes done:

  • copied the images dir from htmldb 2.0 zip file to $ORA_COMP_HOME\Apache\Apache\icons directory
  • Added an alias /i/ in $ORA_COMP_HOME\Apache\Apache\conf\httpd.conf file pointing it to the copied images directory.
  • Added two MIME types to support SQL Workshop:

    AddType text/xml xbl
    AddType text/x-component htc

  • Added a DAD (Database Access Descriptor) to $ORA_COMP_HOME\Apache\modplsql\conf\dads.conf file.

After the above changes, a restart of Apache and my htmldb page was accessible through http://myHostNameGoesHere:7777/pls/htmldb

Now its time to play around with it and these articles on OTN should take me forward.

Upgrade to 10g R1

Have been very busy doing a lot of things…(but if you ask me to list them, then I’m no good). So bottom line, have been wasting time doing things which I don’t know why am I even into it.

In between had to upgrade a 9.2.0.6 to 10g R1. Found a checklist on MetaLink. Pretty good checklist for a manual upgrade. The part which I liked was the tip on improving the time for the actual upgrade by pre-collecting the stats on the sys objects. Since the window for upgrade was very short for me, this tip really helped in reducing the time for the upgrade. A very good note to have in handy.

I’m hoping to get some time during this weekend to finish on my benchmarking. Also no cricket matches (yet) for this weekend 🙂

RAM Upgrade

Hurray !! My laptop is now having 1GB of ram.

Just before writing this, our IT-OPS guy made an attempt to get the laptop recognize 1G. Unfortunately the module he was carrying wasn’t recognized by the laptop.

Thought I’ll have to wait for another 4 weeks before he gets another compatible 1G module. Thankfully he had a compatible module with him and it took just 15 mins to get that and boot my laptop.

Now I can think of putting a VMWare instance and loading 10gR2 in it !

Small time benchmarking

I was told that most of the internet sites use MySQL for pagination. Pagination is a concept of providing web based search results and having an interface to scroll through the result set. Apparently MySQL has a built-in feature to scroll through m through n rows of a result set. So at my place MySQL is being used as a session store. Recently a benchmark was done for pagination and the response times weren’t that impressive from a business perspective. I was told that Oracle Server was taking more time to return the result set. Don’t know why but off late, I’m taking comments made at oracle db in a more personal way – probably I’m going through the ex-employee syndrome. But having looked at the product in a deeper way, I’m sure things can be improved from the Oracle’s side. Would have preferred looking at it as “Hey we’ve tried to extract so much from Oracle, is there anything else that we could try to get more out of this.” Probably I’m living in a box called as Oracle and my vision is restricted within this box. Maybe not. I’m keen on getting my hands on different technologies.

Anyway, after hearing that pagination can’t be implemented in Oracle, I started to develop a mini-howto for it. I’ll publish the mini-howto later on this site.

After developing my PL/SQL APIs for it, I started to do a small time benchmark on my test RAC db. Trying out the runs with 1, 10, 20, 40, 100, 150, 200 sessions for each run. During each run, the number sessions represented the concurrent searches performed against a table containing 100 million rows in it. The test runs for 1 & 10 sessions performed as expected; response times in milli seconds. During the 20 sessions run, one session took a long time to finish. Obviously it had a very high elapsed time. Surprised at this, did another run of 20 sessions; this time 2 sessions were experiencing the same thing. These two sessions were performing a full table scan of the 100 million rows table. During build time, they were using the ‘index range scan’ and over here, doing a ‘full table scan’ which resulted in high elapsed times. Couple of more hours into this, found out that ‘statistics’ were missing for one of the tables which captured the result sets. After collecting the statistics for it, the elapsed times were lightning.

Each of the session had turned on sql tracing. So I had about 520 sql trace files. I had to extract the cpu time and elapsed time used for parse, execute & fetch phases of the work. tkprof has a useful feature of generating a sql file which contains the insert statements to load the data to a table. If all of these data gets loaded into the table, then I just have to write simple sql to get my values needed to plot a graph in excel (will move over to htmldb soon). There is a irritating problem with the sql file generated by tkprof. Most of the INSERT statements in the file were spanning multiple lines. The last line contained ‘); characters to signify the end of the statement. When this sql script is run as-is through SQL*Plus, some of the statements used to fail. Its really tedious to manually edit 520 odd files to correct that.

For the first time, I’ve managed to get a perl ‘scrubber’ script to join these multiple lines into one single line of insert statement. With little help from bash shell’s for statement, managed to correct the script. Now I can just run the script and get my graphs done J

Here is my crude perl script:

#!/usr/bin/perl

$fname = (@ARGV[0]);

open(orig_file,$fname) or die “Can’t open file: $! \n”;

while( $line = ){

chomp($line);

if ($line =~ /^INSERT./) {

$longLine = $line;

}elsif ($line =~ /^\’\)\;/) {

$longLine = $longLine.” “.$line;

print “$longLine\n”;

}else {

$longLine = $longLine.” “.$line;

}

}

close(orig_file);

I need to modify it and include some comments, so that my nimble brain won’t be wondering what each line does.

Bhentures – II

It was an interesting event this time. The No.1 seeded Rishi had a very competitive match in the finals of the single’s event. The opponent gave a very tough match for him. Finally the guy with the better stamina from HP took the cup for Singles event. There was way too much of “Classic Milds” in Rishi’s breathing. Time for him to take this seriously.

The good part of the tournament was the clean sweep by Oracle India to get the Championship Trophy. They came first in the team event and also won valuable points in other categories. It had been quite some time that they had won this and it should be a good booster for everybody. Also this time, there were lot of other participants from Oracle and taking the burden out of Rishi and Bobby.