compare 2 outputs

Hello,
I have a shell script that is used as follows:

./script -s <Oracle_server_name>

the script returns several lines in this format:
parameter name required value Current Value comments
--------------- ------------- -------------- ---------

My objective now is to compare 2 oracle servers. I want for example to see the current value that differs between the 2 servers.

1] What should I do so that the script connects to the second server after it finishes with the first Oracle server? Currently the script has one argument.

2] Any hints on how to display the unmatched current value of both servers?

thx

Loop over it like 'for SERVER in Oracle_server_name Oracle_server_name; do script -s "$SERVER"; done'?

"Simple" solution could be to pipe output from each query to a temporary file and run 'diff' on it, qualitatively "better" solutions may depend on the format of the output (fixed items per line, fixed amount of lines?) and what you need to check (integer, word, relationship between items, etc, etc). Maybe post some lines you would like to compare.