随笔分类 -  Oracle

摘要:https://sqlmaria.com/2020/03/10/what-are-query-block-names-and-how-to-find-them/ 阅读全文
posted @ 2023-11-19 23:00 DBAGPT 编辑
摘要:SQL> SHOW FEEDBACK FEEDBACK ON for 6 or more rows SQL_ID OFF SQL> SET FEEDBACK ON SQL_ID SQL> SELECT COUNT(*) FROM DBA_OBJECTS; COUNT(*) 92633 1 sat?r 阅读全文
posted @ 2023-11-19 22:51 DBAGPT 编辑
摘要:-- https://github.com/jkstill/oracle-script-lib/blob/master/sql/stats-sqlid.sql -- stats-sqlid.sql -- get stats info for all objects used in a SQL_ID 阅读全文
posted @ 2023-11-19 22:10 DBAGPT 编辑
摘要:查询正在执行的SQL set lines 200 pages 0; SELECT b.inst_id,b.sid oracleID, b.username , b.serial#, spid , b.sql_id, sql_fulltext, b.machine, b.EVENT FROM gv$p 阅读全文
posted @ 2023-11-18 18:52 DBAGPT 编辑
摘要:AHF简介 1.AHF的诞生就是为了与时俱进,让DBA们收集系统日志以及故障日志更加快捷,同时让Oracle也能够快速定位问题并提供对应的解决方案,号称是每个DBA必备工具。 2.AHF现在默认绑定在DB12+以及GRID12+的RU中,同时最新的版本也可以通过patch:30166242获取,其对 阅读全文
posted @ 2023-11-12 20:17 DBAGPT 编辑
摘要:Windows treesize Linux DB 阅读全文
posted @ 2023-11-10 14:42 DBAGPT 编辑
摘要:set trimspool on trim on set pages 0 linesize 1000 set long 1000000 longchunksize 1000000 -- 查指定时间内 SELECT dbms_sqltune.report_sql_detail( sql_id => ' 阅读全文
posted @ 2023-11-06 22:50 DBAGPT 编辑
摘要:本文基于使用数据泵(datapump)迁移数据库时,特别需要注意的几点。 1. sys下别其他用户调用的package,procedure等 - 场景:大型数据库中,都会有自定义的表分区管理procedure 2. tnsnames.ora 、 listener.ora 、 sqlnet.ora 的 阅读全文
posted @ 2023-10-12 21:45 DBAGPT 编辑
摘要:``` https://github.com/carlos-sierra/cscripts CS Scripts Inventory by Type (2023-07-29) Latency Load SQL Performance SPBL - SQL Plan Baselines SPRF - 阅读全文
posted @ 2023-08-22 22:40 DBAGPT 编辑
摘要:### ``` 原文-https://github.com/aws-samples/automate-table-partitioning-in-oracle-standard-edition/tree/main/partitions/scripts 需要调整的地方有: 1. drop table 阅读全文
posted @ 2023-08-20 19:44 DBAGPT 编辑
摘要:``` #!/bin/bash PDB=ORCLPDB2 export ORACLE_PDB_SID=ORCLPDB2 for x in {1..3} do sqlplus -S '/ as sysdba' <<EOF alter session set container=$ORCLPDB1 dr 阅读全文
posted @ 2023-08-20 19:12 DBAGPT 编辑

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