How to connect to a remote Oracle database

Here is how to connect to a remote Oracle database using SQLPlus:

sqlplus user/pass@(DESCRIPTION=(ADDRESS=(PROTOCOL=protocol)(HOST=host)(PORT=port))(CONNECT_DATA=(SID=sid)))

Please note that the words in Italics represent variables:

user – user name for the remote database

pass – password for the remote database

protocol – protocol used to connect to remote database, usually TCP

host – IP address or hostname of the remote host

port – remote port listening for database connections

sid – remote SID to connect to

Here’s an example:

sqlplus siry_m/loves_hector@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: