Précédent   Forum des professionnels en informatique > Bases de données > Sybase
Sybase Forum sur la base de données Sybase. Avant de poster -> F.A.Q Sybase, Tutoriels Sybase
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 17/10/2005, 11h46   #1
Invité régulier
 
Inscription : octobre 2004
Messages : 34
Détails du profil
Informations forums :
Inscription : octobre 2004
Messages : 34
Points : 9
Points : 9
Par défaut [ASE][HS]Problème de compilation le client testhist

Bonjour

je viens de démarrer le service de historical srvrhist.exe, et après je voudrai de créer une session de consignation, quand j'exécute la commande depuis le poste client j'arrive à se cennecter
Code :
1
2
 
isql -SProd_HS -Usa -P
et quand j'essaye d'executer la procédure "hs_quelqueChose" j'aurai un message d'erreur comme quoi la commande not found.
pour le client testhist.c je ne trouve pas la librairy libcomn.lib que j'en ai besoin pour le compiler
Merci d'avance
sapars est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/10/2005, 13h53   #2
Rédacteur/Modérateur
 
Avatar de fadace
 
Homme Fabien Celaia
Administrateur de base de données
Inscription : octobre 2002
Messages : 3 779
Détails du profil
Informations personnelles :
Nom : Homme Fabien Celaia
Âge : 41
Localisation : Suisse

Informations professionnelles :
Activité : Administrateur de base de données
Secteur : Service public

Informations forums :
Inscription : octobre 2002
Messages : 3 779
Points : 8 124
Points : 8 124
Envoyer un message via ICQ à fadace Envoyer un message via Skype™ à fadace
La db librairie cliente libcomn.lib se trouve sur le cd d'install de votre serveur (ou de votre client si vous n'avez pas que la version runtime), mais c'est un module facultatif. Attention : si vous développez avec Borland C, il y a des librairies particulières (dans le répertoire blib)
__________________
Sr DBA Oracle / Sybase / MS-SQL / DB2 / Informix / Postgresql
Administrateur SAP
Mes articles

Attention : pas de réponse technique par MP : pensez aux autres, passez par les forums !
fadace est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/10/2005, 14h41   #3
Invité régulier
 
Inscription : octobre 2004
Messages : 34
Détails du profil
Informations forums :
Inscription : octobre 2004
Messages : 34
Points : 9
Points : 9
merci chef de vos réponses
pour l'instant je voudrai juste d'exécuter le fichier d'exemple de historical "views.wri" pour ce faire j'a procédé comme suit:
Code :
1
2
3
4
5
6
 
isql -SProd_HS -Usa -P
USE master
go
:r path\views.wri
go
j'ai les erreurs suivants:
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
 
Msg 102, Level 15, State 1:
Line 1:
Incorrect syntax near '/'.
Msg 132, Level 15, State 1:
Line 2:
The label 'NOTE': has already been declared. Label names must be UNIQUE within a
query batch OR stored procedure
Msg 132, Level 15, State 1:
Line 3:
The label 'NOTE': has already been declared. Label names must be UNIQUE within a
query batch OR stored procedure
Msg 132, Level 15, State 1:
Line 4:
The label 'NOTE': has already been declared. Label names must be UNIQUE within a
query batch OR stored procedure
Msg 132, Level 15, State 1:
Line 5:
The label 'NOTE': has already been declared. Label names must be UNIQUE within a
query batch OR stored procedure
Msg 102, Level 15, State 1:
Line 371:
Incorrect syntax near 'a'.
Msg 102, Level 15, State 1:
Line 498:
Incorrect syntax near '/'.
Msg 105, Level 15, State 1:
Line 565:
Unclosed quote before the character string 's
//      spinlock was forced to wait,
since the start of the session.
//      The actual number of cache hits and misses
for the session
//      are also collected.
hs_create_view data_cache_sum,
 
"Cache Name", "Value for Sample",
        "Cache Hit Pct", "Value for Session",
        "Cache
Efficiency", "Value for Session",
        "Cache Spinlock Contention", "Value for
Session",
        "Cache Hits", "Value for Session",
        "Cache Misses", "Value for
Session"
sapars est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/10/2005, 15h12   #4
Rédacteur/Modérateur
 
Avatar de fadace
 
Homme Fabien Celaia
Administrateur de base de données
Inscription : octobre 2002
Messages : 3 779
Détails du profil
Informations personnelles :
Nom : Homme Fabien Celaia
Âge : 41
Localisation : Suisse

Informations professionnelles :
Activité : Administrateur de base de données
Secteur : Service public

Informations forums :
Inscription : octobre 2002
Messages : 3 779
Points : 8 124
Points : 8 124
Envoyer un message via ICQ à fadace Envoyer un message via Skype™ à fadace
Pour info, vous pourriez me réafficher le contenu du fichier .wri ?
__________________
Sr DBA Oracle / Sybase / MS-SQL / DB2 / Informix / Postgresql
Administrateur SAP
Mes articles

Attention : pas de réponse technique par MP : pensez aux autres, passez par les forums !
fadace est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/10/2005, 15h21   #5
Invité régulier
 
Inscription : octobre 2004
Messages : 34
Détails du profil
Informations forums :
Inscription : octobre 2004
Messages : 34
Points : 9
Points : 9
pour connaître le status de historical
j'ai le message
Stored procedure 'hs_status' not found.

le fichier views.wri

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
 
// NOTE:  This file contains sample views AND comments.
// NOTE:  Every sample VIEW IS a valid VIEW FOR the Historical Server.
// NOTE:  Since the Historical Server will NOT IGNORE the comment
// NOTE:  LINES, these LINES should be excluded FROM the text
// NOTE:  passed TO the Historical Server.
 
 
// Server Performance Summary
//	This VIEW represents overall SQL Server performance.
//	It shows the number of LOCK requests per second, the
//	percentage of the sample interval when the SQL Server was busy,
//	the number of transactions processed per second, AND the number
//	of times the SQL Server detected a deadlock during the
//	most recent sample interval.
hs_create_view server_perf_sum,
"Lock Count",			"Rate for Sample",
"CPU Busy Percent",		"Value for Sample",
"Transactions",			"Rate for Sample",
"Deadlock Count",		"Value for Sample"
 
 
// Cache Performance Summary
//	This VIEW represents the overall effectiveness of SQL Server
//	caches during the most recent sample interval.  It shows the
//	percentage of DATA page reads that were satisfied FROM the SQL
//	Server DATA caches, AND the percentage of requests FOR procedure
//	execution that were satisfied FROM the SQL Server procedure
//	cache.
hs_create_view cache_perf_sum,
"Page Hit Percent", 		"Value for Sample",
"Procedure Hit Percent", 	"Value for Sample"
 
 
// Network Performance Summary
//	This VIEW represents the rate of SQL Server activity over ALL
//	its network connections during the most recent sample
//	interval.  It shows the number of bytes per second that
//	were received BY AND sent BY the SQL Server during the
//	interval.
hs_create_view network_perf_sum,
"Net Bytes Received",		"Rate for Sample",
"Net Bytes Sent",		"Rate for Sample"
 
 
// Device I/O Performance Summary
//	This VIEW represents reads AND writes TO DATABASE devices
//	BY the SQL Server, accumulated FROM the start of the recording
//	session.  It shows the overall rate of reads AND writes TO
//	DATABASE devices since the start of the session,
//	AS well AS the most active DATABASE device FOR that time period
//	AND the rate of reads AND writes TO the most active device.
hs_create_view device_perf_sum,
"Device I/O",			"Rate for Session",
"Most Active Device Name",	"Value for Session",
"Most Active Device I/O",	"Rate for Session"
 
 
// LOCK Performance Summary
//	This VIEW represents the total number of locks of each type
//	requested AND granted during the most recent sample interval.
hs_create_view lock_perf_sum,
"Lock Type",			"Value for Sample",
"Lock Results Summarized",	"Value for Sample",
"Lock Count",			"Value for Sample"
 
 
// Process State Summary
//	This VIEW shows the number of processes that were IN each
//	process state at the end of the most recent sample interval.
hs_create_view process_perf_sum,
"Process State",		"Value for Sample",
"Process State Count", 		"Value for Sample"
 
 
// Device I/O FOR Sample Interval
//	This VIEW represents the I/O activity that occurred
//	ON the SQL Server's database devices during the most
//	recent sample interval.  It identifies each device by name.
//	Device I/O levels are presented in two ways: as counts
//	of total device I/Os, reads and writes during the most
//	recent sample interval, and also as rates of total I/Os,
//	reads and writes per second during the sample interval.
hs_create_view sample_device_io,
"Device Name",		"Value for Sample",
"Device I/O", 		"Value for Sample",
"Device Reads",		"Value for Sample",
"Device Writes",	"Value for Sample",
"Device I/O", 		"Rate for Sample",
"Device Reads",		"Rate for Sample",
"Device Writes",	"Rate for Sample"
 
 
// Device I/O for Recording Session
//	This view represents the I/O activity that has occurred
//	on the SQL Server's DATABASE devices since the start of the
//	recording session.  It identifies each device BY name.
//	Device I/O levels are presented IN two ways: AS counts
//	of total device I/Os, reads AND writes since the start
//	of the session, AND also AS overall rates of total I/Os,
//	reads AND writes per second since the session began.
hs_create_view session_device_io,
"Device Name",		"Value for Sample",
"Device Reads",		"Value for Session",
"Device Writes",	"Value for Session",
"Device I/O", 		"Value for Session",
"Device Reads",		"Rate for Session",
"Device Writes",	"Rate for Session",
"Device I/O", 		"Rate for Session"
 
 
// Network Activity FOR Sample Interval
//	This VIEW represents the network activity over ALL of
//	the SQL Server's network connections during the most
//	recent sample interval.  It shows the default packet size,
/	the maximum packet size, and both average packet sizes sent
//	and received for the sample interval.  The view shows the number of
//	packets sent, the number of packets received, and the rate at
//	which packets were sent and received.  It also shows the number
//	of bytes sent and the number of bytes received and the rate
//	at which bytes were sent and received.
hs_create_view sample_network_activity,
"Net Default Packet Size",	"Value for Sample",
"Net Max Packet Size",		"Value for Sample",
"Net Packet Size Sent",		"Value for Sample",
"Net Packet Size Received",	"Value for Sample",
"Net Packets Sent",		"Value for Sample",
"Net Packets Received",		"Value for Sample",
"Net Packets Sent",		"Rate for Sample",
"Net Packets Received",		"Rate for Sample",
"Net Bytes Sent",		"Value for Sample",
"Net Bytes Received",		"Value for Sample",
"Net Bytes Sent",		"Rate for Sample",
"Net Bytes Received",		"Rate for Sample"
 
 
// Network Activity for Recording Session
//	This view represents the network activity over all of
//	the SQL Server's network connections since the start of the
//	recording session.  It shows the DEFAULT packet size,
//	the maximum packet size, AND BOTH average packet sizes sent
//	AND received since the start of the session.  The VIEW shows the
//	number of packets sent, the number of packets received,
//	AND the rate at which packets were sent AND received.
//	It also shows the number of bytes sent AND the number of
//	bytes received AND the rate at which bytes were
//	sent AND received.
hs_create_view session_network_activity,
"Net Default Packet Size",	"Value for Sample",
"Net Max Packet Size",		"Value for Sample",
"Net Packet Size Sent",		"Value for Session",
"Net Packet Size Received",	"Value for Session",
"Net Packets Sent",		"Value for Session",
"Net Packets Received",		"Value for Session",
"Net Packets Sent",		"Rate for Session",
"Net Packets Received",		"Rate for Session",
"Net Bytes Sent",		"Value for Session",
"Net Bytes Received",		"Value for Session",
"Net Bytes Sent",		"Rate for Session",
"Net Bytes Received",		"Rate for Session"
 
 
// Procedure Cache Statistics FOR Sample Interval
//	This VIEW represents the effectiveness of the procedure cache
//	of the SQL Server FOR the most recent sample interval.  It
//	shows the percentage of requests FOR stored procedure
//	executions that were satisfied BY the procedure cache FOR the
//	most recent sample interval.  The VIEW also shows the number
//	of logical reads AND physical reads of stored procedures
//	during the most recent sample interval, AND the rate of logical
//	AND physical reads of stored procedures FOR the	most recent
//	sample interval.
hs_create_view sample_procedure_cache_stats,
"Procedure Hit Percent",	"Value for Sample",
"Procedure Logical Reads",	"Value for Sample",
"Procedure Logical Reads",	"Rate for Sample",
"Procedure Physical Reads",	"Value for Sample",
"Procedure Physical Reads",	"Rate for Sample"
 
 
// Procedure Cache Statistics FOR Recording Session
//	This VIEW represents the effectiveness of the procedure cache
//	of the SQL Server since the start of the recording session.  It
//	shows the percentage of requests FOR stored procedure
//	executions that were satisfied BY the procedure cache.
//	The VIEW also shows the number of logical reads AND
//	physical reads of stored procedures since the start of
//	the session, AND the overall rate of logical AND physical reads
//	of stored procedures since the start of the session.
hs_create_view session_procedure_cache_stats,
"Procedure Hit Percent",	"Value for Session",
"Procedure Logical Reads",	"Value for Session",
"Procedure Logical Reads",	"Rate for Session",
"Procedure Physical Reads",	"Value for Session",
"Procedure Physical Reads",	"Rate for Session"
 
 
// DATA Cache Statistics FOR Sample Interval
//	This VIEW represents the overall effectiveness of the
//	combined DATA caches of the SQL Server FOR the most recent
//	sample interval.  It shows the percentage of requests FOR
//	page reads that were satisfied FROM cache FOR the most
//	recent sample interval.  The VIEW also shows the number
//	of logical page reads, physical page reads, AND page writes
//	FOR the	most recent sample interval AND	the rate of
//	logical page reads, physical page reads, AND page writes
//	FOR the most recent sample interval.
hs_create_view sample_page_cache_stats,
"Page Hit Percent",		"Value for Sample",
"Logical Page Reads",		"Value for Sample",
"Logical Page Reads",		"Rate for Sample",
"Physical Page Reads",		"Value for Sample",
"Physical Page Reads",		"Rate for Sample",
"Page Writes",			"Value for Sample",
"Page Writes",			"Rate for Sample"
 
 
// DATA Cache Statistics FOR Recording Session
//	This VIEW represents the overall effectiveness of the
//	combined DATA caches of the SQL Server since the start of
//	the recording session.	It shows the percentage of requests
//	FOR page reads that were satisfied FROM cache FOR the
//	recording session.  The VIEW also shows the number of
//	logical page reads, physical page reads, AND page writes FOR the
//	recording session AND the rate of logical page reads,
//	physical page reads AND page writes FOR the recording session.
hs_create_view session_page_cache_stats,
"Page Hit Percent",		"Value for Session",
"Logical Page Reads",		"Value for Session",
"Logical Page Reads",		"Rate for Session",
"Physical Page Reads",		"Value for Session",
"Physical Page Reads",		"Rate for Session",
"Page Writes",			"Value for Session",
"Page Writes",			"Rate for Session"
 
 
// Database-Object Page I/O
//	This VIEW represents the objects IN the SQL Server DATABASES
//	AND the page I/Os associated WITH them.  It shows the
//	SQL Server DATABASE name AND ID, AND the object's name and ID
//	within the database.  This view shows for each object the
//	associated logical page reads, physical page reads, and
//	page writes for both the most recent sample interval and
//	for the recording session.  The Page I/Os recorded for a
//	given database object include I/Os against indexes on the table,
//	as well as I/Os against	pages of the table itself.
hs_create_view object_page_io,
"Database ID",			"Value for Sample",
"Database Name", 		"Value for Sample",
"Object ID",			"Value for Sample",
"Object Name",			"Value for Sample",
"Logical Page Reads",		"Value for Sample",
"Physical Page Reads",		"Value for Sample",
"Page Writes",			"Value for Sample",
"Logical Page Reads",		"Value for Session",
"Physical Page Reads",		"Value for Session",
"Page Writes",			"Value for Session"
 
 
// Process Page I/O
//	This view represents the page I/Os summarized on a per SQL
//	Server process level for the most recent sample.  It shows the
//	login name, process ID and kernel process ID for each process
//	in the SQL Server that generated page I/Os during the interval.
//	This view also shows, on a per process level, the total page I/Os,
//	the percentage of page I/O requests that could be satisfied by
//	the SQL Server data caches, and the number of logical page reads,
//	physical page reads, and page writes for the most recent
//	sample interval.
hs_create_view process_page_io,
"Login Name",			"Value for Sample",
"Process ID",			"Value for Sample",
"Kernel Process ID",		"Value for Sample",
"Page I/O",			"Value for Sample",
"Page Hit Percent",		"Value for Sample",
"Logical Page Reads",		"Value for Sample",
"Physical Page Reads",		"Value for Sample",
"Page Writes",			"Value for Sample"
 
 
// Procedure Page I/O
//	This view represents page I/Os that occurred while running
//	stored procedures during the most recent sample
//	interval.  For each stored procedure that generated page I/Os
//	during the sample interval, it shows the stored procedure name
//	and ID, together with the name and ID of the database that
//	contains the procedure.  If page I/Os were produced when no
//	stored procedure was active, those I/Os are associated with
//	procedure ID and database ID values of zero.
//	This view also shows, on a per stored procedure level,
//	the total page I/Os, the percentage of page I/O requests that
//	could be satisfied by the SQL Server data caches, and the number
//	of logical page reads, physical page reads, and page writes
//	generated while executing the stored procedure during the
//	most recent sample interval.
hs_create_view procedure_page_cache_io,
"Procedure Database Name",	"Value for Sample",
"Procedure Database ID",	"Value for Sample",
"Procedure Name",		"Value for Sample",
"Procedure ID",			"Value for Sample",
"Page I/O",			"Value for Sample",
"Page Hit Percent",		"Value for Sample",
"Logical Page Reads",		"Value for Sample",
"Physical Page Reads",		"Value for Sample",
"Page Writes",			"Value for Sample"
 
 
// Process-Database-Object Page I/O
//	This view represents the page I/Os by database object for each
//	SQL Server process.  It shows the login name, process ID and
//	kernel process ID for each process that had page I/Os during
//	the most recent sample interval.  And for each such process,
//	for each database object it accessed the view also shows the
//	object name and object ID, and the object's DATABASE name AND ID,
//	plus the page I/Os associated the object.
//	The VIEW also shows the total page I/Os, the percentage
//	of page I/O requests that could be satisfied BY the SQL Server
//	DATA caches, AND the number of logical page reads,
//	physical page reads, AND page writes FOR the most recent
//	sample interval.
hs_create_view process_object_page_io,
"Login Name",			"Value for Sample",
"Process ID",			"Value for Sample",
"Kernel Process ID",		"Value for Sample",
"Database Name",		"Value for Sample",
"Database ID",			"Value for Sample",
"Object Name",			"Value for Sample",
"Object ID",			"Value for Sample",
"Object Type",			"Value for Sample",
"Page I/O",			"Value for Sample",
"Page Hit Percent",		"Value for Sample",
"Logical Page Reads",		"Value for Sample",
"Physical Page Reads",		"Value for Sample",
"Page Writes",			"Value for Sample"
 
 
// Process-Stored Procedure Page I/O
//	This VIEW represents the page I/Os associated WITH stored procedure
//	executions BY SQL Server processes.  It shows the login
//	name, process ID AND kernel process ID FOR each process that
//	generated page I/Os during the sample interval.
//	AND FOR each process AND stored procedure that generated page I/Os,
//	it shows the name AND ID of the DATABASE that contains the
//	stored procedure, AS well AS the name AND ID of the
//	procedure itself.  The VIEW shows the total page I/Os,
//	the percentage of page I/O requests that could be satisfied
//	FROM DATA caches, AND the number of logical page reads,
//	physical page reads, AND page writes FOR the most
//	recent sample interval.
hs_create_view process_procedure_page_io,
"Login Name",			"Value for Sample",
"Process ID",			"Value for Sample",
"Kernel Process ID",		"Value for Sample",
"Procedure Database Name",	"Value for Sample",
"Procedure Database ID",	"Value for Sample",
"Procedure Name",		"Value for Sample",
"Procedure ID",			"Value for Sample",
"Page I/O",			"Value for Sample",
"Page Hit Percent",		"Value for Sample",
"Logical Page Reads",		"Value for Sample",
"Physical Page Reads",		"Value for Sample",
"Page Writes",			"Value for Sample"
 
 
// DATABASE Object LOCK STATUS
//	This VIEW shows the STATUS of locks ON DATABASE objects,
//	which are held OR being requested BY SQL Server processes
//	AS of the end of the most recent sample interval.  Each LOCK
//	IS IDENTIFIED BY the the name AND ID of the
//	object being locked, the name AND ID of the DATABASE that
//	contains that object, AND the page number TO which the LOCK
//	applies (IF it IS a page LOCK).  Each SQL Server process
//	associated WITH the LOCK IS also IDENTIFIED, BY its
//	login name, process ID AND kernel process ID.
//	The type of LOCK IS presented, together WITH the current
//	STATUS of the LOCK AND an indication of whether this IS a
//	"demand" LOCK.  IF the LOCK IS being requested BY the process,
//	the amount of time that	this process has waited TO acquire
//	the LOCK, AND the process ID of the process that already
//	holds the LOCK, are shown.  IF instead the process already
//	holds the LOCK,	then the count of other processes waiting TO
//	acquire that LOCK IS shown.
hs_create_view object_lock_status,
"Database ID",			"Value for Sample",
"Database Name",		"Value for Sample",
"Object ID",			"Value for Sample",
"Object Name",			"Value for Sample",
"Page Number",			"Value for Sample",
"Login Name",			"Value for Sample",
"Process ID",			"Value for Sample",
"Kernel Process ID",		"Value for Sample",
"Lock Type",			"Value for Sample",
"Lock Status",			"Value for Sample",
"Demand Lock",			"Value for Sample",
"Time Waited on Lock",		"Value for Sample",
"Blocking Process ID",		"Value for Sample",
"Locks Being Blocked Count",	"Value for Sample"
 
 
// Process Activity
//	This VIEW shows the CPU utilization, Page I/Os, AND current
//	process state FOR ALL processes IN the SQL Server.  FOR the
//	most recent sample interval, the login name, process ID AND
//	kernel process ID are given FOR each process, together WITH
//	its current process state.  The VIEW also presents each
//	process's connect time, total page I/Os and CPU utilization
//	time, accumulated since the start of the recording session.
hs_create_view process_activity,
"Login Name",			"Value for Sample",
"Process ID",			"Value for Sample",
"Kernel Process ID",		"Value for Sample",
"Connect Time",			"Value for Session",
"Page I/O",			"Value for Session",
"CPU Time",			"Value for Session",
"Current Process State",	"Value for Sample"
 
 
// Process Detail Page I/O
//	This view represents the page I/Os for each SQL Server process
//	in detail.  The login name, process ID, kernel process ID,
//	current process state and current engine are shown for each
//	SQL Server process, as of the end of the most recent sample interval.
//	The view shows the percentage of page I/O requests that could be
//	satisfied by the SQL Server data caches, both for the sample interval
//	and since the start of the session.  It also presents the number of
//	logical page reads, physical page reads, and page writes accumulated
//	since the start of the recording session.
hs_create_view process_detail_io,
"Login Name",			"Value for Sample",
"Process ID",			"Value for Sample",
"Kernel Process ID",		"Value for Sample",
"Current Process State",	"Value for Sample",
"Current Engine",		"Value for Sample",
"Connect Time",			"Value for Session",
"CPU Time",			"Value for Session",
"Page Hit Percent",		"Value for Sample",
"Page Hit Percent",		"Value for Session",
"Logical Page Reads",		"Value for Session",
"Physical Page Reads",		"Value for Session",
"Page Writes",			"Value for Session"
 
 
// Process Detail for Locks
//	This view shows the status of locks held or being requested
//	by SQL Server processes as of the end of the most recent
//	sample interval.  Each lock is identified by the login name,
//	process ID and kernel process ID of the SQL Server process
//	associated with the lock, as well as the name and ID of the
//	object being locked, the name and ID of the database that
//	contains that object, and the page number to which the lock
//	applies (if it is a page lock).  The current status of each
//	lock is presented, as is an indication of whether this is
//	a "demand" lock.  If the lock is being requested by the
//	process, the amount of time that this process has waited to
//	acquire the lock, and the process ID of the process that
//	already holds the lock, are shown.  If instead the process
//	already holds the lock, the count of other processes waiting
//	to acquire that lock is shown.
hs_create_view process_detail_locks,
"Login Name",			"Value for Sample",
"Process ID",			"Value for Sample",
"Kernel Process ID",		"Value for Sample",
"Database Name", 		"Value for Sample",
"Database ID",			"Value for Sample",
"Object Name",			"Value for Sample",
"Object ID",			"Value for Sample",
"Page Number",			"Value for Sample",
"Lock Status",			"Value for Sample",
"Demand Lock",			"Value for Sample",
"Time Waited on Lock",		"Value for Sample",
"Blocking Process ID",		"Value for Sample",
"Locks Being Blocked Count",	"Value for Sample"
 
 
// Process Locks
//	This view shows the count of lock requests for every process
//	in the SQL Server that generated lock requests during the
//	most recent sample interval.
hs_create_view process_lock,
"Login Name",			"Value for Sample",
"Process ID",			"Value for Sample",
"Kernel Process ID",		"Value for Sample",
"Lock Count",			"Value for Sample"
 
 
// Stored Procedure Activity
//	This view shows stored procedure activity at the level of
//	procedure statement.  Each statement of any stored procedure
//	that was executed during the most recent sample interval is
//	identified by the name and ID of the database that contains
//	the procedure, the name and ID of the procedure itself,
//	the relative number of the statement within the
//	stored procedure, and the line of the procedure's text ON which
//	the statement begins.
//	The VIEW includes the number of times each statement was
//	executed, BOTH during the most recent sample interval AND 
//	since the start of the recording session.  It also contains
//	the average elapsed time needed TO execute the statement, BOTH
//	FOR the sample interval AND FOR the recording session so far.
hs_create_view procedure_activity,
"Procedure Database ID",	"Value for Sample",
"Procedure Database Name",	"Value for Sample",
"Procedure ID",			"Value for Sample",
"Procedure Name",		"Value for Sample",
"Procedure Line Number",	"Value for Sample",
"Procedure Statement Number",	"Value for Sample",
"Procedure Execution Count",	"Value for Sample",
"Procedure Execution Count",	"Value for Session",
"Procedure Elapsed Time",	"Avg for Sample",
"Procedure Elapsed Time",	"Avg for Session"
 
 
// Transaction Activity
//	This VIEW details the transaction activity that occurred
//	IN the SQL Server, BOTH FOR the sample interval AND the
//	recording session.
hs_create_view transaction_activity,
"Transactions",			"Value for Sample",
"Rows Deleted",			"Value for Sample",
"Rows Inserted",		"Value for Sample",
"Rows Updated",			"Value for Sample",
"Rows Updated Directly",	"Value for Sample",
"Transactions",			"Value for Session",
"Rows Deleted",			"Value for Session",
"Rows Inserted",		"Value for Session",
"Rows Updated",			"Value for Session",
"Rows Updated Directly",	"Value for Session",
"Transactions",			"Rate for Sample",
"Rows Deleted",			"Rate for Sample",
"Rows Inserted",		"Rate for Sample",
"Rows Updated",			"Rate for Sample",
"Rows Updated Directly",	"Rate for Sample",
"Transactions",			"Rate for Session",
"Rows Deleted",			"Rate for Session",
"Rows Inserted",		"Rate for Session",
"Rows Updated",			"Rate for Session",
"Rows Updated Directly",	"Rate for Session"
 
 
// Engine Activity
//	This VIEW shows the level of activity FOR each active
//	SQL Server engine during the most recent sample interval.
//	FOR each engine, the percentage of the sample interval
//	when that engine used the CPU IS presented.  Also shown are
//	the number of logical page reads, physical page reads AND
//	page writes that were generated BY that engine during the
//	sample interval.
hs_create_view engine_activity,
"Engine Number",		"Value for Sample",
"CPU Busy Percent",		"Value for Sample",
"Logical Page Reads",		"Value for Sample",
"Physical Page Reads",		"Value for Sample",
"Page Writes",			"Value for Sample"
 
 
// DATA Cache Activity FOR Individual Caches
//      This VIEW IS only available FOR a Release 11 SQL Server.
//	It contains information about the performance of individual
//	DATA caches.
//	FOR each named cache configured IN the SQL Server, AND
//	also FOR the DEFAULT DATA cache, this VIEW collects
//	the cache's name and the percentage of page reads for objects
//	bound to the cache that were satisfied from the cache, since
//	the start of the recording session.  It also presents a measure
//	of the efficiency of the cache's space utilization, AND the
//	percentage of times when an attempt TO acquire the cache's
//	spinlock was forced to wait, since the start of the session.
//	The actual number of cache hits and misses for the session
//	are also collected.
hs_create_view data_cache_sum,
        "Cache Name", "Value for Sample",
	"Cache Hit Pct", "Value for Session",
	"Cache Efficiency", "Value for Session",
	"Cache Spinlock Contention", "Value for Session",
	"Cache Hits", "Value for Session",
	"Cache Misses", "Value for Session"
sapars est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/10/2005, 10h04   #6
Rédacteur/Modérateur
 
Avatar de fadace
 
Homme Fabien Celaia
Administrateur de base de données
Inscription : octobre 2002
Messages : 3 779
Détails du profil
Informations personnelles :
Nom : Homme Fabien Celaia
Âge : 41
Localisation : Suisse

Informations professionnelles :
Activité : Administrateur de base de données
Secteur : Service public

Informations forums :
Inscription : octobre 2002
Messages : 3 779
Points : 8 124
Points : 8 124
Envoyer un message via ICQ à fadace Envoyer un message via Skype™ à fadace
Faites un
Code :
isql -SProd_HS -Usa -P -ipath\views.wri
L'Historical Server n'a pas le même parser que l'ASE (donc pas de GO, pas de USE, ...)
__________________
Sr DBA Oracle / Sybase / MS-SQL / DB2 / Informix / Postgresql
Administrateur SAP
Mes articles

Attention : pas de réponse technique par MP : pensez aux autres, passez par les forums !
fadace est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/10/2005, 10h55   #7
Invité régulier
 
Inscription : octobre 2004
Messages : 34
Détails du profil
Informations forums :
Inscription : octobre 2004
Messages : 34
Points : 9
Points : 9
Merci chef
j'ai bien tapé votre commande
Code :
1
2
3
4
 
X:\> isql -SProd_HS -Usa -P -iE:\sybase\ASE-12_5\sample\histsrvr\views.wri
 
X:\>
est ce normale qu'il n'affiche rien
sapars est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/01/2006, 09h33   #8
Rédacteur/Modérateur
 
Avatar de fadace
 
Homme Fabien Celaia
Administrateur de base de données
Inscription : octobre 2002
Messages : 3 779
Détails du profil
Informations personnelles :
Nom : Homme Fabien Celaia
Âge : 41
Localisation : Suisse

Informations professionnelles :
Activité : Administrateur de base de données
Secteur : Service public

Informations forums :
Inscription : octobre 2002
Messages : 3 779
Points : 8 124
Points : 8 124
Envoyer un message via ICQ à fadace Envoyer un message via Skype™ à fadace
Pour info : la doc HS en français
Il y a quoi dans E:\sybase\ASE-12_5\sample\histsrvr\views.wri ?
__________________
Sr DBA Oracle / Sybase / MS-SQL / DB2 / Informix / Postgresql
Administrateur SAP
Mes articles

Attention : pas de réponse technique par MP : pensez aux autres, passez par les forums !
fadace est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 05h18.


 
 
 
 
Partenaires

Hébergement Web