There can be hundreds of reasons why Orcacle is faster in your situation.
Server-speed, server specs, database size, table design, indexing, and don't forget, the way PHP talks to various databases can have impact too.
Talking directly to the database is usually faster than using ODBC for example.
And last but not least, are you sure you are doing exactly the same on the two databases?