You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Java 8
Shared Domain JDBC 5.5.2
Spring boots 2.7.18
sharding.yaml
dataSources:
db0:
dataSourceClassName: com.alibaba.druid.pool.DruidDataSource# # this is ok# driverClassName: oracle.jdbc.driver.OracleDriver# url: jdbc:oracle:thin:@192.168.149.54:1521/orcl# username: qzkj_2ndc_dev# password: xxx# validation-query: select 1 from dual# # this is failed: TableNotFoundException: Table or view 't_tool_snowflake_generator' does not exist.driverClassName: org.opengauss.Driverurl: jdbc:opengauss://192.168.149.113:5432/qzone_self_devusername: qzone_self_devpassword: xxxvalidation-query: select 1rules:
- !SINGLEtables:
- db0.t_sys_search_record
- db0.t_platform
- db0.t_sys_appdefaultDataSource: db0
- !SHARDINGtables:
T_MESSAGE_INNER:
actualDataNodes: db0.t_message_inner_202412,db0.t_message_inner_202501,db0.t_message_inner_202502tableStrategy:
standard:
shardingColumn: createdateshardingAlgorithmName: table_inlinekeyGenerateStrategy:
column: idkeyGeneratorName: snowflakeshardingAlgorithms:
table_inline:
type: INTERVALprops:
datetime-pattern: 'yyyy-MM-dd HH:mm:ss'datetime-lower: '2024-12-01 08:00:00'datetime-interval-unit: MONTHSsharding-suffix-pattern: yyyyMMdatatime-interval-amount: 1keyGenerators:
snowflake:
type: SNOWFLAKEprops:
workerId: 1dataCenterId: 1
The sharding.yaml above runs completely correctly, but replacing the database from Oracle to OpenGauss will throw an error:
TableNotFOundException: Table or view 't_platform' does not exist
After investigation, it was found that why was the metadata of public instead of qzone_stel_dev used for comparison? May I ask what settings are needed to solve this problem?
The text was updated successfully, but these errors were encountered:
koradji2046
changed the title
use openGauss: TableNotFOundException: Table or view 't_platform' does not exist
use openGauss: TableNotFoundException: Table or view 't_platform' does not exist
Feb 19, 2025
scenario description:
Java 8
Shared Domain JDBC 5.5.2
Spring boots 2.7.18
sharding.yaml
The sharding.yaml above runs completely correctly, but replacing the database from Oracle to OpenGauss will throw an error:
After investigation, it was found that why was the metadata of public instead of qzone_stel_dev used for comparison? May I ask what settings are needed to solve this problem?
The text was updated successfully, but these errors were encountered: