今天练习了 net management
我的机子上有两个数据库 moon 和 orcl 监听器时默认的 port=1521 我又新建了一个 监听 listener001 port=1522
然后把moon 数据库的端口号改为 1522 进行连接 结果发现登陆数据时出现了 一个小问题。从前登陆两个数据库时 都是
connect usern_name/password @moon/orcl [as sysdba] -- -----成功
刚才登陆了一下 ,两个监听都打开了SQL> connect system/moon123@moon
ERROR:
ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务
警告: 您不再连接到 ORACLE。
SQL> connect system/moon123
已连接。
SQL> disconnect
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开
SQL> connect system/orcl123@orcl
已连接。
SQL> disconnect
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开
SQL> connect system/orcl123
ERROR:
ORA-01017: invalid username/password; logon denied
SQL> connect user_a/user_1
已连接。
SQL> connect user_a/user_1@moon
ERROR:
ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务
警告: 您不再连接到 ORACLE。
SQL> 差别就在于 是都制定 @moon或者@orcl 或者不指定@moon或者@orcl@符号最根本的用法在什么地方呢????看了看document
Connecting to a Database
Connecting to a database involves starting network components and entering a connect string with a net service name, such as the following:CONNECT username/password@connect_identifier -------------connect_identifier 时什么意思???用户名和密码不能够完全验证么??
我的机子上有两个数据库 moon 和 orcl 监听器时默认的 port=1521 我又新建了一个 监听 listener001 port=1522
然后把moon 数据库的端口号改为 1522 进行连接 结果发现登陆数据时出现了 一个小问题。从前登陆两个数据库时 都是
connect usern_name/password @moon/orcl [as sysdba] -- -----成功
刚才登陆了一下 ,两个监听都打开了SQL> connect system/moon123@moon
ERROR:
ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务
警告: 您不再连接到 ORACLE。
SQL> connect system/moon123
已连接。
SQL> disconnect
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开
SQL> connect system/orcl123@orcl
已连接。
SQL> disconnect
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开
SQL> connect system/orcl123
ERROR:
ORA-01017: invalid username/password; logon denied
SQL> connect user_a/user_1
已连接。
SQL> connect user_a/user_1@moon
ERROR:
ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务
警告: 您不再连接到 ORACLE。
SQL> 差别就在于 是都制定 @moon或者@orcl 或者不指定@moon或者@orcl@符号最根本的用法在什么地方呢????看了看document
Connecting to a Database
Connecting to a database involves starting network components and entering a connect string with a net service name, such as the following:CONNECT username/password@connect_identifier -------------connect_identifier 时什么意思???用户名和密码不能够完全验证么??
解决方案 »
- oracle连接无故断掉3次 昨晚到今天下午 process数和session数都没问题
- 救命,oracle10g 修改processes值后,监听连不上了
- oracle表数据的及时更新
- 如何将 SQL Server 2000 中的数据自动导入到 Oracle 10g 中
- Oracle9i SQLPlus WorkSheet的问题
- 请问ORACLE里日志文件存在什么地方?
- r如何输出当前系统时间,要求越精确越好~
- 请教关于Oracle定时备份功能!
- 如何将表中的某个字段删除
- 对子查询使用sum函数后不能加字段了,提示非单组分组,加了order by 也不管用,这到底是什么原因?
- oracle 10g里中的listener.ora tnsname.ora和sqlnet.ora三个文件的作用含义是什么?里面的各个变量是怎样解释?
- 数据库设计方法
这个连接成功,是因为你没加@xxxx的话默认就是默认到当前服务器上的数据库。而你SQL> connect system/moon123@moon 指定了@moon就是告诉oracle你要登陆到sid为moon的这个服务器上数据库,但oracle显然找不到这个SID。你肯定记错了。
@connect_identifier 就是sid. 指定连接到哪个数据库。