Linux系统上安装MySQL 5.5prm
Linux系统上安装MySQL 5.5prm1.准备工作从MySQL官网上分别下载mysql服务器端于客户端包。如:MySQL-server-5.5.15-1.linux2.6.x86_64.rpm和MySQL-client-5.5.15-1.linux2.6.x86_64.rpm并放到/opt目录下2.检测系统是否安装MySQL(1)进入系统后,检测是否安装mysql.如:检测是否安装Mysql输...
记录下 patch Grid Infrastructure for Standalone
以下内容根据今天下午给GI standalone打补丁记录整理而成,参考对应的 readme 文件#### latest patch p18706472_112040_Linux-x86-64.zip## OS RedHat 6.4 64## DB 11.2.0.4.0 Single instance owner user oracle ## ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_home## GI 1...
ASM key concepts
The following points describe key concepts of ASM; for more information refer to the resources at the end of this note. ASM exists to manage file storage for the RDBMSASM does NOT perform I/O on behalf of the RDBMSI/O is performed by the RDBMS processes as it doe...
几个SQL 日期处理函数
ADD_MONTHS(d,n) --时间点d再加上n个月 ----for example select sysdate, add_months(sysdate,2) aa from dual; SYSDATE AA ---------- ---------- 21-SEP-07 21-NOV-07 &nbs...
interval year to month & INTERVAL DAY TO SECOND
INTERVAL 'integer [- integer]' {YEAR | MONTH} [(precision)][TO {YEAR | MONTH}]该数据类型常用来表示一段时间差, 注意时间差只精确到年和月. precision为年或月的精确域, 有效范围是0到9, 默认值为2.eg:INTERVAL '123-2' YEAR(3) TO MONTH 表示: 123年2个月, "YEAR(3)" 表示年的精度为3, 可见"123"刚...
【转义】使用SQL生成SQL语句时单引号的转义处理之q'{}'方法
在使用SQL生成SQL技术完成维护任务的过程中,会遇到类似单引号这样的字符需要转义,给脚本编写带来了些许的麻烦。 一般处理单引号转义是通过“两个单引号表示一个单引号”的规则完成转义。这种...
Linux简单命令
日 志 文 件说 明 /var/log/message系统启动后的信息和错误日志,是Red Hat Linux中最常用的日志之一 /var/log/secure与安全相关的日志信息 /var/log/maillog与邮件相关的日志信息 /var/log/cron与定时任务相关的日志信息 /var/log/spooler与UUCP和news设备相关的日志信息 /var/log/boot.log...
Linux Hugepages
Hugepages是从Linux kernal 2.6后被引入的,其目的是使用更大的memory page size以适应越来越大的系统内存,使得oracle SGA这种大内存结构能分配到一个大块(hugepagesize)连续的内存,提高效率.在Linux下,默认的page size大小为4k。默认的hugepagesize=2M。Note:Linux内存分配的基本单位是一个页面page, 默认4KB大...
Tom告诉你参数 LOG_CHECKPOINT_INTERVAL和LOG_CHECKPOINT_TIMEOUT
and we said...The definition of log_checkpoint_interval did not change significantly. In v8.0 it was:<quote> LOG_CHECKPOINT_INTERVAL LOG_CHECKPOINT_INTERVAL specifies the frequen...
Checkpoint Tuning and Troubleshooting Guide
Contents:内容概要 1. What is a Checkpoint? 什么是检查点2. Checkpoints and Performance 检查点及其性能3. Parameters related to incremental checkpointing 关于增量检查点的参数4. Redo logs and Checkpoint 在线重做日志和检查点的关系5. Understanding Checkpoint Error...
Overview of Database Checkpoints
-----什么是数据库检查点 ,检查点的概念A checkpoint corresponds to a data structure that defines a SCN in the redo thread of a database. Checkpoints are recorded in the control file and each datafile header, and are a crucial element of recovery. 简单来说,检查点是一种数据结构,...
Oracle数据库启动过程验证检查点SCN
SCN (System Change Number )系统改变号一.SCN是Oracle中非常重要的时间机制。SQL> select timestamp_to_scn(sysdate) from dual;TIMESTAMP_TO_SCN(SYSDATE)------------------------- &nbs...
停止ASM实例
To shut down an Oracle ASM instance, perform the following steps: SQLPLUS /NOLOGSQL> CONNECT SYS AS SYSASMEnter password: sys_passwordConnected.SQL> SHUTDOWN NORMALFor more information about user authentication, see "Authentication for Accessing Oracle ASM Instances". The following l...
How to Recover from Loss Of Online Redo Log And ORA-312 And ORA-313
PurposeThis article aims at walking you through some of the commonrecovery techniques after a loss of Online RedologScopeAll Oracle support Analysts, DBAs and Consultants who have a roleto play in recovering an Oracle databaseDetailsScenarioYou have a database in archive ...
备份和恢复的10个好习惯
Top 10 Backup and Recovery best practices.This document assumes that you are doing the Backup and Recovery basics- Running in Archivelog mode- Multiplexing the controlfile- Taking regular backups- Periodically doing a complete restore to test your procedures.- Restore and recovery validate w...
sql 重建控制文件resetlogs和noresetlogs
http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5003.htmRESETLOGS Specify RESETLOGS if you want Oracle Database to ignore the contents of the files listed in the LOGFILE clause. These files do not have to exist. Each redo_log_file_spec in the LOGFILE clause must specify the ...
rman恢复控制文件测试--log
环境:Oracle 11.2.0.4 64bit RedHat 6.5 64 bit[oracle@rhel ~]$ rman target / catalog rman/Recovery Manager: Release 11.2.0.4.0 - Production on Fri Jun 20 04:58:47 2014Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.connected to target database: ANDREW (DBI...
oracle归档模式管理
很少看到productionDB是处于非归档模式的,Oracle中的一些重要特性只能当数据库处于归档模式时才能使用,例如Flashback Database,PITR恢复等。本文主要介绍如何查看数据库是否处于归档模式、如何相关参数和手动将数据库至于归档模式下。注:相关实验都是在单实例的DB上进行的,oracle 11.2.0.4 64bit on Redhat...
Linux 安装11g RAC 前准备工作
Linux 安装11g RAC 前准备工作安装环境操作系统:RHEL6.2 64bitOracle Database 版本:11.2.0.3Oracle Grid 版本:11.2.0.3软件:RHEL6.2 64bit,linux_11gR2_grid,linux_11gR2_database配置rac ip [root@host1 ~]#vim/etc/sysconfig/network-scripts/ifcfg-eth1 增加如下内容: ...
日志线程 redo thread(专业术语解析)
日志线程(Redo Thread)每个实例用到的联机日志就是一个Redo Thread,单实例有且只有一个Redo Thread。在RAC环境下,每个实例都需要自己的联机日志,也就是每个实例都有自己的Redo Thread。 RAC中每实例一个Redo Thread的设计是为了避免实例间共享Redo文件引发的竞争,提高系统性能。每个日志...