websphere source configuration data (Oracle)

In the new company's first official contact with websphere middleware, companies are generally used in the previous tomcat, weblogic middleware, of course, advantages and disadvantages between the three I believe we all understand. I write this to share with you a problem I encountered when deploying websphere environment in the local ----- data source configuration. I refer to some online tutorials when configuring the data source, but when I tested configuration is complete always prompt: ORA-12505, TNS: listener does not currently know of SID given in connect descriptor generally instance name error will be reported this error carefully check the configuration database and no errors, check the internet a lot of information but could not find a good solution, then think of ways to configure a database url it does not seem there is only one, try another way results are successfully connected. The following is a modified example of the front and rear:

1. Before modification: jdbc: oracle: thin: @ 192.168.1.6: 1521: dzyw

 

2. modified:

jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.6:1521 )(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = dzyw)))

 

Published 118 original articles · won praise 59 · views 490 000 +

Guess you like

Origin blog.csdn.net/u012255097/article/details/81106655