• dbca静默安装及建库


    rdbms 11.2.0.4

    -- 静默安装过程

    1. [oracle@testdb database]$ ./runInstaller -silent -force -showProgress -ignoreSysPrereqs -waitForCompletion -responseFile /home/oracle/database/response/db_install.rsp -ignorePrereq
    2. Starting Oracle Universal Installer...
    3. Checking Temp space: must be greater than 120 MB. Actual 31392 MB Passed
    4. Checking swap space: must be greater than 150 MB. Actual 16383 MB Passed
    5. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2022-06-23_03-21-13PM. Please wait ...You can find the log of this install session at:
    6. /test/app/oraInventory/logs/installActions2022-06-23_03-21-13PM.log
    7. Prepare in progress.
    8. .................................................. 9% Done.
    9. Prepare successful.
    10. Copy files in progress.
    11. .................................................. 14% Done.
    12. .................................................. 20% Done.
    13. .................................................. 26% Done.
    14. .................................................. 31% Done.
    15. .................................................. 36% Done.
    16. .................................................. 41% Done.
    17. .................................................. 46% Done.
    18. .................................................. 51% Done.
    19. .................................................. 56% Done.
    20. .................................................. 63% Done.
    21. .................................................. 68% Done.
    22. .................................................. 73% Done.
    23. .................................................. 78% Done.
    24. .................................................. 83% Done.
    25. ..............................
    26. Copy files successful.
    27. Link binaries in progress.
    28. ..........
    29. Link binaries successful.
    30. Setup files in progress.
    31. .................................................. 88% Done.
    32. .................................................. 94% Done.
    33. Setup files successful.
    34. The installation of Oracle Database 11g was successful.
    35. Please check '/test/app/oraInventory/logs/silentInstall2022-06-23_03-21-13PM.log' for more details.
    36. Execute Root Scripts in progress.
    37. As a root user, execute the following script(s):
    38. 1. /test/app/oraInventory/orainstRoot.sh
    39. 2. /test/app/oracle/product/11.2.0/db_1/root.sh
    40. .................................................. 100% Done.
    41. Execute Root Scripts successful.
    42. Successfully Setup Software.
    43. [oracle@testdb database]$

    -- 安装监听,没有配置netca.rep响应文件 

    1. netca -silent -responsefile /home/oracle/database/response/netca.rsp
    2. [oracle@testdb bin]$ ./netca -silent -responsefile /home/oracle/database/response/netca.rsp
    3. Parsing command line arguments:
    4. Parameter "silent" = true
    5. Parameter "responsefile" = /home/oracle/database/response/netca.rsp
    6. Done parsing command line arguments.
    7. Oracle Net Services Configuration:
    8. Profile configuration complete.
    9. Oracle Net Listener Startup:
    10. Running Listener Control:
    11. /test/app/oracle/product/11.2.0/db_1/bin/lsnrctl start LISTENER
    12. Listener Control complete.
    13. Listener started successfully.
    14. Listener configuration complete.
    15. Oracle Net Services configuration successful. The exit code is 0
    16. [oracle@testdb bin]$

    -- dbca建库
    dbca -silent -responseFile /tmp/database/response/dbca.rsp   -- 没有用这个 

    -- 使用下面的dbca命令建库 

    1. dbca -silent -createDatabase \
    2. -templateName General_Purpose.dbc \
    3. -responseFile NO_VALUE \
    4. -gdbname prod \
    5. -sid prod \
    6. -sysPassword oracle \
    7. -systemPassword oracle \
    8. -redoLogFileSize 2048 \
    9. -storageType FS \
    10. -datafileDestination /test/app/oradata \
    11. -characterSet AL32UTF8 \
    12. -nationalCharacterSet AL16UTF16 \
    13. -emConfiguration NONE \
    14. -automaticMemoryManagement false \
    15. -totalMemory 4096 \
    16. -databaseType OLTP

    -- 过程

    1. [oracle@testdb oradata]$ dbca -silent -createDatabase \
    2. > -templateName General_Purpose.dbc \
    3. > -responseFile NO_VALUE \
    4. > -gdbname prod \
    5. > -sid prod \
    6. > -sysPassword oracle \
    7. > -systemPassword oracle \
    8. > -redoLogFileSize 2048 \
    9. > -storageType FS \
    10. > -datafileDestination /test/app/oradata \
    11. > -characterSet AL32UTF8 \
    12. > -nationalCharacterSet AL16UTF16 \
    13. > -emConfiguration NONE \
    14. > -automaticMemoryManagement false \
    15. > -totalMemory 4096 \
    16. > -databaseType OLTP
    17. Copying database files
    18. 1% complete
    19. 3% complete
    20. 11% complete
    21. 18% complete
    22. 26% complete
    23. 37% complete
    24. Creating and starting Oracle instance
    25. 40% complete
    26. 45% complete
    27. 50% complete
    28. 55% complete
    29. 56% complete
    30. 60% complete
    31. 62% complete
    32. Completing Database Creation
    33. 66% complete
    34. 70% complete
    35. 73% complete
    36. 85% complete
    37. 96% complete
    38. 100% complete
    39. Look at the log file "/test/app/oracle/cfgtoollogs/dbca/prod/prod.log" for further details.
    40. [oracle@testdb oradata]$
    41. [oracle@testdb oradata]$

    -- log信息

    1. [oracle@testdb oradata]$ more /test/app/oracle/cfgtoollogs/dbca/prod/prod.log
    2. Copying database files
    3. File "/etc/oratab" is not accessible.
    4. DBCA_PROGRESS : 1%
    5. DBCA_PROGRESS : 3%
    6. DBCA_PROGRESS : 11%
    7. DBCA_PROGRESS : 18%
    8. DBCA_PROGRESS : 26%
    9. DBCA_PROGRESS : 37%
    10. Creating and starting Oracle instance
    11. DBCA_PROGRESS : 40%
    12. DBCA_PROGRESS : 45%
    13. DBCA_PROGRESS : 50%
    14. DBCA_PROGRESS : 55%
    15. DBCA_PROGRESS : 56%
    16. DBCA_PROGRESS : 60%
    17. DBCA_PROGRESS : 62%
    18. Completing Database Creation
    19. DBCA_PROGRESS : 66%
    20. DBCA_PROGRESS : 70%
    21. DBCA_PROGRESS : 73%
    22. DBCA_PROGRESS : 85%
    23. DBCA_PROGRESS : 96%
    24. DBCA_PROGRESS : 100%
    25. Database creation complete. For details check the logfiles at:
    26. /test/app/oracle/cfgtoollogs/dbca/prod.
    27. Database Information:
    28. Global Database Name:prod
    29. System Identifier(SID):prod
    30. [oracle@testdb oradata]$

    这个很快,主要慢的地方是配置响应文件。

    END

  • 相关阅读:
    C++11重写muduo网络库2—Cmake,nocopyable,logger,Timestamp,InetAddress
    Windows 11 设置 wsl-ubuntu 使用桥接网络
    黑豹程序员-架构师学习路线图-百科:HTML-网页三剑客
    e.target 和 this 的区别以及键盘事件的应用
    PostCSS概述
    高数 | 【重积分】线面积分880例题
    yield代码解释
    cppcheck的安装及基本使用
    要闻 | 人大金仓重磅亮相2022南京软博会
    Socks5代理与IP代理:网络安全与爬虫中的应用
  • 原文地址:https://blog.csdn.net/xxzhaobb/article/details/125441791