博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
oracle用户创建
阅读量:7094 次
发布时间:2019-06-28

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

Microsoft Windows [版本 6.1.7601]

版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

G:\Users\Admin>sqlplus

SQL*Plus: Release 11.2.0.1.0 Production on 星期三 11月 16 15:29:13 2016

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

请输入用户名: 数据库dba用户名 as sysdba

输入口令:

连接到:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> create user test identified by 123456

2
SQL> grant dba to test
2
SQL> conn test/123456 as sysdba
已连接。
SQL>

 

test为创建的用户名,123456为test用户的密码

 

删除用户方法如下:

 

SQL> conn sys/123456 as sysdba

已连接。
SQL> drop user test
2
SQL>

 

建议使用plsql创建更方便

赋权限:

GRANT CREATE SESSION TO UserName;--这样确保该用户可以登录数据库  

GRANT CREATE TABLE TO UserName;--这样该用户可以创建表  

grant connect to UserName;  

grant exp_full_database to UserName;  

grant imp_full_database to UserName;  

grant resource to UserName;  

grant create procedure to UserName;  

grant create trigger to UserName;  

grant execute any procedure to UserName;  

grant grant any privilege to UserName;  

grant restricted session to UserName;  

grant select any table to UserName;  

grant unlimited tablespace to UserName;  

grant create any view to UserName;  

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

你可能感兴趣的文章
我收集的资料网站
查看>>
Java基础-第2天
查看>>
有一种爱叫白头偕老
查看>>
linux返回码 $?
查看>>
jQuery formvalidator插件 API帮助文档
查看>>
debian系统双机heartbat配置
查看>>
为什么存在内存对齐
查看>>
python学习之函数
查看>>
如何使用uiautomatorviewer来扫描和分析UI组件
查看>>
IOS视图互换
查看>>
第二十四课 shell的特殊符号及cut_sort_wc_uniq_tee_tr_split 命令
查看>>
Linux下安装Tomcat
查看>>
Kendo UI常用示例汇总(十八)
查看>>
3 Tomcat
查看>>
DevExpress v17.2—WPF篇(一)
查看>>
报表平台IE11和Chrome设置步骤
查看>>
Android WebView的使用
查看>>
linux 磁盘管理
查看>>
企业网站建设时是否应该设置页面新窗口打开
查看>>
React Native 折叠功能的实现及安卓踩坑笔记
查看>>