You may want to verify if the Delphi 5 and 7 version are using the same Oracle Net version. To check this you can attempt to connect at design-time, go to the Oracle menu and select the Info item. My guess is that there will be a difference, and this difference will have caused the problem in Delphi 7.
------------------
Marco Kalter
Allround Automations