The ORA-01940 cannot delete a solution for the currently connected user

Source: Internet
Author: User


The ORA-01940 cannot delete the solution for the currently connected user 1) view the user's connection status select username, sid, serial # from v $ session (2) Find the sid of the user to delete, and serial, and delete ------------------------------------------- if you want to delete the user 'wuzhq', you can do this: alter system kill session '123 ';
(3) delete user drop user username cascade (**) If you still prompt ORA-01940 after drop: Unable to delete the user already linked, there is a connection session, you can check the session status to check whether the session has been killed. Use the following statement to check whether the session has been killed: select saddr, sid, serial #, paddr, username, status from v $ session where username is not null ): saddr sid serial # paddr username status 564A1E28 513 22974 569638F4 netbnew active 564A30DC 514 18183 running 688cc netbnew inactive 564A5644 516 21573 56963340 NETBNEW INACTIVE 564B6ED0 531 9 49262d8c netbnew inactive 564B8184 532 4562 56A1075C www.2cto. the comWUZHQ KILLED status indicates the session status of the user to be deleted. If the status is inactive, the user is not killed. If the status is KILLED, the user is killed. It can be seen that the session of the user WUZHQ has been killed. Users can be safely deleted.
Author: wangliya110

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.