PHP 5.2 (win.server) can't connect to Oracle 12c db - oracle12c

I have difficult question.
On win.server i have PHP 5.2 version. I must connect on Oracle 12c db. Procedure that i do is:
download oracle client 12.2
enable php_oci8.dll
insert PATH to
C:\Windows\SysWOW64\instantclient_12_2
restart server
also i tried to insert php_oci8_12c.dll extension and put oci8_12c.dll file in php/ext directory.
When i true to run .bat file i see errors:
"Missing MSVCR120.ddl" - i resolve this with put this file in /php/ext dir.
"The procedure entry point gc_remove_zval_from_buffer could not be located in the dynamic link library php5ts.dll"
On my local pc i have php 5.6 and they work with 12c oracle.
On internet see that 5.2 version can work with 12c.
What is the potencial problem? What I can try?

OCI 12c requires PHP 5.5, see http://www.oracle.com/technetwork/articles/dsl/technote-php-instant-12c-2088811.html
You can try tho to install the Visual C++ Redistributable Package.
Because the MSVCR120.dll error can't be fixed by putting it in the ext folder.
When you use Apache and/or Console client, make sure you have enabled in both php.ini files, because they are different configurations.
You can also try the PECL OCI package from https://pecl.php.net/package/oci8
Make sure to pick the correct version, the most recent only works for PHP 7.

I finally managed to install it, with some miracle because i do like this much time...
Steps what i do is:
download instaclient12.2 (32bit)
install visual c++ redistributable 2013
put instaclient_12_2 in C:\Windows\SysWOW64\
insert PATH C:\Windows\SysWOW64\instantclient_12_2
download oci8_2.0.12 X64 TS and put php_oci8_12c.dll in php/ext
put oci.dll (from instantclient_12_2 (32bit)) in C:\Apache24\bin, C:\php\ext and C:\php
enable extension php_oci8_12c.dll ini php.ini
On servers was Windows server 2008 R1 and PHP 5.6.2 TS

Related

How do I set the JDK in Oracle SQL Developer

Downloaded the Oracle XE and Oracle SQL Developer to my home computer (Windows) to learn PL/SQL. I use PL/SQL Developer at work but never set it up.
I downloaded the Oracle SQL Developer and all went well with the download. Got it working in the application view but when trying to run the sqldeveloper.sh I get errors showing up on the screen. The error reads:
The JDK 'C:Program' is not a valid JDK
The JDK specified by the SetJavaHome directive in
/c/../../.sqldeveloper/21.1.4.1/product.conf
Type the full pathnmae of a JDK installation (or Ctrl-C to quit), the path will
be stored in /c/../../.sqldeveloper/21.1.4.1/product.conf
I opened the product.conf file and added:
SetJavaHome C:\Program Files\Java\jdk
and did not work, so changed the directives from '' to '/'
SetJavaHome C:\Program Files\Java9.0.4\jdk
and still does not work. I even uninstall the version I downloaded first with without the jre and downloaded and installed the version that came with the jdk 8. I read through the post on stackoverflow and tried the solutions but nothing.
Please help
A couple of items to note:
To launch SQL Developer in Windows, you will want to launch sqldeveloper.exe, not sqldeveloper.sh
When you go to the SQL Developer Downloads, if you download Windows 64-bit with JDK 8 included you will not need to specify the path to your Java installation because it will come bundled with the installation.
If you choose to download Windows 32-bit/64-bit, you will then be prompted for the path to your JDK home when you first launch SQL Developer so you do not need to edit any configuration files or environment variables.

Cant install java 8 on window server by chef-solo

I use cookbooks from https://supermarket.chef.io/cookbooks/java
The code runs on Centos 6, but it doesn't run on windows server.
I get this ERROR
No download url set for java installer
URI::invalidURIError
bad URI(is not URI)
For Windows, you have to provide the Java installation file yourself, i.e. download the installer and put it somewhere locally. Then set node['java']['windows']['url'] to point to the file.
The documentation explains why this is necessary - basically there's no simple way to download the java msi programmatically from Oracle's website.

Oracle - SQL Developer: msvcr100.dll is missing from your computer

Have installed 11g in Windows 7 (64 bit machine). Since the SQL developer wont work with 64 bit jdk.
Installed the 32 bit jdk1.7.0
and changed the ORACLE_HOME\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf file SetJavaHome point to 32 bit jdk1.7.0.
Again started the SQL developer, but it throws msvcr100.dll missing. Find that the SQL Developer3.x supports at max jdk1.6.X.
Even tho the question is answered I would like to point out that downloading random DLLs from untrusted sources should be avoided.
If you are missing MSVCR100.DLL just install the correct redist for your platform.
32Bit: Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
http://www.microsoft.com/de-de/download/details.aspx?id=8328
64Bit: Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
http://www.microsoft.com/en-us/download/details.aspx?id=13523
Cheers,
Antonio Huete
These information is specified in ORACLE_HOME\sqldeveloper\releasenotes . So install the jdk1.6 and make the sqldeveloper.conf SetJavaHome point to this.
other workaround is go to jdk1.7.0 installed path jdk1.7.0\jre\bin copy msvcr100.dll and paste it into ORACLE_HOME\sqldeveloper\sqldeveloper\bin and again try start SQL Developer. It will start.
And The file is from
This file was downloaded from: http://www.dll-files.com
If you downloaded it from somewhere else, please let us know: http://www.dll-files.com/contact.php
Installation instructions:
Extract the .dll file from .zip file. We recommend that you extract the .dll to the installation directory of the program that is requesting the .dll.
If that doesn't work, you will have to extract the .dll to your system directory. By default, this is:
C:\Windows\System (Windows 95/98/Me)
C:\WINNT\System32 (Windows NT/2000)
C:\Windows\System32 (Windows XP, Vista, 7, win 8)
If you use a 64-bit version of Windows, you should also place the .dll in C:\Windows\SysWOW64\
Make sure to overwrite any existing files (but make a backup copy of the original file for safety).
Reboot your computer.
If the problem still occurs, try the following:
Open Windows Start menu and select "Run...".
Type CMD and press Enter (or if you use Windows ME, type COMMAND)).
Type regsvr32 .dll and press Enter.
If you have any other problems, see our HELP-section at www.dll-files.com/support/
I have just downloaded latest 4.1.3 version with jdk included - Windows 64-bit with JDK 8 included to my Windows Server 2008 R2 64-bit and faced the same problem. Could not start sqldeveloper.exe, because "msvcr100.dll is missing from your computer".
I did not want to install any additional bloatware, so what I did:
take msvcr100.dll from original download SQLDeveloper folder sqldeveloper\jdk\jre\bin
and copy it to Your's oracle installation bin folder, in my case - C:\oraclexe\app\oracle\product\11.2.0\server\bin
SQL developer started!
Edit (path)\sqldeveloper.sqldeveloper\bin\sqldeveloper.conf with Notepad++ or some other advanced text editor. Don't use Windows Notepad for this.
Locate the SetJavaHome variable. Replace "../../jdk" with your regular PC Java source. On mine it was "C:\Program Files\Java\jdk1.8.0_73".
The line looks like this when you're done:
SetJavaHome C:\Program Files\Java\jdk1.8.0_73
Save and exit.
I got this error while running Oracle JDeveloper.
I have copied the msvcr100.dll file from C:\Windows\System32 to C:\Program Files\Java\jdk1.8.0_261\jre\bin.
It worked for me. Also check the enviromental varibles settings.
The JDK needs msvcr100.dll to either be located in the same directory as sqldeveloper.exe OR already be installed on a Windows machine in a location defined in environment path variable. In testing SQL Developer install on various Windows 7 machines where I have other software installed (not a clean machine), the msvcr100.dll is installed on C: \Windows\system32\msvcr100.dll.
you may get it from sqldeveloper\jdk\jre\bin\msvcr100.dll(refer your installation dir)
I was facing the same issue and it worked for me.
For me the solution was to simply upgrade SQL Developer. When work changed over my laptop I copied SQL Developer between machines and I got the above error except for msvcr120.dll. I copied that dll from my old machine but then it needed another and then another. So I downloaded the latest version of SQL developer and the errors went away. It might not solve the issues for everything but I think updating to the latest version should be done before trying any of the other solutions.

ZendDebugger on Ubuntu server

I like to debug my PHP applications. So, I installed the ZendDebugger.
I downloaded and placed the ZendDebugger.so file in
/usr/lib/php5/modules/ZendDebugger.so
And pasted this code in the php.ini file:
zend_extension=/usr/lib/php5/modules/ZendDebugger.so
This path is correct, and I have tried several other paths.
I also have tried other codes in the php.ini file.
I work with a Ubuntu server and eclipse with the PDT extension on Ubuntu.
But the debugger is not installed. The only information I can find in the phpinfo is:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
I don't know what to do? I have searched many times on the internet, and tied it with a clean server install.

How I can connect to Oracle from Perl?

We have Oracle Server " Oracle Version: 10.2.0.4.0 - 64bit". I like to connect to this server with Perl from my RHEL machine. I am able to connect via sqlplus successfully. I can use 32-bit or 64-bit Perl. I have few questions.
Which files I should download from Oracle.com and where should I install them?
What are the environment settings or path that I should set?
What are the configuration changes or Makefile arguments changes I should make to install DBD::Oracle module properly?
Thanks.
Please ignore the previous answer as it is woefully out of date.
All you need to download is the oracle "instant client" for Linux:
http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html
This gives you what you need to build the Perl module.
A quick google brought up the following for an install guide:
http://duberga.net/dbd_oracle_instantclient_linux/
(I'm sure there are others)