Wallstreet Suite Installation And Upgrade Guide WSS
User Manual:
Open the PDF directly: View PDF .
Page Count: 184
www.wallstreetsystems.com
Wall Street Systems – Empowering Treasury Trade and Settlement
Wallstreet Suite
Installation and Upgrade Guide
Version 7.3.16
Information in this document is subject to change without notice and does not represent a commitment on the part
of Wall Street Systems. The software and documentation, which includes information contained in any databases,
described in this document is furnished under a license agreement or nondisclosure agreement and may only be
used or copied in accordance with the terms of the agreement. It is against the law to copy the software or
documentation except as specially allowed in the license or nondisclosure agreement. No part of this publication
may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical,
photocopying, recording, or otherwise, without the prior written permission of Wall Street Systems.
Although Wall Street Systems has tested the software and reviewed the documentation, Wall Street Systems
makes herein no warranty or representation, either expressed or implied, with respect to software or
documentation, its quality, performance, marketability, or fitness for a particular purpose. As a result, this
software is provided "as is", and in no event will Wall Street Systems be liable for direct, indirect, special,
incidental, or consequential damages from any defect in the software or by virtue of providing this
documentation, even if advised of the possibility of such damages. The documentation may contain technical
inaccuracies and omissions.
The mention of an activity or instrument in this publication does not imply that all matters relating to that activity or
instrument are supported by Wallstreet Suite, nor does it imply that processing of or by that activity or instrument is
carried out in any particular way, even if such processing is customary in some or all parts of the industry.
The windows and screen images shown herein were obtained from prototypes during software development. The
actual windows and screen images in the software may differ.
© Copyright 2011 Wall Street Systems IPH AB. All rights reserved.
First Edition (August 2011)
This edition applies to Wallstreet Suite version 7.3.16 and to all later releases and versions until indicated in new
editions or Wall Street Systems communications. Make sure you are using the latest edition for the release level of
the Wall Street Systems product.
Wall Street Systems, WSS, WALLSTREET, WALLSTREET SUITE and the Wall Street Systems logos are
trademarks of Wall Street Systems Delaware, Inc.
Finance KIT, Trema and Trema logo are trademarks of Wall Street Systems Sweden AB.
Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States
and/or other countries.
Adobe, Acrobat, and Acrobat Reader are either registered trademarks or trademarks of Adobe Systems
Incorporated in the United States and/or other countries.
All other products mentioned in this book may be trademarks or service marks of their respective companies or
organizations.
Company names, people names, and data used in examples are fictitious unless otherwise noted.
2
Contents
Preface ...........................................................................................................................13
Introduction .................................................................................................................................. 13
How to use this guide .................................................................................................................. 13
Using the script examples ......................................................................................................... 13
Copying and pasting script examples ................................................................................ 13
UTF-8 encoding ................................................................................................................. 14
Conventions .............................................................................................................................. 14
Associated documents ................................................................................................................ 14
1 Introduction ...............................................................................................................15
1.1 First time installation or upgrade ........................................................................................ 15
1.2 Installation overview ............................................................................................................. 16
1.2.1 Suite Installer or "SIWizard" ............................................................................................ 16
1.2.2 Installation process ......................................................................................................... 17
1.2.3 Site structure ................................................................................................................... 17
2 Hardware and software requirements .....................................................................19
2.1 Guidelines for minimum hardware requirements .............................................................. 19
2.1.1 CPU and memory ........................................................................................................... 19
2.1.2 Disk space ...................................................................................................................... 20
2.2 Software requirements ......................................................................................................... 21
2.2.1 Recommended platforms ................................................................................................ 22
2.3 Minimum memory requirements at Wallstreet Suite startup ............................................ 23
3 Downloading Wallstreet Suite and
third party software ................................................................................................25
3.1 Downloading the Wallstreet Suite package ........................................................................ 25
3.2 Installing the necessary third party software ..................................................................... 25
4 First time installation: installing the database .......................................................27
4.1 Introduction ........................................................................................................................... 27
4.2 Oracle database installation ................................................................................................ 27
4.2.1 Before installing the database ......................................................................................... 27
4.2.2 Installing Oracle .............................................................................................................. 27
4.2.3 Oracle database installation ............................................................................................ 28
Installation and Upgrade Guide
3
4.2.3.1 Creating the database instance ............................................................................ 28
4.2.3.2 Configuring the database instance ....................................................................... 30
4.2.3.3 Performance tuning .............................................................................................. 30
4.2.4 Building a new database ................................................................................................. 30
4.2.5 Installing the ACM schema objects ................................................................................. 31
4.2.5.1 Setting up the ACM prerequisites ......................................................................... 31
4.2.5.2 Loading the ACM schema objects ........................................................................ 32
4.2.5.3 Completing the ACM schema object installation process ..................................... 33
4.2.6 Installing the CMM schema objects ................................................................................ 33
4.2.6.1 Setting up the CMM prerequisites ........................................................................ 33
4.2.6.2 Loading the CMM schema objects ....................................................................... 34
4.2.6.3 Completing the CMM schema object installation process .................................... 35
4.2.7 Housekeeping and maintenance .................................................................................... 35
4.2.7.1 Backups ................................................................................................................ 35
4.2.8 Exporting and importing a TRM database ...................................................................... 35
4.2.8.1 Rebuilding of indexes and stored procedures ...................................................... 36
4.2.8.2 DBVerify ............................................................................................................... 37
4.3 MSSQL database installation ............................................................................................... 37
4.3.1 Before installing the database ......................................................................................... 37
4.3.2 Database considerations and limitations ........................................................................ 38
4.3.3 Installing the Server ........................................................................................................ 38
4.3.3.1 Microsoft SQL Server 2005 or 2008 ..................................................................... 38
4.3.3.2 Creating a new database manually ...................................................................... 39
4.3.4 Building the database ..................................................................................................... 39
4.3.5 Housekeeping and maintenance .................................................................................... 39
4.3.5.1 Defining a database maintenance plan ................................................................ 39
4.3.5.2 Rebuilding indices and stored procedures ........................................................... 42
4.4 Sybase database installation ............................................................................................... 43
4.4.1 Checking the shared memory ......................................................................................... 43
4.4.2 Setting up Sybase group, user, and home account ........................................................ 43
4.4.3 Defining the Sybase environment ................................................................................... 43
4.4.4 Organizing disks ............................................................................................................. 44
4.4.4.1 Disk organization .................................................................................................. 44
4.4.5 Creating links to Sybase devices .................................................................................... 44
4.4.5.1 Sybase device links .............................................................................................. 44
4.4.6 Creating Sybase directory structure and current Link ..................................................... 45
4.4.7 Loading the Sybase software .......................................................................................... 45
4.4.8 Applying the latest Emergency Bug Fixes (EBFs) .......................................................... 45
4.4.9 Building the Sybase ASE (srvbuild) ................................................................................ 46
4.4.10 Initializing devices ......................................................................................................... 46
4.4.10.1 Step 1: Calculating the size of the devices (prtvtoc) ........................................... 46
4.4.10.2 Step 2: Executing the command ......................................................................... 47
4.4.11 Creating and configuring the databases ....................................................................... 47
4.4.11.1 Configuration of the database ............................................................................ 47
4.4.12 Expanding tempdb ........................................................................................................ 47
4.4.12.1 Increasing the size of tempdb ............................................................................. 48
4.4.13 Database segments ...................................................................................................... 48
4.4.14 Database options .......................................................................................................... 49
4
© Wall Street Systems IPH AB - Confidential
4.4.15 Sybase ASE configuration parameters ......................................................................... 49
4.4.15.1 Memory use ........................................................................................................ 50
4.4.15.2 Lock Manager ..................................................................................................... 51
4.4.15.3 Buffer data cache ............................................................................................... 51
4.4.15.4 User connections ................................................................................................ 51
4.4.15.5 Sybase server packet size .................................................................................. 51
4.4.15.6 Sybase ASE memory ......................................................................................... 51
4.4.15.7 Using Sybase parallel functionality ..................................................................... 52
4.4.15.8 Identity burning set factor ................................................................................... 52
4.4.15.9 "cpu grace time" .................................................................................................. 52
4.4.15.10 "optimization goal" ............................................................................................ 52
4.4.15.11 Character sets and sort order ........................................................................... 52
4.4.16 Traceflags ..................................................................................................................... 52
4.4.17 Setting up the automatic start of the Sybase ASE ........................................................ 53
4.4.18 Installing Sybase 15 on Linux RHEL 5 64-bit ................................................................ 53
4.4.19 Building a new database ............................................................................................... 53
4.4.20 Rebuilding stored procedures, views, and permissions ................................................ 54
4.4.21 Housekeeping and maintenance .................................................................................. 54
4.4.21.1 Backups .............................................................................................................. 54
4.4.21.2 DBCC ................................................................................................................. 55
4.4.21.3 Database objects maintenance .......................................................................... 55
5 First time installation: installing Wallstreet Suite ..................................................57
5.1
5.2
5.3
5.4
Introduction ........................................................................................................................... 57
Prerequisites ......................................................................................................................... 57
Expand the Wallstreet Suite package ................................................................................. 58
Inside the Suite Installer ....................................................................................................... 58
5.4.1 Basics and changes from previous versions ................................................................... 58
5.4.2 WSSInstaller options ....................................................................................................... 58
5.4.3 Suite Installer logs ........................................................................................................... 59
5.4.4 Launching Suite Installer ................................................................................................. 60
5.4.5 Installing the application server ....................................................................................... 60
5.4.6 Installing clients ............................................................................................................... 60
5.4.6.1 Installing a client ................................................................................................... 60
5.4.7 Installing shortcuts .......................................................................................................... 61
5.4.8 Suite Installer tips ............................................................................................................ 61
5.4.9 Other options .................................................................................................................. 62
5.4.10 Starting the TRM Client (Application Manager) ............................................................ 62
5.5 Creating and populating the database ................................................................................ 62
5.5.1 Introduction ..................................................................................................................... 62
5.5.2 Performing a build ........................................................................................................... 63
5.5.3 DBCA .............................................................................................................................. 63
5.6 Database upgrade using Suite Installer .............................................................................. 64
5.6.1 Upgrade Setup script ...................................................................................................... 64
5.7 Loading static data manually ............................................................................................... 65
5.7.1 Loading default static data .............................................................................................. 65
5
© Wall Street Systems IPH AB - Confidential
5.7.1.1 Unzipping the static data file ................................................................................. 65
5.7.1.2 Using DBLoader ................................................................................................... 65
5.7.1.3 The log file ............................................................................................................ 69
5.8 Importing existing static data .............................................................................................. 70
5.8.1 The process .................................................................................................................... 70
5.8.2 Documentation ................................................................................................................ 70
5.8.3 Verifying input data ......................................................................................................... 70
5.8.4 Verifying output data ....................................................................................................... 70
5.8.4.1 Saving worksheet data as CSV files ..................................................................... 71
5.8.4.2 Converting the CSV files to XML .......................................................................... 71
5.8.4.3 Uploading the XML files to the database using DBLoader ................................... 72
6 Managing Wallstreet Suite processes .....................................................................73
6.1 Different methods of managing Wallstreet Suite processes ............................................ 73
6.2 Quick tour of the installation ............................................................................................... 73
6.3 Using Process Monitor ......................................................................................................... 74
6.3.1 Launching Process Monitor ............................................................................................ 74
6.3.1.1 Automatically starting up processes ..................................................................... 75
6.3.1.2 Customizing real-time services from the site directory ......................................... 75
6.3.1.3 Launching pmsd and pmad .................................................................................. 75
6.3.2 Launching the Process Monitor application .................................................................... 76
6.3.3 Managing the Services ................................................................................................... 76
6.3.3.1 Debugging ............................................................................................................ 77
6.4 Additional Process Monitor information ............................................................................. 77
6.5 Application Server checks ................................................................................................... 77
6.6 Logging .................................................................................................................................. 77
6.6.1 Log files ........................................................................................................................... 77
6.6.1.1 Exceptions ............................................................................................................ 78
6.6.2 Log configuration ............................................................................................................ 78
6.6.2.1 TRM realtime processes ....................................................................................... 78
6.6.2.2 Websuite ............................................................................................................... 78
6.6.2.3 SDM ...................................................................................................................... 78
6.6.2.4 ACM ...................................................................................................................... 79
6.6.2.5 TRMSwift .............................................................................................................. 79
6.6.2.6 ActiveMQ .............................................................................................................. 79
7 Managing WSS modules ..........................................................................................81
7.1 Installing the SDM Synchronizer ......................................................................................... 81
7.1.1 Setting up prerequisites .................................................................................................. 81
7.1.2 Launching the Synchronizer ........................................................................................... 81
7.1.3 Batch synchronizing after installing or upgrading CMM .................................................. 82
7.1.3.1 Getting help on the sdm command ....................................................................... 82
7.1.4 Installing SDM as a Windows service ............................................................................. 82
7.2 CMM: configuring the Web server ....................................................................................... 83
7.2.1 Configuring IIS for BEA WebLogic .................................................................................. 83
6
© Wall Street Systems IPH AB - Confidential
7.3 Setting up and using WebSuite ........................................................................................... 86
7.3.1 Importing static data from TRM ....................................................................................... 86
7.3.2 Configuring report layouts ............................................................................................... 86
7.3.3 Configuring the Web browser for WebSuite .................................................................... 86
7.3.3.1 Starting WebSuite ................................................................................................. 87
7.3.4 WebSuite and resource files ........................................................................................... 87
7.4 TRMSwift configuration changes since the last version ................................................... 88
8 Upgrading: Wallstreet Suite .....................................................................................89
8.1 Pre-installation process ....................................................................................................... 89
8.2 Installing the new version .................................................................................................... 89
8.3 Database upgrade ................................................................................................................. 90
8.3.1 Upgrading from a version before 7.1.0.1 ........................................................................ 90
8.3.2 Upgrading from version 7.1.0.1 onwards ........................................................................ 90
8.3.2.1 Verifying version 7.1.0.1 ....................................................................................... 90
8.3.2.2 Preparing for upgrade ........................................................................................... 90
8.3.2.3 Upgrading CMM users (CMM with TRM) .............................................................. 91
8.3.2.4 Upgrading the database using the Suite Installer Wizard (recommended) .......... 91
8.3.2.5 Upgrading the database using the Suite Installer command line ......................... 91
8.4 Instrument and Transaction Migration (pre 7.1.01 only) ................................................... 91
8.4.1 Operations ...................................................................................................................... 92
8.4.1.1 Upgrade ................................................................................................................ 92
8.4.1.2 Instrument migration ............................................................................................. 92
8.4.1.3 Transaction Migration ........................................................................................... 92
8.4.2 Migrating instruments ...................................................................................................... 92
8.4.2.1 Instrument type ..................................................................................................... 93
8.4.2.2 Instrument group .................................................................................................. 93
8.4.2.3 Other data ............................................................................................................. 93
8.4.2.4 List of instruments covered ................................................................................... 93
8.4.2.5 Parameters ........................................................................................................... 94
8.4.2.6 Tuning ................................................................................................................... 94
8.4.2.7 Reporting .............................................................................................................. 96
8.4.3 Migrating transactions ..................................................................................................... 97
8.4.3.1 Instrument coverage ............................................................................................. 97
8.4.3.2 Parameters ........................................................................................................... 97
8.4.3.3 Tuning ................................................................................................................... 98
8.4.3.4 Reporting .............................................................................................................. 98
8.4.3.5 Transaction migration script ................................................................................. 98
8.5 Migration of cost-of-carry transactions .............................................................................. 98
8.6 Activating the new yield curve setup .................................................................................. 99
8.7 Upgrading CMM installation data ........................................................................................ 99
8.8 Upgrade the TRMSwift configuration ................................................................................ 100
9 Upgrading: database upgrade to Wallstreet Suite version 7.1.0.1 .....................101
9.1 Oracle upgrade .................................................................................................................... 101
7
© Wall Street Systems IPH AB - Confidential
9.1.1 Prerequisites ................................................................................................................. 101
9.1.1.1 Sybase emulation library .................................................................................... 101
9.1.1.2 sqlplus and UTF8 encoding ................................................................................ 101
9.1.1.3 Existing TRMSwift (Integration KIT) users .......................................................... 102
9.1.2 Oracle: upgrade steps ................................................................................................... 102
9.1.2.1 Preparing to upgrade .......................................................................................... 102
9.1.2.2 Upgrading from Finance KIT 6.5 to Wallstreet Suite 7.1.0.0 .............................. 102
9.1.2.3 Upgrading from Wallstreet Suite 7.1.0.0 to 7.1.0.1 ............................................. 102
9.2 MSSQL upgrade .................................................................................................................. 103
9.2.1 Prerequisites ................................................................................................................. 103
9.2.1.1 Existing TRMSwift (Integration KIT) users .......................................................... 103
9.2.2 MSSQL: upgrade steps ................................................................................................. 103
9.2.2.1 Preparing to upgrade .......................................................................................... 103
9.2.2.2 Unicode .............................................................................................................. 103
9.2.2.3 Upgrading from Finance KIT 6.5 to Wallstreet Suite 7.1.0.0 .............................. 104
9.2.2.4 Upgrading from Wallstreet Suite version 7.1.0.0 to 7.1.0.1 ................................ 104
9.3 Sybase upgrade .................................................................................................................. 105
9.3.1 Prerequisites ................................................................................................................. 105
9.3.1.1 Converting charset to UTF8 ............................................................................... 105
9.3.1.2 Existing TRMSwift (Integration KIT) users .......................................................... 105
9.3.2 Sybase: upgrade steps ................................................................................................. 105
9.3.2.1 Preparing to upgrade .......................................................................................... 105
9.3.2.2 Unicode .............................................................................................................. 106
9.3.2.3 Upgrading from Finance KIT 6.5 to Wallstreet Suite 7.1.0.0 .............................. 107
9.3.3 Upgrading from Wallstreet Suite version 7.1.0.0 to 7.1.0.1 .......................................... 107
10 Upgrading: iKIT .....................................................................................................109
10.1
10.2
10.3
10.4
Upgrading to the latest version of iKIT 6.5.x.x. .............................................................. 109
Renaming the iKIT database tables ................................................................................. 110
Oracle only: moving TRMSwift tables to another schema ............................................ 110
Oracle only: cleaning the database ................................................................................. 110
11 Installing: NumeriX® .............................................................................................111
11.1 Introduction ....................................................................................................................... 111
11.2 NumeriX license keys ....................................................................................................... 111
11.2.1 License request Nx 6.1 ............................................................................................... 111
11.2.1.1 Windows platforms ........................................................................................... 111
11.2.1.2 Unix platforms ................................................................................................... 111
11.2.2 Installing the license and library .................................................................................. 112
11.2.2.1 Installing the license under Windows ............................................................... 112
11.2.2.2 Installing the license under Unix ....................................................................... 114
11.3 Setting up a NumeriX server ............................................................................................ 115
11.3.1 Modify the module.ini files ........................................................................................... 115
11.3.2 NumeriX and Process Monitor .................................................................................... 116
11.3.2.1 Enable the startup of moduled that controls NumeriX ...................................... 117
8
© Wall Street Systems IPH AB - Confidential
11.4 Testing Numerix ................................................................................................................ 117
12 Installing: rate interfaces ......................................................................................119
12.1 Introduction ....................................................................................................................... 119
12.1.1 Operating system independent ................................................................................... 120
12.1.2 Integration with Process Monitor ................................................................................. 120
12.2 Configuring the rate interface services .......................................................................... 120
12.2.1 reuters.properties (config.properties) .......................................................................... 120
12.2.2 rates.properties ........................................................................................................... 121
12.2.3 orb.properties .............................................................................................................. 121
12.2.4 sybase.properties, oracle.properties, mssql.properties .............................................. 121
12.2.5 jms.properties ............................................................................................................. 121
12.2.6 Reuters configuration files .......................................................................................... 121
12.3 Additional options ............................................................................................................. 122
12.4 Prerequisites ..................................................................................................................... 122
12.5 Hardware and Software Requirements ........................................................................... 123
12.6 Troubleshooting ................................................................................................................ 123
12.7 Reuters configuration file ................................................................................................. 123
12.7.1 Reuters: further information ........................................................................................ 124
Appendix A: Configuration Properties.................................................................................125
A.1 Third Party Software Properties ....................................................................................... 125
A.1.1 Key properties .............................................................................................................. 125
A.2 Database Connection Properties ...................................................................................... 127
A.2.1 Key properties .............................................................................................................. 127
A.2.1.1 Properties common to all three database types ................................................. 127
A.2.1.2 Oracle properties only ........................................................................................ 128
A.2.1.3 MSSQL properties only ...................................................................................... 128
A.3 User Properties ................................................................................................................... 128
A.4 Host Properties ................................................................................................................... 128
A.4.1 Key properties .............................................................................................................. 128
A.4.2 Other properties ............................................................................................................ 129
A.4.2.1 Secondary host properties ................................................................................. 129
A.4.2.2 Mail properties .................................................................................................... 129
A.4.2.3 Printer properties ................................................................................................ 129
A.5 Application server properties ............................................................................................ 130
A.5.1 Key properties .............................................................................................................. 130
A.5.2 Other properties ............................................................................................................ 130
A.5.2.1 Secondary host properties ................................................................................. 130
A.6 Weblogic properties ........................................................................................................... 131
A.6.1 Key properties .............................................................................................................. 131
A.7 Process Monitor properties ............................................................................................... 131
A.7.1 Key properties .............................................................................................................. 131
9
© Wall Street Systems IPH AB - Confidential
A.8 Other properties ................................................................................................................. 131
Appendix B: Configuration data sheet.................................................................................133
Appendix C: Enabling SDM on a non-SDM system ............................................................135
C.1 Enabling SDM as part of an upgrade ................................................................................ 135
C.2 Enabling SDM ..................................................................................................................... 135
Appendix D: The build script ................................................................................................139
D.1
D.2
D.3
D.4
Introduction ......................................................................................................................... 139
build.pl options ................................................................................................................... 139
cmmbuild.pl options .......................................................................................................... 142
Examples ............................................................................................................................. 143
Appendix E: Upgrading CMM from a version before version 7.1.3.2 ................................145
E.1 Applying required database update .................................................................................. 145
E.1.1 Adding the required tablespaces .................................................................................. 145
E.1.2 Updating the permissions of the schema owner ........................................................... 145
E.1.3 Adding the required procedure and patch data ............................................................ 146
E.2 Installing and executing cmmbuild.pl ............................................................................... 146
E.2.0.1 Required files ..................................................................................................... 146
E.2.0.2 Procedure ........................................................................................................... 146
Appendix F: The cmmbuild.pl tool (pre version 7.3.0)........................................................149
F.1 cmmbuild.pl options ........................................................................................................... 149
F.1.1 Examples ...................................................................................................................... 150
F.1.2 Post migration: tables with less rows ............................................................................ 151
Appendix G: Transferring data from Sybase to Oracle ......................................................153
G.1 Introduction ........................................................................................................................ 153
G.1.1 Using a Wallstreet Suite 6.5 database ......................................................................... 153
G.1.2 Summary of steps ........................................................................................................ 153
G.2 Creating an empty Oracle database ................................................................................. 153
G.3 Dropping all indexes in the target database .................................................................... 153
G.4 Exporting data from Sybase .............................................................................................. 154
G.4.1 Copying large tables from Sybase ............................................................................... 155
G.5 Creating database tables (version 6.5 only) .................................................................... 155
G.6 Converting data .................................................................................................................. 156
G.7 Importing data into Oracle ................................................................................................. 156
G.8 Rebuilding indexes ............................................................................................................ 156
G.9 Rebuilding GLM indexes (version 6.5 only) ..................................................................... 157
10
© Wall Street Systems IPH AB - Confidential
G.10 Final tasks after data import ........................................................................................... 157
Appendix H: Password encryption.......................................................................................159
H.1 Encrypting passwords ....................................................................................................... 159
Appendix I: Trusted database login from TRM....................................................................161
I.1 Introduction .......................................................................................................................... 161
I.2 Trusted connection setup ................................................................................................... 161
I.2.1 Client configuration ........................................................................................................ 161
I.2.2 MSSQL database configuration ..................................................................................... 162
I.2.3 Oracle database configuration ....................................................................................... 162
I.2.3.1 Security considerations ....................................................................................... 162
I.2.3.2 Creating trusted accounts in Security Center ...................................................... 163
Appendix J: WebSuite with an IIS proxy server ..................................................................165
J.1 Configuring an IIS proxy with the ISAPI plugin and Weblogic ....................................... 165
J.1.1 Installing and configuring the ISAPI plugin by proxying by path ................................... 165
J.2 Adding a filter plugin to manage WebSuite local resources .......................................... 167
J.2.1 Installing IIRF ................................................................................................................ 167
Appendix K: Troubleshooting and FAQs.............................................................................173
K.1 Troubleshooting ................................................................................................................. 173
K.1.1 Common Errors ............................................................................................................ 173
K.1.2 Suite Installer troubleshooting ...................................................................................... 173
K.1.3 Server process troubleshooting .................................................................................... 173
K.1.3.1 Log in console .................................................................................................... 173
K.1.3.2 Run any server from the command line ............................................................. 173
K.1.3.3 Customizing any server using PMM ................................................................... 174
K.1.4 Tomcat application server and java applications troubleshooting on Windows ............ 175
K.1.5 Weblogic application server troubleshooting ................................................................ 175
K.1.6 ACM Application Server Troubleshooting ..................................................................... 175
K.2 FAQs .................................................................................................................................... 176
11
© Wall Street Systems IPH AB - Confidential
12
© Wall Street Systems IPH AB - Confidential
Preface
Introduction
This guide enables a qualified installation engineer to install the Wallstreet Suite software.
The engineer should be familiar with the following:
•
The system design that has been agreed between the customer and Wallstreet Systems
•
The prerequisite hardware and software that the system will run on
•
The database that is to be prepared for and used by Wallstreet Suite
•
The installation procedures described in this book.
This guide enables installation personnel to install and configure the database prior to installing
Wallstreet Suite, or to perform a database upgrade to an existing installation. This guide covers all
three supported databases: Oracle, MSSQL, and Sybase.
Installation personnel should have a general knowledge of the particular database and operating
system platforms being used.
How to use this guide
Using the script examples
Included in this guide are scripts that you can use during installation. These are examples, and
therefore use some values that you must change to suit your installation.
Copying and pasting script examples
You can copy script examples by opening this guide in Adobe Acrobat or Acrobat Reader, then
pasting the clipboard contents into a plain text editor. However, if the script starts on one page and
ends on another, you should ensure that you do not copy a block of text that goes over a page
boundary; if you do this, you will find unwanted data being inserted into the script. To avoid this:
•
In Acrobat, Select the Text tool (the mouse pointer becomes an "I" bar).
•
In Acrobat, select and copy only as far as the end of the page.
•
In the plain text editor, paste the text.
•
In Acrobat, select and copy from the top of the next page.
•
And so on.
Warning:
Some code lines in this book are too long to display as a single line. For example:
%SrvCmd% "%fk_prefix%transd" --cmd="%fkbin%\transd.exe %stdpx%"
--dependencies="%fk_prefix%Names,%fk_prefix%mdsd"
Installation and Upgrade Guide
13
When you paste this single code line into an editor, it will paste as two lines of code.
Please remember to remove the unwanted line break.
UTF-8 encoding
From TRM version 7.1, all SQL scripts use UTF-8 encoding. When copying and pasting script
examples, ensure that your text editor or terminal console supports UTF-8. Otherwise, characters
that are outside the 7-bit ASCII character range can be inadvertently changed, and the database
tools that you use may not warn you that a problem has occurred.
Conventions
Examples in this book are shown for both Windows and Unix operating systems. You should make
the necessary changes where appropriate, for example:
•
Slashes or backslashes: /usr/bin/ for Unix, and C:\ for Windows.
•
Names of environment variables: $ENV_NAME for Unix, %ENV_NAME% for Windows.
Associated documents
Associated documents can be accessed from the Help menu of Wallstreet Suite applications.
All Wallstreet Suite user documentation can be downloaded from the Wall Street Systems Client
Extranet site https://clientextranet.wallstreetsystems.com/WallstreetSuite/default.aspx.
14
© Wall Street Systems IPH AB - Confidential
Chapter 1
Introduction
1.1 First time installation or upgrade
In general, the process is as follows:
1. Check hardware and software requirements.
Chapter 2 Hardware and software requirements on page 19.
2. Download and unzip the required Wallstreet Suite package and third party support software.
Chapter 3 Downloading Wallstreet Suite and third party software on page 25
3. Either: perform a first-time installation:
a. Install a suitable database for Wallstreet Suite.
Chapter 4 First time installation: installing the database on page 27
b. Install Wallstreet Suite using the Suite Installer ("SIWizard")
Chapter 5 First time installation: installing Wallstreet Suite on page 57
4. Or: upgrade an existing Wallstreet Suite installation:
a. Upgrading from 7.1.0.1 onwards: use Suite Installer ("SIWizard") to upgrade the
installation.
Chapter 8 Upgrading: Wallstreet Suite on page 89
b. Upgrading from pre-7.1.0.1, manually upgrade the existing Wallstreet Suite database.
Chapter 9 Upgrading: database upgrade to Wallstreet Suite version 7.1.0.1 on page 101
Installation and Upgrade Guide
15
1 Introduction
1.2 Installation overview
1.2 Installation overview
1.2.1 Suite Installer or "SIWizard"
Each Wallstreet Suite installation package contains the Suite Installer ("SIWizard") which enables
you to easily install, update, and upgrade WSS products, while also providing site management.
Package
Installer
Package
Package
install
reconfigure
Site
Installation
The WSS Suite Installer package contains:
•
The installer engine (available in the SI_Manager directory)
•
Third party packages (available in the SI_Generic directory)
•
All the WSS Suite products to be deployed by the Suite Installer (packages).
SI_Manager
SI_Generic
Packages
engine:
Third parties
TRM, CMM,
ACM, ...
Note: Upgrading: The version of WSS Suite Installer is specific to the version of the WSS
package.
16
© Wall Street Systems IPH AB - Confidential
1 Introduction
1.2 Installation overview
1.2.2 Installation process
The installation is created and managed by the SI_Manager engine.
Suite
Configuration
Binaries
Environments
Process Monitor
Internals
directory:
directory:
directory:
directory:
directories:
sharedconf
components
envs
pmm
_repository,
_build
An installation consists of five parts:
1. Global WSS Suite configuration: managed through a set of property files (sharedconf
directory)
On customer installations, this configuration should be copied and managed only through the
site structure.
Configuration can be environment-specific (example: database connection details).
2. Product binaries: deployed at installation time. This consists of all binaries (WSS products and
third party) shared across the environments.
3. Environments: deployed at installation and reconfiguration time.
One environment is specific to one database and distinct from others (no port conflicts).
4. Process Monitor: provides management of all environment processes within one monitoring
console.
The Process Monitor is deployed in the parent directory of the installation directory.
5. Suite Installer internals: these are directories with a "_" prefix: _repository, _build where
the suite Installer stores internal data. These directories should not be modified under any
circumstances.
Note: Upgrading: Any installation is relative to one specific version of WSS Suite. When
upgrading, a whole new installation must be created.
The new installation contains all database upgrade scripts to be run on the customer
database to upgrade.
1.2.3 Site structure
Note: This does not apply to WebSuite, which has its own system, see 7.3.4 WebSuite and
resource files on page 87.
Installation
configuration
CSD
PMM
Extra application
configuration
Extra
configuration
Installation and Upgrade Guide
17
1 Introduction
1.2 Installation overview
The site structure is mandatory for a Wallstreet Suite installation. The site structure:
•
Is a safe place which is never edited or modified by the Suite Installer.
•
Contains all WSS Suite customer-specific configurations:
–
Global WSS Suite customized configuration. Common or environment specific.
–
Extra product configuration: report layouts, environment files (pl, bat), and so on.
–
Extra PMM configuration: additional servers to be managed via PMM and customized Suite
servers.
The site structure is never directly accessed by the Suite Installer: it is copied into the installation
using the Suite Installer.
The site directory structure must basically follow the installation structure.
Note: Upgrading: site upgrade must performed manually.
18
© Wall Street Systems IPH AB - Confidential
Chapter 2 Hardware and software requirements
This chapter gives guidelines for minimum hardware requirements, and software requirements for
the latest version of Wallstreet Suite. It also gives an overview of the Suite Installer architecture and
main concepts, and tells you how to download the Wallstreet Suite package and install the third
party software required by Wallstreet Suite.
2.1 Guidelines for minimum hardware requirements
2.1.1 CPU and memory
Configuration
CPU for
database
CPU for WSS
processes
Memory for
database
Memory for
WSS
processes
Total CPU
count
Total
memory
Small
2
2
4G
5G
4
9G
Medium
4
4
6G
12G
8
18G
Large
8
8
8G
18G
16
24G
Client software installation
•
A Citrix server with 8GB of RAM can handle up to 12 users.
•
Power users of Wallstreet Suite reporting or the Treasury Monitor application may need
dedicated machines rather than being clustered.
General guidelines
Where possible, it is better to use multiple small computer units rather than a single large one.
Minimum configuration for starting Wallstreet Suite Installer
Wallstreet Suite Installer is a Java-based application, which requires about 2GB of memory for some
operations, such as database upgrades.
This is why Wallstreet Suite Installer has minimum memory requirements: 2048MB under Unix and
1536MB under Windows).
If the workstation does not have enough available memory, Wallstreet Suite Installer crashes with
following error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Installation and Upgrade Guide
19
2 Hardware and software requirements
2.1 Guidelines for minimum hardware requirements
As a workaround, a lower value can be put inside the WSSInstaller script for the Java -Xmx
parameter. This should enable startup of the Wallstreet Suite Installer so that you can at least install
the software. See 5.4.4 Launching Suite Installer on page 60.
Note: Database upgrade operations require a large amount of memory, and should be run from a
server or workstation having the required amount of memory.
Application server:
The application server and associated interfaces require:
•
1.5GB RAM for small to medium installations.
•
12GB of RAM for large installations dealing with large volumes.
On large installations, a 64bit Unix or 64bit Windows should be used, together with the 64bit WSS
package.
2.1.2 Disk space
The following figures are guidelines for estimating disk sizing. They do not include disk space taken
by the operating system.
Server side Suite installation
•
WSS Software : 8GB (including 2,5GB disk used by package and installer).
•
WSS logs : depending on the verbosity level required, this can take several GB.
•
Third party software (RDBMS client, JDK): 5GB.
Database server
•
Database software RDBMS client: 5GB
•
Datafiles: minimum 4GB for an empty database increasing to 150GB for a medium-sized
Wallstreet Suite database
•
Database backups: same disk space required as for the database.
Windows client side
•
Third party software (RDBMS client, JDK): 5GB
•
WSS Client Software : 4.5GB (including 2.5GB disk used by WSS package and installer).
20
© Wall Street Systems IPH AB - Confidential
2 Hardware and software requirements
2.2 Software requirements
2.2 Software requirements
Client desktop
Operating system
Windows 7
Windows Vista 64/32 bit
Windows 2003 SP2
Windows 2008 R1 or R2
Windows 2000 SP4
Windows XP, SP2 or SP3
Note: The Windows client desktop build (GUIs) is available from the Wallstreet Suite packages for Windows
only. The Windows client desktop build is 32bit (Windows 32bit package only) and can be run on either a
32bit or 64bit platform.
Browser
IE7.x
IE8.x
Firefox 3.x
Processor
Wallstreet Suite
Build
Solaris 10
SPARC
64 bit
HP-UX B.11.23U ia64
ia64
64 bit (see note)
Windows Server 2003, SP2
x86
32 bit
Windows Server 2003, SP2
x86_64
64 bit (see note)
Windows Server 2008 R1, R2
x86
32 bit
Windows Server 2008 R1, R2
x86_64
64 bit (see note)
RedHat Enterprise Linux 4.x 64 bit
x86_64
64 bit
RedHat Enterprise Linux 5.x 64 bit
x86_64
64 bit
Application server
Operating system
Note: Certain optional components of the Suite may not work on this platform,
owing to third party limitations. Please contact WSS Product Management to
get more specific information.
Server
Oracle Weblogic Server 10g (10.3)
IBM WebSphere AS 7
Tomcat 6.x
Java Development Kit
JDK 6
Databases
Oracle
Oracle 10g to 10gR2
Oracle 11g (11gR2 from WSS version 7.3.10)
Installation and Upgrade Guide
21
2 Hardware and software requirements
2.2 Software requirements
Databases
Microsoft SQL Server
MSSQL 2005, SP3
MSSQL 2008 SP1 R1, R2
Note: Cash Management (CMM): JSQL Connect licenses must be purchased by the
end customer.
Sybase ASE
Sybase 12.5.4
Sybase 15.0
Note: Cash Management (CMM) is not supported.
2.2.1 Recommended platforms
The client operating system
Can be any combination of:
•
Windows Server 2003 SP2 / Windows Server 2008 R1/R2 (Citrix / Windows Terminal Services)
•
Windows XP, SP2 or SP3
For customers with heavy web traffic, the application servers can be fronted with one of these:
•
IIS 6.x, IIS 7.x
•
Apache 2.x
RDBMS platforms
•
Oracle 11g on any Tier 1 Oracle OS (e.g. Windows, Solaris, RedHat Enterprise Linux, HP-UX)
•
MSSQL 2008 R1 SP1 / R2 on any Windows Server platform.
Application server stacks
•
Solaris 10, Glassfish, Oracle 11g Client
•
Windows 2003 /2008, Glassfish, Oracle 11g Client
•
Windows 2003/2008, Glassfish, MSSQL 2008 Client
•
Red Hat Enterprise Linux 5.x 64bit, Glassfish, Oracle 11g Client
•
Solaris 10, Oracle Weblogic Server 10, Oracle 11g Client
•
Windows 2003/2008, Oracle Weblogic Server 10g/11g, Oracle 11g Client
•
Windows 2003/2008, Oracle Weblogic Server 10g/11g, MSSQL 2008 Client
•
Red Hat Enterprise Linux 5.x 64bit, Oracle Weblogic 10g/11g, Oracle 11g Client
22
© Wall Street Systems IPH AB - Confidential
2 Hardware and software requirements
2.3 Minimum memory requirements at Wallstreet Suite startup
2.3 Minimum memory requirements at Wallstreet Suite startup
WSS server processes: physical size in MB at startup
SDM ACM
Web
Suite
Web
Real
Time
Dash TRM
board swift
DMM
TRM
Swift
Connectivity
Suite
Total
Commons WSS
Windows
32b
96
146
299
126
64
394
38
1,035
55
121
2,374
Windows
64b
121
765
729
159
172
864
39
705
205
478
4,239
Solaris
64b
267
603
470
597
174
720
60
962
113
197
4,161
Linux 64b
31
557
879
202
190
977
57
917
205
557
4,573
HP-UX 64b
334
563
880
150
106
645
41
1,004
199
1,360
5,281
wss
package
Important: These memory usage values are the minimum required at startup, and may increase
dramatically when the system handles large data volumes. Note that these values do
not include swap memory.
Installation and Upgrade Guide
23
2 Hardware and software requirements
2.3 Minimum memory requirements at Wallstreet Suite startup
24
© Wall Street Systems IPH AB - Confidential
Chapter 3
Downloading Wallstreet Suite and
third party software
3.1 Downloading the Wallstreet Suite package
Follow these steps:
1. Log onto the WSS Customer Support site.
Either
WRS: http://customerservices.trema.com/service_enu/
Or
WSS Download Center (still in test phase): https://downloads.eu.wallstreetsystems.com/
2. On the Update Information Service page, follow the links to the current version of the Wallstreet
Suite software.
3. Locate the WSS_Installer directory, and download the package that corresponds to the
operating system of your Application Server:
–
WallStreet Suite Itanium Package
–
WallStreet Suite Solaris Package
–
WallStreet Suite Linux Package
–
WallStreet Suite Windows 32b Package
–
WallStreet Suite Windows 64b Package
3.2 Installing the necessary third party software
The following third party software is required before installing the Wallstreet Suite.
•
RDBMS Client Libraries: Oracle and Sybase
The client libraries for your selected RDBMS need to be installed on both the Wallstreet Suite
server and any Wallstreet Suite clients. For Oracle, the client-side software package is available
from the vendor; for Sybase, the client-side packages are supplied by WSS on a separate
CD-ROM.
•
Java Development Kit JDK 1.6
A Java Development Kit is required to run Wallstreet Suite. The operating system and the
application server type determine which JDK is required: Sun, IBM or HP:
Application server
Operating System
Tomcat or Weblogic
Websphere
None (but Java required
for Suite Installer)
Windows
SUN JDK jdk1.6.0_nn
Not supported
SUN JDK jdk1.6.0_11
Linux RHEL x86_64
SUN JDK jdk1.6.0_nn
IBM JDK
SUN JDK jdk1.6.0_11
Sun Solaris Sparc
SUN JDK jdk1.6.0_nn
IBM JDK
SUN JDK jdk1.6.0_11
HP HP-UX Itanium
HP JDK java6
Not supported
HP JDK java6
Installation and Upgrade Guide
25
3 Downloading Wallstreet Suite and third party software
3.2 Installing the necessary third party software
A 64bit JDK should be used, except where a Wallstreet Suite 32bit Windows package is to be
deployed.
Important: We recommend JDK 1.6.0.14 (this is the Wall Street Systems officially certified
version). A newer update of JDK 1.6 might cause errors.
SUN
http://java.sun.com
IBM
www.ibm.com/developerworks/java/jdk
HP
www.hp.com/go/java
Note: The path to the JDK should not include any spaces or points (full stops); when installing,
you should not accept the default path Program Files under Windows, nor any points in
subdirectory names.
An external Java(TM) Cryptography Extension is used by Suite Installer, so ensure that
your JDK contains this. It is available from:
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_
US/-/USD/ViewProductDetail-Start?ProductRef=jce_policy-6-oth-JPR@CDS-CDS_Dev
eloper
Make note of where you installed the JDK (on the configuration sheet). You use this later to set
the JDK home path in the Wizard-style version of Suite Installer, or in the
ts.urlpath.software.jdk.dir property for the command-line version of Suite Installer.
•
Microsoft .NET Framework 3.5
This is only required if you run the Process Monitor GUI application (pm_admin.exe) GUI
application, as opposed to the command line version (pm_cmd.exe). See Chapter 6 Managing
Wallstreet Suite processes on page 73.
•
Weblogic 10.3 (optional)
Wallstreet Suite web application servers can be deployed over Tomcat or Weblogic. Tomcat is
provided in the package, Weblogic is not. If you decide to use Weblogic, you must first install
BEA Weblogic Server 10:
a. Install the Weblogic server suite in c:\bea on Windows, or /usr/local/bea on Solaris.
b. Make a note of where you installed Weblogic (on the configuration sheet).
You will use it later to set the ts.urlpath.software.weblogic.dir property.
Note: After completing the installation using the BEA Weblogic Wizard, do not manually create a
domain/admin server. This is handled by Suite Installer.
•
WebSphere 7.0 (optional)
Note: Websphere products must be installed as root user in a Unix/Linux operating system.
Install WebSphere specifying required username and password. These credentials are used for
Websphere Admin console and are not related to the Websuite application.
Important: The connection between the HTTP Web server and the Websphere server must be
validated. For this purpose, the ‘hello’ test page has to be displayed successfully through
Internet Explorer. Try URL pattern: http:///hello. If this page access fails,
please fix the IBM Web Server plug-in configuration first before proceeding.
26
© Wall Street Systems IPH AB - Confidential
Chapter 4
First time installation: installing the
database
4.1 Introduction
Note the following considerations and limitations for the database:
•
The database used with Wallstreet Suite is a customer asset. As such, putting its configuration,
operation, maintenance, and administration under the control of a qualified DBA is essential. It is
the DBA’s responsibility to ensure that the implementation of the database used with Wallstreet
Suite reflects customer policies and procedures.
•
The amount of memory to dedicate to the database instance is not directly related to the
database size. However, take into account the largest possible transaction by considering the
biggest table within the database. Allocate approximately 100 MB of memory to the operating
system since the machine is dedicated to database usage.
•
It is recommended that you use a disk array on which I/O balancing is handled transparently.
Now go to the relevant section:
4.2 Oracle database installation on page 27
4.3 MSSQL database installation on page 37
4.4 Sybase database installation on page 43.
4.2 Oracle database installation
4.2.1 Before installing the database
Before installing the database, create directories for data and log files, for example /disk1/oradata
and /disk2/oradata. For performance reasons, you should place the directories on different
physical disks unless a disk controller or disk array is present.
4.2.2 Installing Oracle
Follow the procedures in the Oracle documentation to install the Oracle client and server
components on the computer(s) designated in your system environment as the Wallstreet Suite
Database Server. Follow these steps:
1. Modify certain specific specific UNIX kernel parameters: see the Oracle documentation for your
specific UNIX platform.
2. Create the UNIX group (for example oracle) and user (for example dbo) for Oracle.
3. Follow the Oracle recommendations for Oracle Flexible Architecture (OFA), and structure your
database disks using these guidelines:
–
Oracle binary files
ORACLE_HOME=$ORACLE_BASE/product/n.n.n
–
Oracle admin files
$ORACLE_BASE/admin/<$ORACLE_SID>/admin files
Installation and Upgrade Guide
27
4 First time installation: installing the database
4.2 Oracle database installation
–
Oracle data files (to be spread across the available disks): see Tablespaces on page 29.
Install the Oracle database software and the prerequisite patch releases.
4. Install the Oracle database software and
–
For version 10g, ensure that it is at version 10gR2.
–
For version 11g, ensure that it is at version 11gR1.
4.2.3 Oracle database installation
4.2.3.1 Creating the database instance
You can create the Oracle database instance either:
•
With the Oracle DBCA utility (recommended): use the Wallstreet Suite template
ts_oracle_10g_windows.dbt (Windows) or ts_oracle_10g_unix.dbt (Unix) for version 10g,
or ts_oracle_11g_windows.dbt (Windows) or ts_oracle_11g_unix.dbt (Unix) for version
11g. These files can be found in this directory of your Wallstreet Suite installation unzipped
package:
SI_Generic/db-build-framework_-r_./
oracle/dbca
Note: When using the Oracle DBCA utility to create the database instance, you may see the
following error messages:
ORA-22973: size of object identifier exceeds maximum size allowed
ORA-29807: specified operator does not exist
ORA-04043: object USER_LOCK does not exist
These errors can be safely ignored, so click Ignore in the dialog where each message
appears.
After using this utility, proceed to 4.2.3.2 Configuring the database instance on page 30.
Or:
•
Manually: follow the steps below.
4.2.3.1.1 Manual instance creation
Parameters to be set
In the event that the Oracle instance will be created manually, or via scripts, the following
parameters must be set to the required values, and minimum defined requirements must be met.
Note: These parameters must be set exactly as shown below.
characterSet=AL32UTF8
nationalCharacterSet=AL16UTF16
Init Parameters:
nls_length_semantics=CHAR
undo_management=AUTO
undo_suppress_errors=FALSE
Note: These parameters must use values greater than or equal to the values shown below.
28
© Wall Street Systems IPH AB - Confidential
4 First time installation: installing the database
4.2 Oracle database installation
optimizer_features_enable=9.2.0
db_block_size=8K
large_pool_size=16M
query_rewrite_integrity=TRUSTED
query_rewrite_enabled=TRUE
undo_retention=1800
processes=200
open_cursors=800
session_cached_cursors=300
sga_max_size=256M
sort_area_size=1048576
sort_area_retained_size=524288
db_keep_cache_size=16M
db_recycle_cache_size=16M
log_buffer=1048576
utl_file_dir=/tmp
Tablespaces
All the tablespaces listed below must be created, or must already exist. It is recommended that you
enable autoextend for the tablespaces SYSTEM, USERS, INDX, and WORK.
Note: The relevant Wallstreet Suite template file in the
SI_Generic/db-build-framework_-r_./oracle/dbca directory of your Wallstreet Suite unzipped package creates all the
required tablespaces, as well as the USERLOCK package (see Userlock package on page
29).
Minimum available space (MB)
Tablespace name
TRM
With ACM
SYSTEM
1000
TOOLS
50
UNDOTBS01
200
INDX
1000
+250MB per 10,000 entries
USERS
1500
+250MB per 10,000 entries
TEMP
500
WORK
400
+200MB
The tablespace sizes can be adjusted to reflect specific customer requirements.
Userlock package
As an Oracle user with DBA privileges, load the Oracle user lock feature supplied in the Oracle
installation:
@?/rdbms/admin/userlock.sql
Installation and Upgrade Guide
29
4 First time installation: installing the database
4.2 Oracle database installation
4.2.3.2 Configuring the database instance
4.2.3.2.1 User DBO
The following two steps must be performed as an Oracle user with DBA privileges:
1. Create the user DBO. This user will own all schema objects of TRM and ACM:
CREATE USER DBO IDENTIFIED BY trema DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE
TEMP;
Note: The choice of this username is flexible, and this user will become the owner of all the
Wallstreet Suite schema objects. It is recommended that you use the name DBO.
2. Run the SQL script ${FK_HOME}/share/oracle/dbo_rights.sql which assigns the necessary
database permissions to the DBO user.
4.2.3.3 Performance tuning
Performance tuning of the instance parameters is required regularly:
•
During the implementation phase; this must be done before making it the production database.
•
On the production database, especially when large amounts of data are entered.
Note: The remaining steps in the process of building a Wallstreet Suite database are most
commonly completed from the server that runs the Wallstreet Suite application.
4.2.4 Building a new database
1. TRM is configured through the use of environment variables defined in configuration files stored
in the $FK_HOME/share/environments directory. Run the eval command for your system to set
the environment variables in one go:
eval `/usr/trema/fk73/bin/environ -e fkprod_ora -h /usr/trema/fk73 -f`
2. Check the connection to the Oracle database (replace with the dbo user’s
password):
sqlplus dbo/@$FK_DB_SERVER
If the connection fails, check that:
–
tnsnames.ora contains a proper connection specification.
–
The Oracle client is properly installed.
–
The database server you are connecting to is running.
–
There is no network error.
3. Build a new database, using the perl script build.pl provided.
Read the warning below before executing the build statement that follows. Replace
with the password of the user dbo):
cd $FK_HOME/share/oracle
./build -U dbo -P -D $FK_DB_SERVER -a -v -k -w 2> buildnewdb.log
For more information about the build.pl script and its options, see Appendix D The build script
on page 139.
30
© Wall Street Systems IPH AB - Confidential
4 First time installation: installing the database
4.2 Oracle database installation
Warning:
The -w option enables the database for the Static Data Manager (SDM). You should
include the -w option only if you are going to install SDM.
4. Recompile the invalid DBO’s stored objects:
sqlplus dbo/@$FK_DB_SERVER
START /usr/trema/fk72/share/oracle/migration/fast_recomp.sql
START /usr/trema/fk73/share/oracle/migration/fast_recomp.sql
5. Ensure that there are no invalid objects for the user dbo:
SELECT object_type, count(object_name) QTY_INVALID FROM user_objects WHERE status
= 'INVALID' GROUP BY object_type;
6. Check the TRM database version:
SELECT value FROM dbo.Configuration WHERE name LIKE '%Version%';
7. Update the Configuration table to allow DBO to log in:
SELECT id,name,value FROM Configuration WHERE name LIKE '%login%';
Example response:
ID NAME
VALUE
---------- ------------------------------ ------------554 allow dbo login
false
UPDATE Configuration set value = 'true' WHERE id = 554;
COMMIT;
8. Back up your database using the Oracle expdp tool. It is important to set NLS_LANG to the
correct values; to query NLS_LANG, see 4.2.8 Exporting and importing a TRM database on page
35.
ORACLE_SID=fkprod; export ORACLE_SID
NLS_LANG=american_america.AL32UTF8; export NLS_LANG
expdp system/system12 dumpfile=fkprod_fk7nnnn.dmp schemas=dbo logfile=expdbo.log
4.2.5 Installing the ACM schema objects
CM is installed into the same database (and the same database schema) as TRM. Once the TRM
database is installed, you simply add the ACM objects to those created for TRM.
To build the database objects, ACM uses a wrapper script named acmbuild around the TRM build
script, and this adds some functionality to the TRM build script. The command line options for
acmbuild are the same as for the TRM build script. For more information about the TRM build
script and its options, see Appendix D The build script on page 139.
4.2.5.1 Setting up the ACM prerequisites
4.2.5.1.1 Evaluating the environment
TRM is configured through the use of environment variables defined in configuration files stored in
the $FK_HOME/share/environments directory. Run the eval command for your system to set the
environment variables in one go:
eval `/usr/trema/fk73/bin/environ -e fkprod_ora -h /usr/trema/fk73 -f`
4.2.5.1.2 Testing the database connection
Check the connection to the Oracle database (replace with the dbo user’s password):
Installation and Upgrade Guide
31
4 First time installation: installing the database
4.2 Oracle database installation
Unix:
sqlplus dbo/@$FK_DB_SERVER
Windows:
sqlplus dbo/@%FK_DB_SERVER%
When successfully connected, type exit and press ENTER.
If the connection fails, check that:
•
tnsnames.ora contains a proper connection specification.
•
Oracle client is properly installed.
•
The database server you are connecting to is running.
•
There is no network error.
4.2.5.1.3 Changing directories to the appropriate folder
Change to the correct directory which contains the acmbuild script.
Unix:
cd $FK_HOME/share/oracle
Windows:
cd /d %FK_HOME%\share\oracle
4.2.5.2 Loading the ACM schema objects
4.2.5.2.1 Executing the build script
Build ACM database objects using the Perl script acmbuild.pl provided:
Unix:
./acmbuild -D $FK_DB_SERVER -U dbo -P -y
$FK_HOME/share/oracle/objects.inc.acm -t \* -V \* -p \* -g \* -u -v
Windows:
perl acmbuild.pl -D %FK_DB_SERVER% -U dbo -P -y
%FK_HOME%\share\oracle\objects.inc.acm -t * -V * -p * -g * -u -v
For more information about the build.pl script and its options, see Appendix D The build script on
page 139.
4.2.5.2.2 Recompiling invalid stored objects
Start a SQL session and execute the following command to recompile DBO’s invalid stored objects:
Unix:
sqlplus dbo/@$FK_DB_SERVER
Windows:
sqlplus dbo/@%FK_DB_SERVER%
Unix:
START $FK_HOME/share/oracle/migration/fast_recomp.sql
Windows:
START %FK_HOME%\share\oracle\migration\fast_recomp.sql
32
© Wall Street Systems IPH AB - Confidential
4 First time installation: installing the database
4.2 Oracle database installation
4.2.5.2.3 Checking for invalid objects
Ensure that there are no invalid objects for the user dbo:
Unix:
sqlplus dbo/@$FK_DB_SERVER
Windows:
sqlplus dbo/@%FK_DB_SERVER%
SELECT object_type, count(object_name) QTY_INVALID FROM user_objects WHERE status
= 'INVALID' GROUP BY object_type;
4.2.5.3 Completing the ACM schema object installation process
4.2.5.3.1 Checking the version of the ACM schema
Ensure that the correct version of the ACM schema was installed. To check the current version of the
ACM schema, execute the following command:
select max(SPKGVersion) from ACMVersion where SParameters = 'finished';
Notes
•
It is necessary to escape the asterisks (*) with the backslashes for non-Windows platforms.
•
Replace with the dbo user password in the command line examples.
•
Owing to a bug in Oracle database server version 9.2.0.6 and some later versions, views using
ANSI joins become invalid when compiled under a user other than the view’s owner. If you use a
recompilation script run under the SYS user, then ACM views become invalid. Recompile ACM
views under the DBO user only. For the bug reference, see
https://metalink.oracle.com/metalink/plsql/showdoc?db=Bug&id=3466980
•
Despite the fact that ACM Application Server uses the ORACLE_SID environment variable to
populate the ACM_JDBC_URL environment variable, the sqlplus command must be run with a
database name according to the local tnsnames.ora configuration file. Typically ORACLE_SID
contains the Oracle database SID while the FK_DB_SERVER environment variable contains a TNS
alias from the local tnsnames.ora.
4.2.6 Installing the CMM schema objects
CMM is installed into the same database (and the same database schema) as TRM. Once the TRM
database is installed, you simply add the CMM objects to those created for TRM.
To build the database objects, CMM uses a wrapper script named cmmbuild around the TRM build
script, and this adds some functionality to the TRM build script. The command line options for
cmmbuild are the same as for the TRM build script. For more information about the TRM build
script and its options, see Appendix F The cmmbuild.pl tool (pre version 7.3.0) on page 149.
4.2.6.1 Setting up the CMM prerequisites
4.2.6.1.1 Evaluating the environment
TRM is configured through the use of environment variables defined in configuration files stored in
the $FK_HOME/share/environments directory. Run the eval command for your system to set the
environment variables in one go:
eval `/usr/trema/fk73/bin/environ -e fkprod_ora -h /usr/trema/fk73 -f`
4.2.6.1.2 Testing the database connection
Check the connection to the Oracle database (replace with the dbo user’s password):
Installation and Upgrade Guide
33
4 First time installation: installing the database
4.2 Oracle database installation
Unix:
sqlplus dbo/@$FK_DB_SERVER
Windows:
sqlplus dbo/@%FK_DB_SERVER%
When successfully connected, type exit and press ENTER.
If the connection fails, check that:
•
tnsnames.ora contains a proper connection specification.
•
Oracle client is properly installed.
•
The database server you are connecting to is running.
•
There is no network error.
4.2.6.1.3 Changing directories to the appropriate folder
Change to the correct directory which contains the cmmbuild script.
Unix:
cd $FK_HOME/share/oracle
Windows:
cd /d %FK_HOME%\share\oracle
4.2.6.2 Loading the CMM schema objects
4.2.6.2.1 Executing the build script
Build CMM database objects using the Perl script cmmbuild.pl provided:
Unix:
./cmmbuild -D $FK_DB_SERVER -U dbo -P -y
$FK_HOME/share/oracle/objects.inc.acm -t \* -V \* -p \* -g \* -u -v
Windows:
perl cmmbuild.pl -D %FK_DB_SERVER% -U dbo -P -y
%FK_HOME%\share\oracle\objects.inc.acm -t * -V * -p * -g * -u -v
For more information about the build.pl script and its options, see Appendix D The build script on
page 139.
4.2.6.2.2 Recompiling invalid stored objects
Start a SQL session and execute the following command to recompile DBO’s invalid stored objects:
Unix:
sqlplus dbo/@$FK_DB_SERVER
Windows:
sqlplus dbo/@%FK_DB_SERVER%
Unix:
START $FK_HOME/share/oracle/migration/fast_recomp.sql
Windows:
START %FK_HOME%\share\oracle\migration\fast_recomp.sql
34
© Wall Street Systems IPH AB - Confidential
4 First time installation: installing the database
4.2 Oracle database installation
4.2.6.2.3 Checking for invalid objects
Ensure that there are no invalid objects for the user dbo:
Unix:
sqlplus dbo/@$FK_DB_SERVER
Windows:
sqlplus dbo/@%FK_DB_SERVER%
SELECT object_type, count(object_name) QTY_INVALID FROM user_objects WHERE status
= 'INVALID' GROUP BY object_type;
4.2.6.3 Completing the CMM schema object installation process
4.2.6.3.1 Checking the version of the CMM schema
Ensure that the correct version of the CMM schema was installed. To check the current version of
the CMM schema, execute the following command:
select max(SPKGVersion) from CMMVersion where SParameters = 'finished';
Notes
•
It is necessary to escape the asterisks (*) with the backslashes for non-Windows platforms.
•
Replace with the dbo user password in the command line examples.
•
Owing to a bug in Oracle database server version 9.2.0.6 and some later versions, views using
ANSI joins become invalid when compiled under a user other than the view’s owner. If you use a
recompilation script run under the SYS user, then ACM views become invalid. Recompile ACM
views under the DBO user only. For the bug reference, see
https://metalink.oracle.com/metalink/plsql/showdoc?db=Bug&id=3466980
•
Despite the fact that ACMApplication Server uses the ORACLE_SID environment variable to
populate the ACM_JDBC_URL environment variable, the sqlplus command must be run with a
database name according to the local tnsnames.ora configuration file. Typically ORACLE_SID
contains the Oracle database SID while the FK_DB_SERVER environment variable contains a TNS
alias from the local tnsnames.ora.
4.2.7 Housekeeping and maintenance
4.2.7.1 Backups
The first thing to decide when creating a backup/recovery strategy is how to handle the Archive Log
files, as any production database is running in ARCHIVELOG mode. Normally the customer
organization already has a good backup/recovery strategy for its systems, so it is more a matter of
adding TRM databases in to the existing plan.
4.2.8 Exporting and importing a TRM database
Back up and restore a TRM database by exporting and importing it using the Oracle exp and imp
utilities. Using these utilities is a useful way to copy a production database to create a test database.
When importing or exporting data, it is important that you use the correct values for the NLS_LANG
environment variable. To find out the database language settings, run this query:
set
set
set
set
set
set
heading off
pagesize 0
verify off
feedback off
termout off
echo off
Installation and Upgrade Guide
35
4 First time installation: installing the database
4.2 Oracle database installation
set embedded off
set recsep off
SELECT a.value ||'_'|| b.value ||'.'|| c.value FROM NLS_DATABASE_PARAMETERS a,
NLS_DATABASE_PARAMETERS b, NLS_DATABASE_PARAMETERS c
WHERE a.parameter = 'NLS_LANGUAGE'
AND
b.parameter = 'NLS_TERRITORY'
AND
c.parameter = 'NLS_CHARACTERSET';
4.2.8.0.1 Exporting
Replace the example values for NLS_LANG below with the values that correspond to your database as
obtained by the query you ran in 4.2.8 Exporting and importing a TRM database on page 35.
ORACLE_SID=fk_prod; export ORACLE_SID
NLS_LANG=american_america.AL32UTF8; export NLS_LANG
cd /oracle/dumps
exp system/manager FULL=Y DIRECT=Y RECORDLENGTH=65535
FILE=fk_prod_full_20May05.dmp LOG=impdbo.log
expdp system/system12 dumpfile=fkprod_fk7nnnn.dmp schemas=dbo logfile=expdbo.log
4.2.8.0.2 Importing
Replace the example values for NLS_LANG below with the values that correspond to your database as
obtained by the query you ran in 4.2.8 Exporting and importing a TRM database on page 35.
ORACLE_SID=fk_test; export ORACLE_SID
NLS_LANG=american_america.AL32UTF8; export NLS_LANG
cd /oracle/dumps
imp system/manager FROMUSER=dbo TOUSER=dbo
FILE=fk_prod_full_20May05.dmp LOG=impdbo.log
expdp system/system12 dumpfile=fkprod_fk7nnnn.dmp schemas=dbo logfile=expdbo.log
Whenever you import data into the TRM database, you must run the after_load_db.sql script
afterwards:
sqlplus -s dbo/ << EOS
@/usr/trema/fk65fk72/share/oracle/migration/after_load_db.sql
@/usr/trema/fk65fk73/share/oracle/migration/after_load_db.sql
This script initializes Oracle sequences to their proper values, recompiles invalid objects, computes
statistics for TRM tables, and enables triggers that could have been disabled during import.
4.2.8.1 Rebuilding of indexes and stored procedures
Warning:
If you do not have SDM installed, do NOT include the -w option in any of the
following build statements.
TRM comes with a "nightly" script that can be used to rebuild database objects, typically stored
procedures and indexes, when needed. This can be done using a shell script that sets the
environment variables and then executes the following command:
[acm|cmm]build.pl -U -P -D -i all -p all -v -w >
rebuild.log
Check the log after this rebuild to verify that objects were correctly rebuilt.
If you change any TRM database object, you should revalidate all stored procedures using
fast_recomp.sql. The example below can be run from another machine, from the fkadmin account
(replace below with the password for the user dbo):
#!/bin/sh
ORACLE_HOME=/opt/oracle/10.2.0.1.0; export ORACLE_HOME
ORACLE_SID=fkprod_database ; export ORACLE_SID
sqlplus -s dbo/ << EOS
36
© Wall Street Systems IPH AB - Confidential
4 First time installation: installing the database
4.3 MSSQL database installation
@/usr/trema/fk65fk73/share/oracle/migration/fast_recomp.sql
exit
EOS
4.2.8.2 DBVerify
TRM databases should be checked using the Oracle provided DBVerify tool, called dbv, on a daily
basis, usually before the backup is run. The output file from DBVerify should be checked and verified
so that possible datafile corruptions are found as soon as possible.
The tool can be run against online datafiles or backups.
To list the datafiles:
sqlplus dbo/
SELECT file_name FROM dba_data_files;
dbv FILE=/oradata2/fk65fk72/users01.dbf BLOCKSIZE=8192
dbv FILE=/oradata2/fk65fk73/users01.dbf BLOCKSIZE=8192
The following sample shell script runs DBVerify against all datafiles in a database:
ORACLE_HOME=/opt/oracle/9.2.0.6;export ORACLE_HOME
ORACLE_HOME=/opt/oracle/10.2.0.1.0;export ORACLE_HOME
ORACLE_SID=fkprod_database;export ORACLE_SID
LOG_FILE=/tmp/dba_export.log; export LOG_FILE
if [ -f ${LOG_FILE} ]; then rm ${LOG_FILE}; fi
echo "[`date`] BEGIN Checking datafiles integrity."
DATAFILE=`sqlplus -s "/ as sysdba" << EOS
set heading off
set pagesize 0
set verify off
set feedback off
set termout off
set echo off
set embedded off
set recsep off
SELECT file_name FROM dba_data_files;
exit
EOS`
export DATAFILE
for df in $DATAFILE
do
echo "DBVerify: Checking datafile $df ....." \ >>
${LOG_FILE}
dbv file=$df blocksize=8192 logfile=/tmp/dbv.log
echo `grep Corrupt /tmp/dbv.log` \ >> ${LOG_FILE}
done
echo "[`date`] END of Datafiles integrity check."
# more ${LOG_FILE}
4.3 MSSQL database installation
4.3.1 Before installing the database
Before installing the database, do the following:
•
In preparation for installation, create directories for data and log files, for example
X:\MSSQL\data and Y:\MSSQL\log. For performance reasons, you should place the directories
on different physical disks unless a disk controller or disk array is present.
Installation and Upgrade Guide
37
4 First time installation: installing the database
4.3 MSSQL database installation
•
The installation program will prompt you to select the Services Account and Authentication Mode
for use by the database. See your system administrator or database administrator (DBA) for the
correct values to select.
4.3.2 Database considerations and limitations
Note the following considerations and limitations for the database:
•
The database used with Wallstreet Suite is a customer asset. As such, putting its configuration,
operation, maintenance, and administration under the control of a qualified DBA is essential. It is
the DBA’s responsibility to ensure that the implementation of the database used with Wallstreet
Suite reflects customer policies and procedures.
•
The amount of memory to dedicate to the database instance is not directly related to the
database size. However, take into account the largest possible transaction by considering the
biggest table within the database. Allocate approximately 100 MB of memory to the operating
system since the machine is dedicated to database usage.
•
It is recommended that you use a disk array on which I/O balancing is handled transparently.
4.3.3 Installing the Server
You can install either Microsoft SQL Server 2005, 2008, or 2008 R2.
4.3.3.1 Microsoft SQL Server 2005 or 2008
Follow the installation procedure described in the documentation that comes with the Microsoft SQL
Server software. During the installation procedure, do the following:
1. Select Local Computer as the computer name.
2. When prompted for the type oif install, select Create a new instance of SQL Server, or
install Client Tools.
3. In the Installation Definition dialog, select Server and Client Tools.
4. In the Instance Name dialog, click Default.
5. In the Setup Type dialog, select Custom.
6. In the Select Components dialog, select everything except Code Samples.
7. In the Services Accounts dialog, select either System account or a specific account for SQL
Server. What you select here though depends on how your administration is set up.
8. In the Authentication Mode dialog, the default to select is Mixed Mode. What you select here
depends on how your administration is set up.
9. Enter the password and confirm it for the sa login.
10. in the Collation Settings dialog, select SQL Collations, and highlight
Dictionary order, case-sensitive, for use with 1252 character Set
Or in the case of 2008: SQL_Latin1_CP1_CS_AS.
Important: The Collation Settings are very important: once confirmed, you can change them
only by reinstalling the server. Ensure that you select case sensitivity.
11. In the Network libraries dialog, enter and select the following:
38
–
Select Named Pipes: Named Pipe name: \\. \pipe\sql\query
–
Select TCP/IP Sockets: Port number: 1433
© Wall Street Systems IPH AB - Confidential
4 First time installation: installing the database
4.3 MSSQL database installation
–
Select Multi-Protocol
Note: If you have another SQL server on your machine, check that the TCP/IP port numbers are
not the same.
4.3.3.2 Creating a new database manually
You can use the Suite Installer to create a new empty database and ensure backwards compatibility
with SQL Server 2000. But if you want to do this manually then:
1. Use Microsoft SQL Server Management Studio to create a new database:
–
Select the Database directory in Microsoft SQL Server Management Studio, then right-click it
to bring up a menu, then select New Database....
–
Create and name the database (for example WSStest01) and log files.
2. Backwards compatibility with SQL Server 2000 is ensured by activating the command:
sp_dbcmptlevel , 80
4.3.4 Building the database
This is handled by the Suite Installer.
If the database owner has to connect to the database via TRM, then a specific change must be made
to a database table.
Using Microsoft Query Analyzer, execute this command:
update Configuration set value=’true’ where id=554
4.3.5 Housekeeping and maintenance
4.3.5.1 Defining a database maintenance plan
The database administrator must implement a database maintenance plan to perform these
common administrative tasks:
•
Reorganize data and index pages (recommended task).
•
Remove unused space from database files (optional task).
•
Check database integrity (recommended task).
Installation and Upgrade Guide
39
4 First time installation: installing the database
4.3 MSSQL database installation
•
Backup the database (mandatory task).
1. In Microsoft SQL Server Management Studio, right click on your database, then select All Tasks -
Maintenance Plan...
2. Select the TRM database only, then click Next..
3. In the following panels, configure the values as required. The screenshots that follow are given
as examples, and show suggested values; the database administrator must choose the most
suitable parameters and schedules.
40
© Wall Street Systems IPH AB - Confidential
4 First time installation: installing the database
4.3 MSSQL database installation
Installation and Upgrade Guide
41
4 First time installation: installing the database
4.3 MSSQL database installation
4.3.5.2 Rebuilding indices and stored procedures
Warning:
If you do not have SDM installed, do NOT include the -w option in any of the
following build statements.
TRM comes with a script that can be used to rebuild database objects, typically stored procedures
and indexes, on a regular basis. This can be done using the Windows Server scheduler, with a .bat
command file that sets the environment variables and then executes the following command:
1. Copy and paste the line below to a file called rebuild.bat and save it in your release directory
(for example C:\TRM)
call %WSS_HOME%\bin\trm--shell.bat
cd %FK_HOME%\share\mssql
perl build.pl -U login -P password -D database -i all -p all -v -w >
%FK_HOME%\log\rebuild.log 2>&1
2. Schedule the task by selecting Start - Settings - Control Panel - Scheduled Tasks - Add Scheduled Task,
which runs the scheduled tasks wizard.
3. Choose appropriate parameters for schedule options. Once sheduled, your task appears in the
scheduled tasks and can be modified by right-clicking its icon and selecting Properties:
4. Check the %FK_HOME%\log\rebuild.log after this rebuild to verify that objects were correctly
rebuilt.
42
© Wall Street Systems IPH AB - Confidential
4 First time installation: installing the database
4.4 Sybase database installation
4.4 Sybase database installation
Follow the procedures in this section to install Sybase.
Note: If your license of Sybase was not obtained through Wall Street Systems, you need to know
the Sybase Customer Authentication String (CAS).
4.4.1 Checking the shared memory
Databases benefit from very large shared caches of data in some cases. The /etc/system file
needs to be edited to support shared memory. If you have 1024 MB of RAM in a computer serving
only as a Sybase server, leave 64 MB for the operating system and allocate the remaining 960 MB as
shared memory. The value for 192 MB shared memory is calculated as
960*1024*1024=1006632960.
Add the following line to /etc/system if you want 960 MB of shared memory:
set shmsys:shminfo_shmmax=1006632960
Reboot the computer for the change to take effect.
4.4.2 Setting up Sybase group, user, and home account
To make sure that Sybase product files and directories are created with consistent ownership and
privileges, one UNIX user (typically the Sybase system administrator with read, write, and
execute privileges) should perform all installation, configuration, and upgrade tasks. To create a
Sybase system administrator UNIX account, choose an existing account or create a new account and
assign it a user ID, group ID, and password. This account is sometimes called the Sybase user
account.
Use the UNIX admintool database manager to create:
•
A Sybase group with gid=30
•
A Sybase user with uid=30
•
A home directory where the Sybase software will be installed. Select, for example, /opt/sybase
as the Sybase home directory.
The shell must be the Bourne shell.
4.4.3 Defining the Sybase environment
Add the following lines to the .profile of the Sybase user:
.SYBASE.sh
DSQUERY=SERVERNAME;export DSQUERY
SYBASE="/opt/sybase/SQL/current";export SYBASE
SYBASE_OCS=
PATH=/bin:/usr/sbin:$SYBASE/$SYBASE_OCS/bin:.;export PATH
Note: SYBASE_OCS=OCS-12_5 for Sybase version 12.5.4.
SYBASE_OCS=OCS-15_0 for Sybase version 15.0.3.
You can use either the $SYBASE/SYBASE.sh shell or the $SYBASE/SYBASE.csh shell.
Installation and Upgrade Guide
43
4 First time installation: installing the database
4.4 Sybase database installation
4.4.4 Organizing disks
Discuss disk organization with Trema technical support. Issues that have an impact on the disk
layout are redundancy and performance.
One recommended approach is to use a RAID module with several disks in order to increase
performance. It also eliminates the need to put the index segments on separate disks, since the
index segments will be distributed over several disks anyway. An extra “hot spare” disk will also
have a positive impact on recovery issues.
The solution given below is an example of one way of organizing your disks.
4.4.4.1 Disk organization
Sybase supports file system files as well as raw devices, such as database devices.To keep the
database consistent with file system files, set the dsync flag on database devices. Mirroring can be
carried out with the Sybase built-in mirroring function or with some other disk mirroring software,
for example SUN’s On-line Disk Suite or Veritas Volume Manager.
Disks should be mirrored using Raid 0. This provides absolute duplication of the data on the mirror
device and is fault tolerant. (Media failure causes a switch over to the mirror device.) It is not
recommended to use Raid 5 devices for Sybase.
The partitions need to be at least the following sizes for an average installation:
sybase_master
sybase_sysprocs
sybase_data
sybase_log
200MB
200MB
4GB for each database
2GB for each database
The sybase_data (database) and sybase_log (log of database) slices should be on separate disks
for recovery reasons. If you do not use separate disks, there is no point in having separate
partitions.
Warning:
Do not use the first cylinder of a disk for raw data partitions. If anybody changes the
disk label on the disk, the first cylinder will be overwritten.
4.4.5 Creating links to Sybase devices
You need to create links from $SYBASE/dev/ to the raw devices you are planning to use. This will
enable you to get a clear view of which Sybase devices you have. You will also be able to restore the
Sybase master and user databases to disks which have hardware addresses that are different from
the disks the backups were taken from.
4.4.5.1 Sybase device links
Create the following links (depending on your setup):
mkdir /opt/sybase/dev
cd /opt/sybase/dev
ln -s /dev/md/rdsk/d4
ln -s /dev/md/rdsk/d5
ln -s /dev/md/rdsk/d6
ln -s /dev/md/rdsk/d7
master
sysproc
data1
log1
As the UNIX superuser, root, change the ownership of the partitions you are planning to use to the
Sybase user:
chown sybase /opt/sybase/dev/*
44
© Wall Street Systems IPH AB - Confidential
4 First time installation: installing the database
4.4 Sybase database installation
4.4.6 Creating Sybase directory structure and current Link
When creating the directory structure under the Sybase home directory (for example opt/sybase),
you need to create a ./SQL/ directory where the software is installed under its version number. A
link named current must point to the current version of the software. These actions must be carried
out by the Sybase user.
To install Sybase, do the following:
mkdir -p /opt/sybase/SQL/sybase12
cd /opt/sybase/SQL
ln -s sybase12 current
The purpose of this is to make it easy to find the software on all systems. The isql command
should, for example, always be accessible under:
/opt/sybase/SQL/current/$SYBASE_OCS/bin/isql
4.4.7 Loading the Sybase software
Untar the Sybase tar.gz file to a temporary directory, then run the setup graphical interface
(requires X-Windows).
4.4.8 Applying the latest Emergency Bug Fixes (EBFs)
EBFs for Sybase can be downloaded from http://support.sybase.com/ if you have a Sybase support
agreement directly with Sybase. If your Sybase support is supplied by Trema, the EBFs are provided
by Trema.
The following steps take you through the installation of an EBF.
Note: Check the cover letter that comes with the EBF to be sure that this is the correct method
for your setup.
1. If necessary, back up your databases.
2. Shut down your ASE server (Sybase dataserver) as follows:
isql -Usa -P""
1> shutdown
2> go
3. Back up the $SYBASE directory (if needed).
4. Read the cover letter related to this EBF.
5. Use gnu unzip to unzip the file:
gunzip EBF9999.tgz
6. Then untar the file:
tar xvf EBF9999.tar
7. Run the setup script (graphical mode) to install the EBF on your Sybase intallation.
8. After loading the contents of the ESD Rollup, boot the ASE:
cd install
./startserver -f ./RUN_SERVERNAME
9. (For an existing ASE server only) Run the installmaster script:
isql -U sa - P -S -n -i
$SYBASE/$SYBASE_ASE/scripts/installmaster -o