SlideShare a Scribd company logo
1 of 2
Oracle Data Dictionary Views

     Stores all the information that is used to manage the objects in the database
     Source of valuable information for developers and db users
     USER_*, ALL_*, DBA_*

SYS.DICTIONARY : lists all the objects that make up the data dictionary

SYS.USER_TS_QUOTAS : lists all the tablespaces and how much can be used/is used

SYS.USER_OBJECTS : lists all the objects created in the users schema

SYS.USER_TABLES : lists all the tables created in the users schema

SYS.USER_VIEWS : lists all the views created in the users schema

SYS.USER_CONSTRAINTS : lists all the constraints(PK,FK , Check, Unique e.t.c) created on the users
objects

SYS.USER_SYS_PRIVS : lists system privileges

SYS.USER_ROLE_PRIVS : lists roles granted to the user

Access Remote Data ( Database Link )

A database link is an object in the local data base that allows you to access objects on a remote
database .

Database Link Syntax

Create database link remote_connect

Connect to user_account identified by password

Using ‘Connect String ‘ ;

Access tables or views over a database link (view USER_DB_LINKS)

Select * from emp@remote_connect;

Restrictions to the queries that are executed using db link: avoid CONNECT BY, START WITH, and PRIOR
Synonyms

     Synonyms are aliases for tables, views , sequences (View USER_SYNONYMS)
     Create Synonym syntax for remote table/view

Create Synonym emp_syn for emp@remote_connect;

Use Synonyms in order to

: simplify queries

: achieve location transparency- hide exact physical location of a database object from the
user(application)

: simplify application maintenance

Example of accessing a table over a db link with a Synonym

Select * from emp_syn;

Grant/Revoke Privileges

DBA’s can grant/revoke any administrative privilege

Create session, Create tables, views, sequences, e.t.c.

The Developer can grant/revoke privileges on the objects they own

Select/insert/update/delete/execute

Access can be granted on db objects , tables or columns

Grant select on

More Related Content

What's hot

Kp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan userKp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan userDesty Yani
 
SQL Tutorial - How To Create, Drop, and Truncate Table
SQL Tutorial - How To Create, Drop, and Truncate TableSQL Tutorial - How To Create, Drop, and Truncate Table
SQL Tutorial - How To Create, Drop, and Truncate Table1keydata
 
Starburst by Umar danjuma maiwada presentation
Starburst by Umar danjuma maiwada presentationStarburst by Umar danjuma maiwada presentation
Starburst by Umar danjuma maiwada presentationumardanjumamaiwada
 
Oracle apps financial online training
Oracle apps financial online trainingOracle apps financial online training
Oracle apps financial online trainingmagnifics
 
MySQL USER MANAGEMENT,ROUTINES & TRIGGERS.
MySQL USER MANAGEMENT,ROUTINES & TRIGGERS.MySQL USER MANAGEMENT,ROUTINES & TRIGGERS.
MySQL USER MANAGEMENT,ROUTINES & TRIGGERS.Prabhu Raja Singh
 
Web app development_my_sql_08
Web app development_my_sql_08Web app development_my_sql_08
Web app development_my_sql_08Hassen Poreya
 
Sql basic things
Sql basic thingsSql basic things
Sql basic thingsNishil Jain
 

What's hot (11)

DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with ExamplesDML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
 
Kp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan userKp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan user
 
SQL Tutorial - How To Create, Drop, and Truncate Table
SQL Tutorial - How To Create, Drop, and Truncate TableSQL Tutorial - How To Create, Drop, and Truncate Table
SQL Tutorial - How To Create, Drop, and Truncate Table
 
my sql
my sqlmy sql
my sql
 
ADBMS Unit-II c
ADBMS Unit-II cADBMS Unit-II c
ADBMS Unit-II c
 
Starburst by Umar danjuma maiwada presentation
Starburst by Umar danjuma maiwada presentationStarburst by Umar danjuma maiwada presentation
Starburst by Umar danjuma maiwada presentation
 
Oracle apps financial online training
Oracle apps financial online trainingOracle apps financial online training
Oracle apps financial online training
 
MySQL USER MANAGEMENT,ROUTINES & TRIGGERS.
MySQL USER MANAGEMENT,ROUTINES & TRIGGERS.MySQL USER MANAGEMENT,ROUTINES & TRIGGERS.
MySQL USER MANAGEMENT,ROUTINES & TRIGGERS.
 
Web app development_my_sql_08
Web app development_my_sql_08Web app development_my_sql_08
Web app development_my_sql_08
 
Sql basic things
Sql basic thingsSql basic things
Sql basic things
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 

Viewers also liked

Viewers also liked (16)

(Palabras presentación
(Palabras presentación(Palabras presentación
(Palabras presentación
 
Pngertian speaking
Pngertian speakingPngertian speaking
Pngertian speaking
 
Steve Jobs
Steve JobsSteve Jobs
Steve Jobs
 
App Video For Linked In
App Video For Linked InApp Video For Linked In
App Video For Linked In
 
Chankya
ChankyaChankya
Chankya
 
Ilmavaatlus
IlmavaatlusIlmavaatlus
Ilmavaatlus
 
Україна не подолає кризу без Росії
Україна не подолає кризу без РосіїУкраїна не подолає кризу без Росії
Україна не подолає кризу без Росії
 
Convocatoria Eleicoes DN PAN
Convocatoria Eleicoes DN PANConvocatoria Eleicoes DN PAN
Convocatoria Eleicoes DN PAN
 
Doc1
Doc1Doc1
Doc1
 
poster_2_revised1
poster_2_revised1poster_2_revised1
poster_2_revised1
 
генпрокуратура о чурбакове
генпрокуратура о чурбакове генпрокуратура о чурбакове
генпрокуратура о чурбакове
 
Cheryl
CherylCheryl
Cheryl
 
Tema14
Tema14Tema14
Tema14
 
Literatura castellana
Literatura castellanaLiteratura castellana
Literatura castellana
 
чайке о чурбакове
чайке о чурбаковечайке о чурбакове
чайке о чурбакове
 
Amado Espíritu Santo de Dios
Amado Espíritu Santo de DiosAmado Espíritu Santo de Dios
Amado Espíritu Santo de Dios
 

Similar to Advanced db features

Database administration
Database administrationDatabase administration
Database administrationabhi_love
 
2nd chapter dbms.pptx
2nd chapter dbms.pptx2nd chapter dbms.pptx
2nd chapter dbms.pptxkavitha623544
 
Sql database development part 1
Sql database development part 1Sql database development part 1
Sql database development part 1Sqlperfomance
 
03_DP_300T00A_Secure_Environment.pptx
03_DP_300T00A_Secure_Environment.pptx03_DP_300T00A_Secure_Environment.pptx
03_DP_300T00A_Secure_Environment.pptxKareemBullard1
 
Database administration commands
Database administration commands Database administration commands
Database administration commands Varsha Ajith
 
DATABASE FUNCTIONS
DATABASE FUNCTIONSDATABASE FUNCTIONS
DATABASE FUNCTIONSghazi103
 
Chapter Five Physical Database Design.pptx
Chapter Five Physical Database Design.pptxChapter Five Physical Database Design.pptx
Chapter Five Physical Database Design.pptxhaymanot taddesse
 
Database models and DBMS languages
Database models and DBMS languagesDatabase models and DBMS languages
Database models and DBMS languagesDivyaKS12
 
Database Security Methods, DAC, MAC,View
Database Security Methods, DAC, MAC,ViewDatabase Security Methods, DAC, MAC,View
Database Security Methods, DAC, MAC,ViewDr-Dipali Meher
 
IS CH2 Database Management (p2)
IS CH2 Database Management (p2)IS CH2 Database Management (p2)
IS CH2 Database Management (p2)Jan Wong
 
Bank mangement system
Bank mangement systemBank mangement system
Bank mangement systemFaisalGhffar
 

Similar to Advanced db features (20)

Les13
Les13Les13
Les13
 
Database administration
Database administrationDatabase administration
Database administration
 
2nd chapter dbms.pptx
2nd chapter dbms.pptx2nd chapter dbms.pptx
2nd chapter dbms.pptx
 
[PHPUGPH] PHP Roadshow - MySQL
[PHPUGPH] PHP Roadshow - MySQL[PHPUGPH] PHP Roadshow - MySQL
[PHPUGPH] PHP Roadshow - MySQL
 
Sql database development part 1
Sql database development part 1Sql database development part 1
Sql database development part 1
 
Dbms notes
Dbms notesDbms notes
Dbms notes
 
Les01
Les01Les01
Les01
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
 
Database concepts
Database conceptsDatabase concepts
Database concepts
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
 
03_DP_300T00A_Secure_Environment.pptx
03_DP_300T00A_Secure_Environment.pptx03_DP_300T00A_Secure_Environment.pptx
03_DP_300T00A_Secure_Environment.pptx
 
Database administration commands
Database administration commands Database administration commands
Database administration commands
 
DATABASE FUNCTIONS
DATABASE FUNCTIONSDATABASE FUNCTIONS
DATABASE FUNCTIONS
 
Chapter Five Physical Database Design.pptx
Chapter Five Physical Database Design.pptxChapter Five Physical Database Design.pptx
Chapter Five Physical Database Design.pptx
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
 
Database models and DBMS languages
Database models and DBMS languagesDatabase models and DBMS languages
Database models and DBMS languages
 
Less07 Users
Less07 UsersLess07 Users
Less07 Users
 
Database Security Methods, DAC, MAC,View
Database Security Methods, DAC, MAC,ViewDatabase Security Methods, DAC, MAC,View
Database Security Methods, DAC, MAC,View
 
IS CH2 Database Management (p2)
IS CH2 Database Management (p2)IS CH2 Database Management (p2)
IS CH2 Database Management (p2)
 
Bank mangement system
Bank mangement systemBank mangement system
Bank mangement system
 

Advanced db features

  • 1. Oracle Data Dictionary Views  Stores all the information that is used to manage the objects in the database  Source of valuable information for developers and db users  USER_*, ALL_*, DBA_* SYS.DICTIONARY : lists all the objects that make up the data dictionary SYS.USER_TS_QUOTAS : lists all the tablespaces and how much can be used/is used SYS.USER_OBJECTS : lists all the objects created in the users schema SYS.USER_TABLES : lists all the tables created in the users schema SYS.USER_VIEWS : lists all the views created in the users schema SYS.USER_CONSTRAINTS : lists all the constraints(PK,FK , Check, Unique e.t.c) created on the users objects SYS.USER_SYS_PRIVS : lists system privileges SYS.USER_ROLE_PRIVS : lists roles granted to the user Access Remote Data ( Database Link ) A database link is an object in the local data base that allows you to access objects on a remote database . Database Link Syntax Create database link remote_connect Connect to user_account identified by password Using ‘Connect String ‘ ; Access tables or views over a database link (view USER_DB_LINKS) Select * from emp@remote_connect; Restrictions to the queries that are executed using db link: avoid CONNECT BY, START WITH, and PRIOR
  • 2. Synonyms  Synonyms are aliases for tables, views , sequences (View USER_SYNONYMS)  Create Synonym syntax for remote table/view Create Synonym emp_syn for emp@remote_connect; Use Synonyms in order to : simplify queries : achieve location transparency- hide exact physical location of a database object from the user(application) : simplify application maintenance Example of accessing a table over a db link with a Synonym Select * from emp_syn; Grant/Revoke Privileges DBA’s can grant/revoke any administrative privilege Create session, Create tables, views, sequences, e.t.c. The Developer can grant/revoke privileges on the objects they own Select/insert/update/delete/execute Access can be granted on db objects , tables or columns Grant select on