Compile locks on Resource database only

Our server was recently crippled by blocked processes on the Resource database.
Restarting the instance resolved the problem, however I would like to understand why Resource DB was blocking on compile, yet no other database was experiencing blocking.
<blocked-process-report monitorLoop="717845">
 <blocked-process>
  <process id="processeb92c99c38" taskpriority="5" logused="0" waitresource="OBJECT: 32767:-412:0 [COMPILE]" waittime="7822" ownerId="6639115589" transactionname="sqlsource_transform"
lasttranstarted="2014-09-05T23:00:11.117" XDES="0x201b053d20" lockMode="X" schedulerid="19" kpid="10208" status="suspended" spid="819" sbid="0" ecid="0" priority="-5"
trancount="0" lastbatchstarted="2014-09-05T23:00:11.117" lastbatchcompleted="2014-09-05T23:00:11.117" lastattention="1900-01-01T00:00:00.117" clientapp="ediEnterpriseServiceRunner" hostname="WG1-SPRC-22"
hostpid="138648" loginname="OdysseyAdmin" isolationlevel="read committed (2)" xactid="6639115589" currentdb="796" lockTimeout="4294967295" clientoption1="671090784" clientoption2="128056">
   <executionStack>
    <frame line="2" stmtstart="-1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
    <frame line="2" stmtstart="-1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
    <frame line="2" stmtstart="-1" sqlhandle="0x02000000b8e27d16fe8d28b092004808170c1d201fbac34b0000000000000000000000000000000000000000"/>
   </executionStack>
   <inputbuf>
SELECT name, type_desc
FROM [Odyssey1_SD001].sys.triggers
WHERE parent_class = 0
AND is_ms_shipped = 0
AND is_disabled = 0   </inputbuf>
  </process>
 </blocked-process>
 <blocking-process>
  <process status="suspended" waitresource="OBJECT: 32767:-412:0 [COMPILE]" waittime="8574" spid="766" sbid="0" ecid="0" priority="-5" trancount="0" lastbatchstarted="2014-09-05T23:00:10.367"
lastbatchcompleted="2014-09-05T23:00:10.367" lastattention="1900-01-01T00:00:00.367" clientapp="ediEnterpriseServiceRunner" hostname="WG1-SPRC-24" hostpid="18348" loginname="OdysseyAdmin" isolationlevel="read
committed (2)" xactid="6639111342" currentdb="1070" lockTimeout="4294967295" clientoption1="671090784" clientoption2="128056">
   <executionStack>
    <frame line="2" stmtstart="-1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
    <frame line="2" stmtstart="-1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
    <frame line="2" stmtstart="-1" sqlhandle="0x02000000f030cd2a8c487038f8e4314b6bf429f9681699700000000000000000000000000000000000000000"/>
   </executionStack>
   <inputbuf>
SELECT name, type_desc
FROM [Odyssey2_SD001].sys.triggers
WHERE parent_class = 0
AND is_ms_shipped = 0
AND is_disabled = 0   </inputbuf>
  </process>
 </blocking-process>
</blocked-process-report>

Hi Erland,
I found that if I run the below query, I can get the -412.
select
*fromsys.sysobjectswherename='triggers'
From the information of "waitresource=OBJECT: 32767:-412:0 [COMPILE]", I suspect there's a stored procedure invoked the triggers view and many connections are concurrently running the same stored procedure , so the blocking issue
occured.
In Microsoft SQL Server, only one copy of a stored procedure plan is generally in cache at a time. Enforcing this requires serialization of some parts of the compilation process, and this synchronization is accomplished in part by using compile locks. If
many connections are concurrently running the same stored procedure and a compile lock must be obtained for that stored procedure every time that it is run, system process IDs (SPIDs) might begin to block one another as they each try to obtain an exclusive
compile lock on the object.
Another scenario in which compile locks occur is when the following conditions are true:
The user who runs the stored procedure is not the owner of the procedure.
If an existing plan is found during the SP executing, SQL Server reuses the cached plan and does not actually compile the stored procedure. However, the lack of owner-qualification forces SQL Server to perform a second cache lookup and obtain an exclusive
compile lock before the program determines that the existing cached execution plan can be reused.
Reference : http://support2.microsoft.com/kb/263889
I think we need to check whether customer's stored procedure often conconcurrently running and often recomplie.
Halin Huang

Similar Messages

  • Is anyone using testing seeing compiler lock-ups? [SOLVED]

    As the title says, is anyone using testing seeing compiler lock-ups? I've been seeing them for about two or three days. Sometimes the system will hang for a few seconds at "Starting make" with 100% CPU usage, then will continue normally. Other times it will stop in the middle of compiling and CPU usage will drop to 0. Also, I've been seeing small hang ups with patches. Maybe four or five seconds when simple patches are being applied. Bringing MAKEFLAGS down to the default 2 from 3 seems to help a tiny bit.

    fakeroot would put it in the right time frame. I linked to your bug report Anarconda as it seems like the same problem. As always if anyone has anything to add, please do:
    http://bugs.archlinux.org/task/13699

  • Error: You do not have sufficient access to perform a lock on this database

    Hi,
    Can anyone help on this.
    When user try to load data through Excel it throws the following error "You do not have sufficient access to perform a lock on this database"
    We are using Essbase 6.5.
    We have tried following options
    FIX1:
    In Microsoft Excel, under ESSBASE -> OPTIONS, under the MODE tab, the check box UPDATE MODE is checked.
    When the UPDATE MODE check box is selected retrievals will automatically lock the corresponding database area with each retrieval. Disable Update Mode to stop locking blocks automatically. In update mode, the Send command (which updates the server with data values from the spreadsheet) does not automatically unlock data after the send.
    1. Launch Microsoft Excel
    2. Select ESSBASE -> OPTIONS
    3. Select the MODE tab
    4. Uncheck "Update Mode" to return to normal mode
    This error is seen when trying to lock and send data via the Hyperion Essbase Spreadsheet Add-in into that fall within a replicated target partition definition
    1. Go to HYPERION APPLICATION MANAGER -> DATABASE -> PARTITIONMANAGER
    2. Select the relevant partition
    3. Select EDIT
    4. On the CONNECT TAB, select SETTINGS and tick the option THETARGET PARTITION CAN BE UPDATED
    Also gave write access to that user.
    Can anyone give another possible solutions.
    With thanks,
    babu

    Hi Raja,
    Check this out../
    Weird problem regarding Essbase Excel plug in
    It might help
    Regards
    Amarnath

  • Error: "You do not have suffficient access to perform a lock on this database

    Hi, <BR><BR>I have a problem with Essbase Excel Add-in, i can´t retrieve because appears this error: Error: "You do not have suffficient access to perform a lock on this database<BR><BR>Plese, help me. Idon´t have speak inglish.

    If the problem is limited to a single PC, I would suggest that you uninstall the Essbase client on that PC, reboot, and the reinstall the client including the addin. <BR><BR>It appears that some sort of macro is running on that PC that does teh login in update mode. I'd also remove all copies of any excel spreadsheets that might be involved, copying a clean version from another PC.<BR><BR>If you are using any third-party tools, like toolbars or other addins for excel and essbase, I'd clean them out also. <BR><BR>You haven't said whether a login from an new, blank spreadsheet works. If it does, the problem is in the spreadsheet you are using to retrieve the application, otherwise, the problem may be in a corrupted add-in, or even possibly with your excell installation.<BR><BR>It's hard to diagnose a problem when you haven't given us any more information about the problem. You haven't really answered any of the questions we've asked about behaviour and whether the problem existsin certain other circumstances. I'm certain that if language is a problem, someone might be able to help you in some language other than English, but generally this forum works in English because it a a common language in the Hyperion community.

  • How to find out  Locks on the database objects

    how to find out Locks on the database objects

    The following notes should be helpful:
    Note: 200590.1 - bde_session_locks.sql - Locks for given Session ID
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=200590.1
    Note: 1039273.6 - SCRIPT: VIEWING LOCKS ON OBJECTS HELD BY SPECIFIC USER
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=1039273.6
    You can also search Metalink, there are many notes/scripts published there which would be also helpful.

  • Query issue with 9i database only

    Hi,
    I am getting this strage error in 9i database only for the following query. It works perfectly fine in any 8i databases. The query is executed from schema user X with all the referenced tables from schema user B.
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    SELECT COUNT (ref_id), gparent_id, ref_id, ref_value
    FROM (SELECT (SELECT ref_id
    FROM sams_sec_application_setup
    WHERE setup_id = a.setup_id) ref_id,
    (select ref_id from sams_sec_application_setup where setup_id =
    (SELECT parent_id
    FROM sams_sec_application_setup
    WHERE setup_id =
    (SELECT parent_id
    FROM sams_sec_application_setup b
    WHERE setup_id = a.setup_id))) gparent_id,
    (SELECT ref_value
    FROM sams_sec_application_setup
    WHERE setup_id = a.setup_id) ref_value
    FROM sams_sec_security a
    WHERE setup_id IN (
    SELECT setup_id
    FROM sams_sec_application_setup a
    WHERE application_id = (SELECT application_id
    FROM sams_sec_application
    WHERE application_name = 'SOFA')
    AND GROUP_ID = (SELECT GROUP_ID
    FROM sams_sec_group
    WHERE group_name = 'Alliances'))
    AND user_id = 'srikulka '
    AND entity_id IN (
    SELECT a.role_id
    FROM sams_sec_role a,
    sams_sec_permission b,
    sams_sec_role_permission c
    WHERE a.role_id = c.role_id
    AND b.permission_id = c.permission_id
    AND b.permission_name = 'Admin'
    AND b.application_id =
    (SELECT application_id
    FROM sams_sec_application
    WHERE application_name = 'SOFA')))
    GROUP BY ref_id, gparent_id, ref_value;
    The same query executed without any error in 8i databases.
    The query is executed from schema user X with all the referenced tables in schema user B.
    Thanks and regards,
    Ambili

    3113 is a generic error and there are many known reasons for encountering this error. I suggest you search for related docs on Metalink.

  • Photosmart C7280 locks up after printing only one page

    Recently, my Photosmart C7280 has started locking up after printing only about one page of any document. The LCD display just says, "printing....", and the only way I've found to clear it is to unlug the printer from the mains. It happily prints multiple copies of single page documents, but the only way to print muli-page documents is to do them one page at a time.
    I have the same problem from both my desktop and laptop.

    Thank you for the suggestion. unfortunately, it did not help with this problem. I ran the utility and it indicated that there were no problems with the printer.
    it seems likely to me that this is some sort of memory or buffering problem within the printer itself. However, I can't find any options on the printer's menu to clear the buffer or internal memory. I have tried 'restore factory settings' but this made no difference.
    The problem appears to be getting worse - while printing multiple copies of a single page document today, the printer locked up after just 3 copies. I had to rpint 20 copies by printing 3 copies several times over.
    Thanks,
    Anne

  • Addiing Resources(Database/LDAP) to Sun IDM through SPML

    Hi,
    Can anyone tell me how to add resources(database/LDAP etc.) to Sun Identity Manager using SPML/web services?

    I can't confirm this works, but I think you should be able to add a new ObjectType to your LDAP resource configuration...i.e. something like the following.
    (I just copied and pasted one of the default ObjectType definitions and altered it to match the LDAP nisNetgroup objectclass and its
    attributes (defined in draft-howard-rfc2307bis).)
    <ObjectType name='nisnetgroup' nameKey='nisnetgroup' icon='group'>
    <ObjectClasses primary='nisnetgroup' operator='OR'>
    <ObjectClass name='nisnetgroup'/>
    </ObjectClasses>
    <ObjectFeatures>
    <ObjectFeature name='create'/>
    <ObjectFeature name='update'/>
    <ObjectFeature name='delete'/>
    <ObjectFeature name='rename'/>
    <ObjectFeature name='saveas'/>
    </ObjectFeatures>
    <ObjectAttributes idAttr='dn' displayNameAttr='cn' descriptionAttr='description'
    objectClassAttr='objectclass'>
    <ObjectAttribute name='cn' type='string'/>
    <ObjectAttribute name='description' type='string'/>
    <ObjectAttribute name='nisNetgroupTriple' type='string'/>
    <ObjectAttribute name='memberNisNetgroup' type='string'/>
    </ObjectAttributes>
    </ObjectType>
    Hope this helps.
    Regards,
    Alex

  • Locks in the database

    Hi,
    I have a database which is hung due to locking issue!
    Database is 9.2.0.8 and it is running on HPUX platform!
    I see from the v$lock that there are various locks on this database. How do I drill down as to which is the initial lock which is causing the db to be hung so that I can release that lock.
    SQL> select * from v$lock where block>0 or request>0;
    ADDR             KADDR             SID TY        ID1        ID2      LMODE    REQUEST      CTIME      BLOCK
    C0000001B257D540 C0000001B257D568   18 TM       6544          0          0          2        246          0
    C0000001B257D060 C0000001B257D088   25 TM       6544          0          0          2       4406          0
    C0000001B257FE28 C0000001B257FE50   48 TM       6544          0          0          2       2310          0
    C0000001B257B208 C0000001B257B230   61 TM       6544          0          3          0      14791          1
    C0000001B2581378 C0000001B25813A0   66 TM       6544          0          2          0      14791          1
    C0000001B2580590 C0000001B25805B8   69 TM       6544          0          0          2        281          0
    C0000001B257FA18 C0000001B257FA40   80 TM       6544          0          0          2        228          0
    C0000001B25808D0 C0000001B25808F8   90 TM       6544          0          0          2        176          0
    C0000001B2589A78 C0000001B2589AA0   93 TM       6544          0          2          0      14791          1
    C0000001B25809A0 C0000001B25809C8   94 TM       6544          0          0          2         85          0
    C0000001B257AB88 C0000001B257ABB0   96 TM       6544          0          2          0      14791          1
    C0000001B2586958 C0000001B2586980   98 TM       6544          0          2          0      14791          1
    C0000001B257E820 C0000001B257E848  107 TM       6544          0          0          2        168          0
    C0000001B257BA40 C0000001B257BA68  116 TM       6544          0          0          4       5343          0
    C0000001B257E3F8 C0000001B257E420  125 TM       6544          0          0          2        171          0
    C0000001B257FEF8 C0000001B257FF20  126 TM       6544          0          0          2        124          0
    C0000001B2580730 C0000001B2580758  130 TM       6544          0          0          2        180          0
    C0000001B257F2B0 C0000001B257F2D8  135 TM       6544          0          0          2       3144          0
    C0000001B257EC30 C0000001B257EC58  136 TM       6544          0          0          2        149          0
    C0000001B2580B40 C0000001B2580B68  137 TM       6544          0          0          2         48          0
    C0000001B257AC58 C0000001B257AC80  149 TM       6544          0          2          0      14791          1
    21 rows selected.How do I troubleshoot this issue? Please advice!
    Thanks!

    SQL> SELECT DECODE(request,0,'Holder: ','Waiter: ')||sid sess,
    id1, id2, lmode, request, type
    FROM V$LOCK
    WHERE (id1, id2, type) IN
    (SELECT id1, id2, type FROM V$LOCK WHERE request>0)
    ORDER BY id1, request
    /  2    3    4    5    6    7
    SESS                                                    ID1        ID2      LMODE    REQUEST TY
    Holder: 150                                            6542          0          3          0 TM
    Waiter: 136                                            6542          0          0          4 TM
    Holder: 61                                             6544          0          3          0 TM
    Holder: 66                                             6544          0          2          0 TM
    Holder: 96                                             6544          0          2          0 TM
    Holder: 149                                            6544          0          2          0 TM
    Holder: 93                                             6544          0          2          0 TM
    Holder: 98                                             6544          0          2          0 TM
    Waiter: 27                                             6544          0          0          2 TM
    Waiter: 126                                            6544          0          0          2 TM
    Waiter: 154                                            6544          0          0          2 TM
    Waiter: 150                                            6544          0          0          2 TM
    Waiter: 135                                            6544          0          0          2 TM
    Waiter: 130                                            6544          0          0          2 TM
    Waiter: 125                                            6544          0          0          2 TM
    Waiter: 90                                             6544          0          0          2 TM
    Waiter: 107                                            6544          0          0          2 TM
    Waiter: 94                                             6544          0          0          2 TM
    Waiter: 116                                            6544          0          0          4 TM
    19 rows selected.

  • What is the main usage of resource database?

    i want to know the resouce database , actually it will not appear physically then why it will be used

    Hi ravana
    The Resource database makes upgrading to a new version of SQL Server an easier and faster procedure. In earlier versions of SQL Server, upgrading required dropping and creating system objects.
    Because the Resource database file contains all system objects, an upgrade is now accomplished simply by copying the single Resource database file to the local server.
    Please follow this link to get information about some common questions with answers related to Resource database
    http://blogs.msdn.com/b/vsanil/archive/2012/11/02/resource-database-common-questions.aspx
    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  
    Amit Kotha

  • Mysql database only for one java project

    Hello,
    Can anyone tell me if somehow I can connect mysql only for one java project.
    For e.g. I'm building a swing application I need to use database for some purposes. I want to have all in one. That my project will contain database only for it and nothing else. The user could not be able to connect to that mysql which I'm using for my project.
    Any ideas how to make this work?

    Paulius wrote:
    Yes. I want that the database would be implemented in my program (project). And it must be used only with this project and nothing else.Then you'll probably want to use one of the In-memory databases. There was one that came with Java these days too, JavaDB or similar I think.
    You can't embed MySQL (AFAIK) in your project.

  • HT1199 Im traveling abroad and while I  have refused the IOS7 upgrade my iPad is now lock.  The display only reflecting iTunes and the USB cable images.  Now I can not access my photos and or my email.  Anyway I can reset without connecting to my computer

    Im traveling abroad and while I  have refused the IOS7 upgrade my iPad is now lock.  The display only reflecting iTunes and the USB cable images.  Now I can not access my photos and or my email.  Anyway I can reset without connecting to my computer?

    penny175 wrote:
    Anyway I can reset without connecting to my computer?
    No. Not without access to a computer running iTunes. You do want to use your own computer so that you can restore from your backup and sync your own content back from iTunes.

  • I have upgraded my iphone  to iSO version 6 but the problem is the phone was locked it shows that only compatible SIM cards from a supported carrier may be used to activat Iphone.please insert the SIM card that came with your iphone

    i have upgraded my iphone  to iSO version 6 but the problem is the phone was locked it shows that only compatible SIM cards from a supported carrier may be used to activat Iphone.please insert the SIM card that came with your iphone

    So then do as it says...insert the SIM that came w/the phone.

  • HT4914 If I download a song from iTunes Match, will it be locked by DRM to only be able to be opened by my Apple ID?

    I'm reading through all of the iTunes Match literature, but there's one question that isn't addressed.
    I know that song purchased from the iTunes store will be locked by DRM to only be allowed to be played by my Apple ID through iTunes (and I cna use my Apple ID on something like up to 5 devices?), and if I have songs in my library that are locked by DRM, they will not be uploaded through iTunes Match (which I assume means only songs locked by DRM tied to accounts OTHER than the Apple ID I'd be using to get iTunes Match would not be uploaded).
    However, once all of the music is Matched or uploaded to iTunes Match, there's no information as to whether the music would be locked to DRM tied to my Apple ID if / when I want to download it.

    Music from the iTunes Store, whether obtained in the last couple of years from the iTunes Store directly or via iTunes Match, is not copy protected. If you have old DRM tracks from the iTunes Store, they will be upgraded to the higher-quality DRM-free versions when iTunes Match uploads them as long as they were obtained through the Apple ID you are using for iTunes Match. I believe that any copy-protected tracks locked to a different iTunes Store account will be ignored by iTunes Match, though I'm not certain. Someone else may be able to confirm or refute that.
    You do need your Apple ID to play or download tracks from iTunes Match, of course.
    Regards.

  • TS2755 I can't hear me text message come in if my home screen is locked.  I can only hear it if my phone is on any other screen

    HELP!!!!!
    I can't hear me text message come in if my home screen is locked.  I can only hear it if my phone is on any other screen..

    Hello Trisha0422
    Check to see if Do Not Disturbed is turned on as does not notify with an alert or sound when the screen is locked. Look for the Moon in the upper right hand corner by your battery icon. 
    Set iPhone to Do Not Disturb
    http://support.apple.com/kb/TI6
    Regards,
    -Norm G.

Maybe you are looking for