![]() |
|
Archives of the TeradataForumMessage Posted: Tue, 28 Feb 2006 @ 09:31:47 GMT
Hi, When I try to compile a procedure it is throwing the following error. SPL1078:E(L19), User is not authorized to use the DDL/DCL/Dynamic SQL statement. Pls. help. I also enclose the procedure for your reference.
replace procedure d_dba.enableAuditLog()
begin
declare username char(30);
declare databasename char(30);
declare tablename char(30);
declare tablekind char(10);
for user_pointer as c_user cursor for sel username from d_dba.users
where username in (sel distinct databasename from dbc.databases where
dbkind='U') and username not in (sel distinct username from
dbc.acclogrules)
do
set username=user_pointer.username;
for audit_access_pointer as sel databasename,tablename,tablekind from
d_dba.amp_audit_access where logStatus='Y'
do
set databasename=audit_access_pointer.databasename;
set tablename=audit_access_pointer.tablename;
set tablekind=audit_access_pointer.tablekind;
BEGIN LOGGING ON EACH select BY :username ON :tablekind
:databasename.:tablename;
--insert into
end for;
end for;
end;
Thanks and regards, Srikanth K.
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||