Pervasive
Sign in | Join | Help
in

Connect with JCL to a secured database

Last post 05-27-2008 1:52 AM by callant. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-27-2008 1:52 AM

    • callant
    • Not Ranked
    • Joined on 06-02-2006
    • Meulebeke, Belgium
    • Posts 1

    Connect with JCL to a secured database

    I have the following :

    i'm making a program that opens a couple of files. I'm using the Java Class Library. The code needs to work on Windows servers and also on Linux servers.

    When i use the following code, i can connect to a database on a linux server :

    db = session.connectToDatabase("btrv://" + user + "@" + host + "/" + database + "?pwd=" + password);

    But i can not connect to a windows database like this. I get this error :

    pervasive.database.PsqlSecurityException: Database login required. Authentication failed due to a wrong or missing username.

    BTRV Operation 78 returned error code: 170.

     

    I can connect to the DEMODATA database if i do the following :

    db = session.connectToDatabase("btrv://" + host + "/" + database); 

    Linux PSQL version : 9.52-060

    Windows PSQL version : 9.52.060

    Is there documentation available for the DBURI class ?

     

    Kind regards,

    Renzo Callant 

     

     

     

Page 1 of 1 (1 items)
© 2008 Pervasive Software Inc. All Rights Reserved.