Wednesday, May 9, 2012

Install PDO_OCI in Centos

First install oracle instant client
Download Oracle Instant Client (basic and devel) from here:
    http://www.oracle.com/technetwork/topics/linuxsoft-082809.html

Install
    rpm -ivh oracle-instantclient11.2-basic-11.2.0.1.0-1.i386.rpm
    rpm -ivh oracle-instantclient11.2-devel-11.2.0.1.0-1.i386.rpm

Optional - Add the Oracle instant client to dynamic linker
    echo /usr/include/oracle/11.2/client/lib/ > /etc/ld.so.conf.d/oracle_client.conf
    ldconfig -v
    If not working then type below command (Both do the same thing)
    echo /usr/lib/oracle/11.2/client/lib/ > /etc/ld.so.conf.d/oracle_client.conf

Optional - Oracle Profile
    Create a new file in /etc/profile.d named oracle.sh and include the following:
        export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib/
        export     ORACLE_HOME=/usr/lib/oracle/11.2/client/lib/
      
Save the file with :wq Enter
    Run:
        source /etc/profile.d/oracle.sh

Download pdo_oci
Download pdo_oci from there:
        http://pecl.php.net/package/PDO_OCI/1.0

Untar the package and prepare it for compiling (using directory /opt/oracle/src/)
   tar -xzvf PDO_OCI-.tgz
   cd PDO_OCI-
   phpize
Example
   tar –xzvf PDO_OCI-1.0.tgz
   cd PDO_OCI-1.0
   phpize

Patch
If you work with Oracle Instant Client version 11.2, you need edit the config.m4 file and add the following after exploding the src look for similar sections:
Block 1:
   elif test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.11.2; then
   PDO_OCI_VERSION=11.2
Block 2
   11.2)
      PHP_ADD_LIBRARY(clntsh, 1, PDO_OCI_SHARED_LIBADD)
     ;;

Compiler
(IMP) Please run phpize command again in PDO_OCI folder else Patch won't work

   ./configure  --with-pdo-oci=instantclient,/usr,11.2
   make
   make install

If above command not working please run below command otherwise continue with next step
./configure  --with-pdo-oci=instantclient,/usr/lib/oracle/11.2/client/lib
make
make install

Include in files to php parsed
Create a new file in /etc/php.d named pdo_oci.ini and include the following

   extension=pdo_oci.so

Start apache
   service httpd start  or /etc/init.d/httpd restart

It's Done.........:)
Write to me bhagwat@outlook.in if you need more support on this

Must Read for Every Corporate Employee

It’s half past 8 in the office but the lights are still on… PCs still running, coffee machines still buzzing… And who’s at work? Most of them ??? Take a closer look…

All or most specimens are ?? Something male species of the human race…

Look closer… again all or most of them are bachelors…

And why are they sitting late? Working hard? No way!!! Any guesses??? Let’s ask one of them… Here’s what he says… ‘What’s there 2 do after going home…Here we get to surf, AC, phone, food, coffee that is why I am working late…Importantly no bossssssss!!!!!!!!!!!’

This is the scene in most research centers and software companies and other off-shore offices.

Bachelors ‘Passing-Time’ during late hours in the office just bcoz they say they’ve nothing else to do… Now what r the consequences…

‘Working’ (for the record only) late hours soon becomes part of the institute or company culture.

With bosses more than eager to provide support to those ‘working’ late in the form of taxi vouchers, food vouchers and of course good feedback, (oh, he’s a hard worker….. goes home only to change..!!). They aren’t helping things too…

To hell with bosses who don’t understand the difference between ‘sitting’ late and ‘working’ late!!!

Very soon, the boss start expecting all employees to put in extra working hours.

So, My dear Bachelors let me tell you, life changes when u get married and start having a family… office is no longer a priority, family is… and That’s when the problem starts… b’coz u start having commitments at home too.

For your boss, the earlier ‘hardworking’ guy suddenly seems to become a ‘early leaver’ even if u leave an hour after regular time… after doing the same amount of work.

People leaving on time after doing their tasks for the day are labelled as work-shirkers…

Girls who thankfully always (its changing nowadays… though) leave on time are labelled as ‘not up to it’. All the while, the bachelors pat their own backs and carry on ‘working’ not realizing that they r spoiling the work culture at their own place and never realize that they would have to regret at one point of time.

So what’s the moral of the story??
* Very clear, LEAVE ON TIME!!!
* Never put in extra time ‘ unless really needed ‘
* Don’t stay back unnecessarily and spoil your company work culture which will in turn cause inconvenience to you and your colleagues.

There are hundred other things to do in the evening..

Learn music…..

Learn a foreign language…

Try a sport… TT, cricket………..

Importantly,get a girl friend or boy friend, take him/her around town…

* And for heaven’s sake, net cafe rates have dropped to an all-time low (plus, no fire-walls) and try cooking for a change.

Take a tip from the Smirnoff ad: *’Life’s calling, where are you??’*

Please pass on this message to all those colleagues and please do it before leaving time, don’t stay back till midnight to forward this!!!

IT’S A TYPICAL INDIAN MENTALITY THAT WORKING FOR LONG HOURS MEANS VERY HARD WORKING & 100% COMMITMENT ETC.

PEOPLE WHO REGULARLY SIT LATE IN THE OFFICE DON’T KNOW TO MANAGE THEIR TIME. SIMPLE !

Saturday, March 5, 2011

True Love cares forever

A boy and a girl Loved each other very much.
Unfortunately the Girl Died..:(

Boy was Upset so much;
and he couldn't Stop his Tears.
He kept on Crying Day and Night..:'(

Many People gave Sympathy,
but no Argument could Stop His Tears.

One Night He Slept and had a Dream;
He saw the Girl in Heaven with so many Girls of Her age.
He felt Relax..

But He Noticed that every Girl was in Fairy Dress;
and had a Lightened Candle in their Hands,
but his GF had a Candle which was not Lightened..!

He asked Her:
"Y Ur Candle is not Lightened?"

She said:
"Whenever I enlighten My Candle;
Ur Tears fall on it..!
Please Stop Crying.."

-True Love cares forever..♥

Monday, February 14, 2011

What is Poverty.......

A Rich Dad
Took His Son
2 a Village
2 Show Poverty..
.After
...The Trip
He Asked Son
About Poverty..
Son Replied:
We Have 1 Dog,dey have many..
We Have a Small Pool,dey Have Long River..
We Have light, dey Have Stars..
We Have Small Piece Of Land,dey Have Large Field..
We Buy foods, dey Grow theirs 'n 4 others..
Dad Was Speechless..
Den Boy Said:
Thanks Dad 4 Showing
How Poor V Are..
Life Is All About How We See 'n Accept Things.. ! 

Tuesday, February 8, 2011

The Secret Of Sucess


A young man asked Socrates the secret of Success. Socrates told the young man to meet
 Him near the river. The next morning they met.
Socrates asked the young man to ‘walk with him towards the river.
'When the water got up to their neck, Socrates took the young man By surprise and ducked him into the water.
‘The man struggled to get out but Socrates was strong and kept him there until he started turning Blue.
‘The young man struggled hard and finally managed to get out and the first thing
 He did was to gasp and take deep breath Socrates asked ‘What you wanted the most when you were there?’
The man replied ‘Air’.
Socrates said “That's the most secret to success. 'When you want success as
badly as you wanted air, you will get it. There is no other secret.”
A Burning desire is the starting point of all accomplishment. just like a
small fire cannot give much Heat, a weak desire cannot produce great results

Monday, January 17, 2011

A beautiful story

A little boy went to a telephone booth which was at the cash counter of a store and dialed a number.

The store-owner observed and listened to the conversation: 
 
Boy: "Lady, Can you give me the job of cutting your lawn? 

Woman: (at the other end of the phone line) "I already have someone to cut my lawn." 

Boy: "Lady, I will cut your lawn for half the price than the person who cuts your lawn now." 

Woman: I'm very satisfied with the person who is presently cutting my lawn. 

Boy: (with more perseverance) "Lady, I'll even sweep the floor and the stairs of your house for free.

Woman: No, thank you. 
 
With a smile on his face, the little boy replaced the receiver. The store-owner, who was listening to all this, walked over to the boy. 

Store Owner: "Son... I like your attitude; I like that positive spirit and would like to offer you a job." 

Boy: "No thanks, 

Store Owner:  But you were really pleading for one.

Boy: No Sir, I was just checking my performance at the job I already have. I am the one who is working for that lady I was talking to!"  

THIS IS CALLED SELF APPRAISAL

This is Life !!!!!!!!

When there is no friend,
When life is on the dead end,
When world is not a paradise,
When your confidence dies,
Tell yourself - Go on, THIS IS LIFE!

When things don't go right,
When there is no ray of light,
And its too hard to survive,
Tell yourself - Go on, THIS IS LIFE!

When there is competition to face,
When you are lagging behind in the race,
When you've lost faith in God,
When you're betrayed by a fraud,
Tell yourself - Go on, THIS IS LIFE!

When others don't respect you,
When you're not amongst the admirable few,
When for a question, you can't find a solution,
When all you're sure about, is confusion,
Tell yourself - Go on, THIS IS LIFE!

When your destination is miles apart,
When you don't know where to start,
When all you see around is pain,
When your hardwork is in vain,
Tell yourself - Go on, THIS IS LIFE!

Even though all this happens
just have faith in self & face the life with smile,
Things will surely change one day
Because as said "THIS IS LIFE ... !