How to create a new database in SAP HANA command line (HDBSQL)?

烈酒焚心 提交于 2019-12-25 08:02:08

问题


I am new to hdbsql and I have logged in to the SAP HANA Server and logged in to the hdbsql terminal as a HDB admin user(SYSTEM).

1.Is it good to create databases as admin user?If not how to create a new user for hdbsql? 2.How to create a new Database in command line?(Will this work "CREATE DATABASE dbname;")

Thank you.


回答1:


CREATE DATABASE as a command only applies if you are using a multi database container setup. As this question really is more about the concepts of HANA database administration, I highly recommend to invest the time to read the documentation or watch a video from the HANA academy on youtube. I'm pretty sure this will get you up to speed quicker than asking single questions one by one.




回答2:


Did you try 'create database'?

You should use CREATE SCHEMA <schema_name> [OWNED BY <user_name>].

More info on HANA queries/statements/functions can be found here.



来源:https://stackoverflow.com/questions/39657365/how-to-create-a-new-database-in-sap-hana-command-line-hdbsql

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!