Como no pude conseguir conectividad hacia oracle a través de ADORDD, estoy intentando lo siguiente:
Code: Select all
TRY
msginfo( "vamos a crear la conexión con Ado")
oCon:=toleauto():new("adodb.connection")
msginfo( "hemos creado la conexión con Ado")
CATCH oError
MsgStop(oError:Operation,"Ado Connection")
END
TRY
msginfo("nos vamos a conectar utilizando Ado")
oCon:ConnectionString:="Provider=OraOLEDB.Oracle;Data Source=nnn.nnn.nnn.nnn;Port:1521;User ID=user;Password=pass;"
oCon:OPEN()
msginfo("nos hemos conectado a Oracle utilizando Ado")
CATCH oError
MsgStop(oError:Operation,"Ado Open")
END
TRY
msginfo( "vamos a cerrar la conexión")
oCon:CLOSE()
msginfo("hemos cerrado la conexión")
CATCH oError
MsgStop(oError:Operation,"Ado Open")
END
- ***********************************************************************
Fatal NI connect error 12514, connecting to:
(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=nnn.nnn.nnn.nnn)(CID=(PROGRAM=D:\LENG\pruebas\Bin\pruebas.Exe)(HOST=XXX)(USER=xxx)))(ADDRESS=(PROTOCOL=TCP)(HOST=nnn.nnn.nnn.nnn)(PORT=1521)))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
Time: 11-AGO-2007 17:53:10
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: Message 12564 not found; No message file for product=NETWORK, facility=TNS
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
- TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
Action:
- Wait a moment and try to connect a second time.
- Check which services are currently known by the listener by executing: lsnrctl services <listener name>
- Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
- If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
- Check for an event in the listener.log file.
Tengo instalado el driver ODBC y Oracle OleDB provider y nada.
Si alguien me puede ayudar ya que tengo que desarrollar una aplicación de punto de venta y facturación que debe conectarse a un server ORACLE 10gR2
Saludos
David Lagos S.
Coquimbo-Chile