simple let's say you are connected already then,

SQL> connect your_id@instance

Ex..
SQL> connect scott@DB2

You can also spcify your password on one line but this is a bad practice in my opinion.

SQL> connect scott/tiger@DB2

MH