Reputation: 23
i have some problem with the Oracle DB XE version 21c.
i use it on my laptop to follow a data lab course in my campus
at first usage i try at the campus computer and works normally. but when i download
and install on my laptop (ofc for practice and homework), i encountered some problems
like :
_oracle_script=true
grant select on HR.EMPLOYEES to c##SI0x_xxx;
ORA-00942: table or view does not exist
Upvotes: 0
Views: 619
Reputation: 142705
Oracle 21cXE doesn't contain the HR schema, so you'll have to install it first. Because, grant
you ran failed as that table (nor user) exists.
Have a look at Installation of the Sample Schemas document which contains more information.
Once you install HR
, connect as HR
(no need to use SYSTEM
for that) and grant privileges to your newly created user.
Alternatively, why wouldn't you use HR schema directly? It is on your laptop, there's nothing you can spoil (and even if you did, just re-create it).
Upvotes: 1