Oracle 10 GB Data import to the specified tablespace

Source: Internet
Author: User
  1. -- Create temporary tablespace
  2. Create temporary tablespace yhtemp
  3. Tempfile 'd: \ oracle \ oradata \ Oracle10g \ yhtemp. dbf'
  4. Size 50 m
  5. Autoextend on
  6. Next 50 m maxsize 20480 m
  7. Extent management local;
  8. -- Create a data table space
  9. Create tablespace YH
  10. Logging
  11. Datafile 'd: \ oracle \ oradata \ Oracle10g \ YH. dbf'
  12. Size 50 m
  13. Autoextend on
  14. Next 50 m maxsize 20480 m
  15. Extent management local;
  16. -- Create a user and specify a tablespace
  17. Create user YH identified by password
  18. Default tablespace YH
  19. Temporary tablespace yhtemp;
  20. -- Grant permissions to users
  21. Grant connect, resource, DBA to YH;
  22. -- Revoke this permission
  23. Revoke unlimited tablespace from YH
  24. -- Set the table space quota of the user in YSS and test1 to 0.
  25. Alter user YH quota 0 on YSS
  26. Alter user YH quota 0 on test1
  27. -- The user's quota in the YH tablespace is not limited.
  28. Alter user YH quota unlimited on YH

Reposted to another blog. I imported the data in this step successfully.

Note that you should not use the sysdba permission when logging on to the system using your username and password. Otherwise, the system will import the data to the Sys user,

After the import is successful, when you want to view the table, do not use sysdba to log on with your own user name and password. Otherwise, you cannot see the imported table.

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.