Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: logon trigger
Do you happen to have that note number?
Tony Aponte
-----Original Message-----
Sent: Thursday, October 03, 2002 2:58 AM
To: Multiple recipients of list ORACLE-L
Hi Mike
Siebel has released a note whereby they approve CBO for the EIM process.
Also what I have is a SM Data warehouse logon into the OLTP Siebel db. The activities this logon does is more akin to OLAP. So what I am doing is giving this logon a big sort area size, enabling parallel access for the user, setting it's session to CBO etc etc.
George
You Have The Obligation to Inform One Honestly of the risk, And As a Person You Are Committed to Educate Yourself to the Total Risk In Any Activity! Once Informed & Totally Aware of the Risk, Every Fool Has the Right to Kill or Injure Themselves as They See Fit!
-----Original Message-----
Sent: 02 October 2002 18:24 PM
To: Multiple recipients of list ORACLE-L
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
ineyman_at_perceptron.com
> 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: mvergara_at_guidant.com 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: ListGuru_at_fatcity.com (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). *************************************************************************************** This message contains information intended solely for the addressee, which is confidential or private in nature and subject to legal privilege. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message or any file attached to this message. Any such unauthorised use is prohibited and may be unlawful. If you have received this message in error, please notify the sender immediately by e-mail, facsimile or telephone and thereafter delete the original message from your machine. Furthermore, the information contained in this message, and any attachments thereto, is for information purposes only and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of Dimension Data (South Africa) (Proprietary) Limited or its subsidiaries and associated companies ("Dimension Data"). Dimension Data therefore does not accept liability for any claims, loss or damages of whatsoever nature, arising as a result of the reliance on such information by anyone. Whilst all reasonable steps are taken to ensure the accuracy and integrity of information transmitted electronically and to preserve the confidentiality thereof, Dimension Data accepts no liability or responsibility whatsoever if information or data is, for whatsoever reason, incorrect, corrupted or does not reach its intended destination. ************************************************************************************* -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: George Leonard (ZA) INET: George.Leonard_at_za.didata.com 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: ListGuru_at_fatcity.com (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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Aponte, Tony INET: AponteT_at_hsn.net 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: ListGuru_at_fatcity.com (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).Received on Thu Oct 03 2002 - 20:28:25 CDT
![]() |
![]() |