in reply to Error : Segmentation fault

In addition to what the other monks have already advised try checking your oracle logs to see if your script is getting as far as connecting to the database.

Hope this helps

Martin