OCP-1Z0-052-V8.02-132题
2013-10-30 00:14
344 查看
132. The tnsnames.ora file has an entry for the service alias ORCL as follows:
ORCL =
( DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.156.24.216)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.oracle.com)
)
)
The TNSPING command executes successfully when tested with ORCL, but you are not able to connect
to the database instance with the following command:
SQL> CONNECT scott/tiger@orcl
What could be the reason for this?
A.The listener is not running on the database node.
B.The TNS_ADMIN environmental variable is set to a wrong value.
C.The orcl.oracle.com database service is not registered with the listener.
D.The DEFAULT_DOMAIN parameter is set to a wrong value in the sqlnet.ora file.
Answer: C
答案解析:
当 SERVICE_NAME 填写不正确时,你可以 tnsping 通数据库实例,但是却无法连接到数据库实例,因为你填写错
的 SERVICE_NAME 并没有注册到 LISTENER 当中。
listener 是在 db server 上配置,凡是在 client 端要连接 db 都需要通过 listener。
ORCL =
( DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.156.24.216)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.oracle.com)
)
)
The TNSPING command executes successfully when tested with ORCL, but you are not able to connect
to the database instance with the following command:
SQL> CONNECT scott/tiger@orcl
What could be the reason for this?
A.The listener is not running on the database node.
B.The TNS_ADMIN environmental variable is set to a wrong value.
C.The orcl.oracle.com database service is not registered with the listener.
D.The DEFAULT_DOMAIN parameter is set to a wrong value in the sqlnet.ora file.
Answer: C
答案解析:
当 SERVICE_NAME 填写不正确时,你可以 tnsping 通数据库实例,但是却无法连接到数据库实例,因为你填写错
的 SERVICE_NAME 并没有注册到 LISTENER 当中。
listener 是在 db server 上配置,凡是在 client 端要连接 db 都需要通过 listener。
相关文章推荐
- OCP-1Z0-052-V8.02-146题
- OCP-1Z0-052-V8.02-12题
- OCP-1Z0-052-V8.02-31题
- OCP-1Z0-052-V8.02-78题
- OCP-1Z0-052-V8.02-115题
- OCP-1Z0-052-V8.02-73题
- OCP-1Z0-052-V8.02-172题
- OCP-1Z0-052-V8.02-127题
- OCP-1Z0-052-V8.02-90题
- OCP-1Z0-052-V8.02-136题
- OCP-1Z0-052-V8.02-50题
- OCP-1Z0-052-V8.02-48题
- OCP-1Z0-052-V8.02-80题
- OCP-1Z0-052-V8.02-143题
- OCP-1Z0-052-V8.02-13题
- OCP-1Z0-052-V8.02-32题
- OCP-1Z0-052-V8.02-87题
- OCP-1Z0-052-V8.02-123题
- OCP-1Z0-052-V8.02-75题
- OCP-1Z0-052-V8.02-167题