exec dbms_stats.gather_table_stats(ownname=>’SCOTT’,tabname=>’TEST′,method_opt=>’for columns size 40 USER_ID‘,estimate_percent=>100);
Alter session set current_schema=xxx
exec dbms_stats.gather_table_stats(ownname=>’SCOTT’,tabname=>’TEST′,method_opt=>’for columns size 40 USER_ID‘,estimate_percent=>100);
Alter session set current_schema=xxx