954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Create USER

Hi,

in oracle 10g express, I logged in system/HR.

I typed:
CREATE USER SHIPU IDENTIFIED BY SHIPU1.
click Run.

Then I typed,
GRANT SELECT, INSERT, UPDATE
ON EMPLOYEES TO SHIPU
WITH GRANT OPTION
click Run.

I logged out and logged back in as SHIPU/SHIPU1
I typed SELECT * FROM EMPLOYEES.
it says table does not exist.

Pls Advise.

Thanks.

bangla
Junior Poster in Training
79 posts since Jun 2008
Reputation Points: 10
Solved Threads: 0
 
SELECT * FROM HR.EMPLOYEES;


You don't have an EMPLOYEES table in the SHIPU Schema.
You have to give it a Schema reference (in this case HR.) or set up a Synonym to point to the HR.EMPLOYEES table.

hfx642
Posting Pro
515 posts since Nov 2009
Reputation Points: 248
Solved Threads: 105
 

You granted from which schema system or HR ?

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

Thanks hfx642
it works.

bangla
Junior Poster in Training
79 posts since Jun 2008
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You