Sap Netweaver Standalone Engine Search and Classification Trex 7.10 Single Host
Sap Netweaver Standalone Engine Search and Classification Trex 7.10 Single Host
SAP NetWeaver
Standalone Engine
Search and
Classification
TREX 7.10
Single Host
Target Audience
System administrators
Technology consultans
Document Version 2.0 – April 01, 2017
© 2015 SAP SE or an SAP affiliate company. 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 SE or an SAP affiliate
company.
SAP and other SAP products and services mentioned
herein as well as their respective logos are trademarks or
registered trademarks of SAP SE (or an SAP affiliate
company) in Germany and other countries. All other
product and service names mentioned are the trademarks of
their respective companies. Please see
http://www.sap.com/corporate-
en/legal/copyright/index.epx#trademark for additional
trademark information and notices.
Terms for Included Open means Source Code Form to which the initial
Contributor has attached the notice in Exhibit A,
Source Software the Executable Form of such Source Code Form,
This document contains information respecting free and open- and Modifications of such Source Code Form, in
source software (collectively, “FOSS”) included in or provided each case including portions thereof.
with the product (“Product”) that this document accompanies. 5. “Incompatible With Secondary Licenses”
Any terms, conditions, and restrictions governing the use or means
distribution of FOSS that are offered or imposed by SAP and are 1. that the initial Contributor has attached the
not contained within the FOSS license(s) governing the use and notice described in Exhibit B to the Covered
distribution of the FOSS, are offered and imposed by SAP alone. Software; or
The authors, licensors, and distributors of the FOSS have 2. that the Covered Software was made
disclaimed all warranties relating to any liability arising from the available under the terms of version 1.1 or earlier
use and distribution of the FOSS. of the License, but not also under the terms of a
While SAP has sought to provide a complete and accurate listing Secondary License.
of the FOSS components included in or provided with the 6. “Executable Form” means any form of the
Product, SAP does not represent or warrant that the listing of work other than Source Code Form.
FOSS components and associated notices and licensing 7. “Larger Work”
information provided herein are complete or error-free. Recipients means a work that combines Covered Software
of the Product should investigate the listed FOSS components to with other material, in a separate file or files, that
confirm the accuracy of the notices and licensing information is not Covered Software.
provided herein. Recipients are encouraged to notify SAP of any 8. “License”
inaccurate information or errors found in this document. means this document.
If you have any questions or concerns please contact SAP by 9. “Licensable”
email at opensource@sap.com or via mail at Dietmar Hopp Allee means having the right to grant, to the maximum
16, 69190 Walldorf, Germany, Attn: Global Legal. extent possible, whether at the time of the initial
Mozilla SpiderMonkey grant or subsequently, any and all of the rights
Licensor: Mozilla Developer Network and individual conveyed by this License.
contributorsWebsite: developer.mozilla.org/en- 10. “Modifications”
US/docs/Mozilla/Projects/SpiderMonkeyLicense: Mozilla Public means any of the following:
License version 2.0 1. any file in Source Code Form that results
from an addition to, deletion from, or
Component: Mozilla SpiderMonkey modification of the contents of Covered
Licensor: Mozilla Developer Network and individual contributors Software; or
Website: https://developer.mozilla.org/en- 2. any new file in Source Code Form that
US/docs/Mozilla/Projects/SpiderMonkey contains any Covered Software.
License: Mozilla Public License version 2.0 11. “Patent Claims” of a Contributor
means any patent claim(s), including without
1. Definitions limitation, method, process, and apparatus
1. “Contributor” claims, in any patent Licensable by such
means each individual or legal entity that creates, contributes to Contributor that would be infringed, but for the
the creation of, or owns Covered Software. grant of the License, by the making, using,
2. “Contributor Version” selling, offering for sale, having made, import, or
means the combination of the Contributions of others (if any) transfer of either its Contributions or its
used by a Contributor and that particular Contributor’s Contributor Version.
Contribution. 12. “Secondary License”
3. “Contribution” means either the GNU General Public License,
means Covered Software of a particular Contributor. Version 2.0, the GNU Lesser General Public
4. “Covered Software” License, Version 2.1, the GNU Affero General
Public License, Version 3.0, or any later versions of those No Contributor makes additional grants as a
licenses. result of Your choice to distribute the Covered
13. “Source Code Form” Software under a subsequent version of this
means the form of the work preferred for making modifications. License (see Section 10.2) or under the terms of
14. “You” (or “Your”) a Secondary License (if permitted under the
means an individual or a legal entity exercising rights under this terms of Section 3.3).
License. For legal entities, “You” includes any entity that 5. Representation
controls, is controlled by, or is under common control with You. Each Contributor represents that the Contributor
For purposes of this definition, “control” means (a) the power, believes its Contributions are its original
direct or indirect, to cause the direction or management of such creation(s) or it has sufficient rights to grant the
entity, whether by contract or otherwise, or (b) ownership of more rights to its Contributions conveyed by this
than fifty percent (50%) of the outstanding shares or beneficial License.
ownership of such entity. 6. Fair Use
2. License Grants and Conditions This License is not intended to limit any rights
1. Grants You have under applicable copyright doctrines of
Each Contributor hereby grants You a world-wide, royalty-free, fair use, fair dealing, or other equivalents.
non-exclusive license: 7. Conditions
1. under intellectual property rights (other than patent or Sections 3.1, 3.2, 3.3, and 3.4 are conditions of
trademark) Licensable by such Contributor to use, reproduce, the licenses granted in Section 2.1.
make available, modify, display, perform, distribute, and 3. Responsibilities
otherwise exploit its Contributions, either on an unmodified basis, 1. Distribution of Source Form
with Modifications, or as part of a Larger Work; and All distribution of Covered Software in Source
2. under Patent Claims of such Contributor to make, use, sell, Code Form, including any Modifications that
offer for sale, have made, import, and otherwise transfer either its You create or to which You contribute, must be
Contributions or its Contributor Version. under the terms of this License. You must inform
2. Effective Date recipients that the Source Code Form of the
The licenses granted in Section 2.1 with respect to any Covered Software is governed by the terms of
Contribution become effective for each Contribution on the date this License, and how they can obtain a copy of
the Contributor first distributes such Contribution. this License. You may not attempt to alter or
3. Limitations on Grant Scope restrict the recipients’ rights in the Source Code
The licenses granted in this Section 2 are the only rights granted Form.
under this License. No additional rights or licenses will be 2. Distribution of Executable Form
implied from the distribution or licensing of Covered Software If You distribute Covered Software in
under this License. Notwithstanding Section 2.1(b) above, no Executable Form then:
patent license is granted by a Contributor: 1. such Covered Software must also be made
1. for any code that a Contributor has removed from Covered available in Source Code Form, as described in
Software; or Section 3.1, and You must inform recipients of
2. for infringements caused by: (i) Your and any other third the Executable Form how they can obtain a copy
party’s modifications of Covered Software, or (ii) the of such Source Code Form by reasonable means
combination of its Contributions with other software (except as in a timely manner, at a charge no more than the
part of its Contributor Version); or cost of distribution to the recipient; and
3. under Patent Claims infringed by Covered Software in the 2. You may distribute such Executable Form
absence of its Contributions. under the terms of this License, or sublicense it
This License does not grant any rights in the trademarks, service under different terms, provided that the license
marks, or logos of any Contributor (except as may be necessary to for the Executable Form does not attempt to limit
comply with the notice requirements in Section 3.4). or alter the recipients’ rights in the Source Code
4. Subsequent Licenses Form under this License.
3. Distribution of a Larger Work
You may create and distribute a Larger Work under terms of Your such Contributor fails to notify You of the non-
choice, provided that You also comply with the requirements of compliance by some reasonable means prior to
this License for the Covered Software. If the Larger Work is a 60 days after You have come back into
combination of Covered Software with a work governed by one compliance. Moreover, Your grants from a
or more Secondary Licenses, and the Covered Software is not particular Contributor are reinstated on an
Incompatible With Secondary Licenses, this License permits You ongoing basis if such Contributor notifies You of
to additionally distribute such Covered Software under the terms the non-compliance by some reasonable means,
of such Secondary License(s), so that the recipient of the Larger this is the first time You have received notice of
Work may, at their option, further distribute the Covered Software non-compliance with this License from such
under the terms of either this License or such Secondary Contributor, and You become compliant prior to
License(s). 30 days after Your receipt of the notice.
4. Notices 2. If You initiate litigation against any entity
You may not remove or alter the substance of any license notices by asserting a patent infringement claim
(including copyright notices, patent notices, disclaimers of (excluding declaratory judgment actions,
warranty, or limitations of liability) contained within the Source counter-claims, and cross-claims) alleging that a
Code Form of the Covered Software, except that You may alter Contributor Version directly or indirectly
any license notices to the extent required to remedy known factual infringes any patent, then the rights granted to
inaccuracies. You by any and all Contributors for the Covered
5. Application of Additional Terms Software under Section 2.1 of this License shall
You may choose to offer, and to charge a fee for, warranty, terminate.
support, indemnity or liability obligations to one or more 3. In the event of termination under Sections
recipients of Covered Software. However, You may do so only on 5.1 or 5.2 above, all end user license agreements
Your own behalf, and not on behalf of any Contributor. You must (excluding distributors and resellers) which have
make it absolutely clear that any such warranty, support, been validly granted by You or Your distributors
indemnity, or liability obligation is offered by You alone, and under this License prior to termination shall
You hereby agree to indemnify every Contributor for any liability survive termination.
incurred by such Contributor as a result of warranty, support, 6. Disclaimer of Warranty
indemnity or liability terms You offer. You may include Covered Software is provided under this License
additional disclaimers of warranty and limitations of liability on an “as is” basis, without warranty of any kind,
specific to any jurisdiction. either expressed, implied, or statutory, including,
4. Inability to Comply Due to Statute or Regulation without limitation, warranties that the Covered
If it is impossible for You to comply with any of the terms of this Software is free of defects, merchantable, fit for
License with respect to some or all of the Covered Software due a particular purpose or non-infringing. The entire
to statute, judicial order, or regulation then You must: (a) comply risk as to the quality and performance of the
with the terms of this License to the maximum extent possible; Covered Software is with You. Should any
and (b) describe the limitations and the code they affect. Such Covered Software prove defective in any respect,
description must be placed in a text file included with all You (not any Contributor) assume the cost of any
distributions of the Covered Software under this License. Except necessary servicing, repair, or correction. This
to the extent prohibited by statute or regulation, such description disclaimer of warranty constitutes an essential
must be sufficiently detailed for a recipient of ordinary skill to be part of this License. No use of any Covered
able to understand it. Software is authorized under this License except
5. Termination under this disclaimer.
1. The rights granted under this License will terminate 7. Limitation of Liability
automatically if You fail to comply with any of its terms. Under no circumstances and under no legal
However, if You become compliant, then the rights granted under theory, whether tort (including negligence),
this License from a particular Contributor are reinstated (a) contract, or otherwise, shall any Contributor, or
provisionally, unless and until such Contributor explicitly and anyone who distributes Covered Software as
finally terminates Your grants, and (b) on an ongoing basis, if permitted above, be liable to You for any direct,
indirect, special, incidental, or consequential damages of any version of the License, the notice described in
character including, without limitation, damages for lost profits, Exhibit B of this License must be attached.
loss of goodwill, work stoppage, computer failure or malfunction, Exhibit A - Source Code Form License Notice
or any and all other commercial damages or losses, even if such This Source Code Form is subject to the terms of
party shall have been informed of the possibility of such damages. the Mozilla Public License, v. 2.0. If a copy of
This limitation of liability shall not apply to liability for death or the MPL was not distributed with this file, You
personal injury resulting from such party’s negligence to the can obtain one at http://mozilla.org/MPL/2.0/.
extent applicable law prohibits such limitation. Some jurisdictions If it is not possible or desirable to put the notice
do not allow the exclusion or limitation of incidental or in a particular file, then You may include the
consequential damages, so this exclusion and limitation may not notice in a location (such as a LICENSE file in a
apply to You. relevant directory) where a recipient would be
8. Litigation likely to look for such a notice.
Any litigation relating to this License may be brought only in the You may add additional accurate notices of
courts of a jurisdiction where the defendant maintains its principal copyright ownership.
place of business and such litigation shall be governed by laws of Exhibit B - “Incompatible With Secondary
that jurisdiction, without reference to its conflict-of-law Licenses” Notice
provisions. Nothing in this Section shall prevent a party’s ability This Source Code Form is “Incompatible With
to bring cross-claims or counter-claims. Secondary Licenses”, as defined by the Mozilla
9. Miscellaneous Public License, v. 2.0.
This License represents the complete agreement concerning the Component: zlib
subject matter hereof. If any provision of this License is held to be Licensor: Jean-loup Gailly and Mark Adler
unenforceable, such provision shall be reformed only to the extent
necessary to make it enforceable. Any law or regulation which Website: http://www.zlib.net/
provides that the language of a contract shall be construed against License: Copyright (C) 1995-2013 Jean-loup
the drafter shall not be used to construe this License against a Gailly and Mark Adler
Contributor.
10. Versions of the License zlib.h -- interface of the 'zlib' general purpose
1. New Versions compression library version 1.2.8, April 28th,
Mozilla Foundation is the license steward. Except as provided in 2013
Section 10.3, no one other than the license steward has the right to
modify or publish new versions of this License. Each version will Copyright (C) 1995-2013 Jean-loup Gailly and
be given a distinguishing version number. Mark Adler
2. Effect of New Versions
You may distribute the Covered Software under the terms of the This software is provided 'as-is', without any
version of the License under which You originally received the express or implied warranty. In no event will the
Covered Software, or under the terms of any subsequent version authors be held liable for any damages arising
published by the license steward. from the use of this software.
3. Modified Versions
If you create software not governed by this License, and you want Permission is granted to anyone to use this
to create a new license for such software, you may create and use software for any purpose, including commercial
a modified version of this License if you rename the license and applications, and to alter it and redistribute it
remove any references to the name of the license steward (except freely, subject to the following restrictions:
to note that such modified license differs from this License). 1. The origin of this software must not be
4. Distributing Source Code Form that is Incompatible With misrepresented; you must not claim that you
Secondary Licenses wrote the original software. If you use this
If You choose to distribute Source Code Form that is software in a product, an acknowledgment in the
Incompatible With Secondary Licenses under the terms of this product documentation would be appreciated but
is not required.
2. Altered source versions must be plainly marked as such, and makes no representations about the suitability of
must not be misrepresented as being the original software. this software for any purpose. It is provided "as
3. This notice may not be removed or altered from any source is" without express or implied warranty.
distribution. Permission to use, copy, modify, distribute and
sell this software and its documentation for any
Jean-loup Gailly Mark Adler purpose is hereby granted without fee, provided
jloup@gzip.org madler@alumni.caltech.edu that the above copyright notice appear in all
copies and that both that copyright notice and
Component: STLPort this permission notice appear in supporting
Licensor: Boris Fomitchev documentation. Silicon Graphics makes no
WebSite: http://www.stlport.org/ representations about the suitability of this
License Agreement software for any purpose. It is provided "as is"
Boris Fomitchev grants Licensee a non-exclusive, non- without express or implied warranty.
transferable, royalty-free license to use STLportand its Permission to use, copy, modify, distribute and
documentation without fee. sell this software and its documentation for any
By downloading, using, or copying STLport or any portion purpose is hereby granted without fee, provided
thereof, Licensee agrees to abide by the intellectual property laws that the above copyright notice appear in all
and all other applicable laws of the United States of America, and copies and that both that copyright notice and
to all of the terms and conditions of this Agreement. this permission notice appear in supporting
Licensee shall maintain the following copyright and permission documentation. Moscow Center for SPARC
notices on STLport sources and its documentation unchanged : Technology makes no representations about the
Copyright 1999,2000 Boris Fomitchev suitability of this software for any purpose. It is
This material is provided "as is", with absolutely no warranty provided "as is" without express or implied
expressed or implied. Any use is at your own risk. warranty.
Permission to use or copy this software for any purpose is hereby
granted without fee, provided the above notices are retained on all Flexler 1.18
copies. Permission to modify the code and to distribute modified Copyright (c) 1993 The Regents of the
code is granted, provided the above notices are retained, and a University of California.
notice that the code was modified is included with the above All rights reserved.
copyright notice. This code is derived from software contributed to
The Licensee may distribute binaries compiled with STLport Berkeley by Kent Williams and Tom Epperly.
(whether original or modified) without any royalties or Redistribution and use in source and binary
restrictions. forms are permitted provided that: (1) source
The Licensee may distribute original or modified STLport distributions retain this entire copyright notice
sources, provided that: and comment, and (2) distributions including
• The conditions indicated in the above permission notice are binaries display the following acknowledgement:
met; ``This product includes software developed by
• The following copyright notices are retained when present, the University of California, Berkeley and its
and conditions provided in accompanying permission notices are contributors'' in the documentation or other
met : materials provided with the distribution and in all
Copyright 1994 Hewlett-Packard Company advertising materials mentioning features or use
Copyright 1996,97 Silicon Graphics Computer Systems, Inc. of this software. Neither the name of the
Copyright 1997 Moscow Center for SPARC Technology. University nor the names of its contributors may
Permission to use, copy, modify, distribute and sell this software be used to endorse or promote products derived
and its documentation for any purpose is hereby granted without from this software without specific prior written
fee, provided that the above copyright notice appear in all copies permission.
and that both that copyright notice and this permission notice
appear in supporting documentation. Hewlett-Packard Company
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT
ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE
IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.
Typographic Conventions Icons
● The section Implementation Considerations [Page 4] explains what you need to take
into account before the installation.
● The section Naming Conventions [Page 10] contains information on special naming
conventions used in this guide.
● The section Checklists for the Installation [Page 11] contains a separate checklist for
each installation variant, including an overview of the installation steps.
● The section Installation Preparations [Page 21] describes what to do before the
installation, especially how to download the TREX software package from SAP Service
Marketplace.
● The section Installation and Update [Page 28] describes the necessary TREX
installation and update steps, installation screens, and input parameters.
● The section TREX Basic Configuration [Page 34] describes the configuration steps you
have to perform after the TREX installation.
● The section Installation Check [Page 51] describes how to check whether the
installation of the server software was successful.
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.
● ABAP applications communicate with TREX servers using the RFC protocol.
Communication takes place using an instance of the SAP Gateway and an RFC
server.
For more information, see Connecting TREX with an ABAP Application (RFC
Connection) [Page 44].
● Java applications communicate with TREX using the HTTP or HTTPS protocol. This
communication takes place using a Web server that is enhanced with TREX-specific
functions.
For more information, see Connecting TREX with a Java Application (HTTP
Connection) [Page 49].
RFC and Web servers have similar functions: They receive the requests of the application,
convert them to a TREX-internal format, and send them on to the responsible TREX server.
The graphic below depicts the interaction between applications and TREX.
ABAP Java
application application
SES
Search Engine
Service
RFC Web
server server
Application
TREX server TREX components
Other components
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.
● 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.
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.
For more information about the BI accelerator, see the following SAP notes:
<TREX_DIR> Data
Master NS
index
exe
2nd Master NS
/TRX<hostname_blade1> Programs
/TRX<hostname_blade2>
Slave NS
/TRX<hostname_blade3>
Cloned
/TRX<hostname_blade4> Configuration
Master IS
Files
...
For a production system, SAP recommends that you install the server software
on a single host that is used exclusively for TREX.
If TREX is running on the same host as other components, you must make sure
of the following:
Sizing
The required hardware for the server software depends on the following factors:
● 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,Software and Network Requirements [Page 17] as a basis
for this.
● Load balancing
You can distribute the search and indexing load among several hosts.
● High availability
You can make sure that both indexing and searching are highly available.
Your TREX system can quickly reach its performance limit if you install TREX on
a single server in a productive scenario with large document sets and a large
number of search queries. SAP therefore recommends that you calculate the
expected load and availability requirements for your TREX system early on in
the planning process and start with a distributed TREX installation immediately if
that is what you require.
In a distributed scenario, the same TREX version and patch level must run on all
TREX hosts. Mixed installations with different TREX versions are not supported.
● Java client
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 49].
Naming Conventions
The following naming conventions are valid for this documentation:
Terminology
Term Meaning
TREX host Host on which the TREX server software is installed
TREX instance One installation of the TREX server software
software provisioning A tool that performs software provisioning processes such as
manager 1.0 installation, uninstallation, system copy, or system transformation.
Software Provisioning Manager is delivered with the Software
(“the installer” for short)
Logistics Toolset 1.0, available at:
service.sap.com/sltoolset Software Logistics Toolset
1.0
Variables
Variable Meaning
<SAPSID> System ID in uppercase letters
<sapsid> System ID in lowercase letters
<TREX_DIR> 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> SAP system directory:
● On UNIX /<sapmnt>/<sapsid>/SYS
● On Windows <disk_drive>:\usr\sap\<SAPSID>\SYS
<OS> Name of the operating system in a path.
User <sapsid>adm Operating system user that you log on with to administrate
TREX.
User Operating system user under which the TREX processes run.
SAPService<SAPSID>
User Operating system user that you use to log on to the host on
<j2eeadm> which the J2EE Engine is running.
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
...
○ When carrying out an obligatory step during the installation, follow the link to the
relevant section.
○ 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.
Installation Preparations
! Activity
If you want to install multiple TREX instances, read the information [Page 26] on
this.
If you want to use software provisioning manager for the installation, download
software provisioning manager [Page Error! Bookmark not defined.].
Download the TREX binaries [Page 21].
Windows: Ensure the required authorization for running the installer [Page 26].
Check whether there is sufficient disk space [Page 27] for installing the TREX
software.
Installation
! Activity
Install TREX with a Virtual Host Name [Page 31]
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 software provisioning manager 1.0.
Install TREX with software provisioning manager [Page 28] or alternatively using
shell scripts [Page 29].
Post-Installation Configuration
! Activity
Start the TREX Admin Tool [Page 35]
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 60]).
HTTP communication
Configure the TREX Web Server [Page 36]
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 37]
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 39]
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 39]
Client Side
Configuration
! Activity
Connecting TREX with a HTTP Application
Specify the Address of the TREX Name Server [Page 49]
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 38]
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 34]
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 26] on
this.
If you want to use software provisioning manager for the installation, download
software provisioning manager [Page Error! Bookmark not defined.].
Download the TREX software [Page 21].
Windows: Ensure the required authorization for running the installer [Page 26].
Check whether there is sufficient disk space [Page 27] for installing the TREX
software.
Installation
! Activity
Install TREX with a Virtual Host Name [Page 31]
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 software provisioning manager 1.0.
Install TREX with software provisioning manager [Page Error! Bookmark not
defined.] or alternatively using shell scripts [Page 29].
Post-Installation Activities
! Activity
Start the TREX Admin Tool [Page 53]
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 60]).
TREX Languages
Select Languages for TREX Language Recognition [Page 39]
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 39]
General Windows Configuration
Check Performance Settings for the Operating System (Windows) [Page 42]
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 45]
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 46]
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 47].
Wizard-Based Configuration
Wizard-Based Basic Configuration for TREX [Page 34]
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.
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 26] on
this.
If you want to use software provisioning manager for the installation, download
software provisioning manager [Page Error! Bookmark not defined.].
Download the TREX binaries [Page 21].
Windows: Ensure the required authorization for running the installer [Page 26].
Check whether there is sufficient disk space [Page 27] for installing the TREX
software.
Installation
! Activity
Install TREX with a Virtual Host Name [Page 31]
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 software provisioning manager 1.0.
Install TREX with software provisioning manager [Page Error! Bookmark not
defined.] or alternatively using shell scripts [Page 29].
Post-Installation Configuration
! Activity
Start the TREX Admin Tool [Page 53]
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
Installing and Updating TREX – Single Host 15
Search and Classification TREX April 2017
Installation Planning
Purpose
The following sections contain information that is relevant when planning the installation.
The requirements for hardware and software listed here are valid for a TREX
installation on a single host (single-server system). The requirements for a
distributed system that supports load balancing and high availability are listed in
the guide for the installation and configuration of a distributed TREX system.
You can find the Installation Guide – SAP NetWeaver TREX Multiple Hosts on
the SAP Service Marketplace at service.sap.com/instguides.
Hardware Requirements
Requirement Type Requirement
Hard disk capacity: ● Installer work directory
You require the following for the installation tool software
provisioning manager 1.0:
● TREX directory
You need the following for the TREX software:
● 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.
● 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
Network Requirements
Required Documentation
You require this installation guide and the following additional documentation for the
installation:
Security service.sap.com/security –
Installation Preparations
Purpose
The following sections describe the steps you carry out before the TREX installation.
Prerequisites
Make sure the latest version of the SAPCAR archiving tool is available on each installation
host.
You require the SAPCAR archiving tool to be able to unpack software component archives
(*.SAR files) which is the format of software life-cycle media and tools that you can download
from the SAP software distribution center.
If required, you can download the latest version of SAPCAR from:
http://service.sap.com/swdc Support Packages and Patches A – Z Index S
SAPCAR.
For more information about SAPCAR, see SAP Note 212876
Procedure
Download the TREX Software Package
...
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:
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
By the TREX 7.1 installation the global file share functionality is currently only
supported in a restricted manner. During the TREX 7.1 installation the customer
can not specify the path to the global file share (SAP system directory
usr/sap/<sapsid>/sys). The global file share will be installed only once on
the host, where TREX 7.1 will be initially installed and can not be placed on
other hosts. So there still is a global file share for the TREX 7.1 installation, but it
can not be placed independently from the initial TREX 7.1 installation on other
hosts of your distributed landscape. TREX is developing the unrestricted global
file share functionality for TREX 7.1 for the end of 2008.
○ On Windows <SAPGLOBALHOST>\sapmnt\<SAPSID>\SYS\profile
○ 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 Error!
Bookmark not defined.]
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.
usr\sap\<SAPSID>\
SYS\ Global File System / SAP System Directory
...
profile\ SAP Profile Directory
– DEFAULT.PFL
– <SAPSID>_TRX<instance_number>_<host>
TRX<instance_number>\
...
exe\python_support\
TREX Instance/
<trex_hostname>\ <TREX_DIR>
index\
queue\
TREX Instance # 1
First TREX Instance usr\sap\<SAPSID>\
and Global File System
TRX<instance_number>\
usr/sap/<SAPSID>/
...
exe/python_support/
SYS/ <trex_hostname>/
index/
...
queue/
profile/
TRX<instance_number>/
TREX Instance # 2
exe/python_support/
<trex_hostname>/ usr\sap\<SAPSID>\
index/ TRX<instance_number>\
queue/ ...
exe/python_support/
<trex_hostname>/
index/
queue/
usr/sap/<SAPSID>/
SYS/
...
profile/
– DEFAULT.PFL
– <SAPSID>_TRX<instance_number>_<host>
The system profile contains settings and information that are important throughout the
system. The system profile exists once only in the global file system.
● Each instance must be installed in its own directory. The TREX setup program ensures
this by including the instance number in the directory name.
● Each instance must use a different port. The TREX setup program suggests suitable
ports so that they do not clash with other TREX instances on the same host.
● 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.
The configuration steps are described in this guide.
Domain Installation
For a domain installation the account used for the installation needs to be a member of the
local Administrators and the domain Admins group of the domain involved. All machines in
the system must belong to the same domain. In a domain installation, the user information is
stored centrally on the domain controller and can be accessed by all hosts in the system.
If the SAP system is to be distributed across more than one machine, SAP strongly
recommends you to perform a domain installation to avoid authorization problems.
If you install a system distributed over several hosts as a local installation, this can
lead to authorization problems for the operating system users <sapsid>adm and
SAPService<SAPSID>. It can also lead to problems with the transport directory,
which is usually shared by several SAP systems. Therefore, SAP does not support a
local installation for a system distributed over several hosts and recommends you to
install a system distributed over several hosts as a domain installation.
If you still want to perform a local installation for a system distributed over several
hosts, make sure that:
o You use the same password for the <sapsid>adm or the
SAPService<SAPSID> user on all hosts.
The password for the <sapsid>adm and SAPService<SAPSID> user can
differ.
o You use the same master password on all hosts.
o All hosts belong to the same Windows work group.
In a Microsoft failover cluster configuration, you always have to perform a domain
installation.
For performance and security reasons, SAP does not support an SAP system
installation on a domain controller.
If for any reason, the account used for the installation is not a member of the domain
Admins group, you can perform the installation with a domain user who is a member
of the local Administrators group. However, the domain administrator has to prepare
the system appropriately for you.
For a domain installation, you need to:
1. Check that the account used for the installation is a member of the domain Admins
group.
2. If required, obtain these rights by asking the system administrator to enter the
account as a member of the domain Admins group.
● Windows – <disk_drive>:\usr\sap\<SAPSID>
● UNIX – /usr/sap/<sapsid>
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 17].
Procedure on UNIX
Starting Point Procedure
The directory /usr For the directory /usr, select a partition that has sufficient disk
does not yet exist. space for the TREX software and other SAP software if necessary.
The directory /usr Choose one of the following options:
exists, but the
directory /usr/sap ● Create a new partition with sufficient disk space for the
does not. directory sap. Insert the directory sap into the directory
/usr.
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.
Installation
Purpose
You can install TREX in one of the following ways:
By running shell scripts [Page 29].
Prerequisites
You have downloaded and extracted the TREX binaries as described in Downloading the
TREX Binaries [Page Error! Bookmark not defined.].
Procedure
1. Log on to the installation host as root user.
2. Navigate to the directory <path to unpack
directory>/tx_trex_content/TX_LINUX_X86_64.
This directory was created by unpacking the TREX software package using SAPCAR.
3. Call the install.sh installation script (depending on your shell) as follows:
./install.sh --action=install --sid=<SAPSID> --
password=<password for adm/service user> --type=DEFAULT
The installation procedure will take less than 15 minutes. You can find more information
about using the installation script executing it with the --help parameter:
./install.sh --help
4. After the installation has finished you need to start TREX:
Log on as <sapsid>adm user.
To start TREX type TREX start.
To stop TREX (if necessary), enter TREX stop.
Prerequisites
You have downloaded and extracted the TREX binaries as described in Downloading the
TREX Binaries [Page Error! Bookmark not defined.].
Procedure
1. Log on to the installation host as a user with administrator rights.
2. Open a command prompt.
○ On Windows <SAPGLOBALHOST>\sapmnt\<SAPSID>\SYS\global\
trex\install
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.
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 it’s 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.
2. Navigate to the directory to which you unpacked the TREX binary files:
UNIX: <path to unpack
directory>/tx_trex_content/TX_LINUX_X86_64.
Windows: <drive>:\<path to unpack
directory>\tx_trex_content\TX_WINDOWS_X86_64
This directory was created by unpacking the TREX software package using SAPCAR.
3. Call the install.sh installation script (depending on your shell) as follows:
UNIX: ./install.sh --action=install --sid=<SAPSID> --
password=<password for adm/service user> --type=DEFAULT
--host<virtual_hostname>
The installation procedure will take less than 15 minutes. You can find more
information about using the installation script executing it with the --help
parameter: ./install.sh –help
Windows: install.cmd --action=install --sid=<SAPSID> --
password=<password for adm/service user> --type=DEFAULT
--host<virtual_hostname>
The installation procedure will take less than 15 minutes. You can find more
information about using the installation script executing it with the --help
parameter: ./install.sh –help
4. After the installation has finished you need to start TREX:
Log on as <sapsid>adm user.
To start TREX type TREX start.
To stop TREX (if necessary), enter TREX stop.
...
Update
Purpose
You can update TREX in one of the following ways:
By running shell scripts [Page 32].
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 53]).
● 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 28].
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.
● You have downloaded and extracted the TREX binaries with the target version to
which you want to update your TREX installation. For more information, see
Downloading the TREX Binaries [Page Error! Bookmark not defined.].
Procedure
1. Log on to the TREX host:
UNIX: As root user.
Windows: As a user with administrator rights.
2. Navigate to the directory to which you unpacked the TREX binary files:
UNIX: <path to unpack
directory>/tx_trex_content/TX_LINUX_X86_64.
Windows: <drive>:\<path to unpack
directory>\tx_trex_content\TX_WINDOWS_X86_64
This directory was created by unpacking the TREX software package using SAPCAR.
3. Call the install.sh installation script (depending on your shell) as follows:
UNIX: ./install.sh --action=update --sid=<SAPSID> --
password=<password for adm/service user> --restart
The installation procedure will take less than 15 minutes. You can find more
information about using the installation script executing it with the --help
parameter: ./install.sh –help
Windows: install.cmd --action=update --sid=<SAPSID> --
password=<password for adm/service user> --restart
The installation procedure will take less than 15 minutes. You can find more
information about using the installation script executing it with the --help
parameter: ./install.sh –help
4. If the option restart wasn’t used, after the installation has finished you need to restart
TREX:
UNIX: Log on as <sapsid>adm user.
To stop TREX type TREX stop.
To start TREX, enter TREX start.
Windows: Log on as Administrator.
Restart SAP<TREX SID>_<TREX Instance Number> Service.
The wizard-based configuration of the settings that are required to enable the
application using TREX to communicate with TREX using an RFC connection is
not currently supported. You therefore carry out the configuration steps required
for this manually (more information: Connecting TREX with an ABAP Application
(RFC Connection) [Page 44]).
Procedure
...
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 wizard-
based configuration manually.
For information on this, see the following documentation:
You carry out these steps manually if you have already carried out the wizard-
based basic configuration previously and now want to configure settings at a
later time.
Procedure
...
Prerequisites
You must have installed a Web server to use a TREX Web server for HTTP communication
with the application using TREX:
○ 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.
Procedure
...
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.
Installing and Updating TREX – Single Host 36
Search and Classification TREX April 2017
○ The Repair Results window appears and confirms that the system correctly
created a TREX Web site and application pool.
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.
● Web pages on external servers that can only be accessed using a proxy server.
Procedure
...
○ Proxy Exclusions – exclusion rules. These rules define when the proxy server is
not to be used. Separate multiple entries using a semicolon.
■ 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.
Installing and Updating TREX – Single Host 37
Search and Classification TREX April 2017
Result
You have configured the proxy server and the corresponding exclusion rules.
Procedure
...
● 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 (for example
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 53].
2. In the Preprocessor: Admin window, navigate to the Languages tab page.
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 (*).
For more information about the SAP System Landscape Directory, see
Gateway
RFC Server
SAP
XML
SLD Bridge
SAPOSCOL
SLD
HTTP 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.
● You or your SLD administrator have generated the SLD configuration files
slddest.cfg and slddest.cfg.key.
● 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
○ C shell csh:
source TREXSettings.csh
Windows
TREXSettings.bat
2. Execute the following commands:
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
● System ID
● Instance number
● Installation directory
● Name of the TREX hosts (Hosts) that belong to the TREX system landscape
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.
4. Select Maximize data throughput for network applications.
5. Choose OK twice.
Programs such as Microsoft SQL Server and Microsoft Exchange make the
setting described below automatically when they are installed. If you have
installed one of these programs, you do not need to make any changes.
The setting is only relevant if TREX is running as a Windows service.
...
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.
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.
As a rule, Java applications communicate with the TREX servers by means of the
TREX Java client using the HTTP or HTTPS protocol. This communication takes place
using a Web server that is enhanced with TREX-specific functions.
SAP Gateway
HTTP/HTTPS TCP/IP
HTTP/HTTPS
Web Server
RFC Server with TREX Extension
Name
TCP/IP
Possible
Index Server Server communication
Queue Server paths
TCP/IP TREX
TCP/IP
components
Other
Preprocessor components
There are therefore two procedures for connecting TREX with the application using it:
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 Activity Explanation
Permission
Permission check Execute Name of the RFC object to be
for RFC access protected: SYST,
TREX_ARW_ADMINISTRATION
Administration for the Add or generate, change, Type of entry in RFCDES: Start of an
RFC destination display, delete, extended external program using TCP/IP
maintenance
Check on the transaction Transaction code: SM59,
code at transaction launch TREXADMIN, TREXADMIN_AUTH
Administrating TREX Change, display, execute
ABAP: Program run checks Schedule programs for
background processing,
execute ABAP program,
maintain variants for and
execute ABAP program
ALV standard layout Maintain
Application log Display, delete
More Information
Configuring the RFC Connection in the TREX Admin Tool [Page 47]
Procedure
Create an SAP system user for the TREX admin tool (stand-alone) and assign the
SAP_BC_TREX_ADMIN role to this user.
...
Result
This user for the TREX admin tool (stand-alone) now has the authorization required to
configure the RFC connection.
SAP recommends using variant B. Variant A has the disadvantage that the
connection does not work if the application server is not available.
Procedure
...
Configuration of the RFC connection with the TREX admin tool (stand-alone) is
only available as of SAP Basis Component SAP_BASIS 6.20 SP58, 6.40 SP16,
and 7.0 SP6. If you are using TREX with an SAP system based on an earlier
support package, you have to configure the RFC connection manually as
described in the SAP NetWeaver 04 Installation Guide for Search and
Classification (TREX) 6.1. You can find this guide on the SAP Service
Marketplace at service.sap.com/instguides SAP NetWeaver Released
04 Installation Cross-NW Installation Guide Search and Classification
TREX 6.1.
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 46]).
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 45]).
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 Entry
SAP System 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 Name of the RFC destination.
Description 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
Gateway local Use local SAP gateways for the application servers.
(Default setting)
Gateway central Use the central SAP gateway.
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:
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.
Because the RFC configuration is still incomplete, the configuration status is yellow
or red.
Do not choose Repair All several times in quick succession. This would trigger
the configuration process more than once and delay it.
The TREX Java client communicates with the TREX server by HTTP and
TCP/IP. Make sure that the TCP port that the name server uses is open.
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>:
b. Determine the port of the TREX name server by means of the following rule:
<name_server_port>: 3<instance_number>01
■ 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.
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 HTTP Connection RFC Connection
httpd !
TREXDaemon.x ! !
On Windows
Open the Task Manager and check whether the following programs are running:
Process HTTP Connection RFC Connection
TREXDaemon.exe ! !
TREXIndexServer.exe ! !
TREXNameServer.exe ! !
TREXPreprocessor.exe ! !
TREXQueueServer.exe ! !
TREXRfcServer.exe !
Procedure on UNIX
...
○ C shell csh:
source TREXSettings.csh
Procedure on Windows
...
Result
The script carries out the following tests:
● Deleting any test indexes that were generated for a previous script run
● Indexing documents
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:
● Uninstalling TREX
...
Procedure
...
...
Windows
UNIX
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.
For more information about the SAP Management Console, see the online
application help and the SAP Library in the SAP Help Portal at
help.sap.com/netweaver SAP NetWeaver <Release> Application
Help SAP NetWeaver : Function-Oriented View Solution Lifecycle
Management SAP Management Console
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/netweaver SAP NetWeaver <Release>
Application Help SAP NetWeaver : Function-Oriented View Solution
Lifecycle Management SAP Microsoft Management Console Windows
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
The following sections describe in detail how to start TREX in the different ways listed above.
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.
If the instance number is 53and the host name is saphost06, you enter the following
URL: http://saphost06:55313
This starts the SAP MC Java applet.
If your browser displays a security warning message, choose the option that indicates
that you trust the applet.
2. Choose Start.
The SAP Management Console appears.
When you start the SAP MC for the first time for a newly installed SAP system, you
have to register your system as described in Registering Systems and Instances
below. After you have done this, the instances installed on the host you have
connected to are already present in the SAP Management Console when you next
start the SAP MC.
If you have already registered systems in the SAP MC, they are stored in the history.
To open the System’s History dialog box, choose the browsing button next to the
Instance Nr. field. Select an instance of the system that you want to add and choose
OK.
3. Choose Finish.
The system might prompt you for the SAP system administrator credentials. To
complete the operation, you require administration permissions. Log in as user
<sapsid>adm.
5. Start the TREX instance.
Stopping TREX
The following sections describe in detail how to stop TREX in the different ways listed above.
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.
The system might prompt you for the SAP system administrator credentials. To
complete the operation, you require administration permissions. Log in as user
<sapsid>adm.
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.
Preprocessor TREXPreprocessor.exe
Do not use the Task Manager to stop the TREX servers. Otherwise, data can be
lost. Affected indexes can be irreparably damaged.
1. Open a prompt.
2. Execute the following command:
net start w3svc
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.
...
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:
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.
...
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:
stopsap TRX<instance_number>
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
Preprocessor TREXPreprocessor.x
Do not stop the TREX server using kill – 9, as this can lead to data loss.
Affected indexes can be irreparably damaged.
Uninstall
Purpose
You can uninstall TREX:
By running shell scripts [Page 72].
Prerequisites
You have downloaded and extracted the package TREX binaries as described in
Downloading the TREX Binaries [Page Error! Bookmark not defined.]
Procedure
1. Log on to the TREX host:
UNIX: As root user.
Windows: As a user with administrator rights.
2. Navigate to the directory to which you unpacked the TREX binary files:
UNIX: <path to unpack
directory>/tx_trex_content/TX_LINUX_X86_64.
Windows: <drive>:\<path to unpack
directory>\tx_trex_content\TX_WINDOWS_X86_64
This directory was created by unpacking the TREX software package using SAPCAR.
3. Call the install.sh installation script (depending on your shell) as follows:
UNIX: ./install.sh --action=remove --sid=<SAPSID> --
password=<password for adm/service user> --type=DEFAULT
The installation procedure will take less than 15 minutes. You can find more
information about using the installation script executing it with the --help
parameter: ./install.sh –help
Windows: install.cmd --action=remove --sid=<SAPSID> --
password=<password for adm/service user> --type=DEFAULT
The installation procedure will take less than 15 minutes. You can find more
information about using the installation script executing it with the --help
parameter: ./install.sh –help
4. After the installation has finished you need to start TREX:
Log on as <sapsid>adm user.
To start TREX type TREX start.
To stop TREX (if necessary), enter TREX stop.