Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: PLSQL

Re: PLSQL

From: David Turner <turner_at_tellme.com>
Date: Wed, 27 Sep 2000 14:20:24 -0700
Message-Id: <10632.118080@fatcity.com>


Thanks, Dave Turner
On Tue, Sep 26, 2000 at 04:15:25PM -0800, Thapliyal, Deepak wrote:
> 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;
> end;
>
> SQL> exec RefreshDev
>
> hth
> deepak
>
> -----Original Message-----
> Sent: Tuesday, September 26, 2000 4:55 PM
> To: Multiple recipients of list ORACLE-L
>
>
> 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).
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Thapliyal, Deepak
> INET: DThapliyal_at_ea.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 Wed Sep 27 2000 - 16:20:24 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US