如何给用户授于表空间权限 本帖最后由 iakari20100820 于 2010-09-27 23:24:50 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 C:\Documents and Settings\hong>sqlplus hr/hrSQL*Plus: Release 10.2.0.1.0 - Production on 星期一 9月 27 23:31:04 2010Copyright (c) 1982, 2005, Oracle. All rights reserved.连接到:Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProductionWith the Partitioning, OLAP and Data Mining optionsSQL> create tablespace abc datafile 'E:\oracle\ubackup\abc.dbf' size 20M;create tablespace abc datafile 'E:\oracle\ubackup\abc.dbf' size 20M*第 1 行出现错误:ORA-01031: 权限不足SQL> conn / as sysdba已连接。SQL> grant create tablespace to hr;授权成功。SQL> conn hr/hr;已连接。SQL> create tablespace abc datafile 'E:\oracle\ubackup\abc.dbf' size 20M;表空间已创建。SQL> create table tt(id number) default tablespace abc;create table tt(id number) default tablespace abc *第 1 行出现错误:ORA-00922: 选项缺失或无效SQL> create table tt(id number) tablespace abc;表已创建。SQL> ORACLE 初级问题 Oracle 安装问题! 如何提高查询效率? 问个重复数据的SQL语句,就10分了.. TurboLinux下如何启动agent服务?或者说简单点,如何运行OMS Oracle 10g的用户名和口令问题 用MS SQLSERVER DTS 将数据导入ORACLE中为何先要将表名改为大写? Oracle密码??ORA-01017 ORACLE中怎样创建临时表? JAVA+linux+oracle应用时快时慢,请求各位大神帮忙解决,谢谢! 求oracle入门教材 procedure中的update语句修改不成功。
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining optionsSQL> create tablespace abc datafile 'E:\oracle\ubackup\abc.dbf' size 20M;
create tablespace abc datafile 'E:\oracle\ubackup\abc.dbf' size 20M
*
第 1 行出现错误:
ORA-01031: 权限不足
SQL> conn / as sysdba
已连接。
SQL> grant create tablespace to hr;授权成功。SQL> conn hr/hr;
已连接。
SQL> create tablespace abc datafile 'E:\oracle\ubackup\abc.dbf' size 20M;表空间已创建。SQL> create table tt(id number) default tablespace abc;
create table tt(id number) default tablespace abc
*
第 1 行出现错误:
ORA-00922: 选项缺失或无效
SQL> create table tt(id number) tablespace abc;表已创建。SQL>