Oracle variables and status (thanks to Tomas Geci)

This commit is contained in:
Jakub Vrana 2010-07-15 16:20:20 +02:00
parent 713a7007f6
commit e473aef32f

View file

@ -332,8 +332,22 @@ UNION SELECT view_name, 'view' FROM user_views" . ($name != "" ? " WHERE view_na
return true;
}
function show_variables() {
return get_key_vals('SELECT name, display_value FROM v$parameter');
}
function show_status() {
global $connection;
$return = array();
$result = $connection->query('SELECT * FROM v$instance');
foreach ($result->fetch_assoc() as $key => $val) {
$return[$key] = $val;
}
return $return;
}
function support($feature) {
return ereg("view|drop_col", $feature); //!
return ereg("view|drop_col|variables|status", $feature); //!
}
$jush = "oracle";