Hot News:

Mit Unterstützung durch:

  Foren auf CAD.de
  PTC Pro/INTRALINK
  Optimizer_mode

Antwort erstellen  Neues Thema erstellen
CAD.de Login | Logout | Profil | Profil bearbeiten | Registrieren | Voreinstellungen | Hilfe | Suchen

Anzeige:

Darstellung des Themas zum Ausdrucken. Bitte dann die Druckfunktion des Browsers verwenden. | Suche nach Beiträgen nächster neuer Beitrag | nächster älterer Beitrag
  
Gut zu wissen: Hilfreiche Tipps und Tricks aus der Praxis prägnant, und auf den Punkt gebracht für PTC CREO
  
Klietsch und INNEO gehen eine strategische Partnerschaft ein, eine Pressemitteilung
Autor Thema:  Optimizer_mode (975 mal gelesen)
andschne
Mitglied



Sehen Sie sich das Profil von andschne an!   Senden Sie eine Private Message an andschne  Schreiben Sie einen Gästebucheintrag für andschne

Beiträge: 132
Registriert: 05.11.2001

ME10 Makro Konig bis Version 10...
Pro/E
Pro/Intralink seit1.1
Pro/PDM
Windchill kenn ich auch noch
Oracle 1-1999999999 oder so (alles was kommt:)

erstellt am: 07. Jan. 2002 12:32    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities

Hallo Forum,

Allen ein gutes Neues Jahr!

Es ist öffter schon mal die Frage nach dem Optimizer_mode aufgekommen. Damit nicht jeder seinen local DBA consulten muß habe ich mal kurz was aus der Oracle Dokumentation Kopiert.
Ab hier dann aber nur noch in Englisch:

Optimization is the process of choosing the most efficient way to execute a SQL statement. This is an important step in the processing of any data manipulation language (DML) statement: SELECT, INSERT, UPDATE, or DELETE (a.s. Das was man so in INNTRALINK Tag ein Tag aus macht). Many different ways to execute a SQL statement often exist, for example, by varying the order in which tables or indexes are accessed. The procedure Oracle uses to execute a statement can greatly affect how quickly the statement executes.
A part of Oracle called the optimizer calculates the most efficient way to execute a SQL statement. The optimizer evaluates many factors to select among alternative access paths. It can use a cost-based or rule-based approach.

Note: The optimizer may not make the same decisions from one
version of Oracle to the next. In more recent versions, the optimizer
may make different decisions based on better, more sophisticated
information available to it.

You can influence the optimizer’s choices by setting the optimizer approach and goal and by gathering statistics for cost-based optimization. Sometimes the application designer, who has more information about a particular application’s data than is available to the optimizer, can choose a more effective way to execute a
SQL statement (a.s. leider hält sich PTC an dieser Stelle ja immer sehr bedekt, so das dieser weg ausfällt). The application designer can use hints in SQL statements to specify how the statement should be executed.

Costbased Optimizer
Using the cost-based approach, the optimizer determines which execution plan is most efficient by considering available access paths and factoring in information based on statistics for the schema objects (tables or indexes) accessed by the SQL statement. The cost-based approach also considers hints, which are optimization
suggestions placed in a Comment in the statement.
Conceptually, the cost-based approach consists of these steps:
1. The optimizer generates a set of potential execution plans for the SQL statement based on its available access paths and hints.
2. The optimizer estimates the cost of each execution plan based on statistics in the data dictionary for the data distribution and storage characteristics of the tables, indexes, and partitions accessed by the statement. The cost is an estimated value proportional to the expected resource use needed to execute the statement with a particular execution plan. The optimizer calculates the cost of each possible access method and join order based on the
estimated computer resources, including (but not limited to) I/O, CPU time, and memory, that are required to execute the statement using the plan. Serial execution plans with greater costs take more time to execute than those with smaller costs. When using a parallel execution plan, however, resource use is not directly related to elapsed time.
3. The optimizer compares the costs of the execution plans and chooses the one with the smallest cost.

Rule- Based Optimizer

Using the rule-based approach, the optimizer chooses an execution plan based on the access paths available and the ranks of these access paths. You can use rule-based optimization to access both relational data and object types.
Oracle’s ranking of the access paths is heuristic. If there is more than one way to execute a SQL statement, the rule-based approach always uses the operation with the lower rank. Usually, operations of lower rank execute faster than those associated with constructs of higher rank.
For more information, see "Choosing an Access Path with the Rule-Based Approach" on page 23-54.


Und ab hier geht es dann richtig ans Oracle eingemachte.

An dieser Stellen muß man dann darüber diskutieren wie Oracle einzelne SQL- Statements abarbeitet.


Gruß
Andreas

Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

DetlefTeuteberg
Mitglied
Solution Developer und Application Manager


Sehen Sie sich das Profil von DetlefTeuteberg an!   Senden Sie eine Private Message an DetlefTeuteberg  Schreiben Sie einen Gästebucheintrag für DetlefTeuteberg

Beiträge: 37
Registriert: 07.03.2001

erstellt am: 04. Feb. 2002 15:33    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities Nur für andschne 10 Unities + Antwort hilfreich

Hallo Andreas..
toller Beitrag... kann man die Oracle-Doku irgendwie im WWW einsehen oder weißt Du einen anderen Weg, wie man sich da ein wenig schlau lesen kann?

viele Grüße,
Detlef

Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

andschne
Mitglied



Sehen Sie sich das Profil von andschne an!   Senden Sie eine Private Message an andschne  Schreiben Sie einen Gästebucheintrag für andschne

Beiträge: 132
Registriert: 05.11.2001

ME10 Makro Konig bis Version 10...
Pro/E
Pro/Intralink seit1.1
Pro/PDM
Windchill kenn ich auch noch
Oracle 1-1999999999 oder so (alles was kommt:)

erstellt am: 04. Feb. 2002 23:57    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities

Hallo,

Ich denke ich brauche noch mal ein paar Tage um das PDF File wieder zu finden aber dann steht dem nicht im Wege die Datei entweder über die Mail an Interessenten zu verteilen oder sie ggf. ins Internet zu stellen.

Gruß
Andreas

Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

Anzeige.:

Anzeige: (Infos zum Werbeplatz >>)

Darstellung des Themas zum Ausdrucken. Bitte dann die Druckfunktion des Browsers verwenden. | Suche nach Beiträgen

nächster neuerer Beitrag | nächster älterer Beitrag
Antwort erstellen


Diesen Beitrag mit Lesezeichen versehen ... | Nach anderen Beiträgen suchen | CAD.de-Newsletter

Administrative Optionen: Beitrag schliessen | Archivieren/Bewegen | Beitrag melden!

Fragen und Anregungen: Kritik-Forum | Neues aus der Community: Community-Forum

(c)2025 CAD.de | Impressum | Datenschutz