摘要: parted /dev/sdb #目标盘符 mklabel gpt mkpart primary 0% 100% quit mkfs.xfs /dev/sdb1 #格式化磁盘为xfs mkdir /data #创建挂载目录 blkid #获取设备的uuid,使用UUID方式挂载磁盘可以避免磁盘漂移 阅读全文
posted @ 2025-07-30 15:32 CaoYuanPengPeng 阅读(23) 评论(0) 推荐(0)
摘要: 在/etc/inputrc中增加如下配置再次尝试安装 setenable-bracketed-paste off 阅读全文
posted @ 2025-07-30 15:14 CaoYuanPengPeng 阅读(10) 评论(0) 推荐(0)
摘要: red hat或centos采用非交互式的形式修改指定用户的密码 echo "123456" | passwd --stdin root suse类操作系统非交互式修改密码 echo "username:password" | chpasswd 阅读全文
posted @ 2025-07-30 15:00 CaoYuanPengPeng 阅读(28) 评论(0) 推荐(0)
摘要: 开启审计日志: SET GLOBAL audit_log =1; -- 开启日志功能,默认0; SET GLOBAL log_output = 'table'; -- 设置审计信息存储位置,默认file.为了方便查询,建议存储为表table. SET long_query_time = 1; -- 阅读全文
posted @ 2025-07-30 14:57 CaoYuanPengPeng 阅读(23) 评论(0) 推荐(0)
摘要: 只在部分节点执行: cexec data: 5-10 'date' 将文件推送到所有节点上: cpush data: 文件名 /home/gbase 阅读全文
posted @ 2025-07-30 14:56 CaoYuanPengPeng 阅读(29) 评论(0) 推荐(0)
摘要: sed -i "s/[gbasedump]/group_concat_max_len=10240\n[gbasedump]/g" /data/10.20.224.*/gnode/config/gbase_8a_gbase.cnf 阅读全文
posted @ 2025-07-30 14:55 CaoYuanPengPeng 阅读(10) 评论(0) 推荐(0)
摘要: ####################################测试磁盘性能 dd oflag=direct if=/dev/zero of=/data/1.dat bs=16k count=1966080 2> smal_wri.log dd iflag=direct if=/data/1 阅读全文
posted @ 2025-07-30 14:54 CaoYuanPengPeng 阅读(6) 评论(0) 推荐(0)
摘要: groupadd gbase;useradd -g gbase -m -d/home/gbase gbase 阅读全文
posted @ 2025-07-30 14:52 CaoYuanPengPeng 阅读(5) 评论(0) 推荐(0)
摘要: vim /home/gbase/.bashrc export PATH=/bin:/usr/bin/X11:/usr/games:/home/piccism/gccli_install/gcluster/server/bin 阅读全文
posted @ 2025-07-30 14:50 CaoYuanPengPeng 阅读(18) 评论(0) 推荐(0)
摘要: ln -s /usr/lib64/libidn.so.12.6.1 /usr/lib64/libidn.so.11 阅读全文
posted @ 2025-07-30 14:44 CaoYuanPengPeng 阅读(12) 评论(0) 推荐(0)
摘要: SELECT * FROM t3 WHERE LENGTH(name) <> LENGTH(CONVERT(name USING utf8)); 阅读全文
posted @ 2025-07-30 14:42 CaoYuanPengPeng 阅读(8) 评论(0) 推荐(0)
摘要: 问题描述 gbase8a使用like %%进行模糊查询时,返回结果集不符合预期,返回的结果集中包含非目标模糊匹配的数据。 问题原因 在Gbase8a中,当数据库集群gbase_force_bin_like=1时,即使用二进制的形式进行匹配。上述查询返回的数据中,可能有字符的二进制与模糊查询中的相等, 阅读全文
posted @ 2025-07-30 14:42 CaoYuanPengPeng 阅读(14) 评论(0) 推荐(0)
摘要: 问题描述 gbase8a查询decimal类型的字段时,当where decimal_field=’ABC21315’查询条件为非数值类型时,返回结果集不符合预期,返回的结果集中包含decimal_field=0的数据。 问题原因 在Gbase8a中,如果一个列是DECIMAL类型,而你在查询时将其 阅读全文
posted @ 2025-07-30 14:41 CaoYuanPengPeng 阅读(9) 评论(0) 推荐(0)
摘要: 尝试在 /etc/cron.allow中添加gbase用户,未解决。 执行如下命令后解决:chmod u+s /usr/bin/crontab。如果执行该步骤仍然报错,可执行chmod 777 /var/spool/cron后再次尝试安装。 阅读全文
posted @ 2025-07-30 14:40 CaoYuanPengPeng 阅读(15) 评论(0) 推荐(0)
摘要: 问题现象:安装集群时,执行SetSysEnv.py后,切换到gabse用户继续安装时,报错没有执行SetSysEnv.py。查看gcinstall.log,日志中报错ERROR fail to exec cmd:ulimit -n, value='65536'。 问题解决:排查是不是有别的配置文件, 阅读全文
posted @ 2025-07-30 14:38 CaoYuanPengPeng 阅读(3) 评论(0) 推荐(0)
摘要: 对如下两个文件赋权755后解决 chmod 755 /bin/ping chmod 755 /usr/bin/ping 阅读全文
posted @ 2025-07-30 14:38 CaoYuanPengPeng 阅读(13) 评论(0) 推荐(0)
摘要: (1)第一种情况:去掉ssh中的Banner信息即可。 vim /etc/ssh/sshd_config 将Banner /etc/issue.net 注释掉,保存退出。 重启ssh服务即可。systemctl restart sshd (2)第二种情况:客户操作系统进行了安全加固 修改/etc/s 阅读全文
posted @ 2025-07-30 14:37 CaoYuanPengPeng 阅读(15) 评论(0) 推荐(0)
摘要: LOAD DATA INFILE 'sftp://gbase:gba943@AFC3@10.133.151.118/data/ora_data/picc_order_detail_info_used.test' INTO TABLE sjsdata.picc_order_detail_info_us 阅读全文
posted @ 2025-07-30 14:31 CaoYuanPengPeng 阅读(125) 评论(0) 推荐(0)
摘要: gstack pidof gbased >指定文件 gstack pidof gclusterd >指定文件 gstack pidof gclusterd | stack_uniq.py > shujuhu_20141204.log #去重后的日志 gstack 10657 > shujuhu_10 阅读全文
posted @ 2025-07-30 14:26 CaoYuanPengPeng 阅读(6) 评论(0) 推荐(0)