Message-Id: <10631.117924@fatcity.com> From: "Thapliyal, Deepak" Date: Tue, 26 Sep 2000 16:12:51 -0700 Subject: RE: PLSQL here is a example of refreshing one table .. u can add more lines in code for more tables .. create or replace procedure RefreshDev as begin execute immediate 'truncate table UrDevTable'; insert into UrDevTable select * from UrProdTable@DbLinkCreatedOnDev; commit; end; SQL> exec RefreshDev hth deepak -----Original Message----- From: David Turner [mailto:turner@tellme.com] Sent: Tuesday, September 26, 2000 4:55 PM To: Multiple recipients of list ORACLE-L Subject: PLSQL Anyone have some PLSQL code that will refresh a table from another table over a database link? I have been frequently asked to refresh development from production and want to set it up so it fairly self service. I have set up a staging database that is refreshed nightly as snapshots then I will set up the stored procedures on the development databases to be refreshed from a stored procedure. Any code or suggestions are appreciated. Thanks, Dave Turner -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: David Turner INET: turner@tellme.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).