Have you looked at system? However, is there a particular reason why are you interacting with Oracle in this manner? I would suggest taking a look at DBI which is (unless there is a reason why you want to run the exe with arguments) a better way or interfacing with your database, depending on what you want to do.