This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes Refresh Materialized View though Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Refresh Materialized View though Java" Watch "Refresh Materialized View though Java" New topic
Author

Refresh Materialized View though Java

sankar
Greenhorn

Joined: Jan 28, 2003
Posts: 4
How to refresh the materialized view from java code?

The following code using the spring jdbc support worked..

String materiallizedViewSQL= "call dbms_snapshot.refresh('"+materiallizedView+"','C')";

getJdbcTemplate().update(materiallizedViewSQL);
[ July 08, 2008: Message edited by: sankar ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"sankar",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted.

Please note this is your third and final warning.

/Dave
 
Don't get me started about those stupid light bulbs.
 
subject: Refresh Materialized View though Java