Posted on Leave a comment

The partner transaction manager has disabled its support for remote/network transactions

First verify the “Distribute Transaction Coordinator” Service is running on both database server computer and client computers

1.      Go to “Administrative Tools > Services”

2.      Turn on the “Distribute Transaction Coordinator” Service if it is not running

If it is running and client application is not on the same computer as the database server, on the computer running database server

1.      Go to “Administrative Tools > Component Services”

2.      On the left navigation tree, go to 

“Component Services > Computers > My Computer”  (you may need to double click and wait as some nodes need time to expand)

3.      Right click on “My Computer”, select “Properties”

4.      Select “MSDTC” tab

5.      Click “Security Configuration”

6.      Make sure you check “Network DTC Access”, “Allow Remote Client”, “Allow Inbound/Outbound”, “Enable TIP”  (Some option may not be necessary, have a try to get your configuration)

7.      The service will restart

8.      BUT YOU MAY NEED TO REBOOT YOUR SERVER IF IT STILL DOESN’T WORK

On your client computer use the same above procedure to open the “Security Configuration” setting, make sure you check “Network DTC Access”, “Allow Inbound/Outbound” option, restart service and computer if necessary.

On you SQL server service manager, click “Service” dropdown, select “Distribute Transaction Coordinator”, it should be also running on your server computer.

Posted on Leave a comment

Oracle InstantClient error

The setup routines for the Oracle ODBC client in instantclient64_12_1 could not be loaded. System error code 126: The denoted module was not found. (C:Program FilesOracleinstantclient64_12_1SQLORAS32.DLL).

Download and install the Microsoft Visual C++ 2010 Redistributable Package:

http://www.microsoft.com/en-us/download/confirmation.aspx?id=14632

The problem is not with the SQLORA dlls, but the modules that those ddls refer to (missing from a default Windows installation).

http://serverfault.com/questions/555972/cannot-create-oracle-odbc-source-on-64bit-windows-7

Posted on Leave a comment

Unable to begin distributed transaction

Symptom: The transaction manager has disabled its support for remote/network transactions

Issue: Need to enable inbound/outbound transaction manager communication

Solution:
1. Open Component Services Snap-in (dcomcnfg)
2. Browse to Console->Component Services->Computers->My Computer->Distributed Transaction Coordinator
3. Right Click Local DTC and select properties
4. Select Securty tab
5. Check Network OTC Access, Check Allow Inbound, Check Allow Outbound
6. Click OK
7. DTC services should restart and then can give it a test

Additional info:
 http://sysadminwebsite.wordpress.com/2012/05/29/9/
 http://msdn.microsoft.com/en-us/library/aa561924.aspx 

Posted on Leave a comment

low free memory

Check your servers “free” memory, all the available memory may be tied up in cache due to copying files to/from your server
Create a file the size of your available memory or larger.
Then copy the file and then permanently delete both the original and the copy. (Delete from command line, use shift + delete, and/or empty the trash bin)
Now all available memory should be free 🙂

 

 

 

Script:

fsutil file createnew 2gb.txt 2147483648
copy 2gb.txt 2gb-2.txt
del 2gb*.txt
Posted on Leave a comment

15404 Could not obtain information about Windows NT group/user

Error message:

03/03/2015 12:43:09,spid28s,Unknown,An exception occurred while enqueueing a message in the target queue. Error: 15404 State: 19. Could not obtain information about Windows NT group/user 'domainsvc_name' error code 0x5.
03/03/2015 12:43:09,spid28s,Unknown,Error: 28005 Severity: 16 State: 2.


Diagnosis:

Can confirm this by executing the following SQL:


xp_logininfo 'domainsvc_name'


Msg 15404, Level 16, State 19, Procedure xp_logininfo, Line 62
Could not obtain information about Windows NT group/user 'domainsvc_name', error code 0x5.



Resolution:

A: Give the “Authenticated Users”  “Read Permissions” on the ADFS service account.

-or-

B: Add the SQL Server service account or "Authenticated Users" to the "BULTIINWindows Authorization Access Group" in AD for the domain

-or- 

C: Add the SQL Server service account or "Authenticated Users" to the "BULTIINPre-Windows 2000 Compatible Access" in AD for the domain


References:

http://setspn.blogspot.com/2012/05/service-accounts-active-directory_6635.html

http://setspn.blogspot.com/2012/05/service-accounts-active-directory_4905.html

http://blog.matticus.net/2009/08/windows-2008-and-xplogininfo.html
Posted on Leave a comment

SQL Server Default Trace 0


--To see if default trace is enabled
SELECT* FROM sys.configurations WHERE configuration_id = 1568


--To enable default trace
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'default trace enabled', 1;
GO
RECONFIGURE;
GO


--To query contents of default trace file
SELECT TE.*
     , T.*
  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


More info:
http://www.databasejournal.com/features/mssql/a-few-cool-things-you-can-identify-using-the-default-trace.html
https://www.simple-talk.com/sql/performance/the-default-trace-in-sql-server---the-power-of-performance-and-security-auditing/