Quick Search:
CODE
Oracle PL/SQL Code Library
JOBS
Find Or Post Oracle Jobs
FORUM
Oracle Discussion & Chat
 Oracle PL/SQL: Drop User example Jump to:  
Category: >> Oracle PL/SQL >> Drop User example Bookmark and Share

<< lastnext >>

Snippet Name: Drop User example

Description: Drop the account that owns the database objects required to run
the applications discussed in "Developing Oracle Forms Applications."

Also see:
» Create a drop down menu from an array ...
» Drag And Drop Example
» DHTML Combo Box Dropdown
» FUNCTIONS: drop
» TABLESPACE: Dropping Tablespaces
» INDEXES: DROP index
» USER - connection information
» USER - User Information 2
» USER idle time
» USER Information
» USER active connected users
» USER memory use
» USER - Connected Users
» USER - drop user
» USER - misc queries and commands
» USER system authentication
» USER lock account
» USER password expiration
» USER profile
» USER tablespace quota
» USER temp tablespace
» USER tablespace
» USER password
» USERS: view specific user info
» USERS: view currently connected users
» USERS: view all active users
» USERS: Drop users
» USERS: Lock and Unlock accounts
» USERS: Proxy Users
» USERS: Grant tablespace access

Comment: (none)

Language: PL/SQL
Highlight Mode: PLSQL
Last Modified: February 27th, 2009

SET VERIFY OFF
ACCEPT sys_pass PROMPT 'Please enter password for user SYSTEM : ' hide
ACCEPT db_name PROMPT  'Enter database name or connection string.  Default is [LOCAL] : '
 
REM CONNECT
CONNECT SYSTEM/&sys_pass@&db_name
ACCEPT u_name       PROMPT  'Enter user name: '
 
DROP USER &u_name CASCADE;
 
EXIT;
 
WHENEVER SQLERROR EXIT
 


Free
Oracle Magazine
Subscriptions
and Oracle White Papers


SQL University.net courses meet the most demanding needs of the business world for advanced education in a cost-effective manner. SQL University.net courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes.

Compared to traditional travel-based training, SQL University.net saves time and valuable corporate resources, allowing companies to do more with less. That's our mission, and that's what we deliver.

Click here to find out more
 
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 128 users online    © 2009 psoug.org

PSOUG LOGIN
Username: 
Password: 
Forgot your password?