0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

SAP HANA Database テナントの操作

Posted at

Log onto a database in a single-container system:
hdbsql -n -i -u - p

Log onto a database in a multitenant database container:
hdbsql -n -i -u - p -d

-- create a tenant
CREATE DATABASE TESTDB SYSTEM USER PASSWORD Initial1;
-- add the script server service
ALTER DATABASE TESTDB ADD 'scriptserver'

-- or hit two birds with one stone
CREATE DATABASE TESTDB ADD 'scriptserver' SYSTEM USER PASSWORD Initial1;

-- Tenants by default start automatically, but can be started and stopped manually as well
ALTER SYSTEM START DATABASE TESTDB;

-- Tenant DB List
select * from "SYS"."M_DATABASES"

-- Stop before you drop
ALTER SYSTEM STOP DATABASE TESTDB;
-- Drop tenant db
DROP DATABASE TESTDB;

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?