I try that and I get the following error message:
ORA-24327: need explicit attach before authenticating a user

I've tried signing on using the connect scott/tiger@db2, connect scott/tiger@machine name. Nothing seems to work. Something has to be set up incorrectly, but I can't figure out what.