CMS DB Install Script README File.

1. Login as oracle user on the CMS DB server.

2. Copy installcms.tar.gz file to any folder under /home/oracle directory.

3. Unzip using the following command:
	tar -xzvpf installcms.tar.gz

4. If you want to install the tables with patitions option, please follow the below instructions.

      i)   Goto the folder where the installcms.tar.gz tar file got unzipped.
      ii)  Open the createWFS.sql file and scroll all the way to the end of the file and search for "createWFSdb.install_wfs".
      iii) Pass the parameter for createWFSdb.install_wfs procedure as follows:

		createWFSdb.install_wfs(ENABLE_PARTITION  => 'FALSE',
		                        SIZE_OF_PARTITION => 'W',      
		                        ENABLE_MAX_PARTITION  => 'TRUE',
		                        NUMBER_OF_PARTITIONS  =>  10);  

              Parameter-1)  ENABLE_PARTITION     : TRUE enables partition.  FALSE is default.
              Parameter-2)  SIZE_OF_PARTITION    : D for Daily, W for Weekly and M for Monthly.
              Parameter-3)  ENABLE_MAX_PARTITION : TRUE enables to create a max partition by default, however new partitions have to be split.FALSE allows adding partitions without splitting.
              Parameter-4)  NUMBER_OF_PARTITIONS : By default 10 partitions will be created when ENABLE_MAX_PART is FALSE.

      iv)  To create and drop the partitions, the jobs add_partitions.sh and purge_cms_data.sh are to be added in the crontab.


5. To install CMS Schema and tables on the default ttv db instance, call the script from oracle unix command line:
	sh installCMS.sh