English 中文(简体)
如何将ORACLE_HOME变量正确定在乌班图9。
原标题:How to correctly set the ORACLE_HOME variable on Ubuntu 9.x?

我的问题与这里列举的问题相同:。 如何回收或改变Oracle sysdba密码 尽管我没有错过密码,但我还是两次在专栏上进入,然后在我去对口(当地传:8080/apex,密码没有被接受)。

我在数据库中没有任何东西,我只是想安装和使用Oracle-XE。 我曾尝试过两次拆除和重新安装植被,但是,如果我试图操作<条码>/etc/init.d/oracle-xe,我会再次举行“Oracle Database 10g Express Edition”会议,尽管我第二次去除了Oracle XE可能找到的任何文件。

我尝试了“/”的plus子,但我得到的是:

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

我尝试通过<代码>出口<>/代码>确定变量。 (并尝试set)。

Tried: export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus and all the subdirectories of that. Same error every time.

究竟是怎样? 我唯一看到的只是笼统的提及,或者说以上是当时的“db_1”。 我没有have1。

让我知道,是否需要澄清。 我不理解我在这个过程中的错误。

最佳回答

通常,没有发现问题的布木案是造成环境问题的结果,但就你而言,Im略怀疑安装(我从未使用过适当的植被+装配方法)。

检查安装的疗效:

  • ORACLE_HOME should be set to a directory path one level above the bin directory where sqlplus executable is found.
  • There should some .msb files under $ORACLE_HOME/sqlplus/mesg
  • There should be hundreds (not sure of the number with XE) of .msb files under $ORACLE_HOME (try find $ORACLE_HOME -name "*.msb" -print to show them)
  • Your PATH should include $ORACLE_HOME/bin.
  • All files under ORACLE_HOME should be owned by user:oracle group:dba.
问题回答

我也有同样的问题。 在我的家中,一夫一带是一份称为“qlplus.sh”的文字,照顾我,其中包括:

ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_HOME
ORACLE_SID=XE
export ORACLE_SID
NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
export NLS_LANG
PATH=$ORACLE_HOME/bin:$PATH
export PATH
sqlplus /nolog

如果存在同样的问题,

所有方面都必须作出变数:

. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh

Sorterd!

你们还必须建立LANG,看看上点名的间谍1*.msb,并例如,如果你发现一个档案名称间谍。 错误信息肯定会更好:

ORACLE_HOME需要达到安装数据库的Oracle目录结构的最高水平。 从这一点来看,Oracle知道如何找到它所需要的所有其他档案。 例如,你获得的错误信息是,Oracle能够找到电文档案,以报告错误(可能出现在位于cle门下的各种散装名录上)。 我将不考虑你给予的上述价值,而是试图尝试把你交给你。

export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0

一旦我也发现同样的错误。

I.E:

C:oracleproduct10.2.0db_2>SQLPLUS SYS AS SYSDBA
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

出现这一错误是因为没有正确确定家庭道路。 为了纠正这种情况,如果你正在使用Windows,则采用以下程序:

C:oracleproduct10.2.0db_2>SET ORACLE_HOME=C:oracleproduct10.2.0db_2
C:oracleproduct10.2.0db_2>SQLPLUS SYS AS SYSDBA

SQL*Plus: Release 10.2.0.3.0 - Production on Tue Apr 16 13:17:42 2013

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.

或者,如果你正在使用六氯环己烷,则将<条码><>>t>替换为<条码>出口<>/代码>,作为上述指令:

C:oracleproduct10.2.0db_2>EXPORT ORACLE_HOME= C:oracleproduct10.2.0db_2 
C:oracleproduct10.2.0db_2>SQLPLUS SYS AS SYSDBA

SQL*Plus: Release 10.2.0.3.0 - Production on Tue Apr 16 13:17:42 2013

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.

这是消除这一错误的正确方法。

export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1 sqlplus / as sysdba

After installing weblogic and forms server on a Linux machine we met some problems initializing sqlplus and tnsping. We altered the bash_profile in a way that the forms_home acts as the oracle home. It works fine, both commands (sqlplus and tnsping) are executable for user oracle

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export JAVA_HOME=/mnt/software/java/jdk1.7.0_71
export ORACLE_HOME=/oracle/Middleware/Oracle_FRHome1
export PATH=$PATH:$JAVA_HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=/oracle/Middleware/Oracle_FRHome1/lib
export FORMS_PATH=$FORMS_PATH:/oracle/Middleware/Oracle_FRHome1/forms:/oracle/Middleware/asinst_1/FormsComponent/forms:/appl/myapp:/home/oracle/myapp
set <ORACLE_HOME> path variable

实例

path ORACLE_HOME

价值 C:oraclexeapporacleproduct10.2.0server

“entergraph





相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

How to make a one to one left outer join?

I was wondering, is there a way to make a kind of one to one left outer join: I need a join that matches say table A with table B, for each record on table A it must search for its pair on table B, ...

Insert if not exists Oracle

I need to be able to run an Oracle query which goes to insert a number of rows, but it also checks to see if a primary key exists and if it does, then it skips that insert. Something like: INSERT ALL ...

How can I store NULLs in NOT NULL field?

I just came across NULL values in NOT-NULL fields in our test database. How could they get there? I know that NOT-NULL constraints can be altered with NOVALIDATE clause, but that would change table s ...

Type reference scope

I m studying databases and am currently working on a object-relational DB project and I ve encountered a small problem with the number of possible constraints in an object table. I m using "Database ...

OracleParameter and DBNull.Value

we have a table in an Oracle Database which contains a column with the type Char(3 Byte). Now we use a parameterized sql to select some rows with a DBNull.Value and it doesn t work: OracleCommand ...

热门标签