For performance gain, I am looking to make persistence derived column by combination of few fields from same column.
I have explored about automated and virtual column, but didn't give proper solution to me. Found that Oracle Virtual column is similar to the the derived column with the combination/computed of fields in a general view with some additional features, it executes virtual column expression during query execution.
Besides general view, there is option to use Materialized View which will create separate Materialized view segment and separate execution overhead too.
I am trying to figure out to maintain read-only virtual column which will be computed up on inserting/updating fields automatically when commit happens. Can anyone help for this solution in Oracle 11gR2?
--Example:
create table table1(id int, field1 varchar2(30),field2 varchar2(30),field3 varchar2(30),field4 varchar2(30),field5 varchar2(200));- ....Direct path load will happen into id, field1, field2, field3 and field4 by ETL process...
update table1 set field5=field1 || '#' || field2 || '#' || field3 || '#' || field4;commit;
In above example, I wish to populate field5 internally automatically once we perform #1, #2 and #4 without adding major execution time.