Необходимые знания по работе в ОС Linux RedHat 6.0
· Установка и настройка Linux
· Структура каталогов Unix
· Структура каталогов Oracle
Установка и настройка Linux
A. Инсталляция Linux.
1. Приглашение к инсталляции : OK .
2. Выбор языка : рекомендуется American .
3. Тип клавиатуры – us .
4. С какого устройства будет произведена установка: Local CDROM или Hard Drive .
5. Просьба установить CD-ROM.
6. Вид установки: Инсталляция или Обновление .
7. Класс инсталляции : Сервер .
8. Есть ли SCSI ? Нет .
9. Нужно ли размечать жесткий диск. Если да, то какой утилитой: Druid .
10. С помощью редактора партиций установите, например, следующее разбиение (для диска 4 Гб):
12. Форматировать ? OK .
13. В списке элементов для установки выберите нужные.
14. Укажите путь для протокола по инсталляции.
15. Индикация создаваемых разделов диска. Ждите.
16. Найдена мышь PS/2. Продолжить .
17. Тип мыши ? Стандартная PS /2 . С 3 кнопками .
18. LAN ( не dial-up) ? Да .
19. Найден адаптер 3com3c59x (Vortex). OK .
20. Протокол загрузки: Статический IP -адрес .
21. Настройка TCP / IP (например, IP -адрес: 171.15.190.114 , Маска подсети: 255.255.255.0 , Шлюз по умолчанию: 171.15.190.10 , Первый серв.: 171.15.190.253 ).
22. Настройка сети (Имя домена: pekin . net , Имя компьютера: ber _ pl , Вторич.серв.: (не надо), Третич.серв.: (не надо)).
23. Настройка часового пояса: Europe / Moscow . Системные часы установить по GMT : (не надо).
24. Сервисы для автостарта: apmb , atd , crond , gpm , inet , keytable , linuxconf , lpd , netfs , network , ntfs , portmap , random , smb , syslog (можно по умолчанию).
25. Настраивать принтер ? No .
26. Пароль администратора (не менее 6 символов).
28. Создать загрузочную дискету ? Нет .
31. Выбрать карту ( например, 2 the Max MAXColor S3 Trio64V+) .
32. Установка монитора: выбрать из списка или Custom .
B. Создание пользователя.
C. Корректировка скрипта, исполняющегося перед входом в shell .
D. Установка переменных памяти (рекомендуется перед инсталляцией Oracle -сервера).
Об ОС Linux RedHat можно подробнее узнать на странице http://www.redhat.com . О настройке Linux перед инсталляцией Oracle -сервера – на страницах ftp://ftp.price.ru/pub/Linux/Oracle и http://jordan.fortwayne.com/oracle/rh60-805.html ( RedHat 6.0. Step-by-step Install notes for Oracle 8.0.5 ).
Структура каталогов Uni x
· /etc — каталог с конфигами.
· /bin — основные системные команды.
· /boot — каталог с ядрами системы, имиджами boot — секторов.
· /dev — каталог с усстройствами (в Unix все устройства обозначаются как файлы).
· /home — каталог с «домашними» каталогами пользователей, в них хранятся индивидуальные пользовательские настройки и файлы.
· /lib — библиотеки и модули ядра.
· /mnt — каталог, куда вы можете монтировать съемные устройства (дискеты или cdrom).
· /proc — системный каталог.
· /root — home каталог для пользовотеля root.
· /sbin — каталог с остальными системными командами.
· /tmp — каталог с временными файлами.
· /var — каталог с log и временными файлами.
· /usr — самый большой из всех каталогов – предназначен, в основном, для хранения всех остальных компонентов системы — оболочки XWindows, исходников ядра, документации и т.д. Именно в этом каталоге рекомендуется установливать программы.
Структура каталогов Oracle
Структура каталогов Oracle в Unix заметно отличается от таковой в MS Windows NT и Novell Netware (рис. 8.1):
· / opt / app / oracle / product /8.0.5/ dbs – расположение конфигурационного файла initorcl . ora и файла паролей orapwdorcl
· / opt / app / oracle / product /8.0.5/ rdbms / admin – расположение скриптов создания Словаря Базы Данных
· / opt / app / oracle / product /8.0.5/ rdbms / trace – расположение трассировоч-ных файлов
· /opt/app/oracle/product/8.0.5/sqlplus/admin – расположение скрипта pupbld.sql
· /opt/app/oracle/product/8.0.5/network/admin – расположение файла описания сервисов tnsnames.ora и файла описания прослушивания listener.ora
· /opt/app/oracle/product/8.0.5/bin – расположение загружаемых файлов
· / opt / app / oracle / admin / TAR / orcl – расположение файлов архивации журналов повтора
· / disk 1/ oradata / orcl – пример каталога для расположения файлов БД, управляющих и журнальных файлов
Каталог / opt для Linux необязателен, он рекомендуется для единообразия со структурой каталогов Oracle в ОС Sun Solaris .
ОС Unix чувствительна к регистру. В именах каталогов Oracle используются маленькие буквы. Также не забывайте регистр символов в созданных Вами ранее файлах.
Рис. 8.1. Структура каталога Oracle в Linux (вид в окне утилиты Far ).
Команды Linux
· Справочная информация по командам и утилитам:
· выход из справочника : q
· Страничный просмотр выводимой информации : more
· Инициализация переменных среды :
· Смена системного времени сервера: date date
(дата вводится в формате MMDDHHMIYY , например: 0425160800 )
· Перезагрузка сервера : shutdown -r
· Работа с пользователями :
· Создание пользователя : adduser
· Смена пользователя (LogOff): su
· Передача прав другому пользователю: chown user file
· Смена пароля пользователя : passwd user
· Работа с директориями :
· Создание директория : mkdir dir
· Переход в директорий : cd dir
· Вывод имени текущего директория : pwd
· Работа с файлами :
· Запуск исполняемого файла: file (имя файла чувствительно к регистру – при неправильном вводе файл не будет найден и не запустится)
· Сделать файл исполняемым (точнее, установка права на чтение, запись и выполнение для владельца-пользователя, для владельца-группы и для остальных пользователей [20]): chmod 777 ./ file
( общий синтаксис : chmod mode file )
· Копирование файла : cp file1 file2
· Редактирование файла: vi (экранный редактор); команды:
· Q! – выход с сохранением
· X! – выход без сохранения
· Графические оболочки для работы с файлами:
· Linux RedHat 6.0 – Kernel Desctop Environment (KDE); Midnight Commander ( команда mc ).
· Для запуска БД (например, после аварийного останова и запуска сервера) рекомендуется сделать следующее:
· Запустите svrmgrl и затем:
· Ведите команду connect internal и дождитесь соединения с Oracle ;
· Введите команду startup force и дождитесь запуска БД;
· Введите команду exit для выхода из svrmgrl ;
· Запустите lsnrctl и затем:
· Ведите команду stop и дождитесь останова процесса прослушивания Oracle ;
· Ведите команду start и дождитесь запуска процесса прослушивания Oracle ;
· Введите команду exit для выхода из lsnrctl .
Рис. 8.2. Midnight Commander – Norton -подобный файловый монитор в Linux (вид в Telnet ).
Источник
Oracle В® Linux 7
Administrator’s Guide
Oracle Legal Notices
Copyright В© 2014, 2020, Oracle and/or its affiliates.
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government end users are «commercial computer software» or «commercial computer software documentation» pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, reproduction, duplication, release, display, disclosure, modification, preparation of derivative works, and/or adaptation of i) Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs), ii) Oracle computer documentation and/or iii) other Oracle data, is subject to the rights and limitations specified in the license contained in the applicable contract. The terms governing the U.S. Government’s use of Oracle cloud services are defined by the applicable contract for such services. No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc, and the AMD logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle.
Oracle Documentation License
This document uses the Web-based Help format from DocBook XML. The following license information applies to this format.
Copyright В© 1999-2007 Norman Walsh
Copyright В© 2003 Jiri Kosek
Copyright В© 2004-2007 Steve Ball
Copyright В© 2005-2008 The DocBook Project
Copyright В© 2011-2012 O’Reilly Media
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the «Software»), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Except as contained in this notice, the names of individuals credited with contribution to this software shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the individuals in question.
Any stylesheet derived from this Software that is publicly distributed will be identified with a different name and the version strings in any derived Software will be changed so that no possibility of confusion between the derived package and this Software will exist.
THE SOFTWARE IS PROVIDED «AS IS», WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NORMAN WALSH OR ANY OTHER CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Web-based Help from DocBook XML
Copyright В© 2008-2012 Kasun Gajasinghe, David Cramer
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Except as contained in this notice, the names of individuals credited with contribution to this software shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the individuals in question.
Any stylesheet derived from this Software that is publicly distributed will be identified with a different name and the version strings in any derived Software will be changed so that no possibility of confusion between the derived package and this Software will exist.
Warranty: THE SOFTWARE IS PROVIDED «AS IS», WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL DAVID CRAMER, KASUN GAJASINGHE, OR ANY OTHER CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Certain search characteristics associated with the DocBook XSL webhelp stylesheets are provided as javascript files generated using Apache Lucene and other fourth party technologies, which are licensed under the Apache License reproduced below.
Источник