Use SQL Developer to port SQL to Oracle (2)

Source: Internet
Author: User

This article introducesSQL migrationThe second part: create a data file library Migration Repository ).

1. Connect to Oracle

In the connection window on the left of the program, click the plus sign to add oneOracle DatabaseFor example:

After the configuration is complete, click Connect to connect to the database.

2. Create a user

Open the connection to Oracle Data and create a new user. In this mode, we need to create the so-called "Data Archiving database" and use this user to create the user name after SQL Server migration, and other work. According to the instructions in the help, this user requires at least the following permissions and roles:

Roles:Connect with admin option, resource with admin option.

Privileges:Alter any role, alter any sequence, alter any table, alter tablespace, alter any trigger, comment any table, create any sequence, create any table, create any trigger, create view with admin option, create public synonym with admin option, create role, create user, drop any sequence, drop any table, drop any trigger, drop user, drop any role, grant any role, insert any table, select any table, update any table.

The following statement directly creates a user named migrations:

-- Create the user

 
 
  1. create user MIGRATIONS  
  2.  
  3. identified by MIGRATIONS  
  4.  
  5. default tablespace USERS  
  6.  
  7. temporary tablespace TEMP  
  8.  
  9. profile DEFAULT; 

-- Grant/Revoke role privileges

 
 
  1. grant connect to MIGRATIONS with admin option;  
  2.  
  3. grant resource to MIGRATIONS with admin option; 

-- Grant/Revoke system privileges

 
 
  1. grant alter any role to MIGRATIONS;  
  2.  
  3. grant alter any sequence to MIGRATIONS;  
  4.  
  5. grant alter any table to MIGRATIONS;  
  6.  
  7. grant alter any trigger to MIGRATIONS;  
  8.  
  9. grant alter tablespace to MIGRATIONS;  
  10.  
  11. grant comment any table to MIGRATIONS;  
  12.  
  13. grant create any sequence to MIGRATIONS;  
  14.  
  15. grant create any table to MIGRATIONS;  
  16.  
  17. grant create any trigger to MIGRATIONS;  
  18.  
  19. grant create any view to MIGRATIONS;  
  20.  
  21. grant create materialized view to MIGRATIONS with admin option;  
  22.  
  23. grant create public synonym to MIGRATIONS with admin option;  
  24.  
  25. grant create role to MIGRATIONS;  
  26.  
  27. grant create session to MIGRATIONS with admin option;  
  28.  
  29. grant create synonym to MIGRATIONS with admin option;  
  30.  
  31. grant create tablespace to MIGRATIONS;  
  32.  
  33. grant create user to MIGRATIONS;  
  34.  
  35. grant create view to MIGRATIONS with admin option;  
  36.  
  37. grant drop any role to MIGRATIONS;  
  38.  
  39. grant drop any sequence to MIGRATIONS;  
  40.  
  41. grant drop any table to MIGRATIONS;  
  42.  
  43. grant drop any trigger to MIGRATIONS;  
  44.  
  45. grant drop tablespace to MIGRATIONS;  
  46.  
  47. grant drop user to MIGRATIONS;  
  48.  
  49. grant grant any role to MIGRATIONS;  
  50.  
  51. grant insert any table to MIGRATIONS;  
  52.  
  53. grant select any table to MIGRATIONS;  
  54.  
  55. grant unlimited tablespace to MIGRATIONS with admin option;  
  56.  
  57. grant update any table to MIGRATIONS; 

Click the plus sign in connection again to add a connection using the user you just created.

After the connection, right-click the connection and choose "export data file library"> "link to transplant data file library". The program will create tables and stored procedures required for the transplant data file library under the user, A dialog box is displayed, showing the progress of the Creation.

Source: http://www.cnblogs.com/hiizsk/archive/2011/07/10/2102454.html.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.