# Kao root: Install Java 11 #Kao user oracle unzip ords_v.zip -d /u01/app/oracle/ords #Kopirati jre 17 u folder /u01/app/oracle/ords/jre # Instalirati ORDS /u01/app/oracle/ords/bin/ords --config /u01/app/oracle/ords/config/ install Enter a number to select the database connection type to use Choose [1] Enter the database host name [localhost]: Enter the database listen port [1521]: Enter the database service name [orcl]: pdb1 Enter the administrator username: sys Enter the database password for SYS AS SYSDBA: ****** Enter a number to update the value or select option A to Accept and Continue Choose [3]: Database password for ORDS runtime user (ORDS_PUBLIC_USER) [S] Specify your own password Enter the database password for ORDS_PUBLIC_USER: ords [5] Configure and start ORDS in Standalone Mode: Yes [9] APEX static resources location: Enter the APEX static resources location: c:\ords\images # Prekinuti ords (Ctrl-C ili kill -9) # # Instalirati ORDS kad ima više instanci, npr za Valamar mdkir -p /u01/app/oracle/ords/config/ir mdkir -p /u01/app/oracle/ords/config/vr1 mdkir -p /u01/app/oracle/ords/config/vr2 /u01/app/oracle/ords/bin/ords --config /u01/app/oracle/ords/config/ir/ install /u01/app/oracle/ords/bin/ords --config /u01/app/oracle/ords/config/vr1/ install /u01/app/oracle/ords/bin/ords --config /u01/app/oracle/ords/config/vr2/ install Po potrebi izmijeniti konfiguraciju (/global/settings.xml, databases/default/pool.xml,...) , dodati usere i ostalo # Kao root ln -s /u01/app/oracle/ords/bin/ords /usr/local/bin/ords # Ako će biti samo jedna instanca # ------------------------------------------------------------------- cp /u01/app/oracle/ords/linux-support/ords.conf /etc/ords.conf cp /u01/app/oracle/ords/linux-support/ords.sh /etc/init.d/ords cp /u01/app/oracle/ords/linux-support/ords.service /etc/systemd/system/ords.service chown oracle.oracle /etc/ords.conf chmod 750 /etc/ords.conf chown root.root /etc/init.d/ords.sh chmod 750 /etc/init.d/ords.sh chown root.root /etc/systemd/system/ords.service chmod 644 /etc/systemd/system/ords.service systemctl enable ords systemctl start ords # ------------------------------------------------------------------- # Ako ima više instanci, npr za Valamar # ------------------------------------------------------------------- cp /u01/app/oracle/ords/linux-support/ords.conf /etc/ords_ir.conf cp /u01/app/oracle/ords/linux-support/ords.conf /etc/ords_vr1.conf cp /u01/app/oracle/ords/linux-support/ords.conf /etc/ords_vr2.conf cp /u01/app/oracle/ords/linux-support/ords.sh /etc/init.d/ords_ir cp /u01/app/oracle/ords/linux-support/ords.conf /etc/init.d/ordsx_vr1 cp /u01/app/oracle/ords/linux-support/ords.conf /etc/init.d/ords_vr2 cp /u01/app/oracle/ords/linux-support/ords.service /etc/systemd/system/ords_ir.service cp /u01/app/oracle/ords/linux-support/ords.service /etc/systemd/system/ords_vr1.service cp /u01/app/oracle/ords/linux-support/ords.service /etc/systemd/system/ords_vr2.service joe /etc/ords_ir[vr1 | vr2].conf ORDS_BASE=/u01/app/oracle/ords # Only if installed by zip file. ORDS_CONFIG=/u01/app/oracle/ords/config/ir [vr1 | vr2] # joe /etc/init.d/ords_ir[vr1 | vr2].sh ords_configuration_file_name='ords_ir[vr1 | vr2].conf' joe /etc/systemd/system/ords_ir[vr1 | vr2].service PIDFile=/var/run/ords_ir[vr1 | vr2.pid ExecStart=/usr/bin/bash -c '/etc/init.d/ords_ir[vr1 | vr2 start' ExecReload=/usr/bin/bash -c '/etc/init.d/ords_ir[vr1 | vr2 restart' ExecStop=/usr/bin/bash -c '/etc/init.d/ords_ir[vr1 | vr2 stop' chown oracle.oracle /etc/ords_ir.conf chmod 750 /etc/ords_ir.conf chown root.root /etc/init.d/ords_ir.sh chmod 750 /etc/init.d/ords_ir.sh chown root.root /etc/systemd/system/ords_ir.service chmod 644 /etc/systemd/system/ords_ir.service systemctl enable ords_ir systemctl start ords_ir # . . . Isto tako za vr1 i vr2 # -------------------------------------------------------------------