![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
If I use sqlplus to connect to a database, I do it like that: sqlplus user1/secret1 (AT) ora1 (DOT) mydomain.com:1583/db.prd1 where db.prd1 is the service_name. |
|
If I do the connect through JDBC, the connection url is: jdbc racle:thin:@ora1.mydomain.com:1583:db1SQLPLUS uses the service name, whereas JDBC uses the instance_name (resp. sid). How does this work? Is the oracle protocol so that either instance name or service name can be used? |
racle:thin:@//ora1.mydomain.com:1583/db.prd1
#3
| |||
| |||
|
|
If I use sqlplus to connect to a database, I do it like that: sqlplus user1/secret1 (AT) ora1 (DOT) mydomain.com:1583/db.prd1 where db.prd1 is the service_name. |
|
If I do the connect through JDBC, the connection url is: jdbc racle:thin:@ora1.mydomain.com:1583:db1SQLPLUS uses the service name, whereas JDBC uses the instance_name (resp. sid). How does this work? Is the oracle protocol so that either instance name or service name can be used? |
racle:thin:@//ora1.mydomain.com:1583/db.prd1
#4
| |||
| |||
|
|
If I use sqlplus to connect to a database, I do it like that: sqlplus user1/secret1 (AT) ora1 (DOT) mydomain.com:1583/db.prd1 where db.prd1 is the service_name. |
|
If I do the connect through JDBC, the connection url is: jdbc racle:thin:@ora1.mydomain.com:1583:db1SQLPLUS uses the service name, whereas JDBC uses the instance_name (resp. sid). How does this work? Is the oracle protocol so that either instance name or service name can be used? |
racle:thin:@//ora1.mydomain.com:1583/db.prd1
#5
| |||
| |||
|
|
If I use sqlplus to connect to a database, I do it like that: sqlplus user1/secret1 (AT) ora1 (DOT) mydomain.com:1583/db.prd1 where db.prd1 is the service_name. |
|
If I do the connect through JDBC, the connection url is: jdbc racle:thin:@ora1.mydomain.com:1583:db1SQLPLUS uses the service name, whereas JDBC uses the instance_name (resp. sid). How does this work? Is the oracle protocol so that either instance name or service name can be used? |
racle:thin:@//ora1.mydomain.com:1583/db.prd1
#6
| |||
| |||
|
|
According to the documentation, it should be jdbc racle:thin:@//ora1.mydomain.com:1583/db.prd1 |
#7
| |||
| |||
|
|
According to the documentation, it should be jdbc racle:thin:@//ora1.mydomain.com:1583/db.prd1 |
#8
| |||
| |||
|
|
According to the documentation, it should be jdbc racle:thin:@//ora1.mydomain.com:1583/db.prd1 |
#9
| |||
| |||
|
|
According to the documentation, it should be jdbc racle:thin:@//ora1.mydomain.com:1583/db.prd1 |
#10
| |||
| |||
|
|
J?ns M?rtin Schl?tt?r <KmoEfrUew... (AT) spammotel (DOT) com> wrote: If I use sqlplus to connect to a database, I do it like that: sqlplus user1/secr... (AT) ora1 (DOT) mydomain.com:1583/db.prd1 where db.prd1 is the service_name. That's using the EZCONNECT syntax, ok. If I do the connect through JDBC, the connection url is: jdbc racle:thin:@ora1.mydomain.com:1583:db1SQLPLUS uses the service name, whereas JDBC uses the instance_name (resp. sid). How does this work? Is the oracle protocol so that either instance name or service name can be used? I am surprised that this URL works, as indeed it does. I cannot find this form under the supported Syntaxes inhttp://download-uk..oracle.com/docs/cd/B19306_01/java.102/b14355/urls.... According to the documentation, it should be jdbc racle:thin:@//ora1.mydomain.com:1583/db.prd1Yours, Laurenz Albe |
![]() |
| Thread Tools | |
| Display Modes | |
| |