摘要: https://aws.amazon.com/cn/blogs/database/validating-database-objects-after-migration-using-aws-sct-and-aws-dms/ Step 1 - Validate packages Run the fol 阅读全文
posted @ 2024-05-15 21:41 DBAGPT 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 在Oracle中,您可以使用以下查询来获取所需的信息: 查询主键索引信息: SELECT c.table_name, c.constraint_name AS index_name, LISTAGG(c.column_name, ', ') WITHIN GROUP (ORDER BY c.posi 阅读全文
posted @ 2024-05-15 07:33 DBAGPT 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # 读取result.txt文件内容 while IFS= read -r line do if [[ $line == *"ORACLEDB"* ]]; then ORACLEDB_line="$line" # 保存ORACLEDB行 else # 提取POSTGRES行的 阅读全文
posted @ 2024-05-02 17:10 DBAGPT 阅读(1) 评论(0) 推荐(0) 编辑
摘要: --1.SQL用 postgres账户查询 PostgreSQL 中指定DB以及schema下唯一索引的信息,按照表名:索引名:索引键值 并按表名排序输出 SELECT t.tablename AS table_name, i.indexname AS index_name, string_agg( 阅读全文
posted @ 2024-05-01 20:39 DBAGPT 阅读(1) 评论(0) 推荐(0) 编辑
摘要: https://github.com/jkstill/oracle-script-lib 阅读全文
posted @ 2024-04-27 23:10 DBAGPT 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2024-04-27 14:23 DBAGPT 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2024-04-27 14:22 DBAGPT 阅读(0) 评论(0) 推荐(0) 编辑
摘要: #!/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) 编辑