In looking at this and thinking about it...doesn't any DDL statement do an implied COMMIT? If so, the first "EXECUTE IMMEDIATE" will fire, commit, the SET TRANSACTION will be released, and the user will not be assured of using that rollback segment. Shouldn't the SET TRANSACTION be the last statement in the trigger?
And if Siebel wants RBO, doesn't changing the optimizer at the session level mean that all that session's queries will be performed using CBO? Is Siebel OK with that? Cheers, Mike -----Original Message----- Sent: Wednesday, October 02, 2002 8:43 AM To: Multiple recipients of list ORACLE-L "Alter session ..." is not DML, so I think you need to use dynamic SQL: create or replace trigger smload.logon after logon on database begin SET TRANSACTION USE ROLLBACK SEGMENT RBBIG01; EXECUTE IMMEDIATE "Alter session enable parallel query"; EXECUTE IMMEDIATE "Alter session set SORT_AREA_SIZE = 10485760"; EXECUTE IMMEDIATE "Alter session set OPTIMIZER_MODE = choose"; end; / Igor Neyman, OCP DBA [EMAIL PROTECTED] ----- Original Message ----- To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]> Sent: Wednesday, October 02, 2002 11:23 AM > Hi guys > > I am trying to create the following trigger. > > The user in question is logging in using siebel application and siebel does > not allow multiple SQL statements during login so we through this might > solve the problem. My problem now is though, the set rollback works but the > alter session statements does not seem to want to work. > > The server needs to be in RBO since this is the only mode supported by > siebel. > > Help appreciated. > > create or replace trigger smload.logon after logon on database > begin > SET TRANSACTION USE ROLLBACK SEGMENT RBBIG01; > Alter session enable parallel query; > Alter session set SORT_AREA_SIZE = 10485760; > Alter session set OPTIMIZER_MODE = choose; > end; > / > > George > ________________________________________________ -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Vergara, Michael (TEM) INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (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).