NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | EXAMPLES | EXIT STATUS | ERROR CODES | SEE ALSO
The hadbm create command creates the specified database on all the named hosts. The specified database must not already exist on the named hosts. All the paths used for the database must exist and must be writeable on the named hosts. The host list must be greater than one and comtain an even number of hosts. You can specify where to store the data devices, log devices, history files, and configuration files. The password string must be a minimum of eight characters. The system user is assigned the password that is supplied in the ––dbpassword or ––dbpasswordfile options. This password is expected to be passed in other commands that require data access.
The number of spares must be an even number and must be less than or equal to the number of hosts given in the host list and at least two active nodes should be present. The number of devices must be between one and eight.
The name identifying the software package. If the package is not found, a default package is registered.
Identifies the full path of the HADB software package. This path is only used if the package is not registered in the domain. If the package is already registered, this option is ignored. The default value is the path for the installation of the hadbm client.
The full path to the history files. If the historypath option is not specified, the default path is set up by the management agent(s). The management agent uses the entries in the configuration file (ma.server.dbhistorypath).
The path for the data and log devices. The path to the device must already exist. To set the path differently for each node or device, use the ––set option. There are three types of devices:
DataDevice
NiLogDevice (node internal log device
RelalgDevice (relational algebra query device)
If the devicepath option is not specified, the default path is set up by the management agent(s). The management agent uses the entries in the configuration file (ma.server.dbdevicepath).
The number of data devices. The number must be between 1 and 8, on each node.
The port base number used for node 0. The other nodes are then assigned port number bases in steps of 10 from the number specified here.
The number of spares. The number must be less than the length of the host list and at least two active nodes should be there.
Identifies the configuration parameters that will be set to the database. Must be specified as a comma-separated list of database configuration attributes in name=value format.
Use this option to set a different ––devicepath for each node or each device. The syntax for each name=value pair is:
Node-nodenumber.device-devicenumber.DevicePath=path
Where: -devicenumber is only required if the device is a DataDevice.
For example: Node-0.DataDevice-0.DevicePath=/disk0. Any device path that is not set for a particular node or device defaults to the ––devicepath value.
The following table identifies the configuration attributes available.
Table 1 Configuration Attributes
Variable |
Type |
Default |
---|---|---|
ConnectionTrace |
boolean |
false |
CoreFile |
boolean |
false |
DataBufferPoolSize |
integer |
200 MB |
DatabaseName |
string |
hadb |
DataDeviceSize |
integer |
1024 MB |
DevicePath |
string |
n/a |
EagerSessionThreshold |
integer |
50 (% of NumberOfSessions) |
EagerSessionTimeout |
integer |
120 seconds |
EventBufferSize |
integer |
0 MB |
HistoryPath |
string |
n/a |
InternalLogBufferSize |
integer |
12 MB |
LogBufferSize |
integer |
48 MB |
MaxTables |
integer |
1100 |
NumberOfDatadevices |
integer |
1 |
NumberOfLocks |
integer |
50000 |
NumberOfSessions |
integer |
100 |
PackageName |
string |
V4.4.1.1 |
Portbase |
integer |
15000 |
RelalgDeviceSize |
integer |
128 MB |
SessionTimeout |
string |
1800 seconds |
StatInterval |
integer |
600 |
StartRepairDelay |
integer |
20 seconds |
SQLTraceMode |
string |
off |
SysLogging |
boolean |
true |
SyslogFacility |
string |
local0 |
SyslogLevel |
string |
warning |
SyslogPrefix |
string |
hadb-<db_name> |
TakeoverTime |
integer |
10000 MS |
Identifies the URL to the Management Agent(s) (hostlist:port).
Use this option to prevent the deletion of files that are normally deleted (such as the history files, devices, and configuration files) if the create command fails.
By default the database is initalized and started. However, if this option is set, the database processes will not be started, the devices will not be initialized, and you must use the clear command to start the database for the first time.
The size of the data devices (specified in MB). This size is applicable on all devices.
The password string for the system user of the database. The minimum length of the password must be 8 characters. You can identify either the database password, or for higher security, the password file where the password is defined.
Identifies the file containing the password to be used for the system user of the database.
The actual HADBM administation password.
The file containing the HADBM administration password. The adminstration password is defined in the following form: HADBM_ADMINPASSWORD=password. Where password is the actual administrator password.
Using this option eliminates the need of password identification.
A comma-separated list of all the host names or IP addresses used for all the nodesin the database. An HADB Management Agent must be running on each host. Using the IP address is recommended because there is no dependence on DNS lookups. Hostnames must be absolute. Do not use localhost or 127.0.0.1 as a hostname.
Configuring an HADB instance with double networks: To make HADB tolerate single network failures, the HADB server machines can be equiped with two NIC cards. The HADB instance must be configured to exploit these cards by specifiying both IP addresses of the NIC cards for each node. The first IP address the HADB considers as “net-0,” the second is set to “net-a.” The syntax for a two-node configuration is: ––hosts=h0a+h0b,h1a+h1b.
h0a is host-0's IP address on net-0
h0b is host-0's IP address on net-1
h1a is host-1's IP address on net-0
h1b is host-1's IP address on net-1
All nodes in a database instance must be connected to both networks. Some nodes can be connected to both networks while others are connected to only one network. The IP address of each NIC card must be on separate IP subnets.
The following example creates a database with the default database name hadb with two active nodes, and a single data device. The system prompts you for the password twice. All paths are default paths and must be created before initiating this command.
hadbm create --devicesize=256 --hosts=host1,host2 Database successfully created and started |
The following example creates a database named mydb with two active nodes, two spare nodes, two devices per node, and a specific port base number for some specific path.
hadbm create -H host1,host2 --packagepath=/home/hadb/install --historypath=/export/home/hadb/history --devicepath =/export/home/hadb/device --configpath /home/hadb/config --datadevices=2 --portbase=1500 --dbpasswordfile=/home/hadb/dbpfile --spares=2 --devicesize=512 --set "Node-0.DataDevice-0.DevicePath=/disk0 Node-0.DataDevice-0.DevicePath=/disk1" mydb Database successfully created and started |
Node 0 gets two data devices: /disk0/mydb.data.0 and /disk1/mydb.data1.1. Since Node 1 is not specified with any specific device path in the ––set option, and since the ––datadevices option was set to 2, Node 1 gets both devices on the path given in the ––devicepath option. The devices for Node 1 are then /export/home/hadb/device/mydb.data.1 and /export/home/hadb/device/mydb.data1.1.
database exists
specified path does not exist
specified path does not have write permissions
host unreachable
hosts not added in pairs
database name specified is not valid
port base number is not valid
specified number for data devices cannot be supported
specified device size cannot be supported
specified number of spares could not be allocated
attributes are not recognized
password string not valid
database not refragmented (if ––no-fragment is set to true)
hadbm-clear(1), hadbm-delete(1), hadbm-list(1), hadbm-start(1), hadbm-restart(1), hadbm-status(1), hadbm-stop(1)
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | EXAMPLES | EXIT STATUS | ERROR CODES | SEE ALSO