Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sqlways:users-guide:check-list:setting-up-source-user-privileges [May 17, 2018, 09:52:47 AM] – [Microsoft SQL Server] alexandr.kirpichny | sqlways:users-guide:check-list:setting-up-source-user-privileges [May 31, 2023, 05:28:12 PM] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
\\ | \\ | ||
- | [[http:// | + | [[https:// |
- | [[http:// | + | [[https:// |
- | [[http:// | + | [[https:// |
====== Setting up Source User Privileges ====== | ====== Setting up Source User Privileges ====== | ||
Line 13: | Line 13: | ||
* GRANT SELECT ON dba_users | * GRANT SELECT ON dba_users | ||
* GRANT SELECT ON dba_part_key_columns | * GRANT SELECT ON dba_part_key_columns | ||
- | * GRANT SELECT ON dba_sysnonyms | + | * GRANT SELECT ON dba_synonyms |
* GRANT ALL [PRIVILEGES] ON OWNER.OBJECT_NAME for each object that needs to be migrated | * GRANT ALL [PRIVILEGES] ON OWNER.OBJECT_NAME for each object that needs to be migrated | ||
| | ||
Line 32: | Line 32: | ||
You can just initiate **GRANT DBA TO user_name**. | You can just initiate **GRANT DBA TO user_name**. | ||
+ | |||
+ | |||
+ | The minimum privileges required to collect information about the DDL of objects are the following: | ||
+ | * GRANT CREATE SESSION TO YOUR_ORACLE_USER; | ||
+ | * GRANT SELECT ANY DICTIONARY TO YOUR_ORACLE_USER; | ||
+ | |||
+ | Please note that in this case it is necessary to select " | ||
+ | |||
+ | {{: | ||
Line 70: | Line 79: | ||
Or you can grant access to all the data (ie, all tables in all schemas), then you need to grant dataaccess privilege to the user: | Or you can grant access to all the data (ie, all tables in all schemas), then you need to grant dataaccess privilege to the user: | ||
- | * db2 grant dataaccess on database to the user user1; | + | * db2 grant dataaccess on database to user user1; |
Line 77: | Line 86: | ||
To be able to connect to a database and to extract DDL of objects in MySQL, you need to create a user and assign select privileges to this user. As a template you can use the queries below: | To be able to connect to a database and to extract DDL of objects in MySQL, you need to create a user and assign select privileges to this user. As a template you can use the queries below: | ||
- | * create | + | * create user ' |
* grant select on *.* to ' | * grant select on *.* to ' | ||
Line 96: | Line 105: | ||
When we use Teradata as a source database in the SQLWays Wizard tool, we need to specify the user that will be able to read information from the system tables. You can utilize a user that already exists in your source database or create a new one and assign appropriate privileges to him. So to create a new user you can apply the statement below: | When we use Teradata as a source database in the SQLWays Wizard tool, we need to specify the user that will be able to read information from the system tables. You can utilize a user that already exists in your source database or create a new one and assign appropriate privileges to him. So to create a new user you can apply the statement below: | ||
- | | + | |
- | The user that you will utilize should have select privilege on the DBC.TVM, | + | The user that you will utilize should have the select privilege on the DBC.TVM, |
* grant select on DBC.TVM to test_user ; | * grant select on DBC.TVM to test_user ; | ||
Line 134: | Line 143: | ||
The user that you will use should have select privilege on the SYS.sysuserperm, | The user that you will use should have select privilege on the SYS.sysuserperm, | ||
- | So to assign the select privilege you need to execute GRANT statement for all these system tables. Here is example of a grant statement: | + | So to assign the select privilege you need to execute GRANT statement for all these system tables. Here is an example of a grant statement: |
* grant select on SYS.sysuserperm to test_user ; | * grant select on SYS.sysuserperm to test_user ; | ||
Line 141: | Line 150: | ||
You can just initiate **GRANT DBA TO test_user**. | You can just initiate **GRANT DBA TO test_user**. | ||
- | |||
- | |||
- | \\ | ||
- | [[http:// | ||
- | [[http:// | ||
- | [[http:// |