Method 1 for modifying schemas in Oracle

Source: Internet
Author: User

Method 1 for modifying schemas in Oracle

Because of service requirements, you need to rename one of schemas. You can find two rename methods after Oracle 11.2.0.2.

Method 1: Use the import/export method to modify schemas.
• Do a user-level export of user
• Create new user B
• Import system/manager fromuser = A touser = B
• Drop user

Test environment: the database has schemas ADM_IDCS and needs to be renamed to ADM_JDCS.

Procedure:

A) create an ADM_JDCS user with the same Permissions

Create user ADM_IDCS

Identified by 'adm _ IDCS'

DEFAULT TABLESPACE USERS

TEMPORARY TABLESPACE TEMP

PROFILE DEFAULT

Account unlock;

B) Export of adm_idcs

Expdp system/oracle directory = dir dumpfile = full1.dmp schemas = adm_idcs

C) Import adm_idcs

Impdp system/oracle directory = dir dumpfile = full1.dmp fromuser = adm_idcs touser = adm_jdcs

D) Delete the original adm_idcs user

Drop user adm_idcs cascade;

After the preceding operations, modify adm_idcs to adm_jdcs.

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.