Settings for importing dmp files from Oracle databases

Source: Internet
Author: User

Oracle DatabaseHow to importDmp FileWhat about it? What are the settings required for import? This article introduces this process and hopes to help you.

1. delete user and user data (if the user and user data already exist)

Run the drop user CRM_USER cascade statement to delete tables and objects under the user and user name. If the prompt "oracle cannot delete the currently linked user" is displayed, follow these steps:

(1) view the user's connection status

 
 
  1. select username,sid,serial# from v$session  

(2) locate the sid, serial, and delete the user to be deleted.

 
 
  1. alter system kill session'135,288'   
  2.  
  3. alter system kill session'158,198'   
  4.  
  5. alter system kill session'139,1105'  

(3) Delete a user

 
 
  1. drop user CRM_USER cascade 

(Additional) If you still prompt ORA-01940 after drop: Unable to delete the currently linked user, it means there is a connected session, you can check the session status to determine whether the session is killed, use the following statement to View Details:

 
 
  1. select saddr,sid,serial#,paddr,username,status from v$session where username is not null 

If a user session is active, Repeat steps (2) and (3 ).

2. Create the CRM_USER in the Oracle Admin Console. The user roles and permissions are set as follows.

  • Name CRM_USER
  • Profile DEFAULT
  • Authentication Password
  • Default Tablespace mirin01
  • Temporary Tablespace TEMP
  • Status UNLOCK
  • Default Consumer Group None

Roles

  • Role Admin Option Default
  • CONNECT N Y
  • DBA N Y
  • RESOURCE N Y

System Privileges

  • System Privilege Admin Option
  • CREATE MATERIALIZED VIEW N
  • CREATE PROCEDURE N
  • CREATE TABLE N
  • CREATE TRIGGER N
  • CREATE VIEW N
  • DEBUG ANY PROCEDURE N
  • DEBUG CONNECT SESSION N
  • UNLIMITED TABLESPACE N

3. Import dmp files through PL/SQL

A. From CRM_USER to CRM_USER

B. Select the dmp File Location

C. Click Import to Import data.

In this way, the dmp file is imported successfully.

The process of importing the dmp file from the Oracle database ends here. I hope this introduction will be helpful to you!

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.