select null as sc,
null as mc,
'<a href="CardPage.aspx?PU=466333&&PKValue=' || YW_BM ||
'" target=cardframe><img src=../css/edit.gif border=0></a>' as edit,
null as del,
NULL as xh,
IO_BUSINESS_TB.YW_BM as YW_BM,
IO_BUSINESS_TB.CLIENT_ID1 as CLIENT_ID1,
IO_BUSINESS_TB.CLIENT_ID2 as CLIENT_ID2,
IO_BUSINESS_TB.YW_LCSJ as YW_LCSJ,
IO_BUSINESS_TB.FLAG as FLAG,
IO_BUSINESS_TB.YW_SENDMES as YW_SENDMES,
IO_BUSINESS_TB.YW_ISJF as YW_ISJF,
IO_BUSINESS_TB.YW_YGL as YW_YGL,
IO_BUSINESS_TB.YW_QCL as YW_QCL,
IO_BUSINESS_TB.YW_GHL as YW_GHL,
S.G_ID as G_ID,
S.SF_GQL as SF_GQL,
S.SF_GHL as SF_GHL,
(SF_GHL - SF_GQL) as SF_GBHL,
S.SF_JSL as SF_JSL,
IO_BUSINESS_TB.IO_JCCBJ as IO_JCCBJ,
IO_BUSINESS_TB.JSFS_ID as JSFS_ID,
IO_BUSINESS_TB.U_CREATOR as U_CREATOR,
j.DBTIME as DBTIME,
j.YSBL as YSBL,
j.QRBL as QRBL,
null as BHL,
null as QRRQ,
null as XS,
j.bcb_bj as BCBBJ1
from JL_SF_TB S, IO_BUSINESS_TB, jl_bcb_tb j
Where 1 = 1
and JSFS_ID = 202
and s.sfyw_id = IO_BUSINESS_TB.yw_bm
and IO_business_tb.yw_bm = j.sfyw_bm
and j.dbtime =
trunc(to_date('2012-04-25 16:36:18', 'yyyy-mm-dd hh24:mi:ss'),
'hh24')
此語句在數據庫中正常,但是在Pu中報錯 :ORA-00600: 參數
解決辦法:
首先把用到的三個表,進行如下操作
begin
dbms_stats.delete_table_stats(user,'jl_bcb_tb',cascade_columns => true,cascade_indexes => true );
end;
begin
dbms_stats.delete_table_stats(user,'JL_SF_TB',cascade_columns => true,cascade_indexes => true );
end;
begin
dbms_stats.delete_table_stats(user,'IO_BUSINESS_TB',cascade_columns => true,cascade_indexes => true );
end;
然後,再進行如下操作:
begin
dbms_stats.gather_table_stats(user,'jl_bcb_tb',method_opt => 'for all indexed columns size 30',
estimate_percent => dbms_stats.auto_sample_size,cascade => true );
end;
begin
dbms_stats.gather_table_stats(user,'JL_SF_TB',method_opt => 'for all indexed columns size 30',
estimate_percent => dbms_stats.auto_sample_size,cascade => true );
end;
begin
dbms_stats.gather_table_stats(user,'IO_BUSINESS_TB',method_opt => 'for all indexed columns size 30',
estimate_percent => dbms_stats.auto_sample_size,cascade => true );
end;