SQL Server Plug-in reports inaccurate Database Space information

I'm trying to track down some inaccuracies I'm seeing in the SQL Server Plug-in for Grid Control. Every database I have on my Database Instance has a Critical alert regarding the Space Available %. For my example, we'll take the 'master' database. it is showing as .81% Space available. My guess is that the plug-in uses the sp_spaceused procedure to get the information. When I run that, I get the following:
database_name: master
database_size: 72.00 MB (This is the size of the database file and the transaction log, 64M + 8M)
unallocated space: 61.34 MB
reserved: 2728 KB
data: 1072 KB
index_size: 1056 KB
unused: 600 KB (Total amount of space reserved for objname but no yet used.)
If you take 600 KB/72MB , you get the .081% available. However, that is not accurate. (I've verified both numbers in the OMS mgmt$metric_hourly view).
I don't think the plug-in's use of the unused value is correct. This is space allocated to objects in the database, but available. I wonder if this metric should be looking at the unallocated_space/database_size rather than the unused piece. This would show this database to have 85.2% available space.
The flaw I see in sp_spaceused is that it is taking into account the database and transaction log as a single unit. Rather than separate entities.

This is erroneous behaviour by the SQL Server plug-in. Please refer to bug 7186134. The bug is planned to be addressed with the newer version of plug-in to be released as part of Plug-in Release Cycle 9 (due for RTM in Dec. '08)

Similar Messages

  • SQL Server 2000 + Oracle9i Reports ?

    I use MS SQL Server 2000 as Database .
    I develop my client applications with JBuilder 7
    Can i use Oracle 9i Reports?
    Thank you, in advance.
    Hatziyannis Apostolis

    Hi Apostolis
    Reports 9i has a very powerful feature in that you can now fetch data from any* datasource. It can be Sybase DB, XML file, flat file etc.
    You may use JDBC datasource to query data from MS SQL Server into your report.
    For more information browse the following page:
    http://otn.oracle.com/products/reports/htdocs/getstart/whitepapers/index.html
    Regards
    Sripathy
    *Any database that support JDBC.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • SQL Server plug in licence???

    Hi,
    Do you need a licence to deploy the SQL Server plug in for grid?
    Ive looked in the Oracle price list http://www.oracle.com/corporate/pricing/technology-price-list.pdf (is this the price list for 10g or 11g?) and wondered if it was either
    System plug-in for Non Oracle databases
    Managent pack for non oracle middleware
    If one of these are the correct ones then at what point do you have to licence? can you just have the agent deployed to monitor the server?
    Licencing is so confusing

    Hi,
    We have the same problem to evaluate the cost for Grid Control implementation.
    For System Monitoring Plug-in for Non Oracle Databases, we have to pay USD 1,800 + 396.00 Support Per Processor.
    Do we have to take account of Grid Control server processors or all SQL server processors ?
    The problem is the same for "System Monitoring Plug-Ins for Non-Oracle Middleware"
    Thanks
    Dominik

  • SQL Server plug-in Missing Properties : [provided_sql_server_name]

    I've recently deployed SQL Server plug-in 3.2.3.1.0 and am having difficulty with the final error I'm receiving. I have been through the troubleshooting guide and am finding no errors with the WMI setup, etc. When I test connection, I get
    Missing Properties : [provided_sql_server_name]
    SQL Server 2000 - SP4
    Windows 2003 SP1 - Standard Edition.
    I have set up a separate SQL Server user with sysadmin role, and I can see that it is logging in to the default instance just fine (no named instances on the server).
    Anyone have any pointers?

    Warning
    Failed to contact the target to be added. Following errors were received while testing the connection to the target. Update the properties accordingly, try Test Connection for testing the properties before saving.
    Response - Missing Properties : [provided_sql_server_name]
    JDBC URL: jdbc:sqlserver://APP-APS003.app.tdsgroup.net:1433
    JDBC Driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
    Database Username: filled in with valid username
    Password for Database User: Filled in with valid password.
    Again, this is a 'default instance' on a Windows 2000 server.

  • Can I use Microsoft SQL Server Management Studio version 11.0 to write SQL queries for "SQL Server Compact 4.0 Local Database"

    Hi, Can I use Microsoft SQL Server Management Studio version 11.0 to write SQL queries for "SQL Server Compact 4.0 Local Database" ?
    When I use Connect Object Explorer, the "Connect to Server" dialog box which pops up has only 4 selections in the Server Type Drop Down List. They are Database Engine, Analysis Services, Reporting Services & Integration Services. I have read
    somewhere that there should be a compact database option. but I do not see it.
    What I would like to do is use free form SQL Queries against the tables in "SQL Server Compact 4.0 Local Database" .
    Once I have validated these queries, then I will use them in my Visual Studio 2012 C#, ASP.NET application. I created the Local Database using Visual Studio 2012 for use by my application.
    Thank you for your help..
    diana4

    Hello,
    With SSMS 2005 we have had the Option to work with SQL CE database files, but not with higher Version of SSMS.
    You can use the free SQL CE Toolbax instead; see
    http://sqlcetoolbox.codeplex.com/
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • OEM 12c : Deployed MS SQL Server Plug-in. Getting Error When Adding Target Manually

    Hi All,
    Request your help regards to Working with Plug-ins.
    I am using a Oracle linux 5.9 VM with OEM 12c v12.1.0.3.0 Installed.
    I need to work with Non-Oracle Database - specifically MS SQL Server for which I already downloaded and deployed the MS SQL Server Plug-in.
    However when trying to add targets manually, I am getting an error saying "Target Type Microsoft SQL Server is not support on selected monitoring agents em12c.localdomain:3872:Plug-in Microsoft SQL Server Database (12.1.0.3.0) or higher is certified on Enterprise Manager Cloud Control 12.1.0.3.0.
    Can you please guide as to where am i going wrong?
    Your help and guidance is highly appreciated.
    Regards.
    Nayan

    Hi Nayan,
    This seems to be a issue that a different version of MS SQL plugin was deployed on the Agent side.
    As per your description you have already downloaded and deployed the MS SQL Server Plug-in. I am assuming that the version of plugin is 12.1.0.3.
    If not you will need to deploy 12.1.0.3 MS SQL plugin on OMS first and then on the Agent which is monitoring the MS SQL targets.
    + Command to get the plugins deployed On OMS server currently,
    $ cd <OMS_HOME>/bin/
    $ ./emcli login -username=sysman
    Enter password
    Login successful
    $ ./emcli sync
    Synchronized successfully
    $./emcli list_plugins_on_server
    + Command to get the plugins deployed On Agent currently,
    $ cd <AGENT_HOME>/agent_inst/bin/
    $ ./emctl listplugins agent
    Ref: EM 12c: How to Verify the Plugins Deployed on the Enterprise Manager Cloud Control 12.1.0.1 OMS and Agent (Doc ID 1431103.1)
    You can review the below link for MS SQL plugin deploy on OMS and Agent,
    http://docs.oracle.com/cd/E24628_01/install.121/e35211/toc.htm
    Once the 12.1.0.3.0 MS SQL plugin is deployed on OMS and on Agent try to dicover the targets again from console. I hope it will help.
    Regards,
    Biplab

  • Support for Windows Authentication in SQL Server Plug-in

    I can't find anything in the documentation, or maybe my eyes are subconsciously skipping over the section. Does the 3.2.3.1.0 SQL Server plug-in support Windows Authentication? We have stopped using Mixed-Mode in our SQL Server 2005 Databases.

    Not as such, but you can always manage them through worksheet statements.
    You can request this at the SQL Developer Exchange though, so other users can vote and add weight for possible future implementation.
    Regards,
    K.

  • SQL Server Plug-in

    I have installed the following software on windows 2000 server.
    Oracle Enterprise Manager 10g Grid Control Release 1 (10.1.0.3) for Windows
    Oracle Enterprise Manager 10g Grid Control Management Agent (10.2.0.1) for windows
    I am not able to configure Management Plug-ins for SQL Server 2000 in the 10g Grid Control Release 1 (10.1.0.3) since the Management Plug-ins link is not visible on the grid control setup option as explained below in Oracle Enterprise Manager System Monitoring Plug-in Installation Guide for Microsoft SQL Server
    10g Release 2 (10.2)
    -- Installation guide instructions--
    Deploying the Plug-in
    After you ensure that the prerequisites are met, follow these steps to deploy the plug-in:
    Download the SQL Server Plug-in archive to your desktop or computer on which the browser is launched. You can download the archive from the Oracle Technology Network (OTN).
    Log into Enterprise Manager Grid Control as a Super Administrator.
    Click the Setup link in the upper right corner of the Grid Control Home page, then click the Management Plug-ins link on the left side of the Setup page.
    Click Import.
    Thanks in advance

    I have 10.2.0.1 agent for windows
    I am not clear about the following prerequisite from the manual below which specifies both should be 10g Release 2 or higher
    Oracle Management Service with Oracle Management Repository
    Oracle Management Agent
    I have
    Oracle Management Service with Oracle Management Repository (10.1.0.3) for Windows
    Oracle Management Agent 10.2.0.1 for Windows
    Since there is no 10g Grid Control Release 2 for Windows available(Oracle Management Service with Oracle Management Repository ), hence the confusion.
    Oracle® Enterprise Manager System Monitoring Plug-in Installation Guide for Microsoft SQL Server
    10g Release 2 (10.2)
    Part Number B28049-01
    Prerequisites
    The following prerequisites must be installed before you can deploy the plug-in:
    Microsoft SQL Server 2000
    The following components of Oracle Enterprise Manager 10g Grid Control release 2 or higher:
    Oracle Management Service with Oracle Management Repository
    Oracle Management Agent for Windows
    ---------------------------------------------------------------------------------------------------------------

  • Can we use different Databases (Oracle & SQL Server) in one report?

    Post Author: venki5star
    CA Forum: .NET
    Hi there.
    Can we use different databases (Oracle & SQL Server) in a same report?
    If possible how?
    Another question,
    Can we change the Provider Name at runtime of the given report. If so the above question is useless...
    Thanks in Advance.

    I tried this using Oracle Provider for OLEDB (the one that supplied by Oracle Client) and Crystal Reports 9. you can drag the column into designer but the image does not appear in preview.
    I guess it's because CR does not recognized it as image, and there are no information that the blob data is an image at all.

  • SQL server 2012 Standard report Disk usage – stale data

    I have strange problem, where standard report is giving me old data, from several months, but no new data. I can not see any errors.
    If I generate standard report fro disk usage, I get old data 
    from two monts. No new data. If I open trace file, I can see  current data.
    If I  run query, I can see current data :
    SELECT 
    TE.name
    AS [EventName]
    T.DatabaseName
    t.DatabaseID
    t.NTDomainName
    t.ApplicationName
    t.LoginName
    t.SPID
    t.Duration
    t.StartTime
    t.EndTime
    FROM   
    sys.fn_trace_gettable(CONVERT(VARCHAR(150),
    ( SELECT
    TOP 1
    f.[value]
    FROM    sys.fn_trace_getinfo(NULL)
    f
    WHERE   f.property
    = 2
    )), DEFAULT)
    T
    JOIN sys.trace_events
    TE ON
    T.EventClass
    = TE.trace_event_id
    WHERE  
    te.name
    = 'Data File Auto Grow'
    OR te.name
    = 'Data File Auto Shrink'
    ORDER
    BY t.StartTime
    SELECT 
    REVERSE(SUBSTRING(REVERSE(path),
    CHARINDEX('\',
    REVERSE(path)), 256))
    AS DefaultTraceLocation
    FROM   
    sys.traces
    WHERE  
    is_default = 1
    But these query gives me, data that I see in the report.
    SELECT 
    TE.name
    AS [EventName]
    T.DatabaseName
    t.DatabaseID
    t.NTDomainName
    t.ApplicationName
    t.LoginName
    t.SPID
    t.Duration
    t.StartTime
    t.EndTime
    FROM   
    sys.fn_trace_gettable(CONVERT(VARCHAR(150),
    ( SELECT
    TOP 1
    f.[value]
    FROM    sys.fn_trace_getinfo(NULL)
    f
    WHERE   f.property
    = 2
    DEFAULT)
    T
    JOIN sys.trace_events
    TE ON
    T.EventClass
    = TE.trace_event_id
    WHERE  
    te.name
    = 'Data File Auto Grow'
    OR te.name
    = 'Data File Auto Shrink'
    ORDER
    BY t.StartTime
    SELECT 
    REVERSE(SUBSTRING(REVERSE(path),
    CHARINDEX('\',
    REVERSE(path)), 256))
    AS DefaultTraceLocation
    FROM   
    sys.traces
    WHERE  
    is_default = 1

    Hi,
    SQL Server Management Studio Standard report-Disk Usage works normally in my test machine. My Microsoft SQL Server Management Studio version is 11.0.3128.0.
    Before going further, I would verify if only Data/Log File Autogrow/Autoshrink Events shows the old information.
    “Transaction Log Space Usage (%)” uses DBCC SQLPERF (LOGSPACE) and shows how much empty space we have in the physical transaction log file. Disk space used by Data Files uses DBCC SHOWFILESTATS to get information.
    Data/Log File Autogrow/Autoshrink Events uses the data from Default Trace.
    You can use SQL Profiler to capture the activities. The following entries was recorded when I ran Disk Usage report.
    exec sp_executesql @stmt=N'
    begin try
    if (select convert(int,value_in_use) from sys.configurations where name = ''default trace enabled'' ) = 1
    begin
    declare @curr_tracefilename varchar(500) ;
    declare @base_tracefilename varchar(500) ;
    declare @indx int ;
    select @curr_tracefilename = path from sys.traces where is_default = 1 ;
    set @curr_tracefilename = reverse(@curr_tracefilename);
    select @indx = patindex(''%\%'', @curr_tracefilename) ;
    set @curr_tracefilename = reverse(@curr_tracefilename) ;
    set @base_tracefilename = left( @curr_tracefilename,len(@curr_tracefilename) - @indx) + ''\log.trc'' ;
    select (dense_rank() over (order by StartTime desc))%2 as l1
    , convert(int, EventClass) as EventClass
    , DatabaseName
    , Filename
    , (Duration/1000) as Duration
    , StartTime
    , EndTime
    , (IntegerData*8.0/1024) as ChangeInSize
    from ::fn_trace_gettable( @base_tracefilename, default )
    left outer join sys.databases as d on (d.name = DB_NAME())
    where EventClass >= 92 and EventClass <= 95 and ServerName = @@servername and DatabaseName = db_name() and (d.create_date < EndTime)
    order by StartTime desc ;
    end else
    select -1 as l1, 0 as EventClass, 0 DatabaseName, 0 as Filename, 0 as Duration, 0 as StartTime, 0 as EndTime,0 as ChangeInSize
    end try
    begin catch
    select -100 as l1
    , ERROR_NUMBER() as EventClass
    , ERROR_SEVERITY() DatabaseName
    , ERROR_STATE() as Filename
    , ERROR_MESSAGE() as Duration
    , 1 as StartTime, 1 as EndTime,1 as ChangeInSize
    end catch
    ',@params=N''
    Both queries use the default trace file. Disk Usage report use sys.traces to get the trace file path. I suggest check default trace file in sys.traces is correct. You can modify the query like below and check if the output returns the same result.
    SELECT TE.name AS [EventName] ,
    T.DatabaseName ,
    t.DatabaseID ,
    t.NTDomainName ,
    t.ApplicationName ,
    t.LoginName ,
    t.SPID ,
    t.Duration ,
    t.StartTime ,
    t.EndTime
    FROM sys.fn_trace_gettable('<default trc file path>', DEFAULT) T
    JOIN sys.trace_events TE ON T.EventClass = TE.trace_event_id
    WHERE T.EventClass >= 92 and T.EventClass <= 95
    Best Regards,
    Tracy
    Tracy Cai
    TechNet Community Support

  • SQL Server 2000 std Report Performance Issue

    Dear All,
    I have a VB based desktop application with back end MS SQL server 2000 database with server machine ibmx5650 with specs intel xeon 2.7GHz (24 CPU's) & 24GB RAM.
    There are two things i need help:
    Recently we have upgrade the SQL server from 2000 personal edition to the 2000 standard edition. There comes a problem with one of the Report in the application. The report took almost 30 mins previously in SQL 2000 personal edition.But after the upgrade
     to Standard edition we are unable to view report before 3 hours even sometimes it doesn't appear after several hours.
    Secondly for brief testing i have installed the personal edition on a simple PC rather then a server PC specs are corei5 & 4 GB of RAM. The same report is generated in only 15 mins from the application with this desktop machine as DB server.
    Please help me out i have gone through all SQL Server & system performance log of my server machine everything is normal but the report is taking too long & i can only generate that report from personal edition.
    Is there the difference due the higher corei5 processor in desktop machine or there is any other issue behind this.
    Your prompt response is highly appreciated.
    Regards,
    Rashid Ali

    Hello,
    SQL Server 2000 is not support since 2013. Please upgrade to SQL Server 2012 to get better performance and support.
    Thanks for your understanding and support.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Sql Server Web Edition Reporting Services errors when trying to connect to Windows Azure SQL

    I am using a preconfigured image from the Azure VM Gallery to create a VM.
    --> Sql Server 2012 SP1 Web running under Windows Server 2008 R2
    After configuring Reporting Services I get the following error when trying to run a report that connects to my Azure SQL db.
    An error has occurred during report processing. (rsProcessingAborted)
    An attempt has been made to use a data extension 'SQLAZURE' that is either not registered for this report server or is not supported in this edition of Reporting Services. (rsDataExtensionNotFound)
    On the VM using SSMS I can connect to the Azure SQL db.  On the VM in Report Builder when I define a connection I get a similar error to the one above when I test that connection.  I am using Microsoft Azure SQL as the data source type. 
    Interestingly in Report Builder, if I proceed past the connection definition, I can see the tables from my Azure SQL db in the dataset definition page.
    One more note.  If I use a different image from the Gallery (Sql Server 2012 Standard SP1 on Windows Server 2012) my report builder connection works and the reports run fine.  I believe that the Azure documentation says that Sql Server Web edition
    is an acceptable choice for the SSRS on VM for reporting.
    Any thoughts or suggestions?
    Thanks -- Tom Reilly

    Hello,
    A VM with SQL Server 2008 R2 or 2012 supports all Reporting Services features, including all supported data sources, customization and extensibility, and scheduled report execution and delivery.
    Did you run the report in Report Manager,or preview the report in Report Builder? Which version of the Report Builder you installed in the Windows Azure VM? SQL Reporting does not support reports created from Report Builder 1.0 or 2.0. You can create reports
    using Report Builder 3.0 and then upload the reports.
    What's more, please also check the database source credential of the report.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here.
    Fanny Liu
    TechNet Community Support

  • SCOM 2012 Installation does not show the SQL Server Instance for reporting services

    I have an issue when I try to install SCOM 2012 with the Reporting Server feature, so in the step that I have to select a SQL Server Instance I cannot do that, because as you can see in the picture no one option appears.
    In my scenario I have a DCSERVER, SQLSERVER2008 R2, SCCMSERVER 2012 and in other server I are trying to install SCOM 2012. I are trying to use the same SQLSERVER to SCOM 2012.
    Should I do other procedure on SQL Server before to continue? I will apreciate someone could say me what I need to do to resolve this issue.
    Regards,
    Paul Mendoza.

    Hi Paul
    Can you confirm that SQL Reporting Services is installed on the server that you are doing the install.
    For a lab environment where you have SCOM Management Server, Web Server on one server and SQL Server on another you need to:
    - run setup on the SCOM Server and choose NOT to install reporting. The install here will create the OperationsManager database and OperationsManagerDW (reporting) database.
    - run setup on the SQL Server where SQL Reporting Services is installed. Then choose to install reporting. You should then see the SQL Reporting Services instance on the above window which is blank in your screenshot.
    Take note of the warning in that window - SCOM uses its own role based security within SQL Reporting Services and this can break other reporting. E.g. you can't install SCOM and SCSM reporting (SQL RS component) together. 
    Cheers
    Graham
    New SCOM 2012 Blog! - http://www.systemcentersolutions.com/blog/
    View OpsMgr tips and tricks at
    http://systemcentersolutions.wordpress.com/

  • Query used by SQL Server Management Pack for monitoring database backups

    I use SCOM 2012 R2 and the SQL Server Management Pack to monitor SQL Server database backups. I believe I am getting false positives. SCOM reports database are not backuped, while in fact they are. So I need to troubleshoot this. I suspect SCOM is querying
    the backup history in the msdb database. I want to know which query SCOM uses.
    I have tried looking in the monitor's definition but I suspect the query is embedded in the management pack files which are binary. I have also tried running a trace using the SQL Server Profiler on my test environment and overriding the interval to 60 seconds,
    but I don't see a relevant query being executed. I also don't see the alert reappear so I suspect SCOM does not honor the interval in a way I would expect.
    What query, or other method, does SCOM use to check database backups?
    Thanks in advance.

    Thank you both Ivan and Michael,
    I only saw your messages by email and didn't see your screen shot before I extracted the query myself. In my own queries I calculate the backup age in hours instead of days because of daily full backups. Perhaps It will be a good idea to create my own monitors
    from scratch like I used to do with Nagios.
    I will study the vbscripts and might create my own version which allows the query to be entered as an parameter and move all code to a .Net class which can be called from vbscript as an COM object. This way I hope to reduce the vbscript code to an minimum
    while keeping the flexibility of the SCOM Operations Console and the robustness of .Net. I suspect I want to make more non standard monitors in the future.
    Regards,
    Arjen

  • Package Configuration via SQL Server For a Reporting Queue

    The scenario is a reporting queue for a web application. Currently when a user queues a report it stores the parameters in a table by queue ID.  When that report is set to run the database creates a dtexec command with all the parameters. We use this
    method for transferring the values the user selected to the SSIS packages.
    I have used SQL Server package configurations before but they are usually a single table with a distinct ConfigurationFilter column.  Is it possible to take the standard table layout for the SQL Server package configuration and add another column, say
    QueueID.  We send the QueueID to each package at run time and use this value to filter the table to the configuration specific to that report?

    Here is a better break down of the current process:
    1. A user goes to the web application and selects a report/parameters.
    2. This will add data to [QUEUE] and [QUEUE_PARAMETERS] tables associated by the QUEUE_ID
    3. The server has a windows service which looks for reports in the [QUEUE] table in pending status and gets the next one available and calls a stored procedure with that QUEUE_ID.
    4. The stored procedure puts together a dtexec command through xp_cmdshell which contains all the user parameters from the [QUEUE_PARAMETERS] table.
    The purposed process is to replace the self made [QUEUE_PARAMETERS] table with the package configuration table.  This means we would only have to send the QUEUE_ID via the dtexec command and not all the other parameters.  The problem is that if
    I add QUEUE_ID to the package configuration table I am not sure how I would reference a specific QUEUE_ID from the SSIS package configuration dynamically.  There does not appear to be an expression that can be applied to the package configuration in SSIS
    which means the relationship must make the ConfigurationFilter field unique, even though it is not a primary key.

Maybe you are looking for

  • Mac super slow all of a sudden

    Ok this is a new one.  I had my iPhone plugged into my mac and wanted to eject it.  I pressed the eject icon on iTunes and seconds after I clicked safari to just surf the web.  The safari icon jumped up and down on the dock for 5 whole minutes and th

  • Negative discount being generated - Sales/Purchase Order quantity

    Hi All, I have an add-on which creates a Child Order (AP and AR) from a Parent Order.  The Parent Order needs to be updated if a Child order created from it has a change of Quantity. What I am finding is that twhen I update the Parent with the revise

  • Opensso.war deployment fails in Sun App server 8.2 windows vissta business

    I tried deploying opensso.war in Sun App server 8.2 on windows vista business machine. Am getting following error. Deploying application in domain failed; C:\Program Files\Sun\JavaES5\appserver\domains\domain1\applications\j2ee-modules\opensso\assets

  • Not receiving pictures

    Hello folks. Have a razr maxx. Phone no longer accepts photos through text or lets me send them. any quick fixes. tried re-setting and clearing out text messages.

  • ITunes 10.1 and Earbuds with Remote - Can't pause or skip songs on MBP

    Since upgrading to Mac OS X 10.6.5 and iTunes 10.1 today, I notice that I can't pause and skip songs with my iPhone earbuds when they're plugged into the Mac. I have a [latest gen 2.4 GHz] 13" MacBook Pro and I could have sworn this was a feature tha