2008-01-19 10:14:50
2007-11-19 13:34:49
//创建表空间,表空间用于存储数据库对象,如表、视图、存储过程等。下面的语句创建一个名为myspace的表空间,数据物理文件为D:\oracle\myspace.dbf,大小为100M
//create tablespace myspace datafile 'D:\oracle\myspace.dbf' size 100M;
//删除表空间,先执行下面的sql然后删除物理文件
//drop tablespace myspace;
//创建用户,用户名为test密码为test。该用户创建的表默认保存在myspace表空间内。多个用户可以共享一个表空间
//create user test identified by test default tablespace myspace temporary tablespace temp;
//为用户授权,一般只为用户授予connect,resource角色,因为dba角色权限太高,容易破坏数据库,resource角色权限已经很高。用户的角色权限可以传递
//grant connect,resource,dba to test;
2007-11-19 13:32:48