Не запускается setup oracle
Сегодня я установил систему WINDOWS на виртуальную машину, чтобы установить сервер oracle; от установки до использования было много проблем, и на их решение потребовалось много времени. Я проверил много информации.
Первый, во время процесса установки, я получил ошибки ORA-00922 и ORA-28000. Это связано с тем, что предыдущая установка пароля была слишком случайной, и пароль не был установлен в соответствии с требованиями Oracle;
Опция ORA-00922 отсутствует или недействительна
Причина ошибки: Как правило, проблема с синтаксисом оператора. Например, неправильное название, неправильные ключевые слова и так далее. Для нестандартного именования обычно используйте двойные кавычки.
Правила именования идентификаторов: (правила установки пароля)
1. Должен начинаться с буквы.
2. Длина не может превышать 30 однобайтовых символов.
4. Два объекта с одинаковым именем не могут быть созданы одним пользователем.
5. Нельзя использовать зарезервированные слова и ключевые слова.
ORA-28000:the account is locked
Это связано с тем, что, когда пароль администратора настраивается спереди, используется пароль, начинающийся с цифры. Oracle, похоже, не поддерживает это. Говорят, что другие недопустимые специальные символы также могут вызывать эту проблему.
То есть начало пароля не может быть числом, только символы правила именования идентификаторов, а пароль должен содержать как минимум прописные буквы, строчные буквы и цифры.
Установите пароль в соответствии с правилами, и ошибки ORA-28000 и ORA-00922 не возникнут при установке экземпляра Oracle.
Я переустановил его прямо тогда, и после проверки есть также решение, которое не переустанавливается.Я не пробовал.
Первый шаг: используйтеPL/SQL, Имя для входа - system, имя базы данных остается без изменений, при выборе типа измените Normal на Sysdba;
Шаг 2: Выберите myjob и просмотрите пользователей;
Шаг 3: Выберите систему, щелкните правой кнопкой мыши и нажмите «Изменить»;
Шаг 4: Измените пароль и снимите галочку «Учетная запись заблокирована»;
Шаг 5: Нажмите «Применить», а затем «Закрыть»;
Шаг 6: Повторно войдите в систему, чтобы пройти проверку;
Второй способ - разблокировать пользователя SCOTT. Этот пользователь является обучающимся пользователем, который поставляется с ORACLE и не может использоваться напрямую. Сначала его необходимо разблокировать;
Первый шаг, введите sqlplus, меню «Пуск» >> все программы >> Oracle-OraDb11g_home1 (имя папки установки oracle) >> разработка приложений
После того, как вы нажмете кнопку в системе, вам будет предложено ввести имя пользователя и пароль. После входа в систему выполните следующую команду:
SQL> alter user scott account unlock;
После завершения решения используйте следующую команду для просмотра:
Вы можете видеть, что учетная запись scott была разблокирована, но статус по-прежнему означает «истек» (срок действия пароля истек).
Дайте ему новый пароль
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 14-DEC-2012 15:51:13
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 14-DEC-2012 13:15:28
Uptime 0 days 2 hr. 35 min. 45 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /database/oracle/product/dbhome/network/admin/listener.ora
Listener Log File /database/oracle/product/dbhome/network/log/listener.log
Listening Endpoints Summary.
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wgods)(PORT=1521)))
Services Summary.
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service.
Service "gsp" has 2 instance(s).
Instance "gsp", status UNKNOWN, has 1 handler(s) for this service.
Instance "gsp", status READY, has 1 handler(s) for this service.
Service "gspXDB" has 1 instance(s).
Instance "gsp", status READY, has 1 handler(s) for this service.
Service "gsp_XPT" has 1 instance(s).
Instance "gsp", status READY, has 1 handler(s) for this service.
The command completed successfully
Третий шаг, проверьте брандмауэр, откройте cmd на клиенте и используйте команду: tnsping ip (server ip)
Утилита TNS Ping для 32-битной Windows: версия 11.2.0.1.0-Production от 14-декабря-2012 15:47:15
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Файл используемых параметров:
E:\app\kerry\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Адаптер EZCONNECT был использован для разрешения псевдонимов
Попробуйте подключиться (DESCRIPTION = (CONNECT_DATA = (SERVICE_NAME =)) (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.150.105) (PORT = 1521)))
TNS-12535: TNS: Превышено время ожидания операции
Была возвращена ошибка, указывающая, что это проблема брандмауэра;
Решение 1. Отключите брандмауэр сервера.Если вы научитесь пользоваться им самостоятельно, брандмауэр не имеет значения и его можно отключить, в противном случае отключать брандмауэр не рекомендуется.
Решение 2: Откройте порт 1521 Oracle и разрешите подключение к порту 1521;
1. Команда подключения порта, telnet, метод использования, IP-порт telnet (пример: 192.168.150.105 1521)
Как правило, при первом использовании этой команды вам будет предложено, что telnet не является внутренней или внешней командой;
1. Войдите в панель управления.
2. Войдите в программу и функцию
3. В открывшемся интерфейсе «Программа или функция» нажмите кнопку «Открыть или закрыть функцию Windows» в верхнем левом углу, как показано на рисунке:
4. В это время появится окно «Функция Windows», выберите в списке пункт «Клиент Telnet» и нажмите кнопку «ОК».
5. Затем в окне «Возможности Windows» отобразится интерфейс «Применение изменений», терпеливо подождите некоторое время, после завершения операции модификации нажмите кнопку «Закрыть».
6. Команда "telnet" работает нормально.
7. Затем используйте telnet ip-порт, чтобы сообщить об ошибке, соединение не работает,
Решение: откройте порт 1521 сервера.
1>. Выберите [Система и безопасность] в информации всплывающей панели управления, а затем выберите [Брандмауэр Windows], как показано на рисунке.
2>. В появившейся информации о брандмауэре выберите слева [Дополнительные настройки], как показано на рисунке.
3>. Во всплывающем окне настроек [Advanced Security Windows Firewall] выберите [Inbound Rules] слева и выберите [New Rule] справа, как показано на рисунке.
4>. Войдите в Мастер создания нового правила для входящих подключений, выберите [Порт], нажмите Далее, как показано на рисунке.
5>. Войдите в мастер нового входящего правила, выберите правило TCP, затем введите номер порта и нажмите кнопку «Далее», как показано на рисунке.
6>. В появившейся далее информации мастера, все выбранные по умолчанию, щелкните Далее, на последнем шаге введите имя и описание, как показано на рисунке.
7>. Чтобы просмотреть информацию об открытых портах, используйте команду netstat -a -n, как показано на рисунке. Проверьте, открыт ли порт Oracle.
8>. Затем используйте IP-порт telnet, чтобы войти в новое окно DOS, не сообщая об ошибке.
В чем может быть проблема при установке Oracle Database 19c (ссылка где скачивал).
- Распаковываю архив и нажимаю на setup.
- После этого дальше пустого окна установки дело не доходит.
- Установку я прерываю закрывая окно установщика.
Проблема может заключаться в пути до установочного файла. Попробуй извлечь в корень установщик, чтобы небыло пробелов и на всякий случай кириллицы
G.7 Troubleshooting Inventory Issues
If you face any of the following situations for Oracle home, then run the opatch lsinventory -detail command to list the contents of the inventory and see section "Recovering from inventory corruption" in the Oracle Universal Installer and OPatch User's Guide for Windows and UNIX for information about fixing the issue.
Oracle home is cloned without completing the inventory steps.
There is bad inventory.
Inventory is not available but it is created when the Oracle Enterprise Manager Agent is installed in a separate Oracle home.
G.8 Troubleshooting Screen Display Issues
If you connect to Oracle database with the screen resolution 640 X 480 or 800 X 600, then the Next button in the GUI is not visible as it hides behind the Taskbar. In order to counter this problem, do one of the following:
Hide the Taskbar.
Move the Oracle Universal Installer screen up.
Set the screen resolution to 1024 X 768 or higher.
F.5.2 Irrecoverable Errors
If you receive an irrecoverable error while a configuration assistant is running:
Remove the failed installation as described in the "Cleaning Up After a Failed Installation" section.
Correct the cause of the irrecoverable error.
Reinstall the Oracle software.
F.6 Cleaning Up After a Failed Installation
If an installation fails, you must remove files that Oracle Universal Installer created during the attempted installation and remove the Oracle home directory. Follow the instructions in Chapter 6, "Removing Oracle Database Software" to run Oracle Universal Installer to deinstall Oracle Database, manually remove the Oracle directory, and remove Oracle from the Registry Editor keys. Later, reinstall the software.
This appendix contains the following information about troubleshooting:
Шаг 2: Запустите службу оракула вручную
После выполнения шага 1 каждый раз перезагружайте компьютер. Если вам нужно использовать базу данных Oracle, вы должны вручную запустить службу Oracle.
Запустите услуги по порядку »OracleServiceORCL“,”OracleOraDb11g_home1TNSListener«Эти две службы должны быть запущены. Метод запуска: щелкните правой кнопкой мыши службу -> запустить, как показано на рисунке ниже
G.10 Continuing Installations or Upgrades After Server Restarts
During an Oracle Grid Infrastructure for a standalone server installation or upgrade, the server might require a restart and you may see an error similar to the following:
The workaround is to perform the following steps:
Restart the computer.
Log in as the Oracle Installation User for the Oracle home, and run the gridconfig.bat script located in the path Grid_home\crs\config .
To complete the installation or upgrade, run the configToolAllCommands script, located in the path ORACLE_HOME \cfgtoollogs\configToolAllCommands .
Эта статья очень полезна, оставайтесь здесь и сохраните ее.
Чтобы учиться, мы часто устанавливаем базу данных Oracle на персональный ПК, что сильно влияет на скорость работы компьютера, особенно скорость запуска компьютера.Если частота использования Oracle не очень высока, мы можем запретить автоматический запуск службы Oracle и реально использовать ее. Затем запустите службу Oracle вручную.
версия Oracle, используемая в этой статье: oracle 11g R2
G.6 Troubleshooting Configuration Assistants
To troubleshoot an installation error that occurs when a configuration assistant is running:
Review the installation log files listed in the "Reviewing the Log of an Installation Session" section.
Review the specific configuration assistant log file located in the ORACLE_BASE \ cfgtoollogs directory. Try to fix the issue that caused the error.
Ensure that there is no space in the path.
If you see the "Fatal Error. Reinstall message", look for the cause of the problem by reviewing the log files. See "Irrecoverable Errors" for more information.
F.2 Encountering Installation Errors
If you encounter an error during installation:
Do not exit Oracle Universal Installer.
If you clicked Next after you entered incorrect information about one of the installation windows, click Back to return to the window and correct the information.
If you encounter an error while Oracle Universal Installer is copying or linking files, see "Reviewing the Log of an Installation Session" for interactive installations or "Silent or Noninteractive Installation Response File Error Handling" for more information.
If you encounter an error while a configuration assistant is running, see the "Troubleshooting Configuration Assistants" section.
If you cannot resolve the problem, remove the failed installation by following the steps listed in the "Cleaning Up After a Failed Installation" section.
G.6.1 Configuration Assistant Failures
Oracle configuration assistant failures are noted at the bottom of the installation window. The configuration assistant interface displays additional information, if available. The configuration assistant execution status is stored in the installActions date_time .log file.
The execution status codes are listed in the following table:
Status | Result Code |
---|---|
Configuration assistant succeeded | 0 |
Configuration assistant failed | 1 |
Configuration assistant canceled | -1 |
F.1 Verifying Requirements
Before you try any of the troubleshooting steps in this appendix, do the following:
Check Chapter 2, "Oracle Database Preinstallation Requirements" to ensure that the system meets the requirements and that you have completed all of the preinstallation tasks.
Read the release notes for the product on your platform before installing it. The release notes are available on the Oracle Database installation media. You can find the latest version of the release notes on the Oracle Technology Network Web site:
G.1 Verifying Requirements
Before you try any of the troubleshooting steps in this appendix, do the following:
Check Chapter 3, "Oracle Database Preinstallation Tasks" to ensure that the system meets the requirements and that you have completed all of the preinstallation tasks.
Read the release notes for the product on your platform before installing it. You can find the latest version of the release notes on the Oracle Technology Network website:
F.4 Silent or Noninteractive Installation Response File Error Handling
To determine whether a silent or noninteractive installation succeeds or fails, check the silentInstallActions date_time .log file, located in DRIVE_LETTER :\Program Files\Oracle\Inventory\logs .
If necessary, see the previous section for information about determining the location of the Inventory directory.
A silent or noninteractive installation fails if:
You do not specify a response file.
You specify an incorrect or incomplete response file.
For example, a common problem is that while all the product-specific data is filled out correctly, the staging area location may be incorrect. If this is the case, check the FROM_LOCATION variable and ensure that it points to the products.xml file in the installation media. In the installation media, this products.xml is in database\stage .
Oracle Universal Installer encounters an error, such as insufficient disk space.
Oracle Universal Installer or a configuration assistant validates the response file at run time. If the validation fails, the silent or noninteractive installation or configuration process ends. Oracle Universal Installer treats values for parameters that are of the wrong context, format, or type as if no value was specified in the file.
"Reviewing the Log of an Installation Session" for information about interactive installation log files
F.5.1 Configuration Assistant Failures
Oracle configuration assistant failures are noted at the bottom of the installation window. The configuration assistant interface displays additional information, if available. The configuration assistant execution status is stored in the installActions date_time .log file.
The execution status codes are listed in the following table:
Status | Result Code |
---|---|
Configuration assistant succeeded | 0 |
Configuration assistant failed | 1 |
Configuration assistant canceled | -1 |
1 ответ 1
Распаковываю архив и нажимаю на setup
Следует учесть: БД это довольно сложный программный продукт, его установка требует базовых знаний в облати ОС и БД. Их будет явно недостаточно, если их хватает только на действие - нажать на setup.
Рекомендуется воспользоваться оф. инструкцией по устанновке (как минимим прочитать "по диагонали"). Предложеная ниже инструкция, попытка провести установку оставляя все, что только возможно, значениями по-умолчанию, чтобы избежать необходимости расширенных познаний в архитектуре и конфигурации БД.
Установка БД 19c на Windows 10 Home десктоп или ноутбук в учебных или тестовых целях.
Создайте директорию, куда будет установлена БД. Использовать кириллические симоволы и пробелы не рекомендуется. Создайте, например: D:\app\oracle\orcl . Разархивируйте туда скаченый ранее архив. В данном случае, позднее понадобятся переменные окружения:
Откройте CMD как администратор и перейдите во вновь созданную директорию. Теперь запустите установщик:
В появившемся окне установщика нажимая Next следуйте до Steep 4 of 8, оставляя всё как есть. Здесь задайте (или оставте предложенное по-умолчанию):
- Global datebase name: orcl
- Password: *******
- Pluggable datebase name: pdb1
Обязательно запомните эти данные. Переменная окружения для SID (системного идентификатора образа БД) и строка соединения будут такими:
Следуйте далее до Steep 6 of 8 и нажмите Install
Это лог установки и к нему следует обращаться в случае ошибок.
Закройте окнo CMD и откройте его теперь с обычным пользователем. Выполните подключение как привилигированый БД пользователь SYS :
Текущее местоположение - контейнер БД (CDB), здесь ничего создавать и менять не надо. В контейнере запущены: шаблон для новых БД ( PDB$SEED ) и только что созданая пустая БД ( PDB1 ), в которую и следует перейти:
Всё в порядке. В новой пустой БД создайте нового пользователя и работайте только с ним (не с SYS ).
На этом ресурсе уже есть следующие темы, которых помогут осуществить дальнейшие шаги:
This appendix contains the following information about troubleshooting:
Шаг 1. Измените службу Oracle для запуска вручную
-
Откройте окно сервиса: используйте win + r Сочетание клавиш, чтобы открыть запущенное окно, введите команду services.msc Нажмите Ввод.
Найдите 7 услуг оракула в стандартном представлении.
- В качестве примера возьмем службу OracleDBConsoleorcl: щелкните правой кнопкой мыши службу -> свойства
G.6.2 Irrecoverable Errors
If you receive an irrecoverable error while a configuration assistant is running:
Remove the failed installation as described in the "Cleaning Up After a Failed Installation" section.
Correct the cause of the irrecoverable error.
Reinstall the Oracle software.
G.5 Troubleshooting Host Name Changes and CSS
If you change the host name for Oracle Automatic Storage Management, then the Oracle CSS service does not start. In order to solve this problem, use the following steps:
Log in as a user with Administrator privileges.
Run roothas.bat to deconfigure CSS.
Starting with Oracle Database 12 c Release 1 (12.1.0.2), the roothas.bat script replaces the roothas.pl script in the Oracle Grid Infrastructure home.
This removes any configuration related files on the system that referenced the old host name.
Run gridconfig.bat script to reconfigure CSS using the new host name:
Go to the grid home's bin directory. Use the srvctl add database command with the -c SINGLE flag to add the database in an Oracle Restart configuration. Also use the srvctl add command to add the listener, the Oracle ASM instance, all Oracle ASM disk groups, and any database services to the Oracle Restart configuration.
G.2 Encountering Installation Errors
If you encounter an error during installation:
Do not exit Oracle Universal Installer.
If you clicked Next after you entered incorrect information about one of the installation windows, click Back to return to the window and correct the information.
If you encounter an error while Oracle Universal Installer is copying or linking files, see "Reviewing the Log of an Installation Session" for interactive installations or "Silent Mode Response File Error Handling" for more information.
If you encounter an error while a configuration assistant is running, see the "Troubleshooting Configuration Assistants" section.
If you cannot resolve the problem, remove the failed installation by following the steps listed in the "Cleaning Up After a Failed Installation" section.
G.3 Reviewing the Log of an Installation Session
During an installation, Oracle Universal Installer records all the actions that it performs in a log file. If you encounter problems during the installation, review the log file for information about possible causes of the problem. By default, the log files are located in the following directory:
Log filenames from interactive installations take the form:
For example, if an interactive installation occurred at 9:00:56 a.m. on October 14, 2005, the log file would be named:
Do not delete or manually alter the Inventory directory or its contents. Doing so can prevent Oracle Universal Installer from locating products that you install on your system.
G.9 Cleaning Up After a Failed Installation
If an installation fails, you must remove files that Oracle Universal Installer created during the attempted installation and remove the Oracle home directory.
Follow the instructions in "Removing Oracle Database Software" to run the Deinstallation tool.
F.3 Reviewing the Log of an Installation Session
During an installation, Oracle Universal Installer records all the actions that it performs in a log file. If you encounter problems during the installation, review the log file for information about possible causes of the problem. By default, the log files are located in the following directory:
Log filenames from interactive installations take the form:
For example, if an interactive installation occurred at 9:00:56 a.m. on October 14, 2005, the log file would be named:
Do not delete or manually alter the Inventory directory or its contents. Doing so can prevent Oracle Universal Installer from locating products that you install on your system.
G.4 Silent Mode Response File Error Handling
To determine whether a silent-mode installation succeeds or fails, check the silentInstallActions date_time .log file, located in DRIVE_LETTER :\Program Files\Oracle\Inventory\logs .
If necessary, see Section G.3, "Reviewing the Log of an Installation Session" for information about determining the location of the Inventory directory.
A silent installation fails if:
You do not specify a response file.
You specify an incorrect or incomplete response file.
Oracle Universal Installer encounters an error, such as insufficient disk space.
Oracle Universal Installer or a configuration assistant validates the response file at run time. If the validation fails, the silent-mode installation or configuration process ends.
"Reviewing the Log of an Installation Session" for information about interactive installation log files
Шаг 3. Создание сценария запуска службы
Каждый раз, когда вам нужно использовать oracle, вам нужно использовать шаг два для запуска службы oracle, что несколько неудобно: мы можем создать пакетный сценарий для запуска службы и запускать службу при каждом запуске файла сценария.
Создайте новый файл startOracle.bat, введите следующий скрипт, имя файла произвольное, но суффикс должен быть .bat.
- Из-за различий в личных установочных средах имена этих двух служб могут различаться. Вам необходимо заменить имя службы в сценарии своим собственным.
- OracleOraDb11g_home1TNSListener
- OracleServiceORCL
- Чтобы запустить службу консоли, удалите два двоеточия перед предпоследней строкой и замените имя службы своим собственным.
- OracleDBConsoleorcl
- Запустите скрипт, когда служба остановлена, и проверьте, нормально ли работает скрипт.
F.5 Troubleshooting Configuration Assistants
To troubleshoot an installation error that occurs when a configuration assistant is running:
Review the installation log files listed in the "Reviewing the Log of an Installation Session" section.
Review the specific configuration assistant log file located in the ORACLE_BASE \ ORACLE_HOME \cfgtoollogs directory. Try to fix the issue that caused the error.
If you see the Irrecoverable Error. Reinstall message, look for the cause of the problem by reviewing the log files. See "Irrecoverable Errors" for more information.
Читайте также: