powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Oracle [игнор отключен] [закрыт для гостей] / Oracle XE и Ubuntu 14.04
17 сообщений из 17, страница 1 из 1
Oracle XE и Ubuntu 14.04
    #39374487
Саабразим Аль-каши Бухани
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Здравствуйте.
Заранее извините за нубский вопрос.
Устанавливаю оракл по этому мануалу, после строки
sudo /etc/init.d/oracle-xe configure
ввожу порт, пароль, вижу надпись
Configuring database...
и смотрю на нее уже часа 3. При этом проц занят на 100% (виртуалка с 1 ядром).
Это нормально?
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39374570
Саабразим Аль-каши Бухани
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
В общем, пристрелил. Сделал новую виртуалку, повторил процесс с тем же результатом. Попробую Debian.
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39374610
стадия configure обычно проходит не более чем за несколько минут. Но это на работающих операционках
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39374701
veep
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Саабразим Аль-каши БуханиЗдравствуйте.
Заранее извините за нубский вопрос.
Устанавливаю оракл по этому мануалу, после строки
sudo /etc/init.d/oracle-xe configure
ввожу порт, пароль, вижу надпись
Configuring database...
и смотрю на нее уже часа 3. При этом проц занят на 100% (виртуалка с 1 ядром).
Это нормально?

Убунту не совместима с Ораклом. Я как то пытался поставить на нее - у меня вообще KERNEL PANIC выкатился.
Скачай бесплатную Oracle Linux и будет счастье.
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39375247
Саабразим Аль-каши Бухани
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Не могу скачай - Your access to the Oracle Software Delivery Cloud has been temporarily delayed while we review your account in compliance with applicable export laws. :)
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39375511
SQL*Plus
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Саабразим Аль-каши БуханиНе могу скачай - Your access to the Oracle Software Delivery Cloud has been temporarily delayed while we review your account in compliance with applicable export laws. :)Подождите.
И попробуйте еще раз.
Если вы не в Северной Корее или в каком-то другом подобном месте,
тогда вам дадут возможность скачать дистрибутив.
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39376013
Фотография Алексей Выхрыстюк
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Нормально работает на Ubuntu.

A while ago I tried to install Oracle 11g R2 Express Edition on a 64-bit Ubuntu machine. This proved to be not as easy as you would expect. There are many blogs and articles about this subject and I tried a number of them. Unfortunately neither of the instructions seemed to work completely on my machine. With the combined information from the authors, I finally got it to work and I’ll gladly share my recipe in this blog. I have also included the installation steps for SQL Developer en Java (which is needed to install SQL Developer) in this blog. The installation was performed on a Ubuntu 12.04 VM with the following software.

* Oracle Java 1.7.0_51
* Oracle XE 11.2.0 ( http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html)
* SQL Developer 4.0.0.13.80 ( http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html)
Installing Java

We start with installing Java on the machine. My personal preference is to use Oracle Java JDK. Installing this JDK could be done easily by performing the following statements.

1 sudo add-apt-repository ppa:webupd8team/java
2 sudo apt-get update
3 sudo apt-get install oracle-java7-installer
The screen in figure 1 will appear in the terminal, hit enter to proceed. After this, the screen in figure 2 will be shown. Navigate to <Yes> using the left arrow on your keyboard and hit enter. Oracle JDK 7 will be installed.

Figure 1: Binary Code license Figure 2: JDK License Agreement
To validate the Java installation, execute the following command:

1 java -version
This should result in the following (or something similar).

1 java version “1.7.0_51”
2 Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
3 Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
The next next step is to set the JAVA_HOME environment variable. To do this, open the /etc/bash.bashrc file by executing the following statement.

1 sudo gedit /etc/bash.bashrc
Scroll to the bottom of the file and add the following lines.

1 export JAVA_HOME=/usr/lib/jvm/java-7-oracle
2 export PATH=$JAVA_HOME/bin:$PATH
Save the file and close the editor. To load the changes, execute the following statement.

1 source /etc/bash.bashrc
To validate the changes you can execute the following statement.

1 echo $JAVA_HOME
The result of this statement should be the following.

1 /usr/lib/jvm/java-7-oracle
Installing Oracle 11g R2 Express Edition

For the installation of Oracle 11g R2 Express Edition (XE), a couple of additional Linux packages are required. These packages can be installed by executing the following statement.

1 sudo apt-get install alien libaio1 unixodbc
The next step is to download the Oracle 11g R2 Express Edition from the Oracle website. Make sure you select the Linux x64 version from http://www.oracle.com/technetwork/products/express-edition/downloads/index.html. After the download is completed, open the terminal and navigate to the download directory. In my case this can be done by executing the following statement.

1 cd Downloads
The next step step is to unzip the downloaded file. To do this, execute the following command.

1 unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
A new directory (Disk1) is added to the Download directory. Navigate to this directory:

1 cd Disk1
Now we have to convert the Red Hat package (rpm) to a Debian package. This may be done using the alien command. The -d parameter is used to inform alien that a Debian package should be generated. When the -scripts parameter is toggled, alien will try to convert the scripts that are meant to be run when the package is installed and removed.

1 sudo alien --scripts -d oracle-xe-11.2.0-1.0.x86_64.rpm
This step may take a while, while this statement is executing we can do the following steps. Open a new terminal window for these steps.

The Red Hat package, relies on the /sbin/chkconfig file, which is not used in Ubuntu. To successfully install Oracle XE we use a simple trick. Start by creating a custom /sbin/chkconfig file by executing the following statement.

1 sudo gedit /sbin/chkconfig
Copy and paste the following into the editor:

01 #!/bin/bash
02 # Oracle 11gR2 XE installer chkconfig hack for Ubuntu
03 file=/etc/init.d/oracle-xe
04 if [[ ! `tail -n1 $file | grep INIT` ]]; then
05 echo >> $file
06 echo '### BEGIN INIT INFO' >> $file
07 echo '# Provides: OracleXE' >> $file
08 echo '# Required-Start: $remote_fs $syslog' >> $file
09 echo '# Required-Stop: $remote_fs $syslog' >> $file
10 echo '# Default-Start: 2 3 4 5' >> $file
11 echo '# Default-Stop: 0 1 6' >> $file
12 echo '# Short-Description: Oracle 11g Express Edition' >> $file
13 echo '### END INIT INFO' >> $file
14 fi
15 update-rc.d oracle-xe defaults 80 01
16 #EOF
Save the file and close the editor. Now we have to provide the file with the appropriate execution privileges.

1 sudo chmod 755 /sbin/chkconfig
After this, we have to create the file /etc/sysctl.d/60-oracle.conf to set the additional kernel parameters. Open the file by executing the following statement.

1 sudo gedit /etc/sysctl.d/60-oracle.conf
Copy and paste the following into the file. Kernel.shmmax is the maximum possible value of physical RAM in bytes. 536870912 / 1024 /1024 = 512 MB.

1 # Oracle 11g XE kernel parameters
2 fs.file-max=6815744
3 net.ipv4.ip_local_port_range=9000 65000
4 kernel.sem=250 32000 100 128
5 kernel.shmmax=536870912
Save the file. The changes in this file may be verified by executing:

1 sudo cat /etc/sysctl.d/60-oracle.conf
Load the kernel parameters:

1 sudo service procps start
The changes may be verified again by executing:

1 sudo sysctl -q fs.file-max
This method should return the following:

1 fs.file-max = 6815744
After this, execute the following statements to make some more required changes:

1 sudo ln -s /usr/bin/awk /bin/awk
2 mkdir /var/lock/subsys
3 touch /var/lock/subsys/listener
Close the second terminal window and return to the first terminal window. The rpm package should be converted and a new file called oracle-xe-11.2.0-2_amd64.deb have been generated. To run this file, execute the following command:

1 sudo dpkg --install oracle-xe_11.2.0-2_amd64.deb
Execute the following to avoid getting a ORA-00845: MEMORY_TARGET error. Note: replace “size=4096m” with the size of your (virtual) machine’s RAM in MBs.

1 sudo rm -rf /dev/shm
2 sudo mkdir /dev/shm
3 sudo mount -t tmpfs shmfs -o size=4096m /dev/shm
Create the file /etc/rc2.d/S01shm_load.

1 sudo gedit /etc/rc2.d/S01shm_load
Copy and paste the following in the file. Note: replace “size=4096m” with the size of your machine’s RAM in MBs.

01 #!/bin/sh
02 case "$1" in
03 start) mkdir /var/lock/subsys 2>/dev/null
04 touch /var/lock/subsys/listener
05 rm /dev/shm 2>/dev/null
06 mkdir /dev/shm 2>/dev/null
07 mount -t tmpfs shmfs -o size=4096m /dev/shm ;;
08 *) echo error
09 exit 1 ;;
10 esac
Save the file, close the editor and provide the appropriate execution privileges.

1 sudo chmod 755 /etc/rc2.d/S01shm_load
Configuring Oracle 11g R2 Express Edition

If you have successfully installed to Oracle 11g R2 Express Edition server, it’s time to configure the server. To start the configuration of the server, execute the following command and follow the “wizard” in the terminal. Default values are shown between brackets for each question.

1 sudo /etc/init.d/oracle-xe configure
Now it is time to set-up some environmental variables. Open the /etc/bash.bashrc file by executing the following statement:

1 sudo gedit /etc/bash.bashrc
Scroll to the bottom of the file and add the following lines.

1 export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
2 export ORACLE_SID=XE
3 export NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
4 export ORACLE_BASE=/u01/app/oracle
5 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
6 export PATH=$ORACLE_HOME/bin:$PATH
Save the file and close the editor. To load the changes, execute the following statement:

1 source /etc/bash.bashrc
To validate the changes you can execute the following statement.

1 echo $ORACLE_HOME
This statement should result in the following output.

1 /u01/app/oracle/product/11.2.0/xe
After this step it is recommended to reboot the machine. After the reboot is completed, you should be able to start the Oracle server using the following command:

1 sudo service oracle-xe start
A file named oraclexe-gettingstarted.desktop is placed on your desktop. To make this file executable, navigate to you desktop.

1 cd ~/Desktop
To make the file executable, execute the following statement.

1 sudo chmod a+x oraclexe-gettingstarted.desktop
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39376018
Фотография Алексей Выхрыстюк
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Если вы используете виртуалку - тогда лучше используйте docker
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39376020
Фотография Алексей Выхрыстюк
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39376021
Фотография Алексей Выхрыстюк
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39377897
veep
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Алексей ВыхрыстюкНормально работает на Ubuntu.

Не понимаю зачем пытатся установить Оракл на убунту если он там фактически unsupported.
Есть нормальные,адекватные, проверенные,рабочие варианты

Или это жажда поиска гемороя?
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39378594
Фотография Алексей Выхрыстюк
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
veep,

Бывает другое ПО или оборудование которое не работает на rpm дистрибутивах.
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39378690
Бьютифер
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
veepАлексей ВыхрыстюкНормально работает на Ubuntu.

Не понимаю зачем пытатся установить Оракл на убунту если он там фактически unsupported.
Есть нормальные,адекватные, проверенные,рабочие варианты

Или это жажда поиска гемороя?установить может и можно (ubuntu, centos, freebsd), но что будет в продуктиве?
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39378962
пробегал
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Бьютиферveepпропущено...


Не понимаю зачем пытатся установить Оракл на убунту если он там фактически unsupported.
Есть нормальные,адекватные, проверенные,рабочие варианты

Или это жажда поиска гемороя?установить может и можно (ubuntu, centos, freebsd), но что будет в продуктиве?

В продуктиве, говорошь? XE говоришь? Да ты юморист, братец, как я вижу.

У меня, как любителя тру опенсорца Oracle XE 11g на Debian стоит - тренируюсь я на нем APEX приложения создавать, которые потом переношу "в продакшн" на Oracle DB на IBM AIX.
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39378966
afx2017
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
пробегалБьютиферпропущено...
установить может и можно (ubuntu, centos, freebsd), но что будет в продуктиве?

В продуктиве, говорошь? XE говоришь? Да ты юморист, братец, как я вижу.

У меня, как любителя тру опенсорца Oracle XE 11g на Debian стоит - тренируюсь я на нем APEX приложения создавать, которые потом переношу "в продакшн" на Oracle DB на IBM AIX.

У тебя продакшн и девелопмента среды отличаются по конфигурациям (включая is). Это ненормальная ситуация. И не надо говорить в духе 10 лет без сбоя и т.д. И т.п.
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39378976
пробегал
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
afx2017пробегалпропущено...


В продуктиве, говорошь? XE говоришь? Да ты юморист, братец, как я вижу.

У меня, как любителя тру опенсорца Oracle XE 11g на Debian стоит - тренируюсь я на нем APEX приложения создавать, которые потом переношу "в продакшн" на Oracle DB на IBM AIX.

У тебя продакшн и девелопмента среды отличаются по конфигурациям (включая is). Это ненормальная ситуация. И не надо говорить в духе 10 лет без сбоя и т.д. И т.п.ненормально, это когда - Oracle DB XE в продакшн, остальное все нормально, надо только уметь готовить. Эх, братец, если бы ты был механиком ты бы знал про электрогидродинамическую аналогию и как с помощью абсолютно другого явления моделируются гидродинамические процессы, которые иначе невозможно бы было смоделировать. А ты тут про "большую разницу" Oracle DB XE и Oracle DB Ennerprise, особенно в свете APEX.
...
Рейтинг: 0 / 0
Oracle XE и Ubuntu 14.04
    #39378994
afx2017
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
пробегалafx2017пропущено...


У тебя продакшн и девелопмента среды отличаются по конфигурациям (включая is). Это ненормальная ситуация. И не надо говорить в духе 10 лет без сбоя и т.д. И т.п.ненормально, это когда - Oracle DB XE в продакшн, остальное все нормально, надо только уметь готовить. Эх, братец, если бы ты был механиком ты бы знал про электрогидродинамическую аналогию и как с помощью абсолютно другого явления моделируются гидродинамические процессы, которые иначе невозможно бы было смоделировать. А ты тут про "большую разницу" Oracle DB XE и Oracle DB Ennerprise, особенно в свете APEX.
Я не про разницу XE и EE в свете APEX. XE вполне может жить в продакшне при некоторых условиях. Я против разницы в полной конфигурации. OS->Oracle edition-> версия и настройки apex. В принципе в крайнем случае (допустим из-за бюджета) могут быть допущены расхождения в конфигурации. Но риски должны быть учтены, Backout план иметь место и отрепетирован.

Изначальная тема топика - использование ubuntu в качестве os для оракла. Это неприемлемо ни для девелопмента ни для продакшна. Риски слишком высоки. Ну а в целом попытки установить что либо на несертифицированный софт это как doom на принтер ставить. Занятно,но бесполезно.
...
Рейтинг: 0 / 0
17 сообщений из 17, страница 1 из 1
Форумы / Oracle [игнор отключен] [закрыт для гостей] / Oracle XE и Ubuntu 14.04
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]