Sap ase learning session 2 installing servers

36
By R.N. Sangwan-www.rnsangwan.com To Learn or Teach visit www.theskillpedia.com Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 1

Transcript of Sap ase learning session 2 installing servers

Page 1: Sap ase learning session 2 installing servers

By R.N. Sangwan-www.rnsangwan.com

To Learn or Teach visit www.theskillpedia.com

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 1

Page 2: Sap ase learning session 2 installing servers

• Prepare the Operating System

• Operating System Settings, Using Raw Devices

• Determine your license policy

• Installation of the softwareSetup your environment, Create the ASE server, Create a Resource File,

Customize the File

• Build and Test the Server

• SAP ASE Default Directory Structure

• Move and modify configuration files

• Restart the Server

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 2

Page 3: Sap ase learning session 2 installing servers

• A full installation needs approx. 1.5 GB of Disk space.

• Recommended 4 GB to handle upgrades.

• Optionally, add a group "sybase" and a user "sybase" to the

system.

• For Custom installation, create the needed directories.

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 3

Page 4: Sap ase learning session 2 installing servers

• Shared Memory

• Add following line to /etc/sysctl.conf

kernel.shmmax=4294967296

• Now Issue the Command

# sysctl -p

• Install Required 32 bit libraries• This will prevent problems when running isql or bcp.

yum -y install libX11.i686 libXtst.i686 gtk2.i686 glibc.i686

libgcc.i686 webkitgtk.i686

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 4

Page 5: Sap ase learning session 2 installing servers

For Complete Custom Installation, Create Raw Partitions and Raw Devices. Make appropriate

entries into /etc/rc.local to make them available after reboot. Skip this for default installation.

• Create Raw devices from the Partitions Added

# raw /dev/raw/raw1 /dev/sdb1

# raw /dev/raw/raw2 /dev/sdb2

# raw /dev/raw/raw3 /dev/sdb3

• Change permissions on the raw devices...

# chmod 600 /dev/raw/raw1

# chmod 600 /dev/raw/raw2

# chmod 600 /dev/raw/raw3

• Change ownership on the raw devices to sybase...

# chown sybase:sybase /dev/raw/raw1

# chown sybase:sybase /dev/raw/raw2

# chown sybase:sybase /dev/raw/raw3

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 5

Page 6: Sap ase learning session 2 installing servers

• We shall be using (Skip This for Default Installation)

/dev/raw/raw1 master (100 Mb)

/dev/raw/raw2 sybsystemprocs (200M)

/dev/raw/raw3 sybsystemdb (10M)

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 6

Page 7: Sap ase learning session 2 installing servers

• ASE 15.0 onward you cannot run a production server without a

license file.

• License files can reside on the network or on the local system.

• Think about the license policy that suits you best.

• Most sites choose for license files on each Unix server.

• When there is no valid license, ASE will run with a grace time of

30 days.

• After that it will shutdown and it cannot be rebooted anymore until

you install a license, or change the license settings revert to the

Express Edition.

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 7

Page 8: Sap ase learning session 2 installing servers

• Make a work directory and put the downloaded ASE software in it.

# mkdir install

# cd install

<put the software in this directory> and extract the files.

# tar -xf ase160_linuxx86-64.tgz

• Start the installation# ./setup.bin

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 8

Page 9: Sap ase learning session 2 installing servers

• Use /opt/sap as the destination directory, do a full installation. At

the list of possible servers to configure, deselect all options. (For

Default Installation, Keep them Selected)

• When the installation has finished successful you can safely

remove the work directory and the installation package.

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 9

Page 10: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 10

Page 11: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 11

Page 12: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 12

Page 13: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 13

Page 14: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 14

Page 15: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 15

Page 16: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 16

Page 17: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 17

Page 18: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 18

Page 19: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 19

Page 20: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 20

Page 21: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 21

Page 22: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 22

Page 23: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 23

Page 24: Sap ase learning session 2 installing servers

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 24

Page 25: Sap ase learning session 2 installing servers

• In /opt/sap you will find SYBASE.sh. Run this file:

. /opt/sap/SYBASE.sh

• Check the value of $SYBASE:echo $SYBASE

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 25

Page 26: Sap ase learning session 2 installing servers

• We shall create the servers called ASE1 and a backupserver called SYB_BACKUP.

• Configuration files and the errorlog are stored in the admin directory, database files are

stored in /var/sap.

• Create the directories for these servers:

cd ~

mkdir -p admin/ASE1

mkdir -p admin/SYB_BACKUP

mkdir /var/sap/ASE1

• Create Symbolic Links in the Data Directory (/var/sap/ASE1) for Devices Created Earlier

ln -s /dev/raw/raw1 /var/sap/ASE1/master.dat

ln -s /dev/raw/raw2 /var/sap/ASE1/sybsystemprocs.dat

ln -s /dev/raw/raw3 /var/sap/ASE1/sybsystemdb.dat

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 26

Page 27: Sap ase learning session 2 installing servers

• Change to the "/opt/sap/admin/ASE1" directory and create a resource file.

• Copy the Sybase supplied resource file,

$SYBASE/$SYBASE_ASE/init/sample_resource_files/srvbuild.adaptive_server.rs to ASE1.rs

# cd /opt/sap/admin/ASE1

# cp $SYBASE/$SYBASE_ASE/init/sample_resource_files/

srvbuild.adaptive_server.rs ASE1.rs

# vi ASE1.rs

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 27

Page 28: Sap ase learning session 2 installing servers

sqlsrv.server_name: ASE1

sqlsrv.sa_password: sybase

sqlsrv.network_hostname_list: oracle.example.com

sqlsrv.network_port_list: 4000

sqlsrv.application_type: MIXED

sqlsrv.server_page_size: 4096

sqlsrv.force_buildmaster: no

sqlsrv.master_device_physical_name: /var/sap/ASE1/master.dat

sqlsrv.master_device_size: 100

sqlsrv.master_database_size: 60

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 28

Page 29: Sap ase learning session 2 installing servers

sqlsrv.errorlog: /opt/sap/admin/ASE1/errorlog

sqlsrv.sybsystemprocs_device_physical_name: /var/sap/ASE1/sybsystemprocs.dat

sqlsrv.sybsystemdb_device_physical_name: /var/sap/ASE1/sybsystemdb.dat

sqlsrv.tempdb_device_physical_name: /var/sap/ASE1/tempdb.dat

sqlsrv.tempdb_device_size: 100

sqlsrv.tempdb_database_size: 100

sqlsrv.default_backup_server: SYB_BACKUP

sqlsrv.do_optimize_config: yes

sqlsrv.avail_physical_memory: 256

sqlsrv.avail_cpu_num: 1

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 29

Page 30: Sap ase learning session 2 installing servers

# srvbuildres -r ASE1.rs

• After a successful creation you can connect to the server using

the command line tool isql.

• The login “sa" has been created, with the password that was

specified in ASE.rs file.

• At the prompt of isql you can type a command or execute a stored

procedure. Type exit to exit.

isql -Usa -Psybase -SASE1

sp_helpdb

go

exit

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 30

Page 31: Sap ase learning session 2 installing servers

Component Location

SAP ASE 15.7 – %SYBASE%\ASE-15_0

16.0 – %SYBASE%\ASE-16_0

SQL Central 15.7 – %SYBASE%\Shared\Sybase Central 6.0.0

16.0 - Not Available

SCC 15.7 – %SYBASE%\SCC-3_2

16.0 – %SYBASE%\SCC-3_3

JRE 15.7 – %SYBASE%\Shared\JRE-7_0_*

16.0 – %SYBASE%\Shared\SAPJRE-7_1_*

Language settings

(locales)

15.7 – %SYBASE%\locales and %SYBASE%\ASE-15_0\locales

16.0 – %SYBASE%\locales and %SYBASE%\ASE-16_0\locales

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 31

Page 32: Sap ase learning session 2 installing servers

Component Location

Connectivity 15.7 locations – %SYBASE%\OCS-15_0

16.0 location – %SYBASE%\OCS-16_0

Web Service 15.7 locations – %SYBASE%\WS-15_0

16.0 location – %SYBASE%\WS-16_0

SySAM 15.7, and 16.0 locations – %SYBASE%\SYSAM-2_0

Job Scheduler 15.7 locations – %SYBASE%\ASE-15_0\jobscheduler

16.0 location – %SYBASE%\ASE-16_0\jobscheduler

Unified Agent 15.7 locations – %SYBASE%\UAF-2_5

In SAP ASE 15.7 ESD #1 and later, UAF-2_5 is placed with SCC-

3_2 for the Sybase Control Center.

16.0 location – No longer shipped. Included with SCC.

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 32

Page 33: Sap ase learning session 2 installing servers

• Move the configuration files to the admin directory. First shutdown

ASE# isql -Usa -Psybase -SASE1

1>shutdown

2>go

3>quit

# cd $SYBASE/$SYBASE_ASE

# mv ASE1.cfg /opt/sap/admin/ASE1

# rm ASE1.*

# cd install

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 33

Page 34: Sap ase learning session 2 installing servers

• Make the -s flag the first option. This has the advantage that a listing of running processes

on the system will show the name of the Sybase server.

• Change the location of the configuration files, as specified with the -c flag, to the admin

directory. Each line must end with a backslash. Example RUN_ASE1 file:

#!/bin/sh

/opt/sap/ASE-16_0/bin/dataserver \

-sASE1 \

-d/var/sap/ASE1/master.dat \

-e/opt/sap/admin/ASE1/errorlog \

-c/opt/sap/admin/ASE1/ASE1.cfg \

-M/opt/sap/ASE-16_0 \

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 34

Page 35: Sap ase learning session 2 installing servers

• To Start the Server# startserver -f ./RUN_ASE1

• Load instmsg.ebf fileThe instmsgs.ebf file contains the latest update for Sybase error messages.You can load it with isql.isql -Usa -Psybase -SASE1 < $SYBASE/$SYBASE_ASE/scripts/instmsgs.ebf

• To Stop the Server# stopserver -f /RUN_ASE1

• Check the Status of the Server# showserver

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 35

Page 36: Sap ase learning session 2 installing servers

www.rnsangwan.com

Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 36