Bug 674806 - Satellite with embedded database: supported mechanisms to check and set correct database optimizer settings
Summary: Satellite with embedded database: supported mechanisms to check and set corre...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 540
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Martin Minar
URL:
Whiteboard:
Depends On:
Blocks: sat541-blockers sat541-upgrades
TreeView+ depends on / blocked
 
Reported: 2011-02-03 12:29 UTC by Milan Zázrivec
Modified: 2016-07-04 00:55 UTC (History)
5 users (show)

Fixed In Version: spacewalk-web-1.2.7-16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-17 02:43:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 480562 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Bugzilla 486526 0 medium CLOSED satellite-debug - additional data: usage, sudoers/user/group info, and database optimizer settings 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 674800 0 unspecified CLOSED Upgrade documentation: mention requirement to check database optimizer settings before schema upgrade 2021-02-22 00:41:40 UTC

Internal Links: 480562 486526 674800

Description Milan Zázrivec 2011-02-03 12:29:24 UTC
Description of problem:
To prevent problems caused by customers using rule based database optimizer
(e.g. slow / stalled database queries), we need to implement several
mechanisms which will allow for checking and setting database optimizer
settings in a supported manner.

We need to implement the following:

* Installer (spacewalk-setup) will check for optimizer settings (if possible)
and warn in case it's set to rule based.

* Oracle database upgrades (not schema upgrades!) will restore cost based
optimizer if needed.

* db-control tool (spacewalk-dobby package available in embedded db variants)
will be able to check and set database optimizer settings.


Version-Release number of selected component (if applicable):
Satellite 5.4

How reproducible:
Always

Steps to Reproduce:
1. Check whether the Satellite contains the functionality described above.
  
Actual results:
The above functionality is not present in Satellite.

Expected results:
The above functionality is present in Satellite.

Additional info:
N/A

Comment 1 Milan Zázrivec 2011-04-14 09:45:00 UTC
New db-control commands: get-optimizer / set-optimizer

spacewalk.git master: 7fd21d78c151cb824228e4f744020e9d61b64291
satellite.git SATELLITE-5.4: d0f2abac66d9138d713398068e5a32589aa59862

Comment 2 Milan Zázrivec 2011-04-14 11:39:27 UTC
In the end, only the db-control get-optimizer / set-optimizer functionality
will be implemented as a part of this bug.

Comment 5 Šimon Lukašík 2011-06-01 09:07:00 UTC
Verified in stage with spacewalk-dobby-1.2.7-18.el5sat

Good:
 - The cost based modes are identified as supported
 - The rule based optimizer is identified as unsupported
 - The correction is advised
 - 'db-control set-optimizer' alters system to all_rows

Note:
 - A new option get-optimizer/set-optimizer is not described in the man
   page. However, the 'db-control help' shows a short description.

Comment 6 Clifford Perry 2011-06-17 02:43:23 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

https://rhn.redhat.com/errata/RHEA-2011-0875.html


Note You need to log in before you can comment on or make changes to this bug.