Friday, July 17, 2020
copy column from same table
oracle communication: failed to connect to server or failed to parse connect string
Thursday, July 16, 2020
Update millions of rows in very huge table Performance
select max from large table performance
ORA-22816: unsupported feature with RETURNING clause in trigger
Restrictions
The following restrictions apply to the RETURNING clause:
The expr is restricted as follows:
Each expr must be a simple expression or a single-set aggregate function expression. You cannot combine simple expressions and single-set aggregate function expressions in the same returning_clause.
Single-set aggregate function expressions cannot include the DISTINCT keyword.
You cannot specify the returning_clause for a multitable insert.
You cannot use this clause with parallel DML or with remote objects.
You cannot retrieve LONG types with this clause.
You cannot specify this clause for a view on which an INSTEAD OF trigger has been defined.
ORA-22816: unsupported feature with RETURNING clause
ORA-06512: at "LDBO.TG_RKPOAPLEDGEUPDATE", line 36
ORA-04088: error during execution of trigger 'LDBO.TG_RKPOAPLEDGEUPDATE'
Problematic Command
update tblrktodel@lnk_Rakshak set nPoastocks=nPoastocks+........
Where cClientcode=lcTerminalcode and cIsincode=lcIsincode and nSegmenttype=lnCommodity and nSourcetable=0 returning nHaircut,nT2Tscrip into lnHaircut,lnT2TScrip ;
Solution
Begin
Select tblRktodel.nHaircut,tblRktodel.nT2Tscrip into lnHaircut,lnT2Tscrip From tblrktodel@lnk_Rakshak Where dTransactiondate=:Old.Dtoftran and cClientcode=lcTerminalcode and cIsincode=lcIsincode and nSegmenttype=lnCommodity and nSourcetable=0 ;
Exception
When NO_DATA_FOUND then
lnHaircut:=0 ;
lnT2Tscrip:=0 ;
End ;
ora-02055 ora-02069 ora-06512 ora-04088 select Sequence Remote table
Trigger Row Level :OLD and :NEW
Wednesday, July 15, 2020
Database Decommission Steps
Tuesday, July 14, 2020
Merge Statement on same table
Friday, July 10, 2020
Performance Tips for select count update insert
10.2.0.4 to 11.2.0.4 upgrade Manually
Thursday, July 9, 2020
Laptop Keyboard disable steps in case you have usb external keyboard
Tuesday, July 7, 2020
ORA-03137: TTC protocol internal error
Monday, July 6, 2020
ORA-31626: job does not exist ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ERROR at line 1:
ORA-31626: job does not exist
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "SYS.DBMS_DATAPUMP", line 1137
ORA-06512: at "SYS.DBMS_DATAPUMP", line 3440
ORA-06512: at "SYS.DBMS_DATAPUMP", line 5296
ORA-06512: at line 7
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31626: job does not exist
ORA-31650: timeout waiting for master process response
Action
check streams_pool_size
check ophan job
Cause
SYS datapump object corrupted or missing
Solution
spool d:\ab.txt
@d:\app\Administrator\product\11.2.0\dbhome_1\RDBMS\ADMIN\catproc.sql
@d:\app\Administrator\product\11.2.0\dbhome_1\RDBMS\ADMIN\utlrp.sql
spool off
ORA-00600: internal error code, arguments: [qm_get_kusr]
ORA-00604: error occurred at recursive SQL level 1
ORA-01001: invalid cursor
ORA-00600: internal error code, arguments: [qm_get_kusr], [], [], [], [], [], [], [], [], [], [], []
XDB SGA reset to NULL.
Sunday, July 5, 2020
Saturday, July 4, 2020
Union to Unpivot convert for performance
ORA-31626 ORA-31633 ORA-06512 ORA-01950
ORA-31626 ORA-31633 ORA-06512 ORA-01950
ORA-31626: job does not exist
ORA-31633: unable to create master table "SYSTEM.SYS_EXPORT_FULL_09"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT", line 1020
ORA-01950: no privileges on tablespace 'SYSTEM'
ALTER USER system QUOTA unlimited ON SYSTEM;
ALTER USER system QUOTA unlimited ON USR;
ALTER USER system QUOTA unlimited ON INDX;
GRANT UNLIMITED TABLESPACE TO SYSTEM;
ALTER USER ldbo QUOTA unlimited ON SYSTEM;
ALTER USER ldbo QUOTA unlimited ON USR;
ALTER USER ldbo QUOTA unlimited ON INDX;
GRANT UNLIMITED TABLESPACE TO ldbo;