随笔分类 - oracle
摘要:--数据库日志RAC 环境节点1 Fri Jun 28 02:44:30 2019 *********************************************************************** Fatal NI connect error 12537, connec
阅读全文
摘要:--节点2 数据库日志 Mon Jul 01 06:38:22 2019SUCCESS: diskgroup SAS_ARCH was dismountedMon Jul 01 06:38:22 2019Shutting down instance (abort)License high water
阅读全文
摘要:ORACLE EXPDP IMPDP 的停止和启动及监控 EXPDP/IMPDP相比传统的exp/imp的最本质区别在于服务器端执行,客户端发出指定后,通过API启动服务器的备份job,在执行过程中,可以拿下Ctrl+C组合键,退出当前交互模式,退出之后,导出操作不会停止。这不同于Oracle以前的
阅读全文
摘要:--11G RAC 环境 Wed Jun 12 16:51:31 2019LNS: Standby redo logfile selected for thread 1 sequence 523 for destination LOG_ARCHIVE_DEST_2Wed Jun 12 16:51:3
阅读全文
摘要:adg 搭建备库,归档缺失,主库归档有备份 --主库RAC,备库单机 adg 搭建备库,归档缺失 alter system set log_archive_config='dg_config=(ssdb,ssadg,ssbak)'; alter system set fal_server='ssad
阅读全文
摘要:查询历史连接主机信息 select distinct a.machine,a.program,a.module from dba_hist_active_sess_history a where a.SAMPLE_TIME BETWEEN TO_DATE('2019-06-04 12:00:00',
阅读全文
摘要:--现象: 修改 SGA 参数 没有修改 sga_max_size 导致数据库启动失败; SQL>alter system set sga_target=270G scope=spfile; 启动数据库报错 ERROR at line 1:ORA-01565: error in identifyin
阅读全文
摘要:oracle 如何监控索引的使用状况?在开发应用程序时,可能会建立很多索引,那么这些索引的使用到底怎么样,是否有些索引一直都没有用到过,在这种情况下就需要对这些索引进行监控,以便确定它们的使用情况,并为是否可以清除它们给出依据。监控索引有两种方式:1、直接监控索引的使用情况(1)设置所要监控的索引:
阅读全文
摘要:数据库版本 11.2.0.4.0 --模式:DG 日志报错: Thu May 16 10:22:30 2019Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x4] [PC:0x968F76B, evaopn3()+135
阅读全文
摘要:https://www.askmaclean.com/archives/performance-tuning-oracle-awr.html
阅读全文
摘要:col BEGIN_INTERVAL_TIME for a25 \rcol END_INTERVAL_TIME for a25 \rcol instance_number for 99 \rset linesize 1000 pagesize 999 \rselect a.snap_id, a.sq
阅读全文
摘要:1、抓出外键没有创建索引的表(不依赖统计信息)with cons as (select /*+ materialize */ owner,table_name,constraint_name from dba_constraints where owner='SCOTT' and constrain
阅读全文
摘要:SELECT /*+ rule */ a .table_owner, a.table_name, a.index_owner, a.index_name, column_name_list, column_name_list_dup, dup duplicate_indexes, i.uniquen
阅读全文
摘要:史上最全近百条Oracle DBA日常维护SQL脚本指令 http://blog.itpub.net/30126024/viewspace-2057474/ 具体SQL如下 查询碎片程度高(实际使用率小于30%)的表 可以收缩的表条件为什么block>100,因为一些很小的表,只有几行数据实际大小很
阅读全文
摘要:select col.table_owner "table_owner", idx.table_name "table_name", col.index_owner "index_owner", idx.index_name "index_name", uniqueness "uniqueness"
阅读全文
摘要:一、查看字符集 SELECT USERENV('LANGUAGE') FROM DUAL; 二、 修改processes和sessions值(参考RAC测试库) show parameter processes show parameter sessions alter system set pro
阅读全文
摘要:[oracle@uudb1 ~]$ cd $ORACLE_HOME[oracle@uudb1 db_1]$ cd OPatch/[oracle@uudb1 OPatch]$ lscrs docs emdpatch.pl jlib ocm opatch opatch.bat opatchdiag op
阅读全文