Ok -- I'm sure this is easy enough, but any help would be appreciated...
I've just created a new database called MYDB using the Oracle 9i DBCA (Database Configuration Assistant).
I then logged in to SQL*Plus as SYSTEM, and tried to create a tablespace called 'general' using the following script:
SQL> CREATE TABLESPACE general
DATAFILE 'C:\oracle\oradata\MYDB\general01.dbf'
SIZE 10M
AUTOEXTEND ON NEXT 10M
MAXSIZE 100M;
(By the way, there is no file in that location called general01.dbf).
I then tried to create a new user and assign 'general' as their default tablespace. I also granted CREATE SESSION, CREATE TABLE, CREATE VIEW, and CREATE SEQUENCE privileges to that user. The user and grants seemed to work successfully, so I logged out and then back in as the new user. Now I'm having trouble running my table creation scripts as that user. I get the following error:
ORA-01950: no privileges on tablespace 'GENERAL'
Any ideas of what I've done wrong? Is it the lack of the general01.dbf file? Something else?
Thanks in advance,
~Lindsay
I've just created a new database called MYDB using the Oracle 9i DBCA (Database Configuration Assistant).
I then logged in to SQL*Plus as SYSTEM, and tried to create a tablespace called 'general' using the following script:
SQL> CREATE TABLESPACE general
DATAFILE 'C:\oracle\oradata\MYDB\general01.dbf'
SIZE 10M
AUTOEXTEND ON NEXT 10M
MAXSIZE 100M;
(By the way, there is no file in that location called general01.dbf).
I then tried to create a new user and assign 'general' as their default tablespace. I also granted CREATE SESSION, CREATE TABLE, CREATE VIEW, and CREATE SEQUENCE privileges to that user. The user and grants seemed to work successfully, so I logged out and then back in as the new user. Now I'm having trouble running my table creation scripts as that user. I get the following error:
ORA-01950: no privileges on tablespace 'GENERAL'
Any ideas of what I've done wrong? Is it the lack of the general01.dbf file? Something else?
Thanks in advance,
~Lindsay