How to Change the Server Hostname

Similar documents
How to Configure the Web Services Server in Aleph. Versions 22 and later

How to Upgrade Oracle Software and Databases from Oracle Version x to for Ex Libris Applications

November Ex Libris Certified Third-Party Software and Security Patch Release Notes

Setting Up SSL / HTTPS for Local Primo Customers

Ex Libris Patch Instructions for Oracle 10 CPUs for Voyager Windows Servers

Server Access for Ex Libris Support. August 2015

Ex Libris Patch Instructions for Oracle 10 CPUs for Voyager Windows Servers

Requirements for Upgrading from MetaLib 3.13 to MetaLib 4. Version 4

Salesforce CRM Customer Portal Documentation

Ex Libris Patch Instructions for Oracle 10 CPUs for Voyager Solaris/AIX Servers

SFX KnowledgeBase eservice. Versions 3 and 4

All You Wanted To Know About the Management of Digital Resources in Alma

Rosetta Service Pack Installation Guide

URM and Its Benefits FAQ

Primo Online End User Help. Version 4.x

Staff User s Guide Task Manager. Version 20

Ex Libris Group Password Management Policy

Requirements for Rosetta Installation. Version 4.2

Oracle 10g ODBC Installation Guide. Voyager Version 9.0+

Ex Libris Cloud Service Packages. Version 2.0

SMS Proxy User s Guide. Version 1.0

Aleph Requirements for EDI -Outgoing and Incoming Messages

Ex Libris Patch Instructions for Oracle 10 CPUs for Voyager Linux Servers

Oracle Easy Connect Naming. An Oracle White Paper October 2007

Oracle WebCenter Sites. Backup and Recovery Guide 11g Release 1 (11.1.1)

Aleph 23 Extended Topologies. Version 23

Enterprise Reporter Report Library

Verax Service Desk Installation Guide for UNIX and Windows

High Availability for Informatica Data Replication in a Cluster Environment

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

BES10 Self-Service. Version: User Guide

Configuring and Monitoring FTP Servers

Installing and Configuring DB2 10, WebSphere Application Server v8 & Maximo Asset Management

Backup & Restore with SAP BPC (MS SQL 2005)

ALEPH VERSIONS 16, 17, 18 ALEPH Publishing Mechanism

An Oracle White Paper September Oracle WebLogic Server 12c on Microsoft Windows Azure

Integration Service Database. Installation Guide - Oracle. On-Premises

CA Spectrum and CA Service Desk

TERMS AND CONDITIONS

Oracle Enterprise Manager

Intel Storage System SSR212CC Enclosure Management Software Installation Guide For Red Hat* Enterprise Linux

Maximum Availability Architecture. Oracle Best Practices For High Availability

Web Portal Installation Guide 5.0

To integrate Oracle Application Server with Active Directory follow these steps.

Oracle Enterprise Manager

Polar Help Desk Installation Guide

BlackBerry Business Cloud Services. Version: Release Notes

Application Note. Gemalto s SA Server and OpenLDAP

Application Note. SA Server and ADAM

How To Configure MDM to Work with Oracle ASM-Based Products

CA Workload Automation Agent for Databases

Dell One Identity Cloud Access Manager How to Configure Microsoft Office 365

IBM Security QRadar Version (MR1) Replacing the SSL Certificate Technical Note

An Oracle White Paper October BI Publisher 11g Scheduling & Apache ActiveMQ as JMS Provider

All copyright, trade mark, design rights, patent and other intellectual property rights (registered or unregistered) in the Content belongs to us.

Setting Up the Site Licenses

Introduction to Version Control in

User Guide. BES12 Self-Service

Siebel Installation Guide for UNIX. Siebel Innovation Pack 2013 Version 8.1/8.2, Rev. A April 2014

Install BA Server with Your Own BA Repository

Instant Messaging Nokia N76-1

Siebel Application Deployment Manager Guide. Siebel Innovation Pack 2013 Version 8.1/8.2 September 2013

Apache and Virtual Hosts Exercises

Lab Answer Key for Module 6: Configuring and Managing Windows SharePoint Services 3.0. Table of Contents Lab 1: Configuring and Managing WSS 3.

Oracle Communications Network Charging and Control. Release: 4.4

Application Note. Intelligent Application Gateway with SA server using AD password and OTP

Configuring and Monitoring SharePoint Servers

The Tor VM Project. Installing the Build Environment & Building Tor VM. Copyright The Tor Project, Inc. Authors: Martin Peck and Kyle Williams

NCD ThinPATH Load Balancing Startup Guide

BlackBerry Enterprise Server Resource Kit BlackBerry Analysis, Monitoring, and Troubleshooting Tools Version: 5.0 Service Pack: 2.

simplify printing TX Guide v. 1. make IT simple Tricerat, Inc Cronridge Drive Suite 100 Owings Mills, MD , All rights Reserved

SA Server 2.0. Application Note : Evidian SafeKit 7.0.4, Failover

Enterprise Vault 6.0. SMTP Archiving

Dell InTrust Preparing for Auditing Cisco PIX Firewall

SUSE Manager in the Public Cloud. SUSE Manager Server in the Public Cloud

Dell Spotlight on Active Directory Server Health Wizard Configuration Guide

Deploying Business Objects Crystal Reports Server on IBM InfoSphere Balanced Warehouse C-Class Solution for Windows

NWBC10 NetWeaver Business Client

Lab Answer Key for Module 9: Active Directory Domain Services. Table of Contents Lab 1: Exploring Active Directory Domain Services 1

CA APM Cloud Monitor. Scripting Guide. Release 8.2

This appendix describes the following procedures: Cisco ANA Registry Backup and Restore Oracle Database Backup and Restore

Dell One Identity Manager 7.0. Help Desk Module Administration Guide

CA ARCserve Replication and High Availability

Oracle WebLogic Server

CA Unified Infrastructure Management Server

Remote Console Installation & Setup Guide. November 2009

Unified Resource Management: The Ex Libris Framework for Next- Generation Library Services

empower Authentication Manual, Version 3.7

Oracle Virtual Desktop Infrastructure. VDI Demo (Microsoft Remote Desktop Services) for Version 3.2

PingFederate. Identity Menu Builder. User Guide. Version 1.0

Compatibility Matrix. VPN Authentication by BlackBerry. Version 1.7.1

Foglight Managing SQL Server Database Systems Getting Started Guide. for SQL Server

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

IBM VisualAge for Java,Version3.5. Remote Access to Tool API

Cisco TelePresence VCR Converter 1.0(1.8)

Dell Unified Communications Command Suite - Diagnostics 8.0. Data Recorder User Guide

CA NetQoS Performance Center

Dell One Identity Cloud Access Manager How to Configure for SSO to SAP NetWeaver using SAML 2.0

Transcription:

How to Change the Server Hostname

CONFIDENTIAL INFORMATION The information herein is the property of Ex Libris Ltd. or its affiliates and any misuse or abuse will result in economic loss. DO NOT COPY UNLESS YOU HAVE BEEN GIVEN SPECIFIC WRITTEN AUTHORIZATION FROM EX LIBRIS LTD. This document is provided for limited and restricted purposes in accordance with a binding contract with Ex Libris Ltd. or an affiliate. The information herein includes trade secrets and is confidential DISCLAIMER The information in this document will be subject to periodic change and updating. Please confirm that you have the most current documentation. There are no warranties of any kind, express or implied, provided in this documentation, other than those expressly agreed upon in the applicable Ex Libris contract. This information is provided AS IS. Unless otherwise agreed, Ex Libris shall not be liable for any damages for use of this document, including, without limitation, consequential, punitive, indirect or direct damages. Any references in this document to third-party material (including third-party Web sites) are provided for convenience only and do not in any manner serve as an endorsement of that third-party material or those Web sites. The third-party materials are not part of the materials for this Ex Libris product and Ex Libris has no liability for such materials. TRADEMARKS "Ex Libris," the Ex Libris Bridge to Knowledge, Primo, Aleph, Voyager, SFX, MetaLib, Verde, DigiTool, Rosetta, bx, URM, Alma, and other marks are trademarks or registered trademarks of Ex Libris Ltd. or its affiliates. The absence of a name or logo in this list does not constitute a waiver of any and all intellectual property rights that Ex Libris Ltd. or its affiliates have established in any of its products, features, or service names or logos. Trademarks of various third-party products, which may include the following, are referenced in this documentation. Ex Libris does not claim any rights in these trademarks. Use of these marks does not imply endorsement by Ex Libris of these third-party products, or endorsement by these third parties of Ex Libris products. Oracle is a registered trademark of Oracle Corporation. UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Ltd. Microsoft, the Microsoft logo, MS, MS-DOS, Microsoft PowerPoint, Visual Basic, Visual C++, Win32, Microsoft Windows, the Windows logo, Microsoft Notepad, Microsoft Windows Explorer, Microsoft Internet Explorer, and Windows NT are registered trademarks and ActiveX is a trademark of the Microsoft Corporation in the United States and/or other countries. Unicode and the Unicode logo are registered trademarks of Unicode, Inc. Google is a registered trademark of Google, Inc. Copyright Ex Libris Limited, 2014. All rights reserved. Document released: June 2014 Web address: http://www.exlibrisgroup.com 2

Table of Contents 1 INTRODUCTION 4 2 CONVENTIONS 4 3 DIGITOOL CONFIGURATION CHANGE 5 3.1 DigiTool application shutdown 5 3.2 Check DigiTool parameters and modify configuration files 5 3.2.1 Changes in the u-tree 5 3.2.2 Changes in the j-tree: 6 3.2.3 Change the pds configuration files: 8 3.2.4 Other DigiTool configuration changes 8 4 ORACLE CONFIGURATION CHANGES 9 4.1 Configure database parameters 9 4.1.1 Check the service_names string defined in the DB 9 4.1.2 Replace the service_names string defined in the DB 9 4.2 Configure network files 10 5 UNIX HOSTNAME CHANGE 10 6 ORACLE STARTUP 11 6.1 Database startup 11 6.2 listener startup 11 7 DIGITOOL APPLICATION STARTUP 12 8 APPLICATION-RELATED CHANGES 12 9 DIGITOOL SANITY CHECK 13 3

1 Introduction The document details the procedure for changing the server hostname value in DigiTool Version 3 configuration files. This process should be used only for sites with DigiTool v.3 installed. The replacement instructions have to be applied to all DigiTool installed instances on the server. Caution: The change of the hostname value requires DigiTool application shutdown and Oracle shutdown. Therefore relevant downtime has to be scheduled. Notes: This document describes the actions to perform for standard DigiTool instance #1 that should be installed in the directory /exlibris/dtl/d3_1. Check the DigiTool application before the hostname change process In order to compare same functions after the hostname process. See sanity checks below. The value change of the hostname on Unix and network configuration should be performed by the System and Network administrators. This should be coordinated in parallel with the DigiTool configuration changes for a running DigiTool application as explained below. For all questions about non-standard installations, contact the Ex Libris Support and Installation Teams. 2 Conventions <oracle_home> This is the path of the Oracle home directory i-e <ORA_MOUNT>/app/oracle/product/920 for Oracle9 or <ORA_MOUNT>/app/oracle/product/102 for Oracle10 $ORACLE_HOME This is the variable that contains the home directory of the Oracle Unix user. When logging in as oracle or dtl, the ORACLE_HOME variable is set and can be referred to as $ORACLE_HOME. <oracle_sid> Oracle database SID, used for DigiTool installation 4

Relevant Oracle Unix user is named oracle in this document. 3 DigiTool configuration change 3.1 DigiTool application shutdown Login as dtl user and stop the DigiTool application: cd $dtle_root./dtl_shutdown_all 3.2 Check DigiTool parameters and modify configuration files The following steps perform replacement of hostname value in the relevant files. Should be changed, the occurrences of: - long (fully qualified) hostname i-e including domain name - short hostname Note: 1. Sometimes several hostnames are defined and used for the same server (see for example definitions in file /etc/hosts). In such a case, perform the following steps for all relevant hostname values. 2. Proceed with the described following steps in order to check presence of old hostname value, and don t automatically replace this value before checking that every change is relevant. 3. In the following modification steps, proceed first with full hostname replacement, and then with short hostname replacement. 3.2.1 Changes in the u-tree cd /exlibris/dtl/u3_1 Check the hostname value in relevant files Check for necessary tml files: find. -name "*.tml" -print -name ".*.tml" sed 's/\.tml//g' Check the files to be modified by displaying the occurrences of hostname in the relevant files: find. -name "*.tml" -print -o -name ".*.tml" -print sed 's/\.tml//g' xargs grep <old_hostname> Reminder: 5

Check the occurrences of <old_hostname> value, relevant to the long hostname(s) first, and perform the suitable changes described below. Then check and replace the occurrences of <old_hostname> value relevant to the short hostname(s). Then check that each change for the displayed results is relevant. For example: If old hostname is digitool, you cannot replace every occurrence of this value with the new hostname, because the name digitool is also present in files as directory path value, general application name, and so on! In such a case, you have to manually replace the hostname value in the files previously displayed. But for other cases you might use the next step, for automatic replacement. Automatic change of the files: The following instructions help you automatically change the files found in the previous steps. set DD=`date +%Y%m%d` OR set DD=`date +%Y%m%d.%H%M` echo $DD Each modified file <file_name> will be previously backed up as <file_name>.<date> With <DATE> = current date with format YYYYMMDD or YYYYMMDD.HHMM. find. -name "*.tml" -print -o -name ".*.tml" -print sed 's/\.tml//g' xargs perl -pi.$dd -e 's/<old_hostname>/<new_hostname>/g' Then use the same commands to replace for: - other potentially used long hostnames of the server - the short hostname of the server Check that the files have been changed for example: cd $dtle_root ls -ltr diff dtl_start.<date> dtl_start 3.2.2 Changes in the j-tree: cd $jdtlh/profile/ 6

Check the hostname value in relevant files Check for necessary tml files: find. -name "*.tml" -print -name ".*.tml" sed 's/\.tml//g' Check the files to be modified by displaying the occurrences of hostname in the relevant files: find. -name "*.tml" -print -o -name ".*.tml" -print sed 's/\.tml//g' xargs grep <old_hostname> Then check that each change for the displayed results is relevant. For example: If old hostname is digitool, you cannot replace every occurrence of this value with the new hostname, because the name digitool is also present in files as directory path value, general application name, and so on! In such a case, you have to manually replace the hostname value in the files previously displayed. But for other cases, you might use the next step for automatic replacement. Automatic change of the files: The following instructions help you automatically change the files found in the previous steps. set DD=`date +%Y%m%d` OR set DD=`date +%Y%m%d.%H%M` echo $DD Each modified file <file_name> will be backed up as <file_name>.<date> With <DATE> = current date with format YYYYMMDD or YYYYMMDD.HHMM. find. -name "*.tml" -print -o -name ".*.tml" -print sed 's/\.tml//g' xargs perl -pi.$dd -e 's/<old_hostname>/<new_hostname>/g' Then use the same commands to replace for: - other potentially used long hostnames of the server - the short hostname of the server Check that the files have been changed For example, check the file global.properties: cd $jdtlh/profile vi global.properties Eventually check the performed changes too: 7

ls -ltr cd $jdtlh/profile diff global.properties.<date> global.properties 3.2.3 Change the pds configuration files: Check the pds files to be modified (in the d-tree): pdsroot find. -name "*" -print xargs grep <old_hostname> As above (for u-tree replacement), check that each change for the displayed results is relevant. In such a case you can perform an automatic change (as explained below). Otherwise, you have to manually replace the hostname value in the files previously displayed. Automatic change of the files: The following instructions help you to automatically change the files found in the previous steps. set DD=`date +%Y%m%d` OR set DD=`date +%Y%m%d.%H%M` echo $DD Each modified file <file_name> will be previously backed up as <file_name>.<date> With <DATE> = $DD Use the following command with the fully qualified (long) hostname. Change the necessary files: find. -name "*" -print xargs perl -pi.$dd -e 's/<old_hostname>/<new_hostname>/g' Then use the same commands to replace for: - other potentially used long hostnames of the server - the short hostname of the server 3.2.4 Other DigiTool configuration changes Correct the main configuration file conf_tml.dat (even if you don't need to use it): cd /exlibris/dtl/d3_1/install vi conf_tml.dat 8

4 Oracle configuration changes During this step, the Oracle setting will be changed and DB will be shutdown 4.1 Configure database parameters When the old hostname value is defined in the DB parameter service_names you should change it. Reminder: the Oracle Unix user is mentioned as oracle in the present document. Eventually correct this login name with the relevant value actually defined on the server, e.g. the Oracle user name defined in the DigiTool configuration. Log in as oracle user 4.1.1 Check the service_names string defined in the DB In order to visualize the current value of parameter service_names, perform the following: > setenv ORACLE_SID <oracle_sid> > sqlplus /nolog idle> connect /as sysdba idle> show parameter service_names idle> exit 4.1.2 Replace the service_names string defined in the DB Eventually change the value of parameter service_names if the string contains the old server hostname. For example: dtl3.digiserver.domainname change to: dtl3.digiserver_new.domainname For Oracle 10, as (relevant) user oracle: 1. Change value of parameter SERVICE_NAMES > setenv ORACLE_SID <oracle_sid> > sqlplus /nolog idle> connect /as sysdba idle> alter system set service_names='dtl3.digiserver_new.domainname' scope=both; It might take a few moments for Oracle to perform this change. Then check the service_names string value was updated (see how to check the service_names value above). 9

2. Then shutdown the DB idle> shutdown immediate 3. Do NOT restart DB yet.. The DB will be restarted with a global DigiTool re-start, after the actual unix hostname will be changed. For Oracle 9, as (relevant) user oracle: 1. Shutdown DB: > setenv ORACLE_SID <oracle_sid> > sqlplus /nolog idle> connect /as sysdba idle> shutdown immediate idle> exit 2. Change value of parameter SERVICE_NAMES in file /exlibris/app/oracle/admin/<oracle_sid>/pfile/init<oracle_sid>.ora 3. Do NOT restart DB yet.. It will be restarted with a global DigiTool re-start, after the actual unix hostname will be changed. 4.2 Configure network files During this step, the Oracle listener will be stopped. When the old hostname is defined in the Oracle network files you should change it. Log in as oracle user. cd $ORACLE_HOME/network/admin Replace the value of hostname in the files listener.ora and tnsnames.ora (editing them). Stop the Oracle Listener: lsnrctl stop 5 Unix hostname change Before restarting the DigiTool application, you must perform the change of the hostname value for the Unix system and network configurations. Note: The value change of the hostname for Unix and network configuration should be performed by the System and Network administrators only. 10

This should be coordinated in parallel with the DigiTool configuration changes for a running DigiTool application. For example, the following should be affected: The value of the hostname Unix command, the /etc/hosts file, the DNS configuration, DigiTool application must use URLs containing the new hostname. So when the hostname is changed (regardless of whether IP address of the server is kept or not), the DNS should be updated in order to keep the association between the server hostname and its IP address. Often, the DNS cache of the DNS servers of the Internet Service Providers are not updated in real time. Therefore, the DNS update may take up to 48 hours to take effect. In order to use and check the DigiTool application immediately after the hostname change, you should configure your own /etc/hosts file (on your client PC for example). Thus your internet browser will take in account the relevant DNS changes. On Windows for example: In file C:\WINDOWS\system32\drivers\etc\hosts, add the following lines: #IP address # hostname <xxx.xxx.xxx.xxx> new_hostname.domainname new_hostname (where <xxx.xxx.xxx.xxx> is the value of the IP address for the server) 6 Oracle startup Log in as oracle user 6.1 Database startup In order to startup the DB, run the following: > setenv ORACLE_SID <oracle_sid> > sqlplus /nolog idle> connect /as sysdba idle> startup idle> exit 6.2 listener startup To startup the Oracle Listener, run the following: lsnrctl start 11

7 DigiTool Application startup Log in as dtl user. cd $dtle_root source dtl_start./dtl_start_conf_create Then run: j_bin bash set_globals.sh Logout and login again as dtl user. Start post installation script: cd $dtl_dev/install csh -f change_post.csh Then startup the DigiTool application: cd $dtle_root./dtl_startup_all If the Apache Web server is configured to be run by user root, then restart it as required: apcb su./apachectl stop./apachectl start 8 Application-related changes Caution: DigiTool application administrator should perform the following steps. 1. Delivery Rules Update: a. Login to management as an administrative user into unit REP00. Update any delivery rule URL which references the old hostname and change them to the new hostname. b. Run management maintenance job Re-load repository configuration. 12

9 DigiTool Sanity check Check the DigiTool basic functions via your Web browser. In the URL previously used to access the DigiTool Web interface, replace the hostname value with the relevant new one. - Connect to the new URL - In the DigiTool interface, perform a search by entering a keyword - Choose one item among the displayed results, and try to view the associated object Reminder: In order to use the new URL value, the change in the DNS configuration has to be effective (See previous chapter Unix hostname change for details). 13