zoukankan      html  css  js  c++  java
  • 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.将空间分配给用户:
    alert user username default tablespace tablespacename;
    将名字为tablespacename的表空间分配给username

    4.给用户授权:
    grant create session,create table,unlimited tablespace to username;

    5.然后再以楼主自己创建的用户登录,登录之后创建表即可。
    conn username/password;

    /*

    create tablespace OnlineVisaSystem_tableSapce logging datafile 'D:OnlineVisaSystem.dbf' size 10000m autoextend on next 100m maxsize 20048m extent management local;

    create user OnlineVisaSystem identified by DWJD2014 default tablespace OnlineVisaSystem_tableSapce temporary tablespace temp;

    grant connect, resource, dba to OnlineVisaSystem;

    commit;
    */

  • 相关阅读:
    Hadoop-MyEclipse安装配置
    grid搜索最优参数
    python数据集处理
    集合框架
    Java泛型集合
    python机器学习工具包
    IO流
    Eclipse导入Hadoop源码项目及编写Hadoop程序
    Hadoop日志以及日志的格式和命名组成
    VIM键盘映射 (Map)
  • 原文地址:https://www.cnblogs.com/lzjlv/p/3949405.html
Copyright © 2011-2022 走看看