what is the service name of oracle10g xe database
3 Answers
It varies ragarding the network. In our local system it'll be 'localhost'
1 Comment
Andreas Dolk
...
localhost is the IP (127.0.0.1) if you have a local install of the oracle database. The service name is a different part of the connect string.The jdbc url for a locally installed xe databse would look like this: jdbc:oracle:thin:@127.0.0.1:1521:XE, note that XE is the SID, a service name does not seem to be needed for jdbc.
1 Comment
Gary Myers
You can assign different services to the same SID (eg for resource management purposes) using listener.ora. But by default you'll get a service with the same name as the sid, which is XE.
Service name is ambigious. But as you asked about jdbc I guess you need advice on the service name that is used on the jdbc url.
Here is a good article with a link to oracle sources.
Basically it says that the format is
jdbc:oracle:thin:scott/tiger@//myhost:1521/myservicename
and myservicename can be found in TNSNAMES.ORA.
JavaScript!=Javaand.NET!=Java. I removed the irrelevant tags.