Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > Oracle
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 20th, 2005, 01:19 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default Why can't create table?

Using system operator account to creat a user and assign some privilege to it,like follows:
SQL> create user a1 identified by a1;
SQL> grant create session to a1;
SQL> grant create table to a1;

Then connect Oracle as this user,and create a table,like follows:
SQL> create table a_1(col1 varchar2(20));
create table a_1(col1 varchar2(20))
*
ERROR at line 1:
ORA-01950: table space 'SYSTEM' no right

I have assign create table privilege to user a1,why still above error? How to make user a1 can create table? I only want to make user a1 to create table and don't want to let him more other rights.

How to do it?

Thanks.

  #2 (permalink)  
Old July 20th, 2005, 04:06 AM
_AP _AP is offline
Authorized User
 
Join Date: Jun 2005
Location: , , Russia.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to _AP
Default

SQL> edit
Wrote file afiedt.buf

  1 create user a1 identified by a1
  2 default tablespace ap_test
  3* QUOTA 10M on ap_test
SQL> /

User created.

SQL> grant create session to a1;

Grant succeeded.

SQL> grant create table to a1;

Grant succeeded.

SQL> create table a_1(col1 varchar2(20));

Table created.


  #3 (permalink)  
Old July 20th, 2005, 04:11 AM
_AP _AP is offline
Authorized User
 
Join Date: Jun 2005
Location: , , Russia.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to _AP
Default

sorry :)

apdev@ORCL10G>connect a1/a1@orcl
Connected.
a1@ORCL10G>create table a_1(col1 varchar2(20));
Table created.



 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create generic XSL Template to create table Venkatachalapathy XSLT 5 March 11th, 2008 07:49 AM
Create a Table using ADOX JDrown Access VBA 7 April 12th, 2006 03:52 AM
Create table from another table using ADO Kaustav Pro VB Databases 0 October 15th, 2005 05:44 AM
Create a table jmss66 Classic ASP Basics 1 July 19th, 2005 12:50 PM
cannot create table henpur BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 March 17th, 2005 01:10 PM



All times are GMT -4. The time now is 09:17 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.