Go Back   Attunity Integration Technology Forum > Integration Technology > Data Integration > Change Data Capture > Change data capture-CDC for SQL SERVER


Contact Us to hear more about

Minimal Permissions for users to run SQL CDC logger and Attu

Attunity AIS - Data Integration Technology - Change data capture-CDC for SQL SERVER


Post New Thread Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 06-19-2007, 09:52 AM
Maksim Golovkin Maksim Golovkin is offline
Junior Member
 
Join Date: Feb 2007
Location: Moscow/Kaluga
Age: 25
Posts: 6
My Photos: (0)
Rep Power: 0
Maksim Golovkin is on a distinguished road
Send a message via ICQ to Maksim Golovkin Send a message via Skype™ to Maksim Golovkin
Exclamation Minimal Permissions for users to run SQL CDC logger and Attunity Stream

I tried to install sqlcdclgr service to execute under unprivileged user and got the following error message: "User 'Attunity' does not have permissions to run DBCC log". User 'Attunity' is NTLM record and flag useWindowsAuth
What minimal permissions on SQL Server and operating system must have this user for correct work of Attunity Stream?
The same question about user that is specified up while Implement CDC solution on "Data Source" step.

Here is configuration of sqlcdclgr service:
Code:
<serviceConfig>
    <cdcOrigin server='SMARTSQL' database='CashOffice' user='' password='' useWindowsAuthentication='true' defaultOwner='dbo'/>
    <transientStorage directory='C:\sql_cdc\transient_storage' maxFileSize='1000000' totalSize='100000000' lowThreshold='65' highThreshold='85'/>
    <logging directory='C:\sql_cdc'/>
    <control batchSize='50000' retryInterval='1' debugLevel='none' traceDBCC='false' traceStatistics='false' />
    <detainer detainingTimeInterval='300' detainerTxnDurationLimit='2147483647' traceActivity='false'/>
</serviceConfig>
__________________
Data Integration Consultant
S&T International, Moscow, Russia
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-20-2007, 10:03 AM
Hillel Hillel is offline
Developer
 
Join Date: Sep 2006
Posts: 16
My Photos: (0)
Rep Power: 0
Hillel is on a distinguished road
Default DB permission required for SQL-CDC LGR service

Documentation states that:
"The logon setups should be entered in a way that allows the Attunity Services to access the SQL Server database."
.
However - LGR issues those special DBCC calls that require user permissions to default to members of the sysadmin fixed server role or the db_owner fixed database role (at least).
.
Regarding the front end - it should be permitted in a manner that allows access to data + metadata - much like the companion MSSQLODBC driver iteself.
__________________
To Find Out more About Attunity Technology:
Attunity
or:
Contact Us
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-03-2007, 08:33 AM
Maksim Golovkin Maksim Golovkin is offline
Junior Member
 
Join Date: Feb 2007
Location: Moscow/Kaluga
Age: 25
Posts: 6
My Photos: (0)
Rep Power: 0
Maksim Golovkin is on a distinguished road
Send a message via ICQ to Maksim Golovkin Send a message via Skype™ to Maksim Golovkin
Default

After I revoked 'System Administrator' server role from user 'Attunity' on SQL Server, granted 'db_owner' and 'public' privileges to the user, and restarted sqlcdclogger service error messages started to appear in cdclogger log as you can see below:
Code:
DB-LIBRARY error: General SQL Server error: Check messages from the SQL Server. severity=5
<<20070703-162416>>	Module:SQLCDC_SESSION/Line:394	MSG_HANDLER captured message:
	
SQL Server message 2571, state 1, severity 14:
	User 'Attunity' does not have permission to run DBCC log.
__________________
Data Integration Consultant
S&T International, Moscow, Russia
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-04-2007, 12:19 PM
Hillel Hillel is offline
Developer
 
Join Date: Sep 2006
Posts: 16
My Photos: (0)
Rep Power: 0
Hillel is on a distinguished road
Default Grant LGR user with SYSADMIN permissions

A deepr look into this issue yields that, for that specific DBCC call, sysadmin permissions are required.
Therfore - LGR service input parameters should specify a user which is granted with sysadmin permissions.
__________________
To Find Out more About Attunity Technology:
Attunity
or:
Contact Us
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Post New Thread Reply

LinkBacks (?)
LinkBack to this Thread: http://www.attunity.com/forums/change-data-capture-cdc-sql-server/minimal-permissions-users-run-sql-cdc-1096.html
Posted By For Type Date
Максика.НСт / Π Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠΈ This thread Refback 09-18-2008 06:17 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 09:59 PM.


Content Relevant URLs by vBSEO 3.0.0
© 2009 Attunity Ltd. All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224