Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 20th, 2005, 01:19 AM
Authorized User
 
Join Date: Jul 2003
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.

 
Old July 20th, 2005, 04:06 AM
_AP _AP is offline
Authorized User
 
Join Date: Jun 2005
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.


 
Old July 20th, 2005, 04:11 AM
_AP _AP is offline
Authorized User
 
Join Date: Jun 2005
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.








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





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