Android Question Is it possible to connect to an oracle database with a wallet file?

BernhardS

Member
Licensed User
Longtime User
Thank you, Erel!

I have successfully tested the database connection with B4J.
But unfortunately I cannot establish a connection with B4A.

Can someone help me?
My code is (jSQL Version 1.61 used and the additional Jars from Oracle Website):


B4X:
#Region  Project Attributes
    #ApplicationLabel: B4A Example
    #VersionCode: 1
    #VersionName:
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
    #AdditionalJar: ojdbc10.jar
    #AdditionalJar: osdt_cert.jar
    #AdditionalJar: oraclepki.jar
    #AdditionalJar: osdt_core.jar
#End Region

#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region

Sub Process_Globals
    Private Conn As SQL '
End Sub

Sub Globals
End Sub

Sub Activity_Create(FirstTime As Boolean)
    Conn.Initialize2( "oracle.jdbc.OracleDriver","jdbc:oracle:thin:@dbschaefer1_high?TNS_ADMIN=WALLET_DIRECTORY","USERNAME","PASSWORD!")
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
 
Upvote 0

BernhardS

Member
Licensed User
Longtime User
The following error occurs during compilation:
The additional Jar-Files are from the original oracle website.


 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…