• oracle创建新用户/表空间


    1.首先,创建(新)用户:
        create user username identified by password;
        username:新用户名的用户名
        password: 新用户的密码
    也可以不创建新用户,而仍然用以前的用户,如:继续利用scott用户
     
    2.创建表空间:
        create tablespace tablespacename datafile 'd:\data.dbf' size xxxm;
        tablespacename:表空间的名字
        d:\data.dbf':表空间的存储位置
        xxx表空间的大小,m单位为兆(M)
    3.将空间分配给用户:
       alter user username default tablespace tablespacename;
       将名字为tablespacename的表空间分配给username 
     
    4.给用户授权:
       grant create session,create table,unlimited tablespace to username;
     
    5.然后再以楼主自己创建的用户登录,登录之后创建表即可。
    conn username/password;
     
     
    每步执行的sql:(sjzx是数据库名、用户名、密码、表空间名)
    

      

    1)create user sjzx identified by sjzx
    (2)create tablespace sjzx datafile 'D:\db\app\oradata\orcl\sjzx.dbf' 
            size 100m 
            autoextend on next 32m maxsize 2048m

    (3)alter user sjzx default tablespace sjzx

    (4)grant create session,create table,unlimited tablespace to sjzx

  • 相关阅读:
    获取其他进程中StatusBar的文本
    TStringGrid多选的复制与拷贝
    常用数据结构
    数据结构及算法
    时间复杂度和空间复杂度详解
    算法的时间复杂度和空间复杂度
    新增并管理媒体资源
    Node.js与MongoDB的基本连接示例
    Web API 2:Action的返回类型
    快递查询组件
  • 原文地址:https://www.cnblogs.com/xiangxiushu/p/16144511.html
Copyright © 2020-2023  润新知