Thursday, January 28, 2021
ora-27452 ora-00972
Thursday, January 14, 2021
ORA-29273 ORA-06512 ORA-29263 HTTP protocol error
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1722
ORA-29263: HTTP protocol error
following run
select utl_http.request('http://192.168.100.85/hii1111111111111111111111111111111111111111111111111111111111111111111188888888888888888888888888888888888888888888888888888888888888888888888888999999999999999999999999999999999999999999999999999999999999999999999999999999998888888888888888888888888888888888888888888899999999999999999999999999999999999999999999999999999999999999999999999999999999888888888888888888888888888888888888888888889999999999999999999999999999999999999999999999999999999999999999999999999999999988888888888888888888888888888888888888888888999999999999999999999999999999999999999999999999999999999999999999999999999999998888888888888888888888888888888888888888888899999999999999999999999999999999999999999999999999999999999999999999999999999999888888888888888888888888888888888888888888889999999999999999999999999999999999999999999999999999999999999999999999999999999988888888888888888888888888888888888888888888999999999999999999999999999999999999999999999999999999999999999999999999999999998888888888888888888888888888888888888888888899999999999999999999999999999999999999999999999999999999999999999999999999999999iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii7777766666iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiuiuu') from dual;
following give error - ORA-29273 ORA-06512 ORA-29263 HTTP protocol error because of enter line character
select utl_http.request('http://192.168.100.85/hii111111111111111111111111111111111111111111111111111111111111111111118888888888888888888888888888888888888888888888888888888888888888888888888899999999999999999999999999999999999999999999999999999999999999999999999999999999888888888888888888888888888888888888888888889999999999999999999999999999999999999999999999999999999999999999999999999999999988888888888888888888888888888888888888888888999999999999999999999999999999999999999999999999999999999999999999999999999999998888888888888888888888888888888888888888888899999999999999999999999999999999999999999999999999999999999999999999999999999999888888888888888888888888888888888888888888889999999999999999999999999999999999999999999999999999999999999999999999999999999988888888888888888888888888888888888888888888999999999999999999999999999999999999999999999999999999999999999999999999999999998888888888888888888888888888888888888888888899999999999999999999999999999999999999999999999999999999999999999999999999999999888888888888888888888888888888888888888888889
9999999999999999999999999999999999999999999999999999999999999999999999999999999iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii7777766666iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiuiuu') from dual;
Wednesday, September 23, 2020
private dblink
Friday, September 18, 2020
Calculating ages in years
Monday, September 14, 2020
Gather Stats of Table Partition Latest/Current Month Partition
BEGIN
FOR CUR_REC IN (select * from (select table_owner,table_name,partition_name,partition_position,last_analyzed from dba_tab_partitions where table_name ='POWEROFATTORNEYSTOCKS' order by partition_position desc) where rownum=1) LOOP
BEGIN
EXECUTE IMMEDIATE 'begin dbms_stats.gather_table_stats(ownname =>''LDBO'' ,Tabname =>''' || cur_rec.table_name || ''',Partname =>''' || cur_rec.partition_Name || ''',cascade => true, DEGREE=>DBMS_STATS.DEFAULT_DEGREE); end;';
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
END LOOP;
END;
/
Kill Third Party Tool Like PLSQL Developer Session
BEGIN
FOR CUR_REC IN (select ss.username,ss.terminal,ss.sid,ss.serial#,ss.inst_id from gv$session ss where module='PL/SQL Developer') LOOP
BEGIN
EXECUTE IMMEDIATE 'alter system disconnect session''' || CUR_REC.sid || ',' || CUR_REC.serial# || ',@' || CUR_REC.inst_id || ''' immediate';
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
END LOOP;
END;
/
Thursday, August 27, 2020
ORA-12018: following error encountered during code generation for ..ORA-00979: not a GROUP BY expression
ORA-12018 ORA-00979 ORA-06512
When we create Materialized report view it is successfully created and reports are coming properly.
But when we do complete refresh using below mentioned command it is showing an error
SQL> exec dbms_mview.refresh('mv_rkcapitaldashboard','C') ;
begin dbms_mview.refresh('mv_rkcapitaldashboard','C'); end;
ORA-12018: following error encountered during code generation for "LDBO"."MV_RKCAPITALDASHBOARD"
ORA-00979: not a GROUP BY expression
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2809
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 3025
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2994
Bug
Oracle Version 11.2.0.4
Solution
alter session set "_complex_view_merging"=false;
or add following in query
/*+ opt_param('_complex_view_merging','false') */
or try following in SQL
/*+ NO_QUERY_TRANSFORMATION */
exec dbms_mview.refresh('mv_rkcapitaldashboard','C') ;