• oracle11g 手工建库步骤


    #create oracle instance parameter
    vi initkevin.or
    db_name='kevin'
    memory_target=0
    sga_max_size=5G
    sga_target=3G
    pga_aggregate_target=1g
    processes = 150
    audit_file_dest='/u01/app/oracle/admin/kevin/adump'
    audit_trail ='db'
    db_block_size=8192
    db_domain=''
    db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
    db_recovery_file_dest_size=2G
    diagnostic_dest='/u01/app/oracle'
    dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)'
    open_cursors=300 
    remote_login_passwordfile='EXCLUSIVE'
    undo_tablespace='UNDOTBS'
    control_files = ('/u01/app/oracle/oradata/kevin/disk1/controflie01.ctl', '/u01/app/oracle/oradata/kevin/disk2/controlfile02.ctl')
    compatible ='11.2.0'


    #create audit_file directory , db_recovery directory and orther directories
    mkdir -p /u01/app/oracle/admin/kevin/adump
    mkdir -p /u01/app/oracle/flash_recovry_area
    mkdir -p /u01/app/oracle/oradata/kevin/disk1
    mkdir -p /u01/app/oracle/oradata/kevin/disk1


    #configure oracle user environment value
    export ORACLE_SID=kevin


    #create oracle password pfile
     orapwd file=orapwdkevin password=oracle entries=3 force=y 
     
     
     
    #start nomount oracle database instance


    startup nomount pifle=?/dbs/initkevin.ora


    SQL> startup nomount pfile=?/dbs/initkevin.ora
    ORACLE instance started.


    Total System Global Area 5344731136 bytes
    Fixed Size                  2262656 bytes
    Variable Size            2885683584 bytes
    Database Buffers         2449473536 bytes
    Redo Buffers                7311360 bytes


    #create spfile from pfile
    create spfile from pfile;


    SQL> 
    SQL> create spfile from pfile;


    File created.




    #create database;


    CREATE DATABASE kevin
       USER SYS IDENTIFIED BY oracle
       USER SYSTEM IDENTIFIED BY oracle
       LOGFILE GROUP 1 ('/u01/app/oracle/oradata/kevin/disk1/redo01a.log','/u01/app/oracle/oradata/kevin/disk2/redo01b.log') SIZE 100M BLOCKSIZE 512,
      GROUP 2 ('/u01/app/oracle/oradata/kevin/disk1/redo02a.log','/u01/app/oracle/oradata/kevin/disk2/redo02b.log') SIZE 100M BLOCKSIZE 512,
      GROUP 3 ('/u01/app/oracle/oradata/kevin/disk1/redo03a.log','/u01/app/oracle/oradata/kevin/disk2/redo03b.log') SIZE 100M BLOCKSIZE 512
       MAXLOGFILES 5
       MAXLOGMEMBERS 5
       MAXLOGHISTORY 1
       MAXDATAFILES 100
       CHARACTER SET AL32UTF8
       NATIONAL CHARACTER SET AL16UTF16
       EXTENT MANAGEMENT LOCAL
       DATAFILE '/u01/app/oracle/oradata/kevin/disk1/system01.dbf' SIZE 325M REUSE
       SYSAUX DATAFILE '/u01/app/oracle/oradata/kevin/disk2/sysaux01.dbf' SIZE 325M REUSE
       DEFAULT TABLESPACE users
          DATAFILE '/u01/app/oracle/oradata/kevin/disk1/users01.dbf'
          SIZE 500M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED
       DEFAULT TEMPORARY TABLESPACE tempts1
          TEMPFILE '/u01/app/oracle/oradata/kevin/disk2/temp01.dbf'
          SIZE 20M REUSE
       UNDO TABLESPACE undotbs
          DATAFILE '/u01/app/oracle/oradata/kevin/disk3/undotbs01.dbf'
          SIZE 200M REUSE AUTOEXTEND ON MAXSIZE 1024m;




     
    #create oracle dictionary information


    @?/rdbms/admin/catalog.sql
    @?/rdbms/admin/catproc.sql




    @?

    /sqlplus/admin/pupbld.sql




    The database was created successfully















  • 相关阅读:
    【BZOJ2655】—calc(拉格朗日插值+生成函数+dp)
    【BZOJ4559】【JLOI2016】—成绩比较(拉格朗日插值+dp)
    【BZOJ5339】【洛谷P4593】【TJOI2018】—教科书般的亵渎(拉格朗日插值)
    【LOJ2542】【PKUWC2018】—随机游走(Min-Max容斥+树形dp)
    【LOJ#121】—「离线可过」动态图连通性(线段树分治)
    【BZOJ4867】【洛谷P5210】【ZJOI2017】—线段树(括号序列+树链剖分)
    【洛谷P4191】【CTSC2010】—性能优化(混合基FFT)
    【BZOJ3112】【ZJOI2013】—防守战线(线性规划+对偶)
    python 面向对象介绍
    lsof 命令
  • 原文地址:https://www.cnblogs.com/jhcelue/p/6901992.html
Copyright © 2020-2023  润新知