zoukankan      html  css  js  c++  java
  • oracle创建表空间,创建用户(转)

    /创建临时表空间

    create temporary tablespace test_temp
    tempfile 'E:\oracle\product\10.2.0\oradata\testserver\test_temp01.dbf'
    size 32m
    autoextend on
    next 32m maxsize 2048m
    extent management local;

    //创建数据表空间
    create tablespace test_data
    logging
    datafile 'E:\oracle\product\10.2.0\oradata\testserver\test_data01.dbf'
    size 32m
    autoextend on
    next 32m maxsize 2048m
    extent management local;

    //创建用户并指定表空间
    create user username identified by password
    default tablespace test_data
    temporary tablespace test_temp;

    //给用户授予权限

    grant connect,resource to username;

    //以后以该用户登录,创建的任何数据库对象都属于test_temp 和test_data表空间,这就不用在每创建一个对象给其指定表空间了。

    成长的乐趣,在于分享!
    大龄程序员,一路走来,感慨颇多。闲暇时写写字,希望能给同行人一点帮助。
    本文版权归作者growithus和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    7-2 一元多项式的乘法与加法运算 (20 分)
    cvc-complex-type.2.4.a: Invalid content was found starting with element(servlet)
    MOOC 2.3 队列
    MOOC 2.2 堆栈
    MOOC 2.1 线性表及其实现
    MOOC 1.3 最大子列和
    计时程序
    MOOC 1.1 什么是数据结构
    poj3253
    二分法查找——对数
  • 原文地址:https://www.cnblogs.com/growithus/p/11012364.html
Copyright © 2011-2022 走看看