Create an Instance from Information Provided in a Batch File
You can use the ttInstanceCreate -batch option to use a batch file with instructions for creation of an instance. You created such a file by running ttInstanceCreate with the -record option. See Create an Instance Interactively with the -record Option for information.
This example first uses a sample batch file that was created with the -record option. It then uses this sample batch file (instancecreatebatch) to create the instance.
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.Please choose an instance name for this installation:ttuser1instancebat Is this correct:y Where would you like to install the ttuser1instancebat instance of TimesTen:/swdir/TimesTen/ttinstances Please enter a unique port number for the TimesTen daemon (<CR>=list):29100 Please enter a value for TNS_ADMIN (s=skip):s What is the TCP/IP port number that you want the TimesTen Server to listen on:29101 Would you like to use TimesTen Replication with Oracle Clusterware:n
Then to create the instance:
%installation_dir/tt26.1.1.1.0/bin/ttInstanceCreate -batch /swdir/TimesTen/ttinstances/instancecreatebatch
This results in the following output from ttInstanceCreate:
NOTE: Each TimesTen instance is identified by a unique name.
The instance name must be a non-null alphanumeric string, not longer
than 255 characters.
Instance name will be 'ttuser1instancebat'.
Creating instance in /swdir/TimesTen/ttinstances/ttuser1instancebat ...
TCP port 6624 is in use!
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.
** The default daemon port (6624) is already in use or within a range of 8
ports of an existing TimesTen instance. You must assign a unique daemon port
number for this instance. This installer will not allow you to assign another
instance a port number within a range of 8 ports of the port you assign below.
NOTE: All installations that replicate to each other must use the same daemon
port number that is set at installation time. The daemon port number can
be verified by running 'ttVersion'.
INFO: installation group ownership (ttVersion) is 'timesten'
In order to use the cache features in any TimesTen databases
created within this instance, you must set a value for the TNS_ADMIN
environment variable. It can be left blank, and a value can be supplied later
using <install_dir>/bin/ttInstanceModify.
NOTE: The TimesTen daemon startup/shutdown scripts have not been installed.
The startup script is located here :
'/swdir/TimesTen/ttinstances/ttuser1instancebat/startup/tt_ttuser1instancebat'
Run the 'setuproot' script :
/swdir/TimesTen/ttinstances/ttuser1instancebat/bin/setuproot -install
This will move the TimesTen startup script into its appropriate location.
The 26.1 Release Notes are located here :
'/swdir/TimesTen/ttinstallations/fullinstall/tt26.1.1.1.0/README.html'
Starting the daemon ...
TimesTen Daemon (PID: 7725, port: 29100) startup OK.You have successfully created the TimesTen full instance. Proceed to "Review the Instance Home Directory and Subdirectories" for next steps.