- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Error: "invalid schema name" even if schema is present in the database in SAP HANA
I think you need to mention database name in JDBC URL while connecting to the database. Try following −
String server = "servername.domain.com"; String instance = "03"; String database = "TEST"; String dbUsername = "USERNAME"; String dbPassword = "xxxxxx"; String jdbcUrl = "jdbc:sap://" + server + ":3" + instance + "15/?currentschema=" + database + "&user=" + dbUsername + "&password=" + dbPassword; java.sql.Connection connection = java.sql.DriverManager.getConnection(jdbcUrl);
- Related Articles
- Checking schema creation in SAP HANA database
- Different schema types in SAP HANA database
- Changing Ownership of schema in SAP HANA Database
- Checking SAP HANA Schema owner name
- Getting error while using schema in SAP HANA Modeling
- Authoring schema vs Physical schema in SAP HANA
- Checking tables in a schema in SAP HANA database
- Checking a table inside a schema in SAP HANA database
- Using Schema mapping in SAP HANA
- Setting schema mapping in SAP HANA
- Refreshing a schema after creating a table in SAP HANA database
- Taking schema wise backup in SAP HANA
- Taking backup of schema in SAP HANA
- Use of _SYS_BIC schema in SAP HANA
- Use of _SYS_BI schema in SAP HANA

Advertisements