Oracle variables and status (thanks to Tomas Geci)
This commit is contained in:
parent
713a7007f6
commit
e473aef32f
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue