删除Oracle 10g垃圾表的好方法
经常使用oracle10g,我们可以发现以前删除的表在数据库中出现了特别多的垃圾表,如下例: BINjR8PK5HhrrgMK8KmgQ9nw== 这一类的表通常无法删除,并且无法用"delete"删除,这种情况的出现, [@more@] 一般不会影响正常的使用,但是有遇到以下几种情况时则必须删掉它。 1.这些表占用空间 2.如果使用Middlegen-Hibernate-r5的朋友会发现一些问题,不你象以前用oracle9时那么顺的生成hibernate配置文件,原因就在这里将它删除就没有问题了. 3.其它情况 BINjR8PK5HhrrgMK8KmgQ9nw== 这一类的表是是1
oracle10g删除Table的困惑
oracle10g中用drop table命令删除表以后(原表有记录),用select * from tab; 发现多出一个BIN$MGhrPKxtxT7gQAB/AQAUKA==$0表,并且无法再删除.drop table的时候在一个参数purge就可以了。 [@more@]原因这个是10g 的新特性。Drop Table 后,没有真正的删除表,而是在“垃圾站”中了。可以通过:SQL> SHOW RECYCLEBIN看到。如果要彻底删除,使用:SQL> PURGE TABLE "BINjR8PK5HhrrgMK8KmgQ9nw==";删除这一个或SQL> PURGE RECYCLEBIN;删除全部。db_flashback_retention_target参数是设定闪回数据的最长保存时间,单位是
清除10g RAC CRS的方法 (zt)
如果在安装clusterware的过程报错,需要重新安装时,必须先清除已经安装的cluserware,否则可能会影响到下次安装。一般情况下,只需要在各节点上依次运行目录$ORA_CRS_HOME/install/下的脚本rootdelete.sh和rootdeinstall.sh 即可。也可以采用如下步骤手工删除:[@more@]1、在所有节点停止nodeappssrvctl stop nodeapps -n nodename2、删除crs自动启动程序Sun:rm /etc/init.d/init.cssdrm /etc/init.d/init.crsrm /etc/init.d/init.crsdrm /etc/init.d/init.evmdrm /etc/rc3.d/K96init.crsrm /etc/rc3.d/S96init.crs rm -Rf
CRS and 10g Real Application Clusters
Subject: CRS and 10g Real Application Clusters Doc ID: Note:259301.1Type: BULLETIN Last Revision Date: 02-JUN-2006Status: PUBLISHED PURPOSE ------- This document is to provide additional information on CRS (Cluster Ready Services) in 10g Real Application Clusters. [@more@] SCOPE & APPLICATION ------------------- This document is intended for RAC Database Administrators and Oracle support enginneers. CRS and 10g REAL APPLICATION CLUSTERS --------------------------------
Oracle10g RAC安装手册 (zt)
整理人:hxre2006-11-20目 录 概述 5 第一部分 Oracle10g RAC数据库简介 6 oracle10g RAC结构 6 硬件 6 共享磁盘存储 7 专用网络 7 公共网络 7 Oracle 集群就绪服务(CRS) 7 Oracle RAC 软件 8 Oracle 自动存储管理 (ASM) 8 第二部分 安装Redhat AS 4.0 (Update2) 8 第三部分 针对Oracle配置redhat 11 [@more@] 3.1 验证系统要求 11 3.2 内核参数 12 3.3 添加oracle用户和组 12 3.4 网络设置 13 3.5 为用户等效性设置SSH 14 第四部分 ASM配置共享磁盘 16 4.1安装ASM软件 1
Oracle10g 目录$ORACLE_HOME/dbs 下有文件 hc_<ORACLE_SID>.dat ,用处是 ?
Q1: What is the $ORACLE_HOME/dbs/hc_<ORACLE_SID>.dat file?Q2: What happens if the $ORACLE_HOME/dbs/hc_<ORACLE_SID>.dat file is deleted?见Metalink . Doc ID: Note:390474.1 [@more@]A1: The $ORACLE_HOME/dbs/hc_<ORACLE_SID>.dat is created for the instance health check monitoring. It contains information used to monitor the instance health and to determine why it went down if the instance isn't up. The file will be recreated at every instance startup.A2: Per Bug 4645405 UNABLE T
Oracle Flashback (9i & 10g) [zt]
第一章、前言根据以往的经验,很多操作失误或者用户错误,将导致应用停顿甚至终止,但是,实际上,防止这种误操作的办法是非常用限的。如果没有良好的计划与高超的技术,一个很小的错误将可能导致一个很大的影响,如错误的删除(delete)数据或者是删除(drop)一个表。 [@more@] 那怎么样来防止这种“不小心的操作呢”,Oracle从版本9开始,就开始提供了flashback query(闪回查询)的功能,最初的功能也是很有限的,不仅完全依赖于自动Undo(AUM),对于drop,truncate等DDL操作是毫无办法,而且,由于受到Undo空间限制,能闪回的时间也是有限
Oracle10g 50M的online redo 归档为什么都小于50M ?
Subject: Archive logs are created with smaller, uneven size than the original redo logs. Why? Doc ID: Note:388627.1 Type: HOWTO Last Revision Date: 02-JUN-2007 Status: MODERATED In this Document Goal Solution References[@more@]http://www.itpub.net/viewthread.php?tid=921121&extra=&highlight=%2Btolywang&page=2--------------------------------------------------------------------------------This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) Rap
Oracle 10g Automatic Undo Retention Tuning (zt)
Oracle 10g Automatic Undo Retention Tuning作者: Fenng | 可以转载, 转载时务必以超链接形式标明文章原始出处和作者信息及版权声明网址: http://www.dbanotes.net/database/oracle_10g_automatic_undo_retention_tuning.html Undo_retention Oracle 9i 开始出现新的初始化参数.Oracle 9i 的 Undo 管理特性使得 Ora-1555 错误大大减少, 但是 Undo_retention 的设置仍然会个别的时候出现问题. [@more@]http://www.dbanotes.net/database/oracle_10g_automatic_undo_retention_tuning.html Oracle 10g 有自动Automatic Undo
Oracle9.2.0.4 RAC 升级到Oracle9.2.0.7 ,LMON: terminating instance due to error 29702
.[@more@]http://www.itpub.net/viewthread.php?tid=930640&page=1&extra= Bug 4390716 Linux: "CMCLI WARNING" messages after applying 9.2.0.6 / 7 This note gives a brief overview of bug 4390716. Affects:Product (Component)Oracle Server (Rdbms)Range of versions believed to be affectedVersions >= 9.2.0.6 Versions confirmed as being affected9.2.0.6 9.2.0.7 Platforms affectedLinux 32bit It is believed to be a regression in default behaviour thus: Regression introduced in 9.2.0.6
Installing Oracle Database 10g Release 2 on Linux x86
(RHEL4 and SLES9 covered)[@more@]ContentsOverviewPart I: Installing Linux RHEL4 SLES9Part II: Configuring Linux for Oracle Verify System Requirements Create Directories Create the Oracle Groups and User Account Configure Linux Kernel Parameters Set Shell Limits for the oracle UserPart III: Installing Oracle Install the SoftwarePart IV: Configuring Storage Filesystems Automatic Storage ManagementConclusionAppendixUpdated December 2007Overview The guide provides a wal
/etc/oratab 文件用处
注释部分已经说的比较清楚 ,主要是可以设置为自动启动实例,当linux os启动的时候 。 还有DBCA的时候升级,删除数据库时找到相关实例 。 epd2db</etc>$cat oratab ## This file is used by ORACLE utilities. It is created by root.sh# and updated by the Database Configuration Assistant when creating# a database. [@more@]# A colon, ':', is used as the field terminator. A new line terminates# the entry. Lines beginning with a pound sign, '#', are comments.## Entries are of the form:# $ORACLE_SID:$OR
Oracle10g 安装
DELL PE2950 8G Mem Red Hat Linux ?セ: Red Hat Enterprise Linux AS release 4 (Nahant Update 4) Kernel 2.6.9-42.ELsmp on an x86_64 [@more@]Red Hat Enterprise Linux 4.0 U4: ゴ? binutils-2.15.92.0.2-10.EL4compat-db-4.1.25-9control-center-2.8.0-12gcc-3.4.3-9.EL4gcc-c++-3.4.3-9.EL4glibc-2.3.4-2glibc-common-2.3.4-2gnome-libs-1.4.1.2.90-44.1libstdc++-3.4.3-9.EL4libstdc++-devel-3.4.3-9.EL4make-3.80-5pdksh-5.2.14-30sysstat-5.0.5-1xscreensaver-4.18-5.rhel4.2libaio-devel-0.3.105-2.x86_64.rpm libaio-0.3.1
9207 Patchset does not contain OraCM (Oracle Cluster Manager) for RAC
Subject: 9207 Patchset does not contain OraCM (Oracle Cluster Manager) for RAC Doc ID: Note:359849.1Type: PROBLEM Last Revision Date: 20-OCT-2006Status: PUBLISHEDIn this Document Symptoms Changes Cause Solution References [@more@]Applies to: Oracle Server - Enterprise Edition - Version: 9.2.0.7.0 to 9.2.0.7.0Linux x86Oracle Cluster Manager for RAC only. (OraCM) SymptomsPatchset 9.2.0.7.0 Bug 4163445 (Unpublished Bug) does not contain the 9207 OraCM ChangesInstallation of 9.2.0.7.0 Patchset
Oracle9i DBWn 触发条件
DBWn defers writing to the data files until one of the following events occurs:[@more@]1. Incremental or normal checkpoint。2. The number of dirty buffers reaches a threshold value。3. A process scans a specified number of blocks when scanning for free buffers and cannot find any。4. Timeout occurs 。5. A ping request in Real Application Clusters (RAC) environment。6. Placing a normal or temporary tablespace offline。7. Placing a tablespace in read-only mode。8. Dropping or truncating a
dbms_stats使用
dbms_stats包问世以后,Oracle专家可通过一种简单的方式来为CBO收集统计数据。目前,已经不再推荐你使用老式的分析表和 dbms_utility方法来生成CBO统计数据。那些古老的方式甚至有可能危及SQL的性能,因为它们并非总是能够捕捉到有关表和索引的高质量信息。 CBO使用对象统计,为所有SQL语句选择最佳的执行计划。[@more@]dbms_stats能良好地估计统计数据(尤其是针对较大的分区表),并能获得更好的统计结果,最终制定出速度更快的SQL执行计划。下边给出了dbms_stats的一次示范执行情况,其中使用了options子句。execdbms_stats.g
DBMS_STATS分析表与备份分析信息
在使用DBMS_STATS分析表的时候,我们经常要保存之前的分析,以防分析后导致系统性能低下,然后进行快速恢复。首先创建一个分析表,该表是用来保存之前的分析值。[@more@]SQL> begin 2 dbms_stats.create_stat_table(ownname => 'TEST',stattab => 'STAT_TABLE'); 3 end; 4 /PL/SQL 过程已成功完成。分析表信息SQL> BEGIN 2 --DBMS_STATS.delete_table_stats(ownname => 'TEST',tabname => 'A'); 3 DBMS_STATS.gather_table_stats(ownname => 'TEST',tabname => 'A'); 4 END;
Oracle10g 输入用户名称10次密码错误,用户会锁定
当然可以更改 profile 来设置次数 。 [@more@]CREATE PROFILE DEFAULT LIMIT SESSIONS_PER_USER UNLIMITED CPU_PER_SESSION UNLIMITED CPU_PER_CALL UNLIMITED CONNECT_TIME UNLIMITED IDLE_TIME UNLIMITED LOGICAL_READS_PER_SESSION UNLIMITED LOGICAL_READS_PER_CALL UNLIMITED COMPOSITE_LIMIT UNLIMITED PRIVATE_SGA UNLIMITED FAILED_LOGIN_ATTEMPTS 10 PASSWORD_LIFE_TIME UNLIMITED PASSWORD_REUSE_TIME UNLIMITED PASSWORD_REUSE_MAX UNLIMITED PASSWORD_LOCK_TIME UNLIMITED PASSWORD_GRACE_TIME UN
Oracle10g RAC for Linux配置全过程(zt)
本文是一篇在Redhat Advance Server 3.0上安装和配置Oracle10g RAC的文档,不仅仅是个安装试验,而是一个生产系统的实际布置过程,所以包括RAC安装,本地监听配置,JDBC连接串书写,CRS服务重新安装, VIP地址修改等等,相信比一般的安装教程更有应用上的意思。[@more@]1、安装环境硬件平台:HP 380 PC服务器2台。主机 Hostname IP VIP VIP名称Node1 dbtest1 192.168.100.201 10.96.100.103 db-vip01Node2 dbtest2 192.168.100.203 10.96.100.104 db-vip02操作系统:RedHat Enterprise Linux 3.0 Update 5。磁盘阵列:HP ms1000
Step-By-Step Installation of RAC with RAW Datafiles on Windows 2000
PurposeThis document will provide the reader with step-by-step instructions on how to install and configure an Oracle9i Real Application Clusters (RAC) database using RAW Datafiles on a Windows 2000 cluster. Based on Service Request volume, this note will outline the installation of 9i Release 2 for a Windows 2000 cluster. The instructions for NT or 2003 should be similar; however the navigation within the OS may differ (i.e., Disk Management is Disk Administrator in NT). The basic principles