You are using the oracle 2 tier protocol? Else the neccessary headers for db need to be imported explicitly.
Next step, note you need a list of stuff such as Ora handle, Ora Session etc that you need to setup before connect.
I dont have a sample script, but you could check in the help and use the examples provided.
Regards
AJ