Given this error, I assume that you log into the database as SYS to create your tables and write your code. You do not want to use the SYS schema for this: you should never create objects in the SYS schema. You will need to enter the database as another user. In general, if you are creating a completely new application, you must create a new user who will own all the objects for the new application.
For example, if you are creating a Facebook clone and want to use the USERS tablespace for your data
CREATE USER facebook_appid IDENTIFIED BY <<password>> DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP; GRANT CREATE SESSION, CREATE TABLE, CREATE TRIGGER TO facebook_appid;
Then you must connect to the database as facebook_appid using the password you provided.
sqlplus facebook_appid/<<password>>@<<TNS alias>>
Once you do this, you can create a table and trigger.
Justin cave
source share