SQL 2000 Log and data file free space

HI ~ In SQL 2000, are there any tsql I can get the free space of the mdf and ldf file ?

I would like to look into EACH ldf too like SQL 2005 onward using sysfiles
in SQL 2000
DBCC sqlperf(logspace) will just sum all the ldf size..... 
Hello,
Below would work in SQL2000.I did not tested it on 2000 ,I dont have 2000 anymore.This will give information for data and log file free space for all databases
exec sp_msforeachdb 'SELECT name ,size/128.0 - CAST(FILEPROPERTY(name, ''SpaceUsed'') AS int)/128.0 AS AvailableSpaceInMB
FROM sysfiles';
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

Similar Messages

  • SAPDB : Archive the Log and Data files

    Hi,
    I am running a SAP WAS JAVA on my laptop with SAPDB as the database. Its used for my local developments.
    I have 3 log files and 3 data files of 1 GB each. I want to reduce this to 1 log file and 1 data file to free some space on my Laptop.
    How can this be done.
    Regards,
    Shubham

    Hi,
    well, you should check the <b>current filling level</b> of your database instance to see how large your single data volume should become.
    Then, I would recommend you put your db in <b>admin</b> state and make a full data <b>backup</b>.
    Then, you would need to do do a <b>recovery with initialization</b>. This is most conveniently done using the newest available version of the Database Manager GUI.
    During this process, you should be able to specify your desired new volume setup (please keep the filling level from your the beginning in mind). For the backup to recover, choose the one you just made.
    Hope that helps.
    Kind regards,
    Roland

  • Data files free space calculation

    Hi,
    I have a query that calculates the Max Size (MB), Allocated (MB), Used (MB) and Used (%) for each data file in a 10.2 database.
    The results from this query are similar to what I see in dbconsole or EMconsole except for the undo datafile, my script says +- 50% used,
    dbconsole says 97% used and EM console says 0% used... does anyone have an idea what might be the cause of this?
    SELECT ddf.file_id "File#",
    ddf.file_name "Name",
    (ddf.maxbytes/1024/1024) "Max Size (MB)",
    (ddf.bytes/1024/1024) "Allocated (MB)",
    ((ddf.bytes) - NVL(SUM(dfs.bytes), 0))/1024/1024 "Used (MB)",
    ((((ddf.bytes) - NVL(SUM(dfs.bytes), 0))/ddf.bytes)*100) "Used (%)",
    ddf.autoextensible "AutoExt.",
    ((ddf.bytes/ddf.blocks)*ddf.increment_by)/1024/1024 "Increment By (MB)"
    FROM
    dba_data_files ddf, dba_free_space dfs
    WHERE
    ddf.file_id = dfs.file_id(+)
    GROUP BY ddf.file_id, ddf.file_name, ddf.maxbytes, ddf.bytes, ddf.autoextensible, ddf.increment_by, ddf.blocks
    ORDER BY ddf.file_id;
    I also try to calculate the same numbers for the temp datafile, I know that there is dba_temp_files and v$tempfile,
    but how do I calculate the used space in the temp file ?
    Thanks!
    Pieter

    Hi,
    i used following query to see the free in space in tablespace,u can also try with it.
    SELECT a.tablespace_name TSNAME, SUM(a.tots)/1048576 Tot_Size,
    SUM(a.sumb)/1048576 Tot_Free,
    SUM(a.sumb)*100/sum(a.tots) Pct_Free,
    SUM(a.largest)/1048576 Large_Ext, SUM(a.chunks) Fragments
    FROM (SELECt tablespace_name, 0 tots, SUM(bytes) sumb,
    MAX(bytes) largest, COUNT(*) chunks
    FROM dba_free_space a
    GROUP BY tablespace_name
    UNION
    SELECT tablespace_name, SUM(bytes) tots, 0, 0, 0
         FROM dba_data_files
    GROUP BY tablespace_name) a
    GROUP BY a.tablespace_name
    for free/used space in temp tablespace
    SELECT tablespace_name, SUM(bytes_used)/1024/1024 "Tot Used Space in MB", SUM(bytes_free)/1024/1024 "Tot Free Space in MB"
    FROM V$temp_space_header
    GROUP BY tablespace_name;
    Thanks
    Kuljeet

  • Block size in tt for writing data to transaction log and checkpoint files

    Hello,
    what block size is TimesTen using when its writing data to transaction log and checkpoint files? Does it use some fixed block size during filesystem writes?

    Although in theory logging can write 2 KB blocks in almost all circumstances it will write 4 KB or larger so yes a filesystem with a 4 KB block size is fine for both checkpointing and logging.
    Chris

  • Does Adobe have a free download for pdf and data files

    I cannot open pdf files AND data files with this expensive pc & Windows 7 HELP

    Don't know what are "data files", but you can open PDF files using the free Adobe Reader: Adobe - Adobe Reader download - All versions

  • I see most recent file is called sql server log shipping work file

    What is "SQL server log shipping work file"?

    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/62a6556e-6655-4d19-9112-1788cf7bbcfc/wrk-file-in-logshipping-2005
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • My iPad free space was shrinking.  Previously I did an iOS upgrade and got more free space so I tried a restore and the same thing happened.  Do I have a setting wrong?

    My iPad free space was shrinking.  Previously I did an iOS upgrade and got more free space so I tried a restore and the same thing happened.  Do I have a setting wrong?  There was a significant change from 4.3 GB to now 10.2 GB.  I still have all the same apps, photos, songs, etc.  So what's up?  Why does my space not recover after I delete things?

    This is what I did to resolve the issue.  First I did a simple Reset (Home and on/off until the Apple logo appears) and it didn't help.  Then I did a Restore with a reload from the backup and that also accomplished nothing.  Then, I did a Restore as new with NO reload from backup and that resolved my issue.
    IF you choose to try the same thing, here are some cautions.  Make absolutely certain that all apps, music, movies, etc. are present in the iTunes library.  Also make absolutely certain that all "regular" data, such as pdf files, Word files, etc. are present and accessible somewhere on the computer's hard drive.  Be aware that you will probably lose all game data (scores, etc.).  I did not investigate a solution for that because I don't play many games and I really don't care about the game history.  Finally, be forewarned that it is a bit tedius recreating all your folders and putting each app where you want it.

  • Basic question on log and temp files

    Hi,
    I need to create a new database in this way:
    - 2 GB for the data file
    - 1 GB for log and temp files
    This is the command I'm issuing to create the db:
    create tablespace xyz datafile '<path>\xyz.dbf' size 2000M reuse;
    How can I say the size of log and temp files?
    Thank you
    Nicola
    Ps-I'm on windows platform

    user575754 wrote:
    - 1 GB for log and temp filesWhat's the link between log file size and tempfile ?
    This is the command I'm issuing to create the db:
    create tablespace xyz datafile '<path>\xyz.dbf' size 2000M reuse;This command does not actually create a database, but a tablespace. If you ran it, that means your db aleady exists.
    So, not sure to follow you on this thread.
    Nicolas.

  • Location of Redo log and control files?

    Dear all,
    I am checking the location of redo log and control files, but found that the redo log file (like log02a.dbf ....) in the same directory of data files. However, I couldn't find any control files in the data files directries.
    What could be the location of control files?
    Amy

    select name
      from v$controlfile
    or
    show parameter control_filesKhurram

  • External portal capturing internal portal URL in Log and trace file

    Hi,
    We are facing one issue in portal like we have two portals for internal (Intranet) and external (Internet) users.
    Once users logged in the application and try to get the information about mylink from the external portal link (internet) they should not get any information about the internal portal.
    But in log and trace file we can see the external portal link capturing the internal portal URL.
    We need to find, from where system capturing the internal portal URL.
    Thanks.

    The tkproffed trace file is in seconds.
    "set timing" is in hh:mi:ss.uu format. So 00:00:01.01 is 1.01 seconds.
    You have to remember that most of these measurements are rounded. While your trace file says it contains one second of trace data, you know it's more.
    One excellent resource for trace files is "Optimizing Oracle Performance" by Cary Millsap & Jeff Holt. (http://www.amazon.com/Optimizing-Oracle-Performance-Cary-Millsap/dp/059600527X ) I thought I knew trace files before, but this book brings your knowledge to a whole new level.
    There is also an excellent WP by Cary Millsap ( http://method-r.com/downloads/doc_details/10-for-developers-making-friends-with-the-oracle-database-cary-millsap ) that gives you some insight.

  • How to overwrite a log and bad file in external table in oracle 10g

    Hi,
    I have used external table in oracle 10g.whenever use select query in external table orace internally create one log file in specified directory,
    but this log file is growing.How can i overwrite the log file(old to replace with new).I need overwrite a log and bad file in external table.
    kindly give the solutions.
    By
    Siva

    I don't believe that is possible with the LOGFILE clause, but it may be with the BADFILE clause. Here is an excerpt from the documentation :
    The LOGFILE clause names the file that contains messages generated by the external tables utility while it was accessing data in the datafile. If a log file already exists by the same name, the access driver reopens that log file and appends new log information to the end. This is different from bad files and discard files, which overwrite any existing file. NOLOGFILE is used to prevent creation of a log file.
    If you specify LOGFILE, you must specify a filename or you will receive an error.
    If neither LOGFILE nor NOLOGFILE is specified, the default is to create a log file. The name of the file will be the table name followed by _%p and it will have an extension of .log.

  • Multiplexing redo logs and control files to a separate diskgroup

    General question this one...
    I've been using ASM for a few years now and have always installed a new system with 3 diskgroups
    +DATA - for datafiles, control files, redo logs
    +FRA - for achive logs, flash recovery. RMAN backup
    Those I guess are the standards, but I've always created an extra (very small) diskgroup, called +ONLINE where I keep multiplexed copies of the redo logs and control files.
    My reasoning behind this is that if there are any issues with the +DATA diskgroup, the redo logs and control files can still be accessed.
    In the olden days (all those 5 years ago!), on local storage, this was important, but is it still important now? With all the striping and mirroring going on (both at ASM and RAID level), am I just being overtly paranoid? Does this additional +ONLINE diskgroup actually hamper performance? (with dual write overheads that are not necessary)
    Thoughts?

    Some of the decision will probably depend on your specific environment's data activity, volume, and throughput.
    Something to remember is that redo logs are sequential write, which benefit from a lower RAID overhead (RAID-10, 2 writes per IOP vs RAID-5, 4 writes per IOP). RAID-10 is often not cost-effective for the data portion of a database. If your database is OLTP with a high volume of random reads/writes, you're potentially hurting redo throughput by creating contention on the disks sharing data and redo. Again, that depends entirely on what you're seeing in terms of wait events. A low volume database would probably not experience any noticeable degraded performance.
    In my environment, I have RAID-5 and RAID-10 available, and since the RAID-10 requirement from a capacity perspective for redo is very low, it makes sense to create 2 diskgroups for online redo, separate from DATA, and separate from each other. This way, we don't need to be concerned with DATA transactions impacting REDO performance, and vice versa, and we still maintain redo redundancy.
    In my opinion, you can't be too paranoid. :)
    Good luck!
    K

  • TT6220: Permanent data partition free space insufficient to allocate

    Hi,
    I am getting following error while loading data from oracle to times ten group.
    TT6220: Permanent data partition free space insufficient to allocate

    It means just what it says. The permanent memory area within TimesTen (that holds table data, indices etc.) and whose size is defined by PermSize has become full. Either load less data or increase the size of the datastore by increasing permSize (assuming you have enough free memory).
    Chris

  • How to get Log and Output File Names for a concurrent request

    Hi,
    I am submitting a concurrent frm OAF with the following code in AM
    try{
    OADBTransaction tx = getOADBTransaction();
    Connection conn = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(conn);
    Vector parameters = new Vector();
    parameters.addElement("10");
    nRequestID= cr.submitRequest("CIE","DTFEMP","","",false,parameters);
    tx.commit();
    }catch(RequestSubmissionException e)
    How do i get the handle to log and output files for the abvoe concurrent request ?
    One more thing is there a way where we can evaluate the environment variables
    like in the above example once i get a the request id
    logfile = $APPLCSF/$APPLOUT/"l"+requestID+".log"
    and
    outputfile=$APPLCSF/$APPLOUT/"o"+requestID+".out"
    is there a way i can get the values of $APPLCSF and $APPLOUT from the os ?
    Thanks
    Tom...
    Thanks
    Tom ...

    You can query the Fnd_Concurrent_Requests table using Request_ID, which has the log & out file directory details.
    Hth
    Srini

  • EMIEsitelist and EMIEuserlist hidden directories and dat-files

    2014-04-05
    Cross-posted from
    http://answers.microsoft.com/en-us/windows/forum/windows8_1-security/erniesitelist-and-ernieuserlist/00407bd2-e349-423c-a8e5-cb6127840ea5
    Original Post dated April 21, 2014
    EmieSiteList and EmieUserList
    Microsoft Security - Privacy Concerns
    I found two unknown directories on my PC in my user profile.  I have, so far, been unable to identify what put them there, which process owns them, and when I delete them (using Admin escalated privileges) they come back after a few minutes or immediately
    after reboot.
         c:\users\USERNAME\appdata\local\EmieSitelist\container.dat
         c:\users\USERNAME\appdata\local\EmieUserlist\container.dat
         C:\Users\USERNAME\AppData\LocalLow\EmieSiteList\container.dat
         C:\Users\USERNAME\AppData\LocalLow\EmieUserlist\container.dat
    It was time, anyway, so I wiped the drive using factory low-level overwriting and performed a clean install of Windows 8.1 Pro using a freshly downloaded ISO from Microsoft; one with an ESD distribution, written to a new just out-of-the-bedamned-hardshell-plastic
    flashdrive..
    I just completed the clean install, in this sequence:
    Boot to flashdrive and let Windows create partitions then install.  Reboot.  Check AppData; no folders found.
    Activate.  Check AppData; no folders found.
    Run first Update; install everything except Bing Bar and Desktop.    Check AppData; no folders found.  Reboot.  Check AppData; no folders found.
    Add Feature Windows Media Center.  Check AppData; no folders found.  Reboot.  Check AppData; no folders found.
    Run Updates a second time.  Check AppData; no folders found.  Reboot.  Check AppData; no folders found.
    Remove MS C++ v12 x86 and x64 installed during Update.    Check AppData; no folders found.  Reboot.  Check AppData; no folders found.
    Download from MSDN (http://msdn.microsoft.com/en-us/vstudio/default) Redistributables MS C++ x86 and x64, 2005, 2008, 2010, and 2012.4 versions, and install in sequence.  Check AppData
    after each install; no folders found.  Reboot after each install and check AppData; no folders found.
    Run Updates a third time.  Response was No Updates Available.  Check AppData; no folders found.
    Reboot.  Check AppData; all four sub-directories are now present.
    These sub-directories and dat-files are not, so far, present in the AppData\Roaming directory.
    There is nothing except Microsoft Windows 8.1 Pro WMC and the 10 MS C++ packages installed; and MS Silverlight and AMD (videocard) Catalyst Control Center on the machine.  Windows Defender is present but is installed as part of Windows 8 and 8.1;
    and its' updates are provided via the MS Update process.  All - repeat ALL of these items are provided by Microsoft.
    My questions are:  What are the Emie directories for; what program created them, and what does the various container.dat files "contain"?  And . . . if not absolutely necessary, How do I get rid of them and keep them from coming back?
    First attempt at Solution:
    Permissions are Full for System, USERNAME, and group Administrators.  The USERNAME is the Owner, and Effective Permissions for each of the 3 is Full.
    Open Command Prompt (Admin)
    C:\Windows\system32>cd\
    C:\>attrib -r -h +s C:\Users\USERNAME\AppData\Local\EmieSiteList\container.dat
    C:\>attrib -r -h +s C:\Users\USERNAME\AppData\Local\EmieSiteList
    C:\>attrib -r -h +s C:\Users\USERNAME\AppData\Local\EmieUserList
    C:\>attrib -r -h +s C:\Users\USERNAME\AppData\Local\EmieUserList\container.dat
    C:\>attrib -r -h +s C:\Users\USERNAME\AppData\LocalLow\EmieUserList\container.dat
    C:\>attrib -r -h +s C:\Users\USERNAME\AppData\LocalLow\EmieUserList
    C:\>attrib -r -h +s C:\Users\USERNAME\AppData\LocalLow\EmieSiteList
    C:\>attrib -r -h +s C:\Users\USERNAME\AppData\LocalLow\EmieSiteList\container.dat
    C:\>
    BOTH Files and Directories are no longer Hidden.  The Directories still show that the files within are READ-Only, but checking the actual file shows that it is no longer R-O.
    I then deleted each of the 4 directories and  closed Windows (File) Explorer.
    After less than 3 minutes reading pages on the internet (at Microsoft's Ask Windows Community), I opened Windows Explorer to check and found that the sub-directories had re-created themselves in both the Local and LocalLow directories.
    The container.dat files were back in the Local sub-dir and after another few minutes, also back in the LocalLow sub-dir.
    Both the sub-directories and the container.dat files are once again Super-Hidden.
    Analysis using Windows utilities and SysInternals and NirSoft tools have not identified which object or process or service owns these objects.
    ADDED:  My system is a home system, not connected to any work domain via VPN or otherwise.  WHY is the Windows Update Team not spending time to implement condition-and-error-checking to ensure that unneeded updates, services, and changes are not made
    without the system owner/operator permission?  Further, WHY is this particular issue so hard to find info about; what is being kept from customers and why?

    Dear sir Shovel Driver,
       About:  EMIEsitelist  and  EMIEuserlist
    .., hidden directories and dat-files
    Internet Explorer 11 (on Windows 7 and Windows 8.1) provides increased performance, improved security, and support for the modern technologies like HTML5 and CSS3 that power today’s Web sites and services. By adding better backward compatibility with
    Enterprise Mode, Internet Explorer 11 now helps customers stay up to date with the latest browser—and facilitates using the latest software, services, and devices.
    IE11 Enterprise Mode can be set in the Group Policy Console, or by adding a
    Registry setting:
    REGISTRY:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main]
    "EnterpriseMode"="Disable"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode]
    Or a edit a Group Policy setting, which you can find under:
    [Windows-Key]+[R]->[Run]->Type here:
       gpedit.msc
    Press [Enter], with an UAC Warning:
    Do you want to allow the following program to make changes on this computer:
    gpedit.msc ?
    Select/Press: Yes
    Go to in the Left pane of the GPedti.msc Window:
      Computer Configuration
      Administrative Templates
      Windows Components
      Internet Explorer
    Change / Add at right list, down under:
      "Use the Enterprise Mode IE website list"
    Set this option to - whatever you need;  Disabled,
    Enabled (Default is: Not Configured)
    When Enabled, you need to add a list with Web-Sites, Domains or Web-Pages.
    This policy setting lets you specify where to find the list of websites you want opened using Enterprise Mode IE, instead of Standard mode, because of compatibility issues. Users can't edit this list.
    If you enable this policy setting, Internet Explorer downloads the website list from your location
      (HKCU or HKLM\Software\policies\Microsoft\Internet Explorer\Main\EnterpriseMode),
    opening all listed websites using Enterprise Mode IE, Web-Sites are seperated by a sign: "
    If you disable or don't configure this policy setting, Internet Explorer opens all websites using Standards mode.
    Now to
    properly close and conclude this
    mystery:
    EMIEsitelist and EMIEuserlist
    .., are hidden directories and dat-files
    Thses directories and dat files are used to store data for the IE11
    EnterpriseMode.
    It is not a: Virus, neither it is a Trojan, Hoax, KeyLogger or anything else bad.
    TECHNET Sources:
     Turn on Enterprise Mode and Use a Site List (Deploy):
     http://technet.microsoft.com/en-us/ie/dn262703.aspx
     What is Enterprise Mode?:
     http://technet.microsoft.com/library/dn640687.aspx
    If you find this usefull, please Vote at the button
    "I Find This Usefull"
    Thank you! ;)
    Best regards, MPVS
    MP|VS

Maybe you are looking for