2007 年 09 月 12日, 星期三
什么是EBS 中的业务实体
今天一测试环境不能登录,报
Oracle error -20001: ORA-20001: FND-ORG_ID PROFILE CANNOT READ: N, OPTION, MO: Operating Unit has been detected in FND_GLOBAL.INITIALIZE. 的错误,通过 metalink 上查到一解决办法:
2007 年 03 月 27日, 星期二
怎么样Red Hat AD 4.0 32 bit 中实现 ORACLE SGA 突破2G
% cp ksms.s ksms.s_orig
% genksms -s 0x15000000 > ksms.s
% make -f ins_rdbms.mk ksms.o
% make -f ins_rdbms.mk ioracle
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
SQL>
SQL> show sga
Fixed Size 454472 bytes
Variable Size 402653184 bytes
Database Buffers 2063597568 bytes
Redo Buffers 10629120 bytes
2006 年 06 月 14日, 星期三
因字符集问题出现的SQL不能用索引
2006-06-05日早上7:20左右客户机房因UPS故障,导致全部业务系统宕机。数据库起来后开发人员反映,在系统中有些SQL语句不能用到索引。后来查出是因为字符集的错误导致。
查看全文2005 年 08 月 03日, 星期三
AIX - 32bit vs 64bit 225551.1 (Metalink)
To provide a list of commands for DBA's to determine if a 32-bit or 64-bitapplication can be installed successfully on AIX 4.3.3 and AIX 5L
SCOPE & APPLICATION
-------------------
Oracle DBA's and UNIX Sys Admins
Verify the following for an application installation on AIX servers:
32-bit or 64-bit:
Application
Operating System
Kernel
Hardware 查看全文
2005 年 06 月 08日, 星期三
测试 磁盘 I/O 吞吐量
Here is an easy solution to determine the time (and throughput) on how long it would take to write 1GB of data to a file. Keep in mind that you will also want to perform (and time) a sync after the write has completed:# rm -f /u07/app/test/gigfile # sync; time dd ibs=1048576 obs=1048576 count=1024 if=/dev/zero of=/u07/app/test/gigfile 1024+0 records in 1024+0 records out real 0m36.41s user 0m13.36s sys 0m17.73s # time sync real 0m0.15s user 0m0.00s sys 0m0.04sFrom the above, we can estimate that I am getting roughly 28.01 MB/sec.
1024 MB / (36.41 + 0.15) (s) = 28.01 MB/sec.查看全文
2005 年 05 月 04日, 星期三
记一次面试的经历
四月下旬,有一家公司约去面试,定在下午 4点,我去了以后先在门卫那里填了一张介绍自己基本情况的表格,填表花了我十几分钟,还好那保安是老乡,对我还算客气,还帮我倒了一杯水。然后进去见到了管系统的经理,先没说什么,拿出三张试题给我去做,那里面的题目都很基本,有一些是操作系统的基本命令,一些数据库的基本慨念和基本语法,但做题的时候感觉对很多语法都记得不是很清楚,特别是有一个题目是建分区表的,居然不知道建分区表的语法。后来我直接和那位经理说,我有很多语法记得不是很清楚,他说,语法上没什么大的问题,最重要的是要将步骤写下来。接下来就谈了一会儿,我在原来公司的一些情况,我想可能他们现在正想做一个容灾的项目,对这方面情况。有几年没有面试的经历了,感觉自己和他谈的时候没怎么放开,有很多本来自己知道的,但没有讲出来。总的来说,对这次面试自己的表现不是很满意,效果不是很好,希望下次面试时自己表现好一些。祝自己好运!
2005 年 04 月 02日, 星期六
公司要搬家了
上次开会,老总正式在会上提出,要将系统搬到广东一个偏远的地方去,因我们公司的工厂已搬过去了,那里我去过一次,因为是刚开始开发,自然环境比这边要好,但交通不方便。现在正在做搬迁计划。2005 年 03 月 18日, 星期五
怎么样通过 file# 和block# 找到 对应的 segment
SELECT owner , segment_name , segment_typeFROM dba_extents
WHERE file_id = &AFN
AND &BLOCKNO BETWEEN block_id AND block_id + blocks -1
2005 年 03 月 03日, 星期四
AIX 系统中的 CPU 性能监视 (转至 IBM 网站)
处理单元是系统中最快的组件之一。在某一时间对单个程序来说保持 100% 的 CPU 占用率(也就是说,空闲 0%,等待 0%)超过几秒钟是相对少见的。甚至在重负载的多用户系统中,偶尔会出现一些 10 毫秒(ms)的时间段,在其结束时所有线程处于等待状态。如果监视器长时间地显示 CPU 占用率为 100%,则很有可能是某个程序陷入了死循环。即使程序“仅仅”是占用较多资源而不是崩溃了,也需要将它识别出来并进行处理。
查看全文2005 年 01 月 23日, 星期日
最近整理了将几篇有关 ERP 优化方面的文档
最近整理了将几篇有关 ERP 优化方面的文档,个人感觉这几篇文章,都是从系统的角度去看问题。说明了系统优化的一般方法,实用于是把 Oracle 放在一个真实的环境中,解决是现实情况中会发生的问题。当然在这一个层次说,主要着重于问题发生了,怎么样解决问题的方法,没有提到避免问题发生上来。
2005 年 01 月 22日, 星期六
转载的一篇文章 TUNING ORACLE WITHOUT CACHE-HIT RATIOS
TUNING ORACLE WITHOUT CACHE-HIT RATIOS
|
2005 年 01 月 15日, 星期六
How to Identify Resource Intensive SQL for Tuning
Doc ID: Note:232443.1
Subject: How to Identify Resource Intensive SQL for Tuning
Type: TROUBLESHOOTING
Status: PUBLISHED
Content Type: TEXT/X-HTML
Creation Date: 14-MAR-2003
Last Revision Date: 16-APR-2004
PURPOSE
This article provides guidance on how to identify the most resource intensive SQL statements in a database for tuning purposes.
SCOPE & APPLICATION
The techniques described here can be used when initial diagnosis of a database performance problem suggests that further investigation needs to concentrate on finding and tuning the most resource intensive SQL statements according to specific criteria, e.g.
using the most CPU
performing the most disk I/O operations
having the most executions
taking the longest time to execute (elapsed time)
The article should be of use to Database Administrators, Support Engineers, Consultants and Database Performance Analysts.
Interpreting HANGANALYZE trace files to diagnose hanging and performance problems
|
|
PURPOSE
This article explains how to use the HANGANALYZE utility to diagnose hanging issues in Oracle Databases.
How to Perform a Healthcheck on the Database
|
|
Table of Contents查看全文-----------------
1. Introduction
2. Init
.ora 3. Controlfiles
4. Redolog files
5. Archiving
6. Sort area size
7. Tablespaces
7.1 System Tablespace
7.2 Temporary Tablespace
7.3 Tablespace Fragmentation
8. Datafiles
8.1 Autoextend
8.2 Locations
9. Objects
9.1 Number of Extents
9.2 Next extent
9.3 Indexes
10. Rollback Segments
11. Logging & Tracing
11.1 Alert File
11.2 Max_dump_file_size
11.3 Sqlnet
1. Introduction
---------------
This article explains how to perform a health check on the database. General
guidelines are given on what areas to investigate to get a better overview on
how the database is working and evolving. These guidelines will reveal common
issues regarding configuration as well as problems that may occur in the future.
The areas investigated here are mostly based on scripts and are brought to you
without any warranty, these scripts may need to be adapted for next database
releases and features. This article will probably need to be extended to serve
specific application needs/checks.
Although some performance areas are discussed in this article, it is not the
intention of this article to give a full detailed explanation of optimizing the
database performance. If this is required, then the following notes can be
addressed:
[NOTE:62161.1] Systemwide Tuning using UTLESTAT Reports in Oracle7/8
[NOTE:106285.1] Troubleshooting Guide Common Performance Tuning Issues