创建新的用户:如user1/pass1,赋予connect,resource权限。 SQL> grant connect,resource to user1 identified by pass1;
SQL> conn user1/pass1 SQL> create table test(a number,b char(19)); SQL> insert into test values(1,to_char(sysdate,'yyyy-mm-dd hh24:mi:ss')); SQL> insert into test values(2,to_char(sysdate,'yyyy-mm-dd hh24:mi:ss')); SQL> insert into test values(3,to_char(sysdate,'yyyy-mm-dd hh24:mi:ss')); SQL> insert into test values(4,to_char(sysdate,'yyyy-mm-dd hh24:mi:ss')); SQL> insert into test values(5,to_char(sysdate,'yyyy-mm-dd hh24:mi:ss')); SQL> commit;
SQL> select * from test;
A B ---------- ------------------- 1 2000-11-28 20:27:33 2 2000-11-28 20:27:36 3 2000-11-28 20:27:38 4 2000-11-28 20:27:40 5 2000-11-28 20:27:52