Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are instance connection and service connection in Oracle?

I am configuring a WebLogic app server. I am unclear about what is an instance connection and what is a service connection.

Also, in my SQL Developer, when I make a new connection, it asks for either an SID or a Service Name. What are they?

like image 983
zihaoyu Avatar asked Oct 25 '10 21:10

zihaoyu


2 Answers

An instance connection is a TNS connection to a specific instance on a host.

A service connection is to a particular service that a listener on a host knows about.

The two are often used interchangeably, but the SERVICE connection is more flexible. I can configure multiple instances to register as the same service name to the listener, allowing load balancing and behind the scenes replacement of databases transparently to users. If an instance connection is specified, that particular instance must be up and available or the connection will be refused.

like image 73
DCookie Avatar answered Sep 21 '22 02:09

DCookie


This is just for the console to know how to format your JDBC URL, depending on what you give it instance(SID) or a service name.

like image 41
George Avatar answered Sep 21 '22 02:09

George