楼主: liangxinf

[原创] 打开会计期慢的问题

[复制链接]
论坛徽章:
14
数据库板块每日发贴之星
日期:2005-05-15 01:01:24生肖徽章2007版:鸡
日期:2009-11-17 15:01:30生肖徽章2007版:马
日期:2009-10-22 08:53:062009新春纪念徽章
日期:2009-01-04 14:52:28数据库板块每日发贴之星
日期:2008-12-28 01:01:02ERP板块每日发贴之星
日期:2008-11-29 01:01:04数据库板块每日发贴之星
日期:2008-04-25 01:01:54生肖徽章2007版:鸡
日期:2008-01-02 17:35:53ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44会员2007贡献徽章
日期:2007-09-26 18:42:10
11#
发表于 2009-10-23 10:16 | 只看该作者
他就是,他还找谁啊?

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
12#
 楼主| 发表于 2009-10-23 10:34 | 只看该作者
呵呵,谢谢大家的关心,新的一天继续这个问题:

parallel_max_servers和GL: NUMBER OF OPEN PERIOD WORKERS都是8。

硬盘就是两个300G的硬盘做镜像。

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
13#
 楼主| 发表于 2009-10-23 10:36 | 只看该作者
CPU 8个。

System Model: IBM,9133-55A
Processor Type: PowerPC_POWER5
Processor Implementation Mode: POWER 5
Processor Version: PV_5_3
Number Of Processors: 8
Processor Clock Speed: 2097 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 06-7FE4H
Memory Size: 7936 MB
Good Memory Size: 7936 MB
Platform Firmware level: Not Available
Firmware Version: IBM,SF240_338
Console Login: enable
Auto Restart: true
Full Core: false

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
14#
 楼主| 发表于 2009-10-23 10:47 | 只看该作者
搞错了,是4cpu:
$ prtconf
System Model: IBM,9133-55A
Machine Serial Number: 067FE4H
Processor Type: PowerPC_POWER5
Processor Implementation Mode: POWER 5
Processor Version: PV_5_3
Number Of Processors: 4
Processor Clock Speed: 2097 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 06-7FE4H
Memory Size: 7936 MB
Good Memory Size: 7936 MB
Platform Firmware level: Not Available
Firmware Version: IBM,SF240_338
Console Login: enable
Auto Restart: true
Full Core: false

使用道具 举报

回复
论坛徽章:
14
数据库板块每日发贴之星
日期:2005-05-15 01:01:24生肖徽章2007版:鸡
日期:2009-11-17 15:01:30生肖徽章2007版:马
日期:2009-10-22 08:53:062009新春纪念徽章
日期:2009-01-04 14:52:28数据库板块每日发贴之星
日期:2008-12-28 01:01:02ERP板块每日发贴之星
日期:2008-11-29 01:01:04数据库板块每日发贴之星
日期:2008-04-25 01:01:54生肖徽章2007版:鸡
日期:2008-01-02 17:35:53ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44会员2007贡献徽章
日期:2007-09-26 18:42:10
15#
发表于 2009-10-23 10:57 | 只看该作者
汗,这样的机器就跑ebs啊?
太强了!

使用道具 举报

回复
论坛徽章:
14
数据库板块每日发贴之星
日期:2005-05-15 01:01:24生肖徽章2007版:鸡
日期:2009-11-17 15:01:30生肖徽章2007版:马
日期:2009-10-22 08:53:062009新春纪念徽章
日期:2009-01-04 14:52:28数据库板块每日发贴之星
日期:2008-12-28 01:01:02ERP板块每日发贴之星
日期:2008-11-29 01:01:04数据库板块每日发贴之星
日期:2008-04-25 01:01:54生肖徽章2007版:鸡
日期:2008-01-02 17:35:53ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44会员2007贡献徽章
日期:2007-09-26 18:42:10
16#
发表于 2009-10-23 11:01 | 只看该作者
你把这个请求的trace用tkprof格式化下,然后贴出来!

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
17#
 楼主| 发表于 2009-10-23 11:22 | 只看该作者
这几天没做trace,下面的是前段时间的文档,使用的命令为:
tkprof <filename.trc> <output_filename> sys=no explain=apps/<password>

sort='(prsela,exeela,fchela)'


TKPROF: Release 10.1.0.5.0 - Production on Tue Oct 20 11:57:58 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Trace file: prod_ora_1232984_ANONYMOUS.trc
Sort options: prsela  exeela  fchela  
********************************************************************************
count    = number of times OCI procedure was executed
cpu      = cpu time in seconds executing
elapsed  = elapsed time in seconds executing
disk     = number of physical reads of buffers from disk
query    = number of buffers gotten for consistent read
current  = number of buffers gotten in current mode (usually for update)
rows     = number of rows processed by the fetch or execute call
********************************************************************************

insert /*+ parallel(a,8) */ into gl_balances a
        (code_combination_id,
         period_name,
         set_of_books_id,
         currency_code,
         period_year,
         period_num,
         period_type,
         actual_flag,
         last_updated_by,
         last_update_date,
         translated_flag,
         period_net_dr,
         period_net_cr,
         period_net_dr_beq,
         period_net_cr_beq,
         quarter_to_date_dr,
         quarter_to_date_cr,
         project_to_date_dr,
         project_to_date_cr,
         begin_balance_dr,
         begin_balance_cr,
         begin_balance_dr_beq,
         begin_balance_cr_beq,
         quarter_to_date_dr_beq,
         quarter_to_date_cr_beq,
         project_to_date_dr_beq,
         project_to_date_cr_beq,
         template_id)
  select /*+ parallel(b,8) */ code_combination_id,
           period_name,
           set_of_books_id,
           currency_code,
           period_year,
           period_num,
           period_type,
           actual_flag,
1110,
           sysdate,
           decode(currency_code,'RMB',NULL,'STAT',NULL,'R'),
           0,0,0,0,
           quarter_to_date_dr,
           quarter_to_date_cr,
           project_to_date_dr,
           project_to_date_cr,
           begin_balance_dr,
           begin_balance_cr,
           decode(currency_code,'STAT',0,begin_balance_dr_beq),
           decode(currency_code,'STAT',0,begin_balance_cr_beq),
           quarter_to_date_dr_beq,
           quarter_to_date_cr_beq,
           project_to_date_dr_beq,
           project_to_date_cr_beq,
           template_id
    from   gl_open_interim b

call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1      0.01       0.00          0          0          0           0
Execute      1      0.21    1828.22         78        259        198      284349
Fetch        0      0.00       0.00          0          0          0           0
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        2      0.22    1828.22         78        259        198      284349

Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: 44  (HXT)

Rows     Row Source Operation
-------  ---------------------------------------------------
      0  INDEX MAINTENANCE  (object id 0)
      0   LOAD AS SELECT  
      0    TABLE ACCESS FULL GL_OPEN_INTERIM

error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist

parse error offset: 1439
********************************************************************************

insert into gl_open_interim       (code_combination_id, period_name,      
  set_of_books_id,     currency_code,       period_year,         period_num,  
       period_type,       actual_flag, translated_flag,        period_net_dr,
        period_net_cr,    period_net_dr_beq,     period_net_cr_beq,      
  quarter_to_date_dr,  quarter_to_date_cr,       project_to_date_dr,  
  project_to_date_cr,       begin_balance_dr,    begin_balance_cr,      
  begin_balance_dr_beq,    begin_balance_cr_beq,       template_id) select
  b.code_combination_id,         decode(b.set_of_books_id ,              2002,
   '2009-09-23', 'ERROR'),       b.set_of_books_id,       b.currency_code,   
       decode(b.set_of_books_id,              2002, 2009 ,-1),         
  decode(b.set_of_books_id,               2002, 266 ,-1),         
  decode(b.set_of_books_id,              2002, '43' ,'ERROR'),      
  b.actual_flag,decode(b.set_of_books_id,2002,decode(b.currency_code,'RMB',
  NULL,'STAT',NULL,'R'),0),       0 , 0,0,0,         decode(b.set_of_books_id
  ,              2002, nvl(b.quarter_to_date_dr,0) + nvl(b.period_net_dr,0) ,
  -1),         decode(b.set_of_books_id,              2002,
  nvl(b.quarter_to_date_cr,0) + nvl(b.period_net_cr,0) ,-1),
  nvl(b.project_to_date_dr,0) + nvl(b.period_net_dr,0),
  nvl(b.project_to_date_cr,0) + nvl(b.period_net_cr,0),
  nvl(b.begin_balance_dr,0) + nvl(b.period_net_dr,0),  nvl(b.begin_balance_cr,
  0) + nvl(b.period_net_cr,0), decode(b.set_of_books_id,2002,
  decode(b.currency_code,'STAT',0,nvl(b.begin_balance_dr_beq,0)
  +nvl(b.period_net_dr_beq,0)),0),decode(b.set_of_books_id,2002,
  decode(b.currency_code,'STAT',0,nvl(b.begin_balance_cr_beq,0)
  +nvl(b.period_net_cr_beq,0)),0),      b.template_id from   gl_balances b,   
       gl_sets_of_books sob  where  b.actual_flag     = 'A'  and  (
  b.currency_code in (sob.currency_code,'STAT')      or translated_flag='R' )
   and    b.set_of_books_id = sob.set_of_books_id  and    b.period_name     =
  sob.latest_opened_period_name  and    (sob.set_of_books_id = 2002 )



call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1      0.02       0.01          0          0          0           0
Execute      1     15.42     123.94      88065     113785    1030900      284349
Fetch        0      0.00       0.00          0          0          0           0
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        2     15.44     123.95      88065     113785    1030900      284349

Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: 44  (HXT)

Rows     Row Source Operation
-------  ---------------------------------------------------
284349  NESTED LOOPS  
      1   TABLE ACCESS BY INDEX ROWID GL_SETS_OF_BOOKS
      1    INDEX UNIQUE SCAN GL_SETS_OF_BOOKS_U2 (object id 48849)
284349   PARTITION RANGE ITERATOR PARTITION: KEY KEY
284349    TABLE ACCESS FULL GL_BALANCES PARTITION: KEY KEY

error during execute of EXPLAIN PLAN statement
ORA-00904: "B"."SET_OF_BOOKS_ID": invalid identifier

parse error offset: 1928
********************************************************************************

update gl_concurrency_control  set concurrency_entity_id=to_char((-1))
where
(concurrency_class='OPEN_PERIOD' and concurrency_entity_name=:b0)


call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1      0.00       0.00          0          0          0           0
Execute      1      0.00       3.65          2          1          5           1
Fetch        0      0.00       0.00          0          0          0           0
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        2      0.00       3.65          2          1          5           1

Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: 44  (HXT)

Rows     Row Source Operation
-------  ---------------------------------------------------
      0  UPDATE  
      1   INDEX RANGE SCAN GL_CONCURRENCY_CONTROL_U1 (object id 45851)


Rows     Execution Plan
-------  ---------------------------------------------------
      0  UPDATE STATEMENT   MODE: CHOOSE
      0   UPDATE OF 'GL_CONCURRENCY_CONTROL'
      1    INDEX   MODE: ANALYZED (RANGE SCAN) OF
               'GL_CONCURRENCY_CONTROL_U1' (INDEX (UNIQUE))

********************************************************************************

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
18#
 楼主| 发表于 2009-10-23 11:26 | 只看该作者

回复 #15 remen 的帖子

谢谢remen,这样的硬件跑ebs应该可以了吧,毕竟在线用户最多50来人。

使用道具 举报

回复
论坛徽章:
14
数据库板块每日发贴之星
日期:2005-05-15 01:01:24生肖徽章2007版:鸡
日期:2009-11-17 15:01:30生肖徽章2007版:马
日期:2009-10-22 08:53:062009新春纪念徽章
日期:2009-01-04 14:52:28数据库板块每日发贴之星
日期:2008-12-28 01:01:02ERP板块每日发贴之星
日期:2008-11-29 01:01:04数据库板块每日发贴之星
日期:2008-04-25 01:01:54生肖徽章2007版:鸡
日期:2008-01-02 17:35:53ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44会员2007贡献徽章
日期:2007-09-26 18:42:10
19#
发表于 2009-10-23 11:56 | 只看该作者
select /*+ parallel(b,8) */ code_combination_id,
           period_name,
           set_of_books_id,
           currency_code,
           period_year,
           period_num,
           period_type,
           actual_flag,
1110,
           sysdate,
           decode(currency_code,'RMB',NULL,'STAT',NULL,'R'),
           0,0,0,0,
           quarter_to_date_dr,
           quarter_to_date_cr,
           project_to_date_dr,
           project_to_date_cr,
           begin_balance_dr,
           begin_balance_cr,
           decode(currency_code,'STAT',0,begin_balance_dr_beq),
           decode(currency_code,'STAT',0,begin_balance_cr_beq),
           quarter_to_date_dr_beq,
           quarter_to_date_cr_beq,
           project_to_date_dr_beq,
           project_to_date_cr_beq,
           template_id
    from   gl_open_interim b
这个是关键,这个表很大吗?

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
20#
 楼主| 发表于 2009-10-23 12:46 | 只看该作者
gl_open_interim是临时表,跑打开会计期时会先将数据插入到该表,然后再导入到余额表中。
gl_open_interim平时没有数据。

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表