Dear All,
In this post i am going share how to Install oracle AI database Free in Silent Mode.
Performing a Silent Installation
You can install Oracle AI Database Free using silent mode. You can use this mode to perform an embedded install of Oracle AI Database Free with your application, or unattended operation.
To perform a silent installation, you must enter a password for the administrative accounts as a parameter to the script, or specify it in the configuration file.
Create a wrapper shell script to perform the silent installation. The script should contain commands similar to the following:
For Oracle Linux 8
#!/bin/bash yum -y install /downloads/oracle-ai-database-free-26ai-23.26.0-1.el8.x86_64.rpm > /free_logs/FREEsilentinstall.log 2>&1 /etc/init.d/oracle-free-26ai configure >> /free_logs/FREEsilentinstall.log 2>&1For Oracle Linux 9
#!/bin/bash yum -y install /downloads/oracle-ai-database-free-26ai-23.26.0-1.el9.x86_64.rpm > /free_logs/FREEsilentinstall.log 2>&1 /etc/init.d/oracle-free-26ai configure >> /free_logs/FREEsilentinstall.log 2>&1For Oracle Linux 8 on Linux for Arm (aarch64)
#!/bin/bash yum -y install /downloads/oracle-ai-database-free-26ai-23.26.0-1.el8.aarch64.rpm > /free_logs/FREEsilentinstall.log 2>&1 /etc/init.d/oracle-free-26ai configure >> /free_logs/FREEsilentinstall.log 2>&1Alternatively, you can enter the password in the script, such as:
(echo "password"; echo "password";) | /etc/init.d/oracle-free-26ai configure >> /free_logs/FREEsilentinstall.log 2>&1Replace password with a password that is secure. The password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character, and 1 digit [0-9].
Make the wrapper script executable.
chmod +x myscript.sh- Run the script as
rootusingsudo.sudo ./myscript.shThe Oracle AI Database Free Oracle home is
/opt/oracle/product/26ai/dbhomeFREEFor details of the installation, review the
/free_logs/FREEsilentinstall.logfile.
The /etc/sysconfig/oracle-free-26ai.conf configuration file sets the following:
LISTENER_PORT: A valid listener numeric port value for the database listener. Do not specify any value for automatic port assignment.CHARSET: Character set of the database. This is set toAL32UTF8.DBFILE_DESTDatabase file directory. By default, the database files are stored in the Oracle base/opt/oracle/oradatasubdirectory. You can also create your own database file directory. However, the permissions for this file path should be owned by theoracleuser.SKIP_VALIDATIONS: Skip validation for memory and disk space. Default isfalse.CONFIGURE_TDE: SetCONFIGURE_TDE=trueto configure Transparent Data Encryption (TDE). The default value isfalse.ENCRYPT_TABLESPACES: Leave this value empty for user tablespaces. Set this value toALLfor encrypting all the tablespaces. For specific tablespaces, useSYSTEM:true,SYSAUX:false. Default value is empty.
The database creation logs are located under Oracle base in the /opt/oracle/cfgtoollogs/dbca/ subdirectory.
Setting Oracle AI Database Free Environment Variables
After you install and configure Oracle AI Database Free, set the environment before you use Oracle AI Database Free.
Use the oraenv and coraenv scripts to set your environment variables.
For example, to set your environment variables in Bourne, Bash, or Korn shell without being prompted by the script, log in as the Oracle user and run the following commands:
export ORACLE_SID=FREE export ORAENV_ASK=NO . /opt/oracle/product/26ai/dbhomeFree/bin/oraenv
These commands display an output similar to the following:
ORACLE_HOME = [] ? /opt/oracle/product/26ai/dbhomeFree
The Oracle base has been set to /opt/oraclesetenv ORACLE_SID FREE setenv ORACLEENV_ASK NO source /opt/oracle/product/26ai/dbhomeFree
No comments:
Post a Comment
No one has ever become poor by giving