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
Questions
What Type of Encryption Algorithm is used by Oracle
- DES
- KERBEROS
- RSA
- All the Above
The File that contains the server side network parameters
- INIT.ORA
- SQLNET.ORA
- LISTENER.ORA
- TNSNAMES.ORA
Ping when compared to TNS ping is FAST
- True
- False
If the Listener is shutdown while the database is still running, what is the state of existing connection
- The Connections also get closed along with listener.
- The Connections close as and when the open transaction completes
- The Existing connections are left untouched as the listener only initiates the connections
- None of the Above
I must access a remote database using the SQLPLUS client executable
- I can connect only if there is a TNS entry in the server where the client executable resides
- I can connect only if there is a TNS entry in the server where the database resides
- No need for a TNS entry at all
- The Listener.ora will take care of the connection
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
- True
- False
enterprise users can be given access to multiple schemas and databases without having to create an account or schema in each database.
- True
- False
If an User is Identified by OS, he can connect to the database with SQLPLUS -S / as SYSDBA
- True
- False
In Oracle World User is authentication, Schema is authorization
- True
- False
The Oracle supplied Utility that is used for modifying a password file
- LSNRCTL
- PWDMOD
- SVRMGRL
- ORAPWD
REMOTE_LOGIN_PASSWORDFILE parameter can have
- SHARED
- EXCLUSIVE
- NONE
- All the Above
Password File Authentication, takes precedence over OS Authentication
- True
- False
What is the Data Dictionary view that will show the details of Initialization Parameters
- V$database
- V$parameter
- V$parameter2
- v$instance
A user U01 is logging in with his ID What data dictionary view will give details on available system privileges for him
- ALL_SYS_PRIVS
- USER_SYS_PRIVS
- ALL_ROLE_PRIVS
- USER_ROLE_PRIVS
what is the use of hibernate.cfg.xml in Hibernate?
- To create the connection pool and setup required environment
- To configure bean management setup environment
- To talk to the database directly with out this configuration file
- To create an object and map the data with corresponding object
__________ allows application to create the Hibernate Sesssion by reading the configuration from hibernate.cfg.xml file
- Session
- ApplicationContext
- SessionFactory
- Hibernate Object
How to create SessionFactory instance, which one is correct in the below.
- SessionFactory sessionFactory = new Configuration().configure();
- SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
- SessionFactory sessionFactory = new Configuration().configure().sessionFactory();
- SessionFactory sessionFactory = new Configuration().buildSession();
Wich one is the first or root element of hibernate mapping document ______________
- <hibernate-mapping> element
- <mapping-hibernate> element
- <hibernate-mapping-source> element
- <hibernate-mapping-object> element
Identify the list of some commonly used generators in hibernate
- increment, identity, sequence, hilo, uuid
- decrement, identify, sequence, hilote, uuid
- generator, factory, series
- incrementObject, sequence, hilote, uuids
____________ represents an entire set of mappings of an application's Java types to an SQL database.
- org.hibernate.cfg.configuration
- org.hibernate.cfg.configuration.Session
- org.hibernate.Configuration
- org.hibernate.cfg.Configuration