You can get a dropped database user back in Oracle only in a specific window: if the account was dropped with the DROP USER statement but not CASCADE, and a recycled object still exists, and you have not yet reused that name, you can map the old objects to a new account with ALTER USER ... IDENTIFIED BY .... In every other case — no recycle bin entry, a CASCADE drop, a purge, or a name already re-taken — the account cannot be recovered. You rebuild it, re-grant its privileges, and re-point its objects. The hard part is rarely the account itself. It's what the account owned, what it could do, and who depended on it.
This guide treats "dropped user" as the database account and the schema objects it owns, not a person in Oracle Cloud Identity and Access Management or an application user table. Those are different problems with different fixes, and mixing them wastes time on the wrong console.
What "Dropped User" Actually Means in Oracle
Before you touch anything, separate three situations that all get called "my user got dropped."
The first is a true account drop. Someone ran DROP USER app_user; or DROP USER app_user CASCADE;. The account is gone from DBA_USERS.
The second is a locked or expired account. The user still exists, but login fails with ORA-28000 ("the account is locked") or ORA-28001 ("the password has expired"). People report this as "the user was dropped" because the error feels final. It isn't.
The third is an application or IAM user. In Oracle Cloud IAM, a deleted identity user is a completely different recovery path from a schema user in the database. Check which layer you're actually dealing with by running a quick query.
If a row comes back, the account exists and you're in lock/expiry territory, not drop territory. If no row comes back, it's genuinely dropped.
Start with the reversible checks, then escalate.
Check First: Recycle Bin Status and Drop Type
Oracle's recycle bin is the only built-in safety net for a dropped account, and it only helps if the drop wasn't CASCADE. A plain DROP USER app_user; doesn't actually remove the schema objects as long as they're referenced or the recycle bin is on; it marks them for recycling. A DROP USER app_user CASCADE; deletes the objects outright. That single keyword is the difference between a possible recovery and a rebuild.
Run this as a DBA or a user with SELECT on DBA_RECYCLEBIN:
Read the result carefully:
Rows with CAN_UNDROP = 'YES' and the original name intact — this is the good case. The recycled objects are still there, and you can map them to a new account. No rows at all — either the drop was CASCADE, the recycle bin is disabled for that tablespace, or someone ran PURGE. Recovery from the recycle bin is no longer available. Rows for the objects but not the user — Oracle never recycles the account itself, only its objects. You always create a fresh account and attach the objects.
Check whether the recycle bin is even on for the relevant tablespace. It can be disabled per tablespace with ALTER TABLESPACE ... RECYCLEBIN OFF, which is common in managed environments trying to save space. If it's off, nothing was recycled and this path is closed.
Restore From the Recycle Bin: Create a New User, Then Map the Old Objects
This is the one procedure that genuinely brings back a dropped account with its objects. It works only if the recycle bin has entries with CAN_UNDROP = 'YES' and the original username hasn't been reused.
Prerequisites: SYSDBA or a role with CREATE USER and relevant object privileges; the recycled objects present; the username free.
1: Confirm the username is free. SELECT username FROM dba_users WHERE username = 'APP_USER'; must return no rows. If it returns a row, someone already recreated the account and the map will conflict. Stop and read the "name already reused" section below. 2: Create the replacement account with the original username and a temporary password: CREATE USER app_user IDENTIFIED BY "TempStrong#2026" ACCOUNT UNLOCK; 3: Grant the base session privilege. The recycled objects need a schema that can hold them: GRANT CREATE SESSION, RESOURCE TO app_user; 4: Point each recycled object at the new owner. Use ALTER TABLE app_user.orders RENAME TO orders_new;-style syntax only if needed; more directly, rename the recycled object to its own original name. For tables: ALTER TABLE app_user."BIN$..." RENAME TO original_name; is not valid. Instead, create the object into the schema by undropping it: FLASHBACK TABLE app_user.orders TO BEFORE DROP RENAME TO orders; 5: Repeat for indexes, sequences, constraints, and triggers in dependency order. Tables first, then indexes and constraints, then triggers, then views and procedures. 6: Verify. SELECT object_name, object_type FROM dba_objects WHERE owner = 'APP_USER'; should show your object list. SELECT COUNT(*) FROM app_user.orders; should return the pre-drop row count, not zero.
Success check: connect as APP_USER with the temporary password, run SELECT on a restored table, and confirm the row count matches what you remember or what an audit log suggests.
If FLASHBACK TABLE returns ORA-38305 ("object not in RECYCLEBIN") for an object you saw in DBA_RECYCLEBIN, the entry has expired or been purged between your query and your action. Recycled objects can age out on their own; Oracle doesn't keep them forever. Re-run the recycle-bin query, and if the row is gone, this path is closed.
A short naming note: recycled object names look like BIN$abc123==$0. You address them by the original name in FLASHBACK ... TO BEFORE DROP, not by the BIN name, which is why step 4 uses the original name in the RENAME TO clause.
When Recovery Is Impossible: CASCADE, Purge, or No Recycle Bin
If the drop was CASCADE, someone purged the recycle bin, the tablespace had recycling off, or enough time passed, the account and its objects are simply gone from the database files. There's no supported in-database undo for that. The realistic path is a backup restore to a separate environment and a schema-level extraction.
You have two practical routes:
RMAN backup to a clone or auxiliary instance, then Data Pump the schema out and into production. This recovers the data. It is slow, it needs storage, and it risks touching production if you're careless with the target database. Restore to a separate host or a separate database first. Flashback Database, if it was enabled and the drop is within the retention window. Check SELECT flashback_on FROM v$database; and the retention value in V$RESTORE_POINT. If flashback is on, you can FLASHBACK DATABASE TO TIMESTAMP before the drop, then extract the schema. This is the cleanest recovery when available, but it rolls the entire database back, so it must happen during a controlled window and with everyone aware.
Administer both of these with DBA involvement. If you don't have DBA access, stop here — this is the point where a professional with backup and recovery privileges needs to take over. The user's account cannot be recreated by a non-DBA and its data cannot be recovered from a backup by a non-DBA.
A quick worked example of cost: suppose the schema is 40 GB, your RMAN incrementals retain 7 days, and the drop happened 3 days ago. An auxiliary-instance restore plus Data Pump export might take an hour or two on modest hardware. That's the time cost. The data cost is bounded by the last backup, so the account comes back only as current as that backup — anything written between the backup and the drop is gone. That's why knowing the backup cadence matters more than knowing the drop time when you're deciding between recovery paths.
What You Lose and What You Must Recreate: Privileges, Profiles, and Defaults
Even in the best case, mapping objects back doesn't restore the account's permissions, profile, default tablespace, or any external dependencies. Those have to be rebuilt. This is the most commonly skipped step and the cause of the "it came back but now nothing works" complaint.
Assemble a checklist before you run the create:
| Attribute | Where it lived | Rebuild action |
|---|---|---|
| Object privileges (grants) | DBA_TAB_PRIVS, DBA_SYS_PRIVS | Re-run GRANT statements from saved DDL or an audit export |
| Role memberships | DBA_ROLE_PRIVS | Re-grant each role |
| Profile | DBA_USERS.profile | Set with CREATE USER ... PROFILE |
| Default tablespace and quota | DBA_USERS.default_tablespace, DBA_TS_QUOTAS | Set in CREATE USER and ALTER USER ... QUOTA |
| Password / expiry policy | profile | Reproduce the profile's PASSWORD_LIFE_TIME and lockout settings |
| External references | application configs, DB links, grants from other schemas | Update or re-grant on the other schemas |
The reliable way to reconstruct privileges is to have saved the DBA's DDL output or a DBMS_METADATA.GET_DDL('USER','APP_USER') and GET_GRANTED_DDL snapshot from before the drop. If you don't have that, you rebuild from documentation, change tickets, or buried GRANT statements in deployment scripts. Check application error logs after the rebuild: ORA-00942 ("table or view does not exist") usually means a missing grant to a role the app runs as, not a missing object.
There's a subtle trap with profiles. If the original account used a custom profile with password-aging settings, a recreated account on DEFAULT may start prompting for password changes on a different cadence, and the app may fail logins for reasons unrelated to the drop. Query DBA_USERS and DBA_PROFILES if you have any snapshot before the drop. If you don't, ask the app owner what they recall.
The Name-Already-Reused Trap
This is the failure that turns a feasible recovery into a data merge problem. Suppose APP_USER was dropped, and someone recreated a new APP_USER, and then you find the old recycled objects. You can't simply map them to the recreated account if that account already owns tables with the same names. The FLASHBACK TABLE ... RENAME TO will fail with ORA-00955 ("name is already used by an existing object").
The decisions in that case:
If the new account is empty or unused — drop the recycled objects' would-be nameholders first, or rename the new account's objects with a suffix, then map the old ones. Confirm with the app owner that nothing depends on the new ones. If the new account has real data and consumers — you now have two candidate histories. Extract data from the recycled objects into staging tables, compare row counts and key columns, and merge deliberately. That's a data reconciliation job, not a recovery. Treat it as such.
There's no automatic way to know which version the application "should" see. That judgment belongs to the app owner, not the DBA. Document what you kept, what you dropped, and why, because you'll be asked later.
Confirm Success and Know When to Stop
Recovery is done when all of these hold:
The intended username exists in DBA_USERS and the account status is OPEN. The object count in DBA_OBJECTS for the schema matches your inventory, or you've logged the differences and their reasons. The application can connect and execute its normal read and write paths without new ORA errors. The relevant roles and a representative sample of grants are present.
If any check fails, work the failure one layer at a time. Connectivity failure points to authentication and profile settings. Object errors point to naming and conflicts. Permission errors point to grants and roles. Data mismatch points to the backup gap, and you're back to the "what do we actually have" conversation.
Stop and call in a DBA or recovery specialist when: there's no reliable pre-drop inventory of grants and objects, no recent backup, the drop was CASCADE and the data matters, the database is production and flashback would rewind live traffic, or the recreated account has live consumers. Those are control and safety decisions, and they outrank speed.
Frequently Asked Questions
Can a dropped Oracle user be recovered if the drop used CASCADE?
Not from within the database. CASCADE removes the schema objects rather than recycling them, so there's nothing to flashback. Recovery means restoring a backup to a separate instance and extracting the schema, and the data returns only as current as the last backup.
Does dropping an Oracle user affect other schemas that reference its objects?
Yes. Synonyms, views, procedures, and foreign keys in other schemas that point at the dropped objects will break or become invalid. After recovery, recompile dependent objects with ALTER ... COMPILE or UTL_RECOMP, and check DBA_OBJECTS.status for INVALID entries under other owners.
How long does a recycled Oracle object stay in the recycle bin?
Oracle doesn't guarantee a retention period; objects can be purged automatically under space pressure or manually with PURGE. The recycle bin is a short-term safety net, not a backup strategy. Treat any recovery that depends on it as time-critical.
Can I recover the account's password?
No. Passwords are stored as hashes, and the original plaintext isn't recoverable. Whoever administers the account sets a temporary password and the account holder changes it on next login. Plan for that handover in the recovery window.
This article is general technical guidance for Oracle database administration and is not a substitute for a qualified DBA's assessment of your specific environment, backup state, or licensing. Recovery decisions on production systems, and any restore that could overwrite or conflict with live data, should be reviewed by a qualified local database professional before you act.