sybase - rm-rf.ucoz.rurm-rf.ucoz.ru/_ld/0/11_sybase_admin_ha.pdf · syb i • Подробное...

442
Syb I • Подробное изложение основных операций администрирования серверов Sybase Полезные подсказки, конкретные советы и неожиданные приемы, знание которых превратит вас из новичка в признанного корифея Идеальная настольная книга для администраторов сложных систем баз данных, состоящих из нескольких серверов • Рассматривается Sybase SQL Server версий 4.9.2, System 10 и System 11 ase

Upload: lykiet

Post on 22-Apr-2018

222 views

Category:

Documents


1 download

TRANSCRIPT

  • SybI

    Sybase

    , ,

    ,

    Sybase SQLServer 4.9.2,System 10 System 11

    ase

  • http://www.books-shop.com/adv.php

  • Sybase

    ""

    http://www.books-shop.com

  • Sybase DBA companionBrian HitchcockCopyright 1997All rights reserved

    Sybase . . ., . .

    Copyright 1997Prentice"Hall, Inc.A Simon & Schuster CompanyUpper Saddle River, New Jersey 07458

    ISBN 0"13"652389"7

    "", 2000

    . N : OAI (03) N : 070612 30.09.97 .ISBN 5"85582"066"1

    10.04.2000 84x108/16 N1 " .. 28 3200 N 2221.

    "". , . . , . 10, . 1 : (095)259"01"62WWW.LORY"PRESS.RU

    ,160001, . , . , 3. .: (8172) 72+55+31, 72+61+75, 72+60+72

    http://www.books-shop.com

  • 1 SQL Server:

    2 SQL Server 2

    SQL Server 4.9.2 3SQL Server System 10 3SQL Server System 11 3Microsoft SQL Server 4.2 6.0 4 SQL Server 4

    5 5 SQL 5 6 NULL 7 8 8 9 10

    SQL Server 4.9.2 10 10 20 23

    36 40 44

    SQL Server System 10 45 (Backup Server) 45 46 46 47 47

    SQL Server System 11 47 48 + 48 + 48 48 50 50 50

    http://www.books-shop.com

  • SQL Server 51 51 51 51 51 52 52

    52

    52

    2 System 11 53

    System 11 54 54 + 54 54 54 ? 54 System 11 55

    , System 11 56

    56

    3 System 11 57

    (MNE) System 11 . . 5 8 SQL Server 58System 11 + 59 60 60 SQL Server 61 61

    System 1 1 . . 61 + 61 63 63 64 ULC+ 64

    System 11 69" " 69 70 70

    4 * System 11 71

    + 72 72 + SQL Server 72 + 74 , ( + ) 75 76

    + 76 , + 77 79

    http://www.books-shop.com

  • , 80 80

    + + 80

    80 +? 82 + 83 84 + 84 85

    + System 11 98 98 + 98 98 + 99 + 100

    100

    5 SQL Server System 11 101

    102 104 105 105 + 106 106 108

    SP_CONFIGURE 111 sp_configure 111 113 sp_configure 113 114 read: ! 115 sp_configure 115 sp_configure 116 read verify sp_configure 124 124 125 sp_configure 125 sp_configure 125

    : 128

    6 SQL Server System 11 129

    , 130 System 10 130 131 , , 133

    www.books-shop.com

    http://www.books-shop.com

  • sp_sysmon 136 136 136

    136sysattributes 136syspartitions 137syslogshold 137

    137 : 138 138 138 139 139

    7 SQL Server 141

    142 sybsystemprocs 142 sybsecurity 142 master 143 master master 143 master 143 (logsegment) master 144 master 144 disk init master 145 master , 146 master 147 master 147 master 149 150 150

    8 151

    152 SQL Server 152

    SQL Server 4.9.2 152SQL Server System 10 152SQL Server System 11 153

    153 153 154

    154 155 Sun 156 157 . . . . 157

    www.books-shop.com

    http://www.books-shop.com

  • SQL Server 158 158 163 166

    166 167 168

    169 175

    175 175 176 create database 176 alter database 177 , 178 179 181 181

    183 183 183 184

    187 , 200 , 200

    202 204 205

    9 207

    208 SQL Server 208

    SQL Server 4.9.2 208SQL Server System 10 209SQL Server System 11 209

    209 210 218 218

    master ! 223 dbcc . 223 228

    www.books-shop.com

    http://www.books-shop.com

  • 229 , . . 229 230 (Backup Server) 231 232 234 SQL BackTrack DataTools 235 238

    10 243

    244 SQL Server 244

    SQL Server 4.9.2 244SQL Server System 10 244SQL Server System 11 244 sp_sysmon 244

    sp_sysmon 245 sp_sysmon. 246

    (Kernel Utilization) 247 (Task Management) 248 (Transaction Management) 248 (Lock Management) 249 + (Data Cache Management) 249 + (Procedure Cache Management) 251 (Recovery Management) 251 +(Disk I/O Management) 251 sp_sysmon 252

    + 258 259 260 262 264 265 265 267 269SQL Monitor 270 SQL Server 272 274 276

    11 SQL Server 277

    278

    SQL Server 278 278 281

    www.books-shop.com

    http://www.books-shop.com

  • : 286

    : 291

    295

    12 SQL Server 297

    298 SQL Server 298

    SQL Server 4.9.2 298SQL Server System 10 298SQLServer System 11 298

    298

    301

    SunOS Solaris 304

    Solaris 304 Solaris SunOS 305 SunOS Solaris 305 SunOS 305

    306

    SQL defncopy 308

    sysusages . 308 313

    314 322 SQL Server 322

    b 323

    323

    1105: 324

    13 SQL Server 329

    330

    SQL Server 330SQL Server 4.9.2 330SQL Server System 10 330SQL Server System 11 330

    SQL Server 330 331 SQL Server System 11 338 SQL Server System 10 342 SQL Server 4.9.2 342 343

    SQL Server: 348

    348 SQL Server 348

    [email protected]

    mailto:[email protected]

  • , EBF+ 349 Sybase 349 350

    EBF+. 350

    SQL Server 351 SQL Server 4.9.2 System 11( System 10) 352 SQL Server 4.9.2 System 11 ( System 10) 356 SQL Server 4.9.2 System 11 ( System 10) 359 SQL Server 4.9.2 System 10 11 363 SQL Server 4.9.2 System 10 365 SQL Server System 10 System 11 365 SQL Server System 10 System 11 System 10 366

    14 367

    368 SQL Server 368

    SQL Server 4.9.2 368SQL Server System 10 369SQL Server System 11 369

    (dumplog) . . . 369 SQL Server 4.9.2 (dumpdb_492) 372

    ! 372 SQL Server 4.9.2 (loaddb_492) 374

    (update_statistics_all_tables) 377

    (dump_db_create) 380

    dbcc+ (checkdb) 381 (dump_systables) 382 , (p_dbcreate) 384 ( p_mirror) 386 ( p_devspace) 386 , ( p_servermap). 388

    (dumpdb) 390

    (loaddb) 393 ( p_dbload) 393

    394

    SQL Server System 11 395 System 11 (dump_listof_dbs) 395

    www.books-shop.com

    http://www.books-shop.com

  • (logdump_listof_dbs) 398 (trunclog_listof_dbs) . 401

    (remove_old_files) 404

    (update_listof_dbs) 406 dbcc+ (dbcc_listof_dbs) 408

    SQL Server (scan_errorlog) 412

    (dump_server_config) 413

    (monitor_report) 416

    sp_sysmon (execute_sp_sysmon) . . . . . . . . 417 419

    crontab 419

    www.books-shop.com

    http://www.books-shop.com

  • www.books-shop.com

    http://www.books-shop.com

  • , , " Sybase. ":

    , SQL ServerSystem 11, System 10 4.9.2, .

    , . " , " , , , . ", , " .

    , SQL Server Sybase . . , Sybase. " Sybase , " Sybase, .

    Sybase SQL Server Sun Solaris 2.x. , " , " Sybase SQL Server. ,

    www.books-shop.com

    http://www.books-shop.com

  • Sybase, UNIX. Sola"ris .

    , , ". " .

    " , " Sybase. Solaris. " UNIX, Sybase SQL Server.

    ". , " . " , .

    " . , ;") , " , ". , , .

    .

    Sybase SQL Server ( " SyBooks AnswerBase) . " . " SQL Server, , , Sybase. , " , " , Sybase, SQL Server. Sybase " ", .

    " Sybase System 11. , SQL Server System 11 " SQL Server 4.9.2 System 10 System 11, SQLServer System 11 , . System 11 ,

    www.books-shop.com

    http://www.books-shop.com

  • EBF" ( Sybase , SQL Server, EBF", ). SQL Server 4.9.2, Sys"tem 10 System 11, .

    Sybase " , , " (middleware) .. , , ". " , Sybase (" ), UNIX. , Solaris; " UNIX. " Solaris, UNIX.

    . , Sybase SQL Server. , ", Sybase, , . " , , " Sybase.

    Sybase SQL Server :

    disk init :

    sp_helpdb __sp_helpusersasp_addsegment _, __sp_addsegment myseg0, server_device_1

    , Sybase SQL Ser"ver,

    s_sp_helpdevice , Sybase (,

    14), _

    p_devspace , , () "

    :

    master

    system

    syslogins

    segmap

    www.books-shop.com

    http://www.books-shop.com

  • :

    prtvtoc ;") , "

    .

    Sybase SQL Server , .

    (server) "" " Sybase. SQL Server, Sybase OpenServer (, SQL Server System 11 " Backup Server).

    , (server machine) " (, , , ..), , SQL Server.

    (server logical device) " , . , SQL Ser"ver , .

    (server device) , .

    (spindle) " ", " "".

    (physical device) , . " (logical device), .

    'sa' (SQL Server user 'sa') , . , 'sa' .

    (system administrator) , , " , " Sybase.

    (database system) ,, , ", .., " .

    (fail over) , .

    www.books-shop.com

    http://www.books-shop.com

  • SQL Server

    4.9.2, System 10 System 11 Sybase SQL Server ", Sybase, , " SQL Server. ", , , , SQL Server. " " SQL Server, 4.9.2 System 10 SQL Ser"ver System 11.

    www.books-shop.com

    http://www.books-shop.com

  • www.books-shop.com

    http://www.books-shop.com

  • SOtool Development, Support ENS, Sun Service. , : , , , " , , , , , . . " , . , , " , . , . " . , " .

    , . , , .

    , " . , . , , , .

    " . , , ".

    . .

    , . , 10 .

    . , "

    . . , , " . , , , , .

    By , , , " . . " .

    [email protected]

    mailto:[email protected]

  • , , , , . , , .

    . . ,

    . , , " . " " "", . , , , : " Sybase". ". , , .

    . , " ", , .

    , , . , .

    , . . , ,

    ., , . , 1996 .

    www.books-shop.com

    http://www.books-shop.com

  • 1

    SQL Server:

    www.books-shop.com

    http://www.books-shop.com

  • Sybase SQL Server () , . Sybase SQL Server; . , , SQL Server. SQL Server ""; "", SQL Server, ", " .

    SQL Server SQL Server: 4.9.2, System 10 System 11. . 1.1, : " SQL Server 4.9.2 System 10 System 11. SQLServer , . Sybase SQL Server SQL Server System 11.1. , " . " ( " , ) Sybase NavigationServer, Sybase MPP (Massively Parallel Processing), , ". Navigation Server SQL", . Navigation Server .

    SQL Server " , " SQL Server .

    . 1.1. SQL+ + Sybase

    www.books-shop.com

    http://www.books-shop.com

  • SQL Server 4.9.2SQL Server 4.9.2 Sybase SQL Server, . , SQL Server 4.9.2 , . SQLServer 4.9 4.9.1 4.9.2; EBF (Emergency Bug Fix level). Sybase , " . " SQL Server 4.9 4.9.2, 4.9 4.9.2 .

    SQL Server 4.9.2 ; , SQL Server 4.9.2 Sybase, " 4.9.2.

    SQL Server System 10 SQL Server System 10 Sybase SQL Server 5.0. ", Sybase Oracle Oracle 7.0, " Oracle, Sybase , 5.0 10.0. Sybase SQL Server System 10. "" " , . , " . " System 10 Sybase . System 11. , Oracle Sybase. Microsoft, .

    System 10 : , , " . SQL " ANSI; " . SQL Server " (Backup Server). System 10 SQL Server " . , System 10 . sybsystemprocs . " , , sp_who. sybsecurity " " , , System 10.

    SQL Server System 11System 11 Sybase SQL Server, Sybase SQL Server " . , . , System 11 " . , " . System 11 " , .

    System 11, System 10, . System 11 "; , (Replication Server). System 11 Sybase.

    , System 11 " .

    www.books-shop.com

    http://www.books-shop.com

  • System 11 . " , .

    , ", . Sybase System 11SQL Server , " . , System 11 , . , " 30 , System 11 SQL Server " , , " . " ( ). , " , . " , 102 ". , " . , System 11 , SQL.

    Microsoft SQL Server 4.2 6.0 , Sybase SQL Server, " Sybase. " Microsoft Sybase , . Sybase " Sybase SQL Server , UNIX, Microsoft " Microsoft SQL Server Windows NT. , , . , , , Sybase" Microsoft" SQL Server 4.9.2 , " , .

    Sybase, Microsoft ", Microsoft SQL Server 6.0 Windows NT Sybase SQLServer . Microsoft SQL Server 6.0 Sybase SQL Server System 10, . Microsoft " , Sybase SQL Server , , Microsoft SQLServer. Microsoft Sybase, " .

    , Microsoft SQL Server, "" SQL Server Sybase" SQL Server.

    SQL Server , . " , " SQL Server. . , , " . "Sybase" , " System 11.

    www.books-shop.com

    http://www.books-shop.com

  • " () Sybase SQL Server. .

    " ; , " (. 1.2). . , , , " , . ", , . " , " , , . , , " . , .

    psycho_books

    title

    DBA_Handbook

    DBA Companion

    CSP Training

    title_id

    1

    2

    3

    published

    yes

    yes

    no

    made_money

    no

    no

    no

    year_published

    1995

    1996

    NULL

    select * from psycho_books where year_published != NULL

    title

    DBA_Handbook

    DBA Companion

    titlejd

    1

    2

    published

    yes

    yes

    made_money

    no

    no

    year_published

    1995

    1996

    select title, year_published from psycho_books

    title

    DBA_Handbook

    DBA CompanionCSP Training

    year_published

    19951996NULL

    . 1.2.

    SQL , , . " (Structured Query Language, SQL). " ", , . SQL , , . " SQL " .

    www.books-shop.com

    http://www.books-shop.com

  • SQL, (query). SQL, , . SQL . SQL :

    Select .

    Insert .

    Update , .

    Delete .

    SQL, , SQL . , SQL, . , . , SQL, SQL, , , .

    , , . , . 1.3.

    title title_id

    1

    2

    3

    published

    yes

    yes

    no

    made_money

    no

    no

    no

    year_published

    1995

    1996

    NULL

    + (title, title_id, published, made_money, year_published)++ + published + Y, N ++ made_money = NULL madejnoney = N ++ year_published year_published + 1++

    ++ new_total ++

    ++ titlejd++ : 1, titl_id=1

    NULL ++ titlejd = 3 year_published

    id = 1

    . 1.3.

    www.books-shop.com

    http://www.books-shop.com

  • (table) , (). ; , .

    (rule) , ., .

    (default) , , , . , " , $0.00.

    SQL SQL" . , " . (stored procedure) " SQL", . . , " , , , . ". " , , . , ".

    (trigger) , . , , ", .

    ". , (index) , . " , . . ", . , , " , . , . , 1002. " , 1002. , 1002 , , , .

    NULL , NULL, ". , , ? NULL , " . " , .

    www.books-shop.com

    http://www.books-shop.com

  • NULL ( , " ), . , , . , , NULL. , , "? NULL , "? , , .

    , . , " . " , . Sybase ". , , ", . ", . . , . , " , . , " , .

    , , . , , , "", , . " , , " ", , , .

    " , . ", , , , "" (. 1.4). , " . " , , , . , , " . , .

    , ", , ", , (, ). " , " (. 1.5). ", ,

    www.books-shop.com

    http://www.books-shop.com

  • . 1.4.

    t1 t2 t3

    . 1.5.

    . , " , " .

    , ". , ", ". , " . (locks),

    [email protected]

    mailto:[email protected]

  • . 1.6.

    (. 1"6). . " , , , " . , " , , .

    " . " , . , " . , " . , System 11 "" " (dirty reads), , .

    SQL Server 4.9.2, SQL Server " 4.9.2, SQL Server System 10 System 11.

    SQL Server , . SQL Server , master, , , . SQL Server " . , , . . ,

    www.books-shop.com

    http://www.books-shop.com

  • SQL Server " , .

    , . " " . ; , " , .

    SQL Server , , ", " . . , . , , .

    . 1.7.

    (. 1.7) (), SQL Server. " .

    , . (), SQL Server .

    SQL Server . , " . SQL Server " , ,

    www.books-shop.com

    http://www.books-shop.com

  • . " .

    SQL Server . , SQLServer ; , . ", , .

    , " . " , . , " . " ; , .

    SQL Server , " , , .

    " , " . SQL Server , ; . " , " . , , , .

    " . , . " . , . , " " . " . , " , " . , , . , , " .

    . 32" UNIX " 2 , " 2 . , . , SQLServer System 10 11 (Backup Server) . 4.9.2 " " .

    SQL Server (. 1,8),

    , " , .

    www.books-shop.com

    http://www.books-shop.com

  • ,

    . 1.8.

    SQL Server , " . " ( (patch)), " . SQL Server .

    , . " , , SQL Server. " , . , , SQL Server , .

    SQL ServerSQL Server , . SQL Server " (threads), ".SQL Server , . , , SQL Server " , " . SQL Server . , ", " , , .

    SQL Server , " . " () SQL Server: 4.9.2, System 10 System 11. (), " , . EBF (Emergency Bug Fix). , " , , SQL Server , ". EBF ; , , Sybase.

    www.books-shop.com

    http://www.books-shop.com

  • SQL Server :

    . 1.9. SQL Server

    SQL Server (. 1.9) , ". , " .

    SQL Server (engine). , ( ) . " , . , . , " . " , , . , N SQL Server N1 . " , , " N1. SQL Server " .

    , N+1 + .

    , SQL Server (. 1.10). , ; ".

    www.books-shop.com

    http://www.books-shop.com

  • . 1.10. , SQL Server

    , , " , , , . " ; , .

    " . ", , " . .

    " " , , " . , , " , , . , " , " .

    SQL Server (. 1.11). , " " . , ", , . " , , . , " . , , , ". , , .

    SQL Server " , " . , , , " . SQL Server (" "" ). , . . (IP"). , (. 1.12). , ", " ,

    www.books-shop.com

    http://www.books-shop.com

  • 16

    . 1.11. SQL Server

    #PSYCH0492

    query tcp sun+ether psycho 1025#PSYCH010

    query tcp sun+ether thebirds 1025#PSYCH011

    query tcp sun+ether rearwindow 1025

    SunOS. Solaris (. 12).

    . 1.12. ( SQL Server 4.9.2 SunOS)

    . . , SQL Server . , " , . , . SQL", , .

    , , " ", (. 1.13). , , , . ", , , .

    www.books-shop.com

    http://www.books-shop.com

  • :

    #PSYCH0492

    query tcp sun+ether psycho 1025

    + PSYCH0492

    . 1.13.

    SQL Server PSYCH0492 psycho

    1025

    . 1.14.

    . 1.14. " , " . , " " . ; . , " " .

    www.books-shop.com

    http://www.books-shop.com

  • , ", (. 1.15). , " , .

    SQLServer

    . 1.15. SQL Server

    , " SQL Server . " , . , ", , , . , " " .

    . . , " . , " , .

    SQL Server , ". , , (server devices, . . 1.16). Sybase SQL Server , " . Sybase , " , . " , . " , " . , .

    www.books-shop.com

    http://www.books-shop.com

  • 2 1

    . 1.16. SQL Server

    3

    (partitioned) (partitions, . . 1.17), . ", " (raw partition). , . , , , , . , " . , . " , . . , ". , . " 8.

    '2' =

    '1, '3', '4', '5', '6' 1/5 , '0' 7'

    7 = 50.

    . 1.17.

    Solaris (slices) '0' =

    [email protected]

    mailto:[email protected]

  • . 1.18.

    " " , . (. 1.18).

    SQL Server . " , , . , . , , .. " SQL" master, model tempdb(. 1.19). master model , " . .

    . 1.19. SQL Server

    www.books-shop.com

    http://www.books-shop.com

  • master master . , , . master. " , " .

    model model ", . , . " , " model

    tempdb tempdb . " . tempdb , . tempdb, " . tempdb. tempdb " .

    , ".

    Transact+SQLTransact"SQL SQL, Sybase. SQL ", " SQL, " , , SQL. , , , " ( "). SQL . Sybase SQL Transact"SQL; ". , ", . Sybase Transact"SQL, " " SQL , " ( ) . , , Transact"SQL " Sybase, , " SQL .

    , .

    SQL Server , , ", , , , (. 1.3). , . Transact"SQL,

    www.books-shop.com

    http://www.books-shop.com

  • . , , . , " . , , . " , , " . ", " ". " " . , " ; " . , .

    , select, update, in"sert delete; , " . . " " , . order " order_detail . order " ; . order_detail . order order_detail " , . , order order_detail, . " , ", . , " , . , " , , , , "".

    Sybase SQL Server . Sybase SQLServer , " . , . , ", ( ) . , , , " . , " ; , . " . , . , " .

    , " , . , (. 1.15).

    .

    www.books-shop.com

    http://www.books-shop.com

  • . , , .

    " . , , . ", , , " (. 1.20). , " , .

    SQLServer master

    . 1.20. SQL Server

    SQL Server , ".

    'sa' SQL Server 'sa' ( , ..) . 'sa', . , ", , 'sa', .

    (database owner, dbo). , . , , . 'sa', . , . , " .

    www.books-shop.com

    http://www.books-shop.com

  • SQL Server , Sybase . master ( ) master, model tempdb, , " , 'sa', , , , (. 1.21). ", SQL Server 4.9.2 sybconfig, SQL Server System 10 11 sybinit.

    . 1.21. SQL Server 4.9.2

    isql Sybase isql ( SQL), " ". isql , SQL Server. Transact"SQL.

    , ", . DSQUERY SQL Server, "" , .. (. 1.23).

    DSLISTEN , .

    , DSLISTEN , . , , . , " ", ". , . , ".

    SYBASE ( ) " Sybase , . " , , SYBASE.

    sybconfig/sybinit SQL Server

    sybinit sybsystemprocs, SQLServer System 10 11

    www.books-shop.com

    http://www.books-shop.com

  • #PSYCH0492query tcp sun+ether psycho1025

    . 1.22. Isql

    , isql DSQUERY

    isql +Upsycho +Pshower

    +

    #PSYCH0492query tcp sun+ether psycho1025

    psycho

    SQL Server PSYCH0492 psycho

    1025

    DSQUERY, :%echo $DSQUERYPSYCH0492

    . 1.23. DSQUERY

    SQL Server , " (. 1.24). SQL Server " . , shutdown (. 1.25). , SQL" (. 1.26).

    PSYCH0492

    SQL Server PSYCH0492 psycho

    1025

    psycho

    www.books-shop.com

    http://www.books-shop.com

  • RUN PSYCH0492. :

    #!/bin/sh# : PSYCH0492f dslisten:# master: /dev/rsd1h# master: 15360

    DSLISTEN=PSYCH0492; export DSLISTEN

    /dba/sybase/bin/dataserver +d/dev/rsd1h +e/dba/sybase/install/errorlog_PSYCH0492

    . 1.24. SQL Server

    . 1.25. SQL Server

    kill , ,

    . 1.26. SQL+

    SQL+ ps:

    www.books-shop.com

    http://www.books-shop.com

  • ( dbcc) SQL Server , " . " . dbcc (data"base consistency check) . " dbcc , . Sybase dbcc (. 1.27). " , dbcc . " dbcc" ; " .

    dbcc :

    +

    +

    +

    . 1.27. dbcc

    SQL, SQL Server , " . SQL" , , SQL , . , " . , " SQL" , , . , " SQL" (.. ") , . .

    , , , , " SQL Server (") . () . " ", ( , ) ( ) (. 1.28). " ", " . , . " . , , , " .

    42221

    www.books-shop.com

    http://www.books-shop.com

  • psycho l

    psycho ll

    psycho III

    . 1.28.

    " .

    SQL Server . , .SQL Server 2 , 2048 . 2"" . , 2 . " " , . , " , , , , ".

    * SQL Server ", " (. 1.29). "; , , (SQL" insert, select, update delete ). " , , " . , (.. ), , " . " , , , . , "" , " , ( ) .

    LRU/MRU , " " ( ). , , , " .

    www.books-shop.com

    http://www.books-shop.com

  • +

    ()

    . 1.29. * SQL Server

    LRU/MRU, (LeastRecently Used, LRU) , (MostRecently Used, MRU). , " , , , ", .

    . , (. 1.30). , . ; " (. 1.31).

    5,

    . 1.30. , *

    [email protected]

    mailto:[email protected]

  • 12,

    . 1.31. , +

    + " (. 1.30) " ". (. 1.31) ", "". , " , .

    , , " . " , , .

    " , ", ", (. 1.32)." , " .

    . 1.32. +

    , SQL" . , . : , " . ,

    www.books-shop.com

    http://www.books-shop.com

  • , , , , . " , , ", . , , ", . (, " ), , " . , . , .

    SQL Server . , . (. 1.33), . SQL Server , , , ", , , . (.. ), . , , .

    . 1.33.

    SQL" Sybase . , Sybase SQL Server . 2" " ( " ). , " . " . . , , " . , , (On"Line Transaction Proces"sing, OLTP), . " .

    www.books-shop.com

    http://www.books-shop.com

  • . 1.34.

    SQL". " , . 1.34.

    SQL Server ; . , ( ") , , . , , . , " , , , .

    SQL Server ". , , . " , , " . , .

    , , " . , " , , " . ( ) ( ). , , .

    , , , " . (. 1.35). , , " . ", , , .

    www.books-shop.com

    http://www.books-shop.com

  • . 1.35.

    , " . , (. 1.36). , , . , . " . , , . " , , " .

    , , .

    " .

    . 1.36.

    www.books-shop.com

    http://www.books-shop.com

  • , " Sybase, ", ..

    , . .

    . ". .

    " . , " ( , ). (. 1.37). . " . , , . " , "; .

    ( )

    ,

    . 1.37. .

    , " , . , , . , (, ) . , " , " (. 1.38).

    www.books-shop.com

    http://www.books-shop.com

  • 1: +

    ; , 01:00 14:00

    2: +

    ; , 12:00 14:00

    3: +

    ; , 01:00 14:00

    . 1.38.

    SQL Server , " (. 1.39). , , " . " . , " . " ( , ). " , . " (master device) .

    , " . " (master). , . , .

    www.books-shop.com

    http://www.books-shop.com

  • sdlb /dev/rsd6b

    ( )

    sdlb , (/dev/rsd6b), , + 'sdlb'.

    . 1.39.

    ? Sybase SQL Server, . " , " , . , ", SQL Server. , , . , " .

    " , . , " 100 . " 200 , " .

    , , (server engine). ( ), " (. 1.40). , " .

    . , " , .. " .

    www.books-shop.com

    http://www.books-shop.com

  • ,

    SQL Server

    . 1.40. SQL Server

    , Sybase SQL Server . " .

    * SQL Server, System 11, 0 (.. , ) ", " . , ", . " ". 0, " " " 0 (. 1.41). , 0. , " " , Sybase SQL Server.

    , , . . , " . SQL Server " , , , (. 1.42). , " , .

    www.books-shop.com

    http://www.books-shop.com

  • . 1.41. *

    . 1.42.

    " ( ), .

    ", ", " ", , . " . , " . " (. 1.43).

    ", " " . " " , , , . " . ", , ,

    www.books-shop.com

    http://www.books-shop.com

  • + , +

    . 1.43. *

    (. 1.44). " (On"Line Transaction Processing, OLTP), (Decision Support System, DSS). OLTP"" ( , ) , . , , , " . , " , , ., DSS" , , DSS" , " , OLTP". , , OLTP", " ". " , .

    12 1 +7 8

    DSS+ , ,

    . OLTP+ .

    . 1.44. OLTP* DSS* *

    [email protected]

    mailto:[email protected]

  • . 1.45.

    , .. " ( ). , , " ". (. 1.45).

    "" . "", , , " . , , , " .. . , " ", " ". ", ", , " " . . ", " , . , , , . , " . , , ", .

    , , . . , .

    www.books-shop.com

    http://www.books-shop.com

  • SQL+

    'exec sproc1'

    . 1.46.

    . , SQL" SQL Server , (. 1.46). " SQL", " .

    ". , SQL Server.

    , (. 1.47). , ", , . , , .

    , ". . " , " , , , ". " , .

    www.books-shop.com

    http://www.books-shop.com

  • m#( )

    . 1.47.

    , , . , " . " , . " .

    ", ( , ). , ", X Y. " X, " Y. " " , .

    . , ", . " , " , .

    www.books-shop.com

    http://www.books-shop.com

  • . 1.48.

    , . " . (. 1.48). . , . , , " . , " , .

    " , . " ( ) .

    Emp#, First_Name( , )

    www.books-shop.com

    http://www.books-shop.com

  • ++

    ,

    . 1.49.

    . " , , . , " (. 1.49). , " , ". ", , . . " , " .

    , , " . , Sybase Replication Server ( ), SQLServer . , " Replication Server, .. " SQL Server. , SQLServer , , " .

    (Log Transfer Manager, LTM) " . , , . , , (. 1.50).

    www.books-shop.com

    http://www.books-shop.com

  • . 1.50. Sybase Replication Server

    SQL Server System 10 SQL Server System 10 ", .

    (Backup Server) System 10 " , . System 10 SQL Server (. 1.51), " , SQL Server. , " . , , SQL Server. SQL Server " " .

    www.books-shop.com

    http://www.books-shop.com

  • SQL Server

    . 1.51. (Backup Server)

    SQL Server System 10 , " 4.9.2; , System 10 , . , System 10, System 10. 4.9.2 System 10 " . System 10 , , .

    SQL Server 4.9.2 System 10 " System 10, , " 4.9.2, 4.9.2 System 10 . 4.9.2 System 10 " b, System 10. " , , .

    System 10 . , , ". :

    sa_role sa_role " ( 'sa'), 'sa'. , , " .

    sso_role sso_role " (System Security Officer, SSO), . sso_role " 'sa'.

    www.books-shop.com

    http://www.books-shop.com

  • operator_role , .

    , sa_role, sso_role operator_role. ; " , . '

    System 10 " sybsystemprocs. (, sp_who) " master. System 10 , sybsecurity. SQL Server System 10 . 1.52.

    master mode/ tempdb

    sybsystemprocs

    sybsecurity

    , master

    . 1.52. System 10

    System 10 , , , . ", , .

    System 10 sybsecurity, " . , " . , .

    SQL Server System 11

    Sybase SQL Server System 11 , " . , Sybase SQL Server.

    www.books-shop.com

    http://www.books-shop.com

  • System 11 2"6. " System 11 Sys"tem 10 (SMP). " , " System 10 , . , , SQL Server System 10 " .

    , System 11 " . System 11, System 10, " , . , , , System 11. " , .

    System 11 (. 1.41). " , " , ". System 11 .

    + SQL Server, System 11, ", , , .. " , " " , SQL Server , . " " ; " , . , "" ( ). " , . "", . SQL Server System 11 " (. 1.53). " , " " .

    +System 11 "" " 2 16 ( 1 8 " 2 , . . 1.54). (, ) . SQL Server " 2 .

    ", " . . System 11

    www.books-shop.com

    http://www.books-shop.com

  • . 1.53. System 11

    . 1.54. System 11 *

    " (User Log Cache, ULC;. . 1.55). . , " , " .

    . 1.55. (ULC) System 11

    [email protected]

    mailto:[email protected]

  • , . Sybase SQL Server " , , , . , . System 11 . , " (. 1.56).

    . 1.56. System 11

    System 11 , , ". System 11 , " . ". System 11 " .

    : + " , (wash point) ". .

    : , , , . 300 , + + . , : Sys+tem 11 .

    System 11 System 10 SQL Server 4.9.2. " System 11 , System 10. System 10 System 11 System 10, System 11. System 11 " .

    www.books-shop.com

    http://www.books-shop.com

  • SQL Server SQL Server System 11 " . , Sybase. , " .

    SQL Server . System 11 " " . " , OLTP", DSS", " . " , , " " .

    SQL Server (resource governor), , , " . , ", , .. , , "" . , " .

    " (, dbcc", , ). .

    " " . , " . Sybase , . , SQL BackTrack . , " DataTools " . , , , , , " .

    (Decision Support Systems, DSS), (data warehouses). DSS" , " , , " (Logical Memory Manager), System 11. " , ,

    www.books-shop.com

    http://www.books-shop.com

  • , , , (, sum, min, max, avg).

    " Sybase (Sybase Replication Server), " , "" "" (publish and subscribe model). ", , . .

    Sybase " , " . , . System 11 , " . SQL Server. " (Very Large Databases, VLDB), , , , .

    Sybase SQL Server 4.9.2 System 11 , . , " . Sybase, . . " , . , ?

    SQL Server: 4.9.2, System 10 Sys"tem 11. System 10 , (Backup Server). System 11 " SQL Server " .

    ; " . , , " , .

    System 11 , . System 11, , " . System 11 , , (SMP).

    www.books-shop.com

    http://www.books-shop.com

  • 2

    Ssem 11

    www.books-shop.com

    http://www.books-shop.com

  • Sybase ", , , " . ", System 11 . " , , " System 11 .

    ", , System 11, " . , , " , . , ", . System 11 " : , ", . " .

    , System 11. " " Sybase.

    System 11 :

    System 11

    System 11 (Multiple Network Engines, MNE) System 11 System 11

    + " " " " System 11

    SQL Server System 11

    sp_sysmon

    ? , " , .

    , System 11 , . ( *) , , . , ( " ) " . , . , , , . SQL Server 4.9.2 System 11 " (last"chance thresholds, . 12).

    www.books-shop.com

    http://www.books-shop.com

  • System 11

    (MNE) , " .

    System 11 (User Log Cache, ULC) 2 . " ULC".

    System 11 (spinlocks). , " (promotion) .

    " , , " .

    " 2 . , " " 2 .

    System 11 , " " , System 11 .

    * System 11 . System 11 , (, ) , ", .

    , . , , " .

    SQL Server System 11, " , . System 11 ( ) .fg . , " sp_conf igure, " . cfg. .fg. , " System 11 .

    * (off"line) . , , " (on"line) .

    www.books-shop.com

    http://www.books-shop.com

  • sp_sysmon (, ", ), .

    , " ". " .

    , System 11 , " System 11. " , System 11 . System 11 ' ', create table, .

    (resource governor) " , 11.0 .

    (update"in"place) " , System 11 , 11.0 SybaseSQL Server .

    , SQL Server System 11 , " . ". , System 11, .

    www.books-shop.com

    http://www.books-shop.com

  • 3

    System 11

    www.books-shop.com

    http://www.books-shop.com

  • (MNE) System 11 SQL Server . , " . System 11 " . , , . 0 "". System 11 , ". .

    SQL Server ( ) , " . " . , , . ; , (spinlocks), , , . ", , , , .

    , (online engines), . " , . , " . " SQL Server, sp_configure "max online engines", .

    System 11 , " . " :

    1> sp_configure "max online engines"2> go

    Parameter Name Default Memory Used Config Value Run Valuemax online engines 1 147 1 1

    (return status = 0)1> sp_configure "max online engines", 22> go

    Parameter Name Default Memory Used Config Value Run Valuemax online engines 1 147 2 1

    Configuration option changed. The SQL Server must be rebooted before thechange in effect since the option is static.( . # , SQLServer.)

    (return status = 0)1> sp_configure "max online engines", 32> goMsg 5846, Level 16, State 1:Server 'PSYCHO', Procedure 'sp_configure', Line 329:Illegal value '3' specified for configuration option 'max online engines'.The legal values are between '1' and '2'.

    www.books-shop.com

    http://www.books-shop.com

  • 'max online engines' '1' '2 ' .Msg 5849, Level 16, State 1:Server 'PSYCHO', Procedure 'sp_configure', Line 329:Verification failed for parameter 'max online engines'. 'max online engines'.(return status = 1)

    System 11 + , SQL Server 4.9.2 System 10 " " 0, , (. 3.1). " 0 . " " , " . SQL Server ", " ".

    1

    2

    . 3.1. * , System 11

    SQL Server System 11 " , " " . , " , ", , ", . " , , , ; . ", " 0 (. 3.2) (. 3.3). (SunSolaris, DEC, RS6000, AIX, HP) . " , " .

    1 2 3 0

    . 3.2. * System 11

    62221

    [email protected]

    mailto:[email protected]

  • . 3.3. System 11

    , + . , , + +, . , , System 11 + +, .

    SQL Server " , " . SQL Server 4.9.2 System 10 0 ", . " System 11, " (MNE), .

    , 1024 . 1024 " ( , " ). 3 1024 = 3072, " 1024 .

    , , . , ", SQL Server. " , " . " , , .

    , . , " , , 100%" " , . , " .

    www.books-shop.com

    http://www.books-shop.com

  • , ", , " . 10.

    , ., , SQL Server. , , . " , , .

    SQL Server " SQL Ser"ver , , . " " " , . "; " . 4.9.2, System 10 System 11 .

    System 11 " . , . , , " .

    System 11 System 11 " , " . System 11 , " .

    SQL Server , . , , " . " . . (. 3.4). , " , .

    + System 11 : " " (User Log Cache, ULC). " , , ULC (. 3.5), .

    www.books-shop.com

    http://www.books-shop.com

  • . 3.4.

    . 3.5. System 11

    Ha ULC" " ; " , . ULC" System 11 ", .

    ULC" " , , , .

    ULC" " . " . . Sys"tem 11 " , . , ULC" " ; , " .

    " , , ... . " , " . , , select. " ULC" , "begin tran" " .

    www.books-shop.com

    http://www.books-shop.com

  • y

    " , . ULC", ; , ULC" " 2 . 2

    sp_configure "user log cache size", 4096 ULC" "

    . ", . , ( , " ), " . , " , " ULC". , ULC" " , , " . .

    , , 2 . System 11 " ", ; " , 2 16 . ULC", " " . "" 4 ; " .

    ". 4" , " 4" " 4 . " ", , " ( , ").

    4" " 2" . sp_poolconfig. " ", sysattributes. , ", , ( ) 2 . sp_logiosize. , .

    () " . , " , , , " select. System 11 " , , . " . System 11 " syslogshold,

    www.books-shop.com

    http://www.books-shop.com

  • 64 3

    , . , , , .

    , System 11, . , , , , SQL Server.

    , .. , . , .

    syslogshold. , , syslogshold select (. ). , , , , kill . , .

    ULC*

    ULC1> sp_configure 'user log cache size'2> go

    Parameter Name Default Memory Used Config Value Run Value

    user log cache size 2048 0 2048 2048

    (return status = 0)

    ULC [User Environment]

    number of user connections = 50stack size = DEFAULTstack guard size = DEFAULTsystemwide password expiration = DEFAULTpermission cache entries = DEFAULTuser log cache size = DEFAULTuser log cache spinlock ratio = DEFAULT

    ULC1> sp_configure 'user log cache size', 20602> go

    Parameter Name Default Memory Used Config Value Run Value

    user log cache size 2048 0 2060 2048

    Configuration option changed. The SQL Server must be rebooted before thechange in effect since the option is static. ( ; # SQL Server.)

    (return status = 0)

    www.books-shop.com

    http://www.books-shop.com

  • ULC 00:96/05/30 15:34:34.35 server 'iso_l' (ID = 1).00:96/06/12 10:13:08.41 server The configuration option 'user log cachesize' has been changed by 'sa' from '2048' to '2060'00:96/06/12 10:13:08.47 server Configuration file' /export/home/sybase/11.0.1/VERTIGOll.cfg' has been written and theprevious version has been renamed to' /export /home/sybase/ 11.0.1/VERTIGO11.017 '

    ULC[User Environment]

    number of user connections =50stack size = DEFAULTstack guard size = DEFAULTsystemwide password expiration = DEFAULTpermission cache entries = DEFAULTuser log cache size = 2060user log cache spinlock ratio = DEFAULT

    ULC 1> sp_configure 'user log cache size'2> go

    Parameter Name Default Memory Used Config Value Run Value

    user log cache size 2048 0 2060 2060

    (return status = 0)

    1> sp_logiosize2>

    The transaction log for database 'master' will use I/O size of 2 kbytes.# 'master' 2 .

    (return status =0)

    1> sp_logiosize 'all'2> goCache name: default data cache

    Data base Log I/O SizeMaster 2 KbModel 2 KbPsycho_db 2 KbSybsecurity 2 KbSybsystemprocs 2 KbTempdb 2 Kb

    (return status =0)

    2 8

    1> use psycho_db2> go1> sp_logiosize2> goThe transaction log for database 'psycho_db' will use I/O size of 2 kbytes.

    www.books-shop.com

    http://www.books-shop.com

  • # 'master' 2 .(return status = 0)1> sp_logiosize '8'2> goUnable to change the log I/O size. The memory pool for the specified log I/Osize does not exist. # # .(return status = 0)

    8

    1> sp_helpcache2>

    Cache Name Config Size Run Size Overhead

    default data cache 0.00 Mb 28.77 Mb 1.47 MbMemory Available For Memory Configured

    Named Caches To Named Caches

    28.77 Mb 0.00 MbThere is 28.77 Mb of memory left over that will be allocated to the defaultcache28.77 #,

    Cache Binding Information

    Cache Name Entity Name Type Index Name Status

    (return status = 0)1> sp_poolconfig 'default data cache', '2M', '8K'2> go00:96/06/12 10:31:46.39 server Configuration file'/export/home/sybase/ll.O.l/VERTIGOll.cfg' has been written and theprevious version has been renamed to'/export/home/sybase/11.0.1/VERTIGO11.018'(return status = 0)1> sp_cacheconfig 'default data cache'

    2> goCache Name Status Type Config Value Run Value

    default data cache Active Default 0.00 Mb 28.77 Mb

    Total 0.00 Mb 28.77 Mb

    Cache: default data cache, Status: Active, Type: DefaultConfig Size: 0.00 Mb, Run Size: 28.77 MbIO Size Wash Size Config Size Run Size

    2 Kb 512 Kb 0.00 Mb 26.77 Mb8 Kb 408 Kb 2.00 Mb 2.00 Mb

    (return status = 0)

    * 2 8

    1> sp_logiosize '8'2> The transaction log for database 'psycho_db' will use I/O size of 8 kbytes.# 'master' 8 .

    (return status = 0)

    www.books-shop.com

    http://www.books-shop.com

  • loglosize (8 2 ) sysattributes

    Class attribute object_type object_cinfo object2 NULL 8

    Object_infol object_info2 object_info3 int_valueNULL NULL NULL 8

    Char_value text_value image_value commentsNULL NULL NULL NULL

    ULC ( )

    [User Environment]number of user connections = 50stack size = DEFAULTstack guard size = DEFAULTsystemwide password expiration = DEFAULTpermission cache entries = DEFAULTuser log cache size = DEFAULTuser log cache spinlock ratio = DEFAULT

    . DEFAULT , sp_conf igure.

    00:96/06/12 10:42:43.47 server Recovering database 'psycho_db'00:96/06/12 10:42:43.48 server Recovery dbid'6 ckpt (10248,19) old#est tran= (10248,18)00:96/06/12 10:42:43.51 server 1 transactions rolled back.00:96/06/12 10:42:44.11 server The transaction log in the database'psycho_db' will use I/O size of 8 Kb.00:96/06/12 10:42:44.15 server Database 'psycho_db' is now online.

    ULC1> sp_configure 'user log cache size'

    2> goParameter Name Default Memory Used Config Value Run Value

    user log cache size 2048 0 2048 2048

    (return status = 0)

    syslogshold1> select * from syslogshold2> go

    dbid reserved spid page xactid masterxactid11 0 0 11971 0x000000000000 0x000000000000

    Starttime nameJan 1 1900 12:00AM $replication_truncation__point

    (1 row affected). ,

    dbid=l1 Sybase (Replication Server System Database, RSSD), .

    begin /ran syslogshold

    1> begin tran psycho

    2> go1> use master2> go

    www.books-shop.com

    http://www.books-shop.com

  • 68 3

    1> select * from syslogshold2> go

    dbid reserved spid page xactid masterxactid

    Starttime name

    (0 rows affected): begin tran ULC,

    syslogshold.

    syslogshold

    1> select * from syslogshold2> go

    dbid reserved spid page xactid masterxactid

    11 0 0 11971 0x000000000000 0x000000000000Starttime name

    Jan 1 1900 12:00AM $replication_truncation_point

    (1 row affected)

    1> use cmsdb2> go1> begin tran psycho2> go1> update service_orders set so_number = so_number + 12> go

    1> use master2> go1> select * from syslogshold2> go

    dbid reserved spid page xactid masterxactid

    11 0 0 11971 0x000000000000 0x0000000000005 0 1 77107 Ox00012d33000e 0x000000000000

    Starttime name

    Jan 1 1900 12:00AM $replication_truncation_pointJan 12 1996 10:48AM psycho

    (2 rows affected): dbid = 5 ,

    , a spid 1 , .

    sysprocesses spid syslogshold

    1> select * from sysprocesses where spid=l2> go

    spid kpid enginenum status suid hostname

    1 341639182 0 sleeping 1 psychoprogram_name hostprocess cmd cpu physical_io

    Isql 13925 UPDATE 17 14325memusage blocked dbid uid gid

    3 0 5 1 0tran_name time_blocked network_pktsz

    Psycho NULL 512

    (1 row affected)

    www.books-shop.com

    http://www.books-shop.com

  • y

    , 1> begin tran psycho2> go 1> update service_orders set so_number = so_number + 12> go (20958 rows affected)1> use master2> go1> select * from syslogshold2> go

    dbid reserved spid page xactid masterxactid

    11 0 0 11971 0x000000000000 0x0000000000005 0 1 77107 Ox00012d33000e 0x000000000000starttime name

    Jan 1 1900 12:00AM $replication_truncation_pointJan 12 1996 10:48AM psycho

    (2 rows affected)

    1> use cmsdb2> go1> rollback tran psycho2> go1> use master2> go1> select * from syslogshold2> go

    dbid reserved spid page xactid masterxactid

    11 0 0 11971 0x000000000000 0x000000000000Starttime name

    Jan 1 1900 12:00AM $replication_truncation_point

    (1 row affected)

    System 11 " , . " , . System 11 " " (dirty reads), " , (lock promotion), (parallellock manager). " , " Sybase.

    " " , , . System 11 " ", , . " " , , . , . , , .

    " " " 0". 3, ,

    [email protected]

    mailto:[email protected]

  • . , SQL".

    , " " . , . , " , . " " " , . " , . " ; .

    System 11 , 200 , . , ". System 11 " , . System 11 " . " (low watermark/high watermark, LWM/HWM) . " (LWM), . , (HWM), " , .

    SQL Server ", . System 11 ; " " . ( ) . System 11 , " , (deadlocks). , " , " . " . " .

    www.books-shop.com

    http://www.books-shop.com

  • 4

    *System 11

    www.books-shop.com

    http://www.books-shop.com

  • +

    SQL Server , (" ) . (select, insert, update delete) " ( "), , " ( ""). , " ", " . SQL Server " . " ; , . OLTP" " . . , " , " , , " .

    +

    SQL Server System 11 " , . , " (select, insert, update delete) " " . , " ( ), , . " , ", " , " (. 4.1).

    ,

    . 4.1. *

    " (. 4.2), . " " . ; . , , (most recently

    www.books-shop.com

    http://www.books-shop.com

  • +

    +

    . 4.2. SQL Server

    used, MRU). , (least recently used, LRU). , ( "). " ( "), , . ", .

    ,.. , . . , " OLTP", DSS". OLTP" " , , . , DSS" " , . " , , OLTP". , LTP" " , ", .

    ; " , " " .

    System 11 " " " . , " (. 4.3), OLTP" DSS" " .

    . 4.3. * System 11

    www.books-shop.com

    http://www.books-shop.com

  • ", . , " " " 16 . SQL Server " 2" .

    + , SQL Server System 11 " , ", , " . System 11 , " " " . " . , " . , DSS" OLTP" , OLTP" DSS", .

    sa_role. " , ; " . , " () (mixed), " " (data"only) " " (log"only). , ". " , . , , , " . " , . ", . , , , .

    . , , . , " . " . , . . " .

    " sysattributes. , ", . sp_configure. , " , sp_helpcache . " , . , , . ", , . sysattributes , " . , , , " , . " , , .

    www.books-shop.com

    http://www.books-shop.com

  • , sysattributes , " " . sysattributes . " sp_helpcache, , . " " sysattributes , . , sysattributes master. " , master . " , sp_helpcache.

    , + . , . . + , , . + , + . , , + . , . , + . + , . , sp_conf igure .

    " , " . " ". , " . 512 . , , . , , " . , " . , " , , " .

    " . " ". , , ; . " , , " ( ). ".

    , ( * ) " . " " ( ,

    www.books-shop.com

    http://www.books-shop.com

  • ), " , " . " , ; . ", , , .. . " .

    ". , , ", (. 4.4). ; . ; . " ; . " , " , " . , ". , " , . master.

    +

    . 4.4. *

    master, " . ( ), " , " ". sysindexes , " . , " .

    * , ", " , " . " , " . "

    www.books-shop.com

    http://www.books-shop.com

  • " . " , ", " , , " .

    , . , . " (" ). " ; ( , ) " , " .

    ,

    +

    1> sp_cacheconf ig 'psycho_cachel' , ' 1 0 '2> go (), (), ()

    (G). " , " .

    :

    [Named Cache: psycho_cache1 ]cache size = 10Mcache status = mixed cache

    " , "sysattributes, . " sysattributes sp_helpcache.

    , ",

    1> sp_bindcache 'psycho_cachel ' , 'psycho_database' , 'psycho_tablel '2> go 1> sp_bindcache ' psycho_cachel ' , 'psycho_database' , 'psycho_tablel ' ,

    'psycho_tablel_index2 '2> go psycho_database., , "

    :

    1> sp_unbindcache 'psycho_cachel' , 'psycho_tablel '2> go

    1> sp_unbindcache 'psycho_cachel' , 'psycho_tablel_index2 '2> go, ,

    . , ,

    www.books-shop.com

    http://www.books-shop.com

  • 1> sp_unbindcache 'psycho_cachel'2> go

    " :

    1> sp_cacheconfig 'psycho_cachel', 2> go , , .

    , , " sysattributes , . " , sysattributes ". " sysattributes , "". " sysattributes, " . sysattributes, """, . , :

    1> sp_unbindcache_all 'psycho_cachel'2> go3> sp_cacheconfig 'psycho_cachel', 4> go , "

    .

    ", ,

    1> sp_helpcache '200 '2> , "

    , . sp_help"cache , :

    1> sp_helpcache2>

    10.38 Mb of overhead memory will be needed to manage a cache of size 200M 200 10.38

    (return status = 0) ,

    200 .

    " sp_conf igure sp_helpcache. " sp_configure , , " ". , , , , , sp_helpcache. , " sysattributes .

    www.books-shop.com

    http://www.books-shop.com

  • " , . , , , . , , . " , " , .

    " ". , " . " " .

    . , , ( ). " " , , " ", , . , " (.. ) ", . " ( ), , , ". , , , " , . , " , . ", , .

    , " , . " , , , .

    , . , " , " , , . SQL Server, ". , " , ".

    "" . , , " " .

    [email protected]

    mailto:[email protected]

  • , OLTP+, DSS+. + . , + OLTP+ , (DSS). +. DSS+ , (OLTP). + .. + OLTP+, OSS+, +.

    ,

    , , , . tempdb. , sysindexes, ( , " sysindexes). , ". , " .

    " ", " , " ".

    +

    + ", , . (buffer pool) . 2" ; , 4, 8 16 (. 4.5). SQL Server " " 2 , " 2 . System 11 " 2 16 (.. 8 ); , 2" , , 8 . ", " " (" " ), " ( ) " .

    ", System 11, " . ", " ,

    www.books-shop.com

    http://www.books-shop.com

  • 2 4

    8 16

    ,

    . 4.5. System 11

    . . ( , ") " . " 2 . " 4, 8 16 . , " 10 5120 2"" . 2" , " 64 16" , , ": 2" ( 8 ) 16" , 2 . " ; , " 2, 4, 8 16 . " . 4.6.

    . 4.6. System 11

    : . , 2+ 2 , ( 2 ). , + Sybase, " + 512 , 16 ". , + 512 , + 16 .

    www.books-shop.com

    http://www.books-shop.com

  • " " " . , , " . , 2" , 2 . , " 16" . 16 , ( ). , , , " set showplan. ( " System 11) , , . , (", ).

    LRU/MRU " " , " (. 4.7). " LRU/MRU" , " ". " (least recently used, LRU) . , ". >>

    . 4.7.

    +? , ", System 11. 16"" " , b dbcc. , ( ) , " , " . " , , . : 8 ", " 8 .

    " , , , . " 4" . , " " (,

    www.books-shop.com

    http://www.books-shop.com

  • ). " .

    + " , " :

    1> sp_poolconfig psycho_cache , '6', '8'2> 6 , "

    8 . 8" (8 buffer pool). sp_cacheconf ig, sp_poolconf ig " : 2" (), (), () (G). " 2 , . ", . " ( ) " . . ", , :

    [Named Cache: psycho_cache]cache size = 10Mcache status = mixed cache

    [8K I/O Buffer Pool]pool size = 6M , ,

    ( , ). sp_cacheconf ig " , " " , .

    " , . ,

    sp_poolconfig psycho_cache, '1M', '4', '8'

    1 8" " 4" , 6 5 . , . , ": , .

    , , . , ", ", " 16 . 2 , b " 2" , .

    sp_poolconfig psycho_cache, 0, '8'

    8" . " " 2 .

    www.books-shop.com

    http://www.books-shop.com

  • , ", OLTP" DSS".

    , . " . " 2" ", 512 . " 2, 4, 8 16 , 2" .

    , (, 2 ). ( ") ( 16 ). System 11 2 , " " " " ". System 11 2, 4, 8 16 . " 2" , " " . " LRU/MRU" . , , , . , " " , " . " , .

    System 11 (wash point) ", , " ("") . , , ""(.. ), . " , , . . , " ("") . , " . , ".

    + " , " , " , ., .

    2"" ". " (. . 4.8).

    . " " , .

    www.books-shop.com

    http://www.books-shop.com

  • 2

    + 2

    + 1

    . 4.8. * , *

    " ", . " , " . , " " " 2" .

    , " , " . OLTP" DSS", " " ( , ). " " , . , " .

    +, + . . , , ? ( , ) ?

    " . " . ": " "Config Size = 0.00" .

    1> sp_helpcache2>

    Cache Name Config Size

    default data cache 0.00 MbMemory Available For

    Named Caches

    22.58 Mb

    Run Size Overhead

    28.58 Mb 1.18 MbMemory Configured

    To Named Caches

    0.00 Mb

    www.books-shop.com

    http://www.books-shop.com

  • There is 22.58 Mb of memory left over that will be allocated to the defaultcache22.58 #,

    Cache Binding Information

    Cache Name Entity Name Type Index Name Status

    (return status = 0)

    1> sp_cacheconfig psycho_cache1, '10M'2> go

    0The change is completed. The SQL Server must be rebooted for the change totake effect. SQL Server.

    (return status =0)

    00:96/06/05 19:17:04.13#Server configuration file'/home/sybase/11.0.1/PSYCHOll.cfg' has been written and the previousversion has been renamed to '/home/sybase/11.0.1/PSYCHO11.002'

    sp_helpcache "Run Size = 0.00" , .

    1> sp_helpcache2>

    Cache Name Config Size Run Size Overhead

    default data cache 0.00 Mb 28.58 Mb 1.18 MbPsycho_cache1 10.00 Mb 0.00 Mb 0.00 Mb

    Memory Available For Memory ConfiguredNamed Caches To Named Caches

    22.58 Mb 10.00 MbThere is 12.58 Mb of memory left over that will be allocated to the defaultcache12.58 #,

    Cache Binding Information

    Cache Name Entity Name Type Index Name Status

    (return status = 0)

    sp_cacheconfig

    . Pend/Act , . sp_cacheconf ig , sp_helpcache (overhead), .

    1> sp_cacheconfig2> go

    Cache Name Status Type Config Value Run Valuedefault data cache Active Default 0.00 Mb 22.58 Mb

    www.books-shop.com

    http://www.books-shop.com

  • Psycho cachel Pend/Act Mixed

    Total

    10.00 Mb

    10.00 Mb

    0.00 Mb

    22.58 MbCache: default data cache, Status: Active, Type: Default

    Config Size: 0.00 Mb, Run Size: 22.58 MbIO Size Wash Size Config Size Run Size2 Kb 512 Kb 0.00 Mb 22.58 Mb(return status = 0)

    1> sp_helpcache psycho_cache12> go

    Cache Name Config Size Run Size Overheadpsycho_cachel 10.00 Mb 0.00 Mb 0.00 Mb

    Cache Binding InformationCache Name Entity Name Type Index Name Status

    (return status = 0)

    ,

    [Named Cache:psycho_cache1]cache size = 10Mcache status = mixed cache

    , .

    1> sp_poolconfig psycho_cache1, '6', '8'2> goThe source pool (1p buffers, total size 0) is not large enough to satisfy therequest to move 6144Kb of memory (1# , 0) 6144

    (return status = 1)

    "Config Size" "Run Size", .

    1> sp_helpcache2>

    Cache Name Config Size Run Size Overheaddefault data cache 0.00 Mb 12.56 Mb 0.65 MbPsycho_cache1 10.00 Mb 10.00 Mb 0.53 Mb

    Memory Available For Memory ConfiguredNamed Caches To Named Caches

    22.58 Mb # 10.00 Mb

    There is 12.58 Mb of memory left over that will be allocated to the defaultcache12.58 #,

    Cache Binding Information

    Cache Name Entity Name Type Index Name Status(return status = 0)

    6 8

    1> sp_poolconfig psycho_cache1, '6', '8'

    www.books-shop.com

    http://www.books-shop.com

  • 2> (return status = 0)

    00:96/06/05 19:24:53.30#Server configuration file' /home/sybase/11.0.1/PSYCHO11 .cfg' has been written and the previousversion has been renamed to ' /home/sybase/11.0.1/PSYCHO11.003 '

    1> sp_poolconfig psycho_cachel2> go

    Cache Name Status Type Config Value Run ValuePsycho_cachel Active Mixed 10.00 Mb 10.00 Mb

    _ Total _ 10.00 Mb _ 10.00 Mb _

    Cache : psycho_cache1 , Status: Active, Type: MixedConfig Size: 10.00 Mb, Run Size: 10.00 Mb

    IO Size Wash Size Config Size Run Size

    2 Kb 512 Kb 0.00 Mb 4.00 Mb8 Kb 2048 Kb 6.00 Mb 6.00 Mb

    (return status=0) .

    :

    [Named Cache :default data cache]cache size = DEFAULTcache status = default data cache

    [Named Cache :psycho_cachel]cache size = 10Mcache status = mixed cache

    [8K I/O Buffer Pool]pool size = 6.0000Mwash size = DEFAULT

    1> sp_bindcache psycho_cache , admindb, def_actions2> go(return status = 0)

    , . "Status = V" .

    1> sp_helpcache psycho_cache12> go

    Cache Name Config Size Run Size Overhead

    psycho_cache1 10.00 Mb 10.00 Mb # 0.53 Mb############### cache Binding Information

    Cache Name Entity Name Type Index Name Status

    psycho_cachel admindb.dbo.def_actions table V(return status = 0)

    sysattrtbutes . "class = 3".

    1> select * from sysattributes2> go

    class attribute object_type object_cinfo object3 0 NULL 1280007591

    www.books-shop.com

    http://www.books-shop.com

  • (17 rows affected)

    1> select object_name(1280007591)2> go

    def_actions

    (1 row affected)

    1> sp_cacheconfig psycho_cache2, '1'2> go

    0 'The change is completed. The SQL Server must be rebooted for the change totake effect. , SQL Server.

    (return status =0)

    00:96/06/05 19:39:41.36#Server configuration file'/home/Sybase/11.0.1/PSYCHO11.cfg' has been written and the previous versionhas been renamed to '/home/sybase/11.0.1/PSYCH011.004'

    . Pend/Act 2 .

    1> sp_cacheconfig2> go

    Cache Name Status Type Config Value Run Value

    default data cache Active Default 0.00 Mb 12.56 Mbpsycho_cachel Active Mixed 10.00 Mb 10.00 Mbpsycho_cache2 Pend/Act Mixed 1.00 Mb 0.00 Mb

    Total 11.00 Mb 22.56 Mb

    Cache: default data cache, Status: Active, Type: DefaultConfig Size: 0.00 Mb, Run Size: 12.56 Mb

    I Size Wash Size Config Size Run Size

    0.00 Mb2 Kb 512 Kb 12.56 Mb

    Cache: psycho_cache1, Status:Config Size: 10.00 Mb,

    I Size Wash Size

    2 Kb 512 Kb

    8 Kb 2048 Kb

    (return status = 0)

    Active, Type: MixedRun Size: 10.00 Mb

    Config Size Run Size

    0.00 Mb 4.00 Mb

    6.00 Mb 6.00 Mb

    [email protected]

    mailto:[email protected]

  • :

    [Named Cache: default data cache]cache size = DEFAULTcache status = default data cache

    [Named Cache :psycho_cache1]cache size = 10Mcache status = mixed cache

    [8K I/O Buffer Pool]pool size = 6.0000Mwash size = DEFAULT

    [Named Cache :psycho_cache2]cache size = 1Mcache status = mixed cache

    :

    00:96/06/05 19:49:44.84 kernelNetwork and device connection limit is 1014.

    00:96/06/05 19:49:44.86 serverNumber of proc buffers allocated: 3039.

    00:96/06/05 19:49:44.94 serverNumber of blocks left for proc headers: 3086.

    00:96/06/05 19:49:44.94 serverMemory allocated for the default data cache cache: 11768 Kb

    00:96/06/05 19:49:44.96 serverSize of the 2K memory pool: 11768 Kb

    00:96/06/05 19:49:44.96 serverMemory allocated for the psycho_cachel cache: 10240 Kb

    00:96/06/05 19:49:44.96 serverSize of the 2K memory pool: 4096 Kb

    00:96/06/05 19:49:44.97 serverSize of the 8K memory pool: 6144 Kb

    00:96/06/05 19:49:44.97 serverMemory allocated for the psycho_cache2 cache: 1024 Kb

    00:96/06/05 19:49:44.97 serverSize of the 2K memory pool: 1024 Kb

    00:96/06/05 19:49:44.98 kernel Initializing virtual device 0,

    1 > sp_helpcache2 > go

    Cache Name Config Size Run Size Overhead

    default data cache 0.00 Mb 11.49 Mb 0.60 Mbpsycho_cachel 10.00 Mb 10.00 Mb 0.53 Mbpsycho_cache2 1.00 Mb 1.00 Mb 0.11 Mb

    Memory AvailableFor Memory ConfiguredNamed Caches To Named Caches

    22.52 Mb 11.00 Mb

    There is 11.52 Mb of memory left over that will be allocatedto the default cache11.52 #,

    www.books-shop.com

    http://www.books-shop.com

  • Cache Binding Information

    Cache Name Entity Name Type Index Name Status

    psycho_cachel admindb.dbo.def_actions table V(return status = 0)

    sp_cacheconfig. "Active".

    1> sp_cacheconfig2> go

    Cache Name

    default data cachepsycho_cachelpsycho_cache2

    Status

    ActiveActiveActive

    Type

    DefaultMixedMixedTotal

    Config Value

    0.00 Mb10.00 Mb1.00 Mb11.00 Mb

    Run Value

    11.49 Mb10.00 Mb1.00 Mb22.49 Mb

    Cache: default data cache, Status: Active, Type: DefaultConfig Size: 0.00 Mb, Run Size: 11.49 Mb

    IO Size Wash Size Config Size Run Size

    2 Kb 512 Kb 0.00 Mb 11.49 Mb

    Cache: psycho_cachel, Status: Active, Type: MixedConfig Size: 10.00 Mb, Run Size: 10.00 Mb

    TO Size

    2 Kb8 Kb

    Wash Size

    512 Kb2048 Kb

    Config Size

    0.00 Mb6.00 Mb

    Run Size

    4.00 Mb6.00 Mb

    Cache: psycho_cache2, Status: Active, Type: MixedConfig Size: 1.00 Mb, Run Size: 1.00 Mb

    IO Size Wash Size Config Size Run Size

    2 Kb 204 Kb 0.00 Mb 1.00 Mb

    (return status = 0)

    1> sp_cacheconfig psycho_cache2, ''2> goThe change is completed. The SQL Server must be rebooted for the changeto take effect. SQL Server.

    (return status =0)

    00:96/06/05 19:51:49.62#Server configuration file'/home/sybase/ll.O.l/PSYCHOll.cfg' has been written and the previous versionhas been renamed to '/home/sybase/11.0.1/PSYCHO11.007'

    "Config Size = 0.00" , .

    1> sp_helpcache2> go

    Cache Name Config Size Run Size Overhead

    default data cache 0.00 Mb 11.49 Mb 0.60 Mb

    www.books-shop.com

    http://www.books-shop.com

  • psycho_cachel 10.00 Mb 10.00 Mb 0.53 Mbpsycho_cache2 0.00 Mb 1.00 Mb 0.11 Mb

    Memory Available For Memory ConfiguredNamed Caches To Named Caches

    22.52 Mb 10.00 MbThere is 12.52 Mb of memory left over that will be allocatedto the default cache12.52 #, ################# Cache Binding Information #############

    Cache Name Entity Name Type Index Name Status

    psycho_cachel admindb.dbo.def_actions table V

    (return status = 0)

    sp_cacheconfig Act/Del , .

    1> sp_cacheconfig2> go

    Cache Name Status Type Config Value Run Value

    default data cache Active Default 0.00 Mb 11.49 Mbpsycho_cachel Active Mixed 10.00 Mb 10.00 Mbpsycho_cache2 Act/Del Mixed 0.00 Mb 1.00 Mb

    _ Total _ 10.00 Mb _ 22.49 Mb _

    Cache: default data cache, Status: Active, Type: DefaultConfig Size: 0.00 Mb, Run Size: 11.49 Mb

    IO Size Wash Size Config Size Run Size

    _ 2 Kb _ 512 Kb _ 0.00 Mb _ 11.49 Mb _

    Cache : psycho_cachel , Status: Active, Type: MixedConfig Size: 10.00 Mb, Run Size: 10.00 Mb

    IO Size Wash Size Config Size Run Size

    2 Kb 512 Kb 0.00 Mb 4.00 Mb_ 8 Kb _ 2048 Kb _ 6.00 Mb _ 6.00 Mb _

    Cache : psycho_cache2 , Status: Act/Del, Type: MixedConfig Size: 0.00 Mb, Run Size: 1.00 Mb

    IO Size Wash Size Config Size Run Size

    2 Kb 204 Kb 0.00 Mb 1.00 Mb

    (return status = 0)

    :

    [Named Cache: default data cache]cache size = DEFAULTcache status = default data cache

    [Named Cache :psycho_cachel]cache size = 10Mcache status = mixed cache

    [8K I/O Buffer Pool]pool size = 6.0000Mwash size = DEFAULT

    ,

    1> sp_cacheconfig psycho_cachel , ''

    www.books-shop.com

    http://www.books-shop.com

  • 2> goThe change is completed. The SQL Server must be rebooted for the changeto take effect. SQL Server.

    (return status = 0)

    00:96/06/05 19:56:03.67#Server configuration file' /home/sybase/11. 0.1/PSYCHOll.cfg' has been written and the previous versionhas been renamed to ' /home/sybase/11.0.1/PSYCHO11.008 '

    :

    [Named Cache: default data cache]cache size = DEFAULTcache status = default data cache

    "Config Size = 0.00" , . .

    1> sp_helpcache2>

    Cache Name Config Size Run Size Overhead

    default data cache 0.00 Mb 11.49 Mb 0.60 Mbpsycho_cachel 0.00 Mb 10.00 Mb 0.53 Mbpsycho_cache2 0.00 Mb 1.00 Mb 0.11 Mb

    Memory Available For Memory ConfiguredNamed Caches To Named Caches

    22.52 Mb 10.00 MbThere is 12.52 Mb of memory left over that will be allocated to the defaultcache12.52 #,

    ################## Cache Binding Information Cache Name Entity Name Type Index Name Status

    Psycho_cachel admindb.dbo.def_actions table V

    (return status =0) .

    . Act/Del , .

    1> sp_cacheconfig2> go

    Cache Name

    default data cachePsycho_cachelPsycho cache2

    Status

    ActiveAct/DelAct/Del

    Type

    DefaultMixedMixed

    Total

    Config Value

    0.00 Mb0.00 Mb0.00 Mb

    0.00 Mb

    Run Value

    11.49 Mb10.00 Mb1.00 Mb

    22.49 Mb

    Cache: default data cache, Status: Active, Type: DefaultConfig Size: 0.00 Mb, Run Size: 11.49 Mb

    IO Size Wash Size Config Size Run Size

    2 Kb 512 Kb 0.00 Mb 11.49 Mb

    www.books-shop.com

    http://www.books-shop.com

  • Cache: psycho_cachel, Status: Act/Del, Type: MixedConfig Size: 0.00 Mb, Run Size: 10.00 Mb

    IO Size Wash Size Config Size Run Size

    2 Kb 512 Kb 0.00 Mb 4.00 Mb8 Kb 2048 Kb 6.00 Mb 6.00 Mb

    Cache: psycho_cache2, Status: Act/Del, Type: MixedConfig Size: 0.00 Mb, Run Size: 1.00 Mb

    IO Size Wash Size Config Size Run Size

    2 Kb 204 Kb 0.00 Mb 1.00 Mb

    (return status = 0)

    .

    1> sp_poolconfig psycho_cachel2> go

    Cache Name

    Psycho cachel

    Status

    Act/Del

    Type

    Mixed

    Total

    Config Value

    0.00 Mb

    0.00 Mb

    Run Value

    10.00 Mb

    10.00 Mb

    Cache: psycho_cachel, Status: Act/Del, Type: MixedConfig Size: 0.00 Mb, Run Size: 10.00 Mb

    IO Size Wash Size Config Size Run Size

    2 Kb 204 Kb 0.00 Mb 1.00 Mb8 Kb 2048 Kb 6.00 Mb 6.00 Mb

    (return status = 0)

    sysattrtbutes class attribute object_type object_cinfo object

    3 0 NULL 1280007591

    object_infol object_info2 object_info3 int_value

    NULL NULL NULL 1

    char_value text_value image_value comments

    psycho_cachel NULL N ULL NULL

    :

    00:96/06/05 20:00:32.05 serverNumber of proc buffers allocated: 3042.

    00:96/06/05 20:00:32.16 serverNumber of blocks left for proc headers: 3091.

    00:96/06/05 20:00:32.16 serverMemory allocated for the default data cache cache: 21320 Kb

    00:96/06/05 20:00:32.21 serverSize of the 2K memory pool: 23120 Kb

    00:96/06/05 20:00:32.21 kernel Initializing virtual device 0,

    00:96/06/05 20:00:37.60 server Recovering database 'admindb'00:96/06/05 20:00:37.61 server

    www.books-shop.com

    http://www.books-shop.com

  • Recovery dbid 4 ckpt (31286,32)00:96/06/05 20:00:37.61 server

    Recovery no active transactions before ckpt.00:96/06/05 20:00:38.90 server Cache binding for database '4', object'1280007591', index '0' is being marked invalid in Sysattributes00:96/06/05 20:00:38.92 server

    The transaction log in the database 'admindb' will use I/O size of 2 Kb.00:96/06/05 20:00:38.97 server

    Database 'admindb' is now online.

    sysattributes (int_value) .

    class attribute object_type object_cinfo object3 0

    object_infolNULL

    char value

    NULLobject_info2 object_info3

    NULL NULL 0text_value image_value comments

    NULL

    1280007591int_value

    Psycho_cachel NULL NULL NULL

    1> sp_helpcache2> go

    Cache Name

    default data cache

    Memory Available ForNamed Caches

    22.58 Mb

    Config Size

    0.00 Mb

    Run Size

    28.58 Mb

    Memory ConfiguredTo Named Caches

    0.00 Mb

    Overhead

    1.18 Mb

    There is 22.58 Mb of memory left over that will be allocated to thedefault cache22.58 #,

    Cache Binding Information

    Cache Name Entity Name Type Index Name Status

    (return status =0)1> sp_cacheconfig2> go

    Cache Name

    default data cache

    Status

    Active

    Type

    DefaultTotal

    Config Value

    0.00 Mb0.00 Mb

    Run Value

    22.58 Mb22.58 Mb

    Cache: default data cache, Status: Active, Type: DefaultConfig Size: 0.00 Mb, Run Size: 22.58 Mb

    IO Size Wash Size Config Size

    0.00 Mb2 Kb 512 Kb

    (return status = 0)

    , 1> sp_cacheconfig psycho_cachel, '10'2>

    Run Size

    22.58 Mb

    The change is completed. The SQL Server must be rebooted for the changeto take effect. SQL Server,

    (return status =0)

    www.books-shop.com

    http://www.books-shop.com

  • "Status = I" .

    1> sp_helpcache2>

    Cache Name Config Size Run Size Overhead

    default data cache 0.00 Mb 22.58 Mb 1.18 MbPsycho_cachel 10.00 Mb 0.00 Mb 0.00 Mb

    Memory Available For Memory ConfiguredNamed Caches To Named Caches

    22.58 Mb 10.00 MbThere is 12.58 Mb of memory left over that will be allocated to thedefault cache12.58 #,

    ################# Cache Binding Information Cache Name Entity Name Type Index Name Status

    psycho_cachel admindb.dbo.def_actions table I

    (return status = 0)

    :

    00:96/06/06 08:16:02.02 serverMemory allocated for the default data cache cache: 12866 Kb

    00:96/06/06 08:16:02.04 serverSize of the 2K memory pool: 12866 Kb

    00:96/06/06 08:16:02.04 serverMemory allocated for the psycho_cachel cache: 10240 Kb

    00:96/06/96 08:16:02.06 server Size of the 2K memory pool: 10240 Kb00:96/06/06 08:16:02.06 kernel Initializing virtual device 0,

    : . . .

    1> sp_helpcache2> g

    Cache Name Config Size Run Size Overhead

    default data cache 0.00 Mb 12.56 Mb 0.65 Mbpsycho_cachel 10.00 Mb 10.00 Mb 0.53 Mb

    Memory Available For Memory ConfiguredNamed Caches To Named Caches

    22.58 Mb 10.00 Mb

    There is 12.58 Mb of memory left over that will be allocated to thedefault cache12.58 #,

    Cache Binding Information

    Cache Name Entity Name Type Index Name Status

    Psycho_cachel admindb.dbo.def_actions table V

    (return status = 0)

    www.books-shop.com

    http://www.books-shop.com

  • 00:96/06/06 08:16:07.49 server Recovering database 'admindb'.00:96/06/06 08:16:07.50 server Recovery dbid 4 ckpt (31287,2)00:96/06/06 08:16:07.50 server

    Recovery no active transactions before ckpt.00:96/06/06 08:16:08.80 server Cache binding for database '4' object'1280007591', index '0' is being marked valid in