Professional Documents
Culture Documents
Installation Guide
SAP NetWeaver Standalone Engine Search and Classification TREX 7.10 Single Host
Target Audience System administrators Technology consultans
SAP AG Neurottstrae 16 69190 Walldorf Germany T +49/18 05/34 34 24 F +49/18 05/34 34 20 www.sap.com
Copyright 2008 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Outlook, PowerPoint, and SQL Server are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, and Informix are trademarks of IBM Corporation in the United States and/or other countries. ORACLE is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood , MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3Care trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. Disclaimer Some components of this product are based on Java. Any code change in these components may cause unpredictable and severe malfunctions and is therefore expressively prohibited, as is any decompilation of these components. Any Java Source Code delivered with this product is only to be used by SAPs Support Services and may not be modified or altered in any way. Documentation on SAP Service Marketplace You can find this documentation at the following address:
http://service.sap.com/instguides
SAP, R/3, mySAP, mySAP.com, SAP NetWeaver, xApps, xApp, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves information purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.
April 2008
Typographic Conventions
Type Style Example text Description Words or characters quoted from the screen. These include field names, screen titles, pushbuttons labels, menu names, menu paths, and menu options. Cross-references to other documentation. Example text EXAMPLE TEXT Emphasized words or phrases in body text, graphic titles, and table titles. Technical names of system objects. These include report names, program names, transaction codes, table names, and key concepts of a programming language when they are surrounded by body text, for example, SELECT and INCLUDE. Output on the screen. This includes file and directory names and their paths, messages, names of variables and parameters, source text, and names of installation, upgrade and database tools. Exact user entry. These are words or characters that you enter in the system exactly as they appear in the documentation. Variable user entry. Angle brackets indicate that you replace these words and characters with appropriate entries to make entries in the system. Keys on the keyboard, for example, F2 or ENTER.
Example text
EXAMPLE TEXT
April 2008
Installing and Updating TREX Single Host............................................................................. 6 Implementation Considerations ............................................................................................. 7 Integration of TREX and Applications That Use It.............................................................. 7 SAP NetWeaver BI Accelerator (BIA) ................................................................................ 8 Minimal and Distributed TREX Systems .......................................................................... 11 Installation and Configuration of Server and Client Software .......................................... 12 Naming Conventions............................................................................................................ 13 Checklists for the Installation ............................................................................................... 14 Installation with an HTTP Connection .............................................................................. 15 Installation with an RFC Connection ................................................................................ 16 Installation with HTTP and RFC Connections.................................................................. 18 Installation Planning............................................................................................................. 20 Hardware and Software Requirements ............................................................................ 20 Required Documentation.................................................................................................. 23 Installation Preparations ...................................................................................................... 24 Downloading TREX .......................................................................................................... 24 TREX System and TREX Instances................................................................................. 25 Information on Installing Multiple TREX Instances........................................................... 28 Preparing the System for SAPinst GUI ............................................................................ 28 Checking Disk Space ....................................................................................................... 29 Installation and Update ........................................................................................................ 30 Installing with SAPinst ...................................................................................................... 30 Installing with SAPinst on UNIX.................................................................................... 32 Installing with SAPinst on Windows.............................................................................. 35 Handling SAPinst GUI ...................................................................................................... 37 Installing TREX................................................................................................................. 37 Installing an additional TREX Instance ............................................................................ 41 Installing TREX with a Virtual Host Name........................................................................ 42 Updating TREX ................................................................................................................ 43 Uninstalling TREX ............................................................................................................ 45 TREX Basic Configuration ................................................................................................... 46 Wizard-Based Basic Configuration for TREX................................................................... 47 TREX Post-Installation Configuration............................................................................... 48 Starting the TREX Admin Tool...................................................................................... 48 Configuring the TREX Web Server............................................................................... 48 Configuring TREX Proxy Settings ................................................................................ 50 Checking Proxy Settings............................................................................................... 50 Selecting Languages for TREX Language Recognition ............................................... 51 Configuring TREX for the System Landscape Directory (SLD).................................... 52 Installing and Updating TREX Single Host 4
April 2008
Checking Performance Settings for the Operating System.......................................... 55 Connecting TREX with an Application ............................................................................. 56 Connecting TREX with an ABAP Application (RFC Connection) ................................. 57 Creating a SAP System User for the TREX Admin Tool (Stand-Alone) ................... 57 Determining the SAP System Connection Information ............................................. 59 Configuring the RFC Connection in the TREX Admin Tool ...................................... 60 Connecting TREX with a Java Application (HTTP Connection) ................................... 62 Specifying the Address of the TREX Name Server .................................................. 62 Installation Check................................................................................................................. 64 Checking Processes......................................................................................................... 64 Executing an Installation Test Script ................................................................................ 65 Additional Information .......................................................................................................... 66 Starting the TREX Admin Tool ......................................................................................... 66 Starting SAPinst GUI Separately...................................................................................... 67 Starting SAPinst on the Remote Host (Optional) ............................................................. 68 Starting and stopping TREX............................................................................................. 69 Starting and Stopping TREX on Windows.................................................................... 70 Starting TREX ........................................................................................................... 71 Stopping TREX ......................................................................................................... 72 Starting and Stopping Individual TREX Servers ....................................................... 73 Starting the Web Server............................................................................................ 74 Stopping the Web Server .......................................................................................... 74 Starting and Stopping TREX on UNIX.......................................................................... 74 Starting TREX ........................................................................................................... 74 Stopping TREX ......................................................................................................... 75 Starting and Stopping Individual TREX Servers ....................................................... 76 Starting and Stopping the Web Server ..................................................................... 77 Information on SAPinst ........................................................................................................ 77 Troubleshooting SAPinst.................................................................................................. 77 Interrupted Installation with SAPInst ................................................................................ 78
April 2008
April 2008
Constraints
Additional Configuration Steps Depending on the Application
Additional configuration steps may be necessary depending on the application for which you are installing TREX. These additional steps are not described in this guide. You can find them in the documentation on the application in question.
Implementation Considerations
Refer to the following information before starting the installation.
Master Guides
If you are installing TREX as part of a mySAP Business Suite solution, a business scenario, or an IT scenario, familiarize yourself with the relevant master guide before beginning the installation. Master guides are the central documents for implementing mySAP Business Suite solutions, business scenarios, and IT scenarios. They list the components and third-party applications that are necessary for a business scenario or an IT scenario, and refer to any necessary installation and upgrade guides. They also define the installation sequence.
April 2008
Java application
ABAP client
RFC
Java client
HTTP/HTTPS & XML TCP/IP
Web server
Application
TREX server
There is no dependency between TREX and the application using TREX with regard to the operating system used. You can install TREX on a different operating system to the application that accesses TREX. Use all installable units within SAP NetWeaver that have the same support package level. Only by using the same support packages you can ensure the integration and smooth collaboration between all systems, stand-alone engines, and clients within SAP NetWeaver. Connecting TREX to More Than One Application In principle, you can connect one TREX system to more than one application. Note the following: The TREX system must have appropriate dimensions so that it can process the load of all the applications. You must take organizational measures to ensure that the applications use separate index namespaces.
April 2008
SAP NetWeaver
RFC
SAP NetWeaver
BI accelerator
BI System
You cannot use the BI accelerator for the regular TREX search and classification functions. In order to use the preinstalled BI Accelerator Box, you must enter the fixed RFC destination defined for this purpose (default: TREX_HPA) in table RSADMINA. Installation on preconfigured hardware The BI accelerator is a special LINUX 64-Bit version of SAP NetWeaver Search and Classification (TREX), which is delivered on preconfigured hardware. All installation and configuration steps will be done during the preconfiguration of the hardware by the hardware vendor. Download update from SAP Service Marketplace BI customers have to update and patch the BI accelerator. They can download the updates and patches for the BI accelerator from the SAP Service Marketplace service.sap.com/swdc Download Support Packages and Patches Entry by Application Group SAP NetWeaver SAP NETWEAVER SAP NETWEAVER 7.0 SAP BI Accelerator SAP BI Acelerator 7.0 TREX 7.00 Linux on x86 64 64bit
For more information about the BI accelerator, see the following SAP notes: 883726 Central Note BI accelerator 875400 Installing SAP NetWeaver BI accelerator 883725 Updating SAP NetWeaver BI accelerator
April 2008
See also the SAP NetWeaver Developers Network (SDN) for detailed information about the BI accelerator https://www.sdn.sap.com/irj/sdn/bia.
Blade System
Master NS
Data
2nd Master NS
Programs
Slave NS
/TRX<hostname_blade4>
...
NS = Name Server IS = Index Server
10
April 2008
Sizing
The required hardware for the server software depends on the following factors: How many documents of what type are to be indexed? What quantities of documents are to be indexed initially, and what quantities during routine operation? How many search queries are expected? How many parallel search queries are expected?
Plan the required number of hosts and the equipping thereof with your SAP hardware partner. Use the information in Hardware and Software Requirements [Page 20] as a basis for this.
11
April 2008
For more information on installing and configuring a distributed TREX system, see the SAP NetWeaver Distributed Search and Classification (TREX) Systems Installation Guide on the SAP Service Marketplace at service.sap.com/instguides.
12
April 2008
As a TREX service, the Java client is part of the JEE engine of the SAP NetWeaver Application Server and does not have to be installed separately. The necessary configuration is described in this guide. For more information, see Connecting TREX with a Java Application (HTTP Connection) [Page 62].
Naming Conventions
The following naming conventions are valid for this documentation: Terminology Term TREX host TREX instance Meaning Host on which the TREX server software is installed One installation of the TREX server software
Variables Variable
<SAPSID> <sapsid> <TREX_DIR>
Meaning System ID in uppercase letters System ID in lowercase letters Installation directory for TREX. The path to the directory is: On UNIX
/usr/sap/<sapsid>/trx<instance_number>
On Windows
<disk_drive>:\usr\sap\<SAPSID>\TRX<instance_num ber>
<TREX_DOWNLOAD>
Directory for storing the downloaded TREX software package from SAP Service Marketplace SAP system directory: On UNIX /<sapmnt>/<sapsid>/SYS On Windows <disk_drive>:\usr\sap\<SAPSID>\SYS
<SAP_System_Directory>
<DVD_DIR> <OS>
Directory under which you insert a DVD. Name of the operating system in a path. Operating system user that you log on with to administrate TREX. Operating system user under which the TREX processes run. Operating system user that you use to log on to the host on which the J2EE Engine is running.
The following example shows how variables are used. Go to the directory <DVD_DIR>/UNIX/<OS>.
13
April 2008
If the DVD is inserted under /sapdvd1 and you are using the operating system LINUX, you have to go to the directory /sapdvd1/UNIX/LINUX_64. Path specifications The forward slash (/) is usually used in path specifications such as
<TREX_DIR>/<host_name>/sapprofile.ini.
Commands Commands such as script calls are sometimes distributed over several lines in this documentation. When you execute the commands, enter them in one line.
Process Flow
...
1. Print the relevant checklists: Installation with HTTP Connection [Page 15] Installation with RFC Connection [Page 16] Installation with HTTP and RFC Connections [Page 18]
2. Carry out the installation steps in the order specified in the tables. When carrying out an obligatory step during the installation, follow the link to the relevant section. Then carry out the work steps described there. When the installation step has been successfully completed, place a check (! ) next to the relevant entry in the table in order to record your progress. Then continue with the next step listed in the table.
14
April 2008
Installation Preparations ! Activity If you want to install multiple TREX instances, read the information [Page 28] on this. Prepare the system for the SAPinst interface [Page 28]. Check whether there is sufficient disk space [Page 29] for installing the TREX software.
Installation ! Activity Install TREX with a Virtual Host Name [Page 42] To make your TREX installation accessible using a virtual host name you change the host name of the host on which you intend to install TREX. You do this before you start the TREX installation with SAPinst. Install TREX with SAPinst [Page 30].
Post-Installation Configuration ! Activity Start the TREX Admin Tool [Page 66] You need the TREX admin tool (stand-alone) for post-installation configuration steps. As of TREX 7.1 the TREX admin tool runs independently of the TREX servers and services. TREX starts automatically if you restart the host. If you have not restarted the host, start TREX manually (see Starting and Stopping TREX on UNIX [Page 74]). HTTP communication Configure the TREX Web Server [Page 48] Java applications communicate with the TREX servers using HTTP/HTTPS by means of the TREX Web server. After installing TREX, you have to configure the TREX Web server so that your Java application can access TREX. Configure TREX Proxy Settings [Page 50] If there is a proxy server between the TREX servers and the documents to be indexed, specify the proxy server and define exclusion rules if necessary. TREX Languages
15
April 2008
Select Languages for TREX Language Recognition [Page 51] TREX supports the indexing and analysis of documents in different languages. You select languages to be identified by TREX language recognition. System Landscape Directory Configure TREX for the System Landscape Directory (SLD) [Page 52] General Windows Configuration Check Performance Settings for the Operating System (Windows) [Page 55] On Windows no further actions are needed to start TREX. The SAP service for the corresponding TREX instance is registered as a Windows service and starts automatically after installation.
Client Side
Configuration ! Activity Connecting TREX with a HTTP Application Specify the Address of the TREX Name Server [Page 62] Enter the address of the TREX name server in the Java client configuration settings (TREX service in the NetWeaver Administrator of the JEE). Check Proxy Settings [Page 50] If an application is unable to communicate with TREX, it may be due to the application trying to access TREX through a proxy server. Wizard-Based Configuration Wizard-Based Basic Configuration for TREX [Page 47] The configuration wizard enables automatic configuration of the settings that are required for the application using TREX to communicate with TREX using an HTTP or RFC connection.
Installation Preparations ! Activity If you want to install multiple TREX instances, read the information [Page 28] on this. Prepare the system for the SAPinst interface [Page 28].
16
April 2008
Check whether there is sufficient disk space [Page 29] for installing the TREX software.
Installation ! Activity Install TREX with a Virtual Host Name [Page 42] To make your TREX installation accessible using a virtual host name you change the host name of the host on which you intend to install TREX. You do this before you start the TREX installation with SAPinst. Install TREX with SAPinst [Page 37].
Post-Installation Activities ! Activity Start the TREX Admin Tool [Page 66] You need the TREX admin tool (stand-alone) for post-installation configuration steps. As of TREX 7.1 the TREX admin tool runs independently of the TREX servers and services. TREX starts automatically if you restart the host. If you have not restarted the host, start TREX manually (see Starting and Stopping TREX on UNIX [Page 74]). TREX Languages Select Languages for TREX Language Recognition [Page 51] TREX supports the indexing and analysis of documents in different languages. You select languages to be identified by TREX language recognition. System Landscape Directory Configure TREX for the System Landscape Directory (SLD) [Page 52] General Windows Configuration Check Performance Settings for the Operating System (Windows) [Page 55] On Windows no further actions are needed to start TREX. The SAP service for the corresponding TREX instance is registered as a Windows service and starts automatically after installation. Connecting TREX with an ABAP Application (Configuration of the RFC Connection) Create a SAP System User for the TREX Admin Tool (Stand-Alone) [Page 57] You must create an SAP user that the TREX admin tool (stand-alone) can use to log on to the SAP system. Determine the SAP System Connection Information [Page 59] The TREX admin tool requires connection information for the SAP system. You determine the information and specify it in the TREX admin tool. Configure the RFC Connection in the TREX Admin Tool [Page 60]. Wizard-Based Configuration Wizard-Based Basic Configuration for TREX [Page 47] The configuration wizard enables automatic configuration of the settings that are
17
April 2008
required for the application using TREX to communicate with TREX using an HTTP or RFC connection.
Client Side
Configuration ! Activity On the client side, no further configuration steps are required.
Installation Preparations ! Activity If you want to install multiple TREX instances, read the information [Page 28] on this. Prepare the system for the SAPinst interface [Page 28]. Check whether there is sufficient disk space [Page 29] for installing the TREX software.
Installation ! Activity Install TREX with a Virtual Host Name [Page 42] To make your TREX installation accessible using a virtual host name you change the host name of the host on which you intend to install TREX. You do this before you start the TREX installation with SAPinst. Install TREX with SAPinst [Page 37].
Post-Installation Configuration ! Activity Start the TREX Admin Tool [Page 66] You need the TREX admin tool (stand-alone) for post-installation configuration steps. As of TREX 7.1 the TREX admin tool runs independently of the TREX servers and services. TREX starts automatically if you restart the host. If you have not restarted the host, start TREX manually (see Starting and Stopping
18
Search and Classification TREX TREX on UNIX [Page 74]). HTTP communication Configure the TREX Web Server [Page 48]
April 2008
Java applications communicate with the TREX servers using HTTP/HTTPS by means of the TREX Web server. After installing TREX, you have to configure the TREX Web server so that your Java application can access TREX. Configure TREX Proxy Settings [Page 50] If there is a proxy server between the TREX servers and the documents to be indexed, specify the proxy server and define exclusion rules if necessary. TREX Languages Select Languages for TREX Language Recognition [Page 51] TREX supports the indexing and analysis of documents in different languages. You select languages to be identified by TREX language recognition. System Landscape Directory Configure TREX for the System Landscape Directory (SLD) [Page 52] TREX starts automatically if you have restarted the host. If you have not restarted the host, start TREX manually. (See Starting and Stopping TREX on UNIX [Page 74].) General Windows Configuration Check Performance Settings for the Operating System (Windows) [Page 55] On Windows no further actions are needed to start TREX. The SAP service for the corresponding TREX instance is registered as a Windows service and starts automatically after installation. Connecting TREX with an ABAP Application (Configuration of the RFC Connection) Create a SAP System User for the TREX Admin Tool (Stand-Alone) [Page 57] You must create an SAP user that the TREX admin tool (stand-alone) can use to log on to the SAP system. Determine the SAP System Connection Information [Page 59] The TREX admin tool requires connection information for the SAP system. You determine the information and specify it in the TREX admin tool. Configure the RFC Connection in the TREX Admin Tool [Page 60]. Wizard-Based Configuration Wizard-Based Basic Configuration for TREX [Page 47] The configuration wizard enables automatic configuration of the settings that are required for the application using TREX to communicate with TREX using an HTTP or RFC connection.
19
April 2008
Specify the Address of the TREX Name Server [Page 62] Enter the address of the TREX name server in the Java client configuration settings (TREX service in NetWeaver Administrator of the JEE). Check Proxy Settings [Page 50] If an application is unable to communicate with TREX, it may be due to the application trying to access TREX using a proxy server.
Installation Planning
Purpose
The following sections contain information that is relevant when planning the installation.
On UNIX, 200 MB in temporary directories or in a directory of your choice. On Windows, 200 MB in the directory C:\Program
Files
20
April 2008
Requirement Type
Requirement
/<sapmnt>/<sapsid>/SYS.
TREX directory You need the following for the TREX software: On UNIX, at least 1 GB in the directory
/usr/sap/<sapsid>/trx<instance_number>.
You also need disk space in this directory for the trace files that TREX writes during routine operation Index directory A minimum of 80 GB, depending on the number and type of documents to be indexed. If documents exist in different formats (Microsoft Word, PDF, and so on), the index needs approximately half as much disk space as the documents. For pure HTML documents, the index needs about twice as much disk space as the documents. In addition, the same amount of disk space as for the index is needed temporarily for the optimization process. A document set that consists only of HTML documents and has a total size of 10 GB generates an index size of 20 GB (2 x 10GB). An additional 20 GB disk space is needed temporarily for optimization. Therefore, you need 40 GB disk space altogether: 20 GB permanently and 20 GB temporarily. Queue directory The queues require approximately three quarters of the disk space required by the indexes. The documents to be indexed are kept temporarily in the queue directory before being forwarded to actually be indexed. In the case of an installation with an RFC connection, you can use TREX with or without a queue server. If you are not using a queue server, the queue directory is not relevant. SAP Note 658052 contains information on which configuration is suitable for which application. The three directories can be located on different partitions. The index directory and queue directory can also be located on a file server. The TREX host must be able to access the file server as quickly as it can access the local hard drive. RAM Demo or test system: At least 2 GB Production system: 8 GB, at least 4 GB per CPU With two index servers per TREX instance: At least 4 CPUs
21
April 2008
Requirement Type
Requirement The amount of main memory that is actually used depends on several factors. For example, in the case of the index server, influencing factors are index size, number of parallel search requests, and amount of the number of hits.
Windows: Software Requirements Requirement Type Operating system Requirement TREX supports the following Windows version: Microsoft Windows Server 2003/X64 64BIT (US English version) For security reasons, the supported partition installed on Windows is NTFS (NT file system) not FAT32 (file allocation table). For the most up-to-date information about platform and operating system availability for TREX check the Platform Availability Matrix (PAM) on SAP Service Marketplace service.sap.com/pam. Python Python 2.4. A Python version by ActiveState is part of the delivery. It is installed by the TREX setup program in the directory <TREX_DIR>\exe\Python. Only relevant for an installation with an HTTP connection. Microsoft Internet Information Server (IIS) 6.0 The TREX delivery does not contain the Internet Information Server (IIS), so you have to install an IIS 6.0 on your TREX host before configuring the TREX Web server. You must ensure that the Internet Information Server (IIS) is installed. Also make sure that the IIS is running correctly. Activate the World Wide Web Publishing Service, IIS Admin Service, and HTTP SSL in the Windows Services tool. To do this navigate to Control Panel Administrative Tools Computer Management Services and Application Internet Information Services (IIS) Manager.
Web server
UNIX: Software Requirements Requirement Type Operating system Requirement TREX supports one of the following UNIX version: LINUX SUSE SLES9/ X86_64 64BIT Service Pack 1 (SP1) TREX only supports LINUX distributions that have been released by SAP.
22
April 2008
Requirement Type
Requirement For the most up-to-date information about platform and operating system availability for TREX check the Platform Availability Matrix (PAM) on SAP Service Marketplace service.sap.com/pam.
Python
Python 2.4. A Python version by ActiveState is part of the delivery. It is installed by the TREX setup program in the directory <TREX_DIR>/exe/Python directory. Only relevant for an installation with an HTTP connection. Apache Web Server 1.3.36: The Web server is part of the delivery, and is installed by the TREX setup program in the <TREX_DIR>/exe/Apache directory.
Web server
Required Documentation
You require this installation guide and the following additional documentation for the installation: SAP Notes on installation The SAPinst Troubleshooting guide Information available on SAP Service Market Place
1158215
23
April 2008
service.sap.com/security
Installation Preparations
Purpose
The following sections describe the steps you carry out before the TREX installation.
Downloading TREX
Use
You download the most current TREX version from SAP Service Marketplace. You can use the downloaded TREX software package for two purposes:
...
1. Access the SAP Software Distribution Center on SAP Service Marketplace at http://service.sap.com/swdc 2. Navigate to SAP Software Distribution Center Download Support Packages and Patches Entry by Application Group SAP NetWeaver SAP NetWeaver SAP NetWeaver 7.0 (2004s) Entry by Component Search and Classif. (TREX) TREX 7.10 <operating_system> (Linux_on_X86_64_64bit/Windows Server_on_x64_64bit) TREX71_<Revision>.SAR 3. Download the TREX software package from the specified folder on SMP into a temporary folder on your host.
1. Create a directory <TREX_DOWNLOAD> for the TREX software package. 2. Use SAPCAR to extract the downloaded TREX software archive TREX71_<REVISION>.SAR to the directory. Installing and Updating TREX Single Host 24
April 2008
SAPCAR is installed with each SAP Web AS in the kernel directory. If you do not have access to the currently installed SAPCAR tool, you can download the unpackaged version of the SAPCAR tool at http://service.sap.com/patches Entry by Application Group Additional Components SAPCAR.
...
1. Go to the directory in which you have downloaded or copied the archive files: Linux: cd /<TREX_DOWNLOAD> Windows: cd \<TREX_DOWNLOAD>
2. Start SAPCAR to extract the archive to the current directory: Linux: <path to SAPCAR>/sapcar xvf <file_name>.SAR Windows: <path to SAPCAR.EXE>\sapcar.exe xvf <file_name>.SAR
You can use the option -R to specify a specific target directory, for instance, sapcar -xvf <SAR_file> -R <target_dir>. Directories in the archive are created as subdirectories of the target directory to retain the directory structure of the archive.
25
April 2008
SAP system profile directory in the global file system: On UNIX /<SAP System Mount Directory>/<sapsid>/SYS/profile On Windows <SAPGLOBALHOST>\sapmnt\<SAPSID>\SYS\profile
Installation directory for the TREX instance: On UNIX /usr/sap/<sapsid>/trx<instance_number> On Windows <disk_drive>:\usr\sap\<SAPSID>\TRX<instance_number>
Installation Procedure
During the TREX installation, when you chose the installation option Install a TREX system, both a TREX instances and a global file systems will be installed on your local host. Differing from the TREX 7.0 installation you can not decide where the global file system should be stored. For details of TREX installation screens and procedures, see Installing TREX [Page 37]
TREX System
A TREX system consists of the installation of a TREX instance together with a global file system on the a local host where you initially install TREX. Basic information about a TREX landscape is stored in the directory for the SAP system profiles. Directory structure and files On Windows the TREX installation creates a directory structure and SAP system profiles as shown in the graphic below:
Folder Structure on TREX Single Host (Global File System and TREX Instance) usr\sap\<SAPSID>\ SYS\ ...
profile\
DEFAULT.PFL <SAPSID>_TRX<instance_number>_<host>
TRX<instance_number>\ ...
exe\python_support\ <trex_hostname>\ index\ queue\
26
April 2008
administration perspective. This is visible in that they both have the same system ID (<SAPSID>) and use the same global file system. You install an additional TREX instance by means of a TREX script. For more information, see Installing an additional TREX Instance [Page 41] Directory structure and files On Windows the installation creates directory structures as illustrated in the graphic below:
TREX Instance # 1 First TREX Instance and Global File System
usr/sap/<SAPSID>/ SYS/
usr\sap\<SAPSID>\ TRX<instance_number>\
exe/python_support/ ... <trex_hostname>/
...
profile/ TRX<instance_number>/ exe/python_support/ <trex_hostname>/ index/ queue/
index/ queue/
TREX Instance # 2
usr\sap\<SAPSID>\ TRX<instance_number>\
exe/python_support/ ... <trex_hostname>/ index/ queue/
27
April 2008
After the installation (HTTP connection) If you are installing TREX on Windows, you must make sure that the Web pages of the individual instances run independently of one another. The following configuration is required for this: Microsoft IIS 6.0: There must be a separate Web service extension for each instance. Each TREX Web site must also use its own application pool.
28
April 2008
If required, you can perform a remote installation using a stand-alone SAPinst GUI on a separate Windows or UNIX host. This lets you perform the installation on a remote host, controlling it with the SAPinst GUI from a local host. If you want to perform a remote installation, see Starting SAPinst on the Remote Host (Optional) [Page 68]. In this case, you need at least a JRE on the local host to start the SAPinst GUI there.
Procedure
...
You have to check that there is of a released Java Runtime Environment (JRE) on the host on which SAPinst GUI should run. JRE is not part of the SAP shipment. If necessary you need to download and install the required version. 1. Check the JRE versions that are released for SAP systems on the SAP Service Marketplace at: service.sap.com/pam SAP NetWeaver SAP NetWeaver JSE Platforms 2. Make sure a valid JRE version is installed, as follows: If JRE is not already installed: Since JRE is not part of the SAP shipment, you need to download and install it. JRE is part of the JDK (Java Development Kit). For additional information about the recommended JRE version, see SAP Note 709140. If JRE is already installed: Check the installed version of JRE by entering: java -version
SAPinst checks the environment variable SAPINST_JRE_HOME for a valid Java Runtime Environment. If SAPINST_JRE_HOME is not found, SAPinst also checks JAVA_HOME.
UNIX/Linux only: If you use a Sun Java VM, you have to edit the configuration file
$JAVA_HOME/jre/lib/security/java.security, replacing entry securerandom.source=file:/dev/random with securerandom.source=file:/dev/urandom .
Required JRE for the SAPinst GUI The required JRE is 1.4.2 or higher.
29
April 2008
Before the installation starts, make sure that there is enough disk space in this directory for the TREX software. For information on the required disk space, see Hardware and Software Requirements [Page 20].
Procedure on UNIX
Starting Point The directory /usr does not yet exist. The directory /usr exists, but the directory /usr/sap does not. Procedure For the directory /usr, select a partition that has sufficient disk space for the TREX software and other SAP software if necessary. Choose one of the following options: Create a new partition with sufficient disk space for the directory sap. Insert the directory sap into the directory
/usr.
Create the directory sap in a file system that has sufficient disk space. Generate a symbolic link to the directory sap in the directory /usr.
Go to the directory /usr/sap and check the amount of free disk space by executing the following command.
df k .
1. Create the installation directory in a file system that has sufficient disk space. You must assign the installation directory the name trx<instance_number>. <instance_number> must match the instance number that you specified during the installation. 2. Generate a symbolic link to the installation directory in the directory /usr/sap.
Procedure on Windows
On Windows you can choose the target drive during the installation. Use the Windows Explorer to check whether there is sufficient disk space on the target drive.
30
April 2008
Note the following about SAPinst: When you start SAPinst, SAPinst GUI and the GUI server also start. SAPinst GUI connects via a secure SSL connection to the GUI server and the GUI server connects to SAPinst. SAPinst normally creates the installation directory sapinst_instdir where it keeps its log files, and which is located directly below the Program Files directory. If SAPinst is not able to create sapinst_instdir directly below the Program Files directory, SAPinst tries to create sapinst_instdir in the directory defined by the environment variable TEMP. Windows: SAPinst creates a subdirectory for each installation service, named <sapinst_instdir>\<installation_service> which is located below %ProgramFiles%\sapinst_instdir. The exact name of the subdirectory depends on the installation service chosen by you. UNIX: SAPinst normally creates the installation directory sapinst_instdir directly below the temporary directory. SAPinst finds the temporary directory by checking the value of the environment variables TEMP, TMP, or TMPDIR. If no value is set for these variables, SAPinst uses /tmp as default installation directory. The SAPinst Self-Extractor extracts the executables to a temporary directory (TEMP, TMP, TMPDIR, or SystemRoot). These executables are deleted after SAPinst has stopped running. Directories with the name sapinst_exe.xxxxxx.xxxx sometimes remain in the temporary directory. You can safely delete them. In the temporary directory you can also find the SAPinst Self-Extractor log file dev_selfex.out, which might be useful if an error occurs.
If SAPinst cannot find a temporary directory, the installation terminates with the error FCO-00058. Windows: If you want to terminate SAPinst and the SAPinst Self-Extractor, do one of the following: Right-click the icon for the SAPinst output window located in the Windows tray and choose Exit. Click the icon for the SAPinst output window located in the Windows tray and choose File Exit.
UNIX: If required, you can terminate SAPinst and the SAPinst Self-Extractor by pressing Ctrl+C. Before you start the installation with the command sapinst make sure that all moint-points (UNIX) or network drives (Windows) are accessible. If this does not work you may have to temporarily unmount the unaccessible mount points or mapped network drives.
Procedure
You now can start the installation with SAPinst: Installing with SAPinst on UNIX [Page 32]
31
April 2008
Prerequisites
Make sure that your operating system does not delete the contents of the temporary directory /tmp or the contents of the directories to which the variables TEMP, TMP, or TMPDIR point, for example by using a crontab entry.
SAPinst normally creates the installation directory sapinst_instdir directly below the temporary directory. SAPinst finds the temporary directory by checking the value of the environment variables TEMP, TMP, or TMPDIR. If no value is set for these variables, SAPinst uses /tmp as default directory. The SAPinst Self-Extractor extracts the SAPinst executables to the temporary directory, TEMP, TMP, TMPDIR or /tmp. These executables are deleted again after SAPinst has stopped running. If required, you can terminate SAPinst and the SAPinst Self-Extractor by pressing Ctrl+C.
If SAPinst cannot find a temporary directory, the installation terminates with the error FCO-00058. Make sure that you have at least 60 MB of free space in the installation directory for each Java installation service. In addition, you need 200MB free space for the SAPinst executables. If you cannot provide 200 MB free space in the temporary directory, you can set one of the environment variables TEMP, TMP, or TMPDIR to another directory with 200 MB free space for the SAPinst executables.
Each SAP instance requires a separate installation directory. Make sure that your SAPINST_JRE_HOME environment variable is set to a valid Java Runtime Environment (JRE).
If you have more than one Java Virtual Machine (JVM) installed on your system (for example, you have two JREs with different versions installed), make sure that the SAPINST_JRE_HOME environment variable <UNIX: for user root> is set to the valid <JAVA_HOME> directory. Make sure that your DISPLAY environment variable is set to <host_name>:0.0, where <host_name> is the host on which the SAPinst GUI will be displayed. If there are errors with SAPinst, you can find the Self-Extractor log file dev_selfex.out in the temporary directory. If required, delete any directories with the name sapinst_exe.xxxxxx.xxxx after SAPinst has finished. Sometimes these remain in the temporary directory.
32
April 2008
We recommend that you keep all installation directories until you are fully satisfied that the system is completely and correctly installed.
Procedure
...
1. Log on to the installation host as root. Make sure that the root user has not set any environment variables for a different SAP system or database. 2. If you want to install a central instance, a database instance, a dialog instance, or a standalone gateway instance, mount the Installation Master DVD. You can also install a gateway instance from the SAP Presentation DVD. In this case, mount the Presentation DVD and replace Installation Master DVD with Presentation DVD in this section. 3. Start SAPinst for installing TREX. You can start SAPInst and install TREX in the following way: Start SAPinst from the Installation Master DVD You start SAPinst from the Installation Master DVD and install TREX thereafter using the CD containing the TREX installation files that will be part of the SAP NetWeaver delivery. Installing TREX by software package You install TREX using the TREX software package that can be downloaded from SAP Service Marketplace. For details see Installing TREX [Page 37] and Downloading TREX [Page 24]) Start SAPinst from the Installation Master DVD in one of the following ways: Using the default installation directory (recommended) Enter the following commands: cd <Installation Master_DVD>/IM_<OS> ./sapinst
Make sure that your operating system does not delete the contents of the temporary directory /tmp or the contents of the directories to which the variables TEMP, TMP, or TMPDIR point, for example, by using a crontab entry. Make sure that your current working directory is not an IM_<OS> directory belonging to another operating system. For example, the following constellation causes an error:
$ cd /sapcd2/IM_HPUX_IA64 $ /sapcd2/IM_HPUX_PARISC/sapinst
33
April 2008
Using an alternative installation directory. If you want to use an alternative installation directory, set the environment variable TEMP, TMP, or TMPDIR. During the installation, the default ports 21200 and 21212 are used for communication between SAPinst, GUI server, and SAPinst GUI. SAPinst uses port 21200 to communicate with the GUI server. The GUI server uses port 21212 to communicate with SAPinst GUI. You get an error message if one of these ports is already in use by another service. In this case, you must execute sapinst using the following parameters:
SAPINST_DIALOG_PORT=<free_port_number_sapinst_gui_to_gui_ser ver> GUISERVER_DIALOG_PORT=<free_port_number_gui_server_to_sapins t_gui>.
For a list of all available SAPinst properties, enter the following command: sapinst -p. SAPinst GUI normally starts automatically by displaying the Welcome screen. However, if there is only one component to install, SAPinst directly displays the first input dialog without presenting the Welcome screen. Start SAPinst from the downloaded TREX software package (see Downloading TREX [Page 24]). i. Change to the directory <TREX_DOWNLOAD>/ ims_sapinst_standalone_trex/ <OS_DIR>, which has been created by SAPCAR. ii. Start SAPinst from this directory by entering the command
cd <TREX_DOWNLOAD>/ims_sapinst_standalone_trex/ <OS_DIR> ./sapinst
4. In the screen Welcome to SAP Installation Master, choose the respective path. The respective paths and necessary input parameters are listed in the section Installing TREX [Page 37] 5. If SAPinst prompts you to log off from your system, log off and log on again. 6. Follow the instructions in the SAPinst input dialogs and enter the required parameters. To find more information about each parameter during the input phase of the installation, position the cursor on the field of the respective parameter and choose F1. 7. After you have maintained all input parameters, SAPinst starts the installation and displays the installation progress during the processing phase. If the installation was successful, the screen Finished installation is displayed. 8. If required, delete directories with the name sapinst_exe.xxxxxx.xxxx after SAPinst has finished. Sometimes these remain in the temporary directory.
34
April 2008
If there are errors with SAPinst Self-Extractor, you can find the self-extractor log file dev_selfex.out in the temporary directory. We recommend that you keep all installation directories until you are sure that the system is completely and correctly installed. We recommend that you to delete all files in the directory <user_home>/.sdtgui/. 9. If you have copied installation DVDs to your hard disk, you can delete these files when the installation has successfully completed. If errors occur during the installation, see Troubleshooting During the Installation [Page 77].
Prerequisites
You are logged on as user with the required rights and privileges that authorize you to install the SAPinst tool and the SAP system. For more information, see Granting User Rights for the Installation. Each SAP instance requires a separate installation directory.
We recommend that you keep all installation directories until the system is completely and correctly installed. ABAP: You need at least 50 MB of free space in the installation directory for each ABAP installation service. In addition, you need 60-200 MB free space for the SAPinst executables. Java: You need at least 130 MB of free space in the installation directory for each Java installation service. In addition, you need 60-200 MB free space for the SAPinst executables. ABAP+Java: You need at least 50 MB of free space in the installation directory for each ABAP installation service, and at least 130 MB of free space in the installation directory for each Java installation service. In addition, you need 60-200 MB free space for the SAPinst executables. If you are installing a second or subsequent SAP system on an existing database, make sure that the database is up and running before starting the installation.
Procedure
...
1. Log on to the installation host as a user with administrator rights. Do not use any <sapsid>adm user for installing TREX. This means, do not use the <sapsid>adm user of another SAP System and do not use the <sapsid>adm user of an already existing TREX installation for installing TREX.
35
Search and Classification TREX 2. Start SAPinst for installing TREX. You can start SAPInst and install TREX in the following way: Start SAPinst from the Installation Master DVD.
April 2008
You start SAPinst from the Installation Master DVD and install TREX thereafter using the CD containing the TREX installation files that will be part of the SAP NetWeaver delivery. i. ii. Insert the SAP Installation Master DVD with the installation files in your DVD drive or mount it locally. Double click sapinst.exe from <DVD_DRIVE>:\IM_WINDOWS_<platform>.
Start SAPinst and install TREX by software package. You install TREX using the TREX software package that can be downloaded from SAP Service Marketplace. (For details see Installing TREX [Page 37] and Downloading TREX [Page 24]).
...
i.
Change to the directory <TREX_DOWNLOAD>/ ims_sapinst_standalone_trex/<OS_DIR>, which has been created by SAPCAR. Start SAPinst from the directory <TREX_DOWNLOAD>/ ims_sapinst_standalone_trex/ <OS_DIR> by double clicking sapinst.exe.
ii.
SAPinst GUI normally starts automatically by displaying the Welcome screen. However, if there is only one component to install, SAPinst directly displays the first input dialog without the Welcome screen. During the installation, the default ports 21200 and 21212 are used for communication between SAPinst, GUI server, and SAPinst GUI. SAPinst uses port 21200 to communicate with the GUI server. The GUI server uses port 21212 to communicate with SAPinst GUI. You get an error message if one of these ports is already in use by another service. In this case, you must execute sapinst using the following parameters:
SAPINST_DIALOG_PORT=<free_port_number_sapinst_gui_to_gui_server> GUISERVER_DIALOG_PORT=<free_port_number_gui_server_to_sapinst_gui >.
For a list of all available SAPinst properties, enter the following command: sapinst -p. 3. In the screen Welcome to SAP Installation Master, choose the respective path. The respective paths and necessary input parameters are listed in the section Installing TREX [Page 37]. 4. If SAPinst prompts you to log off from your system, log off and log on again. 5. Follow the instructions in the SAPinst input dialogs and enter the required parameters. To find more information about each parameter during the input phase of the installation, position the cursor on the field of the respective parameter and choose F1. 6. After you have entered all required input parameters, SAPinst starts the installation and displays the installation progress during the processing phase. When the installation was successful, the screen Finished installation is displayed.
36
April 2008
We recommend that you to delete all files in the directory <user_home>/.sdtgui/. If errors occur during the installation, see Troubleshooting during the installation [Page 77].
Installing TREX
You can initially install TREX in the following way: Installing TREX by CD You install TREX using the CD containing the TREX installation files that will be part of the SAP NetWeaver delivery. Installing TREX by software package
37
April 2008
You install TREX using the TREX software package that can be downloaded from SAP Service Marketplace (see Downloading TREX [Page 24]). Both installation procedures only differ in the way you navigate through the initial screens. The required input is the same for both installations. The tables below show the names of the screens that are displayed during the installation of TREX and the entries that you need to make. For more information about the directories that the installation creates, see TREX Global File System and TREX Instances [Page 25].
Installing TREX by CD
You install TREX using the CD containing the TREX installation files that will be part of the SAP NetWeaver delivery. After SAPinst starts, the screen Welcome to SAP installation Master appears. Screen Welcome to SAP Installation Input
...
1.
In the folder hierarchy, choose SAP NetWeaver 7.0 Initial Installation Tasks Standalone Engines Search and Classification (TREX) TREX Installation The screen DVD/CD Browser > Software Package Request appears.
2. Choose Next.
... ...
1. Insert the CD containing the TREX installation files (Windows) or mount the CD (UNIX). 2. Package Location Specify the path to the CD containing the TREX installation files.
During the TREX installation, which you perform as the root user (UNIX) or as a user with administration rights (Windows), the operating system user <SAPSID>adm is created. For all operating systems, make sure that the user <SAPSID>adm has at least read-access to the TREX installation CD. Otherwise, a Python error message can occur during installation. If the <SAPSID>adm user does not have at least read-access for the CD containing the TREX installation files, you can copy the CD to your local hard-drive. To do this, specify in CopyPackageTo the path to the directory to which you want to copy the files on the TREX installation CD. 3. Choose Next. TREX Installation Confirm the installation of TREX Search and Classification Choose Next to continue.
38
April 2008
1.
In the folder hierarchy, choose SAP NetWeaver 7.0 TREX Search and Classification Installation TREX global Install a TREX System The screen TREX Installation appears.
TREX Installation
1. SAP System ID (SAPSID) Enter an SAP system ID <SID>. The SAP system ID consists of three characters and must begin with a capital letter, after that it can contain numbers. When you choose a system ID <SAPSID> for your TREX landscape check which system IDs are already in use by other SAP applications on the same host where TREX is to be installed. Do not use a system ID <SAPSID> that is already assigned to another SAP system landscape for your TREX installation and landscape. Otherwise an error message appears. 2. Instance Number Enter an instance number for the TREX instance that you are installing. Note the following: You can choose any number between 00 and 98. The instance number must be unique on the host. If several instances of a piece of SAP software are running on the same host (TREX instances or instances of other SAP systems) they must have different instance numbers. If instances have already been installed, the system suggests the next available number.
3. Destination Drive (Windows Only) Choose the drive on which the TREX software is to be installed. SAPinst checks whether the installation directory already exists. If not, it creates it. The directory is: On UNIX /usr/sap/<SAPSID>/trx<instance_number>
39
April 2008
On Windows
<disk_drive>:\usr\sap\<SAPSID>\TRX<instance_n umber>
The path to the directory is fixed and cannot be changed (apart from the Windows disk drive). The directory should not be available before the installation unless you explicitly created it for space reasons previously (see Checking Disk Space [Page 29]). This allows you to ensure that the directory does not contain any data that does not belong to TREX, which would then also be deleted if TREX were uninstalled. 4. Choose Next.
...
1. SAP System User Domain (Windows Only) The entries for an SAP system user domain are not required on UNIX. In SAP System User Domain Domain Model, enter the Windows domain in which the user accounts for the SAP system have been created: Local Installation You choose this setting if you are installing TREX locally on a host. Use Domain for Current User You choose this setting if you are installing TREX in the Windows domain of the current user. Use Different Domain You choose this setting if you are installing TREX in a different Windows domain to that of the current user. You must note that, in both cases involving installation in a Windows domain, you must have domain administrator rights in order to be able to create the required operating system users.
...
1. Master Password
...
a. Password for all users of this SAP system b. Confirm Specifies one password for both SAP system administrator and SAP system service user. The password is used for all accounts, that SAPinst creates and for the secure store key phrase. The password must be 8-14 characters long. Depending on your installation scenario, there might be more restrictions. You can choose a different value for each password by
40
April 2008 choosing to edit the relevant parameter section on the summary screen. If you already set one password to a different value and the change the master password in this dialog, the individually set passwords are NOT overwritten with the new master password.
2. Choose Next. Parameter Summary SAPinst displays all settings before you start the installation procedure: The settings you have chosen and the default configuration settings automatically filled by SAPinst.
...
1. You can check the settings and choose Revise to change any of them if necessary. In this case, SAPinst goes back to the installation screen where you can enter the specific settings you want to change. 2. To start the installation with the selected parameters, choose Next.
This directory is part of the global file system (SAP system directory)
usr\sap\<SAPSID>\SYS, which must be highly available. All instances of a
TREX system must have permanent access to it. The global file system must be accessible from all hosts on which you intend to install additional TREX instances.
Prerequisites
You have mounted (UNIX) or shared (Windows) the directory <SAPSID>\SYS\global\trex\install on the host where you intend to install the additional TREX instance so that the directory is accessible from this host.
Procedure
...
1. Log in as root (UNIX) or local administrator (Windows) on the host where the additional TREX instance shall be installed and open a command prompt.
41
April 2008
2. Navigate to the directory \...\<SAPSID>\SYS\global\trex\install which is located on the host where you have installed TREX initially. On UNIX you have to mount this directory manually. 3. Execute the script addInstance.cmd (Windows) or instance.sh (UNIX) in this directory. The script will automatically do the following: Creating a directory structure for SAPSID and TREX instance Creating a <SAPSID>adm user Configuring the SAP system Deploying binaries Creating host configuration Registering with TREX Landscape Registering Service sapstartsrv and starting TREX
Result
After executing the script an additional TREX instance was installed on the host. You do not need to do additional configuration steps.
Prerequisites
The virtual host name must be valid at the operating system level and in the network the host is a part of. It can be a new primary host name, an additional alias name, or its IP address. The host must be accessible with this name using the ping command. Only then TREX can monitor itself and can be used by other applications.
Procedure
...
You start SAPinst from the installation master DVD or from the directory of the downloaded TREX software package.
... ... ...
1. Open a command prompt and execute the following commands: UNIX ./sapinst SAPINST_USE_HOSTNAME=<virtual_hostname> Windows: sapinst.exe SAPINST_USE_HOSTNAME=<virtual_hostname>
2. Install TREX as described in the TREX Installation Guide (Single Host). You find the TREX Installation Guide (Single Host) on SAP Service Marketplace service.sap.com/instguides. 3. Stop TREX if necessary (incl. sapstartsrv)
42
April 2008
As long as the host name is changed to the virtual host name do not start or stop any other TREX instances. Otherwise those TREX instances would change the TREX configuration file toplogy.ini so that the instances will be registered with the virtual host name there.
Updating TREX
Use
The update software package of TREX is named TREX Revision. The TREX Revision numbers no longer follow the SP stacks. Nevertheless, you download the TREX Revision update from the SP stack download page as described in section Downloading TREX [Page 24] in order to get the TREX update packages appropriate to the corresponding SP stack.
Prerequisites
You have installed at least one previous TREX 7.10 release (Version 7.10.XX.XX) : If you have already installed TREX, refer to the TREX admin tool Landscape Hosts Version to find the version of your TREX installation (see Starting the TREX Admin Tool [Page 66]). If you do not have TREX installed at all, install TREX 7.10 from scratch as described in this guide in section Installation and Update [Page 30]. In a distributed scenario, all TREX systems must have the same TREX release with the same patch level. Mixed installations with different TREX releases are not supported.
Procedure
...
1.
Log on to the host on which you want to apply the TREX update package as user <SAPSID>adm.
Do not use the <SAPSID>adm user of another SAP system for updating a TREX system. For a distributed TREX system, you have to perform the update on the TREX host on which the TREX global file system is installed. The TREX instance on this host is to be updated first. With the restart of TREX after the update, all other TREX instances of the TREX system are updated automatically by replicating the updated binaries. 2. Change to the directory <TREX_DOWNLOAD>/ims_sapinst_standalone_trex/<OS_DIR>, which has been created by SAPCAR. Before starting the update, you have to close the TREX Admintool. 3. Start SAPinst from the directory <TREX_DOWNLOAD>/ims_sapinst_standalone_trex/ <OS_DIR>:
43
April 2008
UNIX: Entering the command cd <TREX_DOWNLOAD>/ims_sapinst_standalone_trex/<OS_DIR> ./sapinst Windows: Double clicking sapinst.exe in the directory
<TREX_DOWNLOAD>/ims_sapinst_standalone_trex/<OS_DIR>
After SAPinst starts he screen Welcome to SAP Installation Master appears: Screen Welcome to SAP Installation Master Input
...
1.
In the folder hierarchy, choose SAP NetWeaver 7.0 TREX Search and Classification Installation TREX global Update a TREX system The screen TREX Update appears.
2. Choose Next. Choose Next. Update Parameter System to update: In the input field the TREX systems you can choose for update are displayed. Choose the TREX system you intend to update. Restart TREX landscape after update: If you activate the check box the TREX system will be restarted after the completion of the update process. Password of SAP System Administrator: If the checkbox for restarting the TREX system is checked you have to specify the password of the SAP System Administrator to perform the TREX restart operation. Parameter Summary SAPinst displays all settings you have chosen before you start the update procedure:
...
1. You can check the settings and choose Revise to change any of them if necessary. In this case, SAPinst goes back to the installation screen where you can enter the specific settings you want to change. 2. To start the update with the selected parameters, choose Next. Tass Progress When you have entered all input parameters, SAPinst starts the update and displays the update progress during the processing phase. If the update is successful, SAPinst displays the message The installation/update finished successfully. After the update finishes successfully, you can restart TREX by means of the TREX Admintool if you have not chosen the option Restart the TREX landscape after update. After you restart TREX, all TREX instances of a distributed TREX system landscape are updated automatically by replication of the updated binaries.
Finished Successfully
44
April 2008
In some cases you may have to restart the Application Pool of the MS Internet Information Server. For Windows Server 2003 choose Start Administrative Tools Internet Information Services (IIS) Manager Application Pools AppPool_TREX_<number> and restart the service.
Result
Your TREX installation has been successfully updated.
Uninstalling TREX
Use
You can uninstall your TREX systems using SAPinst. When you uninstall TREX, the entire TREX directory is deleted, including all configuration data. If the index directory and queue directory are located in the TREX directory, all indexes and queues are deleted.
Procedure on UNIX
...
1. Log on as root. 2. Stop TREX (see Starting and Stopping TREX [Page 69]). It can take a while to stop the TREX processes. Make sure that all of the TREX processes have stopped before you start the uninstallation process. For an installation with an HTTP connection: Check that the Web server (HTTP daemon) has stopped. You can use the following command to do this:
ps fu trx<instance_number> | grep httpd
3. Make sure that the environment variable DISPLAY has been set for root on <host_name>. <host_name> is the host on which the SAPinst GUI is to be displayed. 4. Start SAPinst. If you are installing from the DVD, mount the DVD containing the installation files first. If you are installing from the SAP Service Marketplace, navigate to the corresponding directory.
For a detailed description of these steps, see Installing with SAPinst [Page 37].
Procedure on Windows
...
1. Log on as an administrator. 2. Start SAPinst. If you are installing from the DVD, mount the DVD containing the installation files first. If you are installing from the SAP Service Marketplace, navigate to the corresponding directory.
For a detailed description of these steps, see Installing with SAPinst [Page 37].
45
April 2008
1. In the folder hierarchy, choose SAP NetWeaver 7.0 TREX Search and Classification Installation TREX global Remove a TREX system. 2. Choose Next. The screen TREX Removal appears.
TREX Removal
System to remove In the input field the TREX systems you can remove are displayed. Choose the TREX system you intend to remove.
Remove the users of this TREX system: If you activate the check box all system users of this the TREX system will be deleted.
Parameter Summary
SAPinst displays all settings you have chosen before you start the removal procedure:
...
1. You can check the settings and choose Revise to change any of them if necessary. In this case, SAPinst goes back to the installation screen where you can enter the specific settings you want to change. 2. To start the update with the selected parameters, choose Next. Task Progress When you have entered all input parameters, SAPinst starts the uninstalling process and displays the progress during the processing phase. If the update is successful, SAPinst displays the message The installation/update finished successfully.
Finished Successful<
Result
You have successfully removed all TREX instances for your TREX system.
46
April 2008
TREX can communicate with the application using it by means of an HTTP connection or an RFC connection. There are therefore two procedures for connecting TREX with the application using it: Connecting TREX with a Java Application (HTTP Connection) [Page 62] Connecting TREX with an ABAP Application (RFC Connection) [Page 57]
Procedure
...
1. Call the wizard-based configuration tool as described in the Configuration Wizard documentation. 2. Once you have selected the functional units that you want to configure using the configuration wizard, the Usage Type Overview Selection of Configuration Flavors screen appears. Select Connect TREX in Further configuration tasks. 3. After completing additional configuration steps, you reach the Specifying the Address of the TREX Name Server page. Enter the address of one or more TREX name servers. A TREX name server controls and monitors the HTTP connection between TREX and the application using TREX.
Result
You have used the configuration wizard to configure the HTTP connection between TREX and the application using it. You can also carry out the configuration steps of the wizardbased configuration manually. For information on this, see the following documentation: Connecting TREX with an Application [Page 56] Connecting TREX with an ABAP Application (RFC Connection) [Page 57] Connecting TREX with a Java Application (HTTP Connection) [Page 62] You carry out these steps manually if you have already carried out the wizardbased basic configuration previously and now want to configure settings at a later time.
47
April 2008
Procedure
...
1. Log on with the user <sapsid>adm. 2. Carry out one of the following steps: Operating system UNIX Procedure Enter the following:
cd <TREX_DIR> ./TREXAdmin.sh
Windows
Prerequisites
You must have installed a Web server to use a TREX Web server for HTTP communication with the application using TREX: UNIX: Apache Web Server The TREX delivery includes an Apache Web server. The TREX installation process installs this server in the <TREX_DIR>/Apache directory. Windows: Internet Information Server (IIS) TREX only supports Windows IIS Version 6.0 or higher.
48
April 2008
The TREX delivery does not contain the Internet Information Server (IIS), so you have to install an IIS 6.0 on your TREX host before configuring the TREX Web server. Make sure that the IIS is running correctly. To do so, activate the World Wide Web Publishing Service, IIS Admin Service, and HTTP SSL in the Windows Services tool. Make sure that the Default Web Site runs on the IIS: To check whether this is the case, navigate to Control Panel Administrative Tools Computer Management Services and Application Internet Information Services (IIS) Manager.
In a distributed TREX landscape, the password for the <sapsid>adm user must be identical on all hosts. This is also the case for the SAPService<SAPSID> user.
Procedure
...
1. Start the TREX admin tool (stand-alone). (See: Starting the TREX Admin Tool [Page 66]). 2. In the Landscape Connectivity window, go to the http tab page. 3. Choose Refresh. 4. Choose Add HttpServer. The Set Admin User and Password window appears. During the subsequent configuration steps, the system repeatedly asks you for the password for the <SAPSID>adm user and the SAP system service user (SAPService<SAPSID>). These users and corresponding passwords were created during the TREX installation process. Various error messages appear in the Configuration Status area of the window, telling you that the TREX Web server is not yet fully configured. 5. Choose Repair All. The Set Admin User and Password window appears. 6. Choose Repair All again. The Set SAPService <SAPSID> window appears. The Set Admin User and Password window appears. The Repair Results window appears and confirms that the system correctly created a TREX Web site and application pool. The Set Admin User and Password window appears.
7. Choose Save to save your settings. Choose Reset to restore the previous settings.
Result
You have successfully configured the TREX Web server when the message No problems found appears in the Configuration Status area of the screen and a green traffic light appears.
49
April 2008
Procedure
...
1. Start the TREX admin tool [Page 66]. 2. In the Preprocessor: Admin window, navigate to the Proxy Setting tab page. Enter the proxy server in this area of the TREX admin tool. Since the proxy server should not be used for internal addresses, define exclusion rules for internal addresses. Proxy Server host name and domain of the proxy server Example: proxy.mylocation.mycompany.com Proxy Server Port port of the proxy server Example: 8080 Proxy User user name needed to access the proxy server Proxy User Password password defined for the user ID Proxy Exclusions exclusion rules. These rules define when the proxy server is not to be used. Separate multiple entries using a semicolon. Examples of exclusion rules: Do not use the proxy server to get URLs that end in mycompany.com:
mycompany.com
Do not use the proxy server to get IP addresses that start with 10: 10.
Do not use asterisks as placeholders. 3. Click Save to save your settings. Click Reset to restore the previous settings.
Result
You have configured the proxy server and the corresponding exclusion rules.
50
Search and Classification TREX The procedure depends on the application concerned: SAP Enterprise Portal 6.0 with Content Management Other Java applications based on J2EE 6.40
April 2008
Procedure
...
SAP Enterprise Portal 6.0 with Content Management Check the settings in the portal at System Administration System Configuration Service Configuration Applications (Content Catalog) com.sap.portal.ivs.httpservice Services proxy. If a proxy server is entered there, you have to enter the TREX host in the field http Bypass Proxy Servers. Other Java applications based on J2EE 6.40 For other Java applications, you have to check the configuration of the J2EE Engine. The proxy settings belong to the Java parameters. If a proxy server is configured in the Java parameters, enter the TREX host in the parameter nonProxyHosts. You can choose one of the following options: Alternative 1: D"http.nonProxyHosts=<hostname>.<mydomain>|localhost For <hostname>.<domain>, enter the host name and domain (if necessary) of the TREX host. Alternative 2: D"http.nonProxyHosts=*.<mydomain>|localhost
You can change the Java parameters using the SAP J2EE Engine GUI Config Tool. For more information about using this tool, see the SAP Library at the Internet address help.sap.com Documentation SAP NetWeaver Note that you have to specify the name of the TREX host in the same way both on TREX side in the TREX configuration files (topology.ini, sapprofile.ini) and in the configuration of the J2EE Engine as described above. In case you specify the TREX host name as fully qualified (e.g. PWDF12345.sap.corp) you have to do so on both sides. A mixed usage of host names does not work.
Procedure
1. Start the TREX admin tool [Page 66]. 2. In the Preprocessor: Admin window, navigate to the Languages tab page.
51
April 2008
The Languages for Document Analysis area contains an overview of languages that TREX supports. In this area, select the languages that you want TREX to identify by means of document analysis. Only select the languages that are relevant for your scenario. This optimizes performance during the language recognition process, and therefore during the search and indexing process. The language recognition process gives better results if as few languages as possible are used. Languages for which TREX only provides restricted support are indicated by an asterisk (*).
To supply data to the SLD that originates from a system other than a J2EE or ABAP system, the executable sldreg is used. The sldreg sends data in XML format using a predefined DTD. For this purpose it uses an HTTP connection, as shown in the figure below:
52
April 2008
TREX
SAP Gateway
XML
SLD Bridge
SAPOSCOL
HTTP
SLD
HTTP Servlet
sldreg
On the TREX host, there is an SLD client, which generates an XML file of this type and which registers itself with the SLD server using sldreg.
Prerequisites
After the TREX installation, the SLD client and the associated executable files are located on your TREX host. The SLD server is running. You or your SLD administrator have generated the SLD configuration files slddest.cfg and slddest.cfg.key.
The slddest.cfg.key file is only available if the configuration of sldreg was generated using the - usekeyfile parameter. The user specified in the SLD configuration file slddest.cfg belongs to the DataSupplierLD user role, in order to have permission to send the files to the SLD.
1. Set the environment variables required by TREX by executing the following scripts in a command prompt in the directory <TREX_DIR>: UNIX Bourne shell sh, Bourne-again shell bash, Korn shell ksh: . TREXSettings.sh C shell csh: source TREXSettings.csh
53
Search and Classification TREX Windows TREXSettings.bat 2. Execute the following commands:
April 2008
Without usekeyfile: sldreg -configure <path>/slddest.cfg With usekeyfile: sldreg -usekeyfile -configure <path>/slddest.cfg
To configure TREX for the System Landscape Directory (SLD), you copy the SLD configuration files slddest.cfg and slddest.cfg.key (if available) to the global SLD directory on your TREX host. This directory is called <disk_drive>:\usr\sap\<SAPSID>\SYS\global on Windows and /usr/sap/<SAPSID>/SYS/global on UNIX. In the case of a distributed TREX installation on Windows, all TREX instances use the configuration files for the TREX global file system with first TREX instance as \\<host_central_instance>\sapmnt\<SAPSID>\SYS\global.
Result
By copying the files slddest.cfg and slddest.cfg.key, you have configured TREX for integration in the System Landscape Directory (SLD). TREX checks every five minutes whether anything has changed in the TREX system landscape and reports any changes automatically to the SLD server. If nothing has changed, TREX reports every twelve hours to the SLD server. This allows you to see that this landscape is still active.
Display Results
...
1. To display the information about TREX systems and services navigate to the screen Content Maintenance In the initial screen for the System Landscape Directory Development: Content Maintenance In the initial screen for the System Landscape Directory Administration Content: Content Maintenance
2. In the screen Content Maintenance navigate to Subset and choose All With Instances in the dropdown list. 3. Navigate to Class. In the dropdown list you can display the TREX Services (for example TREX Index Service, TREX Name Service) and TREX systems known by SLD.
Information about the TREX servers Host name, on which the server is running
54
April 2008
Port number that the server is using Type of server, for example, indexserver Web server URL (instead of the port) RFC destination of the RFC server (instead of the port)
Information about the TREX instances on individual hosts System ID Instance number Installation directory Version information for the TREX software
Information about the TREX configuration Name of the TREX hosts (Hosts) that belong to the TREX system landscape TREX server roles Roles of the TREX name server (Name Server Mode) Possible roles are: 1st, 2nd, 3rd Master Name Server, Slave Server Use as master index server or master queue server Roles of the master, slave, and backup index servers
TREX preprocessor mode (Preprocessor Mode) Information about the TREX installation directory (Base Path) Services that have been started by the TREX daemon (Services)
1. Use the secondary mouse button to click on My Network Places on the Windows desktop, and choose Properties. 2. Use the secondary mouse button to click on the local network connection and choose Properties. 3. Select the entry File and Printer Sharing for Microsoft Networks and choose Properties. Installing and Updating TREX Single Host 55
Search and Classification TREX 4. Select Maximize data throughput for network applications. 5. Choose OK twice.
April 2008
Windows 2000 1. Use the secondary mouse button to click on My Computer on the Windows desktop, and choose Properties. 2. Choose the Advanced tab, and then choose Performance Options. 3. Under Application Response, choose the Background Services field. 4. Choose OK twice. Windows Server 2003
...
1. Use the secondary mouse button to click on My Computer and choose Properties. 2. Choose the Advanced tab, and then choose Settings Advanced. 3. Select Background services under Adjust for best performance of. 4. Choose OK twice.
56
April 2008
SES
(Search Engine Service)
ABAP Client
RFC/SNC
Java Client
SAP Gateway
HTTP/HTTPS
HTTP/HTTPS
TCP/IP
RFC Server
Web Server
with TREX Extension
TCP/IP
Queue Server
TCP/IP
Index Server
TCP/IP
Name Server
Preprocessor
There are therefore two procedures for connecting TREX with the application using it: Connecting TREX with an ABAP Application (RFC Connection) [Page 57] Connecting TREX with a Java Application (HTTP Connection) [Page 62]
Creating a SAP System User for the TREX Admin Tool (Stand-Alone)
Use
You must create an SAP user that the TREX admin tool (stand-alone) can use to log on to the SAP system. In addition, the SAP user is required so that the TREX alert server has permission to regularly test and check the RFC configuration. When doing this, the user can
57
April 2008
have been created in the default client or in another client. In this case, make sure that you enter the associated client for the user during the configuration of the RFC connection in the TREX admin tool [Page 60]. The TREX admin tool (stand-alone) is used to configure and monitor TREX. You also use this admin tool to configure the RFC connection between TREX and the ABAP application that is using TREX. To use the TREX admin tool (stand-alone) to create the RFC destination, the admin tool requires an SAP system user that you create based on the predefined role SAP_BC_TREX_ADMIN. This user then has the authorization required to configure the RFC connection. For more information about the SAP_BC_TREX_ADMIN role, see SAP Note 766516. Overview of the Permissions Assigned by the SAP_BC_TREX_ADMIN Role Type and Scope of the Permission Permission check for RFC access Administration for the RFC destination Check on the transaction code at transaction launch Administrating TREX ABAP: Program run checks Change, display, execute Schedule programs for background processing, execute ABAP program, maintain variants for and execute ABAP program Maintain Display, delete Activity Execute Explanation Name of the RFC object to be protected: SYST, TREX_ARW_ADMINISTRATION Type of entry in RFCDES: Start of an external program using TCP/IP Transaction code: SM59, TREXADMIN, TREXADMIN_AUTH
Configuring the RFC Connection in the TREX Admin Tool [Page 60]
Procedure
Create an SAP system user for the TREX admin tool (stand-alone) and assign the SAP_BC_TREX_ADMIN role to this user.
...
1. Launch transaction SU01 (user maintenance) or choose Administration System Administration User Maintenance User in the SAP menu. The User Maintenance: Initial Screen appears. 2. Enter a new user name and choose Create. 3. On the Address tab page, enter the personal data for the user. 4. On the Roles tab page, assign the SAP_BC_TREX_ADMIN role and thus the permission to access the SAP system to the SAP system user for the TREX admin tool (standalone).
58
April 2008
Result
This user for the TREX admin tool (stand-alone) now has the authorization required to configure the RFC connection.
Procedure
...
1. Open the SAP Logon. SAP Logon is the program that you use to log on to an SAP system. 2. Note the following connection information:
...
Required Connection Information SAP system ID (SID) System number Application server host name SAP system ID (SID) Logon group, such as PUBLIC Message server host name
59
April 2008
Creating a Connection
...
1. On the RFC: Current tab page in the Landscape: Connectivity window, choose the Create Connection function. 2. Choose connection type A or B. Specify the connection data for the SAP system (see Determining the SAP System Connection Information [Page 59]). 3. Specify the SAP system user, the associated password, and the client that the TREX admin tool is to use to log on (see Creating a SAP System User for the TREX Admin Tool (Stand-Alone) [Page 57]). If the SAP system user in question exists in the default client, you do not need to specify the client.
1. To do this, use the Create: RFC Destination (SM59) function on the RFC: Current tab page in the Landscape: Connectivity window. 2. Enter the following parameters: Field SAP System Entry SAP system that you want to set up the connection to. The list contains all SAP systems that you have registered using Create Connection. RFC Destination Description Name of the RFC destination. Meaningful description of the purpose
The program ID determines under which name the TREX RFC server registers with the SAP gateway. The program ID must be unique for each SAP gateway. The TREX admin tool ensures this by generating the program ID. 3. Decide which SAP gateway you want to use. You have the following options: Option Comment
60
April 2008
Use local SAP gateways for the application servers. Use the central SAP gateway. We advise against using a central SAP gateway for distributed TREX systems. The central SAP gateway is a single point of failure. If you choose this option, enter the following additional parameters: Host name (with domain name if necessary) or the IP address of the host on which the gateway is installed. Name of the SAP gateway in the form
sapgw<instance_number>
We advise against creating the RFC destination directly in the SAP system. The name of the RFC destination and the program ID must satisfy certain naming conventions. The TREX admin tool ensures that these are fulfilled. If you nevertheless create the RFC destination directly in the SAP system, note the following: We recommend starting the name of the RFC destination with TREX_. Choose the activation type Registered Server Program. Choose a program ID that is unique for the SAP gateway used. Use the RFC Destinations function to register the RFC destination in the TREX admin tool.
1. On the RFC: Current tab page in the Landscape: Connectivity window, choose the Connect Admin Tool function. The TREX admin tool creates the connection to all SAP systems that are known to it. yellow Because the RFC configuration is still incomplete, the configuration status is red. or 2. Choose Repair All. The TREX admin tool completes the RFC configuration and starts the TREX RFC server. This can take several minutes. During this time, the configuration status remains red. After completion of the configuration process, the status changes to yellow or green.
61
April 2008
Do not choose Repair All several times in quick succession. This would trigger the configuration process more than once and delay it. 3. Check the progress by choosing Refresh to update the display.
Procedure
...
You have to specify the address of the TREX name server in the SAP NetWeaver Administrator by naming the following values <host_name_of_trex_host>:<name_server_port>:
<host_name_of_trex_host>: name of the host on which TREX is installed and where the TREX name server runs. <name_server_port>: port of the TREX name server
1. You can determine the TREX name server address in two ways: a. Start the TREX admin tool (see Starting the TREX Admin Tool [Page 66]) and determine the address of the name server using Landscape Tree topology globals all_masters. For example: mytrexhost:34801
62
April 2008
b. Determine the port of the TREX name server by means of the following rule:
<name_server_port>: 3<instance_number>01
The value <instance_number> signifies the TREX instance number which had been specified during the TREX installation: Installation directory for TREX On UNIX /usr/sap/<sapsid>/trx<instance_number> On Windows
<disk_drive>:\usr\sap\<SAPSID>\TRX<instance_number>
The value for <host_name_of_trex_host> you know from the host where TREX is installed (mytrexhost). 2. Use the user <j2eeadm> to log onto the host on which the Application Server Java is running. 3. Start the SAP NetWeaver Administrator and log on to the AS Java . For more information about using and starting the SAP NetWeaver Administrator, see SAP NetWeaver Administrator documentation on SAP Help Portal help.sap.com. 4. Navigate to Configuration Management Infrastructure Management Java System Properties. 5. In the new screen go to the tabulator Services in the screen area Details and type in trex.service to filter the available services. 6. In the Extended Details area under the tabulator Properties enter the address of the TREX name server into the parameter nameserver.address:
tcpip://<host_name_of_trex_host>:<name_server_port>
You enter only the host name or the host name and the domain depending on your network environment.
tcpip://mytrexhost:34801 or tcpip://mytrexhost.mydomain:34801
The address of the TREX name server must be configured for all server processes of the cluster. Otherwise the connection between the AS Java and TREX cannot be established. 7. In case of a multiple host scenario for a distributed TREX landscape you enter the addresses of the TREX backup name servers in the parameter nameserver.backuplist. Specify the address of the TREX backup name servers, separated by comma in the format: tcpip://<host1>:<port1>,tcpip://<host1>:<port1>,
For a TREX single-host installation you do not need to specify backup name servers. 8. Save your changes and confirm the restart of the service.
63
April 2008
Installation Check
Purpose
If you have carried out all the steps described, TREX is ready for operation. You can carry out checks to ascertain whether the installation was successful.
Checking Processes
Use
You can check on operating systems whether the TREX daemon is running and whether the required process has started.
Procedure
On UNIX
...
Log on with the user <sapsid>adm. Use ps fu <sapsid>adm, to check whether the following processes are running. If TREX had been successfully installed, you can use the command TREX info to display all currently running TREX processes. Process httpd TREXDaemon.x HTTP Connection ! ! ! RFC Connection
For the process TREXDaemon.x the symlink trx.sap<SAPSID> _TRX<instance_number> will be shown. This is a symlink to usr/sap/<SAPSID>/TRX<instance_number>/exe/TR EXDaemon.x TREXIndexServer.x TREXNameServer.x TREXPreprocessor.x TREXQueueServer.x TREXRfcServer.x ! ! ! ! ! ! ! ! !
On Windows Open the Task Manager and check whether the following programs are running: Process HTTP Connection RFC Connection
64
April 2008
! ! ! ! !
! ! ! ! ! !
Procedure on UNIX
...
3. Set the environment variables required by TREX by executing one of the following scripts. Bourne shell sh, Bourne-again shell bash, Korn shell ksh:
. TREXSettings.sh
C shell csh:
source TREXSettings.csh
Procedure on Windows
...
3. Set the environment variables required by TREX by executing the following script:
TREXSettings.bat
65
April 2008
Result
The script carries out the following tests: Deleting any test indexes that were generated for a previous script run Creating a test index Indexing documents Testing search functions Exact, error-tolerant (fuzzy), and linguistic searches Search using Boolean operators such as AND and OR
The results are displayed at the end of the script run. You see the tested calls and their statuses (OK or Failed). When you run the script for the first time, the call Delete Index has the status Failed. This is because there was no existing text index to be deleted. If this is the only cell with the status Failed, the test was successful.
Additional Information
Purpose
The sections below contain information on the following topics: Starting the TREX admin tool Controlling the installation from a remote computer Starting and stopping TREX Uninstalling TREX
Procedure
...
1. Log on with the user <sapsid>adm. 2. Carry out one of the following steps: Operating system Procedure
66
April 2008
UNIX
Windows
Prerequisites
You have done the step Preparing the System for SAPinst GUI [Page 28].
1. Log on as a member of the local administrators group. 2. Insert the SAP Installation Master DVD into your DVD drive. 3. To change to the relevant directory, enter the following command: cd <DVD drive>:\IM_WINDOWS<platform> 4. Start SAPinst GUI in one of the following ways: If SAPinst GUI runs on the same host as SAPinst and the GUI server, enter the following command: startinstgui.bat SAPinst GUI uses the local host as default. If SAPinst and the GUI server runs on a different host from SAPinst GUI (remote installation), enter the following command: startinstgui.bat -host <host_name> <host_name> is the host name of the installation host.
If you enter the command without additional parameters, SAPinst GUI uses the local host as default. SAPinst GUI starts and tries to connect to the GUI server and SAPinst. As SAPinst and the GUI server are running on another host, SAPinst GUI cannot connect and the SAP Installation GUI Connection dialog appears.
67
April 2008
In this case, enter the name of the host on which SAPinst is running and choose Log on. The first dialog of the installation appears and you can perform the remote installation from your local host. For a list of options to start SAPinst GUI, change to the same directory as your SAPinst executable and enter the command startinstgui.bat -h.
1. Log on as user root. Make sure that the root user has not set any environment variables for a different SAP system or database. 2. Mount your installation DVD. Mount the DVD locally. We do not recommend that you use Network File System (NFS). 3. To change to the mount directory, enter the following command:
cd <Installation_Master_DVD>/IM_<OS>
4. Start the SAPinst GUI in one of the following ways: If SAPinst GUI runs on the same host as SAPinst and the GUI server, enter the following command without additional parameters: ./startInstGui.sh SAPinst GUI uses as default the local host. If SAPinst and the GUI server run on a different host from SAPinst GUI (remote installation), enter the following command with additional parameters:
./startInstGui.sh -host <host_name>
If you enter the command without additional parameters, SAPinst GUI uses the local host as default. SAPinst GUI starts and tries to connect to the GUI server and SAPinst. As SAPinst and GUI server are running on another host, SAPinst GUI cannot connect and the SAP Installation GUI Connection dialog appears. In this case, enter the name of host on which SAPinst is running and choose Log on. The first dialog of the installation appears and you can perform the remote installation from your local host. For a list of options to start SAPinst GUI, change to the same directory as your SAPinst executable and enter the command ./startInstGui.sh -h.
68
April 2008
Prerequisites
You have worked through the tasks in Preparing the System for SAPinst GUI [Page 28]. Both computers are in the same network and can ping each other. To test this: Log on to your remote host and enter the command ping <local host>. Log on to the local host and enter the command ping <remote host>.
1. Log on to your remote host as a user who is a member of the local administrators group. 2. Insert the Installation Master DVD in the DVD drive on your remote host. 3. Enter the following commands:
cd <DVD drive>:\IM_WINDOWS_<platform> sapinst.exe nogui
SAPinst now starts and waits for the connection to the SAPinst GUI. You see the following at the command prompt:
guiengine: no GUI connected; waiting for a connection on host <host_name>, port <port_number> to continue with the installation
4. You can now start the SAPinst GUI on your local host, as described in Starting SAPinst GUI Separately [Page 67].
Make sure that the root user has not set any environment variables for a different SAP system or database. 2. Mount the Installation Master DVD. 3. Enter the following commands:
cd <Installation_Master_DVD>/IM_<OS> ./sapinst nogui
SAPinst now starts and waits for the connection to the SAPinst GUI. You see the following at the command prompt:
guiengine: no GUI connected; waiting for a connection on host <host_name>, port <port_number> to continue with the installation.
4. Start SAPinst GUI on your local host, as described in Starting SAPinst GUI Separately [Page 67].
...
69
April 2008
The executable files startsap.exe and stopsap.exe The SAP Management Console As of TREX 7.10, the SAP Management Console is a snap-in in the Microsoft Management Console (MMC) and is no longer part of the TREX installation. To start TREX with the SAP Management Console, you must have installed the console in your TREX system first.
UNIX TREX admin tool (standalone) The shell scripts startsap and stopsap
Starting and Stopping the TREX Web Server and Individual TREX Servers
When administrating TREX, you may need to stop (and then restart) the TREX Web server (Windows: IIS/UNIX: Apache) and individual TREX servers. The procedures differ depending on whether you are using Windows or UNIX.
70
April 2008
A newly-installed MMC allows you only to start a locally-installed SAP instance on the host that you are logged on to. If the MMC is configured for central system administration, you can start and stop the entire SAP system from a single host. For more information about the SAP Management console and the snap-in for the MMC, see the online application help and the SAP Library in the SAP Help Portal at help.sap.com SAP NetWeaver .Solution Lifecycle Management Solution Monitoring Monitoring in CCMS Microsoft Management Console As part of the installation of the global file system, the SAP service for the corresponding TREX instance (SAP<sapsid>_TRX<instance_number>) is registered as a Windows service. The service is configured so that it starts automatically when the host is started up, and stops automatically when the host is shut down. You can start and stop the service manually if necessary. You can also start the TREX servers individually for test purposes or troubleshooting.
Prerequisites
During the installation of the global file system, a SAP Management console has been installed on your host machine.
Starting TREX
Starting TREX with the TREX Admin Tool
...
1. Log on with the user <sapsid>adm. 2. Start the TREX admin tool by double-clicking <TREX_DIR>\TREXAdmin.bat in Windows Explorer. 3. In the TREX admin tool, navigate to the Landscape Services area and then go to the MMC tab. 4. You can start TREX by clicking the SAP System: Start button or by selecting the TREX host, opening its context menu with the secondary mouse button, and selecting the relevant option. You can start Selected Hosts or All Hosts for a landscape.
1. Log on with the user <sapsid>adm. 2. In Windows Explorer, double-click the <TREX_DIR>/TREXSettings.bat batch file to set the environment variables correctly. 3. Go to the <TREX_DIR>/exe directory and enter the following: startsap.exe name=<SAPSID> nr=TRX<instance_number> SAPDIAHOST =<host> In the SAPDIAHOST parameter, you specify the host name on which the TREX instance should be started.
71
April 2008
2. Launch the SAP Management console by double-clicking the program icon on your desktop or by choosing Start Programs SAP Management Console. 3. In the tree structure, choose the node for the central SAP instance <SAPSID> and navigate to the subnode for the TREX instance <host>_<instance_number> (for example, p123456_77). 4. Use the secondary mouse button to access the context menu. 5. Choose Start.
Stopping TREX
Stopping TREX with the TREX Admin Tool
...
1. Log on with the user <sapsid>adm. 2. Start the TREX admin tool by double-clicking <TREX_DIR>\TREXAdmin.bat in Windows Explorer. 3. In the TREX admin tool, navigate to the Landscape Services area and then go to the MMC tab. 4. You can stop TREX by clicking the SAP System: Stop button or by selecting the TREX host, opening its context menu with the secondary mouse button, and selecting the relevant option. You can stop Selected Hosts or All Hosts for a landscape.
1. Log on with the user <sapsid>adm. 2. In Windows Explorer, double-click the <TREX_DIR>/TREXSettings.bat batch file to set the environment variables correctly. 3. Go to the <TREX_DIR>/exe directory and enter the following: stopsap.exe name=<SAPSID> nr=TRX<instance_number> SAPDIAHOST =<host> In the SAPDIAHOST parameter, you specify the host name on which the TREX instance is to be stopped.
Do not use the Task Manager to stop the SAP service or the individual TREX servers. Otherwise, data can be lost. Affected indexes can be irreparably damaged. Certain processing steps, for example, writing an index, cannot be interrupted. Such steps are completed before TREX is stopped. This process can take a while to complete. With large indexes, it can take up to a few hours to stop the TREX servers if lots of documents are currently being indexed.
72
April 2008
2. Launch the SAP Management console by double-clicking the program icon on your desktop or by choosing Start Programs SAP Management Console. 3. In the tree structure, choose the node for the central SAP instance <SAPSID> and navigate to the subnode for the TREX instance <host>_<instance_number> (for example, p123456_77). 4. Use the secondary mouse button to access the context menu. 5. Choose Shutdown. The Shutdown command only stops the TREX processes once any running processes have been completed. Do not use the Stop command, as this command terminates the TREX processes immediately, which means that there is a risk of data loss.
1. Stop TREX (see Stopping TREX [Page 72]). 2. Open a separate prompt for each TREX server. 3. Go to the TREX directory and start the TREX server. TREX Server Index server Name server Preprocessor Queue server Only relevant for an RFC connection: RFC server Command
TREXIndexServer.exe TREXNameServer.exe TREXPreprocessor.exe TREXQueueServer.exe TREXRfcServer.exe -r
In the properties of the prompt, deactivate the QuickEdit Mode option. Leave the prompt open. If you want, you can minimize the window so that it is shown as a pushbutton in the Windows task bar.
1. Display the window in which you started the TREX server. 2. Use CTRL + C or close the window. Certain processing steps, for example, writing an index, cannot be interrupted. Such steps are completed before the TREX servers are stopped. This process can take a while to complete. With large indexes, it can take up to a few hours to stop the TREX servers if lots of documents are currently being indexed.
73
April 2008
Do not use the Task Manager to stop the TREX servers. Otherwise, data can be lost. Affected indexes can be irreparably damaged.
1. For Windows Server 2003, choose Start Administrative Tools Services. 2. Select IIS Admin Service and choose Start from the context menu. If the World Wide Web Publishing Service does not run even though you have started it, try to start it using a prompt:
...
Starting TREX
Starting TREX with the TREX Admin Tool
On UNIX: Since the TREX admin tool has a graphical interface, you need an X server. You cannot use a terminal program that only supports text mode, such as telnet.
...
74
Search and Classification TREX 1. Log on with the user <sapsid>adm. 2. Start the TREX admin tool by entering the following:
cd <TREX_DIR> ./TREXAdmin.sh
April 2008
3. In the TREX admin tool, navigate to the Landscape Services area and then go to the MMC tab. 4. You can start TREX by clicking the SAP System: Start button or by selecting the TREX host, opening its context menu with the secondary mouse button, and selecting the relevant option. You can start Selected Hosts or All Hosts for a landscape.
1. Log on locally to the host on which the TREX instance is installed with the user <sapsid>adm. 2. Execute the startsap script in any directory: a. To start a single TREX instance, enter the following: startsap TRX<instance_number> In the parameter TRX<instance_number>, you specify which TREX instance is to be started. b. To start all SAP instances including all TREX instances on a host, enter the following: startsap
Stopping TREX
Stopping TREX with the TREX Admin Tool
On UNIX: Since the TREX admin tool has a graphical interface, you need an X server. You cannot use a terminal program that only supports text mode, such as telnet.
...
1. Log on with the user <sapsid>adm. 2. Start the TREX admin tool by entering the following:
cd <TREX_DIR> ./TREXAdmin.sh
3. In the TREX admin tool, navigate to the Landscape Services area and then go to the MMC tab. 4. You can stop TREX by clicking the SAP System: Stop button or by selecting the TREX host, opening its context menu with the secondary mouse button, and selecting the relevant option. You can stop Selected Hosts or All Hosts for a landscape.
1. Log on locally to the host on which the TREX instance is installed with the user <sapsid>adm. 2. Execute the stopsap script in any directory: a. To start a single TREX instance, enter the following:
75
April 2008
In the parameter TRX<instance_number>, you specify which TREX instance is to be stopped. b. To stop all SAP instances including all TREX instances on a host, enter the following: stopsap
1. Log on with the user <sapsid>adm. 2. Stop TREX (see Stopping TREX [Page 75]). 3. Go to the TREX directory. 4. Start each TREX server in a separate shell. TREX Server Index server Name server Preprocessor Queue server Only relevant for an RFC connection: RFC server Command
TREXIndexServer.x TREXNameServer.x TREXPreprocessor.x TREXQueueServer.x TREXRfcServer.x -r
1. Display the window in which you started the TREX server. 2. Use CTRL + C or close the window. Certain processing steps, for example, writing an index, cannot be interrupted. Such steps are completed before the TREX servers are stopped. This process can take a while to complete. With large indexes, it can take up to a few hours to stop the TREX servers if lots of documents are currently being indexed. Do not stop the TREX server using kill 9, as this can lead to data loss. Affected indexes can be irreparably damaged.
76
April 2008
Information on SAPinst
Purpose
The following sections contain information on solving errors that affect SAPinst.
Troubleshooting SAPinst
Use
This section tells you how to proceed when errors occur during the installation with SAPinst. If an error occurs, SAPinst:
...
1. Stops the installation. 2. Displays a dialog informing you about the error.
Procedure
...
1. To view the log file, choose View Logs. 2. If an error occurs during the dialog or processing phase, do either of the following: Try to solve the problem.
77
April 2008
Abort the installation with Exit. For more information, see Interrupted Installation with SAPInst [Page 78]. Continue the installation by choosing Retry.
Windows: Check the log and trace files of the GUI server and SAPinst GUI in the directory %userprofile%\.sdtgui\ for errors. UNIX: Check the log and trace files of the GUI server and SAPinst GUI in the directory <user_home>/.sdtgui/ for errors.
Option Retry
UNIX only: You can also terminate SAPinst by choosing Ctrl+C. However, we do not recommend that you use Ctrl+C, because this kills the process immediately.
Prerequisites
You solved the problem that caused the error situation.
Procedure on UNIX
...
78
Search and Classification TREX 1. Log on to the installation host as root. 2. Mount the DVD with the installation files.
April 2008
Mount the DVD locally. We do not recommend using Network File System (NFS). 3. Enter the following commands:
cd <Installation_Master_DVD>/IM_<OS> ./sapinst
4. From the tree structure in the Welcome screen, select the installation service that you want to continue and choose Next. If there is only one component to install, the Welcome screen does not appear. The What do you want to do? screen appears. 5. In the What do you want to do? screen, decide between the following alternatives and choose OK. Alternative Run a new Installation Behavior The interrupted installation is not continued. Instead, SAPinst moves the content of the old installation directory and all installation-specific files to the backup directory. Afterwards, you can no longer continue the old installation. For the backup directory, the following naming convention is used: <log_day_month_year_hours_minutes_seconds> (for example, log_01_Oct_2003_13_47_56). Continue old installation
...
The installation that was interrupted is continued from the point of failure.
Procedure on Windows
...
1. Log on to your remote host as a user who is a member of the local administrators group. 2. Insert the Installation Master DVD in your DVD drive. 3. Enter the following commands:
cd <DVD_DRIVE>:\IM_WINDOWS<platform> sapinst.exe
4. From the tree structure in the Welcome screen, select the installation service that you want to continue and choose Next. If there is only one component to install, the Welcome screen does not appear. The What do you want to do? screen appears. 5. In the What do you want to do? screen, decide between the following alternatives and choose OK. Alternative Behavior
79
April 2008
The interrupted installation is not continued. Instead, SAPinst moves the content of the old installation directory and all installation-specific files to the backup directory. Afterwards, you can no longer continue the old installation. For the backup directory, the following naming convention is used: <log_day_month_year_hours_minutes_seconds> (for example, log_01_Oct_2003_13_47_56).
The installation that was interrupted is continued from the point of failure.
80