Hibernate ORM and Oracle Database Administration

Covers Hibernate ORM framework configuration and mapping, plus Oracle database administration topics including authentication, networking (TNS, Listener), system privileges, and data dictionary views

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What Type of Encryption Algorithm is used by Oracle

  1. DES
  2. KERBEROS
  3. RSA
  4. All the Above
Question 2 Multiple Choice (Single Answer)

The File that contains the server side network parameters

  1. INIT.ORA
  2. SQLNET.ORA
  3. LISTENER.ORA
  4. TNSNAMES.ORA
Question 3 True/False

Ping when compared to TNS ping is FAST

  1. True
  2. False
Question 4 Multiple Choice (Single Answer)

If the Listener is shutdown while the database is still running, what is the state of existing connection

  1. The Connections also get closed along with listener.
  2. The Connections close as and when the open transaction completes
  3. The Existing connections are left untouched as the listener only initiates the connections
  4. None of the Above
Question 5 Multiple Choice (Single Answer)

I must access a remote database using the SQLPLUS client executable

  1. I can connect only if there is a TNS entry in the server where the client executable resides
  2. I can connect only if there is a TNS entry in the server where the database resides
  3. No need for a TNS entry at all
  4. The Listener.ora will take care of the connection
Question 6 True/False

I am accessing SQLPLUS from a Server SRV01. My database D01 also resides on the same server. I need a TNS entry in that server so that my database is identified

  1. True
  2. False
Question 7 True/False

enterprise users can be given access to multiple schemas and databases without having to create an account or schema in each database.

  1. True
  2. False
Question 8 True/False

If an User is Identified by OS, he can connect to the database with SQLPLUS -S / as SYSDBA

  1. True
  2. False
Question 9 True/False

In Oracle World User is authentication, Schema is authorization

  1. True
  2. False
Question 10 Multiple Choice (Single Answer)

The Oracle supplied Utility that is used for modifying a password file

  1. LSNRCTL
  2. PWDMOD
  3. SVRMGRL
  4. ORAPWD
Question 11 Multiple Choice (Single Answer)

REMOTE_LOGIN_PASSWORDFILE parameter can have

  1. SHARED
  2. EXCLUSIVE
  3. NONE
  4. All the Above
Question 12 True/False

Password File Authentication, takes precedence over OS Authentication

  1. True
  2. False
Question 13 Multiple Choice (Single Answer)

What is the Data Dictionary view that will show the details of Initialization Parameters

  1. V$database
  2. V$parameter
  3. V$parameter2
  4. v$instance
Question 14 Multiple Choice (Single Answer)

A user U01 is logging in with his ID What data dictionary view will give details on available system privileges for him

  1. ALL_SYS_PRIVS
  2. USER_SYS_PRIVS
  3. ALL_ROLE_PRIVS
  4. USER_ROLE_PRIVS
Question 15 Multiple Choice (Single Answer)

what is the use of hibernate.cfg.xml in Hibernate?

  1. To create the connection pool and setup required environment
  2. To configure bean management setup environment
  3. To talk to the database directly with out this configuration file
  4. To create an object and map the data with corresponding object
Question 16 Multiple Choice (Single Answer)

__________ allows application to create the Hibernate Sesssion by reading the configuration from hibernate.cfg.xml file

  1. Session
  2. ApplicationContext
  3. SessionFactory
  4. Hibernate Object
Question 17 Multiple Choice (Single Answer)

How to create SessionFactory instance, which one is correct in the below.

  1. SessionFactory sessionFactory = new Configuration().configure();
  2. SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
  3. SessionFactory sessionFactory = new Configuration().configure().sessionFactory();
  4. SessionFactory sessionFactory = new Configuration().buildSession();
Question 18 Multiple Choice (Single Answer)

Wich one is the first or root element of hibernate mapping document ______________

  1. <hibernate-mapping> element
  2. <mapping-hibernate> element
  3. <hibernate-mapping-source> element
  4. <hibernate-mapping-object> element
Question 19 Multiple Choice (Single Answer)

Identify the list of some commonly used generators in hibernate

  1. increment, identity, sequence, hilo, uuid
  2. decrement, identify, sequence, hilote, uuid
  3. generator, factory, series
  4. incrementObject, sequence, hilote, uuids
Question 20 Multiple Choice (Single Answer)

____________ represents an entire set of mappings of an application's Java types to an SQL database.

  1. org.hibernate.cfg.configuration
  2. org.hibernate.cfg.configuration.Session
  3. org.hibernate.Configuration
  4. org.hibernate.cfg.Configuration