指定安装weblogic的安装路径

    1. #Oracle Installer Location File Location
    2. inst_group=web
    3. inventory_loc=/usr/local/weblogic12c/oraInventory

    静默暗转所需要的响应文件内容:

    1. [ENGINE]
    2. #DO NOT CHANGE THIS.
    3. Response File Version=1.0.0.0.0
    4. [GENERIC]
    5. #The oracle home location. This can be an existing Oracle Home or a new Oracle Home
    6. ORACLE_HOME=/usr/local/weblogic12c/Middleware
    7. #Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
    8. INSTALL_TYPE=WebLogic Server
    9. #Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
    10. MYORACLESUPPORT_USERNAME=
    11. #Provide the My Oracle Support Password
    12. MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
    13. #Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
    14. DECLINE_SECURITY_UPDATES=true
    15. #Set this to true if My Oracle Support Password is specified
    16. SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
    17. #Provide the Proxy Host
    18. PROXY_HOST=
    19. #Provide the Proxy Port
    20. PROXY_PORT=
    21. #Provide the Proxy Username
    22. PROXY_USER=
    23. #Provide the Proxy Password
    24. PROXY_PWD=<SECURE VALUE>
    25. #Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
    26. COLLECTOR_SUPPORTHUB_URL=

    创建域的响应文件
    创建语句: :::info 在/usr/local/weblogic12c/Middleware/wlserver/common/bin目录下执行
    ./config.sh -mode=silent -silent_script=/usr/local/weblogic12c/install/create_domain.rsp :::

    1. read template from "/usr/local/weblogic12c/Oracle/Middleware/wlserver/common/templates/wls/wls.jar";
    2. set JavaHome "/opt/jdk1.8.0_201";
    3. set ServerStartMode "dev";
    4. find Server "AdminServer" as AdminServer;
    5. set AdminServer.ListenAddress "";
    6. set AdminServer.ListenPort "7001";
    7. set AdminServer.SSL.Enabled "true";
    8. set AdminServer.SSL.ListenPort "7002";
    9. //We can directly create a new managed server.
    10. create Server "base" as BASE;
    11. set BASE.ListenAddress "";
    12. set BASE.ListenPort "7003";
    13. //set BASE.SSL.Enabled "true";
    14. //set BASE.SSL.ListenPort "7004″;
    15. //Create Machine
    16. create Machine "base" as Machinename;
    17. //use templates default weblogic user
    18. find User "weblogic" as u1;
    19. set u1.password "weblogic123";
    20. //create a new user
    21. create User "weblogic2" as u2;
    22. set u2.password "weblogic123";
    23. write domain to "/usr/local/weblogic12c/Oracle/Middleware/user_projects/domians/bh_domain/";
    24. //The domain name will be "demo-domain"