【转义】使用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文件引发的竞争,提高系统性能。每个日志...
给ASM实例增加diskgroup
测试虚拟机操作系统版本是 Redhat 6.4 64位,数据库版本是 oracle 11.2.0.4.0 64bit, GI版本 oracle 11.2.0.4 64bit,下文记录了使用udev给ASM实例添加一个磁盘组 diskgroup FRA,一共两个硬盘 sdf, sdg,各20G空间.step1:确认新硬盘并创建分区[root@rhel ~]# ls -lt /dev/sd*brw-rw----. 1 root disk 8, 1 J...
应用RMAN Transportable Database进行数据库跨平台迁移
+ We can use RMAN "Transportable Database" conversion for performing cross platform database migration between two operating system platforms belonging to the same endian format.Use V$TRANSPORTABLE_PLATFORM view to check the endianess of source and target database platforms.+ If you need to mi...
Supporting 4K Sector Disks
Supporting 4K Sector Disks [Video] (Doc ID 1133713.1)Click to add to FavoritesSupporting 4K Sector Disks [Video] (Doc ID 1133713.1)To BottomTo Bottom Modified:Jun 3, 2013Type:BULLETIN Rate this documentEmail link to this documentOpen document in new windowPrintable PageIn this Document...
oracle数据文件验证工具
由于各方面的因素,数据块可能会出现损坏,这个损坏包括逻辑上的和物理上的,DBA们可以使用rman, analyzer, dbv等工具对数据文件进行验证,从而发现潜在的corruption。今天从oracle support上查看了一篇文章,关于使用 dbv来验证数据文件的,感觉和rman validate database, validate datafile fil...
oracle空间收缩
都知道alter table move 或shrink space可以收缩段,用来消除部分行迁移,消除空间碎片,使数据更紧密,但move跟shrink space还是有区别的。Move会移动高水位,但不会释放申请的空间,是在高水位以下(below HWM)的操作。而shrink space 同样会移动高水位,但也会释放申请的空间,是在高水位上下(below and above HWM)都...