Adabas Cluster 7.2.0 | Maintenance | Troubleshooting | Importing File in a Cluster
 
Importing File in a Cluster
In Adabas Cluster, you can import files on the primary node of a cluster environment with the ADAORD utility.
Importing files on a secondary node will be rejected with the following error message:
ADABCK-E-CLUSTER, In a cluster this operation is only allowed on the primary node
The input file (ORDEXP) is automatically replicated to all secondary nodes. The ADAORD output shows in the nucleus log on the secondary nodes.
If the replication to the cluster fails, the import will not be completed on the primary node.
When a file is successfully imported to the cluster, a copy of the input file is stored in the database directory on the secondary nodes. You can specify a different directory with the environment variable ADA_CLUSTER_FILE_DIR. The copy on the secondary nodes is deleted after a successful import.
Ensure that sufficient space is available in the database of the secondary nodes or the custom directory with the nucleus parameter OPTIONS=AUTO_EXPAND.
*The following example shows how to import a file in a cluster:
1. Display cluster status.
# Display cluster status:

bash-4.4$
adaopr db=100 di=clu
%ADAOPR-I-STARTED, 22-JAN-2025 11:18:53, Version 7.x.0.0 (Linux 64Bit)

Database 100, startup at 22-JAN-2025 11:11:37
ADANUC Version 7.4.0.0, PID 834425

ADANUC Version 7.4.0.0
Database 100 Cluster on 22-JAN-2025 11:18:53


Cluster UUID 445b4b6f-d8a9-11ef-806f-ce3e52ae5641

view was last updated at sequence number 4
cluster node is at sequence number 8

3 Node(s) Primary component of the cluster

Name ADATCP Status Seqno
---- ------ ------ -----
redada6c-25101 adatcp://redada6c.eur.ad.sag:26101 SYNCED 8
redada6c-25100 adatcp://redada6c.eur.ad.sag:26100 SYNCED 8
redada6c-25102 adatcp://redada6c.eur.ad.sag:26102 SYNCED 8

Primary node: redada6c-25100

Current node: redada6c-25100 Cluster_Log_Level: DEBUG


%ADAOPR-I-TERMINATED, 22-JAN-2025 11:18:53, elapsed time: 00:00:002
2. Import file 11 on the primary node.
adaord db=100 import=11
%ADAORD-I-STARTED, 22-JAN-2025 13:17:19, Version 7.x.0.0 (Linux 64Bit)
%ADAORD-I-DBON, database 100 accessed online

%ADAORD-I-IMPFIL, importing file 11, EMPLOYEES-NAT
%ADAORD-I-IOCNT, 2 IOs on dataset DATA
%ADAORD-I-IOCNT, 8 IOs on dataset ASSO
%ADAORD-I-IOCNT, 7 IOs on dataset ORDEXP
%ADAORD-I-TERMINATED, 22-JAN-2025 13:17:19, elapsed time: 00:00:00