Click here to load reader

Sap ase learning session 1 sybase ase sap ase

  • View

  • Download

Embed Size (px)

Text of Sap ase learning session 1 sybase ase sap ase

  • By R.N.

    To Learn or Teach visit

  • Introduction to Sybase database

    Define Components of Sybase SQL

    System Databases

    Responsibilities of a Database Administrator

    Ram N Sangwan Visit for more.. 2

  • Sybase was founded in 1984 by Mark Hoffman, Bob Epstein, Jane Doughty

    and Tom Haggin in Epsteins home in Berkeley, California.

    Currently Sybase is an SAP company.

    At first it was Known as Sybase SQL Server

    Microsoft and Sybase shared the source code after they parted ways.

    Sybase SQL Server 4.9 and MS- SQL Server 6.0 & 6.5 were virtually

    identical. Till date the similarity can be seen in the T-SQL and basic process


    Ram N Sangwan Visit for more.. 3

  • Ram N Sangwan Visit for more.. 4

  • Adaptive Server Enterprise is a client/server model.

    The client process which is running on a machine can communicate with a

    database server which is available on the same machine or on a different


    Adaptive Server is executed as an application.

    The hardware that OS runs on, is transparent to Adaptive Server.

    What is visible to Adaptive Server is only user interfaces of the OS.

    Ram N Sangwan Visit for more.. 5

  • Adaptive Server has two components :

    DBMS component: To process SQL statements, accesses data. and

    Kernel component: uses OS services for:

    process creation and manipulation

    device and file processing

    inter-process communication.

    Ram N Sangwan Visit for more.. 6

  • Adaptive Server, when installed, comes with the following system databases:







    Ram N Sangwan Visit for more.. 7

  • master database -

    Is used to control the operations of Adaptive Server.

    It stores information about all user databases along with their database


    model database

    It gives a template for new user databases

    It has required system tables for each user database.

    We can alter model to customize structure of newly created databases.

    Everything we do to model will also be reflected in each new database.

    Ram N Sangwan Visit for more.. 8

  • sybsystemprocs database

    The system procedures are stored in database, sybsystemprocs.

    When any user runs a system stored procedure, Adaptive Server looks for

    that procedure in the users current database.

    If it is not found there, then Adaptive Server looks for this procedure in


    If there also it is not found, then Adaptive Server looks for the procedure in


    tempdb database -

    It provides a storage area for temporary tables and other temporary working

    storage needs.

    The space in tempdb is shared among all users of all databases on the server.

    Ram N Sangwan Visit for more.. 9

  • Sybsystemdb: has information about distributed transactions.

    Adaptive Server has transaction coordination services for transactions that get propagated

    to remote servers.

    To achieve this, it uses remote procedure calls (RPCs) or Component Integration System


    Information about the remote servers used in distributed transactions, is recorded in

    syscoordinations table.

    Ram N Sangwan Visit for more.. 10

  • Optionally, you can install:

    The auditing database, sybsecurity

    The sample databases, pubs2 and pubs3

    The dbcc database : Tables used for input and output for the DBCC CHECKSTORAGE


    The Job Scheduler database, sybmgmtdb.

    Ram N Sangwan Visit for more.. 11

  • All communications with the server is via Sybase OpenClient/OpenServer

    TDS (Tablular Data Stream) protocol on TCP/IP networks.

    All client connectivity uses TDS protocol natively.

    Client connectivity layers include: OpenClient (native), JDBC (Type 4),

    ODBC, OLEDB, ADO .Net, Ruby, PERL

    Interoperability with Microsoft TDS and jTDS is not certified or supported

    Direct definition, interfaces/SQL.ini and directory services (LDAP/AD) are

    supported for defining servers and connections

    IPv4 and IPv6 supported

    Ram N Sangwan Visit for more.. 12

  • Ram N Sangwan Visit for more.. 13

  • Sybase Control CenterA Web based utility to manage Multiple Servers and other resources and monitor servers

    and memory.

    DBISQLGUI Command line tool

    ISQLTerminal type command line tool

    BCPA bulk data copy program. Moves data between database tables and flat files.

    SybmigrgateMove schema and data from one ASE server to another

    sqldbgrUtility to help debug stored procedures and triggers

    Ram N Sangwan Visit for more.. 14

  • DseditInterfaces and sql.ini graphical editor

    OptdiagDisplays optimizer statistics for database tables

    DdlgenJAVA based tool the reverse engineers DDL for objects in the database

    srvbuild (Unix/Linux)Interactive utilities for building new ASE and supplemental servers

    srvbuildres (Unix/Linux)Non-interactive utilities to build ASE and supplemental servers from resource (.res) files

    Ram N Sangwan Visit for more.. 15

  • Installing SAP ASE and Backup Server

    Creating and managing SAP ASE login accounts

    Granting roles and permissions to SAP ASE users

    Managing and monitoring the use of disk space, memory, and connections

    Backing up and restoring databases

    Diagnosing system problems

    Configuring SAP ASE to achieve the best performance

    Ram N Sangwan Visit for more.. 16

  • System administrators may also assist with certain database design tasks that

    overlap with the work of application designers, such as enforcing integrity


    Although a system administrator generally concentrates on tasks that are

    independent of the applications running on SAP ASE, he or she is likely to

    have the best overview of all applications.

    Ram N Sangwan Visit for more.. 17