zoukankan      html  css  js  c++  java
  • oracle 静默创建数据库

    dbca -silent -help

    针对下面的项进行修改:

    RESPONSEFILE_VERSION = "11.2.0" //不能更改
    OPERATION_TYPE = "createDatabase"
    GDBNAME = "hello.dlxg.gov.cn" //数据库的名字
    SID = "hello" //对应的实例名字
    TEMPLATENAME = "General_Purpose.dbc" //建库用的模板文件
    SYSPASSWORD = "your_passwd" //SYS管理员密码
    SYSTEMPASSWORD = "your_passwd" //SYSTEM管理员密码
    DATAFILEDESTINATION = /oradata //数据文件存放目录
    RECOVERYAREADESTINATION=/oradata_back //恢复数据存放目录
    CHARACTERSET = "ZHS16GBK" //字符集,重要!!! 建库后一般不能更改,所以建库前要确定清楚。
    TOTALMEMORY = "5120" //oracle内存5120MB 

     

    12c
    dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname oradb.example.com -sid oradb -responseFile NO_VALUE -characterSet AL32UTF8 -memoryPercentage 30 -emConfiguration LOCAL
     
    11g
    dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname test -sid test -sysPassword your_passwd -systemPassword your_passwd -responseFile NO_VALUE -datafileDestination /oradata -redoLogFileSize 300 -recoveryAreaDestination /backup/dump_data -storageType FS -characterSet ZHS16GBK -nationalCharacterSet AL16UTF16 -sampleSchema false -memoryPercentage 40 -automaticMemoryManagement true -databaseType OLTP -emConfiguration NONE
     
    10g
    dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname test -sid test -sysPassword your_passwd -systemPassword your_passwd -responseFile NO_VALUE -datafileDestination /oradata/ -recoveryAreaDestination /oradata_back -storageType FS -characterSet ZHS16GBK -nationalCharacterSet AL16UTF16 -sampleSchema true -memoryPercentage 40 -databaseType OLAP -emConfiguration NONE
    Priestess©版权所有,禁止转载
  • 相关阅读:
    LeetCode 382. Linked List Random Node
    LeetCode 398. Random Pick Index
    LeetCode 1002. Find Common Characters
    LeetCode 498. Diagonal Traverse
    LeetCode 825. Friends Of Appropriate Ages
    LeetCode 824. Goat Latin
    LeetCode 896. Monotonic Array
    LeetCode 987. Vertical Order Traversal of a Binary Tree
    LeetCode 689. Maximum Sum of 3 Non-Overlapping Subarrays
    LeetCode 636. Exclusive Time of Functions
  • 原文地址:https://www.cnblogs.com/priestess-zhao/p/8337269.html
Copyright © 2011-2022 走看看