DW9, PHP, and Oracle
We've just installed DWCS3 and now our Oracle (Oracle Thin
Client) database connections are no longer available with DWCS3. We
have just learned that DWCS3 will not work with Phakt and that PHP
now only supports MySQL. Dropping Phakt without any PHP-to-Oracle
alternatives is a serious threat to our continued use of Adobe web
products because TCO / ROI concerns, facing the fact we may have to
rebuild our websites.
We need to continue to use PHP to access our Oracle dBs. Does
anyone have any recomendations for a work-around to this sorry
behavior?
All of the public documented Workflow Engine PL/SQL APIs and Java APIs enable customers to build their own screens based on workflow, such as building your own specialized worklist.
Hi everyone,
Is it possible to use PHP and Oracle Workflow together? I means use PHP to generate user-interface and PHP-OCI8 API to call WFEngine PL/SQL code?
Similar Messages
-
Hi every ones:
I'm develop some applications using PHP and Oracle and php give me a lot of advantage. in bouth way of access to a database, OCI and mod plsql.
How can i say to Oracle THANKS FOR TAKE SERIOUS PHP TECNOLOGY!!!
I work actually for a company that implement all (Microsoft) and i want find a job with PHP and Oracle programming. Any body have idea that where i need look?How can i say to Oracle THANKS FOR TAKE SERIOUS PHP
TECNOLOGY!!!You just did! Thanks!
You can help Oracle with scripting languages even more, by completing the questionnaire on scripting langauges at:
http://www.oracle.com/go/?&Src=1545492&Act=10
Alison -
Hi everyone,
Is it possible to use PHP and Oracle Workflow together? I means use PHP to generate user-interface and PHP-OCI8 API to call WFEngine PL/SQL code?All of the public documented Workflow Engine PL/SQL APIs and Java APIs enable customers to build their own screens based on workflow, such as building your own specialized worklist.
Hi everyone,
Is it possible to use PHP and Oracle Workflow together? I means use PHP to generate user-interface and PHP-OCI8 API to call WFEngine PL/SQL code? -
Please help to connect to oracle through php.
OS=Windows Server 2008 R2(x64)= is working correctly
PHP ver=PHP 5.3.2= is working correctly
ORACLE = Oracle Database 11gR2= is working correctly
Since the PHP and Oracle on the same machine, I did not install install client(but even with instan client I could not connect to oracle).
phpinfo does not show oci section
in Environment section shows these values
PHPRC = C:\Program Files (x86)\PHP\
LD_LIBRARY_PATH = D:\ipardb\ora_base\product\11.2.0\orahome\lib
NLS_LANG = AMERICAN_AMERICA.WE8MSWIN1252
ORACLE_HOME = D:\ipardb\ora_base\product\11.2.0\orahome
ORACLE_SID = iparbio
Path= C:\Program Files (x86)\PHP\;D:\ipardb\ora_base\product\11.2.0\orahome\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\MySQL\MySQL Server 5.1\bin;
TNS_ADMIN= D:\ipardb\ora_base\product\11.2.0\orahome\network\admin
Loaded Configuration File C:\Program Files (x86)\PHP\php.ini
uncommented extension in php.ini
[PHP_OCI8_11G]
extension=php_oci8_11g.dll
extension dir is set ok, since other extensions are working properly
when i execute php.exe, in error_log file appears
[11-Jun-2010 10:37:34] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_oci8_11g.dll' - %1 is not a valid Win32 application.
in Unknown on line 0
Please help me.I'm guessing the cause is probably the same as that article: PHP is 32bit but your Oracle libraries are 64bit.
You will need to install 32bit instant client and make sure they are used for Apache. Does Windows 2008 have sym links? Perhaps the note mentioned at the end of OCI8 IN WINDOWS SERVER 2008 x64 will help. Otherwise try creating some batch scripts to set PATH appropriately before starting Apache. -
Re: PHP and Oracle Connection
Are any specific links that will give me all knowledge regarding php and oracle connection? I am a new babie in this please help me out.
Hi,
I'm looking for specialists in PHP, Ajax and Oracle BPEL...
Pages are: Praxisbörse und Jobs für Arzt und Zahnarzt http://www.praxis-welt.de für Praxisangebote und Jobangebote für Ärzte
sowie auf http://www.berlin-umzug.net für Umzugsunternehmen aus Berlin für Umzüge, Klaviertransport und Tresortransport in Berlin.
Any ideas / information / knowhow?
Regards,
Mic -
Hi.I' m working in an application using php for web development and oracle for server database.My question is until now I found many links about this subject also many books about oracle,plsql and many books about php but I can't found a book about php with oracle and plsql.So my question is are there books about php and oracle?
Thanks in advance thrylosI have seen one in my local book shop, not sure about Internet though.
-
Hi,
I'm trying to create a chart with php ad oracle. I'm using this code
<?
function Num_of_Rows($column, $status, $table){
$conn = oci_pconnect("$username", "$passwd", "$host");
$sql_query = "SELECT COUNT($column) AS NUMBER_OF_ROWS FROM $table WHERE Status = '$status'";
$stmt= oci_parse($conn, $sql_query);
oci_define_by_name($stmt, 'NUMBER_OF_ROWS', $number_of_rows);
oci_execute($stmt);
oci_fetch($stmt);
return $number_of_rows;
$result1 = Num_of_Rows("Admin_Number", "Active", "AS_ADMINS");
$result2= Num_of_Rows("Admin_Number", "Locked", "AS_ADMINS");
echo $result1;
echo $result2;
?>
This code works but only once! When I delete the row $result1 = Num_of_Rows("Admin_Number", "Active", "AS_ADMINS"); the second call of the function works and when I delete $result2= Num_of_Rows("Admin_Number", "Locked", "AS_ADMINS"); the furst call of the function works!
It seems that I can use the function only once and I can't call it again. It seems that the problem is someone else. Do you have an idea?I don't know what you mean by "works".
Have you tried changing the echo commands so the output is not adjacent?
echo $result1 . "<br>\n";
echo $result2 . "<br>\n";It seems odd to allow an arbitrary tablename but assume that there is always a column called STATUS.
I'd recommend using bind variables where possible. -
Is my configuration correct? PHP and Oracle HTTP server
Hi all,
I have a single server running RHEL5 x86-64 and Oracle 11.1. I also have the Oracle HTTP Server which purportedly has "PHP support".
I am trying to do a basic test connect to my database, but I'm getting an error.
My test is the following:
<html>
PHP Test with Oracle<head>
<body>
<pre>
<?php
$conn = oci_connect('scott', 'tiger', 'myserver/MYDBSERVICE');
if (!$conn) {
trigger_error("Could not connect to database", E_USER_ERROR);
?>
</pre>
</body>
</html>When I open the page, I see the following:
PHP Test with Oracle
Fatal error: Call to undefined function: oci_connect() in /u01/app/oracle/product/HTTP_Server/ohs/htdocs/phptest/dtest4.php on line 6
I've also tried phpinfo() and get the following:
oci8
OCI8 Support enabled
Revision $Revision: apache_modules/mod_php/4.3.9/ext/oci8/oci8.c#0 $
Oracle Version 10.1
Compile-time ORACLE_HOME /ade/svadugur_mjoyphp4311/oracle
Libraries Used no value
Any idea what may be going on? I've looked through much documentation already before posting to no avail.
Thank you for any insight.The oci_* names were introduced in PHP 5. In PHP 4 the equivalent connection command is ocilogon(). For other mappings see Appendix C of the free book http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html
I'd recommend you upgrade PHP. See "Installing OCI8 with Oracle Application Server on Linux" on p 76 of that book. Note the warnings. -
Apache, PHP, and Oracle 11G
Hi,
I have an 11G RAC Setup, and a separate application server that runs php that is presently connecting to MySQL Servers.
I just configured OCI8 in my application server and can see that my configurations are correct using phpinfo().
iam using this code to connect to my RAC 11G:
<?php
if(!$conn = oci_connect('sys', 'opensesame','callbox.oracle'))
$err = oci_error();
trigger_error('Could Not Establish a Connection:'.$err['message'], E_USER_ERROR);
?>
but i get this error:
Warning: oci_connect() [function.oci-connect]: ORA-12154: TNS:could not resolve the connect identifier specified in /var/www/html/oraconn.php on line 6
here's tnsnames.ora in my RAC, using sqlplus via command line works perfectly fine in either nodes of the rac.
LISTENERS_CALLBOX =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node01-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = node02-vip)(PORT = 1521))
CALLBOX2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node02-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = callbox.oracle)
(INSTANCE_NAME = callbox2)
CALLBOX1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node01-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = callbox.oracle)
(INSTANCE_NAME = callbox1)
CALLBOX =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node01-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = node02-vip)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = callbox.oracle)
am I missing something?i forgot to include that the tutorial that helped me configure the OCI8 for PHP suggests that i need to create tnsnames.ora in /etc like this:
SERVICENAME =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ip_of_oracle_server)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SID)
(SID = SID)
so I created this:
CALLBOX1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =192.168.50.161)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = callbox.oracle)
(INSTANCE_NAME = callbox1)
and did this: export TNS_ADMIN=/etc/
am not sure which part of my tnsnames.ora in the RAC (posted earlier) be copied in /etc/tnsnames.ora in the application server. -
and I've tried several ways and does not connect, I vote errors like this
Warning: oci_connect(): ORA-12154: TNS:could not resolve the connect identifier specified in C:\xampp\htdocs\conexion oracle\consulta.php on line 4
array(4) { ["code"]=> int(12154) ["message"]=> string(65) "ORA-12154: TNS:could not resolve the connect identifier specified" ["offset"]=> int(0) ["sqltext"]=> string(0) "" } Conexion es invalida
almost always all errors have to do with the oci8 funsiones
I appreciate the help you could provideORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
ORA-12154 NEVER involves the listener, the database itself or anything on the DB Server.
ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
TNS-03505 is thrown by tnsping & is same error as ORA-12154 thrown by sqlplus or others.
The lookup operation fails because the name provided can NOT be resolved to any remote DB.
The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
The most frequent cause for the ORA-12154 error is when the connection alias can not be found in tnsnames.ora.
The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.
So post the content of the sqlnet.ora file.
TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS:could not resolve service name [ID 114085.1]
http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/ -
Help with SL Server PHP and Oracle ?
(my apologies for post to wrong forum first)
I'm attempting to add oci8/instantclient to the "out-of-the-box" php distribution w/o recompiling (if at all possible)
have installed instantclient in /usr/local
installed oci8 from pecl and built w/instantclient
I THINK my main issue is adding the DYLIB- envt variables because I cannot find a reference to the required XML syntax
Has anyone got this bad boy working?Assuming you installed the Oracle Instant Client correctly, then try this as root (or issue sudo -s before):
mkdir -p /SourceCache
cd /SourceCache
curl -O http://www.opensource.apple.com/source/apachemod_php/apache_modphp-53/php-5.3.0.tar.bz2
tar xjf php-5.3.0.tar.bz2
cd /SourceCache/php-5.3.0/ext/oci8
phpize
MACOSXDEPLOYMENTTARGET=10.6 CFLAGS="-arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch i386 -arch x86_64 -g -Os -pipe" CXXFLAGS="-arch i386 -arch x86_64 -g -Os -pipe" LDFLAGS="-arch i386 -arch x86_64 -bindatload" ./configure
make
make install
When done, edit/create /etc/php.ini and add:
extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/oci8.so
next issue:
sudo apachectl graceful
with a little luck you are all set.
HTH,
Alex -
How to use Php and Oracle on 2 different systems
Hi!
I connected with a net 2 systems. One (Windows 2000 + Oracle9i) is the database server. The other (WinXP + Apache 2.0.54 + Php 5.0.4 ) is the web server. I'd like to make the WinXP machine connect on the Win2000 but It seems it doesn't work even if I'm using:
oci_connect( "<user>" , "<pwd>" , "//<ip>:<port>/<db-name>" );
the error is always "_oci_open_server: ORA-06401: NETCMN: designatore del programma di gestione non valido"
(translated: "NETCMN: invalid gestion management program")
can someone help me?
Thanx a lot!!ORA-06401, 00000, "NETCMN: invalid driver designator"
Cause: The login (connect) string contains an invalid driver designator.
Action: Correct the string and re-submit.
The //ip:port/sid connect string will only work with 10g clients.
Check your tnsnames.ora file. Does the file have control characters or missing carriage-return characters ? (Maybe you ftp'd the file from a unix box ?)
I would suggest that you create a new tnsnames.ora - hand edit it (don't copy the old one). If you have sqlplus client - try using it to connect to the remote DB first.
The instructions for connection to a local or remote DB are all the same (when using plain OCILogon) because the connection is made over TCP. -
PHP,MYSQL,ORACLE,APACHE issue?
Hello All,
In my oracle 10gr2 server that is build on rhel4, we have web based portal, now that web based portal connects to oracle and mysql, my problem is that, the developer told me that i have to install php4, apache2 with support of OCI8, i have tried every thing in google but unable to find, how can i do this, please help me out, thanksSome example guides show installing Apache as a non-root user just to avoid breaking production web servers when installing for the first time. A non-root user cannot start Apache on a privileged port like 80. Once you're familiar with the install process you can always install on the system default Apache or use 80 as the port number.
The free, prebuilt PHP and Oracle-client stack called Zend Core for Oracle runs on x64. ZCO can be very easy to install. http://www.oracle.com/technology/tech/php/zendcore/index.html
-- cj -
How i can connect php and oracle9i ?
hello am new to php.i have oracle 9i and php and apache.oracle is installed at one system and php inother one at network .when i have at same pc's i connect it.but now it's at different systems how i can connect.plzz tell me complete steps of apache that i will define and next complete process to connect php and oracle .plzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Apache and PHP need to be on the same system. That system also needs either the database or Oracle client libraries like Oracle Instant Client. There are steps for installation of the PHP side on http://www.oracle.com/technology/tech/php/index.html
There are various Oracle installation notes in the Oracle manuals or software bundles.
-- cj -
Hi,
I want to use PHP and Oracle in my project. But i couldnt connect to oracle database using Instantclient.
I did the following steps:
-Create a subdirectory (C:\instantclient_10_2) and copy all files(libraries) from the zip file to C:\instantclient_10_2 directory
-Edit php.ini and uncomment the OCI8 extension (enabled with "extension=php_oci8.dll" in php.ini), copy oci.dll to windows/system32
-Edit the environment and add C:\instantclient_10_2 to PATH before any other Oracle directories
-Copy tnsnames.ora to C:\instantclient_10_2 and set the user environment variable TNS_ADMIN to C:\instantclient_10_2
-Restart IIS
-To check the extension is configured, create a simple PHP script phpinfo.php
<?php
phpinfo();
?>
-Load the script into a browser using a URL http://localhost/phpinfo.php
I can see that OCI8 Support is enabled.
My database name is TEST. when i run the following script, i just see "error". There is no detailed information about the error.
<?php
$connection = OCINLogon("system","manager","TEST");
if($connection == false) {
echo OCIError($connection);
echo "error";
$cursor = OCIParse($connection,"select sysdate from dual");
OCIExecute($cursor);
echo "<pre>";
while(OCIFetchInto($cursor,$values)){
echo $values[0];
echo "";
echo "</pre>";
?>
I don't know what the problem is. How can i fix it?
Thanks
Note: I use php-5.2.3 and Oracle 9i. Oracle database is not in my local.I want to use PHP and Oracle in my project. But i
couldnt connect to oracle database using
Instantclient.Two things come to mind:
I did the following steps:
Edit php.ini and uncomment the OCI8 extension
(enabled with "extension=php_oci8.dll" in php.ini),Can you make sure that this php_oci8.dll is compiled and linked against Oracle 10g and not Oracle 8i?
My database name is TEST. when i run the following
script, i just see "error". There is no detailed
information about the error.
<?php
$connection = OCINLogon("system","manager","TEST");
if($connection == false) {
echo OCIError($connection);
echo "error";Hmmm.
A quick look at the PHP documentation on http://at2.php.net/manual/en/function.oci-error.php tells me that you should call oci_error() without an argument to get the error message for an oci_new_connect().
Yours,
Laurenz Albe
Maybe you are looking for
-
Hello, I have a Z77A-G45 mainboard which supports UEFI. I am trying to install Windows 7 (64 bit) on a GPT hard drive which already has Linux Mint 13 (equivalent to Ubuntu 12.04 LTS) installed. The disk is 1TB big and I have reserved 250 GB of unallo
-
Can someone explain in lamens terms What is Jar Bundler?
I have recently looked in Finder for Recent Items list called 'Jar Bundler', it was under the Application log. I am not a developer and have never seen this before can someone assist in explaining what it is and does? thanks
-
How to sort pdf documents by modified date using Javascript action
Hello, I want to use a Javascript action to sort multiple pdf documents in a folder before I run a Javascript action that prints the last page of multiple pdf documents. I received help from this forum on the last page print script and it works perf
-
My trackpad only works when the battery of my macbook is less of 30%
idk what is goiing on, i installed mavericks and my macbook stared to fail, i cant even see much of the aplications icons or folders :/ what should i do?
-
Why I can't update my ios to ios6? It always display that..Error in updating..I am using ipad3. Please help me update my ios. Looking forward for your kind support and cooperation. Thank you.