Habilitar X11 Forwarding para a instalação em modo gráfico do banco de dados é em alguns casos não permitido em alguns clientes, sejam por questões de segurança ou por qualquer outra razão do cliente. Com isso, como proceder com a instalação do binário do banco de dados sem o modo gráfico (sem usar a interface GUI)?
Para situações como essa, existe o modo de instalação em silent mode e este será o tema abordado no post de hoje. Sendo assim, segue o passo-a-passo:
- Primeiro passo é criar o response file que será utilizado como o arquivo de configuração para a instalação . Neste exemplo demos o nome de 12cR2.rsp.
Como afirma o próprio fabricante, o arquivo pode ser encontrado no diretório response da media de instalação (ou no My Oracle Support) e nele será definido informações como ORACLE_HOME, grupo de instalção e outras definições importantes que o DBA achar apropriado. - Após a descompatação da média basta-se executar o comando “./runInstaller -ignoreSysPrereqs -ignorePrereq -waitforcompletion -showProgress -silent -responseFile” informando o caminho do response file: (Lembrando que em um momento será requisitado para executar o script root.sh com o usuário root em outro terminal).
$ ./runInstaller -ignoreSysPrereqs -ignorePrereq -waitforcompletion -showProgress -silent -responseFile /applications/oracle/stage/database/12cR2.rsp ******************************************************************************** Your platform requires the root user to perform certain pre-installation OS preparation. The root user should run the shell script 'rootpre.sh' before you proceed with Oracle installation. rootpre.sh can be found at the top level of the CD or the stage area. Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle installation. Answer 'n' to abort installation and then ask root to run 'rootpre.sh'. ******************************************************************************** Has 'rootpre.sh' been run by root? [y/n] (n) y Starting Oracle Universal Installer... Checking Temp space: must be greater than 513 MB. Actual 2408 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-09-14_02-00-44PM. Please wait ...You can find the log of this install session at: /applications/oracle/base/oraInventory/logs/installActions2017-09-14_02-00-44PM.log Prepare in progress. .................................................. 8% Done. Prepare successful. Copy files in progress. .................................................. 14% Done. .................................................. 20% Done. .................................................. 26% Done. .................................................. 31% Done. .................................................. 36% Done. .................................................. 41% Done. .................................................. 46% Done. .................................................. 51% Done. .................................................. 56% Done. .................................................. 61% Done. .................................................. 66% Done. .................................................. 71% Done. .................................................. 76% Done. ........................................ Copy files successful. Link binaries in progress. .................................................. 81% Done. Link binaries successful. Setup files in progress. .............................. Setup files successful. Setup Inventory in progress. Setup Inventory successful. Finish Setup successful. The installation of Oracle Database 12c was successful. Please check '/applications/oracle/base/oraInventory/logs/silentInstall2017-09-14_02-00-44PM.log' for more details. Setup Oracle Base in progress. Setup Oracle Base successful. .................................................. 95% Done. As a root user, execute the following script(s): 1. /applications/oracle/product/12.2.0.1/root.sh .................................................. 100% Done. Successfully Setup Software. $ exit 10:root@techatabasketserver:/applications/oracle # su - root [YOU HAVE NEW MAIL] C10:root@techatabasketserver:/applications/oracle # 10:root@techatabasketserver:/applications/oracle # cd /applications/oracle/product/12.2.0.1/ 10:root@techatabasketserver:/applications/oracle/product/12.2.0.1 # ./root.sh Check /applications/oracle/product/12.2.0.1/install/root_techatabasketserver_2017-09-14_14-36-42.log for the output of root script 10:root@techatabasketserver:/applications/oracle/product/12.2.0.1 # cat /applications/oracle/product/12.2.0.1/install/root_techatabasketserver_2017-09-14_14-36-42.log Performing root user operation. The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /applications/oracle/product/12.2.0.1 Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root script. Now product-specific root actions will be performed. Oracle Trace File Analyzer (TFA) is available at : /applications/oracle/product/12.2.0.1/suptools/tfa/release/tfa_home/bin/tfactl 10:root@techatabasketserver:/applications/oracle/product/12.2.0.1 #
Hi! I am Bruno, a Brazilian born and bred, and I am also a naturalized Swedish citizen. I am a former Oracle ACE and, to keep up with academic research, I am a Computer Scientist with an MSc in Data Science and another MSc in Software Engineering. I have over ten years of experience working with companies such as IBM, Epico Tech, and Playtech across three different countries (Brazil, Hungary, and Sweden), and I have joined projects remotely in many others. I am super excited to share my interests in Databases, Cybersecurity, Cloud, Data Science, Data Engineering, Big Data, AI, Programming, Software Engineering, and data in general.
(Continue reading)