IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Administration SQL Server Discussion :

SQLSERVER 2008 / SQLDIAG


Sujet :

Administration SQL Server

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre Expert

    Homme Profil pro
    Chargé de Développement et d'Analyse de données
    Inscrit en
    Mars 2010
    Messages
    1 278
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Chargé de Développement et d'Analyse de données
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Mars 2010
    Messages : 1 278
    Par défaut SQLSERVER 2008 / SQLDIAG
    Bonjour tout le monde !
    J’ai collecté des infos de performance avec SQLDIAG sur une instance SQL SERVER 2005 SP2 et ça marche nickel ! j’arrive donc à mettre en perspective les infos du performance monitor (fichier .BLG) et les traces SQLTRACE (fichier …__sp_trace.trc). jusque là aucun problème.

    J’ai donc copié le fichier de configuration (mySQLDIAG.xml) pour exécuter le SQLDIAG sur mon instance SQLSERVER 2008 SP0. J’ai pris soins de modifier dans mon fichier de config (mySQLDIAG.xml) la balise <Instance name="*" windowsauth="true" ssver="10" user="">
    pour prendre en compte la version 10 (SQLSERVER 2008) au lieu de 9 (SQLSERVER2005). Lors du lancement de la commande
    sqldiag /I E:\traceSQLDIAG\mySQLDIAG.xml /O E:\TraceSQLDIAG\testToday j’ai cette erreur :

    2010/03/29 16:50:33.18 TESTBED_ZINZINDOHOUE\* Error updating perfmon log . Function result: -2147481643. Message: Aucune donnée à renvoyer.

    Auriez-vous une idée sur cette erreur ?

    Merci d'avance
    Etienne ZINZINDOHOUE
    Billets-Articles

  2. #2
    Membre émérite
    Profil pro
    Inscrit en
    Février 2008
    Messages
    758
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 758
    Par défaut
    Hello Etienne,

    J'ai bien reproduit ton problème. Je suis dessus, il n'y a aucune référence dans la kb MS pour ce problème mais je subodore une vieille erreur de syntaxe, ou qq chose comme ça.

    Je te tiens au courant.

    David B.

  3. #3
    Membre émérite
    Profil pro
    Inscrit en
    Février 2008
    Messages
    758
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 758
    Par défaut
    Re-,

    Il faudrait nous poster le contenu du fichier XML s'il n'est pas trop volumineux.

    merci,

    David B.

  4. #4
    Membre Expert

    Homme Profil pro
    Chargé de Développement et d'Analyse de données
    Inscrit en
    Mars 2010
    Messages
    1 278
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Chargé de Développement et d'Analyse de données
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Mars 2010
    Messages : 1 278
    Par défaut Contenu mySQLDIAG.xml
    [quote=dbaffaleuf;5098940]Re-,

    Il faudrait nous poster le contenu du fichier XML s'il n'est pas trop volumineux.

    merci,

    David B.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
     
    <?xml version="1.0" standalone="yes"?>
    <dsConfig  
    		  xmlns:pssd="http://tempuri.org" 
    		  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    		  xsi:noNamespaceSchemaLocation="SQLDiag_Schema.Xsd">
        <Collection setupver="3.0.1.7" casenumber="SRX000000000000">
            <Machines>
                <Machine name=".">
                    <MachineCollectors>
                        <EventlogCollector enabled="false" startup="false" shutdown="true" />
                        <PerfmonCollector enabled="true" pollinginterval="5" maxfilesize="256">
    						<PerfmonCounters>
    							<PerfmonObject name="\PhysicalDisk(*)" enabled="true">
    								 <PerfmonCounter name="\Avg. Disk sec/Read" enabled="true" />
    								 <PerfmonCounter name="\Avg. Disk sec/Write" enabled="true" />
    								 <PerfmonCounter name="\Disk Read Bytes/sec" enabled="true" />
    								 <PerfmonCounter name="\Disk Write Bytes/sec" enabled="true" />
    								 <PerfmonCounter name="\Avg. Disk Bytes/Transfer" enabled="true" />
    							</PerfmonObject>
    							<PerfmonObject name="\Processor(*)" enabled="true">
    								<PerfmonCounter name="\% Processor Time" enabled="true" />
    								<PerfmonCounter name="\% User Time" enabled="true" />
    								<PerfmonCounter name="\% Privileged Time" enabled="true" />
    							</PerfmonObject>
                            </PerfmonCounters>
                        </PerfmonCollector>
                    </MachineCollectors>
                    <Instances>
                        <Instance name="*" windowsauth="true" ssver="10" user="">
                            <Collectors>
                                <SqldiagCollector enabled="true" startup="false" shutdown="true" />
                                <BlockingCollector enabled="true" pollinginterval="5" maxfilesize="350"/>
                                <ProfilerCollector enabled="true" template="_GeneralPerformance90.xml" pollinginterval="5" maxfilesize="350">
    								<Events>
    									<EventType name="Database" enabled="true">
    										<Event id="92" name="Data File Auto Grow"  enabled="true" description="Indicates that a data file was extended automatically by the server." />
    										<Event id="94" name="Data File Auto Shrink"  enabled="true" description="Indicates that a data file was shrunk automatically by the server." />
    										<Event id="167" name="Database Mirroring State Change"  enabled="true" description="Occurs when the state of a mirrored database changes." />
    										<Event id="93" name="Log File Auto Grow"  enabled="true" description="Indicates that a data file was extended automatically by the server." />
    										<Event id="95" name="Log File Auto Shrink"  enabled="true" description="Indicates that a log file was shrunk automatically by the server." />
    									</EventType>
    									<EventType name="Performance">
    										<Event id="58" name="Auto Stats"  enabled="true" description="Indicates an automatic updating of index statistics has occurred." />
    										<Event id="28" name="Degree of Parallelism Event (7.0 Insert)"  enabled="true" description="Occurs before a SELECT, INSERT, or UPDATE statement is executed. " />
    										<Event id="165" name="Performance statistics"  enabled="false" description="Occurs when a compiled query plan has been cached for the first time, recompiled, or removed from the plan cache." />
    										<Event id="123" name="SQL:FullTextQuery"  enabled="true" description="Occurs when a full text query executes." />
    										<Event id="97" name="Showplan All"  enabled="true" description="Displays the query plan with full compile-time details of the SQL statement executed. Note that the TextData column does not contain the Showplan for this event." />
    										<Event id="169" name="Showplan All For Query Compile"  enabled="true" description="Occurs when an SQL statement compiles. Displays complete, compile-time data. Use to identify Showplan operators." />
    										<Event id="98" name="Showplan Statistics Profile"  enabled="true" description="Displays the query plan with full run-time details of the SQL statement executed. Note that the TextData column does not contain the Showplan for this event." />
    										<Event id="96" name="Showplan Text"  enabled="true" description="Displays the query plan tree of the SQL statement from the query optimizer. Note that the TextData column does not contain the Showplan for this event." />
    										<Event id="68" name="Showplan Text (Unencoded)"  enabled="true" description="Displays the plan tree of the Transact-SQL statement executed." />
    										<Event id="122" name="Showplan XML"  enabled="true" description="Occurs when an SQL statement executes. Include this event to identify Showplan operators. Each event is stored in a well-formed XML document. Note that the Binary column for this event contains the encoded Showplan. Use SQL Server Profiler to open the trace and view the Showplan." />
    										<Event id="168" name="Showplan XML For Query Compile"  enabled="true" description="Occurs when an SQL statement executes. Displays the complete, compile-time data. Note that the Binary column for this event contains the encoded Showplan. Use SQL Server Profiler to open the trace and view the Showplan." />
    										<Event id="146" name="Showplan XML Statistics Profile"  enabled="true" description="Occurs when an SQL statement executes. Identifies the Showplan operators and displays complete, compile-time data. Note that the Binary column for this event contains the encoded Showplan. Use SQL Server Profiler to open the trace and view the Showplan." />
    									</EventType>
    									<EventType name="Stored Procedures">
    										<Event id="100" name="RPC Output Parameter"  enabled="true" description="Produces output values of the parameters for every RPC." />
    										<Event id="10" name="RPC:Completed"  enabled="true" description="Occurs when a remote procedure call (RPC) has completed." />
    										<Event id="11" name="RPC:Starting"  enabled="false" description="Occurs when an RPC has started." />
    										<Event id="38" name="SP:CacheHit"  enabled="false" description="Indicates when a stored procedure is found in the procedure cache." />
    										<Event id="35" name="SP:CacheInsert"  enabled="false" description="Indicates when an item is inserted into the procedure cache." />
    										<Event id="34" name="SP:CacheMiss"  enabled="false" description="Indicates when a stored procedure is not found in the procedure cache." />
    										<Event id="36" name="SP:CacheRemove"  enabled="false" description="Indicates when an item is removed from the procedure cache." />
    										<Event id="37" name="SP:Recompile"  enabled="false" description="Indicates that a stored procedure was recompiled." />
    										<Event id="43" name="SP:Completed"  enabled="false" description="Indicates when the stored procedure has completed." />
    										<Event id="42" name="SP:Starting"  enabled="false" description="Indicates when the stored procedure has started." />
    										<Event id="45" name="SP:StmtCompleted"  enabled="true" description="Indicates that a Transact-SQL statement within a stored procedure has finished executing." />
    										<Event id="44" name="SP:StmtStarting"  enabled="false" description="Indicates that a Transact-SQL statement within a stored procedure has started executing." />
    									</EventType>
    									<EventType name="TSQL">
    										<Event id="12" name="SQL:BatchCompleted"  enabled="false" description="Occurs when a Transact-SQL batch has completed." />
    										<Event id="13" name="SQL:BatchStarting"  enabled="false" description="Occurs when a Transact-SQL batch has started." />
    										<Event id="40" name="SQL:StmtStarting"  enabled="false" description="Occurs when the Transact-SQL statement has started." />
    										<Event id="41" name="SQL:StmtCompleted"  enabled="true" description="Occurs when the Transact-SQL statement has completed." />
    										<Event id="71" name="Prepare SQL"  enabled="false" description="ODBC, OLE DB, or DB-Library has prepared a Transact-SQL statement or statements for use." />
    										<Event id="72" name="Exec Prepared SQL"  enabled="false" description="ODBC, OLE DB, or DB-Library has executed a prepared Transact-SQL statement or statements." />
    										<Event id="73" name="Unprepare SQL"  enabled="false" description="ODBC, OLE DB, or DB-Library has unprepared (deleted) a prepared Transact-SQL statement or statements." />
    										<Event id="166" name="SQL:StmtRecompile"  enabled="false" description="Occurs when a statement-level recompilation occurs." />
    										<Event id="198" name="XQuery Static Type"  enabled="false" description="Occurs when an XQuery expression is executed. This event class provides the static type of the XQuery expression." />
    									</EventType>
    									<EventType name="Transactions">
    										<Event id="19" name="DTCTransaction"  enabled="false" description="Tracks Microsoft Distributed Transaction Coordinator (MS DTC) coordinated transactions between two or more databases." />
    										<Event id="50" name="SQL Transaction"  enabled="false" description="Tracks Transact-SQL BEGIN, COMMIT, SAVE, and ROLLBACK TRANSACTION statements." />
    										<Event id="181" name="TM: Begin Tran starting"  enabled="false" description="Occurs when a BEGIN TRANSACTION request starts." />
    										<Event id="182" name="TM: Begin Tran completed"  enabled="false" description="Occurs when a BEGIN TRANSACTION request completes." />
    										<Event id="183" name="TM: Promote Tran starting"  enabled="false" description="Occurs when a PROMOTE TRANSACTION request starts." />
    										<Event id="184" name="TM: Promote Tran completed"  enabled="false" description="Occurs when a PROMOTE TRANSACTION request completes." />
    										<Event id="185" name="TM: Commit Tran starting"  enabled="false" description="Occurs when a COMMIT TRANSACTION request starts." />
    										<Event id="186" name="TM: Commit Tran completed"  enabled="false" description="Occurs when a COMMIT TRANSACTION request completes." />
    										<Event id="187" name="TM: Rollback Tran starting"  enabled="false" description="Occurs when a ROLLBACK TRANSACTION request starts." />
    										<Event id="188" name="TM: Rollback Tran completed"  enabled="false" description="Occurs when a ROLLBACK TRANSACTION request completes." />
    										<Event id="191" name="TM: Save Tran starting"  enabled="false" description="Occurs when a SAVE TRANSACTION request starts." />
    										<Event id="192" name="TM: Save Tran completed"  enabled="false" description="Occurs when a SAVE TRANSACTION request completes." />
    										<Event id="54" name="TransactionLog"  enabled="false" description="Tracks when transactions are written to the transaction log." />
    									</EventType>
    									<EventType name="User Configurable" enabled="false">
    										<Event id="82" name="User Configurable 0"  enabled="false" description="Event data defined by the user." />
    										<Event id="83" name="User Configurable 1"  enabled="false" description="Event data defined by the user." />
    										<Event id="84" name="User Configurable 2"  enabled="false" description="Event data defined by the user." />
    										<Event id="85" name="User Configurable 3"  enabled="false" description="Event data defined by the user." />
    										<Event id="86" name="User Configurable 4"  enabled="false" description="Event data defined by the user." />
    										<Event id="87" name="User Configurable 5"  enabled="false" description="Event data defined by the user." />
    										<Event id="88" name="User Configurable 6"  enabled="false" description="Event data defined by the user." />
    										<Event id="89" name="User Configurable 7"  enabled="false" description="Event data defined by the user." />
    										<Event id="90" name="User Configurable 8"  enabled="false" description="Event data defined by the user." />
    										<Event id="91" name="User Configurable 9"  enabled="false" description="Event data defined by the user." />
    									</EventType>
    								</Events>
    							</ProfilerCollector>
                                <CustomDiagnostics>
                                    <CustomGroup name="msinfo" enabled="true" />
                                    <CustomTask enabled="true" groupname="MsInfo" taskname="Get MSINFO32" type="Utility" point="Startup" wait="OnlyOnShutdown" cmd="start /B /WAIT MSInfo32.exe /computer %server% /report &quot;%output_path%%server%_MSINFO32.TXT&quot; /categories +SystemSummary+ResourcesConflicts+ResourcesIRQS+ComponentsNetwork+ComponentsStorage+ComponentsProblemDevices+SWEnvEnvVars+SWEnvNetConn+SWEnvServices+SWEnvProgramGroup+SWEnvStartupPrograms" />
                                    <CustomTask enabled="true" groupname="MsInfo" taskname="Get default traces" type="Copy_File" point="Startup" wait="OnlyOnShutdown" cmd="&quot;%sspath%log\log*.trc&quot; &quot;%output_path%&quot;" />
                                    <CustomTask enabled="true" groupname="MsInfo" taskname="Get SQLDumper log" type="Copy_File" point="Startup" wait="OnlyOnShutdown" cmd="&quot;%sspath%log\SQLDUMPER_ERRORLOG.log&quot; &quot;%output_path%%server%_%instance%_SQLDUMPER_ERRORLOG.log&quot;" />
                                </CustomDiagnostics>
                            </Collectors>
                        </Instance>
                    </Instances>
                </Machine>
            </Machines>
        </Collection>
        <Analysis>
            <Producers>
                <Producer name="System Info Loader" assembly="BCPLoader.dll" selected="false" />
                <Producer name="Blocker Loader" assembly="TextRowsetLoader.dll" selected="false" />
                <Producer name="Event Log Loader" assembly="BCPLoader.dll" selected="false" />
                <Producer name="SQLDiag Loader" assembly="TextRowsetLoader.dll" selected="false" />
            </Producers>
            <Analyzers>
                <Analyzer name="SQLDiag Analyzer" assembly="BaseAnalyzer.dll" selected="true" />
                <Analyzer name="Waitstats Analyzer" assembly="BaseAnalyzer.dll" selected="true" />
                <Analyzer name="Corruption Root Cause Analyzer" assembly="HardwareAnalyzer.dll" selected="true" />
                <Analyzer name="Blocker Analyzer" assembly="BlockerAnalyzer.dll" selected="true" />
                <Analyzer name="Perfmon Analyzer" assembly="BaseAnalyzer.dll" selected="false" />
            </Analyzers>
            <ViewItems>
            </ViewItems>
            <Trends>
            </Trends>
        </Analysis>
    </dsConfig>
    Etienne ZINZINDOHOUE
    Billets-Articles

  5. #5
    Membre émérite
    Profil pro
    Inscrit en
    Février 2008
    Messages
    758
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 758
    Par défaut
    Merci,

    J'ai quelques pistes mais pour l'instant c'est assez flou. Dans ma repro je vois un SHARING VIOLATION sur une réouverture du fichier BLG (cf pièce jointe).

    Pour l'instant le seul contournement que j'ai trouvé est d'insérer un PerfmonObject bidon:

    <PerfmonObject name="\MSSQL$%s:User Settable(*)" enabled="false">
    <PerfmonCounter name="\*" enabled="false" />
    <PerfmonCounter name="\Query" enabled="true" />
    </PerfmonObject>
    Tu peux toujours essayer ça. Je voudrais tester le binaire avec le dernier niveau de patch avant d'ouvrir une demande sur Connect.

    A+ David B.
    Images attachées Images attachées  

  6. #6
    Membre Expert

    Homme Profil pro
    Chargé de Développement et d'Analyse de données
    Inscrit en
    Mars 2010
    Messages
    1 278
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Chargé de Développement et d'Analyse de données
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Mars 2010
    Messages : 1 278
    Par défaut PerfmonCounters
    Citation Envoyé par dbaffaleuf Voir le message
    Merci,

    J'ai quelques pistes mais pour l'instant c'est assez flou. Dans ma repro je vois un SHARING VIOLATION sur une réouverture du fichier BLG (cf pièce jointe).

    Pour l'instant le seul contournement que j'ai trouvé est d'insérer un PerfmonObject bidon:



    Tu peux toujours essayer ça. Je voudrais tester le binaire avec le dernier niveau de patch avant d'ouvrir une demande sur Connect.

    A+ David B.

    David,
    Il me semble que l'anomalie provient des compteurs PerfmonCounters.
    car lorsque TOUS les PerfmonCounters sont Disenabled c'est à dire Enabled=false
    ou simplement PerfmonCollector enabled=false SQLDIAG se lance sans erreur mais rien n'est collecté du côté des compteurs Perfmon
    Etienne ZINZINDOHOUE
    Billets-Articles

Discussions similaires

  1. Débogage distant en SQLserver 2008
    Par azur668 dans le forum Développement
    Réponses: 2
    Dernier message: 18/01/2011, 12h19
  2. Réponses: 3
    Dernier message: 16/04/2010, 14h10
  3. Attacher une BD creer sous SQL SERVER 2000 DANS SQLSERVER 2008
    Par bouhlal_badre dans le forum MS SQL Server
    Réponses: 7
    Dernier message: 30/05/2009, 09h15
  4. [SQLServer 2008] Limitation droits utilisateurs
    Par Dimitri S. dans le forum Administration
    Réponses: 2
    Dernier message: 09/04/2009, 15h45
  5. Probleme d'instal sqlServer 2008 / .Net Framework sur Win serv2008
    Par bruninho dans le forum Administration
    Réponses: 1
    Dernier message: 03/02/2009, 15h15

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo