繼續(xù)關(guān)注我的C語言學(xué)習(xí)博客

          林臨的地盤

          java學(xué)習(xí)博客
          posts - 44, comments - 28, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          oracle創(chuàng)建表空間

          Posted on 2009-07-23 10:35 lubaolin 閱讀(368) 評論(0)  編輯  收藏 所屬分類: database
          //創(chuàng)建臨時表空間

          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;

          //創(chuàng)建數(shù)據(jù)表空間
          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;

          //創(chuàng)建用戶并指定表空間
          create user username identified by password
          default tablespace test_data
          temporary tablespace test_temp;

          //給用戶授予權(quán)限

          grant connect,resource to username;

          //以后以該用戶登錄,創(chuàng)建的任何數(shù)據(jù)庫對象都屬于test_temp 和test_data表空間,這就不用在每創(chuàng)建一個對象給其指定表空間了。

          轉(zhuǎn)載:http://virgos.javaeye.com/blog/337976
          繼續(xù)關(guān)注我的C語言學(xué)習(xí)博客
          主站蜘蛛池模板: 永泰县| 高邮市| 开江县| 浦江县| 丹凤县| 东山县| 吉木乃县| 开阳县| 和硕县| 澳门| 上饶县| 德化县| 桂阳县| 香河县| 方正县| 谢通门县| 同德县| 弥渡县| 梁平县| 华坪县| 广宁县| 鹿邑县| 保山市| 建宁县| 兴义市| 竹溪县| 翁源县| 紫金县| 拜泉县| 汉源县| 新巴尔虎右旗| 左权县| 岑溪市| 阿拉善右旗| 亚东县| 平泉县| 天长市| 信丰县| 开封市| 康定县| 临湘市|