问题
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