随笔分类 -  oracle&pg&mysql

oracle&pg&mysql
摘要:postgres=# select * from pg_control_system(); pg_control_version | catalog_version_no | system_identifier | pg_control_last_modified + + + 1300 | 2021 阅读全文
posted @ 2022-09-20 16:50 青空如璃 阅读(365) 评论(0) 推荐(0) 编辑
摘要:1.下载 https://github.com/Luckyness/passwordcheck.git 2.使用方式 [root@harbor contrib]# cat /data/tools/passwordcheck/README.md # 1.使用方式* 替换目录 ../postgresql 阅读全文
posted @ 2022-09-17 15:35 青空如璃 阅读(741) 评论(0) 推荐(0) 编辑
摘要:tt=# create SEQUENCE department_id_seq;CREATE SEQUENCETime: 33.621 mstt=# \ds+ List of relations Schema | Name | Type | Owner | Persistence | Size | D 阅读全文
posted @ 2022-09-14 11:09 青空如璃 阅读(167) 评论(0) 推荐(0) 编辑
摘要:在了解三者区别之前, 我们来个实例: tt=# create table t3(a char,b varchar);CREATE TABLETime: 14.543 mstt=# insert into t3 values('aa','bb');ERROR: 22001: value too lon 阅读全文
posted @ 2022-09-13 15:40 青空如璃 阅读(2102) 评论(0) 推荐(0) 编辑
摘要:####创建表空间[postgres@harbor ~]$ cd /pgccc/ && mdir mytablespace && sudo chown -R postgres. /pgccc/mytablespace[postgres@harbor pgccc]$ ls -la总用量 4drwxr- 阅读全文
posted @ 2022-09-12 14:47 青空如璃 阅读(277) 评论(0) 推荐(0) 编辑
摘要:psql (14.3)Type "help" for help. postgres=# \df+ pg_export_snapshot List of functions Schema | Name | Result data type | Argument data types | Type | 阅读全文
posted @ 2022-09-12 11:37 青空如璃 阅读(118) 评论(0) 推荐(0) 编辑
摘要:一、报错: [postgres@dba01 archive]$ pg_ctl -D /data/pg14 startwaiting for server to start....2022-08-18 16:11:43.883 CST [45459] LOG: redirecting log outp 阅读全文
posted @ 2022-08-18 16:22 青空如璃 阅读(371) 评论(0) 推荐(0) 编辑
摘要:大部分DBA同学,业务正式上线前,会根据业务使用场景,进行sysbench或TPC-C压力测试。一、TPC-C侧重于OLTPTPC-C是业界常用的一套Benchmark,由TPC委员会制定发布,用于评测数据库的联机交易处理(偏向OLTP能力)。主要涉及10张表,包含了NewOrder(新订单的生成) 阅读全文
posted @ 2022-07-28 18:39 青空如璃 阅读(1049) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示