iansane
August 8th, 2010, 06:35 PM
Hi,
I've just installed oracle-xe and am getting an error when trying to connect through sqlplus.
TNS could not resolve the connect identifier specified
I've tried looking at the tnsnames.ora and listener.ora but am a little confused by the host section.
I used a dynamic dns script to give me a fqdn but my server name is different. I changed the server name to mach the first part of my fqdn and then changed tnsnames.ora, listener.ora and all my host files to match but still get the same error.
The web interface works fine and apache2 works but I just can't connect with sqlplus.
Just to be sure, if my host name is "lotus"
Should that be what is in the tnsnames.ora and listener.ora or should that be my fqdn?
Also is "sqlplus system as sysdba" the correct way to connect? And why do I have a new user named "oracle"?
Sorry if this is too many questions at once but this oracle is definately something different when compared to MySql which also works fine.
Thanks
I've just installed oracle-xe and am getting an error when trying to connect through sqlplus.
TNS could not resolve the connect identifier specified
I've tried looking at the tnsnames.ora and listener.ora but am a little confused by the host section.
I used a dynamic dns script to give me a fqdn but my server name is different. I changed the server name to mach the first part of my fqdn and then changed tnsnames.ora, listener.ora and all my host files to match but still get the same error.
The web interface works fine and apache2 works but I just can't connect with sqlplus.
Just to be sure, if my host name is "lotus"
Should that be what is in the tnsnames.ora and listener.ora or should that be my fqdn?
Also is "sqlplus system as sysdba" the correct way to connect? And why do I have a new user named "oracle"?
Sorry if this is too many questions at once but this oracle is definately something different when compared to MySql which also works fine.
Thanks