Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> PHP i Oracle
regi_
post 27.12.2012, 14:37:06
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 1.08.2006

Ostrzeżenie: (0%)
-----


Witajcie,

chce polaczyc sie z baza Oracle, zrobilem wszystko tak jak w tym tutorialu http://itswadesh.wordpress.com/2011/12/03/...server-manager/ i niestety nic sad.gif

mam:
XAMPP v.3.1.0
Oracle - OraClient11g_home1
Windows8 64bit

w php.ini odznaczylem:
extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client
extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client

zrobilem sobie prosty skrypt

<?php

$conn = oci_connect('hr', 'welcome', 'localhost/XE');

?>

no i niestety wywala mi blad: Fatal error: Call to undefined function oci_connect() in C:\xampp\htdocs\oracle\1.php on line 3

probowalem juz restartowac komputer i nic :/ ktos ma pomysl co moge jeszcze zrobic?


--------------------
Go to the top of the page
+Quote Post
redman2
post 27.12.2012, 17:21:35
Post #2





Grupa: Zarejestrowani
Postów: 104
Pomógł: 3
Dołączył: 13.10.2004

Ostrzeżenie: (0%)
-----


On Windows, uncomment the php.ini line extension=php_oci8.dll when using Oracle 10gR2 client libraries. Uncomment extension=php_oci8_11g.dll when using Oracle 11g client libraries. These two DLLs contain equivalent functionality and only one may be enabled at a time.
Go to the top of the page
+Quote Post
regi_
post 28.12.2012, 07:19:35
Post #3





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 1.08.2006

Ostrzeżenie: (0%)
-----


tzn tak tez zrobilem, ze zostawilem tylko odznaczona linijke dla wersji 11, czyli tej ktora mam zainstalowana i nadal nic ;/

dla pewnosci zostawilem odznaczona linijke z wersja 11 i zrestartowalem komputer (a nie tylko apache). teraz mam taki oto blad :/



Ten post edytował regi_ 28.12.2012, 07:47:03


--------------------
Go to the top of the page
+Quote Post
redman2
post 3.01.2013, 10:25:53
Post #4





Grupa: Zarejestrowani
Postów: 104
Pomógł: 3
Dołączył: 13.10.2004

Ostrzeżenie: (0%)
-----


W SQLPlus wykonaj takie zapytanie:

  1. SELECT * FROM v$version;


Wklej odpowiedź.

http://www.oracle.com/technetwork/topics/p...cle-1884760.pdf
Go to the top of the page
+Quote Post
regi_
post 7.01.2013, 08:03:42
Post #5





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 1.08.2006

Ostrzeżenie: (0%)
-----


mam taki zwrot:

Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
"CORE 10.2.0.1.0 Production"
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production


--------------------
Go to the top of the page
+Quote Post
redman2
post 7.01.2013, 12:18:29
Post #6





Grupa: Zarejestrowani
Postów: 104
Pomógł: 3
Dołączył: 13.10.2004

Ostrzeżenie: (0%)
-----


uncomment the php.ini line extension=php_oci8.dll when using Oracle 10gR2 client libraries.
Go to the top of the page
+Quote Post
regi_
post 7.01.2013, 12:37:01
Post #7





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 1.08.2006

Ostrzeżenie: (0%)
-----


też już tak próbowałem, mam odznaczoną bibliotekę php_oci8.dll ale nadal coś nie trybi ;/

komunikat po wywołaniu skryptu:

Fatal error: Call to undefined function oci_connect() in C:\xampp\htdocs\oracle\1.php on line 3


--------------------
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 30.03.2024 - 04:33