3.9.1 Preparation for storing data
In preparation for storing data in the table, create a text file (input data path file) that points to the location where the sample data is stored.
The following figure shows the details of an input data path file.
This subsection explains how to use the vi command to create an input data path file.
- Organization of this subsection
(1) Creating an input data path file
-
Create an input data path file.
As the HADB administrator (adbmanager), enter the operating system command below and press Enter. This creates a file with the file name path.txt under the home directory of adbmanager.
vi /home/adbmanager/path.txt
-
Enter the sample data storage location.
Press the I key, and then enter the absolute path shown below. This absolute path identifies the sample data storage location.
/home/adbmanager/server/sample/SAMPLE.txt
-
Finish creating an input data path file.
Press Esc, enter the following command, and then press Enter:
:wq
An input data path file has now been created.
(2) Confirming the input data path file that has been created
To check whether an input data path file was created by the vi command, enter the following operating system command and press Enter:
ls /home/adbmanager/path.txt
Using the ls command, you can verify that the specified file was created. The following shows an example of the execution result.
- ■ Execution result example
-
/home/adbmanager/path.txt
When you have confirmed that an input data path file exists, creation of the input data path file is complete.
(3) Related item
adbimport (Import Data) in the manual HADB Command Reference