23.Your database is started with SPFILE. You want the database instance to be dynamically
registered with a listener L2 with the following details:
Protocol: TCP
Host: indl151e
Port: 1525
Which is the correct order of the steps that you would follow to achieve this?
1. Set the LOCAL_LISTENER parameter to L2 dynamically.
2. Make an entry for L2 in tnsnames.ora on the database server.
3. Restart L2.
4. Modify the listener.ora file to add the instance name in SID_LIST of L2.
C: 2, 1; 3 and 4 are not required.
题目意思能讲解下吧! 为什么是这样的操作过程
------解决方案--------------------------------------------------------
你的数据库启动伴随着spfile,你要求数据库实例是动态的注册根据具有下面步骤的侦听L2:
协议:tcp
主机:indl151e
端口:1525
下面怎么的步骤可以达到上述目标?
1.动态的把本地侦听参数赋值给l2
2.在数据库服务器上为在tnsname.ora文件中的l2建一个实例
3.重启l2.
4.更新listener.ora 文件,添加一个实例在l2的sid_list
具体不知道怎么操作,按字面意思翻译了一下,希望对你有帮助
------解决方案--------------------------------------------------------
普通情况下,我们的实例都会自动去找在1521端口的监听去注册。
现在要求把实例注册到1525端口的监听器,这自然就要我们手工操作了。
具体步骤就是:
1、登陆进数据库后:alter system set local_listener=L2
2、在tnsnames.ora文件中添加:
L2 =
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = xxxx)(PORT = 1525)))
这样就好了,也就是答案的2、1两个步骤。
不过1-2或者2-1都是没问题的。