Add a DB file to a dbspace.
Prerequisites
Database Version |
DB File Privileges |
SAP Sybase IQ 15.3 and 15.4 |
You must have one of:- DBA authority
- SPACE ADMIN authority
|
SAP Sybase IQ
16.0 |
You must have the MANAGE ANY DBSPACE system privilege. |
- The SAP Sybase IQ resource is authenticated and
running.
- In a multiplex
configuration, the coordinator node is running.
- The dbspace is online.
- If adding a dbfile to a cache dbspace, the dbspace is in ReadWrite mode.
Task
Follow
these steps to add files to all shared dbspaces: IQ_SYSTEM_MAIN, IQ_SHARED_TEMP,
Cache, RLV, and all user-defined dbspaces.
Note:
Adding DB files to IQ_SYSTEM_MAIN synchronizes all running secondary nodes.
Adding DB files to IQ_SYSTEM_MAIN in a multiplex environment synchronizes all
running secondary nodes.
- In the Perspective Resources view, select the resource, and
select .
- In the left pane, expand , and then select DB Files.
- Click the arrow next to DB Files and select
New.
Tip: You can also create a DB File from Dbspace Properties > DB
Files page > Folder > New.
The Create DB File wizard appears.
- On the DB Files page, select the resource and the dbspace to which you are
adding the DB file.
If the resource is a multiplex, the Multiplex node
dropdown appears.
- Select the node containing the dbspace to which you are adding the DB
file.
- Select the dbspace.
Note: For cache dbspaces, each node shows only the cache dbspace that resides on
it. For main store dbspaces, all dbspaces show regardless of which multiplex
node is selected.
- Click Add.
Note: DB files can only be added to the RLV store dbspace when it is online. The
RLV dbspace can either be in ReadOnly or ReadWrite mode, however files can
only be added in ReadWrite mode when there are no RLV-enabled
objects.
Note: For a cache dbspace, you can add multiple DB Files to a
multiplex node, but only one file at a time. For a cache dbspace on a
simplex, you can add multiple DB files at once.
- On the DB File Details page, specify:
Option |
Description |
Logical name
|
User-defined name of the DB file.
|
Path to physical file on disk
|
Path to the physical file on disk. It is usually best to use an absolute path. A relative path works for simplex servers and for multiplexes that use the SCC shared-disk facility and have the SCC installation directory mounted in the same location on each multiplex server host. If you specify a relative path for a simplex that is later converted to a multiplex, the relative path might cause an error.
|
Raw device
|
A check mark indicates the file is on a raw device.
Cache dbspaces normally use raw device
files.
|
File size
|
Space you allocate to the DB file in kilobytes (KB),
megabytes (MB), gigabytes (GB), or terabytes (TB). Unavailable on
raw devices; required if the file is not on a raw device. Minimum
file size is 8 MB.
|
Reserve size
|
(Optional; default is 0.) Extra space you allocate to
the DB File in kilobytes (KB), megabytes (MB), gigabytes (GB), or
terabytes (TB). Default is 0. You can use this space to increase the
file size if the file grows. Guideline: reserve size should be about
30% of file size.
Note: Not applicable to cache
dbspace.
|
Mode
|
(Optional) - Read Only
- Read/Write
- Force Read/Write
Note: This option appears only if you are adding DB
files to the IQ_SHARED_TEMP dbspace in a multiplex
setup.
|
- Click Finish.
Next
Create a Dbspace File Size in Use alert to warn you if the DB file
exceeds a set percentage of the configured file size (70%, for example). If the alert is
activated, you can increase the file size. To enable this alert, first schedule a data
collection that includes its key performance indicator, such as the Dbspace File
Statistics Collection or All Stats w/o Availability.