cherrylzhao commented on issue #2362: {dataSource-1} inited takes a long time 
when use ORA12c
URL: 
https://github.com/apache/incubator-shardingsphere/issues/2362#issuecomment-494290367
 
 
   ok, I have got some hint,you can just configure another datasource like this
   ```
   spring.shardingsphere.datasource.names=mytest,mytest1
   
   
spring.shardingsphere.datasource.mytest.type=com.alibaba.druid.pool.DruidDataSource
   
spring.shardingsphere.datasource.mytest.driver-class-name=oracle.jdbc.OracleDriver
   
spring.shardingsphere.datasource.mytest.url=jdbc:oracle:thin:@localhost:1521:orcl
   spring.shardingsphere.datasource.mytest.username=c##mytest
   spring.shardingsphere.datasource.mytest.password=root
   
   
spring.shardingsphere.datasource.mytest1.type=com.alibaba.druid.pool.DruidDataSource
   
spring.shardingsphere.datasource.mytest1.driver-class-name=oracle.jdbc.OracleDriver
   
spring.shardingsphere.datasource.mytest1.url=jdbc:oracle:thin:@localhost:1521:orcl
   spring.shardingsphere.datasource.mytest1.username=c##mytest
   spring.shardingsphere.datasource.mytest1.password=root
   ```
   application should startup more fast.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to