Click here to Skip to main content
15,887,936 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,
While installing the new SqlServer, it ask me to create an Instance. I have basic knowledge about an instance but I couldn't figure out what is the difference between a database and instance.

While searching in the net, what it describes is
Instance- Software (memory) that holds the database.
Database- Has data and metadata

and more over many instance can be mapped to single database but single instance can have only one database.

Can anybody tell, how instance and database differ in depth? What are the major use of both.

Thanks 4 your Reply
Posted

1 solution

Database: A collection of physical operating system files or disk. When using Oracle 10g Automatic Storage Management (ASM) or RAW
partitions,the database may not appear as individual separate files in the operating system, but the definition remains the same.

Instance: A set of Oracle background processes/threads and a shared memory area, which is memory that is shared across those threads/processes running on a single computer. This the place to maintain volatile, nonpersistent stuff (some of which gets flushed to disk).A database instance can exist without any disk storage whatsoever. It might not be the most useful thing in the world, but thinking about it that way will definitely help draw the line between the instance and the database.

Check this LINK for more information.
 
Share this answer
 
Comments
Sudhakar Shinde 31-May-13 1:51am    
Link is (http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1631683800346891854)
Prasaad SJ 11-Jun-13 4:53am    
Thanks 4 the link.That is so useful

So in brief, Instance are more like thread of the program which holds the database. So instance does not have any data that is in the database.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900