時間:2015-06-28 00:00:00 來源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評論(1)
今天有時間對"ORACLE_HOME"環(huán)境變量進(jìn)行了如下測試:
[oracle@linux ~]$ export ORACLE_HOME=/u01/app/oracle//product/10.2/db_1
[oracle@linux ~]$ sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.3.0 - Production on Mon Jun 1 13:13:07 2009
Copyright (c) 1982, 2006, Oracle.? All Rights Reserved.
Connected to an idle instance.
SQL> Disconnected
[oracle@linux ~]$ export ORACLE_HOME=//u01/app/oracle/product/10.2/db_1
[oracle@linux ~]$ sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.3.0 - Production on Mon Jun 1 13:13:18 2009
Copyright (c) 1982, 2006, Oracle.? All Rights Reserved.
Connected to an idle instance.
SQL> Disconnected
[oracle@linux ~]$ export ORACLE_HOME=/u01/app/oracle/product/10.2/db_1/
[oracle@linux ~]$ sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.3.0 - Production on Mon Jun 1 13:13:31 2009
Copyright (c) 1982, 2006, Oracle.? All Rights Reserved.
Connected to an idle instance.
SQL> Disconnected
[oracle@linux ~]$ export ORACLE_HOME=/u01/app/oracle/product/10.2/db_1
[oracle@linux ~]$ sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.3.0 - Production on Mon Jun 1 13:13:42 2009
Copyright (c) 1982, 2006, Oracle.? All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning and Data Mining options
SQL>
測試結(jié)果顯示,ORACLE_HOME環(huán)境變量中對"/"符號要求嚴(yán)格,不能在該字符串變量的值中出現(xiàn)多余"/"符號(雖然這樣寫在linux下是合法的),否則可能引起連接數(shù)據(jù)庫異常。對于初學(xué)者需要提高警惕。
關(guān)鍵詞標(biāo)簽:ORACLE_HOME
相關(guān)閱讀
熱門文章 Oracle中使用alter table來增加,刪除,修改列的語法 oracle中使用SQL語句修改字段類型-oracle修改SQL語句案例 誤刪Oracle數(shù)據(jù)庫實(shí)例的控制文件 為UNIX服務(wù)器設(shè)置Oracle全文檢索
人氣排行 oracle中使用SQL語句修改字段類型-oracle修改SQL語句案例 Oracle中使用alter table來增加,刪除,修改列的語法 ORACLE SQL 判斷字符串是否為數(shù)字的語句 ORACLE和SQL語法區(qū)別歸納(1) oracle grant 授權(quán)語句 ORACLE修改IP地址后如何能夠使用 如何加速Oracle大批量數(shù)據(jù)處理 Oracle刪除表的幾種方法