DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: where do i give the alter session command in the startup

  1. #1
    Join Date
    Jul 2001
    Posts
    9
    Hi,
    i want to issue an alter session command at the start up of the database instance or when i connect to a user i want to run a particular alter session command,in which file i should write the alter sesion command so that whenever i login as a user that command gets executed automatically.

    thanks
    kolli

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Use a logon trigger:
    Code:
    CREATE OR REPLACE TRIGGER logon_trigger
    AFTER LOGON ON DATABASE
    BEGIN
       IF (USER='JEFFH') THEN
          EXECUTE IMMEDIATE 'alter session set events ''1046 trace name context forever, level 4''';
       END IF;
    END;
    Jeff Hunter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width