Solved

How to disconnect user in Oracle 11g as a sysdba

Posted on 2010-09-08
4
3,195 Views
Last Modified: 2013-12-19
I want to drop a user, It says "cannot drop a user that is already connected"
0
Comment
Question by:pegahelpdesk1
4 Comments
 
LVL 22

Expert Comment

by:Om Prakash
ID: 33624703
The user is still connected so you cannot drop. check the following thread for possible actions:
http://www.dba-village.com/village/dvp_forum.OpenThread?ThreadIdA=10354
0
 
LVL 1

Assisted Solution

by:esmail1349
esmail1349 earned 62 total points
ID: 33624743
You have to kill its opened sessions first then drop it.
0
 
LVL 7

Accepted Solution

by:
sumit2906 earned 63 total points
ID: 33625040
thats right, you will find out the sid and serial# from v$session:
select sid, serial# from v$session where username = 'username';
alter system kill session 'sid, serial#' immediate;
0
 

Author Comment

by:pegahelpdesk1
ID: 33625115
thankyou
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
Via a live example, show how to take different types of Oracle backups using RMAN.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now