摘要: #!/bin/bash # 过滤掉所有OK列以及以 开头的列到result1.txt文件中 grep -v -E "TABLE1: OK|--" data_validation.txt > result1.txt # 提取ORACLEDB以及POSTGRES开头的列,按照原格式存储到temp1.tx 阅读全文
posted @ 2024-04-24 22:57 DBAGPT 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # 从data_validation.txt文件中提取需要处理的行,并将结果保存到temp.txt文件中 grep -E "ORACLEDB|POSTGRES" data_validation.txt > temp.txt # 逐行读取temp.txt文件 while IFS 阅读全文
posted @ 2024-04-24 22:32 DBAGPT 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Oracle SELECT LOWER(c.table_name) || ':' || LOWER(i.index_name) || ':' || LOWER(wm_concat(c.column_name)) AS output FROM all_indexes i JOIN all_ind_co 阅读全文
posted @ 2024-04-24 22:02 DBAGPT 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Both Oracle and PostgreSQL support the TIMESTAMP WITH TIME ZONE data type, but there are some differences in how they handle and store time zone infor 阅读全文
posted @ 2024-04-23 09:56 DBAGPT 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 设置root密码,并创建db以及密码和用户 Vagrant.configure("2") do |config| config.vm.box = "oraclelinux/8" config.vm.network "private_network", ip: "192.168.56.101" con 阅读全文
posted @ 2024-03-30 13:28 DBAGPT 阅读(1) 评论(0) 推荐(0) 编辑
摘要: CREATE OR REPLACE FUNCTION disable_triggers(a boolean, nsp character varying) RETURNS void AS $BODY$ declare act character varying; r record; begin if 阅读全文
posted @ 2024-03-27 22:47 DBAGPT 阅读(2) 评论(0) 推荐(0) 编辑
摘要: create or replace function disable_triggers(a boolean, nsp character varying) returns void as $$ declare act character varying; r record; begin if(a i 阅读全文
posted @ 2024-03-27 22:44 DBAGPT 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 导入时,加入参数TRUNCATE_TABLE,可以清空原有数据。 阅读全文
posted @ 2024-03-27 22:37 DBAGPT 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # ORACLE_USER="username" ORACLE_PASSWORD="password" ORACLE_HOST="hostname" ORACLE_PORT="port" ORACLE_SID="SID" # row count function get_ta 阅读全文
posted @ 2024-03-27 22:27 DBAGPT 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 如果你在使用 Hibernate 和 PostgreSQL 时遇到了 "character varying = bytea" 错误,那么可能是因为你在实体类中的属性映射或查询条件中将一个类型为 "character varying" 的属性与一个类型为 "bytea" 的列进行了混淆。 要解决这个错 阅读全文
posted @ 2024-03-27 22:01 DBAGPT 阅读(9) 评论(0) 推荐(0) 编辑