You are on page 1of 3

Classe : 4info Novembre : 2011 Anne universitaire : 2011/2012

FAQ 4_1 : ORACLE NET services


Question 1 : You are connecting to the database using the Local naming method. While connecting from the client to the database, which two pieces of information must be provided in the connect string to successfully connect to the database? (Choose two.) host name service name database name naming method listener port number valid username and password

Question 2 : You configure the sqlnet.ora file on your database server. In which scenario would it be appropriate to examine the sqlnet.ora file? You want to know the number of listeners listening for the database. You want to know the number service names configured on the database server. You want to know the order of naming methods the client will use while resolving a service name. You want to determine whether your database server is configured as a shared server or as a dedicated server. Question 3 :
You have created a listener by using Database Control. After configuring the listener for your database, you executed the following command: C:\> SQLPLUS scott/tiger@10g While executing the command, you received the following error message: ORA-12154: TNS:could not resolve the connect identifier specified. Why did the error occur? The syntax of the command is incorrect. The listener is running on the Oracle server. The port number used by the new listener is already in use. The connect identifier supplied does not exist in the tnsnames.ora file. A listener is not available to listen to the service name mentioned in the tnsnames.ora file.

Question 4 :
You want to know the uptime duration of your default listener. Which command-line command can you use to determine the uptime duration of the default listener? lsnrctl stop lsnrctl start lsnrctl status lsnrctl services

Question 5 :
You are a database administrator in your company working on the ADMIN database. There are 25 users in the office that must access this database by using the TCP/IP protocol. You must configure the database so that these users can access the database from their local computers. You are using Database Control to configure the naming methods. Configuring which naming method would involve the least administrative overhead in this scenario? Local naming method External naming method Directory naming method Easy Connect naming method

Question 6: You have updated the listener.ora file in your database to contain the information about the newly created listener L1. Which four pieces of information present in the listener.ora file specifically pertain to the L1 listener? (Choose four.) the location of the datafiles in the instance an indicator of whether or not the listener was dynamically registered the services for which the listener is listening the password configured for securing the listener the location of the ORACLE_HOME of the instance the parameters in the parameter file that are specific to the listener the protocol address on which the listener is accepting connection requests Question 7: You have created a listener by using Database Control and configured a listener named LSR2. Later, you issued the following command: C:\> SQLPLUS scott/tiger@10g While executing this command, you received the following error message: ORA-12541: TNS:no listener. Why did the error occur? The syntax of the command is incorrect. A listener does not exist in the Oracle database. The service name supplied does not exist in the tnsnames.ora file. A listener is not available to listen to the service name mentioned in the tnsnames.ora file

Question 8 You have configured a listener named LSNR1 using Database Control. The listener is listening for two of your databases, MASTERDB and EMPDB. You create a new database, SALESDB, and then modify the listener.ora file for LSNR1 to ensure that LSNR1 also listens for the SALESDB database. Finally, you issue the following command from the lsnrctl utility: LSNRCTL> RELOAD LSNR1 What does this command do? The command resets the listener, LSNR1, to listen only for the SALESDB database. The command stops the listener, LSNR1, and starts it with the new settings defined in the listener.ora file. The command dynamically resets the listener, LSNR1, with the new settings and rules defined in the listener.ora file. The command starts the listener, LSNR1, with the new settings defined in the listener.ora file, and resets all the client connections. Question 9 : You are working on database FINDB1 with approximately 250 users. You want to modify the naming method to centrally store the data that is required for connection requests, to make changes in the Oracle Net service configurations. You also want to ensure that doing this does not generate a lot of overhead, considering that you have a considerable number of users in your database. Which naming method should you use in this scenario? Local naming method Host naming method Easy Connect naming method External naming method Directory naming method Question 10 You must connect to the Oracle database by using the Easy Connect method. The service name is ORCLDB and the host name is ORACLESERVER. SCOTT is the user whose password is tiger. Which statement will enable you to connect to the user SCOTT's schema in the Oracle database? CONNECT scott/tiger@orcldb CONNECT scott/tiger@orcldb:1521 CONNECT scott/tiger@oracleserver CONNECT scott@oracleserver:1521/orcldb

You might also like