How to connect to Oracle DB using Delphi FireDAC.
Delphi uses Linux(64). and Linux is ubuntu.
I used "Oracle SE One" of AWS(RDS).
[Instant Client download]
Download 12.2 Instant Client.
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
I downloaded instantclient-basic-linux.x64-12.2.0.1.0.zip
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html#ic_x64_inst
Unpack it after placing it on Linux.
#
unzip instantclient-basic-linux.x64-12.2.0.1.0.zip
Create a directory and place the decompressed file.
instantclient_12_2 directory is made.
#
mkdir /opt/oracle
mv instantclient_12_2 /opt/oracle/
Move this to the directory created.
Create a link.
#
ln -s libclntsh.so.12.1 libclntsh.so
ln -s libocci.so.12.1 libocci.so
Setting environment variables.
#
export LD_LIBRARY_PATH=/opt/oracle/instantclient_12_2:$LD_LIBRARY_PATH
export PATH=/opt/oracle/instantclient_12_2:$PATH
Da ich ja schon gestern auf die Möglichkeiten der (Ubuntu) Bash auf Windows 10 Creators Update und Delphi eingegangen bin, habe ich mal einen kleinen Performance Test gegenüber einer normalen Ubuntu-Installation gemacht.
Dazu habe ich ein einfaches Quicksort benutzt:
program QuickSort;
{$APPTYPE CONSOLE}
uses
SysUtils,
System.Diagnostics,
System.Timespan;
const
maxLen = 100000000;
type
stip = array [1 .. maxLen] of integer;
var
i: integer;
s: stip;
Stopwatc...
Last week, in the Part 1 of this blog post we have installed Ubuntu 16.04 LTS Server-edition into a VMWare Fusion virtual machine running on Mac. Now we are going to complete the configuration of the Ubuntu server, install all the prerequisites for deploying Delphi application and deploy "Hello World" Delphi app using the latest Delphi 10.2 Tokyo beta, as the product has not yet been released. This means that anything that I'm describing here might change in the final version of Delphi...
Надеюсь, пока мы готовимся выпустить новый релиз RAD Studio с поддержкой Linux, вы уже готовите соответствующую инфраструктуру!
К рассказанному в прошлом посте осталось добавить два важных введения:
1 - как установить "Platform Assist" server, который нужен для загрузки и отладки из IDE RAD Studio программ на Linux сервер,
2 - как установить на сервер под управлением Linux наиболее распространенные СУБД, особенно те, которые будут использоваться в наших демонстрационных примерах.
Пункт 1 из этого списка прекрасно описан в блоге "Configure Delphi and RedHat or Ubuntu for Linux development" ("Deploying the PAServer”) на английском языке; этого вполне достаточно для тех, кому это описание требуется срочно. Я опубликую соответствующее краткое руководство на русском чуть позже, а сейчас необходимо привести инструкции по второму вопросу, так как на практике встретились некоторые особенности, связанные с Linux
К этому моменту у нас уже есть Ubuntu Linux 64-бит сервер, установленный в виртуальную машину. Теперь нужно установить и настроить на этом сервере InterBase XE7 Developer Server и нужный для демонстрации сервер MongoDB Community Edition.
Напомню, что InterBase - cверхбыстрая, масштабируемая и встраиваемая SQL-СУБД с возможностями защиты данных коммерческого уровня, аварийного восстановления и синхронизации изменений - доступна в нескольких редакциях. Загрузить бесплатную редакцию сервера для разработчиков можно на сайте Embarcadero. В 64-битный Linux имеет смысл поставить 64-битный сервер InterBase.
Вы уже готовы?
Если нет, то потратьте пару минут на этот пост, чтобы проверить степень своей готовности. Linux, как новая платформа в RAD Studio, был включен в план развития достаточно давно и с нетерпением ожидается многими отечественными пользователями. И вот, наконец, мы приближаемся к цели. Пользователи RAD Studio 10.1 Berlin с действующей подпиской получат право и возможность поучаствовать в программе раннего ознакомления на практике с поддержкой в RAD Studio этой дополнительной плат...
"Distro heaven" is the main theme of the March 2008 Linux Format issue. Ubuntu is currently probably the most popular Linux distribution and also basis of myriads of derivatives, like Kubuntu, Edubuntu, Linux Mint, Ubuntu Studio, Mythbuntu, Fluxbuntu and thousands of others.
This made me thinking if it would make sense to create "CodeGearBuntu"? What should go into Linux CodeGear distro? Maybe there should be more "codegearbuntus" like "CodeGearBuntu3rdRailDesktop" with Rails 2.0, "CodeGearB...
Arguably the most natural platform for deploying Delphi for PHP applications is Linux. There are countless Linux distros available in the Internet. Which one to choose? I've been playing recently with Ubuntu, and I like it more and more. Ubuntu comes in two basic editions: desktop and server. There are different ubuntu desktop editions depending of the desktop environment used: ubuntu desktop (GNOME), kubuntu (KDE), xubuntu (Xfce) and edubuntu (customized for educational use). However for deploy...