Skip to content

Lao Zizhu's home

Domestic GBase Database Usage Experience

  • Homepage
  • Core Index
  • Drive
  • Self-check for faults

Tag: Python

和python程序编写,代码分享,问题处理等有关的经验分享

GBase 8a集群通过SQL获得集群锁showlock和容错showfailover信息

Posted on 2025年1月21日2025年1月21日 by laozizhu

虽然GBase 8a集群当前版本获得集群锁信息和容错信息,必须通过gcadmin的命令行执行才能获得,但由于支持python udf,所以可以通过这个特性来用SQL获得这些。

GBase 8a通过python udf规避ftp,sftp导出文件未完成前就被使用的情况

Posted on 2024年11月22日2024年11月22日 by laozizhu

GBase 8a的导出功能支持ftp,sftp等协议。如果导出内容较多,则目标文件需要一段时间才能生成。而在导出期间如果该文件被使用,则其内容处于不完整状态,会造成数据不一致,格式报错等情况。本文通过python实现ftp和sftp的改名功能,在一定规则下规避这个情况。

南大通用GBase 8a通过python获得指定表的所有event信息

Posted on 2021年5月6日2021年5月6日 by laozizhu

南大通用GBase 8a 默认能获得所有的故障event信息,当event比较多时,需要人工将信息进行筛选。本文通过pyton调用gcware库获得指定表的所有event信息。

南大通用GBase 8a在扩容操作报ImportError No module named pexpect错误

Posted on 2021年4月21日2021年5月6日 by laozizhu

南大通用GBase 8a集群在执行扩容时,要在各个节点执行python的脚本,使用了pexpect的库。如果节点不存在pexpect.py库,则会报这个错误ImportError No module named pexpect

南大通用GBase 8a通过python UDF从客户端执行SQL语句

Posted on 2020年11月25日2022年5月30日 by laozizhu

南大通用GBase 8a 数据库集群从862Build43开始,支持python的UDF自定义函数。本文通过python功能在命令行调用gccli正在执行SQL语句,包括某些不允许在存储过程中执行的。

python脚本编译成pyc可执行二进制格式实现代码保密

Posted on 2020年7月2日2021年5月6日 by laozizhu

python脚本编译成pyc可执行二进制格式实现代码保密

Skip to footer
June 2026
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  
«May    

Tags

Event FoundationDB GBase8c GCDW Cloud Data Warehouse gcware gdom ipv6 JDBC kafka Kerberos Linux ODBC Online Analytical Processing performance_schema Python SSL TiDB User-Defined Function V95 Product Information Metadata Full-text index Memory Function Partition Loading Upgrade Multi-instance Stored procedure Learning Log Safety Install Container Password Export Expand Log Date Port Node Replacement Tuning Timeout Operations and maintenance monitoring 锁 Interview questions

Categories

  • GBase8a Operations Case Study Analysis
  • GBase News
  • GBase8a for Everyday Use
  • GBase8a Configuration Parameters
  • GBase8a Development Interface
  • GBase8a Common Questions
  • GBase8a Error Handling
  • Odds and ends
  • Other databases
  • ClickHouse

Archives

  • June 2026
  • May 2026
  • March 2026
  • February 2026
  • January 2026
  • June 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • June 2024
  • May 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020

Friendship link

Nanda Generational Official Website
GBase 8a Official Community
Lao Zizhu's Column (CSDN)
GBase 8s Development and Management

Tianjin ICP prepared No. 17003092
Tianjin Public Network Security Preparation No. 12010202000888

Site Map

Back to Top

Proudly powered by WordPress | Theme: Yocto by Humble Themes.
English
Chinese