Skip to content

Commit ad6e054

Browse files
authored
Merge pull request #60 from dreamfactorysoftware/win-oracle-install
Win oracle install
2 parents 7e22ad4 + 924398a commit ad6e054

File tree

8 files changed

+48
-4
lines changed

8 files changed

+48
-4
lines changed

docs/Installing DreamFactory/windows-installation.md

+45-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ The v17 and v18 drivers should have been installed during the previous steps, if
203203

204204
Open the Windows_5.12.0RTW.zip downloaded earlier, in the x64 folder there should be 4 .dll files. Copy/paste the **two** nts (Non Thread Safe) .dll into your php ext folder (`C:\php\ext\`)
205205

206-
Then, rename both files removing the "_81_nts" at the end of the filename. The files are named:
206+
Then, rename both files removing the "_83_nts" at the end of the filename. The files are named:
207207

208208
- php_pdo_sqlsrv.dll
209209
- php_sqlsrv.dll
@@ -363,3 +363,47 @@ After completing the setup, you can navigate to the server's IP address or hostn
363363
## Adding SSL
364364

365365
For details on adding SSL, DreamFactory recommends using [certbot](https://certbot.eff.org/instructions?ws=other&os=windows). Follow the instructions from the provided link to help you through the process.
366+
367+
## Installing Oracle Driver
368+
The process of installing Oracle drivers is a more manual process than with our Linux installers. To begin you will need to download 3 things:
369+
- The Oracle "Basic" Instant Client package from [Oracle's Website](https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html) (Example file instantclient-basic-windows.x64-23.7.0.25.01.zip)
370+
- The Oracle “SDK” Instant Client Package from [Oracle's Website](https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html) (Example file instantclient-sdk-windows.x64-23.7.0.25.01.zip)
371+
- The PHP oci8 extension (DLL) available at [Pecl PHP Site](https://pecl.php.net/package/oci8) By default, DreamFactory runs on PHP 8.3 so you will want the x64 package of that (version 3.2.1). If you are running DreamFactory using IIS as your webserver you must be using the non thread safe version of PHP.
372+
373+
![Web Server Role selection](/img/windows-install/PeclDLLPage.png)
374+
- `Note you will want to click on the DLL button under downloads on the Pecl site for windows .dll files`
375+
- `Unless you have good reason, choose the appropriate DLLs with the NTS tag`
376+
377+
- Next you will create a folder where the Oracle drivers will be kept, for example `C:\oracledrivers` and extract the Oracle "Basic" Instant Client there. The files will be extracted into a subdirectory called `instantclient_<version>.` Example:
378+
379+
`C:\oracledrivers\instantclient23_7`
380+
381+
- Next we will extract the "SDK" Instant Client to the same folder i.e. `C:\oracledrivers`. We want the SDK package to extract into the same subdirectory as in the previous step, not a new folder. Your driver folder should look like this:
382+
383+
![Instant Client folder](/img/windows-install/instant-client-folder.png)
384+
385+
- and the subdirectory should look like:
386+
387+
![Instant Client subdirectory](/img/windows-install/instant-client-subdirectory.png)
388+
389+
- Note that there is now an `SDK` folder inside.
390+
391+
Next, we need to add the full path of the Instant Client to the environment variables OCI_LIB64 and PATH. The quickest way to get to Environment Variables is to use the windows search bar and search for "environment" click on Environment Variables and then:
392+
393+
1. Under System Variables, create OCI_LIB64 if it does not already exist. Set the value of OCI_LIB64 to the full path of the location of Instant Client.
394+
395+
![Environment variable path](/img/windows-install/env-variable-path.png)
396+
![OCI_LIB64 path](/img/windows-install/oci-env-path.png)
397+
398+
2.Under System Variables, edit PATH to include the same (C:\oracledrivers\instantclient_23_7)
399+
400+
`When utilizing the IIS web server, it is essential to include a new variable PATH in your FastCGI environment.`
401+
402+
`For example, a new variable could be: %PATH%;C:\oracledrivers\instantclient_23_7.`
403+
404+
The fastCGI path is located in the IIS Manager > Your Server > fastCGI Settings > Full Path > Edit > 3 dots next to collections
405+
406+
![FastCGI path](/img/windows-install/fastcgi-path.png)
407+
408+
Almost there! Now, the last thing to do is to extract our PHP OCI8 extension package (It will be named along the lines of php_oci8-3.2.1-8.3-nts-vc15-x64) and move the php_oci8.dll file to the ext directory where PHP is located on your system (e.g PHP\v8.3\ext). Once that is done add extension=php_oci8.dll to your php.ini file and then restart the IIS server (use php -m to make sure that the oci8 extension is installed). Congratulations!
409+
71.4 KB
Loading
37.9 KB
Loading
28.9 KB
Loading
Loading
Loading
12.2 KB
Loading

yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -1986,10 +1986,10 @@
19861986
dependencies:
19871987
"@types/mdx" "^2.0.0"
19881988

1989-
"@node-rs/jieba-win32-x64-msvc@1.10.4":
1989+
"@node-rs/jieba-darwin-arm64@1.10.4":
19901990
version "1.10.4"
1991-
resolved "https://registry.npmjs.org/@node-rs/jieba-win32-x64-msvc/-/jieba-win32-x64-msvc-1.10.4.tgz"
1992-
integrity sha512-+sqemSfS1jjb+Tt7InNbNzrRh1Ua3vProVvC4BZRPg010/leCbGFFiQHpzcPRfpxAXZrzG5Y0YBTsPzN/I4yHQ==
1991+
resolved "https://registry.npmjs.org/@node-rs/jieba-darwin-arm64/-/jieba-darwin-arm64-1.10.4.tgz"
1992+
integrity sha512-G++RYEJ2jo0rxF9626KUy90wp06TRUjAsvY/BrIzEOX/ingQYV/HjwQzNPRR1P1o32a6/U8RGo7zEBhfdybL6w==
19931993

19941994
"@node-rs/jieba@^1.6.0":
19951995
version "1.10.4"

0 commit comments

Comments
 (0)