The Same Query Returns Random Number of Rows
symptom: The same query returns random number of rowssymptom: ROWNUM clause is usedsymptom: DISTINCT clause is usedcause: A query with both ROWNUM and DISTINCT clauses, e.g.select DISTINCT columns fro...
关于listener 案例_1
lsnrctl start 出现以下错误:TNS-12557: TNS:protocol adapter not loadableTNS-12560: TNS:protocol adapter errorTNS-00527: Protocol Adapter not loadable~~~~~~~~~~~~~~~~~~~~~~~~~...
关于listener 案例_2
lstener start 出现如下错误:LSNRCTL> start启动tnslsnr: 请稍候...TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production系统参数文件为e:oracleproduct10.1.0db_1 etworkadminlistener.ora写入e:oraclepr...
关于listener 案例_4
Starting 2nd Listener on UNIX Yields ORA-12545 OS error; "Permission Denied"Problem Description-------------------You have created a second Oracle listener on a UNIX server and cannot start it.Issuing...
做完SYSTEM DEBUG 记得关哦
今天作一个trace想跟踪一个问题,做完去找我做的trace文件时,无意中在udump 目录下看到另一个trace文件有几十M,进去一看oracle从5月24号就开始往里写内容了,内容都是:Probe:read_pipe: receive failed, status 3P...
关于listener 案例_5
symptom: TNS Listener does not startsymptom: TNS-12541 / ORA-12541: TNS:no listenersymptom: TNS-12560 / ORA-12560: TNS:protocol adapter errorsymptom: TNS-00511: No listenersymptom: IBM/AIX RISC System...
Several reasons for using varchar2 instead of char:
Several reasons for using varchar2 instead of char: 1. char (xx) will always rpad data with blanks. This is a guarantee for surprises when comparing data and using indexes for searches because implici...
磁碟效能大檢視(摘自HP ITRC)
磁碟是電腦主機系統不可或缺的一部份,也是影響咦餍?艿囊淮箨P鍵,要把系統調的跑的又快又穩,硬碟絕對是一大要角,因為通常只要看到硬碟滿載的系統大概都跑不快的。所以現在大部分的應用系統與資料庫資料也大多會...
db_block_checking & db_block_checksum
The former (DB_BLOCK_CHECKSUM) is useful if you suspect that something might be corrupting a database block while it is residing on disk. The checksum is calculated by the writing process (i.e. DBWR) ...
ONLINE CREATE INDEX 遇到BUG
Bug 3566511 - ONLINE index rebuild can cause DML sessions to hang.Doc ID: Note:3566511.8 Bug 3315378 - A blocked ONLINE index rebuild can cause other DML to hangDoc ID: Note:3315378.8
用PERL 监控公司所有DB TABLESPACE 使用情况
起因:因公司DB过多,每个都要设置TABLESPACE 使用量,原先的做法是每台都COPY SCRIPTS 和设置 CRONT JOB.和SENDMAIL,并且一天有时候警告邮件很多比较烦。想在一台设置一个CRON JOB 固定每小时去CHECK一次所有的DB的...
使用PERL 收集各DB SEGMENT 增长情况信息
我的第二个PERL 程式,依葫芦画瓢。监控SEGMENT 增长情况也是DBA 日常工作中的一项,下面这个PERL 写的SCRIPT 可以实现。#!/usr/bin/perl -wuse strict;use DBI qw(:sql_types);$ENV{"ORACLE_HOME"} = "/opt/oracle/...
ftp 自動登入的方法:
# 版權宣告: 1999 Copyright OLS3 All rights reserved.# 作者: OLS3 (臥龍小三)ftp 自動登入的方法:ftp client 會檢查自家目錄中是否有 .netrc.netrc 的格式如下:host login USERNAME password Your@email例:defaul...
转:scn号与恢复研究 (来自it168 作者:itpub flyinfj )
scn号与oracle数据库恢复过程有着密切的关系,只有很好地理解了这层关系,才能深刻地理解恢复的原理,从而才能很好地解决这方面的问题。一。SCN与CHECKPOINT CKPT进程在checkpoint发生时,将当时的SCN号写入数据...
Selecting Nth MAX or MIN
This Select query will help you select the Nth Max or Min value from any table. For example, consider a table TAB1 in which you want to find the Nth Max or Min from the column, COL1. First, the query ...
Identify Tables That Need Space
This tip lets you identify tables that need more than a specified amount of space. This example uses a size of 1GB. SELECT segment_type, SUBSTR (segment_name, 1, 30),SUBSTR (tablespace_name, 1, 30),...
Install Oracle RAC on Linux guid
http://www.oracle.com/technology/global/cn/pub/articles/smiley_rac10g_install.html
转:使用 sed 编辑器
作者:Emmett Dulaney sed 编辑器是 Linux 系统管理员的工具包中最有用的资产之一,因此,有必要彻底地了解其应用 Linux 操作系统最大的一个好处是它带有各种各样的实用工具。存在如此之多不同的实用工具,几乎不可...
转:AWK:Linux 管理员的智能工具包
作者 Emmett Dulaney 您正在学习 Linux 吗?本文对于非常有用的 AWK 文本操作工具进行了介绍,非常有价值。 AWK 实用工具带有其自己的自包含语言,它不仅是 Linux 中也是任何环境中现有的功能最强大的数据处理引擎之...
dbi checking
#!/usr/bin/perl -wuse warnings;use strict;use DBI;my @databases = ('STUDY','XHL');my ($username, $password) = ('SYSTEM','XHL'); foreach my $db ( @databases ) { print "checking $db n";...