博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
创建Oracle的用户 create user scott identified by tiger;
阅读量:6976 次
发布时间:2019-06-27

本文共 1042 字,大约阅读时间需要 3 分钟。

在命令行里sqlplus

以system身份登录,password是自己设的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.
请输入username:  system
输入口令:
连接到:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

之后创建用户scottpassword为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;
用户已更改。

改动用户password

alter user username identified by 新password

给用户解锁

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.
请输入username:  system
输入口令:
连接到:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> grant connect,resource to scott;
授权成功。
SQL>

转载地址:http://vzupl.baihongyu.com/

你可能感兴趣的文章
Oracle的分页查询
查看>>
Objective-C非正式协议与正式协议
查看>>
jquery mobie导致超链接不可用
查看>>
Python OpenCV学习笔记之:图像读取,显示及保存
查看>>
计算机职业目标
查看>>
2月国内搜索市场:360继续上升 百度下降0.62%
查看>>
HTML样式offset[Direction] 和 style.[direction]的区别
查看>>
使用memcache做web缓存
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
华胜天成ivcs云系统初体验2
查看>>
MASQUERADE --random 端口不随机
查看>>
阿里云 Aliplayer高级功能介绍(二):缩略图
查看>>
从1.5K到18K 一个程序员的5年成长之路(二)
查看>>
从HelloWorld看Knative Serving代码实现
查看>>
制作一个简单的linux
查看>>
【ZooKeeper Notes 14】数据模型
查看>>
Expect自动化控制简单介绍
查看>>
我的友情链接
查看>>
Vmware虚拟机的复制后无法使用的问题和解决
查看>>