<<

Real-World MAA Best Practices for Siebel Applications on Oracle Database Floyd Manzara Mehdi Gerami Technical Architect Siebel Product Management Kris Trzesicki Richard Exley Senior Database Specialist Siebel MAA and Exadata

Disclaimer

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda

. Siebel Maximum Availability Architecture . Siebel and Active Data Guard . Siebel Testing with Oracle Database Replay . WestJet: Siebel on Exadata . Siebel Performance . Siebel Workload Tagging

3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel Maximum Availability Architecture

4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel Maximum Availability Architecture

Primary Site Secondary Site

Web Servers

Siebel Servers Siebel Siebel Gateway Gateway Server Server

DB Servers Oracle Oracle RAC and RAC and ASM ASM Oracle Data Guard

Siebel Oracle File System Replication Oracle Siebel File Database Standby File System Database System

5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Database Maximum Availability Architecture

Real Application Clusters Online Upgrade Data Guard & Clusterware Upgrade Hardware and Software Active Failover Best Practices Fault Tolerant Online Replica Server Scale-Out

Primary Site Secondary Site . Oracle RAC and Clusterware . Oracle Data Guard Database Servers Database Servers . Oracle ASM

. Oracle Flashback Database Storage Storage . Oracle Recovery Manager

Automatic Storage Recovery Manager & Flashback Management Correct Errors by Oracle Secure Backup Low Cost High Performance Fault Tolerant Moving Back in Time Storage Scale-Out Data Protection and Archival

6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel High Availability Architecture

HTTP Load Balancers Best Practices Redundant Configuration

. Load Balanced Web Servers Web Servers . Clustered or Load Balanced Web Servers Load Balanced Siebel Servers . Clustered Gateway Server

Siebel Servers

Clustered Siebel Servers Load Balanced Siebel Servers Typically hosting Gateway Server, Typically hosting Object Managers, Siebel Remote, etc. Workflow, etc.

7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel MAA on Exalogic and Exadata Case Study

Primary Site (Site 1) Secondary Site (Site 2)

F5 LTM 4200v F5 LTM 4200v

vm36 vm52 Web Servers cn21 cn22 Virtualized Bare Metal Exalogic X3-2 Exalogic X3-2

Siebel Servers Siebel Gateway Siebel Server Gateway and Siebel Server vm02 and vm05 vm47 and vm30 cn23 and cn24

DB Servers Exadata Exadata db07 and db08 db01 and db02 Exadata X3-2 Oracle Data Guard Exadata X3-2

Siebel Siebel Oracle File System Replication Oracle File Database Standby File System (Exadata) Database System (ZFS) (Exadata) (ZFS)

8 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Unplanned Outage Testing Results

Outage Error Messages New Login Failover Time Component Outage Type (seconds) (% Users) (% users) (seconds)

Siebel Web Instance Failure 0 0.3% 0% Server Node Failure 25 2 (partial) 0.3% 0% Siebel Server Node Failure 0 50% 50%

Gateway Instance Failure 0 0% 0% 30 2 Server Node Failure 0 0% 0% 100 2

Database Instance Failure 10 (partial) 2% 1 0% Server Node Failure 45 (complete) 2% 1 0% Primary Site Full Site Failure 77 (complete) 100% 100% 77

1 = Mostly addressed by a Siebel product enhancement in Siebel 8.1.1.11 2 = Can be tuned to a shorter time by configuring more frequent monitoring and shorter timeouts

9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel MAA Best Practices

. See “Siebel MAA on Exalogic and Exadata” New! – http://www.oracle.com/technetwork/database/availability/siebel-maa- exalogic-exadata-2020333.pdf – Detailed steps to establish a Siebel MAA configuration on Exalogic and Exadata – Detailed recovery steps for unplanned outages – Detailed outage test results – 30 best practices to achieve maximum Siebel availability, including several new and improved recommendations

10 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel and Active Data Guard

11 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel and Active Data Guard Active Data Guard Features

. Physical standby database open for transactionally consistent read only access . Real-time apply of redo from primary resulting in minimal lag . Real-time block repair in the event of a block corruption on the primary . Incremental database backup support

12 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel and Active Data Guard Query Offload to Standby Query Offload Read/Write from Primary Read Only Siebel Users Siebel Users

Primary Site (Read Write) Secondary Site (Read Only)

Web Servers Read Only Siebel App Siebel Servers Siebel Siebel Gateway Gateway Server Server Real-time

DatabaseRedo ApplyServers Oracle Oracle RAC and RAC and ASM ASM Oracle Data Guard

Oracle Active Read Only Siebel File Synchronization Oracle Data Guard Siebel File File Database Standby System Replica System Database

13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel and Active Data Guard Faster Queries for Remote Users

Read/Write Read Only Read/Write Siebel Users Siebel Users Siebel Users

Fast Queries for Primary Site (Read/Write) Secondary Site (Read Only) Remote Oracle Data Guard Users

Real-time Redo Apply Siebel Siebel Gateway Gateway Server Server San Francisco

Oracle RAC and Beijing Oracle ASM RAC and ASM

Oracle Active Oracle Data Guard Database Standby Database

14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel and Active Data Guard Opinion Poll

. Would a read only Siebel application be useful for you?

Read/Write Read Only Siebel Users Siebel Users Primary Site (Read Write) Secondary Site (Read Only)

Web Servers

Siebel Servers Siebel Siebel Gateway Gateway Server Server To offload work from the primary?

Database Servers Oracle Oracle RAC and RAC and ASM ASM Oracle Data Guard

Oracle Active Read Only Siebel File Synchronization Oracle Data Guard Siebel File File Database Standby System Replica System Database

Read/Write Read Only Siebel Users Siebel Users Read/Write Siebel Users

Primary Site (Read/Write) Secondary Site (Read Only)

Siebel Oracle Data Guard Siebel Gateway Gateway Server Server To improve query performance for remote users? Oracle RAC and Oracle ASM RAC and ASM San Francisco Oracle Active Oracle Data Guard Database Standby Beijing Database

? What else?

15 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel and Active Data Guard Experimental and not The Challenge and a Potential Solution currently supported!

. Challenge: The S_USER and S_SSA_ID tables are always updated by the Siebel, even when the users are only performing queries . Solution: 1. Create a “dummy” read/write database for S_USER and S_SSA_ID 2. Create a separate “RO” table owner in the Siebel database: . S_SSA_ID and S_USER are database links to “dummy” . All the other tables are synonyms of the real tables 3. When running against the Active Data Guard standby, Siebel configured to connect to the “RO” table owner

16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel Testing with Oracle Database Replay

17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel Testing with Oracle Database Replay Oracle Database Replay Capture and Replay Workflow

Production

Cross Platform Test System Real Production Replay Clients Workload Cross Version

Oracle Database

Workload Pre- Workload Analysis & Capture processing Replay Reporting

18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel Testing with Oracle Database Replay Results in Our Lab

. Siebel 8.1.1.9 . Oracle Database 11.2.0.3 . 33,000 concurrent simulated Siebel users . 333 GB workload captured over a 4 hour period . 350 million user calls, 19 million transactions . Successfully replayed on test system

19 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel Testing with Oracle Database Replay Best Practices

. See “Oracle Database Real Application Testing User's Guide” for more details on Oracle Database Replay: – http://docs.oracle.com/cd/E11882_01/server.112/e41481/toc.htm

. See white paper “Siebel on Exadata” for best practice for running Oracle Database Replay with a Siebel workload: – http://www.oracle.com/technetwork/database/features/availability/maa-wp- siebel-exadata-177506.pdf

20 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. WestJet: Siebel on Exadata

Floyd Manzara fmanzara@.com

Kris Trzesicki [email protected] WestJet: Overview

THE INDUSTRY IS TOUGH “If I’d been at Kitty Hawk in 1903 when Orville Wright took off, I would have been farsighted enough, and public-spirited enough – I owed this to future capitalists – to shoot him down.” - Warren Buffet

WestJet: Overview Canadian operating today Adler Aviation Airways KD -Wright Airways Citylink Air Aldair Aviation CHC Helicopter Flightcraft Cloud Air Corporate Express Keystone Air Service Trans Capital Air Arctic Sunwest Kivalliq Air Air Express Charters Craig Air Kootnay Direct Airlines Bar XH Air Lakeland Aviation Pronto Airways Island Air Air BCWest Air Enterprise Airlines LR Helicopters Inc. Provincial Airlines Air Maritime Air Charter Regional 1 Air Mikisew Morningstar Air Air North Green Air Express SkyLink Aviation Air Harbour Air SkyNorth Air Westex Airlines Canadian Air Taxi Harv’s Air Service Nor-Alta Aviation Skyservice WestJet Canadian Metro Skyxpress Airline White River Air Airlines Northern Thunderbird Stanton Airways Wilderness Air, ltd Innu Mikun Airlines Air CanJet WestJet: Overview graveyard 30000 Island Air Canadian Regional Airlines Trans-Canada Air Lines Colonial Airlines NorOntair Trans-Provincial Airlines Air Baffin Eastern Provincial Airways North Canada Air Triton Airlines Air BC Fortunair NWT Air Globemaster Air Cargo Vision Airways Corporation Air Club International Great Lakes Airlines Air Dawson Western Canada Airways Ilford-Riverton Airways Pem Air Westex Airlines All Canada Express Inter-Canadien Express Wilderness Air LTD. Winnport Baxter Aviation Knighthawk Air Express QuikAir Lamb Air Regal Air World-Wide Airways Canada West Air Canada West Airlines Canadian Airlines Sonicblue Airways NAC Airways Southern Frontier Airlines Canadian Colonial Airways Nationair Canadian Pacific Air Lines Airways Torontair

WestJet: Overview US airlines graveyard – “A” only page… AAXICO Airlines (1946-1965, to Saturn Air California, later AirCal Airlift International (1946 - 81) Airways) (1967 - 87, to American) Air Kentucky Access Air (1998 - 2001) Air Carolina Air LA ADI Domestic Airlines Air Central (Michigan) Air-Lift Commuter Aeroamerica (1974 – 1982) Air Central (Oklahoma) Air Lincoln Aero Coach (1983 – 1991) Air Chaparral (1980 - 82) Air Link Airlines Aero International Airlines Air Chico Air Link Airways Aeromech Airlines (1951 - 1983, to Air Colorado Air Metro Wright Airlines) Air Cortez Air Miami AeroSun International Air Florida (1972 - 84) Air Michigan AFS Airlines Air Gemini Air Mid-America Air America (operated by the CIA in Air General Air Midwest SouthEast Asia) Air Great Lakes Air Missouri Air America (1980s) Air Hawaii (1960s) Air Molakai (1980) Air Astro Air Hawaii (ceased Air Molakai (1990) Air Atlanta (1981 - 88) Operations in 1986) Air Molakai-Tropic Airlines Air Atlantic Airlines Air Hyannix Air Nebraska Air Bama Air Idaho Air Nevada Air Berlin, Inc. (1978 – 1990) Air Illinois Air New England (1975 - 81) Airborne Express (1946 - 2003, to DHL) Air Iowa

WestJet: Overview

By the numbers 1996 2013 5 destinations 87 destinations 1 country 18 countries 100+ 737 aircraft 3 aircraft 9,600 WestJetters 220 WestJetters 10 code-share agreements 33 interline partnerships 1,300 resumes each week 432 marriage proposals 17 million guests Our new : WestJet Encore WestJet: Business Case Goals • By 2016, to grow Guest Self Service to 60% – Multi-channel shopping and reservation features – Enhanced ancillary sales • Implement a database platform that will provide WestJet’s exceptional Guest Experience – Operational efficiency – Service availability – Performance consistency – Enhanced support – Efficiently utilize Oracle RDBMS licensing

WestJet: Process – Look to Book

Mobile Browser Kiosk IVR Channels Channels Channels Channels

Guest Applications westjet.com Rewards Profile Check-in WestJet Travel Employee Self Serve IVR

ESB – Web Services Booking Change / Cancel Rewards Redemption Flight Stats Email Delivery Notifications Identity Mobile Services Check-in GDS Functions Vendor Files

Data Stores Internet Siebel Identity/ Aviation Employee ENS WestNet Booking Loyalty Profile MRO Apps

Hosted Other External Partners Reservation Applications Vacations Air Car Hotel Reservation GDS Core WestJet: Siebel Functionality • Loyalty – Frequent flyer system - WestJet Dollar & Vouchers – Compensation – Price guarantees, irregular operations • Guest Profiles • Guest Portal • Member Promotions – Giveaways, etc. • Member Statements • Marketing campaigns – Bulk Email, Vacation Deals • OBIEE – Analytical reporting for marketing and loyalty programs – Financial reconciliation WestJet: Siebel

• Statistics – 1.2 million Loyalty member accounts – 2.4 million Profiles – 300 agents and 300 portal connections at any given time – 100,000/day batch transactions from 3rd parties • Versions – 8.1.1.5

WestJet: Consolidation • 25+ servers  2 Exadata • Oracle Platinum Services • Consolidated 16 DBs • Reduced data center admin needs Server Memory 12.37

10.09

57.30 10.09

5.47

3.95

4.06 3.73 3.57 1.94 2.02 2.48 2.77 3.05 2.23 2.45 2.56 WestJet: Siebel Performance

• Expert application and database tuning • Customized database statistics Siebel on HP-UX and EVA storage • Frequent I/O performance issues • Long running backup • Overlap in heavy batch processing

• No tuning required post migration – 1 index added • Default Oracle Maintenance statistics used Siebel on Exadata • No I/O performance issues • Faster backup • Batch jobs fit in the allocated windows WestJet: Siebel Performance

Response time: 0.01 centi-seconds Backup time: 5h (HP) 0.5h (Exadata + Data Domain)

Process HP Average Average After Improvement Before Exadata Exadata

Revenue 13.5 min 5 sec 16,200% Accounting – Corrections

Customer 33 minutes 13 minutes 253% Profiles Revenue 174 minutes 9 minutes 1,900% Accounting – Daily TX WestJet: Data Center Replication

Pre-Exadata (2012)

Picture From: MAA Best Practices Replication Technologies for High Availability and Disaster Recovery –A Technical Overview

Joseph Meeks, HA\MAA Product Management, Oracle Lawrence To, MAA Development, Oracle WestJet: Data Center Replication

Western Data Centre Eastern Data Centre VM Farm for Siebel VM Farm for Siebel DC rented from 3rd party • TAF TAF Connection Pooling Platinum support on hardware • Connection Pooling • DC Managed and owned by WestJet • Platinum support on hardware Physical Data Guard

3200 km - Asynchronous Consolidated Fast Switchover or Failover Consolidated Exadata Simplicity and Performance Exadata Protection from Lost Writes and Corruption WestJet: IBE - Hybrid Columnar Compression

RESVCOMPADDITINFO Partition 1 No compression 1 Partition 2 Compress for query X 50 2 Partition 3 Compress for archival X 170 3 4 March … March April 2014 March 2014 2013 2013 + 55 GB + 1.1 TB WestJet: IBE - Hybrid Columnar Compression

• Technology is unique to Exadata Hint 1: • No additional license cost • Partitioned tables will guarantee performance Find right data and partition • Delay additional storage purchases by frequency of data updates Archive 0.32 GB 54 GB Hint 2: Query 34 GB 0.68 GB

Use DBMS_REDEFINITION for Disk space saved : 87 GB partitioning • Decreased network requirements for replication

WestJet: Future

• Siebel 8.2.2.3 – 3rd Qtr. 2013 • Siebel HCC (1-2 Million/Week) – 4th Qtr. 2013 • Memory Optimization – September 2013 • Purchasing two additional ¼ Rack X3-2 – 1st Qtr. 2014 – Additional Siebel Functionality . Travel Agent Commission – 2013 . Call Center CTI integration and Case Management - 2014 – Revenue Management - 2013 – BI Analytics Initiative – 2014 – Other Tier 1 database consolidations … - 2013/2014 • Active Data Guard / Golden Gate - 2014 WestJet: Benefit Summary

• Exadata: A platform that enables WestJet’s exceptional Guest Experience – High Availability and Performance – Exceptional Oracle support • Consistent patching practice and schedule • Cost avoidance of additional hardware and software • Time to Market benefits – Initial build and configuration – Performance Load testing • Smaller Data Center footprint

WestJet: Resources

WestJet Oracle Exadata Technical Case Study http://www.oracle.com/technetwork/server- storage/engineered-systems/exadata/index.html

WestJet Video http://medianetwork.oracle.com/media/

Search: WestJet Siebel Performance

41 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel on Exalogic - Exadata Benchmark

. Siebel benchmarks on Exalogic X3 – Exadata X3: – Call Center & Order Management Results are available and presented in later slides . Exalogic & Exadata provide an excellent scalable platform for all Siebel tiers . Note: – Performed on Siebel Release 8.1.1.10 using Oracle 11.2.0.3 – Siebel preferred version is 8.1.1.5 onward (8.1.1.4 is also certified).

42 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel Performance Testing Architecture

IB Network

IP/IB

Web Server + Exalogic X3 Exadata X3 OATS-OLT Siebel Gateway (Siebel App Server) (Siebel DB)

Dual CPU 8-Core Dual CPU 8-Core Dual CPU 8-Core 96 - 288 GB RAM 256 - 768 GB RAM 256 GB RAM (16-48 cores - 1-3 nodes) (16-48 cores - 1-3 nodes) (16-core – 1 Node)

43 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Test Workloads – Call Center . Call Center Use Case – Siebel Finance used as Reference Application – Benchmark simulates multi-user Call Center Agents . OATS-OLT Scripts – Sales: . Create Contact and Opportunity . Lookup Account, Associate Contact & Opportunity . Add products and create Quote and Order – Create Service Request : . Lookup Contact . Create Service Request and add Entitlement . Lookup Account, associate contact & opportunity . Add products and create Quote and Order – Update Service Request : . Lookup Service Request . Add Solution for the Service Request

44 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Exa* 13k & 39k Users Call Center Benchmark2 Number of Call Center Users 13,000 Users 39,000 Users . Each Exalogic node can Siebel App Servers Avg. CPU* 72.56% 73.03% host 13,000 Call Center Siebel App Mem (MB) 105,636 108,821 DB Server CPU 9.51% 26.60% users Web Servers Avg. CPU 19.02% 17.14% Avg RT (sec): 0.049 0.046 . Exalogic and Exadata *13k Users benchmark 1 Siebel App Server demonstrate linear CPU 33k Users benchmark 3 Siebel App Server Entity1 Creation/hour Creation/day - 8 hours and performance Contacts 113,124 904,992 scalability Opportunities 113,244 905,952 Orders 113,016 904,128

1 The total number of records created are ballpark figures. Activities 742,170 5,937,360 During the benchmark there are significant number of queries Service Requests 148,436 1,187,488 and updates that are not reflected in the table on the left. Resolution Items 120,120 960,960

2 Actual results may vary, based on a broad range of implementation-specific factors, such as transaction mix, hardware platform, network parameters, and database size. Oracle does not warrant or guarantee that customers will obtain the same or similar results, even if they use the same or similar equipment and/or software applications. Oracle does not warrant, endorse, or guarantee any performance of any products, any results desired or achieved, or any statements made within this document.

45 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Test Workloads – Order Management

. Order Management Use Case – Siebel Communications used as Reference Application – Benchmark simulates multi-user Call Center Agents

. OATS-OLT Scripts – Create Order: . Create Account and Address . Lookup Catalog and Price List . Create Order and Asset – Modify Order: . Lookup Account and Asset . Lookup Catalog and Price List . Modify Order and Asset

46 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Exa* 11k Users Order Management Benchmark2 Exalogic - Exadata provides an excellent scalable platform for all Siebel tiers No. of Users 7000 Exalogic/Exadata . One Exalogic node can host more than Siebel App Server Avg CPU 68.27% 7,000 Order Management users Siebel App Mem (MB) 94,179 DB Server CPU 7.04% . Siebel DB Server on Exadata Web Server Avg CPU 6.21% demonstrates 2 times better in CPU Avg RT (sec): 0.137 usage compared to standard HW Entity 1 Creation/hour Creation/day (8 hours) . The Response Time (RT) is 2 times ORDERS 49,000 392,000 better compared to standard HW ORDER ITEMS 285,000 2,282,000 ASSETS 255,000 2,040,000

1 The total number of records created are ballpark figures in 10k users benchmark. During the benchmark there are significant number of queries and updates that are not reflected in the table above.

2 Actual results may vary, based on a broad range of implementation-specific factors, such as transaction mix, hardware platform, network parameters, and database size. Oracle does not warrant or guarantee that customers will obtain the same or similar results, even if they use the same or similar equipment and/or software applications. Oracle does not warrant, endorse, or guarantee any performance of any products, any results desired or achieved, or any statements made within this document.

47 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Proven Best Practices for Scalable Deployment

. Minimize scripting & customization – Stay close to the Out-Of-The-Box where feasible – Use Siebel features instead . Workflow can be used to encapsulate complicated business logic – Available from anywhere in the Siebel application – Available from outside application . Integration – Siebel is primarily a CRM system, not an integration hub – Best performance is always achieved by performing transformation and routing in the middleware – Asynchronous messaging yields significant better performance

48 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Proven Best Practices for Scalable Deployment Siebel Infrastructure . Siebel Gateway fix is a must for large scale deployments – Major improvement for Siebel Server start up and recycling – Please see the Alert (MOS - Doc Id 1450272.1) – Example: The first large customers using this fix see Siebel Enterprise Startup from ~2 hrs 40 mins down to ~ 15 mins . Siebel Connection Pooling reduces number of database connections There are 2 important QF (See MOS) – For majority of cases 1:2-5 ratio (1 connection for 2-5 users) . The 1:1 ratio keeps the connections which reduces significantly the cost of reconnection – For eAI, eProdCfg, and WFP 1:1-3

49 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Best Practices for Scalable Deployment Database and Query Tuning

. Eliminate or reduce the use of expensive queries: – Case-Insensitive queries – Sorting important data sets – Search specs generating large result sets . Tune the database – Please see Doc ID 781927.1 on MOS . Review and tune slow running queries – Siebel SQL Tagging in development – Workload Tagging in performance testing and in production

50 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Best Practices for Scalable Deployment Database and Query Tuning

. Be prepared to handle ad-hoc queries in production . Some long running queries are part of user transactions and must not be killed – Otherwise, users will restart . Once a query is killed, it could restart depending on the OM settings . Providing well-tuned PDQs could address certain of the above challenges

51 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel Workload Tagging

52 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Business Benefits . Siebel Workload Tagging adds significant monitoring capability to track SQL statements being issued by any Siebel OM-based component . Provides significant visibility to DBAs and Siebel Administrators into causes of poor performance through: – Oracle Enterprise Manager – Best way – V$SESSION and certain other V$ DB Views (using direct SQL queries against Oracle DB) – Cumbersome and time-consuming . User tracking for auditing purposes . User Name is maintained across all tiers even when using: – LDAP – Connection Pooling

53 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Workload Tagging for Production . When workload tagging is enabled, SQL statements generated by any Object Manager-based component are tagged with workload tagging attributes. . The DML SQL statements options are: – SELECT – INSERT, UPDATE, DELETE – SELECT, INSERT, UPDATE, DELETE . The values for these attributes are: ■ CLIENT_IDENTIFIER: Component Name, Server Name, Task ID, User ID, SARM ID ■ ACTION: Business Component Name [primary BC if more than 1] ■ MODULE: View Name NOTE: The length of the attribute values above is limited to 64 bytes for CLIENT_IDENTIFIER, 32 bytes for ACTION, and 48 bytes for MODULE. Truncation occurs when the length exceeds these limitations.

54 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Workload Tagging for Production . Available in Siebel 8.1.1.9 & 8.2.2.3 onward

. Currently available for Oracle Only

. Lightweight: – Our performance testing shows 2-3% of CPU overhead on the DB Server – The overhead on the Siebel Servers was found to be insignificant (< 1%)

. Can be set dynamically at run-time

55 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Enabling Workload Tagging

. Description for OCI SQL Tagging Levels . 0 Workload tagging is disabled. . 1 Workload tagging is disabled. This is the default setting. . 2 Workload tagging is enabled only for SELECT statements. . 3 Workload tagging is enabled only for INSERT, UPDATE, and DELETE statements. . 4 Workload tagging is enabled for SELECT, INSERT, UPDATE, and DELETE statements.

56 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Workload Tagging for Production . Oracle Enterprise Manager (OEM) is The best way to use Siebel Workload Tagging: – On the Home page Scroll down and click on "Top Activity“ – Check the "Top Session" and click on "Session ID" corresponding to Siebel application running tasks – It opens "Activity" page for this "Session ID". – Click on "General" tab and OCI attributes and values will be displayed.

Remark: Alternatively, you can use SQL Plus or similar tools to query the Oracle database V$SESSION and certain other V$ DB views to look up the CLIENT_IDENTIFIER, ACTION, and MODULE attributes by using SQL_ID of the SQL statement

57 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Finding the Source of BAD SQL in Siebel

58 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Finding the Source of BAD SQL in Siebel

59 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Finding the Source of BAD SQL in Siebel

60 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel SQL Tagging vs Workload Tagging Siebel SQL Tagging is exclusively for development phase . Piggyback extra column in queries that includes Siebel OM context

SELECT T6.CONFLICT_ID, T6.LAST_UPD, …, :CONTEXT FROM … WHERE …

. Turned on & off via a Siebel parameter

. Siebel OM Context Passed

Component Name, Server Name, Task Id, User Id, SARM Id, Business Component Name, Applet, View Name

. Example: The following is written into Object Manager log file

SCCObjMgr_enu,SDC78450svod,11534352, SADMIN, 0000022b4aaee054:0,Visible Contact List View

61 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Siebel SQL Tagging vs Workload Tagging Siebel SQL Tagging is exclusively for development phase . Exclusively for development phase – To troubleshoot customizations generating poor SQL statements – Could be combined with SQL log to obtain the fetch time – Useless in production – Millions/Billions of log file entries . Significant overhead and log file size . Advantages – Cross DB Platform – Available since Siebel 8.1.1.2 . Limitations – Bulks up every query result – Not always on – Not integrated into Oracle tools – Stored Outlines and SPM Plans will be affected by activating this features 62 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Summary of Oracle Database Best Practices

. Deploy the Siebel Maximum Availability Architecture . Use Oracle Database Replay for Siebel Testing . Apply our Performance Tuning Best Practices . Use Siebel Workload Tagging

63 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Graphic Section Divider

64 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.