on 11-04-2014 11:38 AM
Hi All,
We have a SAP CE server, I am writing Java code using JDBC to get data in my system, Program is running in client desktop, I I want to know some details
host : what shall I give here ? Only the IP of ce server will work or any port I need to supply ?
database name : where can I check database name ?
This is the example I am referring
Code
String url = "jdbc:sapdb://" + host + "/" + dbname;Connection connection = DriverManager.getConnection (url, username, password);
Hi Arvind,
Hostname would be the hostname of database and dbname is the SID of the database.
Regards,
Nirmal.K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Nirmal,
I am bit confused : I can access NWA in http://10.86.15.126:50000/nwa
So host will be 10.86.15.126 ?
and where can I find sid
what about schema name
Are you able to connect to the OS where the SAP system is installed? if yes then open the configtool and check the secure store. It will have the JDBC string with the hostname and also an entry for the schema user. Most probably the schema would be SAPSR3DB for a J2EE stack.
Cheers
Reagan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.