What is a: 1) database instance? 2) database listener
In Oracle-speak, the database is made of the disk files that hold your data. These datafiles may hold tables, indexes, passwords, configuration information or information about the database in the control files.
When you start an Oracle database, you allocate memory on the server and start up various processes that manage the database for you. These processes and the allocated memory are referred to as the Oracle INSTANCE. Until you have an instance running, you just have datafiles with unaccessible data. Once you start an instance of the database, you can then begin to access the data.
Many times, users and applications connect to the database from a machine outside of the database server. These users or applications request a connection be made to the database. The database listener runs on the database server listening for connections. Once the listener detects a connection request, it sets up any needed processes on the server to get the connection up and running. Once the user or application is connected to the database, the listener hangs around listening for new connection request. This is similar to a Web server listening for HTTP requests.
For More Information
- What do you think about this answer? E-mail the editors at editor@searchDatabase.com with your feedback.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
Dig Deeper on Oracle database design and architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.