随笔分类 -  Oracle

摘要:1, ADG broker下,从无需配置config,即便是配置了从的config,再db switchover之后,也会被清除 阅读全文
posted @ 2025-06-11 21:50 DBAGPT
摘要:Oracle 19.24 DB,OJVM, JDK , GI 修复如下CVE CVE-2023-45853, CVE-2022-37434, CVE-2023-52425, CVE-2023-52426, CVE-2024-0853, CVE-2024-21123, and CVE-2024-211 阅读全文
posted @ 2024-08-17 16:10 DBAGPT
摘要: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
摘要:在监控 Oracle Real Application Clusters (RAC) 环境时,以下是一些常见的监控指标和要点: 资源利用率指标: CPU 使用率:监控每个节点上的 CPU 使用率,以确保它们在可接受的范围内。 内存利用率:跟踪每个节点上的内存使用情况,包括 SGA (System G 阅读全文
posted @ 2023-11-24 18:48 DBAGPT
摘要:当监控 Oracle Data Guard 环境时,以下是一些更详细的指标和监控方法,可用于确保环境的稳定性和可靠性: 数据库角色和状态: 主库角色和状态: 查询 V$DATABASE 视图,获取主库的角色和状态信息。主要关注 DATABASE_ROLE 和 OPEN_MODE 列。 备库角色和状态 阅读全文
posted @ 2023-11-24 18:42 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
摘要:https://sqlmaria.com/2020/03/10/what-are-query-block-names-and-how-to-find-them/ 阅读全文
posted @ 2023-11-19 23:00 DBAGPT