SQL>
1* connect to gilcimar identified by 2006 using @MYSQLSERVERDSN;
2 /
connect to gilcimar identified by 2006 using @MYSQLSERVERDSN;
*
ERROR at line 1:
ORA-00900: invalid SQL statement
SQL> edit
Wrote file afiedt.buf
1* connect to gilcimar identified by 2006 using 'MYSQLSERVERDSN';
SQL> /
connect to gilcimar identified by 2006 using 'MYSQLSERVERDSN';
*
ERROR at line 1:
ORA-00900: invalid SQL statement
SQL>
SQL> create database link mysqlserverdsn
2 connect to elipse identified by automacao10 using 'MYSQLSERVERDSN';
Database link created.
SQL> desc employees@mysqlserverdsn
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
SQL> create database link mysqlserverdsn
2 connect to elipse identified by automacao10 using 'MYSQLSERVERDSN';
Database link created.
SQL> desc employees@mysqlserverdsn
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
acho que está fazendo algo errado entre a criação do listener e do nome do tnsnames, principalment e porque está usando a porta 1521 lá ele cria um novo com 1522, reveja todos os passos, mas acho que está comendo bola em algum ponto.
E:\OracleHomes\db10g\BIN>tnspingm MYSQLSERVERDSN
'tnspingm' is not recognized as an internal or external command,
operable program or batch file.
E:\OracleHomes\db10g\BIN>tnsping MYSQLSERVERDSN
TNS Ping Utility for 32-bit Windows: Version 10.1.0.4.0 - Production on 08-SEP-2
008 10:41:16
Copyright (c) 1997, 2003, Oracle. All rights reserved.
Used parameter files:
e:\OracleHomes\db10g\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT
=1522)) (CONNECT_DATA=(SID=MYSQLSERVERDSN)) (HS=OK))
OK (20 msec)
tem firewall?? se tiver, faz um teste com ele desativado...
tem mais de uma versão de oracle instalado...se sim o problema pode estar aí.....daí nem sei por onde começar, talvez escolhendo uma delas e removendo a que sobrar.