zoukankan      html  css  js  c++  java
  • linux下oracle创建表空间

    在命令行模式下,输入sqlplus  /nolog,回车

    这时界面会显示SQL>,这个时候再输入 conn / as sysdba;回车

    //创建临时表空间
    create temporary tablespace test_temp tempfile'/home/app/oracle/oradata/test/test_temp.dbf' size 64m autoextend on next 64m maxsize 2048m extent management local;

    ***************
    !mkdir -p /home/app/oracle/oradata/test

    //创建数据表空间
    create tablespace test_data logging datafile'/home/app/oracle/oradata/test/test_data01.dbf' size 64m autoextend on next 65m maxsize 10240m extent management local;

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

    //给用户授予权限
    grant dba to test;

    ****注意****
    一定要注意查看oracle用户是否有文件夹的读写操作。


  • 相关阅读:
    sipp如何避免dead call
    6174问题
    笨小熊
    scanf 与 cin 的区别
    谁获得了最高奖学金
    _int64、long long 的区别
    小光棍数
    简单排序法
    La=LaULb (循环链表)
    删除重复的数(顺序有序表)
  • 原文地址:https://www.cnblogs.com/kerryqite/p/4111122.html
Copyright © 2011-2022 走看看