Tutorials
Oracle 10g
Oracle 10g Free Training - Defining and Creating Tablespaces
Oracle 10g Free Training - Defining and Creating Tablespaces - Page 2Oracle 10g Free Training - Defining and Creating Tablespaces:This tutorial provides detailed steps with introduction to tablespaces, Datafiles and Creating Tablespaces using three ways via SQL Plus, iSQL Plus and Enterprise Manager and also demonstrates the differences in creating the tablespaces using these 3 methods.
Each Oracle database is divided into one or more logical units called tablespaces. A tablespace is a logical grouping of related data.
Each database has at least one Tablespace called SYSTEM Tablespace. As part of the process of creating the database, Oracle automatically creates the SYSTEM tablespace. Although a small database can fit within the SYSTEM tablespace, creating a separate tablespace for user data is recommended.
A database administrator can use Tablespaces to do the following:
Data is stored in the Oracle database in form of files called as datafiles. Each Tablespace is a collection of one or more Datafiles. Each data file consists of ‘Datablocks’, ‘Extents’ and ‘Segments’.
Some systems put a limit on the number of datafiles that can be used. So, efficient definition of tablespaces and datafiles is important.
There are three ways to create a tablespace in Oracle10g: Using SQL Plus, Using iSQL Plus, Using Enterprise Manager.

Figure -1 Creating Tablespaces using SQL Plus
Note: Oracle10g provides a facility to alert the DBA about filling up of table space, based on the values of tablespace thresholds. This will alert the DBA when the tablespace fills up to ‘Warning’ and ‘Critical’ levels. To activate these alerts, set the thresholds using the following code.
1. To connect to iSQL*PLUS, open the Internet Explorer and enter the following URL.
http://
Figure -2 Creating Tablespaces using iSQL Plus
Note: The tablespace thresholds can be set in iSQL Plus using the following code:
BEGIN DBMS_SERVER_ALERT.SET_THRESHOLD(9000,NULL,NULL,NULL,NULL,1,1,NULL,5,'TESTTBLSPC');
END;
Next Page: Oracle 10g Free Training - Defining and Creating Tablespaces - Page 2
|
HELLO- i get this message: ORA -01119: error in creating database file 'C:ORACLEPRODUCT10.1.0ORADATAORCLTESTDTFL' ORA-27040: file create error, unable to create file OSD - 04002: unable to open file O/S - Error: (OS 3) The system cannot find the path specified. do i have to change the command path??? |