Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> 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_at_DbLinkCreatedOnDev; commit;
SQL> exec RefreshDev
hth
deepak
-----Original Message-----
From: David Turner [mailto:turner_at_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_at_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_at_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). Received on Tue Sep 26 2000 - 18:12:51 CDT
![]() |
![]() |