This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi everyone
I believe this is a noob question, but if someone can help me with this...
I was testing lightspeed and get this error when calling SaveChanges()
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
The source code where this happens:
int values = -1;
using (LightSpeedModel1UnitOfWork uow = ControllerBase.UnitOfWorkScope.CreateUnitOfWork())
{
Teste t = new Teste();
t.Name = "alberto";
t.Age = 15;
uow.Add(t);
uow.SaveChanges(); // right here i get the error.
values = uow.Testes.Count();
}
the connection string is
Data Source=localhost;Persist Security Info=True;User ID=hrs;Password=hrs;Pooling=False;Unicode=True
Thanks in advance
|
|
|
(Sorry first one was bad :S)
Hi everyone
I believe this is a noob question, but if someone can help me with this... I was testing lightspeed and get this error when calling SaveChanges() ORA-12514: TNS:listener does not currently know of service requested in connect descriptor The source code where this happens: int values = -1; using (LightSpeedModel1UnitOfWork uow = ControllerBase.UnitOfWorkScope.CreateUnitOfWork()) { Teste t = new Teste(); t.Name = "alberto"; t.Age = 15; uow.Add(t); uow.SaveChanges(); // right here i get the error. values = uow.Testes.Count(); } the connection string is Data Source=localhost;Persist Security Info=True;User ID=hrs;Password=hrs;Pooling=False;Unicode=True Thanks in advance |
|
|
This is an issue with your Oracle configuration. I think it means that the service to which the local "localhost" TNS name refers does not exist. E.g. if the "localhost" TNS entry refers to the MyOracleInstance instance on the localhost box, but the Oracle service is actually called YourOracleInstance, then you'll get this error. This error *might* also occur if there's no local TNS entry for the name "localhost" -- I'm not sure about that. Basically check your tnsnames.ora (or check Net Manager under Local > Service Naming) and check that both the local name and the service details match up. Probably worth googling the error number and message for more info as well. |
|
|
The help I get googling was weak and didn't correct the problem, I have to double check the configuration.
Thanks |
|