Sqlplus ошибка при запуске приложения

When i open sqlplus it shows

Error 6 Initializing SQL*Plus
Message file sp1<Lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

APC's user avatar

APC

143k19 gold badges168 silver badges281 bronze badges

asked May 16, 2011 at 5:29

santhoshkrishnan's user avatar

2

Generally speaking, you don’t want to set ORACLE_HOME in a Windows environment — it’s handled in the registry, and it’s given me grief the times I’ve set it. Here is an Oracle Doc on Oracle Homes.

How many Oracle installations are on this computer?

answered May 17, 2011 at 1:20

DCookie's user avatar

1

Ancient question with hopefully a helpful new answer! Ready?

First, as others have said, you must set your ORACLE_HOME (e.g. export ORACLE_HOME=/opt/oracle/instantclient_12_2), but secondly, and oddly, you can’t be cd‘d into the oracle home when you run sqlplus!

$ export ORACLE_HOME=/opt/oracle/instantclient_12_2
$ cd $ORACLE_HOME
$ sqlplus
Error 6 initializing SQL*Plus
SP2-0667: Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
$ cd /
$ sqlplus

SQL*Plus: Release 12.2.0.1.0 Production on Wed Jan 3 11:02:36 2018

Copyright (c) 1982, 2016, Oracle.  All rights reserved.

Enter user-name:

Whoaaa mind blown. It’s… a feature?

answered Jan 3, 2018 at 16:06

inanutshellus's user avatar

inanutshellusinanutshellus

9,5739 gold badges52 silver badges71 bronze badges

1

If ORACLE_HOME & ORACLE_BASE are all properly set,
Make sure that someone does not delete some installation folders/files. I experienced similar problem, in one of my customers, Half of the folders in OraHome had been accidently deleted by the IT Guy.

answered Aug 7, 2012 at 22:45

Faruk AZAKLI's user avatar

In my case, ORACLE_HOME in my windows registry was changed when I installed another Oracle tool (Workflow builder in my case), hence I got the following error. After I modified it back to where the Oracle SQLPLUS product was installed, it worked fine. We don’t need to set ORACLE_HOME in the environment variables, the system would read it form the registry.

Before:

Error 6 initializing SQL*Plus
SP2-0667: Message file sp1.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

answered Mar 10, 2022 at 18:51

Pavan's user avatar

When i open sqlplus it shows

Error 6 Initializing SQL*Plus
Message file sp1<Lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

APC's user avatar

APC

143k19 gold badges168 silver badges281 bronze badges

asked May 16, 2011 at 5:29

santhoshkrishnan's user avatar

2

Generally speaking, you don’t want to set ORACLE_HOME in a Windows environment — it’s handled in the registry, and it’s given me grief the times I’ve set it. Here is an Oracle Doc on Oracle Homes.

How many Oracle installations are on this computer?

answered May 17, 2011 at 1:20

DCookie's user avatar

1

Ancient question with hopefully a helpful new answer! Ready?

First, as others have said, you must set your ORACLE_HOME (e.g. export ORACLE_HOME=/opt/oracle/instantclient_12_2), but secondly, and oddly, you can’t be cd‘d into the oracle home when you run sqlplus!

$ export ORACLE_HOME=/opt/oracle/instantclient_12_2
$ cd $ORACLE_HOME
$ sqlplus
Error 6 initializing SQL*Plus
SP2-0667: Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
$ cd /
$ sqlplus

SQL*Plus: Release 12.2.0.1.0 Production on Wed Jan 3 11:02:36 2018

Copyright (c) 1982, 2016, Oracle.  All rights reserved.

Enter user-name:

Whoaaa mind blown. It’s… a feature?

answered Jan 3, 2018 at 16:06

inanutshellus's user avatar

inanutshellusinanutshellus

9,5739 gold badges52 silver badges71 bronze badges

1

If ORACLE_HOME & ORACLE_BASE are all properly set,
Make sure that someone does not delete some installation folders/files. I experienced similar problem, in one of my customers, Half of the folders in OraHome had been accidently deleted by the IT Guy.

answered Aug 7, 2012 at 22:45

Faruk AZAKLI's user avatar

In my case, ORACLE_HOME in my windows registry was changed when I installed another Oracle tool (Workflow builder in my case), hence I got the following error. After I modified it back to where the Oracle SQLPLUS product was installed, it worked fine. We don’t need to set ORACLE_HOME in the environment variables, the system would read it form the registry.

Before:

Error 6 initializing SQL*Plus
SP2-0667: Message file sp1.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

answered Mar 10, 2022 at 18:51

Pavan's user avatar

Installed sqlplus from oracle downloads. Unpacked both files
instantclient-basic-linux.x64-12.1.0.1.0.zip
instantclient-sqlplus-linux.x64-12.1.0.1.0.zip
sqlplus fails to start with this error:

Error 6 initializing SQL*Plus
SP2-0667: Message file sp1.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

I assume I don’t have to install the whole oracle server for sql client to run. and basic-linux zip is deemed to be everything you need to run OCI apps which sqlplus is.

Where do I get these .msb files?

asked Aug 19, 2013 at 19:10

Randall Stevens's user avatar

Randall StevensRandall Stevens

5961 gold badge8 silver badges20 bronze badges

You may need to set ORACLE_HOME to your Oracle software directory

You need to set ORACLE_HOME to wherever you’ve unzippd the files:

export ORACLE_HOME=/path/to/instantclient

You probably also want to add that to your PATH, and might need to add it to LD_LIBRARY_PATH. Which is actually all the instructions tell you to do.

answered Aug 19, 2013 at 19:34

Alex Poole's user avatar

Alex PooleAlex Poole

183k11 gold badges178 silver badges313 bronze badges

1

ensure to have you ORACLE_HOME/sqlplus, ORACLE_HOME/sqlplus/mesg directories allowed for read and execute, and all the ORACLE_HOME/sqlplus/mesg/*.msb files readable too when trying to use sqlplus with a non oracle owner user.

answered Aug 29, 2014 at 12:56

HSeb72's user avatar

For anyone that is using 12C on up, and you are just setting up a DB for your desktop(not sure about servers). You do not need to have the oracle_home as an environmental variable for your account. If you created one, then just delete and see what happens. I have installed 12C and 19c oracle db, and I’m able to use sqlplus just fine. I did not do anything fancy with the install. I just selected a virtual user and basically clicked next for everything else.

answered Jun 21, 2019 at 15:21

0 / 0 / 0

Регистрация: 25.04.2011

Сообщений: 26

1

26.04.2011, 08:59. Показов 10738. Ответов 3


Студворк — интернет-сервис помощи студентам

Всем доброго времени суток!
на RHEL установил оракл 10g . Проблем при установке не возникало. Но после установки не запускается sqlplus. Ссылается на то что ORACLA_HOME не указана. Хотя все указано. Ниже можете ознакомиться.

./sqlplus
Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
[oracle@localhost bin]$

[oracle@localhost bin]$ env
SSH_AGENT_PID=4726
HOSTNAME=localhost.localdomain
DESKTOP_STARTUP_ID=
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
NLS_LANG=AMERICAN_AMERICA.UTF8
GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
WINDOWID=39845967
OLDPWD=/home/oracle
OPATCH_PLATFORM_ID=226
USER=oracle
LD_LIBRARY_PATH=/oracle/product/10.2.0/lib
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36i=40;33:so=00;35:bd=40;33;01:cd=40;33;0 1:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.b tm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31: *.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:* .bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
ORACLE_SID=dotsnew
GNOME_KEYRING_SOCKET=/tmp/keyring-TbWAji/socket
ORACLE_BASE=/oracle/product/10.2.0
SSH_AUTH_SOCK=/tmp/ssh-jrFlEF4674/agent.4674
KDEDIR=/usr
SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/4674
TNS_ADMIN=/oracle/product/10.2.0/network/admin
MAIL=/var/spool/mail/oracle
DESKTOP_SESSION=default
PATH=/oracle/product/10.2.0/bin:/oracle/product/10.2.0/OPatch:/oracle/admin/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/opt/firefox
INPUTRC=/etc/inputrc
PWD=/oracle/product/10.2.0/db_1/bin
EDITOR=vi
LANG=en_US.UTF-8
GDMSESSION=default
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HOME=/home/oracle
SHLVL=2
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=oracle
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-aKo4lEKeik
LESSOPEN=|/usr/bin/lesspipe.sh %s
ORA_NLS33=/oracle/product/10.2.0/ocommon/nls/admin/data
DISPLAY=:0.0
ORACLE_HOME=/oracle/product/10.2.0
NLS_DATE_FORMAT=DD-MON-YYYY HH24:MI:SS
G_BROKEN_FILENAMES=1
COLORTERM=gnome-terminal
XAUTHORITY=/home/oracle/.Xauthority
_=/bin/env
[oracle@localhost bin]$

0

68 / 66 / 3

Регистрация: 23.08.2010

Сообщений: 195

26.04.2011, 11:05

2

Попробуйте вместо
ORACLE_HOME=/oracle/product/10.2.0
установить
ORACLE_HOME=/oracle/product/10.2.0/db_1
(ну или …/db в зависимости о того что у вас).

1

0 / 0 / 0

Регистрация: 25.04.2011

Сообщений: 26

26.04.2011, 14:43

 [ТС]

3

BLEDNYKHAP, спасибо. получилось.
но вышла след. проблема.
при стартапе в режиме маунт ссылается на какую-то ошибку в control-файле.

ORA-00205: error in identifying control file, check alert log for more info

и из-за чего база не монтируется и не открывается. Из-за чего может быть такое?

0

Модератор

4204 / 3044 / 581

Регистрация: 21.01.2011

Сообщений: 13,177

26.04.2011, 14:47

4

Цитата
Сообщение от lyman
Посмотреть сообщение

BLEDNYKHAP, спасибо. получилось.
но вышла след. проблема.
при стартапе в режиме маунт ссылается на какую-то ошибку в control-файле.

ORA-00205: error in identifying control file, check alert log for more info

и из-за чего база не монтируется и не открывается. Из-за чего может быть такое?

Тык посмотри для начала alert.log, как советуют.
А вообще

ORA-00205 error in identifying controlfile, check alert log for more info
Cause: The system could not find a control file of the specified name and size.

0

After having installed Oracle Instant Client, you unexpectedly run into this problem when executing the command: sqlplus <oracle user>/<oracle password>@<oracle IP address>:<port>/<oracle database name>.

It returns the following messages:

      Error 6 initializing SQL*Plus 
      SP2-0667: Message file sp1<lang>.msb not found 
      SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory 


To fix this problem:

1. Create a lib directory in your Oracle Instant Client directory.

      mkdir lib

2. Copy the  ojdbc6.jar, ojdbc5.jar, xtreams.jar, and all the .so files to the lib directory.

3. Create a bin directory in your Oracle Instant Client directory.

4. Copy the adrci, genezi, odbc_update_ini.sh, sqlplus, and uidrvci files to the bin directory.

5. Create a sqlplus/admin directory in your Oracle Instant Client directory and copy the glogin.sql to this directory.

6. Create a network/admin directory in your Oracle Instant Client directory.

7. Create the tnsnames.ora file in the network/admin directory.

      <Oracle database name> =
          (DESCRIPTION =
              (ADDRESS = (PROTOCOL = TCP)(HOST = <oracle IP address>)(PORT = 1521))
              (CONNECT_DATA =
                  (SERVER = DEDICATED)
                  (SERVICE_NAME = <Oracle service name>)
              )

Create the sqlnet.ora file in the network/admin directory.

      TCP.CONNECT_TIMEOUT=10

8. Set the environmental variables.

      export ORACLE_HOME=/usr/oracle/instantclient_12_1

      export PATH=$ORACLE_HOME/bin:$PATH

      export LD_LIBRARY_PATH=$ORACLE_HOME/lib

      export SQLPATH=$ORACLE_HOME/sqlplus/admin

      export TNS_ADMIN=$ORACLE_HOME/network/admin

      export NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252

9. Logout and log back in.

Reference:

1. oracle instant client 12.1 SP2-0667: Message file sp1<lang>.msb not found

——————————————————————————————————————

If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book for free here.

В этом руководстве мы покажем вам, как исправить ошибку «sqlplus не распознается как внутренняя или внешняя команда». SQL Plus — одна из наиболее широко используемых утилит Oracle Database, имеющая собственный набор команд. Вы можете использовать его для выполнения различных команд SQL, PL/SQL, SQL*Plus и ОС. Что касается связанных задач, его можно использовать для форматирования, выполнения вычислений, сохранения и печати результатов запроса. Тем не менее, его настройка, похоже, создает трудности для конечных пользователей.

sqlplus не распознается как внутренняя или внешняя команда

If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book for free here.

В этом руководстве мы покажем вам, как исправить ошибку «sqlplus не распознается как внутренняя или внешняя команда». SQL Plus — одна из наиболее широко используемых утилит Oracle Database, имеющая собственный набор команд. Вы можете использовать его для выполнения различных команд SQL, PL/SQL, SQL*Plus и ОС. Что касается связанных задач, его можно использовать для форматирования, выполнения вычислений, сохранения и печати результатов запроса. Тем не менее, его настройка, похоже, создает трудности для конечных пользователей.

sqlplus не распознается как внутренняя или внешняя команда

Много пользователей имеют выразили свою озабоченность что они получают ошибку «sqlplus не распознается как внутренняя или внешняя команда» при попытке выполнить команду в окне CMD. Так почему это происходит? Ну, это просто потому, что каталог установки Oracle не был добавлен в путь к переменной среды Windows. В результате система не может подтвердить ни SQL, ни связанные с ним команды. Поэтому, чтобы исправить это, вам просто нужно добавить его к указанному пути, как описано ниже.

Существует два разных метода добавления SQLPlus в путь среды: через командную строку или с помощью меню переменных среды. Первый короче, но немного техничнее, тогда как второй проще в исполнении, но немного длиннее. Мы перечислили оба этих подхода ниже, вы можете обратиться к тому, который соответствует вашим требованиям.

Через командную строку

  1. Запустите CMD от имени администратора из меню «Пуск».
  2. Затем выполните приведенную ниже команду, заменив ORACLE_INSTALL_DIRECTORY на соответствующий PATH=C:ORACLE_INSTALL_DIRECTORYbin;%PATH
  3. Вот и все. SQL добавляется к переменной пути, и проблема исправлена.

Через переменные среды

  1. Запустите Дополнительные параметры системы из меню «Пуск».
  2. Затем нажмите кнопку «Переменные среды».
  3. Теперь нажмите «Создать» в разделе «Системная переменная».
  4. Введите SQLPlus под именем переменной. Затем нажмите «Обзор каталога».
  5. Теперь перейдите в папку, в которую вы установили Oracle, и выберите ее.

Вот и все. Теперь попробуйте выполнить нужную команду SQL, и вы больше не будете получать ошибку «sqlplus не распознается как внутренняя или внешняя команда». Если у вас есть какие-либо вопросы относительно вышеупомянутых шагов, сообщите нам об этом в комментариях. Мы вернемся к вам с решением в ближайшее время.

Installed sqlplus from oracle downloads. Unpacked both files
instantclient-basic-linux.x64-12.1.0.1.0.zip
instantclient-sqlplus-linux.x64-12.1.0.1.0.zip
sqlplus fails to start with this error:

Error 6 initializing SQL*Plus
SP2-0667: Message file sp1.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

I assume I don’t have to install the whole oracle server for sql client to run. and basic-linux zip is deemed to be everything you need to run OCI apps which sqlplus is.

Where do I get these .msb files?

asked Aug 19, 2013 at 19:10

Randall Stevens's user avatar

Randall StevensRandall Stevens

5961 gold badge8 silver badges20 bronze badges

You may need to set ORACLE_HOME to your Oracle software directory

You need to set ORACLE_HOME to wherever you’ve unzippd the files:

export ORACLE_HOME=/path/to/instantclient

You probably also want to add that to your PATH, and might need to add it to LD_LIBRARY_PATH. Which is actually all the instructions tell you to do.

answered Aug 19, 2013 at 19:34

Alex Poole's user avatar

Alex PooleAlex Poole

183k11 gold badges178 silver badges313 bronze badges

1

ensure to have you ORACLE_HOME/sqlplus, ORACLE_HOME/sqlplus/mesg directories allowed for read and execute, and all the ORACLE_HOME/sqlplus/mesg/*.msb files readable too when trying to use sqlplus with a non oracle owner user.

answered Aug 29, 2014 at 12:56

HSeb72's user avatar

For anyone that is using 12C on up, and you are just setting up a DB for your desktop(not sure about servers). You do not need to have the oracle_home as an environmental variable for your account. If you created one, then just delete and see what happens. I have installed 12C and 19c oracle db, and I’m able to use sqlplus just fine. I did not do anything fancy with the install. I just selected a virtual user and basically clicked next for everything else.

answered Jun 21, 2019 at 15:21

0 / 0 / 0

Регистрация: 25.04.2011

Сообщений: 26

1

26.04.2011, 08:59. Показов 10749. Ответов 3


Студворк — интернет-сервис помощи студентам

Всем доброго времени суток!
на RHEL установил оракл 10g . Проблем при установке не возникало. Но после установки не запускается sqlplus. Ссылается на то что ORACLA_HOME не указана. Хотя все указано. Ниже можете ознакомиться.

./sqlplus
Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
[oracle@localhost bin]$

[oracle@localhost bin]$ env
SSH_AGENT_PID=4726
HOSTNAME=localhost.localdomain
DESKTOP_STARTUP_ID=
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
NLS_LANG=AMERICAN_AMERICA.UTF8
GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
WINDOWID=39845967
OLDPWD=/home/oracle
OPATCH_PLATFORM_ID=226
USER=oracle
LD_LIBRARY_PATH=/oracle/product/10.2.0/lib
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36i=40;33:so=00;35:bd=40;33;01:cd=40;33;0 1:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.b tm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31: *.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:* .bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
ORACLE_SID=dotsnew
GNOME_KEYRING_SOCKET=/tmp/keyring-TbWAji/socket
ORACLE_BASE=/oracle/product/10.2.0
SSH_AUTH_SOCK=/tmp/ssh-jrFlEF4674/agent.4674
KDEDIR=/usr
SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/4674
TNS_ADMIN=/oracle/product/10.2.0/network/admin
MAIL=/var/spool/mail/oracle
DESKTOP_SESSION=default
PATH=/oracle/product/10.2.0/bin:/oracle/product/10.2.0/OPatch:/oracle/admin/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/opt/firefox
INPUTRC=/etc/inputrc
PWD=/oracle/product/10.2.0/db_1/bin
EDITOR=vi
LANG=en_US.UTF-8
GDMSESSION=default
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HOME=/home/oracle
SHLVL=2
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=oracle
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-aKo4lEKeik
LESSOPEN=|/usr/bin/lesspipe.sh %s
ORA_NLS33=/oracle/product/10.2.0/ocommon/nls/admin/data
DISPLAY=:0.0
ORACLE_HOME=/oracle/product/10.2.0
NLS_DATE_FORMAT=DD-MON-YYYY HH24:MI:SS
G_BROKEN_FILENAMES=1
COLORTERM=gnome-terminal
XAUTHORITY=/home/oracle/.Xauthority
_=/bin/env
[oracle@localhost bin]$



0



68 / 66 / 3

Регистрация: 23.08.2010

Сообщений: 195

26.04.2011, 11:05

2

Попробуйте вместо
ORACLE_HOME=/oracle/product/10.2.0
установить
ORACLE_HOME=/oracle/product/10.2.0/db_1
(ну или …/db в зависимости о того что у вас).



1



0 / 0 / 0

Регистрация: 25.04.2011

Сообщений: 26

26.04.2011, 14:43

 [ТС]

3

BLEDNYKHAP, спасибо. получилось.
но вышла след. проблема.
при стартапе в режиме маунт ссылается на какую-то ошибку в control-файле.

ORA-00205: error in identifying control file, check alert log for more info

и из-за чего база не монтируется и не открывается. Из-за чего может быть такое?



0



Модератор

4204 / 3044 / 581

Регистрация: 21.01.2011

Сообщений: 13,184

26.04.2011, 14:47

4

Цитата
Сообщение от lyman
Посмотреть сообщение

BLEDNYKHAP, спасибо. получилось.
но вышла след. проблема.
при стартапе в режиме маунт ссылается на какую-то ошибку в control-файле.

ORA-00205: error in identifying control file, check alert log for more info

и из-за чего база не монтируется и не открывается. Из-за чего может быть такое?

Тык посмотри для начала alert.log, как советуют.
А вообще

ORA-00205 error in identifying controlfile, check alert log for more info
Cause: The system could not find a control file of the specified name and size.



0



After having installed Oracle Instant Client, you unexpectedly run into this problem when executing the command: sqlplus <oracle user>/<oracle password>@<oracle IP address>:<port>/<oracle database name>.

It returns the following messages:

      Error 6 initializing SQL*Plus 
      SP2-0667: Message file sp1<lang>.msb not found 
      SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory 


To fix this problem:

1. Create a lib directory in your Oracle Instant Client directory.

      mkdir lib

2. Copy the  ojdbc6.jar, ojdbc5.jar, xtreams.jar, and all the .so files to the lib directory.

3. Create a bin directory in your Oracle Instant Client directory.

4. Copy the adrci, genezi, odbc_update_ini.sh, sqlplus, and uidrvci files to the bin directory.

5. Create a sqlplus/admin directory in your Oracle Instant Client directory and copy the glogin.sql to this directory.

6. Create a network/admin directory in your Oracle Instant Client directory.

7. Create the tnsnames.ora file in the network/admin directory.

      <Oracle database name> =
          (DESCRIPTION =
              (ADDRESS = (PROTOCOL = TCP)(HOST = <oracle IP address>)(PORT = 1521))
              (CONNECT_DATA =
                  (SERVER = DEDICATED)
                  (SERVICE_NAME = <Oracle service name>)
              )

Create the sqlnet.ora file in the network/admin directory.

      TCP.CONNECT_TIMEOUT=10

8. Set the environmental variables.

      export ORACLE_HOME=/usr/oracle/instantclient_12_1

      export PATH=$ORACLE_HOME/bin:$PATH

      export LD_LIBRARY_PATH=$ORACLE_HOME/lib

      export SQLPATH=$ORACLE_HOME/sqlplus/admin

      export TNS_ADMIN=$ORACLE_HOME/network/admin

      export NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252

9. Logout and log back in.

Reference:

1. oracle instant client 12.1 SP2-0667: Message file sp1<lang>.msb not found

——————————————————————————————————————

If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book for free here.

Понравилась статья? Поделить с друзьями:
  • Sql запрос завершен с ошибками
  • Sqlite ошибка database is locked
  • Sqlcmd при соединении с сервером произошла ошибка
  • Sql выдает ошибку при восстановлении баз
  • Sql строка подключения с ошибкой