2005 database and log file locations

Is there a SQL query to list where exactly the database and log files reside for all databases on an instance (sql server 2005)?

You can query the Information form DMV
sys.master_files (Transact-SQL)
SELECT *
FROM [sys].[master_files]
Olaf Helper
[ Blog] [ Xing] [ MVP]

Similar Messages

  • Change the Data and Log file locations in livecache

    Hi
    We have installed livecache in unix systems in the /sapdb mount directory where the installer have created sapdata and sapdblog directories. But the unix team has already created two mount direcotries as follows:
    /sapdb/LC1/lvcdata and /sapdb/LC1/lvclog mount points.
    While installing livecache we had selected this locations for creating the DATA and LOG volumes. Now they are asking to move the DATA and LOG volumes created in sapdata and saplog directories to these mount points. How to move the data and log file and make the database consistent. Is there any procedure to move the files to the mount point directories and change the pointers of livecahce to these locations.
    regards
    bala

    Hi Lars
    Thanks for the link. I will try it and let u know.
    But this is livecache (even it uses MaxDB ) database which was created by
    sapinst and morover is there any thing to be adjusted in SCM and as well as
    any modification ot be done in db level.
    regards
    bala

  • Move Exchange Server 2010 SP1 databases and log files to another partition

    My company has been running Exchange Server 2010 SP1 on virtual machine for almost three years. My colleague created this virtual machine (Windows Server 2008 R2 SP1) before Exchange Server installation with following partitions:
    C partition - for Windows Server 2008 R2 SP1 OS (size 40 GB)
    E partition - for Exchange Server 2010 SP1 databases and logs (size 410 GB)
    Those two partitions are on the same virtual hard disk "next to one another" so I can not extend C partition which gets filled up with IIS logs (when C partition free space is under 10 GB I am backing up these logs with backup software and afterwards
    deleting them thus freeing up space on C partition). I have 2 databases (along with Public Folders) and size of these databases and their logs is around 235 GB.
    Is it safe to move these databases and their logs to another partition which I would create on separate virtual hard disk for this purpose only and how much time this process might take since during this process databases
    would be dismounted and inaccessible to all users? He made big blunder in my opinion but I have to solve this.

    Yes, its safe to move the DB/Logs. You can follow the procedure mentioned in this article to do it via EMC or Shell... http://exchangeserverpro.com/move-exchange-2010-database-folder/
    But it depends on various factors on how long it is going take, like size of the database/logs, server performance, storage performance etc...
    Besides this, upgrade Exchange 2010 SP1 to SP3, SP1/SP2 aren't supported anymore! http://blogs.technet.com/b/rmilne/archive/2014/04/09/end-of-exchange-2010-sp2-support.aspx
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • JWS : Properties and Log file locations?

    We have a swing app that used log4j to log to a file. It also uses Apache commons PropertyConfiguration to allow the user to setup and save properties to a file.
    This all works great when running the app locally. The app creates the log file and properties file in the folder where the user launches the app from.
    Now that I'm trying to launch the app via JWS we should have the log file and properties file in some "known" location so that it doesn't matter if they launch the app from a browser, or from a desktop icon, or from a menu - the app will always look for the file in the same location.
    Any thoughts on where this location should be? For now we are just releasing to Windows users but eventually we will need to be able to launch on Mac and Linux as well. Is there some convention as to where such files should reside when using JWS?
    Thanks in advance!

    If it is signed, it can use a subdirectory of System.getProperty("user.home").
    You may want to look at PersistenceService.get(...).getXXXStream() that may overcome sandbox restrictions.
    Edited by: baftos on May 3, 2012 1:16 PM

  • Oracle Enterprise Manager 11g Database Control log file location

    Any one knows where the log file is for Oracle Enterprise Manager 11g Database Control. I am trying to set up EUS proxy authentication and running into issues when trying to search proxy user in my DB. The search returns no results and I am not sure where to look for. Please not my setup does work for EUS with shared or exclusive schema. I need to use Oracle DB proxy authentication for my application and that would need a setup of EUS with proxy permissions so please advice if you know where the log file is for Oracle Enterprise Manager 11g Database Control or if there is any logging I can turn on to see what search parameters are passed from Oracle Enterprise Manager 11g Database Control to my DB by using DB audit etc.
    Thanks,

    Be patient...wait for report.
    If after some time report does not appear, go to Advisor Central and find it there.
    :p

  • Tmp file locations and Log file locations

     

    I have been having a real headache too trying to get WebLogic to put all its
    log files and temporary files in directories that I specify. It seems that
    WebLogic has a mind of its own as files get created all over the place.
    Trying to configure these really basic settings has proved extremely
    awkward. Why is it such a nightmare to do?
    "Scott Jones" <[email protected]> wrote in message
    news:3af0179d$[email protected]..
    OK, I changed the relative path for the log files.
    1. I am still getting app-startip.log
    app0000.tlog
    in the root directory and not in the ./logs directory. Any other
    settings?
    2. I sill do not know how to redirect the tmp_ejbdomain.port directory.
    Any suggestions?
    Scott
    "Sanjeev Chopra" <[email protected]> wrote in message
    news:3aef0a42$[email protected]..
    "Scott Jones" <[email protected]> wrote in message
    news:3aef05be$[email protected]..
    I a domain configured and running with two applications. WLS 6 is
    placing
    the following logs for each application at the same dir level as
    config
    dir. It is also creating tmp_ejb directory at the same level.
    1. How do I tell WLS 6 to place log files in a diff directoryIn Admin Console: modify the property Server -> Configuration ->Logging ->
    FileName
    In config.xml: the 'FileName' attr can be set to an absolute path OR apath
    relative to Server.RootDirectory
    <Server EnabledForDomainLog="true" ListenAddress="localhost"
    ListenPort="7701" Name="managed"
    StdoutDebugEnabled="true" ThreadPoolSize="15">
    <Log FileCount="10" FileMinSize="50" FileName="managed.log"
    Name="managed" NumberOfFilesLimited="true"
    RotationType="bySize"/>
    </Server>
    2. How do I tell WLS 6 to place tmp_ejb directories in a diff
    directory
    >>>
    Thanks,
    Scott

  • AD Database and Log Bogus Free Space Alerts

    For some reason one of our Domain Controllers is generating a SCOM alert for "AD Database and Log : Free space (KB) on drive C: is lower than the required reserved space for AD Database and Log file. It should be at least 700000 KBytes."  The
    thing is that drive has 111 Gig free.  We are running SCOM 2012 SP1 with CU3.  AD MP version is 6.0.8228.0 and the offending DC is running Server 2012 R2.  We have other 2012 R2 DCs that don't have this issue so I'm a bit puzzled.  Thought
    I'd see if anyone else is having the issue.

    Hi
    SCOm do not see the size of the drive it looks size of AD DB and log file refer below link for more information on monitor
    http://technet.microsoft.com/en-us/library/dd262025.aspx
    Regards
    sridhar v
    According to your link it does look at the size of the drive.  There was a bit in there that struck me though, it said
    "During this initial replication cycle, the database and log file sizes are expected to grow significantly. This growth is not reported by the script as an error. However, for a new domain controller, the script still reports any low-disk-space conditions."
     I'm guessing this is what happened.  Thanks for pointing me in the right direction.

  • Process Flow ignores name and location for Control- and Log-Files

    Hi!
    Our OWB Version is 10.1.0.3.0 - DB Version 9.2.0.7.0 - OWF Version 2.6.2
    Clients and server are running on Windows. Database contains target schemas as well as OWB Design and Runtime, plus OWF repositories. The source files to load reside on the same server as the database.
    I have for example a SQL*Loader Mapping MAP_TEXT which loads one flat file "text.dat" into a table stg_text.
    The mapping MAP_TEXT is well configured and runs perfect. i.e. Control file "text.ctl" is generated to location LOC_CTL, flat file "text.dat" read from another location LOC_DATA, bad file "text.bad" is written to LOC_BAD and the log file "text.log" is placed into LOC_LOG. All locations are registered in runtime repository.
    When I integrate this mapping into a WorkFlow Process PF_TEXT, then only LOC_DATA and LOC_BAD are used. After deploying PF_TEXT, I execute it and found out, that Control and Log file are placed into the directory <OWB_HOME>\owb\temp and got generic names <Mapping Name>.ctl and <Mapping Name>.log (in this case MAP_TEXT.ctl and MAP_TEXT.log).
    How can I influence OWB to execute the Process Flow using the locations configured for the mapping placed inside?
    Has anyone any helpfull idea?
    Thx,
    Johann.

    I didn't expect to be the only one to encounter this misbehaviour of OWB.
    Meanwhile I found out what the problem is and had to recognize that it is like it is!
    There is no solution for it till Paris Release.
    Bug Nr. 3099551 at Oracle MetaLink adresses this issue.
    Regards,
    Johann Lodina.

  • I am geting errors in my database alert log file ora-12012 and ora 44003

    Hi all,
    I am using oracle 10g ...10.2.0.1.0 and OS is solaris 10.......
    i am geting these errors in my database alert log file last two days..i am not geting why it is coming?
    ORA-12012: error on auto execute of job 8887
    ORA-44003: invalid SQL name
    and trace file is i got i am posting here please help any one is aware about this....
    System name: SunOS
    Node name: obrmzone1
    Release: 5.10
    Version: Generic_137111-06
    Machine: sun4v
    Instance name: ------
    Redo thread mounted by this instance: 1
    Oracle process number: 144
    Unix process pid: 26874, image:--------- (J000)
    *** ACTION NAME:(AUTO_SPACE_ADVISOR_JOB) 2011-06-10 22:00:49.372
    *** MODULE NAME:(DBMS_SCHEDULER) 2011-06-10 22:00:49.372
    *** SERVICE NAME:(SYS$USERS) 2011-06-10 22:00:49.372
    *** SESSION ID:(110.7114) 2011-06-10 22:00:49.372
    *** 2011-06-10 22:00:49.372
    ORA-12012: error on auto execute of job 8887
    ORA-44003: invalid SQL name
    thank you in advance,
    Dav

    I just google with "ORA-44003: invalid SQL name" and found below link:
    http://www.oracle-base.com/articles/10g/dbms_assert_10gR2.php
    SIMPLE_SQL_NAME
    The SIMPLE_SQL_NAME function checks the input string conforms to the basic characteristics of a simple SQL name:
    The first character of the name is alphabetic.
    The name only contains alphanumeric characters or the "_", "$", "#"
    Quoted names must be enclosed by double quotes and may contain any characters, including quotes provided they are represented by two quotes in a row ("").
    The function ignores leading and trailing white spaces are ignored
    The length of the input string is not validated.

  • Ttcwerrors.log and ttcwmesg.log file locations

    Is there an option we can set in the ttcrsagent.options file to change the location of the ttcwerrors.log and ttcwmesg.log files?
    We can change the location of the daemon user and error log files by setting the -supportlog and -userlog options in ttendaemon.options, so we were hoping we could do the same in ttcrsagent.options.
    Thanks,
    -Jules

    Unfortunately, no. The ttcw log file location is not configurable
    Simon

  • Cannot shrink log file 2 because the logical log file located at the end of the file is in use ?

    HI,
    I am getting this error frequently.. any recomendations :
    Executed as user: DB0\sqlservices. Processing database: dbin [SQLSTATE 01000] (Message 0) 
    Cannot shrink log file 2 (DB_log) because the logical log file located at the end of the file is in use. [SQLSTATE 01000] (Message 9008) 
    Processing database: DB_ [SQLSTATE 01000] (Message 0)  DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) 
    Cannot shrink log file 2 (DB_log) because the logical log file located at the end of the file is in use. [SQLSTATE 01000] (Message 9008) 
    Processing database: DB [SQLSTATE 01000] (Message 0) 
    DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) 
    Backup, file manipulation operations (such as ALTER DATABASE ADD FILE) and encryption changes on a database must be serialized. Reissue the statement after the current backup or file manipulation operation is completed. [SQLSTATE 42000] (Error 3023) 
    Processing database: DB_AC [SQLSTATE 01000] (Error 0)  
    [SQLSTATE 01000] (Error 0)  DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Error 2528). 
    The step failed.
    Please give any receomendations to avoid this error in future :
    Yangamuni Prasad M

     
    Hi Yangamuni,
    Are there any progress?
    Please have a look on the below threads with the similar issues as yours:
    http://www.sqlservercentral.com/Forums/Topic652579-146-1.aspx
    http://social.msdn.microsoft.com/forums/en-US/sqldatabaseengine/thread/ae4db890-c15e-44de-a2af-e85c04260331
    The solution is change the recovery mode to SIMPLE, shrink log files and then change to the FULL recovery mode.
    Thanks,
    Weilin Qiao
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

  • Steps to move Data and Log file for clustered SQL Server

    Hi guys 
    we have Active'passive SQL 2008R2 cluster environment.
    looking for steps to move Data and log files from user Database  and System Database for  SQL Server Clustered Instance. 
    Currently Data and log  files resides on same drive for user and system Databases..
    Thanks
    Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah

    Try the below link
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/468de435-3432-45c2-a50b-23519cd2686e/moving-the-system-databases-in-a-sql-cluster?forum=sqldisasterrecovery
    -Prashanth

  • I get ERROR U44M1P7: Error log file location: C:\Program Files (x86)\Common Files\Adobe\Installers

    When updating Photoshop CS6 (Creative Cloud) I get ERROR U44M1P7: Error log file location: C:\Program Files (x86)\Common Files\Adobe\Installers. Initial Installation and actual funcioning wuith no problem, only on updating. I have tried several times with same error.

    Hi Alberto Pomares,
    Please refer the KB Doc : http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html

  • System Center 2012 R2 install: SQL server Data file and log file

    This might be a dumb question, but I can't find the answer anywhere.  
    I'm installing a new instance of  System Center 2012 R2 on a new server, I'm stuck on the SQL Server data file section.  Everytime I put in a path, it says that tne path does not exist.  I'm I supposed to be creating some sort of SQL Server
    data file and log file before this installation, I didn't get this prompt when installing System Center 2012 SP1 or hen I upgraded from System Center 2012 SP1 to System Center 2012 R2
    My SQL is on a different server
    Thank you in advanced

    Have you reviewed the setup.log?
    On a side note, why would you put the database file on the same drive as the OS? That defeats the whole purpose of having a remote SQL Server. Why use a remote SQL Server in the first place.
    Jason | http://blog.configmgrftw.com

  • Sql server data file and log file

    hello experts
    what is the best way to save data file and log file in a two node cluster environment. i have an active\passive cluster with windows server 2008r2 enterprise and sql server 2008r2. i am new to the environment and i noticed that all system and user databases
    including their data and log files are stored in one drive, just curious, what is the best practise in such kinds of scenario, thank you as always for your help.

    Make sure  you have valid/tested  backup strategy for both system and user databases.
    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

Maybe you are looking for

  • Oracle Performance Report how-to

    Hello everyone! I've got a task to check what is the problem of oracle perofrmance on production server which is 150% percents more powerful then test one. I've run ADDM report on the server, and that was a result sing the report name addmrpt_1_2_3.t

  • XML File-- XI-- SAP ECC Scenario

    Hi guys, We have the following scenario in XI XML File>XI>SAP ECC, and we need to call a BAPI at R/3 side. Which do you think is the best way to implement this, either calling the BAPI directly from XI or using an Inbound Server Proxy ? Thank you.

  • Custom itemRenderer - Bug?

    Hi, I have an example of some code that I can't figure out. What I'm doing may not be the best way to do what I want, but I believe is should work, and can't figure out why it doesn't. I have a datagrid with two columns, and the second column uses a

  • Using wireless bridge for Panasonic TV

    Hi everyone I have a question i have the cisco valet m10 wireless router , i am moving in to a apartment and plain on buy a new tv  panasonic model tcp46s30 so my only way to connect to the internet will be wireless. panasonic makes a lan usb apapter

  • Updates for n80... available, but where?

    i checked and my n80 runs V.3.0617.0.6 while i read that the latest firmare available is v4.0623.0.42. downloaded and tried software updater but it says that there's no newer version for my phone (n80 (rm-92). ho can i manually find and upload the v4