12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4Database Objects: Usage InformationThis topic discusses creating and managing database objects in your schema, plusdesign considerations and indexing guidelines when developing applications with<strong>Oracle</strong> Database. It contains the following topics:■■■■■■Overview of Managing ObjectsManaging TablesManaging IndexesManaging ViewsManaging SequencesManaging SynonymsSee Also:4.1 Overview of Managing Objects■<strong>Oracle</strong> Database <strong>SQL</strong> Reference for information about databaseobjects, object names, and data types.You need to create tables, indexes, and possibly other database objects in a schemabefore you start developing your application. A schema is a collection of databaseobjects. A schema is owned by a database user and has the same name as that user,such as the HR schema. Schema objects are logical structures created by users. Objectscan define areas of the database to hold data, such as tables or indexes, or can consistjust of a definition, such as a views or synonyms.Database Objects: Usage Information discusses tables, indexes, views, sequences, andsynonyms. Other database (schema) objects include functions, packages, procedures,and triggers. Functions, packages, and procedures are discussed in Subprograms andPackages: Usage Information. Triggers are discussed in Triggers: Usage Information.Some object types have many more management options than others, but most have anumber of similarities. Every object in the database belongs to just one schema and hasa unique name within that schema. Therefore, when you create an object, you mustensure it is in the schema where you intend to store it. Generally, you place all of theobjects that belong to a single application in the same schema.A database object name must abide by certain rules, including the rule that it must beunique within its schema. For example, object names cannot be longer than 30 bytesand must begin with a letter. If you attempt to create an object with a name thatviolates any of these rules, then <strong>Oracle</strong> raises an error.Database Objects: Usage Information 4-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!