Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating view which doesn't have keys

Status
Not open for further replies.

aravindv26

Programmer
Sep 9, 2005
8
US
Hi All,

In my mapping i hv to update a view, but without keys informatica doesn't update the target. Views doesn't have keys, is there any alternate solution for updating the view.

Thanks in Advance.
 
are you sure you want to update a view?
ideally in oracle too, you cannot run an update command on a view.
a view is actually a sql that selects columns from one or more tables joined to each other.
if you update the constituent table, the view will reflect the change accordingly.
 
Yes, I am sure i want to update a view.
That view is created using only one table.
 
this is something that i have not heard of. is it even possible in oracle??????

why dont you update the table..
or if u still want to make some conditional changes, modify the sql used to construct the view.
 
Thanks for the article, but I have some doubts.

Whenever we use select from a view, Oracle executes the underlying sql (contructing the view) at run time.
If I have updated the view, from where will Oracle get the updated data.
Does this mean that updatable views are physically stored?
 
Updating the view results in update on the underlying table, which means synchronization of data for the objects.

Last developments also let us use materialized views (mainly to improve query performance) , but in that case data is stored in an intermediate fashion (that is the SQL does not need to be rerun to produce the views results)

Note that updatable views are severly limited. In fact, they can contain little else than a portion of the underlying table (no joins, disctinct, aggregates allowed)

Ties Blom
Information analyst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top