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 上查到一解决办法:

 查看全文
swinger 发表于:2007.09.12 17:22 ::分类: ( Oracle erp ) ::阅读:(116次) :: 评论 (0) :: 引用 (0)

2007 年 03 月 27日, 星期二

怎么样Red Hat AD 4.0 32 bit 中实现 ORACLE SGA 突破2G

今天为一客户安装一ORACLE EBS ,它的硬件是基于HP的PC Server,OS是 RedHat AD4.0
EBS 是 11.5.10。2,它有两台机器,一台DB Server,另一台Application Server 配置一样,都有4G 的MEM,所以我想让它的Oracle 能够多一些的使用内存,就将SGA调到2.4G。在系统默认情况下,直接修改会出 ORA-27123: unable to attach to shared memory segment 的错,我在Metalink上找了一些资料,按以下的步骤可以实现。
具体步骤如下:
1,修改 Linux的Kernel参数(在安装系统时已有要求),修改需要重启操作系统才能生效。
kernel.sem = 250 32000 100 150
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.shmseg = 4096
kernel.shmall = 3279547
fs.file-max = 327679
kernel.msgmni = 2878
kernel.msgmnb = 360000
2,重新生成 Oracle 文件
% cd $ORACLE_HOME/rdbms/lib
% cp ksms.s ksms.s_orig
% genksms -s 0x15000000 > ksms.s
% make -f ins_rdbms.mk ksms.o
% make -f ins_rdbms.mk ioracle
3, 修该初始化参数。
结果如下:
SQL*Plus: Release 9.2.0.6.0 - Production on Thu Oct 19 16:03:31 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

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>
SQL> show sga
Total System Global Area 2477334344 bytes
Fixed Size 454472 bytes
Variable Size 402653184 bytes
Database Buffers 2063597568 bytes
Redo Buffers 10629120 bytes

swinger 发表于:2007.03.27 14:16 ::分类: ( Oracle dba 技术 ) ::阅读:(271次) :: 评论 (1) :: 引用 (0)

2006 年 06 月 14日, 星期三

因字符集问题出现的SQL不能用索引

2006-06-05日早上7:20左右客户机房因UPS故障,导致全部业务系统宕机。数据库起来后开发人员反映,在系统中有些SQL语句不能用到索引。后来查出是因为字符集的错误导致。

 查看全文
swinger 发表于:2006.06.14 10:09 ::分类: ( Oracle dba 技术 ) ::阅读:(316次) :: 评论 (0) :: 引用 (0)

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-bit
application 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 查看全文
swinger 发表于:2005.08.03 14:39 ::分类: ( AIX 技术 ) ::阅读:(402次) :: 评论 (0) :: 引用 (0)

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.04s
From 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.
 查看全文
swinger 发表于:2005.06.08 11:40 ::分类: ( AIX 技术 ) ::阅读:(467次) :: 评论 (2) :: 引用 (0)

2005 年 05 月 04日, 星期三

记一次面试的经历

  四月下旬,有一家公司约去面试,定在下午 4点,我去了以后先在门卫那里填了一张介绍自己基本情况的表格,填表花了我十几分钟,还好那保安是老乡,对我还算客气,还帮我倒了一杯水。然后进去见到了管系统的经理,先没说什么,拿出三张试题给我去做,那里面的题目都很基本,有一些是操作系统的基本命令,一些数据库的基本慨念和基本语法,但做题的时候感觉对很多语法都记得不是很清楚,特别是有一个题目是建分区表的,居然不知道建分区表的语法。后来我直接和那位经理说,我有很多语法记得不是很清楚,他说,语法上没什么大的问题,最重要的是要将步骤写下来。接下来就谈了一会儿,我在原来公司的一些情况,我想可能他们现在正想做一个容灾的项目,对这方面情况。有几年没有面试的经历了,感觉自己和他谈的时候没怎么放开,有很多本来自己知道的,但没有讲出来。总的来说,对这次面试自己的表现不是很满意,效果不是很好,希望下次面试时自己表现好一些。祝自己好运!


swinger 发表于:2005.05.04 23:12 ::分类: ( 我自已的故事 ) ::阅读:(432次) :: 评论 (0) :: 引用 (0)

2005 年 04 月 02日, 星期六

公司要搬家了

 上次开会,老总正式在会上提出,要将系统搬到广东一个偏远的地方去,因我们公司的工厂已搬过去了,那里我去过一次,因为是刚开始开发,自然环境比这边要好,但交通不方便。现在正在做搬迁计划。

swinger 发表于:2005.04.02 10:42 ::分类: ( 我自已的故事 ) ::阅读:(416次) :: 评论 (0) :: 引用 (0)

2005 年 03 月 18日, 星期五

怎么样通过 file# 和block# 找到 对应的 segment

SELECT  owner , segment_name , segment_type
    FROM  dba_extents
   WHERE  file_id = &AFN
     AND  &BLOCKNO BETWEEN block_id AND block_id + blocks -1

swinger 发表于:2005.03.18 16:22 ::分类: ( Oracle dba 技术 ) ::阅读:(524次) :: 评论 (0) :: 引用 (0)

2005 年 03 月 03日, 星期四

AIX 系统中的 CPU 性能监视 (转至 IBM 网站)

  处理单元是系统中最快的组件之一。在某一时间对单个程序来说保持 100% 的 CPU 占用率(也就是说,空闲 0%,等待 0%)超过几秒钟是相对少见的。甚至在重负载的多用户系统中,偶尔会出现一些 10 毫秒(ms)的时间段,在其结束时所有线程处于等待状态。如果监视器长时间地显示 CPU 占用率为 100%,则很有可能是某个程序陷入了死循环。即使程序“仅仅”是占用较多资源而不是崩溃了,也需要将它识别出来并进行处理。

 查看全文
swinger 发表于:2005.03.03 08:52 ::分类: ( AIX 技术 ) ::阅读:(528次) :: 评论 (0) :: 引用 (0)

2005 年 01 月 23日, 星期日

最近整理了将几篇有关 ERP 优化方面的文档

 最近整理了将几篇有关 ERP 优化方面的文档,个人感觉这几篇文章,都是从系统的角度去看问题。说明了系统优化的一般方法,实用于是把 Oracle 放在一个真实的环境中,解决是现实情况中会发生的问题。当然在这一个层次说,主要着重于问题发生了,怎么样解决问题的方法,没有提到避免问题发生上来。

  


swinger 发表于:2005.01.23 15:35 ::分类: ( 我自已的故事 ) ::阅读:(532次) :: 评论 (1) :: 引用 (0)

2005 年 01 月 22日, 星期六

转载的一篇文章 TUNING ORACLE WITHOUT CACHE-HIT RATIOS

TUNING ORACLE WITHOUT CACHE-HIT RATIOS


Reprinted with Permission by Quest Software April 2002

 查看全文
swinger 发表于:2005.01.22 11:44 ::分类: ( Oracle dba 技术 ) ::阅读:(2934次) :: 评论 (485) :: 引用 (0)

记录操作系统性能的一个Script

我日常会用来收集系统运行信息的脚本。

 查看全文
swinger 发表于:2005.01.22 11:40 ::分类: ( Oracle dba 技术 ) ::阅读:(444次) :: 评论 (0) :: 引用 (0)

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.

 查看全文
swinger 发表于:2005.01.15 12:44 ::分类: ( Oracle dba 技术 ) ::阅读:(1628次) :: 评论 (6) :: 引用 (0)

Interpreting HANGANALYZE trace files to diagnose hanging and performance problems

Doc ID: Note:215858.1
Subject: Interpreting HANGANALYZE trace files to diagnose hanging and performance problems
Type: BULLETIN
Status: PUBLISHED
Content Type: TEXT/X-HTML
Creation Date: 23-OCT-2002
Last Revision Date: 31-OCT-2002

PURPOSE

This article explains how to use the HANGANALYZE utility to diagnose hanging issues in Oracle Databases.

 查看全文
swinger 发表于:2005.01.15 12:31 ::分类: ( Oracle dba 技术 ) ::阅读:(482次) :: 评论 (0) :: 引用 (0)

How to Perform a Healthcheck on the Database

Doc ID: Note:122669.1
Subject: How to Perform a Healthcheck on the Database
Type: BULLETIN
Status: PUBLISHED
Content Type: TEXT/PLAIN
Creation Date: 20-OCT-2000
Last Revision Date: 26-JUN-2001
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

 查看全文
swinger 发表于:2005.01.15 12:24 ::分类: ( Oracle dba 技术 ) ::阅读:(550次) :: 评论 (0) :: 引用 (0)