随笔分类 -  Oracle

摘要:https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=6880880 数据库补丁详细信息地址: My Oracle Support Note 2521164.1 Database 19 Proactive Pat 阅读全文
posted @ 2024-08-17 15:44 DBAGPT 编辑
摘要: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 编辑
摘要:在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 编辑
摘要:#!/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.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 编辑
摘要:https://github.com/jkstill/oracle-script-lib 阅读全文
posted @ 2024-04-27 23:09 DBAGPT 编辑
摘要:#!/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 编辑
摘要:#!/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 编辑
摘要: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 编辑
摘要:#!/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 编辑
摘要:在Oracle数据库中,同义词(Synonym)是一个指向另一个对象(表、视图、函数等)的命名引用。在将Oracle数据库迁移到PostgreSQL时,由于PostgreSQL没有直接支持同义词的概念,因此需要采取一些策略来处理同义词的转换。 以下是一种常见的方法来处理同义词的转换: 创建视图: 在 阅读全文
posted @ 2024-03-12 21:38 DBAGPT 编辑
摘要:select col.column_id, col.owner as schema_name, col.table_name, col.column_name, col.data_type, col.data_length, col.data_precision, col.data_scale, c 阅读全文
posted @ 2024-03-12 21:25 DBAGPT 编辑
摘要:作为Oracle DBA(数据库管理员),以下是更多常见的Oracle数据库管理中可能遇到的150个问题案例: 数据库备份和恢复失败 数据库性能下降 数据库连接问题 长时间运行的查询和死锁 数据库服务器崩溃或宕机 数据库空间不足 数据库日志文件过大 数据库表空间损坏 数据库安全漏洞 数据库版本升级和 阅读全文
posted @ 2023-11-24 19:40 DBAGPT 编辑
摘要:#!/bin/bash # # Script used to cleanup any Oracle environment. # # Cleans: audit_log_dest # background_dump_dest # core_dump_dest # user_dump_dest # C 阅读全文
posted @ 2023-11-23 22:35 DBAGPT 编辑

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