Ocilogon () Function.ocilogon ocienvnlscreate () failed, what to do with

Source: Internet
Author: User
Ocilogon () Function.ocilogon ocienvnlscreate () failed
A Windows Server (PHP program is here), "Remote Connection" Oracle's but reported this error, according to the online said is Oracle_home problem, also in this machine set up environment variable add ORACLE_HOMT, can't solve ah ...

------Solution--------------------


Oracle has not used such high-end things Ah, this is Lao Xu's forte. Wait for Lao Xu to help you.
------Solution--------------------
Post your connection code

It seems that remote connection Oracle8 is required to configure environment variables, but not necessarily!
Just give the address, port, and listener name of the remote database.

I'm not familiar with Oracle, but I had a need to read the data from Oracle10 last year before he explored
I feel that using PDO_OCI to connect Oracle exceptions is simple.

------Solution--------------------
Ocilogon--alias of Oci_connect ()

Oci_connect () Returns a connection identifier that is required by most OCI calls. The optional third parameter can contain the name of the instance of the local Oracle you want to connect to or the entry in Tnsnames.ora. If you do not specify an optional third parameter, PHP uses the environment variable ORACLE_SID (ORACLE instance) or Two_task (Tnsnames.ora) to determine which database to connect to.

Note: If PHP is using an Oracle Instant Client, you can use an easy-to-name connection method, as described here: http://download-west.oracle.com/docs/cd/B12037_01/network.101 /b10775/naming.htm#i498306. Basically this means that you can specify "//db_host[:p ort]/database_name" as the database name. However, if you want to use a named old method, you must set either Oracle_home or Tns_admin.


  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.