{"id":305,"date":"2015-07-21T07:55:15","date_gmt":"2015-07-21T07:55:15","guid":{"rendered":"http:\/\/blog.tiran.info\/?p=305"},"modified":"2017-12-05T14:17:04","modified_gmt":"2017-12-05T13:17:04","slug":"installation-de-oracle-data-miner-4-0","status":"publish","type":"post","link":"https:\/\/blog.tiran.stream\/?p=305","title":{"rendered":"Installation de Oracle Data Miner 4.0"},"content":{"rendered":"<p style=\"text-align: justify;\">Oracle Data Miner est un GUI permettant d&rsquo;interagir avec l&rsquo;option Oracle Data Mining (ODM). Celui-ci est distribu\u00e9 en tant que module de <a href=\"http:\/\/www.oracle.com\/technetwork\/developer-tools\/sql-developer\/overview\/index-097090.html\" target=\"_blank\" rel=\"noopener\">SQLDeveloper<\/a>.<\/p>\n<p style=\"text-align: justify;\">L&rsquo;outil requiert un repository h\u00e9berg\u00e9 dans un sch\u00e9ma ODMRSYS au sein de chaque base ou l&rsquo;on souhaite mettre en oeuvre des m\u00e9canismes ODM. Ce repository est cr\u00e9\u00e9 directement via l&rsquo;interface SQLDeveloper. Cf. <a href=\"https:\/\/docs.oracle.com\/cd\/E55747_01\/doc.41\/e58244\/toc.htm\" target=\"_blank\" rel=\"noopener\">Data Miner Installation and Administration Guide<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>V\u00e9rification des\u00a0pr\u00e9requis<\/strong><\/p>\n<p style=\"text-align: justify;\">Oracle Data Miner requiert que l&rsquo;option Data Mining (faisant elle-m\u00eame partie de l&rsquo;option Advanced Analytics) soit activ\u00e9e sur la base cible. De plus les composants Oracle Text et XMLDB doivent aussi \u00eatre install\u00e9s:<\/p>\n<pre>P:\\&gt;sqlplus \/ as sysdba\r\n\r\nSQL*Plus: Release 12.1.0.2.0 Production on Thu Jul 2 11:12:58 2015\r\n\r\nCopyright (c) 1982, 2014, Oracle.  All rights reserved.\r\n\r\n\r\nConnected to:\r\nOracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production\r\nWith the Partitioning, OLAP, Advanced Analytics and Real Application Testing options\r\n\r\nSQL&gt; col PARAMETER format a20\r\nSQL&gt; col VALUE format a20\r\nSQL&gt; \r\nSQL&gt; SELECT *\r\n  2    FROM v$option\r\n  3   WHERE parameter IN (&#039;Advanced Analytics&#039;, &#039;Data Mining&#039;);\r\n\r\nPARAMETER            VALUE                    CON_ID\r\n-------------------- -------------------- ----------\r\nAdvanced Analytics   TRUE                          0\r\nData Mining          TRUE                          0\r\n\r\nSQL&gt;\r\nSQL&gt; col COMP_ID format a15\r\nSQL&gt; col COMP_NAME format a20\r\nSQL&gt; col VERSION format a15\r\nSQL&gt; col STATUS format a15\r\nSQL&gt;\r\nSQL&gt; SELECT comp_id,\r\n  2         comp_name,\r\n  3         version,\r\n  4         status\r\n  5    FROM dba_registry\r\n  6   WHERE comp_id in (&#039;CONTEXT&#039;,&#039;XDB&#039;);\r\n\r\nCOMP_ID         COMP_NAME            VERSION         STATUS\r\n--------------- -------------------- --------------- ---------------\r\nCONTEXT         Oracle Text          12.1.0.2.0      VALID\r\nXDB             Oracle XML Database  12.1.0.2.0      VALID\r\n\r\nSQL&gt;<\/pre>\n<p style=\"text-align: justify;\"><strong>Cr\u00e9ation\u00a0du\u00a0repository<\/strong><\/p>\n<p style=\"text-align: justify;\">L&rsquo;acc\u00e9s au module Data Miner est r\u00e9alis\u00e9 via Affichage &gt; Data Miner &gt; Connexions Data Miner:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/first-cnx.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-309\" src=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/first-cnx.png\" alt=\"first-cnx\" width=\"300\" height=\"108\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">On indique alors la connexion \u00e0 utiliser:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/cnx-choix.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-307\" src=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/cnx-choix.png\" alt=\"cnx-choix\" width=\"300\" height=\"194\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Comme il s&rsquo;agit de la premi\u00e8re connexion \u00e0 la base depuis le module Data Miner, celui-ci d\u00e9tecte que le repository est absent et il propose sa cr\u00e9ation:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/no-repo.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-310\" src=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/no-repo.png\" alt=\"no-repo\" width=\"300\" height=\"101\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">En cliquant OK, j&rsquo;obtiens un message bizarre&#8230;<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/err-msg.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-308\" src=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/err-msg.png\" alt=\"err-msg\" width=\"300\" height=\"113\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">L&rsquo;utilisateur RAFA dispose pourtant bien d&rsquo;un tablespace par d\u00e9faut sur lequel il peut \u00e9crire (via le privil\u00e8ge UNLIMITED TABLESPACE):<\/p>\n<pre>SQL&gt; SELECT default_tablespace\r\n  2    FROM dba_users\r\n  3   WHERE username = &#039;RAFA&#039;;\r\n\r\nDEFAULT_TABLESPACE\r\n------------------------------\r\nTS_DATA\r\n\r\nSQL&gt; SELECT *\r\n  2    FROM dba_sys_privs\r\n  3   WHERE privilege = &#039;UNLIMITED TABLESPACE&#039;\r\n  4     AND grantee   = &#039;RAFA&#039;;\r\n\r\nGRAN PRIVILEGE            ADM COM\r\n---- -------------------- --- ---\r\nRAFA UNLIMITED TABLESPACE NO  NO\r\n\r\nSQL&gt;<\/pre>\n<p style=\"text-align: justify;\">Pour contourner le probl\u00e8me je lui octroie explicitement un quota illimit\u00e9 sur le tablespace en question.<\/p>\n<pre>SQL&gt; ALTER USER rafa QUOTA UNLIMITED ON ts_data;\r\n\r\nUser altered.\r\n\r\nSQL&gt;<\/pre>\n<p style=\"text-align: justify;\">L&rsquo;installeur accepte alors de poursuivre l&rsquo;op\u00e9ration.<br \/>\nUne fois indiqu\u00e9 le mot de passe de SYS et les param\u00e8tres de stockage confirm\u00e9s, l&rsquo;installation peut d\u00e9marrer:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/sys-cnx.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-313\" src=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/sys-cnx.png\" alt=\"sys-cnx\" width=\"300\" height=\"107\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/repo-params.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-312\" src=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/repo-params.png\" alt=\"repo-params\" width=\"300\" height=\"150\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Elle dure quelques minutes et \u00e0\u00a0l&rsquo;issue, on peut acc\u00e9der au menu contextuel de cr\u00e9ation de projets ODM:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/odm-menu.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-311\" src=\"https:\/\/blog.tiran.stream\/wp-content\/uploads\/2015\/07\/odm-menu.png\" alt=\"odm-menu\" width=\"283\" height=\"291\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oracle Data Miner est un GUI permettant d&rsquo;interagir avec l&rsquo;option Oracle Data Mining (ODM). Celui-ci est distribu\u00e9 en tant que<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[5,7],"tags":[],"class_list":["post-305","post","type-post","status-publish","format-standard","hentry","category-odm","category-oracle-advanced-analytics"],"_links":{"self":[{"href":"https:\/\/blog.tiran.stream\/index.php?rest_route=\/wp\/v2\/posts\/305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.tiran.stream\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.tiran.stream\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.tiran.stream\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.tiran.stream\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=305"}],"version-history":[{"count":2,"href":"https:\/\/blog.tiran.stream\/index.php?rest_route=\/wp\/v2\/posts\/305\/revisions"}],"predecessor-version":[{"id":1158,"href":"https:\/\/blog.tiran.stream\/index.php?rest_route=\/wp\/v2\/posts\/305\/revisions\/1158"}],"wp:attachment":[{"href":"https:\/\/blog.tiran.stream\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.tiran.stream\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.tiran.stream\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}