I’m trying to build a lab system on a vmware image. Sounds simple enough doesn’t it.
In my new job we’ll be using Oracle, so I’d like my lab setup to use the same. Now, I’ve installed the database, config server and dbserver. But I’m getting an error when the config server tries to read the database. I have zero oracle experience by the way.
The error I get is:
Oracle: id=‘294.1’ req=‘55’ Protocols versions: dbclient=‘00010003’ dbserver=‘00010003’ dblib=‘00010003’
+0000 Open DB: username = ‘genesys’, database = ‘GENESYS_CFG’, dbserver = ‘gcti1’
+0172 ocierror: ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
I can change this to be TNS: no listener by changing the tnsnames.ora and listener.ora files to have 127.0.0.1 instead of host names. I think I have a listener service running, at least I can see a service called “OracleOraDb11g_home1TNSListener” that is running. And I can connect to the database using the SQL tools that are included with the oracle install.
I’m sure I’ve missed something in the install but can’t for the life of me figure it out.
I’ve spent the better part of yesterday googling and tweaking settings and am pretty sure I’ve tried everything.
The problem I think may be linked to my install and the fact that the VM has a DHCP address. I’m going to ditch the install and start again today with a static IP.
I had the name of the database in the tnsnames.ora file where it should have been the name of the listener. The confserv.cfg file also needs to refer to the name of the listener instead of the host name.
Having never worked with Oracle before this still makes no sense to me, but it works now so I’m not going to mess with it.