patternMinor
ORA-01435: user does not exist
Viewed 0 times
userexistoradoes01435not
Problem
I am trying to run the SQL queries coded on my friend's laptop onto mine. I have imported the .sql file into SQL developer and I'm trying to run it.However, I keep getting the error:
I have listed all the users:
and I get:
among other users.
My SQL query is :
I am using Oracle 11g on Win8. Please tell me if I need to post anything else to help you.
Thanks a lot
01435. 00000 - "user does not exist"I have listed all the users:
select * from all_users;and I get:
OUTLN 9 30-MAR-10
SYSTEM 5 30-MAR-10
SYS 0 30-MAR-10among other users.
My SQL query is :
CREATE OR REPLACE TYPE "HOMEWORK1"."INNERTABLE" IS TABLE OF VARCHAR2(128);I am using Oracle 11g on Win8. Please tell me if I need to post anything else to help you.
Thanks a lot
Solution
DazzaL has highlighted the nub of the problem but to give a bit more background, on the assumption you're fairly new to Oracle...
The
You can either (a) create the
But who you are logged in as is something to check - it isn't clear from the question, so apologies if you know this and it isn't relevant to you. It's important not to create your own objects under Oracle's built-in schemas, especially
If this is a fresh install and you're logging in as
The
create table syntax shows that your command is trying to create a table called INNERTABLE in the schema HOMEWORK1. Schema and user are essentially interchangeable in Oracle, so the error saying 'user does not exist' is referring to the HOMEWORK1 schema/user. Unless you've already created that in your database, that won't exist by default.You can either (a) create the
HOMEWORK1 user, (b) update the script to replace HOMEWORK1 with a (non-built-in; see below) user that does exist, or (c) update the script to remove the schema reference which will cause objects to be created as the user you're logged in as.But who you are logged in as is something to check - it isn't clear from the question, so apologies if you know this and it isn't relevant to you. It's important not to create your own objects under Oracle's built-in schemas, especially
SYS and SYSTEM as you could do a lot of damage, and you should not be logged in to a built-in schema routinely - only for specific activities that can't be done otherwise (like shutdown). The only exceptions to that are maybe the sample HR and SCOTT schemas, and even then it'll be better in the long term to use your own account for anything except queries against those.If this is a fresh install and you're logging in as
SYS because that's all you had available, please create a new user, assign it the relevant privileges, and do all further work under that.Context
StackExchange Database Administrators Q#38890, answer score: 3
Revisions (0)
No revisions yet.