How do I create and manage custom auxiliary database table attributes?

Note: The password value that you specify in the following steps is the password of the samauxdb user.

Steps
 

If you are creating a custom table, configure the elements in a table definition XML file using the format described in Table definition file format, and store the file securely in a remote location.


If you are adding data to a custom table, create a CSV-formatted data file that has the same record format as the custom table, and store the file securely in a remote location.


Log in to the standalone or primary main server station as the nsp user.


Open a console window.


Navigate to the /opt/nsp/nfmp/server/nms/bin directory.


To create a custom table, enter the following:

bash$ ./customData.bash -password password -createTables definition_file

where definition_file is the table definition XML file created in Step 1

The specified tables are created.


To import data to a custom table, enter the following:

bash$ ./customData.bash -password password -importData table_name data_file

where

data_file is the CSV data file created in Step 2

table_name is the table to which the data is to be imported

The data is imported.


To list all custom tables, enter the following:

bash$ ./customData.bash -listTables ↵

The tables are listed.


To delete all data in a custom table, enter the following:

bash$ ./customData.bash -password password -deleteData samdb.table_ct ↵

where table is the name of the table from which to delete data

The table data is deleted.


10 

To delete a custom table, enter the following:

bash$ ./customData.bash -password password -deleteTable samdb.table_ct ↵

where table is the name of the table to delete

The table is deleted.


11 

To export the data in a custom table to a file, enter the following:

bash$ ./customData.bash -exportData samdb.table_ct output_file

where

table is the name of the table from which to export data

output_file is the name of the file that is to contain the exported data

The table data are exported to the file.


12 

To export a custom table schema to a file, enter the following:

bash$ ./customData.bash -tableSchema samdb.table_ct output_file

where

table is the name of the table from which to export the schema

output_file is the name of the file that is to contain the exported schema

The table schema is saved in the file.


13 

Close the console window.

End of steps