1.error
oracle [mmsc] :/home/mmsc/mms_home/cfg>sql
SQL*Plus: Release 11.2.0.1.0 Production on Mon Oct 17 11:21:07 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
Enter user-name:
2.mms.cfg
[Database]
DBName = ora11g
DBUserName = mmsc
DBPassword = mmsc
DBUrl = jdbc:oracle:thin:@192.168.9.93:1521:ora11g
DBJdbcClass=oracle.jdbc.driver.OracleDriver
MMS_LOCAL_FLOATIP = 192.168.9.93
3.lsnrctl status
[oracle@oracle admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 17-OCT-2011 11:35:16
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.9.93)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 14-OCT-2011 19:34:58
Uptime 2 days 16 hr. 0 min. 17 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /myoracle/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /myoracle/app/diag/tnslsnr/oracle/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.9.93)(PORT=1521)))
Services Summary...
Service "ora11g" has 1 instance(s).
Instance "ora11g", status READY, has 1 handler(s) for this service...
Service "ora11gXDB" has 1 instance(s).
Instance "ora11g", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@oracle admin]$
4.listener.ora
[oracle@oracle admin]$ vi listener.ora
# listener.ora Network Configuration File: /myoracle/app/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.9.93)(PORT = 1521))
)
)
ADR_BASE_LISTENER = /myoracle/app
~
5.tnsnames.ora
[oracle@oracle admin]$ vi tnsnames.ora
# tnsnames.ora Network Configuration File: /myoracle/app/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORA11G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora11g)
)
)
ORA93 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.9.93)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora11g)
)
)
~
~
6..bash_profile
[oracle@oracle ~]$ vi .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
#export PATH
export ORACLE_BASE=/myoracle/app
export ORACLE_HOME=/myoracle/app/product/11.2.0/dbhome_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export ORACLE_SID=ora11g
export umash=022
export PATH=$PATH:$ORACLE_HOME/bin:/usr/bin/java:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
~
分享到:
相关推荐
Fatal NI connect error 12560, connecting to: (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=ORCL)...
ChromeDriver是一个用于控制和操作Chrome浏览器的驱动程序。在使用ChromeDriver之前,通常需要将其所在的路径配置为系统的环境变量,以便其他程序可以找到并使用它。 然而,并非所有使用ChromeDriver的方式都需要将...
配置好DNS正向和反向区域文件后,使用host命令测试报错连接服务器超时!
phpdisk 商业版源码架设教程 和我上传的phpdisk 源码配套使用..
因此,我们需要处理可能的错误,通常通过设置事件处理程序来监控“ConnectError”事件,以便在连接失败时采取适当的措施。 在提供的“Host”和“Connect”项目中,我们有两个文件:Host和Connect。"Host"文件可能是...
NavicatPremium 最新版下载安装文件,解决ssl连接失败问题
VCS双机启动的时候可能出现如下错误:VCS ERROR V-16-1-10600 Cannot connect to VCS engine 该文档是我在解决该错误的方法,希望能帮助到有需要的朋友!
### PHP中连接MySQL时出现Fatal error: Call to ...通过以上步骤,您应该能够解决“Fatal error: Call to undefined function mysql_connect()”的问题。如果仍然遇到问题,请检查所有配置细节,确保没有遗漏任何步骤。
void connectError(QAbstractSocket::SocketError); private: QTcpSocket client; }; ``` 此段代码定义了一个名为`Client`的类,继承自`QObject`。该类使用了`QTcpSocket`来实现TCP客户端的功能。`Client`类的...
console.error('Connect error:', error); } ); ``` 连接成功后,你可以读取或写入特征值(characteristic),这是蓝牙设备上可以读写的数据单元: ```typescript // 读取特征值 this.ble.read(device.id, ...
Fatal NI connect error 12170. VERSION INFORMATION: TNS for 64-bit Windows: Version 11.1.0.7.0 - Production Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 11.1.0.7.0 - Production ...
die('Connect Error (' . $mysqli->connect_errno . ') ' . $mysqli->connect_error); } // 获取AJAX提交的数据 $key = $_POST['key']; // 执行SQL查询 $query = "INSERT INTO table (column) VALUES ('$key')"; ...
die('Connect Error (' . $mysqli->connect_errno . ') ' . $mysqli->connect_error); } echo "连接成功!"; ?> ``` #### 七、总结 通过上述介绍,我们了解到如何使用PHP连接MySQL数据库的基本方法和一些...
printf("connect error!\n"); return 1; } char SendBuf[100] = "hi"; send(ConnectSocket, SendBuf, strlen(SendBuf) + 1, 0); char RecvBuf[101]; recv(ConnectSocket, RecvBuf, strlen(RecvBuf) + 1, 0)...
PHPDISK网盘系统是国内最大的网络存储、云存储系统开发及服务提供商,长期专注于网络存储系统开发,是一套采用PHP和MySQL构建的网络硬盘(文件存储管理)系统,可替代传统的FTP文件管理。友好的界面,操作的便捷深受...
安装opencv时,由于各种因素导致xfeatures2d模块访问下载boostdesc_bgm.i文件失败,进而导致编译过程的失败,本文件集可以拷贝到opencv_contrib/modules/xfeatures2d/src/目录下,然后修改opencv_contrib/modules/...
4. **Smtp Error 4: SMTP connect error**:检查邮件地址是否输入错误,去除多余的字符。 5. **DNS query error**:确保邮件地址无误,避免多余字符影响解析。 6. **Requested action not taken: message refused*...
apache Proxy Error apache Proxy Error apache Proxy Error apache Proxy Error
die('Connect Error (' . $mysqli->connect_errno . ') ' . $mysqli->connect_error); } $mysqli->set_charset('utf8'); // 或者使用查询方式设置 mysql_query("SET NAMES utf8"); ``` ##### 4. 确保数据库表和...