设为首页 加入收藏

TOP

创建Oracle的用户createuserscottidentifiedbytiger;
2015-07-24 10:34:31 来源: 作者: 【 】 浏览:1
Tags:创建 Oracle 用户 createuserscottidentifiedbytiger

在命令行里sqlplus

以system身份登录,密码是自己设的system

C:\Users\Administrator>sqlplus

SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 10月 14 21:29:23 2014

Copyright (c) 1982, 2005, Oracle. All rights reserved.

请输入用户名: system
输入口令:


连接到:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

之后创建用户scott密码为tiger

SQL> create user scott identified by tiger;

用户已创建。

授予登录权限
SQL> grant create session to scott;

授权成功。

授予建表权限
SQL> grant create table to scott;

授权成功。

分配配额

SQL> alter user scott quota 10m on users;

用户已更改。

修改用户密码

alter user 用户名 identified by 新密码

给用户解锁

alter user scott account unlock

登录pl/sql

scott/tiger

建表

create table userinfo(
id number,
name varchar(20),
age number
)

出现ora-01950:对表空间‘SYSTEM’无权限

C:\Users\Administrator>sqlplus

SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 10月 15 07:53:13 2014

Copyright (c) 1982, 2005, Oracle. All rights reserved.

请输入用户名: system
输入口令:

连接到:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

SQL> grant connect,resource to scott;

授权成功。

SQL>

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇在64位linux下安装32位oracle软件 下一篇ORACLEunionorderby

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·TCP/UDP协议_百度百科 (2025-12-26 12:20:11)
·什么是TCP和UDP协议 (2025-12-26 12:20:09)
·TCP和UDP详解 (非常 (2025-12-26 12:20:06)
·Python 教程 - W3Sch (2025-12-26 12:00:51)
·Python基础教程,Pyt (2025-12-26 12:00:48)