Oracle Data Import and Export (original)

Source: Internet
Author: User
Tags dba

Oracle's data import and export must be created in two locations for the same user to be fully imported (local import of new databases requires Rebuild permissions). So the import will have to follow the following steps:

Assume that the server-side user is Puser

Server-side export can do this:

Export DATA: Exp puser/[email protected] file=c:\bb.dmp full=y

The local database can do this:

1. Delete users: Drop user puser cascade;

2. Creating users: Create user puser identified by padmin

3. Assign permissions: Grant Connect,resource to Puser

4. Grant Dba:grant DBA to Puser (can not do)

5. Import data: Imp puser/[email protected] file=c:\bb.dmp ignore=y full=y

Note: PNXD is the established network service name

If the database has a field such as CLOB, you must establish a tablespace, you can do this:

CREATE tablespace p2p_nxd
LOGGING
DataFile ' D:\app\Stephen\product\11.2.0\dbhome_1\P2PNXD. DBF '
SIZE 32M
Autoextend on
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;

DataFile is the path of the Oracle installation



Oracle Data Import and Export (original)

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.