Hi,
I'm starting with Oracle 9i and it all seems very confusing to me..
I've installed the Database Server, after that i've used the Database Configuration Assistant to create a database, wich i've called TEST, with SID TEST.
I've also installed the oracle data access client for .net
It all went fine, but i'm unable to connect to the data source with .net, and i get this error:
ORA-12154: TNS:could not resolve service name
using the following connect string:
"Data Source = TEST; user id = SYS; password = zzz"
I'm using this user because it was the user that appeared by default when configuring the database.
I've searched for this error and found that the problem is in the tnsnames.ora file, and this is it's content:
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACL_HOME =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = HOME)(PORT = 1521))
)
(CONNECT_DATA =
(SID = ORACL)
(SERVER = DEDICATED)
)
)
Do i have to configure this manually? I've no idea on what to do...
thanks
I'm starting with Oracle 9i and it all seems very confusing to me..
I've installed the Database Server, after that i've used the Database Configuration Assistant to create a database, wich i've called TEST, with SID TEST.
I've also installed the oracle data access client for .net
It all went fine, but i'm unable to connect to the data source with .net, and i get this error:
ORA-12154: TNS:could not resolve service name
using the following connect string:
"Data Source = TEST; user id = SYS; password = zzz"
I'm using this user because it was the user that appeared by default when configuring the database.
I've searched for this error and found that the problem is in the tnsnames.ora file, and this is it's content:
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACL_HOME =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = HOME)(PORT = 1521))
)
(CONNECT_DATA =
(SID = ORACL)
(SERVER = DEDICATED)
)
)
Do i have to configure this manually? I've no idea on what to do...
thanks