linux - CDbConnection failed to open the DB connection: ORA-12541: TNS:no listener -


Then I'm trying to connect to db Oracle using oci8 from php application. It works fine in Windows Ora-12,541: TNS: Any listener

  CDbConnection Tried to fail to open the DB connection p> I have oci8 installed in Linux machine (RHEL6)  

Oracle server is running in windows

In my tnsnames.ora, the listener. Ora are the hosts 'localhost'.

  listener = (DESCRIPTION_LIST = (Description = (ADDRESS = (Protocol = IPC) (key = EXTPROC1521)) (ADDRESS = (Protocol = TCP) (Host's Like = * * localhost **) (port = 1521)))   

Is this a problem? Or else how to fix it?

Is your Oracle listener running? The most common cause of a listener error is not due to the Oracle listener running in the background You can do this in Linux by ntsysv Areas can be configured via

Comments

Popular posts from this blog

c++ - Cmake produces file extensions in static library archives -

c# - Roxy file manager in MVC doesn't accept session path -

c# - Check if a NumericUpDown has no value -