trouble connecting oracle
Posted: 17.11.2005, 15:02
greetings everyone.
smth strange happens..
i try to connect Oracle 9i database on winxp pro host.
I use zConnection and zQuery.
in designtime i set properties the way like:
Connection.database = db..
Connection.hostName = host..
Connection.password= usr_pwd
Connection.port = 1521
Connection.protocol= oracle or oracle9i
Protocol = 'oracle-9i'
HostName = 'taa'
Port = 1521
Database = 'zxschema'
User = 'zxshnur'
Password = 'zx'
AutoCommit = True
ReadOnly = False
TransactIsolationLevel = tiReadCommitted
Connected = True
and zQuerie's sql is something like:
select * from x
when i open zQuery in design-time it openes ok., linked grid displays records & so on.
when i try to run the app and connect database in runtime i get:
Exception EZSQLException in module Project1.exe at 000D06E7.
SQL Error: ORA-12154: TNS: unable to resolve service name
how can it happen it connects OK in designtime and fails in runtime ????
this happens with zeos DBO v.6.5.1 and v.6.5.1-latest cvs from download section as well..
smth strange happens..
i try to connect Oracle 9i database on winxp pro host.
I use zConnection and zQuery.
in designtime i set properties the way like:
Connection.database = db..
Connection.hostName = host..
Connection.password= usr_pwd
Connection.port = 1521
Connection.protocol= oracle or oracle9i
Protocol = 'oracle-9i'
HostName = 'taa'
Port = 1521
Database = 'zxschema'
User = 'zxshnur'
Password = 'zx'
AutoCommit = True
ReadOnly = False
TransactIsolationLevel = tiReadCommitted
Connected = True
and zQuerie's sql is something like:
select * from x
when i open zQuery in design-time it openes ok., linked grid displays records & so on.
when i try to run the app and connect database in runtime i get:
Exception EZSQLException in module Project1.exe at 000D06E7.
SQL Error: ORA-12154: TNS: unable to resolve service name
how can it happen it connects OK in designtime and fails in runtime ????
this happens with zeos DBO v.6.5.1 and v.6.5.1-latest cvs from download section as well..