首页 > 数据库 >1、oracle创建新用户

1、oracle创建新用户

时间:2023-08-23 11:46:38浏览次数:45  
标签:grant 创建 用户 user oracle new USER

目录

oracle创建新用户

1、创建表空间

CREATE TABLESPACE "USER_SPACE" LOGGING
     DATAFILE '/u01/app/oracle/oradata/UAT/USER_SPACE.DBF'
     SIZE 32M REUSE AUTOEXTEND ON NEXT  200M MAXSIZE UNLIMITED
     EXTENT MANAGEMENT LOCAL;

2、创建临时表空间

CREATE TEMPORARY TABLESPACE "USER_TMPE"    
TEMPFILE '/u01/app/oracle/oradata/UAT/USER_TMPE.DBF'    
SIZE 50M     
AUTOEXTEND ON     
NEXT 50M MAXSIZE UNLIMITED  
EXTENT MANAGEMENT LOCAL;     

3、创建用户

CREATE USER "new_user" IDENTIFIED BY "new_pwd" DEFAULT TABLESPACE "USER_SPACE" TEMPORARY TABLESPACE "USER_TMPE";

4、授权

alter user  new_user  account unlock;
grant connect to new_user;
grant create synonym to new_user;
grant create view to new_user;
grant create job to new_user;
grant create table to new_user;
grant create session to new_user;
grant resource to new_user;
grant read,write on directory dmps to new_user;
grant select any table to new_user;

标签:grant,创建,用户,user,oracle,new,USER
From: https://www.cnblogs.com/lgxdev/p/17650778.html

相关文章

  • SAP ABAP 模式(Pattern)、模板的创建与调用
    1.代码模板2.模式(Pattern) 调用3.标准模式,一些内置固定格式代码的填充  ......
  • 使用 lorax 创建引导文件(boot.iso)
    简介:RedHatEnterpriseLinux的安装系统是由一个名为lorax的工具创建的。lorax 工具用于创建 Anaconda 安装程序boot.iso如以及基本的发布树和.treeinfo元数据文件。其依赖关系相当轻量级,因为它需要能够在模拟chroot中运行环境。最好从与目标相同的版本运行lora......
  • 3、oracle迁移到postgres-执行动态sql传参不同
    目录oracle迁移到postgres-执行动态sql传参不同1、oracle使用的是:12、postgres使用的是$1oracle迁移到postgres-执行动态sql传参不同在sql字符串中,会动态传入值,使用阿拉伯数据定义传参的个数。1、oracle使用的是:1executeimmediate'select*fromsys_stuwherestu_name=......
  • 2、oracle迁移到postgres-事务提交方式不同
    目录oracle迁移到postgres-事务提交方式不同1、oracle2、postgresoracle迁移到postgres-事务提交方式不同1、oracleoracle默认不自动提交事务,需要手动commit2、postgrespostgres默认自动提交事务,不需要手动commit,导致迁移过来的pck如果有commit需要注释掉......
  • 1、oracle迁移到postgres-执行sql方式execute不同
    目录oracle迁移到postgres-执行sql方式execute不同1、oracle使用executeimmediate2、postgres使用executeoracle迁移到postgres-执行sql方式execute不同1、oracle使用executeimmediateexecuteimmediate'sql';2、postgres使用executeexecuteimmediate'sql';......
  • 5、oracle迁移到postgres-oracle中使用的`nvl`函数更改为统一的`coalesce`函数
    目录oracle迁移到postgres-oracle中使用的nvl函数更改为统一的coalesce函数1、oracle的nvl函数2、postgre的coalesce函数oracle迁移到postgres-oracle中使用的nvl函数更改为统一的coalesce函数nvl函数与coalesce函数都是值非空时,给默认值,oracle中也存在coalesce函数1、oracle的......
  • 4、oracle迁移到postgres-oracle中使用的`decode`函数使用`case when`统一语法
    目录oracle迁移到postgres-oracle中使用的decode函数使用casewhen统一语法1、oracle的decode语法2、postgres的casewhenoracle迁移到postgres-oracle中使用的decode函数使用casewhen统一语法oracle中也有使用casewhen语法,使用decode函数比较简洁。1、oracle的decode语法匹......
  • Windows平台安装Oracle数据库软件
    1.安装程序下载https://www.oracle.com/database/technologies/oracle19c-windows-downloads.html下载第一个OracleDatabase19c(19.3)forMicrosoftWindowsx64(64bit),版本为19c 2.安装   (1)解压下载下来的压缩包,进入目录后执行setup.exe程序,启动Oracle数据库安装向导......
  • Oracle触发器
    --手办表DROPTABLET_GIRL;CREATETABLET_GIRL(IDNUMBER,NAMEVARCHAR2(30),PRIMARYKEY(ID),AGENUMBER,TCODENUMBER);--数量表DROPTABLET_SQL_LOG;CREATETABLET_SQL_LOG(TIDNUMBER,TNAMEVARCHAR2(30),TCODEVARCHAR(20),TCOUNTNUM......
  • Windows中创建虚假大文件以解决C盘满盘后的工作效率降低问题
    问题Windows系统的电脑经常出现C盘无缘无故满盘的情况,这种自动满盘的情况直到满盘达到只剩下几KB的时候系统才会自动将里面的一些Windows更新缓存给删除掉,很影响工作效率。尤其是当打开Photoshop这类软件时,只剩下1GB的C盘空间往往无法满足Photoshop缓存要求,这时候非常棘手,因为无......