shenlan 1年前 评论了 denude 创建的话题 › antdb数据库连接时,出现“Fatal:connection limit exceeded for non-supersers”。 |
解决方式 数据库连接数达到上限,需要调整最大连接数配置。 max_connections是数据库允许的最大连接数,默认值100, 原因说明 按上述说明增大max_connections的配置,并重启数据库服务生效。 |
shenlan 1年前 评论了 dehydration 创建的话题 › antdb数据库连接时,出现“adb: could not connect to server: Connection refused”。 |
解决方式 为安全起见,默认禁用了远程连接访问功能,只允许localhost连接。那么,如何启用该功能呢? TYPE DATABASE USER CIDR-ADDRESS METHODhost all all 10.20.21.0/24 trust postgresql.conf adb_hba.conf 其他的一些可能的原因,如下:
原因说明 按上述说明依次排查 |
shenlan 1年前 评论了 sjdh 创建的话题 › antdb数据库提示“switchover datanode slave 失败”。 |
解决方式 需要确认当前 datanode 节点的切换状况:
原因说明 datanode主备切换成功后,在进行一些校验的时候可能会出错,这时,就不能再次进行切换,只能通过修改元数据的方式进行。 |
shenlan 1年前 评论了 shudaonan 创建的话题 › antdb数据库显示“LOG: checkpoints are occurring too frequently”。 |
解决方式 在数据库繁忙时,导致XLOG还没被应用,就被数据库重复使用写入数据。 AntDB7.2前(增加checkpoint_segments设置,>=128) |
shenlan 1年前 评论了 SDKhe 创建的话题 › antdb安装时出现“FATAL: could not create semaphores: No space left on device”的提醒,这是怎么了? |
解决方式 max_connections设置不合理,超出了kernel.sem的系统配置。 原因说明 按上述方式调整配置。 |
shenlan 1年前 评论了 ajhdf 创建的话题 › antdb数据库提示“cannot create foreign key whose evaluation cannot be enforced to Remote nodes”。 |
解决方式 目前不允许在非分片键上创建外键,处理方式:
复现SQL: antdb=# create table t_parent (id int primary key,name varchar(30)); CREATE TABLE antdb=# drop table t_child; fe_sendauth: no password supplied 可能的报错信息: WARNING: on coordinator execute "set FORCE_PARALLEL_MODE = off; SELECT adb_PAUSE_CLUSTER();" fail ERROR: error message from poolmgr:reconnect three thimes , fe_sendauth: no password supplied 处理方式: 在adbmgr中执行 :show hba nodename 来查看节点的hba信息。 可能的报错信息: FATAL: invalid value for parameter "TimeZone": "Asia/Shanghai" 处理方式:
数据库内支持的时区,使用下列sql查询,注意时区名的大小写。 select * from adb_catalog.adb_timezone_names; 若JDBC中没有配置该参数,则按步骤2的说明检查。
ll $ADBHOME/share/postgresql/timezone |
shenlan 1年前 评论了 shudaonan 创建的话题 › antdb数据库显示“ERROR: cannot execute INSERT in a read-only transaction”。 |
解决方式 antdb的datanode节点,默认只有读权限,只有coordinator具有读写权限。 adb -p xxx -d xxx -f xxx.sql -v ON_ERROR_STOP=1 原因说明 按上述说明依次排查 |
shenlan 1年前 评论了 SDKhe 创建的话题 › antdb安装,显示“FATAL: could not create shared memory segment: Cannot allocate memory”要怎么解决? |
解决方式 shared_buffer设置不合理,超出了kernel.shmmax 的系统配置。 原因说明 按上述方式调整配置。 |
shenlan 1年前 评论了 sjdh 创建的话题 › 数据库种类有哪些?各有什么特点? |
早期比较流行的数据库模型有三种,分别为层次式数据库、网络式数据库和关系型数据库。而在当今的互联网中,最常用的数据库模型主+E28:E30要是两种,即关系型数据库和非关系型数据库。 AntDB 是一款源自于 PG 内核的通用分布式事务性关系数据库,是一款面向金融、电信、政务、安全、能源等行业的国产、自主、安全可靠、高性能的企业级分布式事务型关系数据库产品。 |
shenlan 1年前 评论了 ajhdf 创建的话题 › 什么是数据库? |
数据库,即database(DB)。通俗来说它就是一种存储数据的仓库。是根据数据结构组织,存储和管理数据,并且能够长期,高效的管理和存储数据。其最主要的作用就是实现存储(写)和提供(读)数据。 |