But the problem is ,i want to create a database using db2's CLP on my machine and then i wish to connect to that database from my java code using jdbc URL.
And when i create database from CLP and to this DB i try to connect from jdbc it doesnt works and tables r not created in it but somewhere else.
I using db2e drivers to connect to db
String driver = "com.ibm.db2e.jdbc.DB2eDriver";
String url = "jdbc:db2e://localhost:6789/mysample";
SO i would like to knw how i can connect to mysample database from CLP of db2. Normal command
Connect to mysample works but it doesnt show the tables which r created from jdbc.