• oracle 创建表空间用户


    注意:

    先以管理员用户登陆(sys/SYSDBA),然后创建表空间和用户。

    1、创建普通表空间和用户

    //创建临时表空间
    create temporary tablespace oa_temp
    tempfile 'D:appAdministratororadataorcldjoa_temp.dbf'
    size 32m
    autoextend on
    next 32m maxsize 20480m
    extent management local;

    //创建数据表空间
    create tablespace oa
    logging
    datafile 'D:appAdministratororadataorcldjoa.dbf'
    size 32m
    autoextend on
    next 32m maxsize 20480m
    extent management local;

    //创建用户
    create user oa identified by oa
    default tablespace oa
    temporary tablespace oa_temp;

    //给用户添加权限
    GRANT CREATE USER,DROP USER,ALTER USER ,CREATE ANY VIEW ,
    DROP ANY VIEW,EXP_FULL_DATABASE,IMP_FULL_DATABASE,
    DBA,CONNECT,RESOURCE,CREATE SESSION TO oa

    drop user oa cascade;
    drop tablespace oa including contents and datafiles;
    drop tablespace oa_temp including contents and datafiles;

    2、创建大表空间和用户


    //创建临时表空间
    create bigfile temporary tablespace sxybyj_temp
    tempfile 'E:appAdministratororadataorclsxybyj_temp.dbf'
    size 128m
    autoextend on
    extent management local
    uniform size 128k

    //创建数据表空间
    create bigfile tablespace sxybyj
    datafile 'E:appAdministratororadataorclsxybyj.dbf'
    size 128m
    autoextend on
    extent management local
    uniform size 128k

    //创建用户
    create user sxybyj identified by sxybyj
    default tablespace sxybyj
    temporary tablespace sxybyj_temp;

    //给用户添加权限
    GRANT CREATE USER,DROP USER,ALTER USER ,CREATE ANY VIEW ,
    DROP ANY VIEW,EXP_FULL_DATABASE,IMP_FULL_DATABASE,
    DBA,CONNECT,RESOURCE,CREATE SESSION TO sxybyj

    drop user sxybyj cascade;
    drop user test1 cascade;
    drop tablespace sxybyj including contents and datafiles;
    drop tablespace sxybyj_temp including contents and datafiles;

  • 相关阅读:
    windows 安装 anaconda
    全局路径规划--A*算法详解
    编码的种类
    request的encode和decode
    BGP的13条选路原则
    BGP路由黑洞 路由反射器 和联盟2021-07-28
    JMS-ActiveMQ-SpringBoot
    JMS-ActiveMQ-Spring
    JMS-中间件MQ-activeMQ入门
    spring-ssm整合
  • 原文地址:https://www.cnblogs.com/tiandi/p/5004705.html
Copyright © 2020-2023  润新知