Modify an Instance from Information Provided Interactively
You can run ttInstanceModify interactively if you do not specify any command-line options. In this case, the utility asks one by one if you want to change any of the supported options.
This example sets a new daemon port and server port. The values entered, or defaults chosen, are shown in bold.
Note:
TimesTen replication with Oracle Clusterware is not supported on Oracle Linux for Arm systems. If you are using Oracle Linux for Arm, Oracle Clusterware messages do not appear in thettInstanceModify output.
% $TIMESTEN_HOME/bin/ttInstanceModify
Instance Info
-------------
Name: myttinstance
Version: 26.1.1.1.0
Location: /swdir/TimesTen/ttinstances/myttinstance
Installation: /swdir/TimesTen/ttinstallations/fullinstall/tt26.1.1.1.0
Daemon Port: 28000
Server Port: 28001
Would you like to change the installation that this instance points to? [ no ]
The daemon for instance 'myttinstance' is currently configured to use port 28000.
Would you like to change this port? [ no ] yes
NOTE: If you are configuring TimesTen for use with Oracle Clusterware, the
daemon port number must be the same across all TimesTen installations
managed within the same Oracle Clusterware cluster.
Please enter a unique port number for the TimesTen daemon (<CR>=list)? [ ] 28050
Are you sure you want to change the daemon port number from 28000 to 28050?
[ yes ]
The server for instance 'myttinstance' is currently configured to use port 28001.
Would you like to change this port? [ no ] yes
Please enter a unique port number for the TimesTen server (<CR>=list)? [ ] 28060
Are you sure you want to change the server port number from 28001 to 28060?
[ yes ]
TNS_ADMIN for the instance 'myttinstance' is currently not set.
Would you like to change TNS_ADMIN for this instance? [ no ]
Would you like to configure TimesTen Replication with Oracle Clusterware? [ no ]
NOTE: The daemon will be stopped before changing port numbers.
Would you like to proceed with modifying the instance? [ yes ]
ttDaemonAdmin: daemon is not running
Changing the daemon port number ...
The daemon will now run on port 28050 ...
Changing the server port number ...
The server will now run on port 28060 ...
NOTE: You may need to modify your sys.ttconnect.ini file to
reflect the new server port. The sys.ttconnect.ini file is usually
located in your instance's conf directory, $TIMESTEN_HOME/conf.
Restarting the daemon ...
ttDaemonAdmin: daemon is not running
TimesTen Daemon (PID: 3072, port: 28050) startup OK.
The timesten.conf file is updated accordingly:
# TimesTen Instance Configuration File ... daemon_port=28050 server_port=28060 ...
Note:
In interactive mode, the daemon is restarted automatically if you set the daemon port or server port, and you are prompted to restart the daemon if you set TNS_ADMIN.