時(shí)間:2015/6/28來(lái)源:IT貓撲網(wǎng)作者:網(wǎng)管聯(lián)盟我要評(píng)論(0)
今天有時(shí)間對(duì)"oracle_HOME"環(huán)境變量進(jìn)行了如下測(cè)試:
[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>
測(cè)試結(jié)果顯示,ORACLE_HOME環(huán)境變量中對(duì)"/"符號(hào)要求嚴(yán)格,不能在該字符串變量的值中出現(xiàn)多余"/"符號(hào)(雖然這樣寫在linux下是合法的),否則可能引起連接數(shù)據(jù)庫(kù)異常。對(duì)于初學(xué)者需要提高警惕。
關(guān)鍵詞標(biāo)簽:ORACLE_HOME
相關(guān)閱讀
熱門文章 Oracle中使用alter table來(lái)增加,刪除,修改列oracle中使用SQL語(yǔ)句修改字段類型-oracle修使用低權(quán)限Oracle數(shù)據(jù)庫(kù)賬戶得到管理員權(quán)限Oracle對(duì)user的訪問(wèn)控制
人氣排行 ORACLE SQL 判斷字符串是否為數(shù)字的語(yǔ)句Oracle中使用alter table來(lái)增加,刪除,修改列的語(yǔ)法ORACLE和SQL語(yǔ)法區(qū)別歸納(1)oracle grant 授權(quán)語(yǔ)句如何加速Oracle大批量數(shù)據(jù)處理Oracle刪除表的幾種方法ORACLE修改IP地址后如何能夠使用Oracle 10g創(chuàng)建表空間和用戶并指定權(quán)限