Error (ORA-28547) - PHP. Please help

I am trying to connect
With this code:
<?php
$tns = '(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = supertrain)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = train)
$conn = oci_connect('user', 'pass', $tns);
echo "<pre>";
print_r($conn);
?>
+But get an error: Warning: oci_connect() [function.oci-connect]: ORA-28547: connection to server failed, probable Oracle Net admin error in C:\Zend\Apache2\htdocs\odbc\index.php on line 10+
My configuration:
Zend Server Community Edition
Version      5.1.0
Build      ZendServer-CE-5.1.0_B104-5.3.5-Windows_x86
PHP
Version      5.3.5
PHP Configuration File      C:\Zend\ZendServer\etc\php.ini
oci8
OCI8 Support      enabled
Version      1.4.5
Revision      $Revision: 305257 $
Active Persistent Connections      0
Active Connections      0
Oracle Instant Client Version      Unknown
Temporary Lob support      enabled
Collections support      enabled
Directive     Local Value     Master Value
oci8.connection_class     no value     no value
oci8.default_prefetch     100     100
oci8.events     Off     Off
oci8.max_persistent     -1     -1
oci8.old_oci_close_semantics     Off     Off
oci8.persistent_timeout     -1     -1
oci8.ping_interval     60     60
oci8.privileged_connect     Off     Off
oci8.statement_cache_size     20     20
Web Server
Server Name      localhost
Server Software      Apache/2.2.16 (Win32) mod_ssl/2.2.16 OpenSSL/0.9.8o
OS Version      Windows XP
Oracle
Client - Oracle - OraClient11g_home1 (11.1.0)
Server - Oracle 11

I'd start with the less-error prone (fewer brackets to mismatch) "Easy Connect" connection string.
See "Oracle Database Name Connection Identifiers" on page 102 of http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html
In your case the command would be
$conn = oci_connect('user', 'pass', 'supertrain:1522/train');From googling, there are various configuration file fixes that might help. It's unlikely to be a PHP
issue, so you might want to follow up in a DB forum, e.g. Database Installation

Similar Messages

  • Can't Install 11g Db, Error ORA 28547/24324/01041

    hi,
    I was trying to install db 11g and the installation stopped half way through with 3 errors.
    1.ORA 24324: SERVICE HANDLE NOT IDENTIFIED
    2.ORA 01041: INTERNAL ERROR, HOSTDEF EXTERIOR DOES'NT EXIST
    3.ORA 28547: CONNECTION TO SERVER FAILED, PROABLY NET ADMIN ERROR.
    I have just trained on oracle application developper and very new to installing a personal database.
    My machine is a pentium duo core 1.7, 2gb ram and 120 hdd and my OS is XP professional sp2. I connect through this machine
    through my office lan to oracle 9i db in my company server.
    I have tried to set up a 11i DB Personal and 10g developer suite on the same machine.
    I could figured out the 1st error ORA-01041 and understand that the Environment variables have to be changed before I try to
    reinstall 11g.
    As I checked up the variable from System>advanced>environment variables it is showing a very long string which is
    (C:\app\ravid\product\11.1.0\db_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program
    Files\Intel\Wireless\Bin\;C:\ORANT\BIN;)
    After looking this up in the c:\oracle folder trace the string only uptil 'bin'.
    I have DEVELOPER 2000 NT with Forms runtime and Graphics runtime already on the machine however i did not see any path in the
    system environment variable for this, or could it be that the string i mentioned above has that included too..one thing i know for
    sure is there was no oracle home before i tried to install the 11g db.
    Could someone also help me out with the 1st and 3rd errors as i don't know what they mean?
    Will really appreciate if you can help me through this.
    Thanks in advance for your time and advice.

    Re: Can't Install 11g Db, Error ORA 28547/24324/01041

  • Two instances running at the same time on one machine - error ORA-28547

    Hi,
    I am running Windows XP (32-bit) and Oracle 10gR2 (10.2.0.3) and would like to run two services at the same time (NE and NE2). Configures my listerner like
    listener.ora
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = NE)
          (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = NE2)
          (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
          (PROGRAM = extproc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = dgregor-d630)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
      )tnsnames.ora
    # tnsnames.ora Network Configuration File: D:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    NE2 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = dgregor-d630)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = NE2)
    NE =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = dgregor-d630)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = NE)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
      )I am getting error
    ORA-28547: connection to server failed, probable Oracle Net admin error
    In the registry I am aware of the ORACLE_SID entry, but it is reserved only for one value (NE or NE2).
    How should I configure it to run both Oracle services at the same time?
    Thanks!
    D

    Hi,
    Please post your question in the appropriate forum/group.
    Database
    http://forums.oracle.com/forums/category.jspa?categoryID=18
    Thanks,
    Hussein

  • HT5642 Unable to download app this time error while downloading app please help!!!

    when i download some app from apps store i get the following error
    "Unable to download app this time error while downloading app" please help!!!
    i ve tried these Things but
    didnt workout yet
    1) i tried hard reset
    2)i tried logout/login Itune & appstore
    3)Connected to pc and rest setting Network and Full Rest
    all of no use... i dont want to update my softwre from IOS 6.0
    Plx help!1

    Hey Prahaladvatsan,
    Thanks for the question. If I understand correctly, there is a blank app icon on the home screen. It looks like you have already done some troubleshooting. I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
    Thanks for using Apple Support Communities.
    Have a good one,
    Mario

  • My compouter (PC) no longer recognizes my ipod (4th gen), it "sees" an unknowndevice and gives me error code 43.  Please help.

    My compouter (PC) no longer recognizes my ipod (4th gen), it "sees" an unknowndevice and gives me error code 43.  Please help.

    Check for hardware issues
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the alert when you update or restore, contact Apple support.
    Common errors: 1, 10-47, 1002, 1011, 1012, 1014, 1000-1020.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      

  • HT5676 my macpro (10.6.8) refused to install wireless printer (canon pixma MG4260). Whenever i tried to install, it keeps saying 'internal error number 12'. Please help!! and what does internal error got to do with installing a printer?

    my macbook pro (10.6.8) refused to install wireless printer (canon pixma MG4260). Whenever i tried to install, it keeps saying 'internal error number 12'. Please help me!! and what does internal error got to do with installing a printer?

    my macbook pro (10.6.8) refused to install wireless printer (canon pixma MG4260). Whenever i tried to install, it keeps saying 'internal error number 12'. Please help me!! and what does internal error got to do with installing a printer?

  • HT201263 Hi. I forgot my passcode and now I am unable to unlock my ipod. I tried restoring it using itunes in recovery mode as well as dfu mode but it says unable to restore,unknown error occured (3004).  Please help me out. My ipod is locked for one hour

    Hi. I forgot my passcode and now I am unable to unlock my ipod. I tried restoring it using itunes in recovery mode as well as dfu mode but it says unable to restore,unknown error occured (3004).  Please help me out. My ipod is locked for one hour now.

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    Forgotten Restrictions Passcode Help
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    Also, see iTunes- Restoring iOS software.

  • How to fix this: The iphone "iPhone" could not be restored. An unknown error occurred (3014). Please help me :(

    how to fix this: The iphone "iPhone" could not be restored. An unknown error occurred (3014). Please help me

    Read here:
    http://support.apple.com/kb/ts3694#3014

  • Error install illustrator cc please help!!

    error install illustrator cc please help!!

    Eli,
    This may be one for this specialized forum (where you may be able find the answer from previous threads),
    http://forums.adobe.com/community/download_install_setup
    or for Customer Care (tick I Still Need Help and hope for an agent available for a chat),
    http://helpx.adobe.com/contact.html?product=illustrator&topic=downloading-installing-and-s etting-up
    or for Adobe Support (phone),
    http://helpx.adobe.com/adobe-connect/adobe-connect-phone-numbers.html

  • I have Mac Pro 2010 model and it's giving heavy fan noise,so run the Apple hardware test but it's showing the Error: 4SMC 1 40000000  please help me in this issue.

    I have Mac Pro 2010 model and it's giving heavy fan noise,so run the Apple hardware test but it's showing the Error: 4SMC 1 40000000  please help me in this issue.

    Same error information here.
    https://discussions.apple.com/message/13083664?messageID=13083664

  • Hello, I have downloaded the new update to my iPhone 4 but I can not instal it , gives me a error signs would you please help me thank you. Nasser

    Hello, I have downloaded the new update to my iPhone 4 but I can not instal it , gives me a error signs would you please help me thank you. Nasser

    Please identify the error.

  • Windows thinks my itouch is a camera and itunes says this ipod can't be used because the software isn't installed - reinstall itunes.  i've done that and continue to get the same error.  can someone please help?

    windows thinks my itouch is a camera and itunes says this ipod can't be used because the software isn't installed - reinstall itunes.  i've done that and continue to get the same error.  can someone please help?

    (apologies for barging in, lllass.)
    Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/download.htm
    Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
    Does it install (or uninstall and then reinstall) properly for you? If so, does your device connect without that message now?

  • TS1424 i keep getting error message not enough privileges and also error -1201 can someone please help

    i keep getting you do not have enough privileges when opening itunes as well as error 1201 can someone please help?

    See Here for Troubleshooting
    Free Disc Space
    http://www.thexlab.com/faqs/freeingspace.html
    See Here for Resolving Startup Issues
    http://support.apple.com/kb/ts1417

  • I am having problem when i am updating my iphone 4 to ios 5 ..it get update n took 50 minutes then at the end when it was processing file ...suddenly an error comes that an unknown error accurred {9006}..please help me..how will i update my iphone 4

    i am having problem when i am updating my iphone 4 to ios 5 ..it get update n took 50 minutes then at the end when it was processing file ...suddenly an error comes that an unknown error accurred {9006}..please help me..how will i update my iphone 4

    Error 9006: Following Troubleshooting security software frequently resolves this error. There may be third-party software installed that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your Registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet size modification for assistance.

  • Hi.my itunes appear this error ERROE CODE:1009 please help me

    hi.my itunes appear this error ERROE CODE:1009 please help me

    Read my post. I don't know if you're having the same problem but I hope this helps. http://discussions.apple.com/thread.jspa?threadID=1351705&tstart=0
    Message was edited by: Happyfish

Maybe you are looking for

  • Message Listener Problem (iDoc)

    I am receiving an iDoc successfully in the Message Listener within Mii.  I have created a Processing Rule for the Message Type and tied it to a simple BLS.  The BLS has an XML input parameter which is selected in the Processing Rule. The BLS simply m

  • Making jasper report as jar

    hi to all, In my application i've make a jar file using netbeans ide. The jar file contains images, classes, .jrxml, and .jasper file when i run the jar file the report will not come.i don't know why.. and i've used the code given below              

  • Passing array as a argument in the Stored Procedure/Function

    Hello Friends, I need a help, i Want one stored proedure/Function which take array as a argument and return an array also. and the size of array should not be fixed. I don't want to use Varray because for this I have to specified its size first. I th

  • Punch out catalog displays Error screen when template SC is used using item

    Hi, We use a punch out catalogs for certain vendors. For reordering same types of material our users have created template shopping carts for punch out catalog items. When users are trying to create SC from those template SCs the screen ends up in er

  • Selection screen font

    Hi,   Can anyone let me know how can I make a text or comment in a selection screen (SELECTION-SCREEN: COMMENT /1(65) TEXT-005.) to a different color or make it bold? Thanks. Uma. Message was edited by:         Uma