Oracle Database migration

Source: Internet
Author: User

Udisk database migration
1. Create the tablespace used by udisk users
-- Create user tablespace
Create tablespace udisk datafile 'e: \ oracle92 \ oradata \ udisk. dbf'size 100 m
Uniform size 10 m;

2. Create a udisk user and set the initialization password to udisk.
-- Create user udisk
Create user udisk identified by udisk
Default tablespace udisk
Temporary tablespace temp;

3. Grant various permissions to udisk users

-- Assign connect privilege to user udisk
Grant connect to udisk;
Grant create table to udisk;
Grant unlimited tablespace to udisk;
Grant exp_full_database to udisk;
Grant imp_full_database to udisk;
Grant DBA to udisk;
Grant create procedure to udisk;

4. Export script commands by user
Exp udisk/udisk @ udisk file = D: \ udisk. dmp owner = udisk direct = y log = udisk. Log

5. Import script commands by user
IMP udisk/udisk @ udisk file = D: \ udisk. dmp fromuser = udisk touser = udisk

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.