Computer Knowledge
Database Management Systems
5,543 Questions
Database Management Systems (DBMS) form the core framework for data storage, retrieval, and security in modern software applications. Concepts such as the E-R model, backup planning, SQL integration, and big data architecture are essential for computer knowledge sections. This hub offers a comprehensive set of practice questions to master DBMS fundamentals and advanced database operations.
E-R Model ConceptsBackup and RecoverySQL Server UpgradesJDBC and ODBCBig Data CharacteristicsData VirtualizationOracle Database
Database Management Systems Questions
-
It’s a Super user with permission to application server administration
-
A PSFT access id is the Database user id used to connect to the DB
-
It’s a DB user with DBA access
-
User with permission to start DB
B
Correct answer
Explanation
A PeopleSoft access ID is the database user ID used to establish the connection between the application server and the database. This ID typically has elevated privileges and is used for all database operations after the initial user authentication.
-
A duplicate of a database with the different replication ID number as the original database.
-
Is the process of making replicas identical.
-
lets users on various networks in a variety of (physical) locations share the most current version of information in a
-
Both b and c.
D
Correct answer
Explanation
Replication in database systems serves two key purposes: making copies identical (option B) and enabling users across different locations to access current information (option C). A true replica would have the same replication ID, not a different one (option A is false). Therefore option D (Both b and c) is correct.
-
It always sends any change back to the original database.
-
Is similar to that of replication.
-
Does not contain all documents and design elements in the original database.
-
It frees up space and improves the performance of your mail.
D
Correct answer
Explanation
Archiving in email systems removes older messages from the active mailbox, storing them separately to free up space and improve performance. Unlike replication, archives are typically one-way and do not synchronize changes back to the original database. Archives contain a subset of documents, not all documents and design elements.
-
INIT.ORA
-
SQLNET.ORA
-
LISTENER.ORA
-
TNSNAMES.ORA
C
Correct answer
Explanation
LISTENER.ORA is the server-side configuration file that contains network parameters for the Oracle Net Listener, including the listener address, port, service names, and protocol settings. INIT.ORA contains database initialization parameters, SQLNET.ORA is for client-side SQL*Net configuration, and TNSNAMES.ORA is a client-side file for database service name resolution. The listener.ora file is specifically responsible for defining how the listener accepts network connections.
-
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
C
Correct answer
Explanation
When the Oracle listener is shut down, existing database connections remain unaffected because the listener's role is ONLY to initiate new connections - it doesn't maintain or manage existing connections. Once a connection is established, communication occurs directly between the client and the database instance. The connections won't close immediately, won't close when transactions complete, and will continue operating normally. Only new connection attempts will fail until the listener is restarted.
-
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
A
Correct answer
Explanation
To use SQLPLUS to connect to a remote Oracle database, you need a TNS (Transparent Network Substrate) entry on the CLIENT side (where SQLPLUS executable resides), not the server side. The TNS entry in tnsnames.ora on the client machine tells SQLPLUS how to reach the remote database - the host, port, service name, and protocol. Without this client-side TNS entry, SQLPLUS doesn't know where to connect. The server's TNS configuration is irrelevant for the client connection attempt.
B
Correct answer
Explanation
When SQLPLUS and the database reside on the same server, you don't need a TNS entry. You can connect using the BEQ protocol (bequeath/local connection) with syntax like 'sqlplus / as sysdba' or 'sqlplus username/password'. The BEQ protocol uses inter-process communication directly without going through the network listener or TNS. TNS entries are only required for remote connections across the network. Local connections bypass the TNS layer entirely.
B
Correct answer
Explanation
The statement is false. Enterprise users in Oracle DO require database accounts and schema creation in each database they need to access. Enterprise User Security (EUS) provides centralized user management across databases, but each database must still have a schema/user account mapped to the enterprise user. The enterprise user is authenticated centrally (often through LDAP/directory), but authorization (schema access, privileges) requires database-level schema objects. There's no magic way to bypass the need for database accounts entirely.
B
Correct answer
Explanation
The statement is false. Even if a user is IDENTIFIED EXTERNALLY (OS authentication), they cannot connect with 'sqlplus -S / as SYSDBA' without being explicitly granted SYSDBA privileges. The '/' syntax allows OS-authenticated users to connect, but only if they have a corresponding database account with appropriate privileges. A user identified externally still needs proper SYSDBA grant to use 'as SYSDBA'. Without this grant, the connection attempt will fail regardless of OS authentication.
-
ALL_SYS_PRIVS
-
USER_SYS_PRIVS
-
ALL_ROLE_PRIVS
-
USER_ROLE_PRIVS
B
Correct answer
Explanation
USER_SYS_PRIVS shows the system privileges granted specifically to the current user. ALL_SYS_PRIVS would show all system privileges in the database (not filtered for the user). The ROLE_PRIVS views are for role privileges, not system privileges. For user U01 checking their own system privileges, USER_SYS_PRIVS is correct.
-
increment, identity, sequence, hilo, uuid
-
decrement, identify, sequence, hilote, uuid
-
generator, factory, series
-
incrementObject, sequence, hilote, uuids
A
Correct answer
Explanation
Hibernate provides built-in ID generation strategies called generators. Commonly used generators include increment (generates identifiers incrementally), identity (uses database identity column), sequence (uses database sequence), hilo (high/low algorithm), and uuid (generates UUIDs). The other options contain either incorrect names or mix of unrelated terms.
-
org.hibernate.cfg.configuration
-
org.hibernate.cfg.configuration.Session
-
org.hibernate.Configuration
-
org.hibernate.cfg.Configuration
D
Correct answer
Explanation
In Hibernate, the Configuration class (org.hibernate.cfg.Configuration) represents the complete set of object-relational mappings between Java types and SQL database tables. It is responsible for reading configuration files (hibernate.cfg.xml or hibernate.properties) and mapping files, creating the SessionFactory. The other options either use incorrect package names or incorrectly add '.Session' suffix.
-
Control file authentication
-
Password file authentication
-
Data dictionary authentication
-
Operating system authentication
B
Correct answer
Explanation
When connecting to Oracle over a non-secure network connection (without OS authentication support), Oracle uses password file authentication for privileged connections like SYSDBA. The password file stores credentials of users with SYSDBA/SYSOPER privileges. OS authentication works only when the client is on the same host as the database or has a trusted secure connection. Control files store database structure, not authentication data.
-
The resulting index may contain deleted entries.
-
A new index is built using an existing index as the data source.
-
Queries cannot use the existing index while the new index is being built.
-
During a rebuild, sufficient space is needed to accommodate both the old and the new
B,D
Correct answer
Explanation
Rebuilding an index creates a new index using the existing index as the data source, requiring sufficient temporary disk space to hold both the old and new indexes simultaneously. The new index will not contain deleted entries, and online rebuilds allow concurrent queries.
-
STARTUP
-
STARTUP OPEN
-
STARTUP MOUNT
-
STARTUP NOMOUNT
D
Correct answer
Explanation
STARTUP NOMOUNT is used when creating a new database because it starts the instance (SGA and background processes) without mounting a database. At this stage, Oracle reads the parameter file but doesn't look for a control file (which doesn't exist yet for a new database). STARTUP MOUNT requires an existing control file, STARTUP OPEN requires an existing database, and plain STARTUP is equivalent to STARTUP OPEN.