- Install Teradata Wallet.
-
Create tdclientdir where the binaries are located using:
echo -n /opt/teradata/client/ > tdclientdir
-
Add a name/value pair to the wallet.
$ ./tdwallet add mypassword Enter desired value for the item named "mypassword": Item named "mypassword" added.
- Get the JDBC Driver and tdwalletJNI.so.
-
Copy tdwalletJNI.so into /home/beehive/work/multibranch/builds/build-main/lib/.
$ javac -classpath /home/beehive/work/multibranch/builds/build-main/lib/noarch-aster-jdbc-driver.jar com/test/testjdbc/tdwallet.java $ java -classpath .:/home/beehive/work/multibranch/builds/build-main/lib/noarch-aster-jdbc-driver.jar -Djava.library.path=/home/beehive/work/multibranch/builds/build-main/lib/ com.test.testjdbc
You can also find the tdwalletJNI.so file in the same directory as noarch-aster-jdbc-driver.jar in these packages:
clients-platform-version-reversion.tar.gz clients_all/platform...
- Use the Teradata Wallet password $tdwallet( mypassword ) instead of the real password to log in to the Aster Database.