建立Oracle数据库时如何设置数据库的空间,biao表空间,用oracle提供创建工具,谢谢

解决方案 »

  1.   

    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; 
      

  2.   

      只能用代码设置吗?oracle自带的图形工具运行可以设置大小吗?
      

  3.   

    可以,通过isqlplus,其他的工具都可以,不过大家都习惯用代码来做
      

  4.   

    但是在Database Contigureation Assistant中没见到设置大小
      

  5.   

    Create   a   tablespace.   
        
      Syntax:   
        
            CREATE   TABLESPACE   tablespace_name   
                  DATAFILE   Datafile_Options   Storage_Options   ;   
        
      Datafile_Options:   
        
              'filespec'   [AUTOEXTEND   OFF]   
              'filespec'   [AUTOEXTEND   ON   [NEXT   int   K   |   M]   [MAXSIZE   int   K   |   M]]   
      The   Autoextend   Maxsize   clause   will   default   to   UNLIMITED   if   no   value   is   specified.     
        
      Storage_Options:   
        
              DEFAULT   STORAGE   storage_clause   
              MINIMUM   EXTENT   int   {K|M}   
              LOGGING   |   NOLOGGING   
              ONLINE   |   OFFLINE   
              PERMANENT   |   TEMPORARY   
              EXTENT   MANAGEMENT   {DICTIONARY   |   
                    LOCAL   {AUTOALLOCATE   |   UNIFORM   [SIZE   int   K   |   M]}   }