Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Tue, 28 Feb 2006 @ 09:31:47 GMT

  <Prev Next>  
Next> Last>>  

Subj:   Compilation problems when try to compile the proceudre
From:   Srikanth Kappagantula


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()
     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
     set username=user_pointer.username;
     for audit_access_pointer as sel databasename,tablename,tablekind from
     d_dba.amp_audit_access where logStatus='Y'
        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
     --insert into
     end for;

     end for;

Thanks and regards,

Srikanth K.

  <Prev Next>  
Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023