Export TNS Names (TNSNamesExport)

The TNSNamesExport command exports TNS names entries (that had previously been imported) from the specified version of the model, typically to a specified file.

ttGridAdmin TNSNamesExport [-latest|-current|-version n] [filepath]

Options

The TNSNamesExport command has the options:

Option Description

-latest

Export TNS names entries from the latest model—the model being modified and not yet applied to the grid. This is the default.

-current

Export TNS names entries from the current model—the model most recently applied to the grid.

-version n

Export TNS names entries from the specified version number of the model.

filepath

Path and name of the file that will contain the exported TNS names entries. If no file is specified, the export goes to stdout.

Examples

This example exports tnsnames.ora from the latest version of the model (by default), then shows the contents of the file.

% ttGridAdmin TNSNamesExport /sw/tten/grid/misc/tnsnames.ora
% cd /sw/tten/grid/misc
% more tnsnames.ora
...
  ORCL =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = www.example.com)(PORT=1630))
      (CONNECT_DATA =
        (SERVICE_NAME = orcl)
      )
    )
...