Показаны сообщения с ярлыком oracle. Показать все сообщения
Показаны сообщения с ярлыком oracle. Показать все сообщения

среда, 29 октября 2014 г.

Oracle + Linux + Time Zone

Основной симптом: не работает web-интерфейс базы данных Oracle (Enterprise Manager).
Копания в многочисленных и глубоко зарытых лог-файлах наводят на мысль об отказе какого-то агента. Разборки с агентом приводят к проблемам с часовым поясом.
И тут начинается просто магия... (буду благодарен любому, кто доходчиво объяснит всё с научной точки зрения!)

Обновление файлов базы временных зон в Linux (/usr/share/timezone) и создание соответствующей ссылки в /etc/localtime помогает настроить правильную синхронизацию времени, но не решает проблемы с запуском агента. Почему - я так и не смог разобраться.

Решил проблему определением переменной окружения TZ для пользователя oracle, от имени которого запускается база данных:

В файл ".bash_profile" в домашней папке пользователя oracle добавляем строку (для меня - Минск - это временная зона GMT+3):
TZ='Etc/GMT+3'; export TZ
 После этого логинимся в систему под пользователем oracle и выполняем команду:
# ./emctl resetTZ agent
Если выполняется успешно, то пересобираем репозиторий Enterprise Manager:
# ./emca -config dbcontrol db -repos recreate

вторник, 17 апреля 2012 г.

Creating a new Oracle 11g R2 Database on CentOS 6.2

Once you installed an Oracle 11g R2 Database Server on CentOS 6.2 the next step is to create a new empty and fresh database for your own use. You must have a running listener before creating a database.

I assume you are using a Linux client (CentOS, Ubuntu, ...) with a desktop environment installed  (Gnome, KDE, ...).

The steps are straightforward and I gonna choose a simple deployment configuration.

Configuring a network listener for Oracle on CentOS 6.2

You require to configure and run a network listener before creating a database with the Oracle's Database Configuration Assistant (dbca) tool. This is a how to configure such a listener.

I assume you already install a Oracle 11g Database Server on CentOS 6.2 with SSH X11 Forwarding and you are using a Linux client with a Desktop Environment like Gnome or KDE.

Автоматический запуск Oracle 11g R2 Database Server on CentOS 6.2

Честно "украдено" с этого блога, но переведено и ПРОВЕРЕННО лично!
This is a how to autostart the Oracle 11g R2 Database Server on CentOS 6.2. I assume you have done the following:

  1. Install an Oracle-ready CentOS 6.2 Linux box
  2. Install the Oracle 11g R2 Database Server on the CentOS 6.2 Linux box
  3. Configure a network listener for Oracle 11g R2 Database Server on the CentOS 6.2 Linux box
  4. Create a fresh Oracle 11g R2 database on the CentOS 6.2 Linux box 

So, it's time to run the three installed components as Linux daemons. These components are: listener, database and enterprise manager. The main programs concerning the start and stop tasks for these components can be found at $ORACLE_HOME/bin, and they are:

Установка Oracle 11g R2 на Linux (CentOS 6.2)

This article describes the installation of Oracle Database 11g Release 2 (11.2) 64-bit on Fedora 16 (F16) 64-bit. The article is based on a server installation with a minimum of 2G swap and secure Linux disabled. An example of this type of Linux installation can be seen here.