Oracle creates a table for the user to import Scott to solve the problem that the table or view does not exist when the new user queries the Scott table.

Source: Internet
Author: User
Create a user in Oracle and import all the tablespaces of Scott users to it

1. Back up the tablespace of Scott/tiger users

Go to the console and enter an empty directory.

Run the command: EXP

An expdat. DMP is generated later.

2. Enter the DBA account

Conn sys/sys as sysdba;

Create user FPC identified by FPC default tablespace users quota 10 m on users;

Grant create session, create table, create view to FPC;

3. Import the tablespace backed up before

Go to the directory where the expdat. dmp file was generated before, execute imp, and log on to the new user (FPC/FPC.

 

Then you can use the newly created user to directly query Scott's EMP, DEPT, and other tables. Otherwise, you must specify Scott's EMP table, if the FCP user needs to use select * from Scott to query EMP. EMP, but now you can directly use select * from emp to query.

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.