oracle手工建库10g,11g,12c

10g版本
CREATE DATABASE PROD
   LOGFILE GROUP 1 ('/u01/app/oracle/oradata/PROD/disk1/redo01.log',
                    '/u01/app/oracle/oradata/PROD/disk2/redo01.log') SIZE 100M,
           GROUP 2 ('/u01/app/oracle/oradata/PROD/disk1/redo02.log',
                    '/u01/app/oracle/oradata/PROD/disk2/redo02.log') SIZE 100M,
           GROUP 3 ('/u01/app/oracle/oradata/PROD/disk1/redo03.log',
                    '/u01/app/oracle/oradata/PROD/disk2/redo03.log') SIZE 100M
   CHARACTER SET zhs16gbk
   NATIONAL CHARACTER SET AL16UTF16
   DATAFILE '/u01/app/oracle/oradata/PROD/disk3/system01.dbf' SIZE 325M REUSE
   EXTENT MANAGEMENT LOCAL
   SYSAUX DATAFILE '/u01/app/oracle/oradata/PROD/disk4/sysaux01.dbf' SIZE 325M REUSE
   DEFAULT TEMPORARY TABLESPACE temptbs
      TEMPFILE '/u01/app/oracle/oradata/PROD/disk5/temp01.dbf'
      SIZE 20M REUSE
   UNDO TABLESPACE undotbs
      DATAFILE '/u01/app/oracle/oradata/PROD/disk4/undotbs01.dbf'
      SIZE 200M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;
      
11g版本
CREATE DATABASE PROD
   LOGFILE GROUP 1 ('/u01/app/oracle/oradata/PROD/disk1/redo01.log',
                    '/u01/app/oracle/oradata/PROD/disk2/redo01.log') SIZE 100M BLOCKSIZE 512,
           GROUP 2 ('/u01/app/oracle/oradata/PROD/disk1/redo02.log',
                    '/u01/app/oracle/oradata/PROD/disk2/redo02.log') SIZE 100M BLOCKSIZE 512,
           GROUP 3 ('/u01/app/oracle/oradata/PROD/disk1/redo03.log',
                    '/u01/app/oracle/oradata/PROD/disk2/redo03.log') SIZE 100M BLOCKSIZE 512
   CHARACTER SET zhs16gbk
   NATIONAL CHARACTER SET AL16UTF16
   EXTENT MANAGEMENT LOCAL
   DATAFILE '/u01/app/oracle/oradata/PROD/disk3/system01.dbf' SIZE 325M REUSE
   SYSAUX DATAFILE '/u01/app/oracle/oradata/PROD/disk4/sysaux01.dbf' SIZE 325M REUSE
   DEFAULT TABLESPACE users
      DATAFILE '/u01/app/oracle/oradata/PROD/disk3/users01.dbf'
      SIZE 500M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED
   DEFAULT TEMPORARY TABLESPACE tempts
      TEMPFILE '/u01/app/oracle/oradata/PROD/disk4/temp01.dbf'
      SIZE 20M REUSE
   UNDO TABLESPACE undotbs
      DATAFILE '/u01/app/oracle/oradata/PROD/disk5/undotbs01.dbf'
      SIZE 200M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;

12c版本
CREATE DATABASE PROD
   LOGFILE GROUP 1 ('/u01/app/oracle/oradata/PROD/disk1/redo01.log',
                    '/u01/app/oracle/oradata/PROD/disk2/redo01.log') SIZE 100M BLOCKSIZE 512,
           GROUP 2 ('/u01/app/oracle/oradata/PROD/disk1/redo02.log',
                    '/u01/app/oracle/oradata/PROD/disk2/redo02.log') SIZE 100M BLOCKSIZE 512,
           GROUP 3 ('/u01/app/oracle/oradata/PROD/disk1/redo03.log',
                    '/u01/app/oracle/oradata/PROD/disk2/redo03.log') SIZE 100M BLOCKSIZE 512
   CHARACTER SET zhs16gbk
   NATIONAL CHARACTER SET AL16UTF16
   EXTENT MANAGEMENT LOCAL
   DATAFILE '/u01/app/oracle/oradata/PROD/disk3/system01.dbf'
     SIZE 700M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
   SYSAUX DATAFILE '/u01/app/oracle/oradata/PROD/disk4/sysaux01.dbf'
     SIZE 550M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
   DEFAULT TABLESPACE users
      DATAFILE '/u01/app/oracle/oradata/PROD/disk4/diskusers01.dbf'
      SIZE 500M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED
   DEFAULT TEMPORARY TABLESPACE tempts
      TEMPFILE '/u01/app/oracle/oradata/PROD/disk5/temp01.dbf'
      SIZE 20M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
   UNDO TABLESPACE undotbs
      DATAFILE '/u01/app/oracle/oradata/PROD/disk5/undotbs01.dbf'
      SIZE 200M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
   USER_DATA TABLESPACE usertbs
      DATAFILE '/u01/app/oracle/oradata/PROD/disk4/usertbs01.dbf'
      SIZE 200M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值