{"id":20327,"date":"2022-03-25T13:45:52","date_gmt":"2022-03-25T12:45:52","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-portal\/installers-guide\/installing-oracle-pdo-and-ms-sql-extensions\/"},"modified":"2024-06-07T12:57:45","modified_gmt":"2024-06-07T10:57:45","slug":"installing-oracle-pdo-and-ms-sql-extensions","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-portal\/installers-guide\/installing-oracle-pdo-and-ms-sql-extensions\/","title":{"rendered":"Installing Oracle PDO and MS SQL Extensions"},"content":{"rendered":"<div id=\"main-content\" class=\"wiki-content group\">\n<p>In order to be able to make external SQL connections, such as ORACLE or Microsoft SQL SERVER, it is necessary to configure PHP PDO extensions: <a href=\"Installation-des-extensions-PDO-Oracle-et-MS-SQL_263880744.html\">http:\/\/php.net\/manual\/fr\/book.pdo.php<\/a>.<\/p>\n<h2 id=\"InstallationdesextensionsPDOOracleetMSSQL-DriversMicrosoftSQLSERVER\"><strong>Drivers Microsoft SQL SERVER<\/strong><\/h2>\n<h3 id=\"InstallationdesextensionsPDOOracleetMSSQL-Windows\"><strong>Windows<\/strong><\/h3>\n<p>The SQL to SQL Server connection driver is pre-installed and configured by default since version 6.9.0 of Open Bee\u2122 Portal.<\/p>\n<h3 id=\"InstallationdesextensionsPDOOracleetMSSQL-Linux\"><strong>Linux<\/strong><\/h3>\n<p>The <strong><em><a class=\"external-link\" href=\"http:\/\/mssql.so\" rel=\"nofollow\">mssql.so<\/a><\/em><\/strong> extension offers a driver for php to connect to a <strong>Microsoft <span style=\"color: #373737;\">SQL Server<\/span><\/strong> database.<\/p>\n<p>To successfully enable the connection to a <strong>Microsoft <span style=\"color: #373737;\">SQL Server<\/span><\/strong> database <span style=\"color: #373737;\"> ,<\/span>simply run the following two commands to install the mssql module:<\/p>\n<div class=\"code panel pdl\" style=\"border-width: 1px;\">\n<div class=\"codeContent panelContent pdl\">\n<pre class=\"theme: Confluence; brush: actionscript3; gutter: false\" style=\"font-size: 12px;\"> apt-get install -f php5-sybase -y --force-yes\n pear install --nodeps MDB2_Driver_mssql<\/pre>\n<\/div>\n<\/div>\n<p><strong style=\"font-size: 16.0px;\"> <\/strong><\/p>\n<h2 id=\"InstallationdesextensionsPDOOracleetMSSQL-ORACLE\"><strong style=\"font-size: 16.0px;\">ORACLE<\/strong><\/h2>\n<h3 id=\"InstallationdesextensionsPDOOracleetMSSQL-Windows.1\"><strong>Windows<\/strong><\/h3>\n<p>The <em><strong>pdo_oci<\/strong><\/em> extension offers an Oracle driver for <em>php<\/em> so that it can connect to the <strong>Oracle<\/strong> database.<\/p>\n<ul>\n<li>Download Oracle <em>Instant Client<\/em> from <strong><br \/>\n  <a class=\"external-link\" href=\"http:\/\/www.oracle.com\/technetwork\/database\/database-technologies\/instant-client\/downloads\/index.html\" rel=\"nofollow\">the Oracle site<\/a><br \/>\n<\/strong> and download:<\/li>\n<\/ul>\n<p style=\"margin-left: 30.0px;\"><span style=\"color: #000000;\"><br \/>\n  <span style=\"color: #000000;\"><strong>Version 12.2.0.1.0 <\/strong>=&gt;<\/span><br \/>\n<\/span><em>instantclient-basic-nt-12.2.0.1.0.zip<span style=\"color: #000000;\">(71,881,824 bytes) (cksum &#8211; 3943816961) <\/span><\/em><br \/>\n<span style=\"color: #000000;\"><br \/>\n<\/span><\/p>\n<ul>\n<li>Extract Oracle Instant Client Files from Zip <em>Archives in C:Program Files (x86)OpenBeeOpenBeePortal5Utility<\/em><\/li>\n<li>Add the <em>C:Program Files (x86)OpenBeeOpenBeePortal5Utilityinstantclient_12_2<\/em> directory to your Windows PATH.<br \/>\n<u><span style=\"color: #000000;\">Note<\/span><\/u>: Be sure to insert the <em>Instant Client<\/em> directory before any other Oracle paths in the path list.<\/li>\n<\/ul>\n<ul>\n<li>Verify that the <em>php_pdo_oci.dll<\/em> extension exists in <em>C:Program Files (x86)OpenBeeOpenBeePortal5Apache24modulesphp5ext<\/em><\/li>\n<\/ul>\n<p><em> <\/em><\/p>\n<ul>\n<li>Activate the php_ extension <em>pdo_oci<\/em> by editing <em>C:Program Files (x86)OpenBeeOpenBeePortal5Apache24Modulesphp5php.ini<\/em> and decommitting the line ( remove the &#8220;;&#8221; at the beginning of the line ) and save:<\/li>\n<\/ul>\n<div class=\"code panel pdl\" style=\"border-width: 1px;\">\n<div class=\"codeContent panelContent pdl\">\n<pre class=\"theme: Confluence; brush: java; gutter: false\" style=\"font-size: 12px;\">extension=php_pdo_oci.dll<\/pre>\n<\/div>\n<\/div>\n<ul>\n<li>In a console (Batch or Powershell), run<\/li>\n<\/ul>\n<div class=\"code panel pdl\" style=\"border-width: 1px;\">\n<div class=\"codeContent panelContent pdl\">\n<pre class=\"theme: Confluence; brush: java; gutter: false\" style=\"font-size: 12px;\">php -i | findstr oci<\/pre>\n<\/div>\n<\/div>\n<p>Check that there is no error displayed and that the &#8220;PDO drivers&#8221; line contains the value &#8220;oci&#8221;:<\/p>\n<div class=\"code panel pdl\" style=\"border-width: 1px;\">\n<div class=\"codeContent panelContent pdl\">\n<pre class=\"theme: Confluence; brush: java; gutter: false\" style=\"font-size: 12px;\">PDO drivers =&gt; mysql, oci, odbc, sqlsrv<\/pre>\n<\/div>\n<\/div>\n<ul>\n<li>Restart the Apache service.<\/li>\n<\/ul>\n<\/div>\n<p><strong><u>Here&#8217;s the new procedure for connecting with Oracle in odbc starting with 6.14.6:<\/u><\/strong><\/p>\n<p><em>(This example shows how to make a SQL connection with Oracle 12g)<\/em><\/p>\n<p>1\/ Download the two ZIP files from Oracle&#8217;s website (you need to have an account on Oracle&#8217;s website to be able to download).<\/p>\n<p>Download Oracle <em>Instant Client<\/em> from <strong><br \/>\n  <a class=\"external-link\" href=\"http:\/\/www.oracle.com\/technetwork\/database\/database-technologies\/instant-client\/downloads\/index.html\" rel=\"nofollow\">the Oracle site<\/a><br \/>\n<\/strong> and download:<\/p>\n<p style=\"margin-left: 30.0px;\"><span style=\"color: #000000;\"><strong>Version 12.2.0.1.0 version 64 bit <\/strong>=&gt;<\/span><em>instantclient-basic-windows.x64-12.2.0.1.0.zip and instantclient-basic-windows.x64-12.2.0.1.0-2.zip<\/em><\/p>\n<p>2\/ Unzip the first zip in &#8220;C:\\instantclient_12_2&#8221;<\/p>\n<p>3\/ Add the path &#8220;C:\\instantclient_12_2&#8221; in the &#8220;PATH&#8221; environment variable For the Windows System and not for the user<\/p>\n<p>4\/ Unzip the contents of the second zip in the same directory &#8220;C:\\instantclient_12_2&#8221;<\/p>\n<p>5\/ Launch the console as an administrator from the &#8220;C:\\instantclient_12_2&#8221; directory, then run the following commands:<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"626\">odbc_install.exe<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>6\/ Restart the server machine so that it can read the new environment variable added to the PATH System<\/p>\n<p>7\/ On Windows, check for the &#8220;Oracle in instantclient_12_2&#8221; driver in the list of 64-bit ODBC drivers<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-20017\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/ODBC-64-translated-300x218.png\" alt=\"\" width=\"300\" height=\"218\" srcset=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/ODBC-64-translated-300x218.png 300w, https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/ODBC-64-translated.png 460w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-20018\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/Liste-source-ODBC-64bit-translated-300x221.png\" alt=\"\" width=\"300\" height=\"221\" srcset=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/Liste-source-ODBC-64bit-translated-300x221.png 300w, https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/Liste-source-ODBC-64bit-translated.png 743w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><strong>PHP Configuration:<\/strong><\/p>\n<p>1\/ Activate the 3 PHP extensions &#8220;pdo_oci&#8221;, &#8220;oci8_12c&#8221; and &#8220;pdo_odbc&#8221; from the file<\/p>\n<p>&#8220;C:\\Program Files (x86)\\OpenBee\\OpenBeePortal5\\Apache24\\modules\\php7\\php.ini&#8221;<\/p>\n<p>2\/ Type the following command and check that there are no errors on the output of the console and that the 3 extensions appear in the output:<\/p>\n<p>php -m<\/p>\n<p>3\/ Restart Apache<\/p>\n<p><strong>Example of the new ODBC strings to be put:<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"818\">odbc:Driver={Oracle in instantclient_12_2}; Dbq=[Adresse du serveur Oracle]\/[Nom du service]; uid=Name_User; Pwd=Password;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div id=\"main-content\" class=\"wiki-content group\">\n<h3 id=\"InstallationdesextensionsPDOOracleetMSSQL-Linux.1\"><strong>Linux<\/strong><\/h3>\n<p>Connections from an Open Bee\u2122 Portal installed on Linux, to an ORACLE database are not supported.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In order to be able to make external SQL connections, such as ORACLE or Microsoft SQL SERVER, it is necessary to configure PHP PDO extensions: http:\/\/php.net\/manual\/fr\/book.pdo.php. Drivers Microsoft SQL SERVER Windows The SQL to SQL Server connection driver is pre-installed and configured by default since version 6.9.0 of Open Bee\u2122 Portal. Linux The mssql.so extension [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":20153,"menu_order":11,"comment_status":"closed","ping_status":"closed","template":"templates\/ob-help-products.php","meta":{"footnotes":""},"class_list":["post-20327","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/comments?post=20327"}],"version-history":[{"count":7,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20327\/revisions"}],"predecessor-version":[{"id":22504,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20327\/revisions\/22504"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20153"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=20327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}