in reply to Segmentation Fault (core dumped)

You say "tried to install DBD::Oracle" but then say "Thats why i tried to install DBI module" which confuses me a little.

Have you installed DBI? It is a separate module and needs to be installed before any of the DBD:: modules.

By the way this is not a segmentation fault which is reported by the operating system, it is perl exiting with an error to say it can't find DBI and where it looked for it

.