Hash

Entries from April 2009

Oracle Parameter File: Order of lookup

April 27, 2009 · Leave a Comment

 

Oracle has two type of parameter files for initial parameter configurations: PFILE and SPFILE. The parameter file and the shared parameter file. They are used to specify parameter values at the database startup. The SPFILE is used in a RAC environment and PFILE is used in a stand alone database environment.

The other day I had a problem starting up my RAC and later on it was discovered that the problem was because of these startup files. The recommended way of using an SPFILE in a RAC environment is to specify the (shared) location of your SPFILE in the PFILE. All nodes have their own PFILEs which point to the same SPFILE which is located on a shared storage. I had set it up all right but it was not working. And this was because Oracle searches the configuration files in the specified directory in the following order:

  • spfileSID.ora
  • spfile.ora
  • initSID.ora
  • init.ora

So I had my initSID.ora setup but was not being used because I already had one spfileSID.ora in the same location which always got preference.

 

 


Share this post : digg it! Facebook it! live it! reddit! technorati! yahoo!

Categories: LifeFactor · Oracle · TechFactor
Tagged: , , , , , , , , ,

Oracle to buy Sun Microsystems for $7.4 bn

April 20, 2009 · Leave a Comment

 

In a news today by CNN, Oracle confirmed it will buy Sun Microsystems for $7.4 bn. This also strengthens the belief that Sun refused IBM because it had a better offer.

Acquisition of Sun will be fabulous for Oracle because it can now enter in the servers market and that with a BANG! Sun’s powerful hardware and trusted Operation System ‘Solaris’ will be a huge plus for Oracle but the future of two most widely used open source relational databases remains uncertain. Sun has bought MySQL a couple of years ago and was supporting PostgreSQL as well. What is the use of MySQL for Oracle? And support for PostgreSQL will most probably be dropped.

Sun was a better buy for IBM anyway.

 

 


Share this post : digg it! Facebook it! live it! reddit! technorati! yahoo!

Categories: LifeFactor · TechFactor
Tagged: , , , , , , ,

Skype Founders want it back

April 14, 2009 · Leave a Comment

 

http://www.techcrunch.com/2009/04/10/report-founders-want-to-buy-skype-from-ebay/

 

As the New York Times reported, Skype’s founders, Niklas Zennstrom and Janus Friis, are in talks with several private equity firms and are amassing their own financial resources to make a bid for the internet phone business. eBay bought Skype from Zennstrom and Friis for around $3.1 billion in 2005. We reported last year that eBay would be willing to sell Skype if the company couldn’t support eBay’s core ecommerce business.

eBay has been having trouble finding ways of using Skype across its other products. eBay removed Skype co-founder and CEO Niklas Zennstrom in October 2007, reportedly due to frustration at the financial performance of Skype. Ebay also negotiated down the huge earnout due to Skype stockholders and took a $936 million one-time loss around the transaction.

As we wrote last spring, a sale was projected to be likely late last year or in the first half of this year. Of course, with the economy in such poor condition, the sale was probably put off momentarily. There was something brewing between Google and Skype last spring, but nothing came of it. Google recently launched its own voice product, Google Voice (formerly Grand Central).

Skype recently launched a nifty iPhone app, which was downloaded 1 million times in the first two days of its release. Skype recently made a move to be a player in the enterprise space, but it wasn’t clear how much of a money-maker the new service would be.

There’s no doubt that Skype brings a lot to the table but eBay was probably just not the right buyer. Skype’s scalable technology and a proven platform in the VOIP, VOIP2POTS and P2P Video is impressive to say the least. The service currently has more than 405 million registered users.

Following their respective departures from Skype, Zennstrom and Friis formed VC firm Atomico and founded online video/TV site Joost.

 

 


Share this post : digg it! Facebook it! live it! reddit! technorati! yahoo!

Categories: LifeFactor · TechFactor
Tagged: , , , , , , , ,

SQL: Generating Series of Numbers in Oracle

April 8, 2009 · 3 Comments

 

Generating a series of numbers is a very common practice in SQL environments. The objectives are but not limited to generating testing data and constants to use in SQL statements. Oracle provides a number of ways to accomplish this but the most simple to me is using the CONNECT BY clause.

   1:  SELECT ROWNUM N FROM dual 
   2:  CONNECT BY LEVEL <= 20

The statement generates integers starting from 1 to 20. It can be altered in many ways according to the acquirements e.g. adding a WHERE clause to offset the series or applying a mathematical equation at N to generate different types of series. For example:

   1:  SELECT (ROWNUM * 0.02 + 3) "N" FROM dual 
   2:  WHERE LEVEL > 10 
   3:  CONNECT BY LEVEL <= 20

Another objective of series is the requirement of constants in the SQL statements. For example I used constants of week days (1-7) and number of hours in a day (1-24) to generate some statistics by hour by day of week.

   1:  SELECT DECODE (DN, 
   2:       2, ‘MON ‘, 
   3:       3, ‘TUE ‘, 
   4:       4, ‘WED ‘, 
   5:       5, ‘THU ‘, 
   6:       6, ‘FRI ‘, 
   7:       7, ‘SAT ‘, 
   8:       1, ‘SUN ‘) "Day of Week", 
   9:  Hour, 
  10:  (SELECT COUNT(*) FROM tblsupport 
  11:   WHERE tktopendate > SYSDATE – 90 
  12:   AND TO_CHAR(tktopendate, ‘D’) = DN 
  13:   AND TO_CHAR(tktopendate, ‘HH24′) = H) "Ticket Count" 
  14:  FROM 
  15:  (SELECT ROWNUM DN FROM dual 
  16:    CONNECT BY LEVEL <= 7) WeekDays, 
  17:  (SELECT ROWNUM Hour FROM dual
  18:   CONNECT BY LEVEL <= 24) Hours

This statement generates statistics data about number of tickets received during the last 3 months grouped by week day and hour.

 

 

Share this post : digg it! Facebook it! live it! reddit! technorati! yahoo!

Categories: Oracle · TechFactor
Tagged: , , , , , ,

Twitter is Down due to heavy activity

April 8, 2009 · Leave a Comment

 

I tried to login to twitter a while ago and it failed to load!

Guess what the error was? It was unavailable due to the extra ordinary load on the servers. I believe that twitter is being bombarded heavily by the Moldovians at the moment who are trying to keep their fellows updated through internet. Keep in mind that there are severe protests going on in the country of Moldova against their government and all the media including TV channels are state controlled.

That looks like the most busiest day for Twitter. Servers going down due to traffic is not a good thing but it is also a success parameter for a web site. Tomorrow they will be able to handle heaps more (they should have anticipated it though).

Read about the contribution of Twitter in Moldova protests:
http://hashfactor.wordpress.com/2009/04/08/a-twitter-revolution-in-moldova/

 

 


Share this post : digg it! Facebook it! live it! reddit! technorati! yahoo!

Categories: LifeFactor
Tagged: , , , , , , ,

A twitter revolution in Moldova

April 8, 2009 · 1 Comment

 

http://www.techcrunch.com/2009/04/07/student-protests-are-turning-into-a-twitter-revolution-in-moldova/

 

Students in Moldova are using Twitter as a tool to mobilize opposition against a communist victory in Moldovian elections. According to reports, close to 10,000 protesters gathered at Moldova’s parliament in Chisinau, Moldova’s capital and were able to eventually break through police lines to storm into the building. From looking at the tweets on the subject, it appears that the demonstration turned into a violent coup attempt.

In the last 48 hours, students from Moldova have been tweeting, trying to rally others into demonstrating against the communists. If you look under the search terms “pman” (stands for Piata Marii Adunari Nationale, a square in Chisinau) or “Chisinau,” you can see the tweets about the demonstration coming in a rapid pace. There are also videos on YouTube of the protest. There have been reports that there is limited cellphone reception in the square (thought to have been turned off by authorities). So protesters are using Twitter to give live updates via GPRS networks on their mobile devices.

Twitter has long-been been a popular platform for breaking news, but this adds a new twist to the powerful capabilities of the micro-blogging service. The protests no doubt would have happened anyway and it is not clear how may of the actual protesters in Moldova are on Twitter. But it seems to be helping both as a coordinating tool and as a way to disseminate information about the events that are unfolding to the rest of the world.

Here are a few sample tweets:

“Chisinau - live feed from Radio Vocea Basarabiei is intrerrupted. will retransmit later. where are the official authorities?”
“RT @Moscovici: Protesters report police attacks protesters. Severe fights between police and protesters now in Chisinau, Moldova. #pman”
“The #twitter revolution – Twitter as the organizing tool for protests in Chisinau http://is.gd/rhwJ

 

 


Share this post : digg it! Facebook it! live it! reddit! technorati! yahoo!

Categories: LifeFactor
Tagged: , , , ,

Google in late stages to buy Twitter

April 3, 2009 · Leave a Comment

 

http://www.techcrunch.com/2009/04/02/sources-google-in-late-stage-talks-to-buy-twitter/

Here’s a heck of a rumor that we’ve sourced from two separate people close to the negotiations: Google is in late stage negotiations to acquire Twitter. We don’t know the price but can assume its well, well north of the $250 million valuation that they saw in their recent funding.

Twitter turned down an offer to be bought by Facebook just a few months ago for half a billion dollars, although that was based partially on overvalued Facebook stock. Google would be paying in cash and/or publicly valued stock, which is equivalent to cash. So whatever the final acquisition value might be, it can’t be compared apples-to-apples with the Facebook deal.

Why would Google want Twitter? We’ve been arguing for some time that Twitter’s real value is in search. It holds the keys to the best real time database and search engine on the Internet, and Google doesn’t even have a horse in the game. In a post last month called It’s Time To Start Thinking Of Twitter As A Search Engine, I wrote:

More and more people are starting to use Twitter to talk about brands in real time as they interact with them. And those brands want to know all about it, whether to respond individually (The W Hotel pestered me until I told them to just leave me alone), or simply gather the information to see what they’re doing right and what they’re doing wrong.

And all of it is discoverable at search.twitter.com, the search engine that Twitter acquired last summer.

People searching for news. Brands searching for feedback. That’s valuable stuff.

Twitter knows it, too. They’re going to build their business model on it. Forget small time payments from users for pro accounts and other features, all they have to do is keep growing the base and gather more and more of those emotional grunts. In aggregate it’s extremely valuable. And as Google has shown, search is vastly monetizable – somewhere around 40% of all online advertising revenue goes to ads on search listings today.

If this is accurate, it’s a brilliant deal for Google – the value of Twitter is only going to go up over time. And it will be Twitter founders Evan Williams and Biz Stone’s second sale to Goolge – they sold Blogger to them just five years ago. But there’s one big question – where’s Microsoft in all this? Letting Twitter go to Google only hurts them, badly, in the long term search game. This is an asset they need to be competing for aggressively.

Of course, it’ll be sad to see Twitter become just another subsidiary of Google, if this happens. I would have liked to have seen the company spread its wings a little longer to see what it could do.

Updated: Yet another source says the acquisition discussions are still fairly early stage, and the two companies are also considering working together on a Google real time search engine.

 

 


Share this post : digg it! Facebook it! live it! reddit! technorati! yahoo!

Categories: LifeFactor
Tagged: , , , , , , , , , ,

Lamont Adams’ Ten Commandments of Egoless Programming

April 3, 2009 · Leave a Comment

 

  1. Accept your mistakes – the important thing is to locate and deal with them in a timely manner.
  2. Do not invest your emotions in your code – this can lead you to taking critiques of your code personally.
  3. Seek out the input of others – programming is a collective effort.
  4. Consult your colleagues before you rewrite a sequence of code. Any such revisions should be part of a team-based review process.
  5. Show deference to those who know less than you about a project. To show impatience reinforces a stereotype of developers as egotistical prima donnas.
  6. Be open to new technological developments – the world of programming changes rapidly, and you need to keep up to date. You should welcome new developments as opportunities to improve your work.
  7. Knowledge is the only real determinant of authority on a software project – you should defer to anyone better informed than you, regardless of their place in the pecking order.
  8. Understand that sometimes your ideas will not be accepted. This is part of the experience of being a team member. Don’t make a big deal of it if it turns out later that you were right.
  9. Work in an open, collaborative environment. Those who code alone tend to be less effective than others.
  10. Criticize code rather than programmers. Your critique should be positive in tone and should be for the purpose of improving the code.

 

 


Share this post : digg it! Facebook it! live it! reddit! technorati! yahoo!

Categories: LifeFactor · TechFactor
Tagged: , , , , ,