Cmd How to delete a user instance from an Oracle database

Source: Internet
Author: User

Oracle database use process, for the system will establish a separate database users, but some time in the test or other reasons need to delete, the original DB users, then we can use the following method.

The premise of the subordinate operation is to ensure that the database service and monitoring are in the boot state.

1. Enter the DOS command window by entering CMD at the beginning.

2, enter sqlplus system/system password @ database name, click Enter, thereby connecting the database.

Example: Sqlplus pwlp_20180228/[email PROTECTED]:1521/ORCL

For example:

3. Enter select username from dba_users in the window above to display the user name in the current DB instance

4. Select the user to delete, enter in the current window: Drop user USERNAME cascade; Click Enter.

5, wait a moment, you can complete the database user delete action

Cmd How to delete a user instance from an Oracle database

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.