My Oracle Support Banner

ORA-01917: user or role '<username>' does not exist and ORA-01918: user '<username>' does not exist (Doc ID 2756394.1)

Last updated on NOVEMBER 23, 2023

Applies to:

Oracle Database - Standard Edition - Version and later
Information in this document applies to any platform.


On : version, Character Set Scanner utility (install, analyze output, performance, errors)

ORA-01917: user or role 'X' does not exist

Created a schema to install a system but everything I try to do I get the ORA-01917 message: user or role 'X' does not exist, but the schema exists, I can view it but I can't do anything. I am asking the Support assistance to identify the issue.

SQL> select username from dba_users where username='test_user';

test_user <<<<<<<<<<<<<<<<<<<<< User exist in the database

SQL> select * from test_user.table1;
select * from test_user.tableq
ERROR at line1:
ORA-00942: table or view does not exist

SQL> grant create session to test_user; <<<<<<<< But hitting ORA-1917, user test_user does not exist
grant create session to test_user
ERROR at line 1:
ORA-01917: user or role 'TEST_USER' does not exist

SQL> drop user test_user cascade; <<<<<<<<<<<<<< While dropping this user, again Oracle says user does not exist
drop user test_user cascade
ERROR at line 1:
ORA-01918: user 'TEST_USER' does not exist


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.