• [运维管理] DWS 线下8.2.1版本,开启系统表的vacuum以后为什么系统表的脏页还是一直在增加?怎么样让释放和占用的达到平衡?如果必须手动做vacuum full是否可以不停业务做?一直增加会有什么影响?
    DWS 线下8.2.1版本,开启系统表的vacuum以后为什么系统表的脏页还是一直在增加?怎么样让释放和占用的达到平衡?如果必须手动做vacuum full是否可以不停业务做?一直增加会有什么影响?
  • [用户实践] 《GaussDB实战指南》之 一文教你如何在GaussDB数据库中使用账本数据库
    “干货全拿走,学会就涨薪”  账本数据库设置启用账本数据库参数```su - Ruby/usr/sbin/chroot /var/chrootsource /home/Ruby/gauss_env_filegs_guc reload -Z coordinator -Z datanode -N all -I all -c "enable_ledger=on";```在数据库中创建防篡改Schema```CREATE SCHEMA blocks WITH BLOCKCHAIN;```创建账本表。```CREATE TABLE blocks.t1(id int, name varchar);```更新、删除账本表中的数据```INSERT INTO blocks.t1 VALUES(1, 'alex');INSERT INTO blocks.t1 VALUES(2, 'bob');SELECT *, hash_83f153 FROM blocks.t1;UPDATE blocks.t1 SET name = 'bob2' WHERE id = 2;DELETE FROM blocks.t1 WHERE id = 1;SELECT *, hash_83f153 FROM blocks.t1;```查询历史表```SELECT * FROM blockchain.blocks_t1_hist;历史表表名可以通过 \d+ 表名看到```查看历史摘要```SELECT * FROM gs_global_chain;```校验账本表、历史表和全局表:```SELECT pg_catalog.ledger_hist_check('blocks', 't1');SELECT pg_catalog.ledger_gchain_check('blocks', 't1');如果校验通过,函数返回t,反之则返回f。```与普通表交互从普通表插入数据```create table blocks.tt2 (like u1.t2 including indexes ) ;insert into blocks.tt2 select * from u1.t2;```插入数据到普通表```create table u1.tt2 (like u1.t2 including indexes ) ;insert into u1.tt2 select * from blocks.tt2;```参数改回 off ```su - Ruby/usr/sbin/chroot /var/chrootsource /home/Ruby/gauss_env_filegs_guc reload -Z coordinator -Z datanode -N all -I all -c "enable_ledger=off";
  • [问题求助] Gaussdb 从505.1 升级到505.2,普通用户不能执行purge recyclebin了
    505.1 普通用户可以执行 purge recyclebin,但是升级到505.2之后普通用户执行purge recyclebin报错了:Only superuser can do purge recyclebin operation 哪里可以找到新版本和旧版本的区别呢,如何规避这些升级之后的区别的坑呢
  • [其他问题] Spark操作Gaussdb报错,怎么解决?急
    org.postgresql.util.PSQLException: The authentication type 5 is not supported. Check that you have configured the pg_hba.conf file to include the client's IP address or subnet, and that it is using an authentication type supported by this driver.at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:556)at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:195)at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactoryImpl.java:65)at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:124)连接Gaussdb库,使用的是<dependency> <groupId>com.huaweicloud.dws</groupId> <artifactId>huaweicloud-dws-jdbc</artifactId> <version>8.3.0</version></dependency>试过:1、在连接的配置参数是将spark.yarn.user.classpath.first、spark.driver.userClassPathFirst、spark.executor.userClassPathFirst三个参数均设置true,但是没啥用
  • [问题求助] 如何和GaussDB做互认证,或者兼容性证书
    数据库使用GaussDB,投标需要互认证证书。如何获取这个证书。
  • 开源的opengauss怎么下载
    想自己搭建学习,请问下开源的opengauss怎么下载
  • [问题求助] gsperfserviceinstall.sh等一系列相关脚本的使用方法
    在研究gaussdb的时候,发现自带perf性能工具,有一系列perf相关的脚本,比如gsperfserviceinstall.sh,gsperfservicekill.sh,gsperfservicedaemon.sh......等脚本,这些脚本有没有readme或者help文件,最终该如何使用。
  • [问题求助] 轻量化GaussDB 安装时需要设置服务器时区为UTC吗?
    在GaussDB轻量化安装部署文档中,TPOPS管控安装时配置时钟同步时有说明需要设置服务器时区为UTC,那么想问下这个在数据库服务器上需要设置UTC吗?设置UTC和不设置UTC对数据库的使用会有什么影响吗?
  • [问题求助] query_id,unique_query_id,debug_query_id三者的含义及区别
    在gaussdb中,很多视图都带有query_id,unique_query_id,debug_query_id三个字段。query_id描述为查询语句的ID,unique_query_id描述为归一化SQL id,debug_query_id描述为唯一SQL id。官方文档的描述看不懂,请解释一下3个字段的含义。三个字段有什么区别,有什么联系?分别适用于什么场景?
  • [问题求助] GaussDB轻量化部署下通过管理平台(TPOPS)纳管高斯DB数据库实例任务报错
    起因是数据库管理平台(TPOPS)节点服务器重启后,微服务启动异常,健康检查不通过,管理平台登录显示服务器内部错误;我就直接重装了管理平台,然后重新执行数据纳管操作,但是任务报错了,报错如下:软件版本:轻量化部署形态 25.1.32实例版本:GaussDB V2.0-8.218.0 请帮助解答,为什么用户初始化会提示权限问题,添加纳管输入的数据库用户(root)和密码是正确的(密码输错不能进入下一步)?
  • [问题求助] 数据库驱动及自增主键问题
    请问Gaussdb使用M-Compatibility数据库,推荐使用哪种jdbc驱动?使用mybatis进行insert操作有自增主键的表,使用useGeneratedKeys="true",程序执行时报错,如何解决?分析如下报错:ERROR c.r.c.s.h.GlobalExceptionHandler - [handleRuntimeException,88] - 请求地址'/user',发生未知异常.org.springframework.jdbc.UncategorizedSQLException: ### Error updating database.  Cause: com.huawei.gaussdb.jdbc.util.PSQLException: [:47520/:29900] ERROR: Unsupported function.  Detail: The feature is only supported in distributed database.### The error may exist in class path resource [mapper/system/SysUserMapper.xml]### The error may involve com.ruoyi.system.mapper.SysUserMapper.insertUser-Inline### The error occurred while setting parameters### SQL: insert into sys_user(                    dept_id,           user_name,           nick_name,                               phonenumber,                     password,           status,           create_by,                    create_time         )values(                    ?,           ?,           ?,                               ?,                     ?,           ?,           ?,                    CURRENT_TIMESTAMP         )### Cause: com.huawei.gaussdb.jdbc.util.PSQLException: [22.36.112.179:47520/22.36.112.208:29900] ERROR: Unsupported function.  Detail: The feature is only supported in distributed database.; uncategorized SQLException; SQL state [0A000]; error code [9088]; [22.36.112.179:47520/22.36.112.208:29900] ERROR: Unsupported function.  Detail: The feature is only supported in distributed database.; nested exception is com.huawei.gaussdb.jdbc.util.PSQLException: [22.36.112.179:47520/22.36.112.208:29900] ERROR: Unsupported function.  Detail: The feature is only supported in distributed database.at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92)at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)at com.sun.proxy.$Proxy118.insert(Unknown Source)at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:272)at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:62)at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:145)at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:86)at com.sun.proxy.$Proxy179.insertUser(Unknown Source) 
  • [问题求助] 请问guassdb集群如何跨节点执行命令?
    如题,版本pgsql 9.2.4 gaussdb 8.1.3 分布式集群中经常会遇到杀进程需求,即 SELECT PG_TERMINATE_BACKEND(139834762094352);  但是该命令不能跨节点执行,开发环境只允许为data studio ,比如我开了一个终端窗口,对应的cn为cn_001,要杀死的进程在cn_002,传统方法只能不停的新建终端窗口,直到所在cn为cn_002,才可以执行SELECT PG_TERMINATE_BACKEND(139834762094352); 命令成功。有没有一种办法,让我在cn_001的终端窗口中,也可以杀掉cn_002的进程?  
  • [数据库类] springBatch不支持GaussDB,在更换框架的情况下,有什么兼容方案吗?
    背景:已经运行的项目,数据采用的是mysql数据,使用springBatch框架做的数据同步。然后信创改造,最近公司采购了华为GaussDB,需要切换mysql数据库到GaussDB。由于springBtach框架最新版本也不支持GaussDB。存在的问题:1、直接切换数据库连接,项目启动时springBatch会检查数据库类型,直接报错。求助:在不更换springBatch框架的情况下,有没有代码改动最小的改造方案?
  • [问题求助] gaussdbjdbc如何集成
    <dependency> <groupId>com.huaweicloud.gaussdb</groupId> <artifactId>gaussdbjdbc</artifactId></dependency> 使用gaussdbjdbc驱动,如何集成flywaydb。 现在启动报错:Caused by: org.flywaydb.core.api.FlywayException: Unsupported Database: GaussDB 9.2at org.flywaydb.core.internal.database.DatabaseTypeRegister.lambda$getDatabaseTypeForConnection$7(DatabaseTypeRegister.java:122)at java.base/java.util.Optional.orElseThrow(Optional.java:403)at org.flywaydb.core.internal.database.DatabaseTypeRegister.getDatabaseTypeForConnection(DatabaseTypeRegister.java:122)at org.flywaydb.core.internal.jdbc.JdbcConnectionFactory.<init>(JdbcConnectionFactory.java:77)at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:138)at org.flywaydb.core.Flyway.migrate(Flyway.java:164)at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1873)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1822)... 74 common frames omitted  
  • [问题求助] tpops订购容量后怎么注销,重新申请
    如图所示,tpops已经订购容量了,但是现在想改成每主机的方式后重新申请。怎么做