@@ -240,6 +240,211 @@ For details on how to configure each database, see [Configurations for the Under
240240
241241:::
242242
243+ ### Permission requirements
244+
245+ This section describes the required permissions for using ScalarDB with its supported databases.
246+
247+ #### Oracle Database
248+
249+ ScalarDB requires the following actions to be granted to the Oracle Database user that ScalarDB uses to access Oracle Database:
250+
251+ <Tabs groupId = " oracle-versions" queryString >
252+ <TabItem value = " oracle-23ai" label = " Oracle Database 23ai" default >
253+ - ` CREATE SESSION `
254+ - ` CREATE USER `
255+ - ` DROP USER `
256+ - ` ALTER USER `
257+ - ` CREATE ANY TABLE `
258+ - ` DROP ANY TABLE `
259+ - ` CREATE ANY INDEX `
260+ - ` DROP ANY INDEX `
261+ - ` ALTER ANY TABLE `
262+ - ` SELECT ANY TABLE `
263+ - ` INSERT ANY TABLE `
264+ - ` UPDATE ANY TABLE `
265+ - ` DELETE ANY TABLE `
266+ </TabItem >
267+ <TabItem value = " oracle-21c" label = " Oracle Database 21c" >
268+ - ` CREATE SESSION `
269+ - ` CREATE USER `
270+ - ` DROP USER `
271+ - ` ALTER USER `
272+ - ` CREATE ANY TABLE `
273+ - ` DROP ANY TABLE `
274+ - ` CREATE ANY INDEX `
275+ - ` DROP ANY INDEX `
276+ - ` ALTER ANY TABLE `
277+ - ` SELECT ANY TABLE `
278+ - ` INSERT ANY TABLE `
279+ - ` UPDATE ANY TABLE `
280+ - ` DELETE ANY TABLE `
281+ </TabItem >
282+ <TabItem value = " oracle-19c" label = " Oracle Database 19c" >
283+ - ` CREATE SESSION `
284+ - ` CREATE USER `
285+ - ` DROP USER `
286+ - ` ALTER USER `
287+ - ` CREATE ANY TABLE `
288+ - ` DROP ANY TABLE `
289+ - ` CREATE ANY INDEX `
290+ - ` DROP ANY INDEX `
291+ - ` ALTER ANY TABLE `
292+ - ` SELECT ANY TABLE `
293+ - ` INSERT ANY TABLE `
294+ - ` UPDATE ANY TABLE `
295+ - ` DELETE ANY TABLE `
296+ </TabItem >
297+ </Tabs >
298+
299+ #### MySQL
300+
301+ ScalarDB requires the following privileges to be granted to the MySQL user that ScalarDB uses to access MySQL:
302+
303+ <Tabs groupId = " mysql-versions" queryString >
304+ <TabItem value = " mysql-8.4" label = " MySQL 8.4" default >
305+ - ` CREATE `
306+ - ` DROP `
307+ - ` INDEX `
308+ - ` ALTER `
309+ - ` SELECT `
310+ - ` INSERT `
311+ - ` UPDATE `
312+ - ` DELETE `
313+ </TabItem >
314+ <TabItem value = " mysql-8.0" label = " MySQL 8.0" >
315+ - ` CREATE `
316+ - ` DROP `
317+ - ` INDEX `
318+ - ` ALTER `
319+ - ` SELECT `
320+ - ` INSERT `
321+ - ` UPDATE `
322+ - ` DELETE `
323+ </TabItem >
324+ </Tabs >
325+
326+ #### PostgreSQL
327+
328+ ScalarDB requires the following PostgreSQL database role to be granted to the PostgreSQL role that ScalarDB uses to access PostgreSQL:
329+
330+ <Tabs groupId = " postgresql-versions" queryString >
331+ <TabItem value = " postgresql-17" label = " PostgreSQL 17" default >
332+ - ` SUPERUSER `
333+ </TabItem >
334+ <TabItem value = " postgresql-16" label = " PostgreSQL 16" >
335+ - ` SUPERUSER `
336+ </TabItem >
337+ <TabItem value = " postgresql-15" label = " PostgreSQL 15" >
338+ - ` SUPERUSER `
339+ </TabItem >
340+ <TabItem value = " postgresql-14" label = " PostgreSQL 14" >
341+ - ` SUPERUSER `
342+ </TabItem >
343+ <TabItem value = " postgresql-13" label = " PostgreSQL 13" >
344+ - ` SUPERUSER `
345+ </TabItem >
346+ </Tabs >
347+
348+ #### MariaDB
349+
350+ ScalarDB requires the following privileges to be granted to the MariaDB user that ScalarDB uses to access MariaDB:
351+
352+ <Tabs groupId = " mariadb-versions" queryString >
353+ <TabItem value = " mariadb-11.4" label = " MariaDB 11.4" default >
354+ - ` CREATE `
355+ - ` DROP `
356+ - ` INDEX `
357+ - ` ALTER `
358+ - ` SELECT `
359+ - ` INSERT `
360+ - ` UPDATE `
361+ - ` DELETE `
362+ </TabItem >
363+ <TabItem value = " mariadb-10.11" label = " MariaDB 10.11" >
364+ - ` CREATE `
365+ - ` DROP `
366+ - ` INDEX `
367+ - ` ALTER `
368+ - ` SELECT `
369+ - ` INSERT `
370+ - ` UPDATE `
371+ - ` DELETE `
372+ </TabItem >
373+ </Tabs >
374+
375+ #### SQL Server
376+
377+ ScalarDB requires the following database roles to be granted to the SQL Server user that ScalarDB uses to access SQL Server:
378+
379+ <Tabs groupId = " sqlserver-versions" queryString >
380+ <TabItem value = " sqlserver-2022" label = " SQL Server 2022" default >
381+ - ` db_ddladmin `
382+ - ` db_datareader `
383+ - ` db_datawriter `
384+ </TabItem >
385+ <TabItem value = " sqlserver-2019" label = " SQL Server 2019" >
386+ - ` db_ddladmin `
387+ - ` db_datareader `
388+ - ` db_datawriter `
389+ </TabItem >
390+ <TabItem value = " sqlserver-2017" label = " SQL Server 2017" >
391+ - ` db_ddladmin `
392+ - ` db_datareader `
393+ - ` db_datawriter `
394+ </TabItem >
395+ </Tabs >
396+
397+ #### YugabyteDB
398+
399+ ScalarDB requires the following YugabyteDB database role to be granted to the YugabyteDB role that ScalarDB uses to access YugabyteDB:
400+
401+ - ` SUPERUSER `
402+
403+ #### Amazon DynamoDB
404+
405+ ScalarDB requires the following actions to be granted to the AWS IAM user that ScalarDB uses to access DynamoDB:
406+
407+ - ` dynamodb:ConditionCheckItem `
408+ - ` dynamodb:PutItem `
409+ - ` dynamodb:ListTables `
410+ - ` dynamodb:DeleteItem `
411+ - ` dynamodb:Scan `
412+ - ` dynamodb:Query `
413+ - ` dynamodb:UpdateItem `
414+ - ` dynamodb:DeleteTable `
415+ - ` dynamodb:UpdateContinuousBackups `
416+ - ` dynamodb:CreateTable `
417+ - ` dynamodb:DescribeTable `
418+ - ` dynamodb:GetItem `
419+ - ` dynamodb:DescribeContinuousBackups `
420+ - ` dynamodb:UpdateTable `
421+ - ` application-autoscaling:RegisterScalableTarget `
422+ - ` application-autoscaling:DeleteScalingPolicy `
423+ - ` application-autoscaling:PutScalingPolicy `
424+ - ` application-autoscaling:DeregisterScalableTarget `
425+ - ` application-autoscaling:TagResource `
426+
427+ #### Apache Cassandra
428+
429+ ScalarDB requires the following actions to be granted to the Cassandra role that ScalarDB uses to access Cassandra:
430+
431+ <Tabs groupId = " cassandra-versions" queryString >
432+ <TabItem value = " cassandra-3.11" label = " Cassandra 3.11" default >
433+ - ` CREATE `
434+ - ` DROP `
435+ - ` ALTER `
436+ - ` SELECT `
437+ - ` MODIFY `
438+ </TabItem >
439+ <TabItem value = " cassandra-3.0" label = " Cassandra 3.0" >
440+ - ` CREATE `
441+ - ` DROP `
442+ - ` ALTER `
443+ - ` SELECT `
444+ - ` MODIFY `
445+ </TabItem >
446+ </Tabs >
447+
243448## Kubernetes
244449
245450ScalarDB is provided as a Pod on the Kubernetes platform in production environments. ScalarDB supports the following platforms and tools.
0 commit comments