自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(625)
  • 收藏
  • 关注

原创 Oracle 11g、12c大量错误登陆尝试带来的数据库异常

APPLIES TO:Oracle Database - Enterprise Edition - Version 10.2.0.5 and laterInformation in this document applies to any platform.CAUSEA hang is possible in earlier versions of RDBMS as a resu...

2018-07-16 09:21:22 668

原创 Linux OOM机制介绍

 Linux系统运行过程中,有时候会在message中看到Out of memory,并kill某个进程的信息。这篇文章讲的就是OOM机制的原理以及其核心配置参数。内核版本基于centos6使用的linux-2.6.32。OOM(Out Of Memory)机制为Linux内核中一种自我保护机制,当系统分配不出内存时(触发条件)会触发这个机制,由系统在已有进程中挑选一个占用内存较多,...

2018-06-06 11:27:12 2777

原创 如何定位那些SQL产生了大量的redo日志

在ORACLE数据库的管理、维护过程中,偶尔会遇到归档日志暴增的情况,也就是说一些SQL语句产生了大量的redo log,那么如何跟踪、定位哪些SQL语句生成了大量的redo log日志呢? 下面这篇文章结合实际案例和官方文档“How to identify the causes of High Redo Generation (文档 ID 2265722.1)”来实验验证一下。  ...

2018-05-15 14:38:34 1317

原创 When Memory_target Is Set and Swap Size Is Not Big (Doc ID 2356025.1)

Kkjcre1p: unable to spawn jobq slave process Happened Intermittently When Memory_target Is Set and Swap Size Is Not Big (Doc ID 2356025.1)To BottomIn this Docu...

2018-03-16 18:13:34 337

原创 Transparent Hugepage is not getting disabled (Doc ID 2279458.1)

Transparent Hugepage is not getting disabled (Doc ID 2279458.1)To BottomIn this Document Symptoms Cause Solution References APPLIES...

2018-03-16 18:10:40 172

原创 Python集合(set)类型的操作

python的set和其他语言类似, 是一个无序不重复元素集, 基本功能包括关系测试和消除重复元素. 集合对象还支持union(联合), intersection(交), difference(差)和sysmmetric difference(对称差集)等数学运算.    sets 支持 x in set, len(set),和 for x in set。作为一个无序的集合,sets不...

2017-09-19 14:23:42 153

详解Python中的下划线(原创)

本文将讨论Python中下划线(_)字符的使用方法。我们将会看到,正如Python中的很多事情,下划线的不同用法大多数(并非所有)只是常用惯例而已。单下划线(_)通常情况下,会在以下3种场景中使用:1、在解释器中:在这种情况下,“_”代表交互式解释器会话中上一条执行的语句的结果。这种用法首先被标准CPython解释器采用,然后其他类型的解释器也先后采用。Python...

2017-09-17 18:24:24 264

原创 Oracle Redo 并行机制

Redo log 是用于恢复和一个高级特性的重要数据,一个redo条目包含了相应操作导致的数据库变化的所有信息,所有redo条目最终都要被写入redo文件中去。Redo log buffer是为了避免Redo文件IO导致性能瓶颈而在sga中分配出的一块内存。一个redo条目首先在用户内存(PGA)中产生,然后由oracle服务进程拷贝到log buffer中,当满足一定条件时,再由LGWR进程写...

2017-04-07 11:31:03 249

原创 log file sync总结

log file sync等待时间发生在redo log从log buffer写入到log file期间。下面对log file sync做个详细的解释。 何时发生日志写入:1.commit或者rollback2.每3秒3.log buffer 1/3满或者已经有1M的redo数据。      更精确的解释:_LOG_IO_SIZE 大小默认是LOG_BUFFER的...

2017-03-09 14:36:47 198

原创 Troubleshooting: "log file sync" Waits (文档 ID 1376916.1)

What is a 'log file sync' wait? When a user session commits, the session's redo information needs to be flushed from memory to the redo logfile to make it permanent.   At the time of commit, the...

2017-03-09 14:32:15 224

原创 Oracle Log File Sync Wait Event

The Oracle “log file sync” wait event is triggered when a user session issues a commit (or a rollback). The user session will signal or post the LGWR to write the log buffer to the redo log file. Whe...

2017-03-08 18:46:38 264

原创 Tuning ‘log file sync’ Event Waits

Tuning ‘log file sync’ Event Waitsby Riyaj ShamsudeenJune 27, 2008Posted in: Technical TrackTags: Oracle In this blog entry, I will discuss strategies and techniques to resolve ...

2017-03-08 18:41:01 374

原创 Diagnosing buffer busy waits with the ash_wait_chains.sql script (v0.2)

Diagnosing buffer busy waits with the ash_wait_chains.sql script (v0.2)by Tanel Poder Posted on November 6, 2013 In my previous post ( Advanced Oracle Troubleshooting Guide – Part 11: Complex...

2017-03-08 16:56:34 287

原创 Advanced Oracle Troubleshooting Guide – Part 11: Complex Wait Chain Signature An

Here’s a treat for the hard-core Oracle performance geeks out there – I’m releasing a cool, but still experimental script for ASH (or poor-man’s ASH)-based wait event analysis, which should add a who...

2017-03-08 16:05:21 261

原创 Oracle 10046 SQL TRACE

为什么我们要使用10046 trace? 10046 trace帮助我们解析 一条/多条SQL、PL/SQL语句的运行状态 ,这些状态包括 :Parse/Fetch/Execute三个阶段中遇到的等待事件、消耗的物理和逻辑读、CPU时间、执行计划等等。即10046 为我们揭示了 一条/多条SQL 的运行情况, 对于  以点入手的 SQL调优是很好的辅助工具,特别是在 10g之前没有A...

2017-03-08 15:19:14 166

原创 机器学习网址整理

http://lectures.quantecon.org/_static/pdfs/py-quant-econ.pdfhttp://linear.ups.edu/curriculum.htmlhttp://www.extension.harvard.edu/open-learning-initiative/abstract-algebrahttp://www.opentextbo...

2017-03-05 07:54:35 196

原创 ref cursor sys_refcursor传递结果集

SQL>set linesize 200 pages 100SQL> variable v refcursor;SQL>exec open :v for'select * from emp';PL/SQL procedure successfully completed.SQL>print:v; EMPNO ENAME ...

2016-11-11 09:19:54 236

原创 Duplicate a Database Using RMAN in Oracle Database 11g Release 2

Duplicate a Database Using RMAN in Oracle Database 11g Release 2This article is an update of a previous Oracle 9i article.IntroductionBackup-Based DuplicationActive Database DuplicationRMA...

2016-11-03 15:38:25 221

原创 Automatic Storage Management

SYSASM Role When Automatic Storage Management (ASM) was introduced with Oracle Database 10g, it somewhat blurred the line between DBAs and sysadmins in terms of their storage allocation functions...

2016-11-03 15:33:48 872

原创 ASM FAQ

ASM FAQ Oracle Automatic Storage Management (ASM) FAQContents1 Why should we use separate ASM home?2 How many ASM instances should one have?3 How many diskgroups should one...

2016-11-03 15:29:32 181

原创 Sublime-Text-3-OmniMarkupPreviewer

Markdown 创立的宗旨是实现「易读易写」。其语法简洁直观,你可以使用任何喜爱的文本编辑器来阅读和写作,更专注于书写的文字内容而不是排版样式。编辑完毕可轻松地导出成 HTML、PDF 等其它格式。语法学习参考 : Markdown 语法说明(简体中文版)Sublime Text 3 以及 OmniMarkupPreviewerSublime Text 是一套跨平台的文字編輯器...

2016-10-21 15:42:26 522

原创 Oracle ALTER PROFILE语法

ALTER PROFILEPurposeUse the ALTER PROFILE statement to add, modify, or remove a resource limit or password management parameter in a profile.Changes made to a profile with an ALTER PROFILE stat...

2016-10-10 11:36:11 1861

原创 C/C++语言编码规范

1.    命名规则1.1. 起个合适的名字1.1.1.    类的名称(适用于C++)²  类的名称要能告诉我们,这个类是什么。因此,类的名称通常是名词。²  类的名字不需要告诉我们,它从哪个类继承而来的。²  有时候加个后缀是很有用的。比如类是一个代理(Agents)时,起名叫DownloadAgent更能表达真实的意图。1.1.2.    方法和函数的名称(...

2016-10-09 23:34:30 239

安装Fedora-Scientific_KDE后做的事(原创)

这篇文章用于记录个人在安装了Fedora-Scientific_KDE之后需要做的事,不一定适用于每个人,请读者根据需要采用对自己有用的部分,谢谢!#添加搜狐源dnf config-manager --add-repo=http://mirrors.sohu.com/help/fedora-sohu.repodnf config-manager --add-repo=http://...

2016-10-01 09:20:04 381

原创 在linux下如何编译C++程序

概述GCC,GNU Compiler Collection是linux下最主要的编译工具GCC不仅功能非常强大结构也异常灵活。它可以通过不同的前端模块来支持各种语言如Java、Fortran、Pascal、Modula-3和Ada。g++是GCC中的一个工具专门来编译C++语言的。 GCC的参数有( 也是分步实现)   -E  让GCC在预处理结束后停止编译    g++ -E hell...

2016-09-27 13:58:34 233

原创 Linux启动过程--从引导说起

Linux的引导过程是一个用来初始化系统的程序。它包含了在打开电源键之后直到用户界面可操作之前的一切。一旦你开始使用Linux,你会发现如果你对引导过程中的步骤非常熟悉,将会有助于你解决相关故障以及按需配置你的计算机。打开电源–>BIOS–>MBR(主引导记录,硬盘的第一个扇区–>引导程序(例如GRUB)–>内核(Linux 系统))–>initramfs映...

2016-09-23 13:49:22 217

原创 Oracle FGA审计

大家对trigger可能比较熟悉,但Oracle还有一个叫FGA的功能,它的作用和trigger类似,但功能更强大.它的全称是Fine-Grained Audit ,是Audit的一种特殊方式. 使用FGA只要调用Oracle的包DBMS_FGA.ADD_POLICY创建一些policy(审计策略)就行.每个policy只能针对一个表或视 图.建好策略后所以对表或视图的DML操作(select...

2016-09-20 09:42:30 517

原创 How to Uninstall (or Reinstall) Windows 10’s Ubuntu Bash Shell

How to Uninstall (or Reinstall) Windows 10’s Ubuntu Bash ShellWindows 10’s new Ubuntu-based Bash shell doesn’t function like a normal program. To uninstall it or reset its state to get a fresh ...

2016-09-19 22:35:43 226

原创 Linux下./configure,make,make install的作用

./configure是用来检测你的安装平台的目标特征的。比如它会检测你是不是有CC或GCC,并不是需要CC或GCC,它是个shell脚本。 make是用来编译的,它从Makefile中读取指令,然后编译。 make install是用来安装的,它也从Makefile中读取指令,安装到指定的位置。 AUTOMAKE和AUTOCONF是非常有用的用来发布C程序的东西。 -----...

2016-09-19 12:12:16 287

原创 rpm包指定安装路径

rpm包一般都有默认的安装路径,如何你要更改默认路径,有没有办法呢?当然有。我们来看下面的例子。比如在安装JDK (Java Development Kit)或JRE (Java Runtime Environment)时,这个RedHat package文件的默认安装路径是/usr/java。如果你要安装在其它路径下,例如要放到/home/java目录下,该如何做呢?一、首先查看rpm包的详细...

2016-09-19 12:10:57 497

原创 Oracle Data Pump Internals

IntroductionOracle Data Pump was a new feature introduced in Oracle Database 10g Release 1. The Oracle DataPump export (expdp) and import (impdp) utilities are the replacements for the original expor...

2016-09-13 16:38:53 138

原创 UDEV SCSI Rules Configuration for ASM in Oracle Linux 5, 6 and 7

UDEV SCSI Rules Configuration for ASM in Oracle Linux 5, 6 and 7For Oracle Automatic Storage Manager (ASM) to use disks, it needs to be able to identify the devices consistently and for them to hav...

2016-09-12 16:32:34 129

原创 机器学习中的数学(1)-回归(regression)、梯度下降(gradient descent)

回归与梯度下降:   回归在数学上来说是给定一个点集,能够用一条曲线去拟合之,如果这个曲线是一条直线,那就被称为线性回归,如果曲线是一条二次曲线,就被称为二次回归,回归还有很多的变种,如locally weighted回归,logistic回归,等等,这个将在后面去讲。   用一个很简单的例子来说明回归,这个例子来自很多的地方,也在很多的open source的软件中看到,比如说wek...

2016-08-30 14:21:51 119

原创 浅谈Feature Scaling

定义:Feature scaling is a method used to standardize the range of independent variables or features of data. In data processing, it is also known as data normalization and is generally performed during...

2016-08-30 14:21:46 182

原创 精通 Oracle+Python,第 3 部分:数据解析

进行数据解析的理由不计其数,相关的工具和技巧也同样如此。但是,当您需要用这些数据做一些新的事情时,即使有“合适的”工具可能也是不够的。这一担心对于异类数据源的集成同样存在。用来做这项工作的合适工具迟早应该是一种编程语言。Oracle 提供了一些非常强大的实用程序来加载、处理和卸载数据。SQL*Loader、Data Pump、外部表、Oracle Text、正则表达式都能提供这些功能。然而人...

2016-08-09 14:47:01 177

原创 精通 Oracle+Python,第 2 部分:处理时间和日期

从 Python 2.4 版开始,cx_Oracle 自身可以处理 DATE 和 TIMESTAMP 数据类型,将这些列的值映射到 Python 的 datetime 模块的 datetime 对象中。因为 datetime 对象支持原位的运算操作,这可以带来某些优势。内置的时区支持和若干专用模块使 Python 成为一台实时机器。由于有了 cx_Oracle 的映射机制,Python 和 Or...

2016-07-16 14:28:51 459 1

原创 精通 Oracle+Python,第 1 部分:查询最佳应践

在 Python 做事方式的核心原则中,有一个规定是要求具有到 API 的高级接口。数据库 API(在此例中为 Oracle API)就是一个例子。使用 Computronix 的 cx_Oracle Python 模块,您可以在维持与 Python 数据库 API 规范 v2.0 的兼容性的同时,控制 Oracle 的查询模型。对于所有遵循该规范的客户端库而言,使用 DB API 2.0 ...

2016-07-14 11:01:02 158

Cannot Allocate New Log

故障报错Thread 1 cannot allocate new log, sequence 2594Checkpoint not complete故障现象redo log频繁切换,数据库DML性能下降。额外的日志归档影响IO性能。故障原因及解决方案该故障大部分情况下是由于redo log切换过于频繁导致没有及时进行日志归档。此外,日志切换前没有完成检查点操作也会导致同...

2016-02-21 12:28:18 325

Oracle flashback dropped tablespace(原创)

Oracle官方并不推荐在数据库物理结构发生改变的情况下进行Flashback,但有些特殊情况。例如项目上线时出现异常需要快速的回滚到表空间被删除之前的操作。那么flashback tablespace想比于进行全库的restore和recover能更快速的满足要求,减少宕机时间。具体演示SQL> create tablespace tt datafile '/home/oracl...

2015-11-15 22:21:49 185

原创 Monitor data pump expdp export script

Question:  I need to monitor a data pump export job and I want to monitor the progress of the expdp command.  What are the ways to monitor a Oracle export job? Answer:  The data pump logfile is t...

2015-10-09 15:29:34 118

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除