Skip to content

Commit e8f8c04

Browse files
committed
fix copy hist bug
1 parent bc937e7 commit e8f8c04

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

optimizer/upgrading_to_12c/duplicate/copy_hist.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ begin
4444
for t in tlist
4545
loop
4646
dbms_output.put('exec dbms_stats.set_table_prefs('''||t.owner||''','''||t.table_name||''',''METHOD_OPT'',');
47-
dbms_output.put('''FOR ALL COLUMNS SIZE 1, FOR COLUMNS ');
47+
dbms_output.put('''FOR ALL COLUMNS SIZE 1 FOR COLUMNS SIZE 254 ');
4848
tname := t.table_name;
4949
for c in collist
5050
loop
51-
dbms_output.put(c.column_name||' SIZE 254 ');
51+
dbms_output.put(c.column_name||' ');
5252
end loop;
5353
dbms_output.put(''')');
5454
dbms_output.put_line('');

optimizer/upgrading_to_12c/duplicate/copy_hist_a.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ begin
4646
for t in tlist
4747
loop
4848
dbms_output.put('exec dbms_stats.set_table_prefs('''||t.owner||''','''||t.table_name||''',''METHOD_OPT'',');
49-
dbms_output.put('''FOR ALL COLUMNS SIZE AUTO, FOR COLUMNS ');
49+
dbms_output.put('''FOR ALL COLUMNS SIZE AUTO FOR COLUMNS SIZE 254 ');
5050
tname := t.table_name;
5151
for c in collist
5252
loop
53-
dbms_output.put(c.column_name||' SIZE 254 ');
53+
dbms_output.put(c.column_name||' ');
5454
end loop;
5555
dbms_output.put(''')');
5656
dbms_output.put_line('');

0 commit comments

Comments
 (0)