Monday, November 27, 2006

 

Create LOG tables

When you wont to create LOG tables for your sistem, jou can use this scripts:

Create LOG tables:
procedure LogCreateTables as
v_vred varchar2(4000);
v_ime varchar2(4000);
begin
-- Test statements here
for r in (select t.table_name
from user_tables t
order by t.table_name) loop
htp.p('create table log$'r.table_name' as select * from 'r.table_name' where 1=2;');
htp.p('alter table log$'r.table_name' add logczsp date not null;');
htp.p('alter table log$'r.table_name' add logoper varchar2(50) not null;');
htp.p('alter table log$'r.table_name' add logakcija varchar2(50) not null;');
end loop;
end;


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?