The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Shivani.
Asked: March 03, 2024 - 2:32 pm UTC
Last updated: March 04, 2024 - 5:17 pm UTC
Version: 19c
Viewed 1000+ times
explain plan for insert /*+ append */ into employees_bkp(employee_id, first_name, last_name, email, job_id, hire_date) values(310, 'SHIVANIhjhk' , 'GUPTAll', 'SHIVANI.CSE@GMAIL.COM', 'AD_PRES', '23-NOV-2015'); select * from table(dbms_xplan.display()); ------------------------------------------------------------------------------------------ | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | ------------------------------------------------------------------------------------------ | 0 | INSERT STATEMENT | | 1 | 71 | 1 (0)| 00:00:01 | | 1 | LOAD TABLE CONVENTIONAL | EMPLOYEES_BKP | | | | | ------------------------------------------------------------------------------------------ Note ----- - Direct Load disabled because insert values with no append values hint used
create table t ( c1 int ); explain plan for insert /*+ append */into t values ( 1 ); select * from dbms_xplan.display(); PLAN_TABLE_OUTPUT --------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | --------------------------------------------------------------------------------- | 0 | INSERT STATEMENT | | 1 | 100 | 1 (0)| 00:00:01 | | 1 | LOAD TABLE CONVENTIONAL | T | | | | | --------------------------------------------------------------------------------- Note ----- - Direct Load disabled because insert values with no append values hint used explain plan for insert /*+ append_values */into t values ( 1 ); select * from dbms_xplan.display(); PLAN_TABLE_OUTPUT Plan hash value: 3581094869 ----------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | ----------------------------------------------------------------------------------------- | 0 | INSERT STATEMENT | | 1 | 100 | 1 (0)| 00:00:01 | | 1 | LOAD AS SELECT | T | | | | | | 2 | OPTIMIZER STATISTICS GATHERING | | | | | | | 3 | BULK BINDS GET | | | | | | -----------------------------------------------------------------------------------------
Get all the information about database performance in the Database Performance guide.