|
|
ALLBASE/SQL Reference Manual: HP 9000 Computer Systems > Chapter 2 Using ALLBASE/SQLCreating DBEnvironments |
|
Before you can create a database, you must first configure a DBEnvironment. Before you can configure a DBEnvironment, the special HP-UX user hpdb must have write permission in the directory in which your DBECon file will reside. You use the START DBE NEW statement, optionally specifying startup parameters to override those assigned by default. You can use parameters to specify the following information:
The DBEnvironment name, SomeDBE for example, is specified within single quotation marks in the START DBE NEW statement:
This statement configures a DBEnvironment named SomeDBE in the current working directory. This DBEnvironment contains the following files:
The startup parameter MULTI makes this DBEnvironment accessible in multiuser mode by default. The DBECon file stores the startup parameters defined by the START DBE NEW statement. For more information on startup parameters, refer to START DBE NEW in Chapter 12 “SQL Statements S - Z” Once a DBEnvironment exists, one or more databases can be created in it. Because databases are collections of tables and views, databases are created by defining tables and views. The definition of tables and views is discussed later in this chapter in "Defining How Data is Stored and Retrieved." You can specify a native language parameter in creating a DBEnvironment. Use the LANG = LanguageName option in the START DBE NEW statement to specify a native language other than n-computer, as in the following example:
If you want to specify the name of the DBEnvironment in a native language, then the native language you specify in the LANG clause must be covered by the same character set as the language designated as the current language at the operating system level. The current language can be different from that of the DBEnvironment. In that case, all processing--including comparisons and sorting--will take place in accordance with the language of the DBEnvironment, but messages will appear in the operating-system-designated language if the appropriate message catalog is available. Also, scanning of user input will be in the current language. See "Native Language Support" in Chapter 1 “Introduction” for information about specifying a native language as the current language. When a DBEnvironment is configured, ALLBASE/SQL grants the following initial privileges:
Nobody other than the DBECreator can connect to or issue SQL statements in the DBEnvironment until the DBECreator grants the appropriate authorities. DBA authority cannot be revoked from the DBECreator. Only the SQLUtil RESTORE statement can be used to change the DBEUserID of the DBECreator. The DBEUserID evaluates to the login name. |
|