D
Dean Slindee
I have installed Oracle Lite 9i at:
C:\Oracle\OraLite9i\Mobile\sdk\OLD40\polite.odb (virgin install). Have also
installed ODP.NET in Visual Studio.NET (Framework 1.1). Now I try to open
the database with the following code:
Imports Oracle.DataAccess.Client
Public Function OpenOracleLite() As DataSet
Dim cnOracleLite As String
Dim cn As New OracleConnection(cnOracleLite)
Try
'Oracle Lite 9i (ODP.NET)
cnOracleLite = "Data Source=POLITE;" & _
"User Id=SYSTEM;" & _
"Password=;"
cn.Open()
Catch exc As Exception
Debug.WriteLine(Err.Number, Err.Description)
Finally
cn.Close()
cn = Nothing
End Try
End Function
Getting the following error:
Error: 5 ORA-12154: TNS:could not resolve service name
This is my first Oracle install. Please note the connection string
parameters. Are they correct for after a virgin install of Oracle Lite 9i?
What else is needed (probably in the way of database administration) to get
the connection to see the oracle lite db in the path above, or another
oracle lite database on another drive?
Also: does 9i have any GUI user interface, or is it like MSDE?
Thanks,
Dean Slindee
C:\Oracle\OraLite9i\Mobile\sdk\OLD40\polite.odb (virgin install). Have also
installed ODP.NET in Visual Studio.NET (Framework 1.1). Now I try to open
the database with the following code:
Imports Oracle.DataAccess.Client
Public Function OpenOracleLite() As DataSet
Dim cnOracleLite As String
Dim cn As New OracleConnection(cnOracleLite)
Try
'Oracle Lite 9i (ODP.NET)
cnOracleLite = "Data Source=POLITE;" & _
"User Id=SYSTEM;" & _
"Password=;"
cn.Open()
Catch exc As Exception
Debug.WriteLine(Err.Number, Err.Description)
Finally
cn.Close()
cn = Nothing
End Try
End Function
Getting the following error:
Error: 5 ORA-12154: TNS:could not resolve service name
This is my first Oracle install. Please note the connection string
parameters. Are they correct for after a virgin install of Oracle Lite 9i?
What else is needed (probably in the way of database administration) to get
the connection to see the oracle lite db in the path above, or another
oracle lite database on another drive?
Also: does 9i have any GUI user interface, or is it like MSDE?
Thanks,
Dean Slindee