时间:2021-07-01 10:21:17 帮助过:2人阅读
稍作解释(参考自http://blog.chinaunix.net/uid-20802110-id-2105656.html):
LOGGING :
online|offline
PERMANENT|TEMPORARY
BLOCKSIZE integer [k]
4.创建角色,用户,分配权限,建表
CREATE TABLESPACE "DATA" DATAFILE ‘D:\IDE\ORACLE\PRODUCT\10.2.0\ORADATA\blog\oradata01.dbf‘ SIZE 512M AUTOEXTEND ON NEXT 8M MAXSIZE 1024M LOGGING ONLINE PERMANENT BLOCKSIZE 8192 EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO Create role manager; grant connect,resource,unlimited tablespace to manager;
create user heben identified by heben default tablespace data;
grant manager to heben
create table article ( articleid number(10) not null, articletitle varchar2(100 char), authorid number(10) not null, content blob, datepublish date, datelastmaint date default sysdate not null, articlecatcd varchar2(4 char) );
建表时可能会报错
grant connect,resource to heben; 解决问题
WIN10 新建ORACLE实例
标签: