Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1.  
  2. HOW TO INSTALL ORACLE SUPPORT IN DRUPAL 7
  3.  
  4. EXTRACT FILES
  5.  
  6. cd <path to drupal dir>/includes/database/
  7. tar xzvf <oracle-7.x-*.tar.gz>
  8. cd oracle/module
  9. mv oracle <path to drupal dir>/sites/all/modules
  10.  
  11. CREATE A SCHEMA
  12.  
  13. Create a user with appropriate defauls and temporary tablespaces:
  14.  
  15. sqlplus / as sysdba
  16.  
  17. grant connect,resource to drupal identified by drupal;
  18. alter user drupal default tablespace users temporary tablespace temp;
  19. grant execute on dbms_crypto to drupal;
  20.  
  21. -- Optionally to use performance views:
  22. grant select on v_$sql_plan to drupal;
  23. grant select on v_$sqlarea to drupal;
  24.  
  25. Or if you want to use table prefixes (read for details http://api.drupal.org/api/drupal/sites--default--default.settings.php/7/source):
  26.  
  27. grant dba, create any trigger, drop any table, select any table,
  28. select any sequence, create user to drupal identified by drupal;
  29. grant connect, resource to drupal with admin option;
  30. alter user drupal default tablespace users temporary tablespace temp;
  31.  
  32. (TODO: those privilege are actually relaxed and should be better
  33. defined in the future, in general they are not needed for existing tables,
  34. but if you use modules like "Testing" you need to grant the drupal user rights
  35. to create users because this kind of modules creates tables prefixes on the fly)
  36.  
  37. INSTALL DRUPAL
  38.  
  39. Run http://<host>:<port>/drupal/install.php
  40.  
  41. Refer to Drupal installation instructions for general information.
  42.  
  43. For Oracle Database, typically the "Database name" will be the
  44. Oracle service name and the "Database Host" (A required field shown
  45. in the "Advanced" section) will the database's host server name.
  46. For example to use Oracle Database XE which is running on the same
  47. machine as Drupal, set "Database name" to "XE" and "Database host"
  48. to "localhost".
  49.  
  50. Thanks to siromega it is possible to use a tnsnames.ora alias or any
  51. TNS valid string by specifying USETNS as the "Database host" at
  52. installation time and using the TNS string in the "Database name"
  53. field. This may be particularly useful if you need to connect to an
  54. Oracle RAC instance.
  55.  
  56.  
  57. POST INSTALLATION
  58.  
  59. Once your site is installed go to
  60. http://<host>:<port>/drupal/admin/modules
  61. and enable the Oracle module.
  62.  
  63. Then go to
  64. http://<host>:<port>/admin/config/development/oracle/blob
  65. and click "Schedule"
  66.  
  67. Finally create linguistic indexes in your desired tablespace. If no
  68. tablespace name is passed, the indexes are created in the USERS
  69. tablespace.
  70.  
  71. sqlplus drupal/drupal
  72. exec create_linguistic_indexes('MYINDEXTABLESPACENAME')
  73.  
  74.  
  75. ENJOY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement