diff --git a/adminer/db.inc.php b/adminer/db.inc.php index 0dd09134..414de59e 100644 --- a/adminer/db.inc.php +++ b/adminer/db.inc.php @@ -74,11 +74,11 @@ if ($adminer->homepage()) { echo '' . lang('Table'); echo '' . lang('Engine') . doc_link(array('sql' => 'storage-engines.html')); echo '' . lang('Collation') . doc_link(array('sql' => 'charset-charsets.html', 'mariadb' => 'supported-character-sets-and-collations/')); - echo '' . lang('Data Length') . doc_link(array('sql' => 'show-table-status.html', 'pgsql' => 'functions-admin.html#FUNCTIONS-ADMIN-DBOBJECT')); + echo '' . lang('Data Length') . doc_link(array('sql' => 'show-table-status.html', 'pgsql' => 'functions-admin.html#FUNCTIONS-ADMIN-DBOBJECT', 'oracle' => 'REFRN20286')); echo '' . lang('Index Length') . doc_link(array('sql' => 'show-table-status.html', 'pgsql' => 'functions-admin.html#FUNCTIONS-ADMIN-DBOBJECT')); echo '' . lang('Data Free') . $doc_link; echo '' . lang('Auto Increment') . doc_link(array('sql' => 'example-auto-increment.html', 'mariadb' => 'auto_increment/')); - echo '' . lang('Rows') . doc_link(array('sql' => 'show-table-status.html', 'pgsql' => 'catalog-pg-class.html#CATALOG-PG-CLASS')); + echo '' . lang('Rows') . doc_link(array('sql' => 'show-table-status.html', 'pgsql' => 'catalog-pg-class.html#CATALOG-PG-CLASS', 'oracle' => 'REFRN20286')); echo (support("comment") ? '' . lang('Comment') . doc_link(array('sql' => 'show-table-status.html', 'pgsql' => 'functions-info.html#FUNCTIONS-INFO-COMMENT-TABLE')) : ''); echo "\n"; diff --git a/adminer/foreign.inc.php b/adminer/foreign.inc.php index c526323c..02392eb0 100644 --- a/adminer/foreign.inc.php +++ b/adminer/foreign.inc.php @@ -97,7 +97,7 @@ foreach ($row["source"] as $key => $val) { 'mariadb' => "foreign-keys/", 'pgsql' => "sql-createtable.html#SQL-CREATETABLE-REFERENCES", 'mssql' => "ms174979.aspx", - 'oracle' => "clauses002.htm#sthref2903", + 'oracle' => "https://docs.oracle.com/cd/B19306_01/server.102/b14200/clauses002.htm#sthref2903", )); ?>

diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php index eb44fc8d..81577801 100644 --- a/adminer/include/editing.inc.php +++ b/adminer/include/editing.inc.php @@ -528,12 +528,15 @@ function doc_link($paths, $text = "?") { global $jush, $connection; $server_info = $connection->server_info; $version = preg_replace('~^(\d\.?\d).*~s', '\1', $server_info); // two most significant digits + if (preg_match('~Oracle~', $server_info)) { + $version = preg_replace('~^.* (\d+)\.(\d+)\.\d+\.\d+\.\d+.*~s', '\1\2', $server_info); + } $urls = array( 'sql' => "https://dev.mysql.com/doc/refman/$version/en/", 'sqlite' => "https://www.sqlite.org/", 'pgsql' => "https://www.postgresql.org/docs/$version/static/", 'mssql' => "https://msdn.microsoft.com/library/", - 'oracle' => "https://download.oracle.com/docs/cd/B19306_01/server.102/b14200/", + 'oracle' => "https://www.oracle.com/pls/topic/lookup?ctx=db$version&id=", ); if (preg_match('~MariaDB~', $server_info)) { $urls['sql'] = "https://mariadb.com/kb/en/library/"; diff --git a/adminer/processlist.inc.php b/adminer/processlist.inc.php index abf93574..c2affc6a 100644 --- a/adminer/processlist.inc.php +++ b/adminer/processlist.inc.php @@ -27,7 +27,7 @@ foreach (process_list() as $i => $row) { echo "$key" . doc_link(array( 'sql' => "show-processlist.html#processlist_" . strtolower($key), 'pgsql' => "monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", - 'oracle' => "../b14237/dynviews_2088.htm", + 'oracle' => "REFRN30223", )); } echo "\n";