You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/07/16 01:38:46 UTC

[GitHub] [shardingsphere] feiweihy opened a new issue #6362: Bug for oracle when application starting

feiweihy opened a new issue #6362:
URL: https://github.com/apache/shardingsphere/issues/6362


   We create many users in our oracle database ( 12C ), I use shardingsphere-jdbc in our project which is based on springcloud.  When I startup application, an error occurred: ORA-00942 table or view not exsist.
   I read codes and found that function getSchema in class JdbcUtil has an problem:
        `if ("Oracle".equals(databaseType)) {
                   return null;
               }`
   This is ok when database just has one user, so I fixed it like this:
   `if ("Oracle".equals(databaseType)) {
                   return connection.getMetaData().getUserName().toUpperCase();
               }`
   Problem is resolved.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] tristaZero commented on issue #6362: Bug for oracle when application starting

Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #6362:
URL: https://github.com/apache/shardingsphere/issues/6362#issuecomment-659293117


   @feiweihy Welcome!


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] tristaZero closed issue #6362: Bug for oracle when application starting

Posted by GitBox <gi...@apache.org>.
tristaZero closed issue #6362:
URL: https://github.com/apache/shardingsphere/issues/6362


   


----------------------------------------------------------------
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:
users@infra.apache.org