How Can We Help?
< All Topics
Print

Zim Database Connection Concept

Distinguishing Between Zim 9 Server and Zim Server Connectivity

Zim 9 Server

  • Client/Server Mode: Zim 9 Server operates in Client/Server mode where Zim Server acts as the server, and Zim or Zim Thin Client are the clients.
  • Automatic Connection: Clients run a Zim application that accesses data provided by the server. Parameters, including the database name, are provided at the start of a client session to establish an automatic connection to Zim 9 Server.
  • Database Interaction: All data references are directed to the specified database until the client ends its operation.

Zim Server Connectivity

  • Accessing Multiple Databases: Clients can access data from another database serviced by the current Zim Server or another Zim Server on a different machine.
  • Connection Process: The client connects to a second database, performs data processing, and disconnects, all while still connected to the original database.
  • Concurrent Connections: Multiple Zim Server Connectivities can be performed with third or fourth databases, either simultaneously or sequentially.

Example Workflow

  1. Start Execution: ZIM executable connects to the “Original” database.
  2. Connect to Second Database: Explicitly connect to “Second” database, process data, and disconnect.
  3. Concurrent Connections: Connect to “Second” and “Third” databases concurrently, process data, and disconnect.
  4. End Execution: Automatically disconnect from “Original” database.

Comments

  • Explicit Connection: Use the CONNECT command with parameters to identify and connect to the desired database.
  • Database Agent: Zim Server starts a ZIM Database Agent to handle client operations. One agent per connection.
  • Disconnect Command: Use the DISCONNECT command to end the interaction and terminate the agent.

Concurrent Connections

  • Alias Configuration: Define aliases in the “zimalias.zim” configuration file to manage concurrent connections and ensure Zim knows which objects are related to each connection.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish