Sap ase learning session 2 installing servers
-
Upload
ram-n-sangwan -
Category
Education
-
view
72 -
download
6
Transcript of 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
• 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
• 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
• 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
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
• 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
• 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
• 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
• 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
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 10
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 11
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 12
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 13
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 14
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 15
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 16
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 17
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 18
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 19
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 20
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 21
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 22
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 23
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 24
• 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
• 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
• 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
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
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
# 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
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
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
• 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
• 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
• 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
www.rnsangwan.com
Visit www.theskillpedia.com to learn or teach. By: www.rnsangwan.com 36