32
Nghia Nguyen SAP NetWeaver RIG Americas SAP Labs, LLC Unattended Installation Mode

System Copy Automated

Embed Size (px)

Citation preview

Page 1: System Copy Automated

Nghia NguyenSAP NetWeaver RIG AmericasSAP Labs, LLC

UnattendedInstallation Mode

Page 2: System Copy Automated

SapInst

Further InformationSummary

Unattended InstallationProceduresSolutions and HintsDemo

Page 3: System Copy Automated

SapInst

Further InformationSummary

Unattended InstallationProceduresSolutions and HintsDemo

Page 4: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 4

SAPInst Backend Architecture

KeyDB

Controller

GUI-EngineSDT-

server

SysLib

SAPINSTGUI.xml Installation

RepositoryControl.xml

MsgLiblogbook

Msg-ManagerDictionary

Writer

Error-Handler

BufferedMessenger

Filter

Writer...

EmbeddedJavascript

Registry Property-Manager

Java-Adapt

er

Dialog_HandlerAction_Handler Cancel_Handler

Interface-Broker

KeyDB-Client

Base-Table

XMLConnection-

Compiler

commit/rollback

XMLcontrols etc.

updates KeyDB

initializes GUI

Installation-Workbench

XML

Module

Libe.g. Oracle,

DB2 ...

Module...

DLL

may use

Connector

...

DLL/JavaClass

iterate/

Callback

commitrollback

requests service

DevelopmentDevelopment

Runtim

eR

untim

e

has

KeyDBClient

calls functionsinstanciat

es

SAPInstSAPInst(backend)(backend)

HPDEC

NT...

Ins.GUI

controlsetc. (SSL)

pure java

Page 5: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 5

SAPInst framework building blocks (2)

Controllercontrols the execution of steps defined through installation components(control.xml)enables runtime loading of dynamic installation libraries (DLLs or sharedobjects)Provides mechanisms to run Java Script code

GUI-Enginehandles communication with the STD-Server/GUI and processing user input

Page 6: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 6

SAPInst framework building blocks(3)

Syslibprovides platform independent access to common installation tasks related tothe operating systems (creating users, running executables, changingenvironment variables, manipulating the file system, etc.)Supported all Operating Systems SAP systems running onfilename on Windows: sylib.dll; on Unix: sylib.so (Sun)build the basis for platform independent installation modules.

Keydbprovides a table based persistency layer (key.xml)

Message libraryprovides a common message handling (messages.xml)

Page 7: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 7

SAPInst framework building blocks(4)

Module/C++ Framework Extensionscontains none framework functionality implemented by portierung teams(C/C++)

Mostly used by db porting groups to call native DB specific functionalitycan be called within steps using java script

Operating System WindowsRegistry, Services, ProgramItems, LogOff

DatabaseOracle, Informix, SAPDB, DB2/UDB, DB2/OS400, DB2/OS390databases, instances, tablespaces, execute SQL scripts, ...

SAP System Load, R3load JloadSAP System ConfigurationRFC based interface to call ABAP functions:ClientCopy, Language Settings, Add-On‘s, Plug-Ins, Support Packages,User,

RFC destinations, ..., Preconfiguration Packages

Page 8: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 8

Why using SDT Server ?

Inst-Gui

SAPi

nst

Server

Tool Adapter

JSPM

SAPu

pPC

sdt.server

SDT Server adapters for tools:SAPinst, SAINT, SAPM, JSPM, SAPJup,SAPup, (SMLT, …).

SLM can configure the tools via SDT Serverand the integrated adapters.

SLM can start and control the tools.

The SDT Server could also be configuredwithout SLM in a stand alone mode, toexecute up-to-date installations.

SPAM

SAPJ

up

GUI SLM

Server

SLMBrowser

SAIN

T

Page 9: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 9

Installations from the framework point of view

Framework

Sapinst(.exe)SDT-Gui

Control flow

Component and steporiented descriptionrelevant files are :•control.xml•dialog.xml•keydb.xml•packages.xml• ..•..

Software to be installed

organized in so calledsoftware packages.Identified by a tag file(label.asc).

Installation service

Page 10: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 10

How to get an ínstallation service ?

via starting SAPinst using a product.catalog filecontains all installation services avialable for the customerbased on XML

Page 11: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 11

Installation Service

From the point of SAPInst a installation Service consists as a set of XML-Files

control.xmlcontains all components which are needed for execute that service

name of start component

dialog.xml (SAPINST_DIALOG_URL)contains the dialogs (description) used by that service

keydb.xml (SAPINST_KEYDB_URL)tables definition and content needed by components running during the service execution

messages.xml (SAPINST_MESSAGE_URL)list of messages which can be used by components ( contains place holders )

packages.xml (SAPINST_PACKAGES_URL)contains the list of software packages which might be used by the service

resourcepool.xml (SAPINST_RESOURCE_URL)contains text information which can be used within dialog definitions (including pictures)

Page 12: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 12

Installation service definition within product.catalog

Relevant XML-attributes of the selection :

<component id="d0e27361"

output-dir="AS“

control-file="NW04S/WEBAS/ADA/control.xml“

product-dir="NW04S/WEBAS/ADA/PD“

name="NW_Onehost“

Depending on the selection the framework gets the information about what to copyfrom the installation master CD to the SAPinst installation directory (SIDIR).

//this plus predecessor output dirs defines location of theSIDIR under the „sapinst_instdir“

// all files of the control file directory will be copied theSIDIR// also the files of the product-dir (including sub directories )

// name of the start component

Page 13: System Copy Automated

SapInst

Further InformationSummary

Unattended InstallationProceduresSolutions and HintsDemo

Page 14: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 14

Unattended Installation

You can install an SAP system based on SAP NetWeaver 2004s inunattended mode.

SAP Note Number 950619

SAP NetWeaver 2004s, ERP 2005, CRM 5.0, SRM 5.0, SCM 5.0

Page 15: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 15

Cases

Custom InstanceNew server buildNew Developer

Save Time

Page 16: System Copy Automated

SapInst

Further InformationSummary

Unattended InstallationProceduresSolutions and HintsDemo

Page 17: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 17

Procedures

1. Create inifile.xml

2. Edit inifile.xml

3. Save the following files in a common directory

4. Create a file containing the paths to the installation DVDs

5. Identify the product ID(s)

6. Start SAPinst

Page 18: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 18

Procedures – 1/6

Create inifile.xmlRun SAPinst as described in the installation guide.Stop SAPinst when the screen "Parameter Summary" appears.

Solution Manager KeySR1 Release – key is asked the during the parameter inputSR2 Release – key is not ask during the parameter input

Page 19: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 19

Procedures – 2/6

Edit inifile.xmlPassword

<strval><![CDATA[des19(97|31|137|230|96|156|245|108|235|)]]><strval><![CDATA[<plain password>]]>

Changeable Parameters*:Host, SID, Directory, Instance number, JCE Policy file, DB, Password, Etc.

Solution Manager Key**Possible Option

Create a Web Service from “smsy” TXCreate a standalone application from “smsy” TX

* May required change in the “inifile.xml” format if switching DB type** Must create/change and insert into the “inifile.xml”

Page 20: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 20

Procedures – 3/6

Save the following files in a common directory“inifile.xml”, “keydb.dtd”, and “doc.dtd”Locate in the “sapinst_instdir”

Page 21: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 21

Procedures – 4/6

Create a file containing the paths to the installation DVDsCreate a file with a name of “start_dir.cd”Enter the paths to the installation DVDs

Example:Unix:/usphlrig1/DLMinst/DL_Store/NW04S_Linux_SR2/BS_2005_SR2_SAP_Installation_Master/usphlrig1/DLMinst/DL_Store/NW04S_Linux_SR2/NW_2004s_SR2_Kernel_WINDOWS__LNX_X86/usphlrig1/DLMinst/DL_Store/NW04S_Linux_SR2/RDBMS_MAXDB_7.6.00_Build_35/usphlrig1/DLMinst/DL_Store/NW04S_win32_SR2/Java/51032257

Windows:Z:\IM\BS_2005_SR2_SAP_Installation_MasterZ:\Kernel\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KU_WINDOWS_I386Z:\Java\51032257Z:\MAXDB\RDBMS_MAXDB_7.6.00_Build_35

Page 22: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 22

Procedures – 5/6

Identify the product ID(s)Method 1: search for the product ID in "product.catalog"Method 2: look inside the “keydb.xml” for the product ID

Page 23: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 23

Procedures – 6/6

Start SAPinstSAPINST_PARAMETER_CONTAINER_URL:<path to copied inifile.xml>SAPINST_EXECUTE_PRODUCT_ID:<product IDs for installationservices>SAPINST_SKIP_DIALOGS:true

Example:sapinst.exe SAPINST_PARAMETER_CONTAINER_URL="c:\inst\inifile.xml„

SAPINST_EXECUTE_PRODUCT_ID=d0e4202SAPINST_SKIP_DIALOGS=true

Page 24: System Copy Automated

SapInst

Further InformationSummary

Unattended InstallationProceduresSolutions and HintsDemo

Page 25: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 25

Solutions and Hints

Ensure all dependency materials are setup for the new boxExample:

JDK locationJava policy file

Must start in an empty directory with only the cd path file(start_dir.cd)

Page 26: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 26

Solutions and Hints - Continue

Windows OSSAPinst needs to <b>log you off</b> in order to reliably continue theinstallation

make sure the account which runs the installation has the following Userrights

Act as part of the operating systemIncrease quotasReplace a process level token

Linux OSThe tmp installation directory where “start_dir.cd”reside must be ownmy “sapinst” userID and with full permissions for group

Page 27: System Copy Automated

SapInst

Further InformationSummary

Unattended InstallationProceduresSolutions and HintsDemo

Page 28: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 28

Demo

Page 29: System Copy Automated

SapInst

Further InformationSummary

Unattended InstallationProceduresSolutions and HintsDemo

Page 30: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 30

Summary

Note 950619Has all the information on how to make this procedure work

SecurityMust take into consideration of the password

Page 31: System Copy Automated

SapInst

Further InformationSummary

Unattended InstallationProceduresSolutions and HintsDemo

Page 32: System Copy Automated

SAP AG 2007, Unattended Installation Mode / 32

Further Information

Public Web:www.sap.comSAP Developer Network: www.sdn.sap.comSAP Customer Services Network: www.sap.com/services/

SAP Education Training Opportunitieshttp://www.sap.com/education/

SAP Service Marketplace:service.sap.com/instguides Master Guides, Installation Guides, UpgradeGuides, Planning Guides