Wednesday, April 25, 2018

Connect To A Remote Database Using SQLPlus



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 username/password@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.110.70.199)(PORT=1521))(CONNECT_DATA=(SID=xe)))

Credit to https://hecpv.wordpress.com/2015/04/29/how-to-connect-to-a-remote-oracle-database/

No comments:

Post a Comment