Addition of additional tempdb files

We can go for additional temp db files , but not more than the number of Logical CPU?
Is the above statement true?
If yes/no, please explain.. Really need the answer on urgent basis. Please help me.
Thanks in advance

This issue i have faced few days back so cant tell now what that was exactly doing...That time a session id was locking itself
So after restarting the sql services the lock got released.
so please tell me if i add one more tempdb would this resolve the issue of process locking itself?
Hello,
No we cannot tell you anything about your Process blocking itself unless you give us the Query.You  already raised same question on this forum.Please don't do that
Please read this article and see cases when process blocking itself is really not an issue
http://support.microsoft.com/kb/906344/en-us.
When an SPID is waiting for an I/O page latch, you may notice that the
blocked column briefly reports that the SPID is blocking itself. This behavior is a side effect of the way that latches are used for I/O operations on data pages. When a thread issues an I/O request, the SPID that issues the I/O request acquires a
latch on the page. All SQL Server 2000 I/O operations are asynchronous. Therefore, the SPID will try to acquire another latch on the same page if the SPID that issued the I/O request must wait for the request to finish. This second latch is blocked by the
first latch. Therefore, the blocked column reports that the SPID is blocking itself. When the I/O request finishes, the first latch is released. Then, the second latch request is granted.
Just calm down I don't know from where you got an idea about releasing self blocking by adding More tempdb files.
If you face issue again please post it so that we can help you without query its difficult to answer
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

Similar Messages

  • Tempdb file remove problem

    Hi All. I am trying to remove one of the tempdb logical file
    alter database tempdb remove file tempdev2
    and have the following error:
    The file "H:\tempdb2.mdf" has been modified in the system catalog. The new path will be used the next time the database is started.
    Msg 5042, Level 16, State 1, Line 1
    The file 'tempdev2' cannot be removed because it is not empty.
    then i run
    USE tempdb;
    GO
    DBCC SHRINKFILE('tempdev2', EMPTYFILE)
    and another error comes up:
    Msg 8985, Level 16, State 1, Line 1
    Could not locate file 'tempdev2' for database 'tempdb' in sys.database_files. The file either does not exist, or was dropped.
    then I see in sys.database_files ,, I see
    file_id file_guid type type_desc data_space_id name physical_name state state_desc size max_size growth is_media_read_only is_read_only is_sparse is_percent_growth is_name_reserved create_lsn drop_lsn read_only_lsn read_write_lsn differential_base_lsn differential_base_guid differential_base_time redo_start_lsn redo_start_fork_guid redo_target_lsn redo_target_fork_guid backup_lsn
    1 NULL 0 ROWS 1 tempdev d:\databases\tempdb\tempdb.mdf 0 ONLINE 52008 -1 10 0 0 0 1 0 NULL NULL NULL NULL 27000000012600037 245940A4-BFC3-4F98-98B8-E56FFD49AE02 2014-07-12
    14:00:05.247 NULL NULL NULL NULL NULL
    2 NULL 1 LOG 0 templog d:\databases\tempdb\tempdb.ldf 0 ONLINE 3688 -1 10 0 0 0 1 0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
    3 997529E5-AD3D-4605-9CC0-5DAB53C91DFD 0 ROWS 1 tempdev2 H:\tempdb2.mdf 0 ONLINE 1748360 -1 128 0 0 0 0 0 3515000000034000001 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
    any one can help? am I afraid next time DB restart, the DB instance can't be start up.

    First step you might have tried Empty the file, then remove the file...
    -- First empty the data fileUSE tempdb
    GO
    DBCC SHRINKFILE (tempdev2, EMPTYFILE); -- to empty "tempdev12" data file
    GOIf nothing is working then you have to restart the instance and try.. If you restart then you will come to how many files are there and then you can follow the corrects steps and then you can fix the issue.
    Note : Also we no need to restart the MS SQL Services after adding a new file to tempdb.but we have to restart after removing the tempdb files, Because tempdb space addition of removeal of the files comes under tempdb reconfig that requires
    a service restart.
    Raju Rasagounder Sr MSSQL DBA

  • SQL 2012 Cluster- How to or Steps to Move Tempdb Files from Local drive to Shared volume

    Hi..
     I did Installation of SQL Server 2012 Cluster. During this setup I installed Tempdb Files on Local drive. Now I want to move this tempdb files from local drive to Shared Drive . When I am trying to move I am getting below error.
    Does any one can help me or provide the steps to move this tempdb files from local drive to Shared Drive ?
    Msg 5184, Level 16, State 1, Line 1
    Cannot use file 'Z:\Tempdb\tempdb.mdf' for clustered server. Only formatted files on which the cluster resource of the server has a dependency can be used. Either the disk resource containing the file is not present in the cluster group or the cluster resource
    of the Sql Server does not have a dependency on it.
    Thanks 
    Regards..
    Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach

    Hi,
    The error message may be thrown out when you attempt to create a database on another shared cluster drive when the SQL Server resource is not dependent on that disk.
    Check if you are in the scenario which mentioned in the following article:
    How to create databases or change disk file locations on a shared cluster drive on which SQL Server was not originally installed
    http://support.microsoft.com/kb/295732/en-nz
    Here is a thread with similar issue:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c9f80af7-5b51-4c43-a2a0-f9c7d97aa41d/sql-disk-dependency-problem-on-sql-2008-cluster-including-errors
    Hope it helps.
    Tracy Cai
    TechNet Community Support

  • Unable to remove TempDB files SQL 2012

    Hi Experts,
    We have a problem with removing the extra created TempDB files on de SQL 2012 server. We tried several things:
    Restart services;
    Rename *.ndb files
    We use the following query in the SQL management studio:
    USE tempdb;
    GO
    DBCC SHRINKFILE('tempdev4', EMPTYFILE)
    GO
    USE master;
    GO
    ALTER DATABASE tempdb
    REMOVE FILE tempdev4;
    The error returned is:
    DBCC SHRINKFILE: Page 5:40 could not be moved because it is a work table page.
    Msg 2555, Level 16, State 1, Line 1
    Cannot move all contents of file "tempdev4" to other places to complete the emptyfile operation.
    DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    Msg 5042, Level 16, State 1, Line 1
    The file 'tempdev4' cannot be removed because it is not empty.
    It looks like the TempDB is still in use. If the services are stopped and the query is fired right after starting we receive the same error. Any suggestions are welcome.
    Regards,

    I would try to restart SQL Server in single-user mode, add -m to the startup options in the SQL Server Configuration Manager. You may still fail to remove the file if there is a process which eagerly connects directly and start to do work.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Find oldlocation after moving tempdb file

    HI Friends,
    How to check when tempdb files are moved to another location.
    It looks like someone moved tempdb files,but how to check the old location for tempdb.
    Thanks
    Shashikala
    Shashikala

    How to check when tempdb files are moved to another location.
    It looks like someone moved tempdb files,but how to check the old location for tempdb.
    What you want to check original location of tempdb files or when was it moved ? Like Praveen said after moving tempdb files a restart is required of SQL Server service.
    If you are using SQL Server 2008 r2 and above you can use below query to find out server restart time
    select servicename,last_startup_time from sys.dm_server_services
    If you are using SQL Server 2008 and above, use below query
    select sqlserver_start_time from sys.dm_os_sys_info
    Make sure you have view server state permission to run the DMV's
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Additional words added to file name

    For certain forms, when the user submits the form the file name, as expected, is the name that I gave the form. But additionally, Adobe Acrobat Pro.pdf is added after the file name. See figure. Is there a way to keep the "Adobe Acrobat Pro.pdf" from being added?
    Thanks,
    MDawn

    I have a submit button that "clicks" a hidden button. The hidden button has script that verifies that all
    required fields are filled in. Script on that button "clicks" another invisible button which opens email where
    the user selects the email recipients.
    I put the script you suggested in the PreSubmit event of the form, and then each of the Submit buttons and none of these worked.
    Thanks,
    MDawn

  • Unload Creates a .sql file in addition to an .xls file

    Hi All, I've recently downloaded version 3.0.02 which I use to create queries for database interrogation. I tend to export to Excel regularly and I'm finding that every time I unload an .xls file a .sql file is created in tandem.
    I have no use for this and have tried many different settings in the preferences area to stop it being created but to no avail - in addition the unload seems to take as long as the original query as if the query is being rerun - can somebody tell me what I'm doing wrong? Many Thanks, Steve.
    Edited by: user4230213 on 10-Dec-2010 02:25

    Is the additional file you are seeing the Generated-<date-time>.sql file?
    This file is generated when using a Save As type that can potentially create multiple sql files. It should not be created when generating Save As Single File. When we create a single sql file during the export, a generated control file is not needed and we should not create it... even if the Save As type is separate files, type files or separate directories. However, I can see that we are generating that control file when the Save As type is separate files, type files or separate directories cases and we created just 1 export file.
    Selecting the SaveAs type as single file should get you around the problem.

  • Compiler appears to include .cpp source instead/addition to .h header file

    Numerous source files in our project depend upon unix/dcfPosixLocks.h and must be linked with the dcfPosixLocks.o that results from compiling unix/dcfPosixLocks.cpp. While all of these numerous sources files either directly or indirectly #include "unix/dcfPosixLocks.*_h_*" none of them ever #include "unix/dcfPosixLocks.*_cpp_*" (or any other non .h file for that matter). Yet, the C++ compiler incorrectly appears to include unix/dcfPosixLocks.cpp instead of (or in addition to) unix/dcfPosixLocks.h, for example when compiling dcfConstants.cpp (actual invocation and error below). Renaming unix/dcfPosixLocks.cpp to unix/dcfPosixLocks.c (or other names with C/C++ related file extensions) results in similar behavior. We first discovered this problem when we moved from a partially patched Studio 11 on Solaris 9 SPARC to an unpatched Studio 11 on Solaris 10 SPARC, i.e. it works fine on the old system. The problem remains after fully patching Studio 11 on Solaris 10 SPARC and even after fully patching Studio 12 on Solaris 10 SPARC. The implication is that one of the Studio 11 patches broke the C++ preprocessor and has of course been carried over into Studio 12. Since we use gmake to compile multiple sources concurrently, we ruled gmake out as a source of the problem by eliminating concurrent compilation (e.g. -j1 not -j2) and by tracing it to ensure that it was not deciding to compile unix/dcfPosixLocks.cpp (e.g. due to some implicit rule or something like that). Workaround #1, since the dcfConstants.cpp file contains no templates, is to separately preprocess and then compile, i.e. CC -E dcfConstants.cpp 1> .../dcfConstants.i and then CC -c dcfConstants.i -o .../dcfConstants.o. Of course, workaround #1 is dubious in general and completely unworkable where templates are involved. Workaround #2 is to move the unix/dcfPosixLocks.cpp file out of the include path (many of the directories in our include path contain both source and header files). Unfortunately, workaround #2 is problematic from a source control point of view... implies lots of source files being moved unnecessarily from one location to another to artificially distinguish them from header files, breaking historical chains in the process (granted, depends on the abilities of your source control software). Any thoughts or comments? We are hoping that somebody might be able to help us discover the errors in our ways, contribute additional workarounds, and/or confirm that this is in fact a compiler bug. I can try to provide more information as needed. Thank you in advance. -R
    /opt/studio11/SUNWspro/bin/CC -G -KPIC -w -mt
    -D_POSIX_PTHREAD_SEMANTICS -DCXX_SUNPRO -DDCF_NO_STD_MIN -g
    -D_DEBUG -DDCF_ASSERTIONS_ABORT -DDCF_DEADLOCK_ABORTS -DDC F_EXCEPTIONS_ABORT -I. -I/export/home/buildsys/src/build/tmp.3/dcf1/inc
    -I/export/home/buildsys/src/build/tmp.3/dcf1/platform/unix/solaris/inc
    -I/export/home/buildsys/src/build/tmp.3/dcf1/platform/unix/solaris/inc
    -I/export/home/buildsys/src/build/tmp.3/dcf1/platform/unix/inc
    -Iunix/solaris -Iunix
    -I/export/home/buildsys/src/build/tmp.3/dcf1/interfaces
    -I/export/home/buildsys/src/build/tmp.3/dcf1/platform/unix/solaris/interfaces.overlay
    -I/export/home/buildsys/src/build/tmp.3/dcf1/interfaces.overlay
    -c dcfConstants.cpp -o Debug/unix/solaris/dcfConstants.o
    "unix/dcfPosixLocks.*_cpp_*", line 72: Error:
    dcfLocks::oAtomicAccessToLong is initialized twice.
    "unix/dcfPosixLocks.*_cpp_*", line 103: Error:
    dcfMutexAttributes::pSingleton is initialized twice.
    2 Error(s) detected.
    gmake[2]: *** [Debug/unix/solaris/dcfConstants.o] Error 2
    gmake[1]: *** [all-r] Error 1
    gmake: *** [build] Error 2

    I'm having trouble understanding what change in Sun compilers or in Solaris could have resulted in the change in behavior you report.
    For template code, Sun compilers have always used the automatic inclusion model described in the C++ Users Guide section 5.2, "Template Definitions".
    Specifically, if you include a header foo.h that declares one or more templates, the compiler will automatically include foo.cpp (or foo.cc, foo.C, etc) if it needs a definition of one of those templates. That is, it assumes that template definitions missing from foo.h will be in foo.cpp.
    Does that answer your question?

  • Where is the additional information for a file located.

    This picture display the GetInfo on a file on my computer.
    http://www.digimixstudios.net/FileInformation.png
    It saves where I got it in "More Info" and what program will start to "Open with".
    My question, where is this information being stored?
    I'll just be thumbing thru the API documentation to look for this, but if someone can tell me the specific API, that would just cut down my search time.

    I'm familiar with Logic's tempo in the the event window and on the global tracks. My question is: how do I find the tempo information within an imported midi file? Logic is not recognizing the information, so I want to find it and set the tempos myself - if possible. (It must be possible.)
    If you import a MIDIfile, or drag it to the arrange, you are importing the sequence data into your current project. In other words, regardless of the tempo in the midifile, you are importing into Logic at Logic's current tempo, ignoring the tempo stuff in the midifile.
    if you want to retain the tempo in the MIDIfile, you must "Load" the midifile, not import it. This creates a new project with all the tempo information contained in the midifile.
    Logic has behaved this way the same since the early days.
    In Logic 7 the event window's width could stretch. Since then only the length stretches. There are always notes from the author that are cut off now.
    I don't like the current event list window either...

  • Loading additional swf in .AS file

    i want to load another movie onto my flash stage through an
    .as file but I’m not sure on how to do that. right now I have
    one movie loaded on to the stage in a movieClip called container. I
    would like to load a second swf on to another movieClip called
    container2, right below the contents of container1. the path for
    the container2 movieClip would be (“info/help.swf”);
    what should I do. i tried adding another class but i create a
    duplication error.

    Hello,
    SQL*Loader is used to load data into the database.
    May be I'm wrong but, I don't think you can "output" result query with it.
    Anyway you can find a link here about Oracle Utilities, there's a chapter on
    SQL*Loader:
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14215.pdf]
    Else to export in various format a result query I use generally SQL Developer.
    It's free and you can export even in Excell files (.XLS) your results.
    Hope it can help,
    Best Regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Nov 22, 2009 4:54 PM

  • Export Layers to Files includes an additional layer in each file

    I'm using the CS4 Export Layers to Files (to PNG with transparency), and with this particular PSD, there's one layer that gets exported on its own, and then it's included in each of the other layers when they're exported.  If I run it a second time but exclude that layer from the selection, then the next layer up is the one that's exported on its own and then included with all of the other exports.  It seems to be failing to make that layer invisible again after it's been exported. 
    I've managed to run this over 4 PSD files and they all worked perfectly.  I've tried another since this problem started happening, and it, too, does the same thing.
    Any ideas?  The script hasn't been modded.

    I have modified the original script to include some functionality in another I found online, and the problem has gone away.  I guess it was in a part of the code that was made optional.  So, while I still don't know what caused the problem, the mods have made it stop happening.

  • Meaning of additional info to .dv file name

    I'm fairly new to imovie as well as to using a Mac. (already sold on it though and will never switch back to PC)
    When I export to a file in .dv format and view the file in finder there is a number under the file name, e.g. 63.56.20. What is the meaning of this number? I have exported the same clip with slightly different settings and get a totally different number.
    Thanks / Peter

    Matt,
    Thanks, I now know more than I did before but it still makes me curious what these numbers stand for. I actually exported exactly the same clip, first with highest quality and then with expert settings, best possible dv settings. The first dv-file has the number 19.10.54 the second one 63.56.20. I have checked in file info and found nothing that would relate to these numbers. The clip is 26 minutes, 16 seconds and 17 frames.
    I guess I have to accept this as one of life's small mysteries unless someone out there happens to know more.
    Peter

  • Additional storage & relocating Aperture files

    Hi, a few questions if anyone is able to help:
    1) I am running a Macbook Pro on Lion and currently back up to a 1TB Time Capsule. I also have a 1TB WD hard drive that i back up photos onto seperately. I want to store my itunes, aperture/iphoto files and video files away from my Macbook as the hard drive is nearly full. I was looking at a WD 2TB Network drive or the similar from Iomega. If i get one of these, can i back up their content on the Time Capsule?
    2) If i get a Network drive, can i store my music/photos/videos on that and access on the Macbook as if it was a normal drive?
    3) How do i move my Aperture library to the new drive and access it through Aperture so that my Mac drive doesn't fill up?
    Thanks in advance.
    Lee

    Small clarification:
    leonieDF wrote:
    { ... } with referenced masters you will need to relocate the masters after you moved the library.
    Is this true?  I'm not sure --  and I fear that it could be misleading.  You can put a Library anywhere, and Aperture will use the existing references to the Referenced Masters.  So, for instance, if your Library is on your system drive and your Referenced Masters are on an external drive "Thunderpaw" and you move your Library to a newly-purchased external drive "Pussyfoot", the references to "Thunderpaw" should still work.
    To the OP:
    There are two ways to reduce the amount of storage space Aperture inhabits on your system drive.  Since your Library should be on your fastest-accessed drive, and since this is almost always your system drive, you should keep your Library on your system drive if possible.  Aperture provides tools to move your Masters to another location (usually an external drive) -- you would convert them from Managed Masters to Referenced Masters.  This is the first step you should take to reclaim space on your system drive.
    It sounds as though this is what you are asking about.  It is important to understand the distinction between your Library, and your Masters.
    If that doesn't resolve your need for more space on your system drive, then you should look into relocating your Library to an external drive.  If you do, you will want it on a drive that is at least as fast as FW800, 7200rpm, with a large cache.
    Note that there are trade-offs between having your Library on your laptop or not.  You can do a good bit with Aperture even if you don't have access to your Masters.

  • Any additional ways to edit files saved as HTML?

    I own Acrobat 9 Pro. It's megacool and today I got to looking at some of the extra features and realized I probably don't have to go out and find a PDF-to-HTML converter. I say "probably" because I just ran a test saving a text-only PDF file as HTML from Acrobat. I've been doing Web design for years, and when I opened up the resulting file in my HTML editor there were problems. Although id does include CSS -- a must-have -- there were still a large number of style settings that needed to be eliminated and all handled by a single CSS selector. I tried doing a search-and-replace in Dreamweaver, which normallly works very quickly even over an entire site, and it started grinding away like my antivirus software does during a deep scan of my hard drives. I did look at the output options in Acrobat, but there was nothing there that indicated I could gain more control over the nature of HTML it generates. Any tips?

    The major options you have would be related to HTML 3 versus HTML 4. I doubt that you get much in terms of style sheets since that is not a major part of the HTML 4 standard as I recall. What you do get in styles is likely highly dependent on the tagging. Tagging is the same process that helps in conversion to WORD. Without the tagging, you will most likely lose much of what appears to be formatting. Another option would be to save as a DOC file and then use the DOC to HTML that is part of WORD. However, WORD does not generate very nice HTML and that might be a poor way to go.
    I used to get reasonable results with HTML 3 export in AA5, but that did not have style sheets at all.
    Have you tried checking out the manual for the options? There are some in the preferences as I recall (I would look at AA9, but on the wrong machine now).

  • Need help! Issue getting TempDB files removed

    I'm currently running SQL 2012 and having some issues altering the TempDB to remove two additional mdf data files from the filegroup.
    The tempdb currently has two additional mdf data files, tempdev1, tempdev2
    I'm running the following command
    ALTER DATABASE tempdb
    REMOVE FILE tempdev2
    And while I expect to see the message
    Msg 5042, Level 16, State 1, Line
    1
    The file ‘tempdev2′ cannot
    be removed because it is not empty.
    I am NOT seeing anything to the likes
    below...which concerns me as I don't think i'm ready to restart my instance and have the desired changes in play
    The file “D:\tempdb\tempdev2.mdf”
    has been modified in the systemcatalog. The
    new path will
    be used the next time the database isstarted.

    It seems some activities are going on that is using your TempDB.
    Restart the SQL services this will create your new Tempdb & all files become clear. After that run your both commands, It should work.
    USE tempdb;
    GO
    DBCC SHRINKFILE('tempdev1', EMPTYFILE)
    GO
    USE master;
    GO
    ALTER DATABASE tempdb
    REMOVE FILE tempdev1;
    Just to add, only 1 mdf can have per database, rest of this all other data files will be ndf.
    Regards,
    Rohit Garg
    (My Blog)
    This posting is provided with no warranties and confers no rights.
    Please remember to click Mark as Answerand
    Vote as Helpfulon posts that help you. This can be beneficial to other community members reading the thread.

Maybe you are looking for