sila bus oracle

Upload: christiantorres3

Post on 08-Aug-2018

246 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/22/2019 Sila Bus Oracle

    1/7

    ^baco

    S.1 SQL Fundamenta! i1 . In t roduct ion

    Qrenrw of Oracle Datbase 11g and reated products* O v e r v e w o f r e l at i o n a l d a t b a s e m a n a g e m e n t c o n c e p t s and te r rmno teg ies* frroduction lo SQL and lis developmen environm mis The HR s c h e m a an d th e te t les u s e d in t h i s c o u r s e* Oracle Datbase documentaron and addltional rezurces

    2. Retr i eve Data U s i n g the SQL S E L E C T S t a t emmt List the eapabilities of SQL SELECT ssAemeris Gen r at e a repor t o f dat a frorn the output o f a bas c S E L E C T s i a t e m e n l* sage of adthmelic expressions and ULL vales* I m p l e m e n G o f u m n a l i a s e s* Describe the concatenaron operaior, literal character strings, alternativa quoie

    opera to r , and th e DiSTNCT k e y w o r d* DispSay the able strudure using the DESCRIBE comman3. R e s t r i c t and Sort Data

    * Write queras wih a WHERE clause to mit the output rdreved* U s e t h e c o m p a r i s o n opera to rs and Iog i ca l opera to rs* ideniify the rules o f prced&nce for comparison and Iogical operators s a g e of c h a r a c t e r s t r ng l i tera ls in the VVHERE c l a u s e* Wre que res with an O R D E R BY clause* S o r t OLput i n d e s c e n d i n g a n d a s c e n d i n g order* Substuion Variables

    4 . Us e S i n g i e - R c w F u n c t i o n s to Customze Oucpot* Dfferentsate beween single row and mltiple row functions hAampiAme s t r i n g s u s i n g character funct ions* Maniplate numbers with fre ROUND, TRUNC, and MOD functions Per fo r m a r i t hmet c w i th da te da ta* Manipula! e date s with t he DA TE functions

    5. Convers in F u n c t i o n s and Condt ionaf E x p r e s s i o n s* Describe implicit and explicit dala type conversin D e s c r i b e T O j C H A R , TO_NUMBER, an d T O L D A T E c o n v e r s i n f u n c t i o n s* Nesing m ultlple functions Appfy he NVL : NULUF, an d COALESCE f u n c t i o n s to ^a

  • 8/22/2019 Sila Bus Oracle

    2/7

    mAbacolMl f i it$f l t BM^HBII j up i a r TjflMn&tffcifr H1feigg

    * Use cooyliooa! F THEN ELSE logio8. Ayg feg fed Dala U t f n g G r o u p F u n c t i o n s

    * How aggregation fundios help to produce nieaningfu! reports?* U s e the AVG.: SUM, MiN, and MAX f u n c t i o n* How to handle Nuil Vales in a group function?* Div id e th e dat a n g r o u p s by u s i n g t h e G R O U P B Y c l a u s e* Bcofude groups o date by using the HAV1NG clause

    7. Dtpfay Dala Froni Mllttiple Tibies 0 s i ng J -sirts* Wme SELECT stafements to acoess data from more than one table* J oln Tablas Using SQL: 1998 Syntax* View data that d o e s not m e e * a jo in o o n d S i o n by u s i n g o u t e r j o i n s* Jmn a table to Itsaf by using a self join* C r a t e C r o s s J o i n s

    S . l i t e Sb^qy^f ls io S o l v e Q u e d e s* Use a Subcjuefy to Solve a Probiem Execue Singe-Row S u b - q u e r i e s* Depioy Group Fundais in a Sub-queiy Mumpie-Rqw S u b q u e r i e s* Use ANY a n d ALL Operator in Multiple- R o w Sub-queries U s e E X i S T S O p e r a t o r

    i. SET Operalors* Wha are S E T operators? U s e a S E T o p e r at o r to c o m b i n e mul t p ie quer es in to a s i n g l e q u e ? v* Use UNION. UMON ALL, INTERSECT, and M I N U S Operator* u s e O R D E R B Y C a u s e i n S e l O p e r a t i o n s

    10. Dala Marilpufaton* Add New Rows to a Tabla* Change the Dala in a Table* U s e D E L E T E a n d T R U N C A T E S t a t e m e n t s* Save and dscard changes with the COM&I T and RGLLBACK statements* I m p l e m e n t R e a d C o n s i s t e n c y* escribe the POR UPDATE Clause11. t s e DDL St atem ent s to Crat e an d Mana-ge Tabf es* Cateyoriza Datbase Objects* C r a t e T a b i e s u s i n g t h e CREATE TABLE S t a t e m e r t* Identify the ata types D e s c r i b e C o n s t r a n t s

  • 8/22/2019 Sila Bus Oracle

    3/7

    SiAbgco H o w a l i e r a t a b l e ?

    12 . Oihe r Sche i i i a Ofal&cs# C rate, mo fy, and rdri e v^ data from a view# P e r f o r m D a t a m a n i p u a t o n i a n g u a g e ( D M L ) o p e r a o n s o n a v i e w Drop a ve w* O r at e , u s e , an d roodfy a s e qu e nc e C rate an d malnialn ndexes* C rate an d drop synonyms

    1. Infroducton* C ourse P rerequisites C o u r s e A g e n d a* Hu man R esources ( H R ) Scheroa Revew o f U s i n g O r a c l e S Q L D e v e i o p e r* S Q L S atements in S Q L*P fus* R evlew of sorne basic conce pta of S Q L

    * fdentsfy the S ystem and Oqjec t P rivileges* C r a te s e r s* Gtani S ystem P rveges C r a t e a n d G r a r tl P r i v i i e g e s t o a R o l e* Change Y our P assword G r & n O b j e c Privifeges* How to P ass O n Y our P riviieges?* R e v o k e O b j e c t P r i v ii e g e s

    3. f i f e n a g e me n t o f S e h e m a O b j e c s* A dd. M odtfy. and Drop a Coiumn* A d d , D r o p , a n d D e f e r a C o n s r a i n t* E nabte and Disa ble a G onsraint* Crate and Remove Indexes* C rate a F uncton-S ased ndex* P erform F iashba ck Op eration s* C r a t e a n E x te r n a ! T a b l e b y U s i n a O R A C L E _ L O A D E R a n a b v U s i n aO R A C L E J 3ATAPUMP* Q u e r y f c x t e m a l t a p ie s

  • 8/22/2019 Sila Bus Oracle

    4/7

    4 . Manage Objec ts wi th Data D i c t kmary V k w s* V^a! is he Data Diotionary? H ow to U s e h e Dc t ona rv V iews?* USERjQBJ ECTS and ALLJ 3BJ ECTS Views* view Table a n d C o i u m n Information* Query the dictionary views for constraint informaion* Qu ery the dict tonary v i e w s f o r view, sequen c e , ndex a n d s y n o n y m Information* Add a comment to a table* Query the dictionary views for comment informaion

    5. Maolpu!atfc- L a r y e Dala S e i s* Use Subqueries toManiplate Data* Retrieve Data U s i n g a Subquery as Souroe man ata Usina a Subquery as a Target* List the types of Multitabie INSERT Saemens

    * WSiat areTime Zones?* I he C U ~ R E N T _ D A T E , CURR ENTTIMESTAMP , and LO CAL T! MESTAMPf i m c i f o n s Compare Date and Time in a Sesson s Time Zoos* Descr ibe DBTMEZONE and S ES S ON T M EZON E* List the differences belween DATE and UMESTAIMP* denfy the INTERVAL Data Types* U s a g e of E X T R A C T , T ZJ D F FS E T a n d F R O M T Z f u n c t i o n s* Use TQ_T!?W!ESTAMP, TO_Y MINTERVAL, and TGJ 3SINTERVAL

    7. R e t r i s v s Data Using Subqyeifes* Multipie-Coumn Subqueries* P a i r w i s e a n d N o n p a i r w i s e C o m p a r i s o n* Usage of Soalar Subqueiy Expressions* Solve prob ems w i th Cor re fa ted S u b q u e r i e s* Update and Delete Rows Using Correlated Subqueries U s e h e EX1STS a n d NOT EXfSTS operators* Use the WITH clause* Use Recursive WiTH clause

    8. Regular E x p r e s s i o n S u p p o i t* liwoke Regular Expressions Functions and Condifons In SQL* f m p l e m e n t Meta Characters with Regular Expressions

  • 8/22/2019 Sila Bus Oracle

    5/7

    * Perfom a Basic S earch using he R E G E XP J UK E unction* Pgid p a t t e r n s using the R E G E X P _ f N S T R function* Exrac S ubsringsTusing the R E G E XP J S UB S TR function* Rspfaee P a er ns U s i ng th e R E G E X P _ R E P L A C E f u n c t i o n* How to use S ub-Expiessions m ih Regula Expression Support? T h e R E G E X P C O U N T function

    S .3 P L / S Q L r o f i d e m e n m l s1. I n i f o d o c t l e n

    C o u r s e Objec i ves C o u r s e A g e n d a* Human R e s o u r c e s (HR) Schema I r i r o d u c o n t o S Q L D e v e l o p e r

    2 . n t r o d u c t i o n t o P L / S Q L# P U5Q L Q v e a i e w* Bene f it s o f P L / S Q L S u b p r o g r a m s G v e rv i e w o f th e T yp e s o f P L / S Q L b i o c k s* C r a te a S i m p le A n o n y m o u s S t o c k G e n r a l e O u i p u t f r o m a P U S Q L 9 * o c k

    3. P L / S Q L Idntl f lfB# L ist the di f fe ren Types o f Iden f ie r s in a PL/SQL subprogram U s a g e o f t h e D e c a r a i v e S e c t o n t o d e f i n e d e n t i f i e r s Us e v a r i a b le s t o s t o r e data* fdent fy S caar Data Types T n e % 7 Y P E At i r tbu te* \Nhai a re Bk id V a r i a b l e s ? S equences in P U S Q L Expressions

    4 . Mfiite E j e c u t a b l e S ta temen st Describe Basic P L /SQ L B t o c k S ynfax GukJ elines C o m m e n t C o d e* Dep loymen t o f S Q L F u n c t i o n s in P L / S Q L H o w t o c o n v e r t Data T y p e s ? N ese d Biocks# Identify th e Operators i n P L / S Q L

    5 . Internet o n wi th h e O r a c l e S e r v e ri lavotee S E L E C T Sa emen s in PL/SQL to Retrieve data* Data M anipularon i n the S e r v e r Using P L / S Q L

    http://nhai/http://nhai/http://nhai/
  • 8/22/2019 Sila Bus Oracle

    6/7

    j Abaco _* ' s a g e o f S Q L C u r s o r A f t r fc u t e s t o ObXmin F c c d b a c k o n DM L S ave and Ds card Transac ions

    S . C o i 3 S t r u c t u r e s* C ondiional processing Us ing IF S aiemen s C o n d o na p ro c e s s in g U s i ng C A S E S ta ie ro e nts* Us e simple L oop S tatemen U s e VWhfe L o o p S i a te m e nt* Use For L oop S tatemen* D e s o r f o e t h e C o n t i n u S t a t e m e n t

    ? . C o m p o s l e D a t a T y p e s* Use P US Q L Records The %R OW TY P E Aribue# Inser and Update with P L /S Q L R ecords* A s s o c a t v e A r r a y s ( N D E X B Y T a b l e a ? E xamine N DE X BY Table M ebodsm m Use INDEX BY Table of Re. g |

    S . E x p i c i C u r s o r s V5/hat are E xplkit C urs ors ?

    * FOR UP DATE C lause and WHE R E CURR EN T ClauseS . E x c e p o n H a n d l i n g

    * Unde rsland E xcpticos* H e r i d l e - c e p t ion s w h P L / S Q L* Tfap P redefined Oracle S erver E rrors* T m p N o n - P r e d e f i n e d O r a c l e S e r v e r Error?* Trap Us er-Defined E xcepions* P r o p a q a t e E x c e p H o n s* R A I S E _ A P P L ! C A T I O N _ E R R O R P r o c e d u r e

    10. S i o r e d F r o c e d u r e s a n d F u n c t i o n s* lin dar stand S t o r e d P Tocaduras and Functions* Differeniate be ween anonymou s biocks an d subprograms* C r a t e a S i m p l e P r o c e d u r e* Ceme a S imple Proce dure with !N p arameter

  • 8/22/2019 Sila Bus Oracle

    7/7

    mAoac^

    S .4 O R A C L E F o r m s D e v e o p e r* inroductionan Oracle F onns Deveo perS uite l i s O r a c e D e v e o p e r e n l a w e b : F o r m s & Reports S e r v i c e s* B entorno de F orms Builder* C reacin y ejecucin de un M dulo F o r m s* S o q u e s d e d a t o s y M a r c o s* E lementos de u n formulario* Disparadores C o n t r o l d e V e n t a n a s y L i e n z o s* E lementos adicionales a m formulario: Alertas. Grupos