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

          林臨的地盤

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

          oracle創(chuàng)建表空間

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

          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ù)庫(kù)對(duì)象都屬于test_temp 和test_data表空間,這就不用在每創(chuàng)建一個(gè)對(duì)象給其指定表空間了。

          轉(zhuǎn)載:http://virgos.javaeye.com/blog/337976
          繼續(xù)關(guān)注我的C語言學(xué)習(xí)博客
          主站蜘蛛池模板: 青龙| 礼泉县| 平原县| 黔南| 曲阜市| 龙泉市| 屯门区| 上栗县| 西平县| 溧阳市| 山阳县| 视频| 建阳市| 普兰县| 曲靖市| 滕州市| 台南县| 章丘市| 重庆市| 开平市| 佛山市| 综艺| 平果县| 乌兰浩特市| 东乡| 海阳市| 建始县| 云林县| 灵武市| 四平市| 京山县| 汤阴县| 东丰县| 治多县| 武山县| 会东县| 弋阳县| 濉溪县| 河津市| 广灵县| 兴业县|