Oracle/MySQL通过odbc访问PostgreSQL for LightDB
安装unixODBCwget http://www.unixodbc.org/unixODBC-2.3.7.tar.gz tar -xzvf unixODBC-2.3.7.tar.gz cd unixODBC-2.3.7/ ./configure --prefix=/usr/local/odbc make &&&n
PostgreSQL string_to_array group by 两个列报错
ERROR: column "e.name" must appear in the GROUP BY clause or be used in an aggregate function LINE 3: (string_to_array(name, ',')) as name1
LightDB常用备份恢复命令说明
(PGPASSWORD=密码 lt_dump -U用户名 -h IP -p 端口 -d 库名 -n schema名字 -F 文件格式 --if-exists -c 如果存在就覆盖 -f 文件名&
PostgreSQL批量改数据类型
pbchar改成varchar
Oracle start with connect by PostgreSQL recursive cte
PostgreSQL 和 Oracle等价改写
PostgreSQL ctid与Oracle rowid的区别
Oracle:搞过Oracle的一定对rowid比较熟悉啦,由下面基本含义组成SELECT ROWID, DBMS_ROWID.ROWID_OBJECT(ROWID) AS OBJECT, DBMS
LightDB/PostgreSQL 兼容Oracle存储过程
22.2开始LightDB兼容Oracle存储过程,下面我们测试下对func的支持情况
PSQLexception: ERROR : type "signed" does not exist
signed是MySQL特有的类型,Oracle和原生PostgreSQL都没有,当MySQL的代码有select cast( '1' as signed);跑在当前没有兼容类型的数据库上会报错lightdb@postgres=# select cast('1' as signed); ERROR: t
LightDB/PostgreSQL 客户端部署
LightDB的客户端部署比较简单
PostgreSQL/Oracle 时间改成秒
select ROUND(TO_NUMBER(SYSDATE - TO_DATE(max(END_TIME), 'yyyy-MM-dd HH24:mi:ss') ) * 24 * 60 ) as "interval", coun
PostgreSQL/LightDB- Tried to send an out-of-range integer as a 2-byte value
程序报如下错误 Caused by: java.io.IOException: Tried to send an out-of-range integer as a 2-byte value: 43632 ct_storys on base.team_org_dwid = defect_storys.team_org_dwid
PostgreSQL/Lightdb 更改列属性语法
Oracle:SQL> desc emp; Name &nbs
PostgreSQL/LightDB copy ERROR: invalid byte sequence for encoding "UTF8": 0x00
https://jdbc.postgresql.org/documentation/publicapi/org/postgresql/copy/CopyManager.html
PostgreSQL/LightDB 分区表之分区裁剪
PostgreSQL分区表的分类PostgreSQL10之前使用继承式分区,这里我们不再讨论,目前LightDB使用的是声明式分区,不再需要繁琐的触发器和继承直奔主题创建测试表并生成测试数据drop table partition_table; CREATE TABLE partition_table ( &
PostgreSQL/LightDB分区表之常见问题
为什么要分区ItemDescription最大单个数据库大小不限最大数据单表大小32 TB单条记录最大1.6 TB单字段最大允许1 GB单表允许最大记录数不限单表最大字段数250 - 1600 (取决于字段类型)单表最大索引数不限ItemUpper LimitCommentdatabase sizeunlimitednumber of databases4,294,950,911一个cluster
LightDB/postgresql内置特性之访问oracle之oracle_fdw介绍
安装插件LightDB默认集成了oracle_fdw插件create extension oracle_fdw;安装Oracle客户端oracle轻量客户端可直接从oracle官网https://www.oracle.com/database/technologies/instant-client/downloads.html下载。instantclient-basic-lin
使用GoldenGate 迁移Oracle到PostgreSQL/LightDB
说明1.1数据库国产化背景Oracle迁移到PostgreSQL/LightDBOGG软件介质:Oracle GoldenGate V11.2.1.0.1 for Oracle 10g on Linux x86-64 84.7 MB利用OGG+ora2pg迁移源 库:centos 7 单节点Oracle 19c目标库:centos 7 单节点LightDB22.1搭建目标数据库和OGG软件2.1创
PostgreSQL Detail: Failed on request of size 8192 in memory context "ErrorContex
Caused by: org.postgresgl.util.PSQLException: ERROR: out of memory Detail: Failed on request of size 8192 in memory context "ErrorContex
LightDB/Postgres 使用ora2pg迁移Oracle到LightDB/Postgres
ora2pg部署
查看当前pg会话连接数
select current_timestamp,cnt from (select count(*) as cnt from pg_stat_activity) \watch 10 1000000;