Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

com.sap.db.jdbc.exceptions.JDBCDriverException:user is forced to change password

$
0
0

Hi all

I am trying to connect hana using jdbc code

 

here is my code

          Class.forName("com.sap.db.jdbc.Driver");

            String url = "jdbc:sap://host:30015/?";

            String user = "Mujadid";

            String password = "Cloud123";

            System.out.println("try to connect to HANA !");

            Connection cn = java.sql.DriverManager.getConnection(url, user, password);

            System.out.println("Connection to HANA successful!");

            ResultSet rs = cn.createStatement().executeQuery("select * from _SYS_STATISTICS.STATISTICS_ALERTS");

            rs.next();

            System.out.println(rs.getString(1));

 

 

I am facing following exception

 

com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [414]: user is forced to change password: alter password required for user MUJADID

  at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:345)

 

Any suggestion?


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>