---
title: "oracle 10g 为新建用户并赋予所有表操作权限的方法"
author: "h271665724"
date: "2011-10-13T16:29:00Z"
tags: []
categories: ["数据库"]
slug: "oracle-10g"
draft: false
lastmod: "2011-10-13T16:29:00Z"
id: 1194707
url: "https://java161.iteye.com/blog/1194707"
---

建用户：

create  user 用户名 identified by 密码 default tablespace 默认表空间 temporary 临时表空间;  
赋权限:  
grant connect,resource,

create any view,

create any synonym,

create database link,

select any table,

create table,

update any table,

insert any table,

delete any table,

alter any table

 to 用户名;

更多的权限加进去就可以了

 

赋予DBA权限：

grant dba to username;

 

撤销DBA权限：

REVOKE dba,exp-full-database,imp-full-datsabase from 用户名;