Cette page vous affiche les différences entre la révision choisie et la version actuelle de la page.
cluster_rac [2013/05/02 11:31] admin |
cluster_rac [2013/05/02 11:39] (Version actuelle) admin [Introduction] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~ODT~~ | ~~ODT~~ | ||
- | {{ :rac.png?|}}===== Introduction ===== | + | {{ :rac.png?|}} |
+ | ===== Introduction ===== | ||
Ce document présente la mise en place d'une plate-forme Oracle RAC 11gR2. Il s'agit d'un environnement mis en | Ce document présente la mise en place d'une plate-forme Oracle RAC 11gR2. Il s'agit d'un environnement mis en | ||
place pour une formation sur le sujet. L'adaptation sur un cas de production ne devrait pas poser de difficultés. | place pour une formation sur le sujet. L'adaptation sur un cas de production ne devrait pas poser de difficultés. | ||
Ligne 13: | Ligne 14: | ||
J'ai utilisé comme base le document Oracle, en langue anglaise, [[http://www.oracle.com/pls/db112/to_pdf?pathname=rac.112/e17264.pdf|2 days RAC disponible via ce lien]]: | J'ai utilisé comme base le document Oracle, en langue anglaise, [[http://www.oracle.com/pls/db112/to_pdf?pathname=rac.112/e17264.pdf|2 days RAC disponible via ce lien]]: | ||
- | |||
- | <sxh php; first-line: 70; highlight: [89,92]; title: New title attribute in action> | ||
- | public function render($mode, &$renderer, $data) { | ||
- | |||
- | if($mode != 'xhtml') return false; | ||
- | |||
- | if (count($data) == 3) { | ||
- | list($syntax, $attr, $content) = $data; | ||
- | if ($syntax == 'sxh') { | ||
- | // Check if there's a title in the attribute string. It can't be passed along as a normal parameter to SyntaxHighlighter. | ||
- | if (preg_match("/title:/i", $attr)) { | ||
- | // Extract title(s) from attribute string. | ||
- | $attr_array = explode(";",$attr); | ||
- | $title_array = preg_grep("/title:/i", $attr_array); | ||
- | // Extract everything BUT title(s) from attribute string. | ||
- | $not_title_array = preg_grep("/title:/i", $attr_array, PREG_GREP_INVERT); | ||
- | $attr = implode(";",$not_title_array); | ||
- | // If there are several titles, use the last one. | ||
- | $title = array_pop($title_array); | ||
- | $title = preg_replace("/.*title:\s{0,}(.*)/i","$1",$title); | ||
- | // Add title as an attribute to the <pre /> tag. | ||
- | $renderer->doc .= "<pre class=\"brush: ".$attr."\" title=\"".$title."\">".$renderer->_xmlEntities($content)."</pre>"; | ||
- | } else { | ||
- | // No title detected, pass all attributes as parameters to SyntaxHighlighter. | ||
- | $renderer->doc .= "<pre class=\"brush: ".$attr."\">".$renderer->_xmlEntities($content)."</pre>"; | ||
- | } | ||
- | } else { | ||
- | $renderer->file($content); | ||
- | } | ||
- | } | ||
- | |||
- | return true; | ||
- | } | ||
- | </sxh> | ||
- | <sxh> | ||
- | user@host:~/somedir $ ls # List current directory | ||
- | conf lang README screen.gif ui | ||
- | info.txt manager.dat renderer.php syntax.php | ||
- | user@host:~/somedir $ | ||
- | </sxh> | ||
- | |||
- | <konsole root> | ||
- | Teste | ||
- | </konsole> | ||
- | |||
- | <cli prompt='prompt ' comment='comment'> | ||
- | user@host:~/somedir $ ls # List current directory | ||
- | conf lang README screen.gif ui | ||
- | info.txt manager.dat renderer.php syntax.php | ||
- | user@host:~/somedir $ | ||
- | </cli> | ||
- | <box> | ||
- | azer | ||
- | </box> |