Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"Because of this forum, I continue to WOW! my clients!"

Geography

Where in the world do Tek-Tips members come from?
mpruett (Programmer)
24 Oct 05 10:38
I'm playing around with the Oracle 10g evaluation version, and I have it installed and set up, and even imported a database from an old SQL server instance I have.  

Although I can see the tablespace and tables, and that there is data in those tables, I cannot figure out how to configure a user so that I can query those tables in SQL Plus.

I figure this has to be simple, but I'm having a tough time with it. I'd really appreciate somebody giving me a simple breakdown of how to set a user up to do this.

Thanks!

Mark
Helpful Member!  SantaMufasa (TechnicalUser)
24 Oct 05 12:21

Quote (Mark):

Although I can see the tablespace and tables, and that there is data in those tables, I cannot figure out how to configure a user so that I can query those tables in SQL Plus.
Mark, with which user are you "seeing" the tablespace and tables? (You could use that user to query.) Also, a table cannot exist without an Oracle USER to "own" that table. (So, if you are just wanting to "query those tables in SQL*Plus", then you can "query those tables in SQL*Plus" as the owning user.)

Now, on to your specific question ("I'd really appreciate somebody giving me a simple breakdown of how to set a user up to do this."):

CODE

CREATE USER <some_user_name> IDENTIFIED BY '<some_password'
DEFAULT TABLESPACE <some_non-SYSTEM_tablespace>
TEMPORARY TABLESPACE <some_non-SYSTEM_tablespace>;

GRANT CONNECT TO <the_new_user>;
Then, logged in as the Oracle user that owns the tables, you grant privileges to the new user:

CODE

GRANT SELECT ON <target_table name(s)> TO <the_new_user>;
Lastly, test the CREATE and GRANTs that just took place:

CODE

SQL> connect <the_new_user>/<password>@<alias of instance>
SQL> SELECT COUNT(*) FROM <owning_schema>.<targe_table_name>;
Let us know how all this works for you, Mark.

Mufasa
(aka Dave of Sandy, Utah, USA)
[www.dasages.com: Providing low-cost remote Database Admin services]
Click here to join Utah Oracle Users Group on Tek-Tips if you use Oracle in Utah USA.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close