Entering content frame

Procedure documentation Creating a Database Instance Locate the document in its SAP Library structure

Use

You are the operating system user and are creating a new database instance.

Prerequisites

The following prerequisites must be met on the server on which you want to create the database instance:

Communication

Microsoft Windows

UNIX

local

Operating system user has administration rights for database server *

(Implicit logon to the operating system)

Logon on to the operating system using option –s (local operation)

remote

Operating system user has administration rights for database server and the log on as batch job * right

Log on to the operating system using db_create and option <os_user>,<password>

Log on to the operating system using db_create and the option <os_user>,<password>

If several versions of the database software are available on the database server, you must specify the path of the version to which this database instance is to be assigned when registering the database instance. To do this, use the option -R (installation directory of the database software) when calling the Database Manager CLI.

*(You can find information about maintaining operating system users in your operating system documentation.)

Syntax

db_create [<option>] <database_name> <dbm_user>,<password> [<os_user>,<password>]

<database_name>

Name of database instance, maximum length eight characters

<dbm_user>,<password>

Database Manager operator

This operator is stored on the database server when you start to create the database. Subsequent access to the database instance is possible only with this operator.

[<os_user>,<password>]

Operating system user

If you want to create the database instance on a remote server, you must also specify the operating system user for this server. If the logon to the operating system fails, the database instance cannot be installed.

Example

Creating a local database instance on Microsoft Windows:
db_create myDB1 samplename,secret

Creating a remote database instance on Microsoft Windows:
db_create myDB2 samplename,secret winuser,win

Note

From now on, to access this database instance you need the <dbm_user> and<password>specified at registration.

Reply

There is an OK message after the command has been executed successfully.

In the event of errors, see Reply Format.

 

Example: How to Create a Database Instance

 

Leaving content frame