Home  >  Article  >  Database  >  How to delete oracle user

How to delete oracle user

WBOY
WBOYOriginal
2022-01-25 15:04:4530981browse

In Oracle, you can use the drop command to delete users. This command can delete specified data. This command can be used with the cascade keyword to delete users. The syntax is "drop user username cascade;".

How to delete oracle user

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

How to delete oracle user

sqlplus login

sqlplus sys/isc@testgmmc as sysdba

Create user

create user testpoi3 IDENTIFIED by isc
account unlock;
grant dba,advisor to testpoi2;

Delete user

drop user djcfw cascade;

Data export

exp testwms2/isc@test-193 OWNER=testwms2 FILE=D:\temp\testwms2.dmp
exp testapar/isc@hs OWNER=testapar FILE=D:\testwms2.dmp TABLES=DEPT

Examples are as follows:

How to delete oracle user

Recommended tutorial: "Oracle Video Tutorial"

The above is the detailed content of How to delete oracle user. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn