You are on page 1of 5

Object Privilege Topics

Putting in the Data

Our World IST DB Sharing objects


l Remember.
l An object is a entity that resides within the database that has properties (or attributes)

Synonyms and Grants


l Synonym: simply put a designation !or a database object that enables it to be re!erenced
l "wo "ypes: Public and Pri#ate

l $% $&'' (S% P()'&* S+,-,+.S -,'+

Grants
l Grant! a statement that allo"s access +ou /rant pri#ileges to objects in order !or other users to see or use them.

Building the Bridge Typical Grants #or IST $%&


l
Select l Allows the 0grantee to S%'%*" data !rom your object1

&nsert l Allows the 0grantee to &,S%R" data into your object1

Delete l Allows the 0grantee to D%'%"% data !rom your object1

/rants are done on a one by one basis to the user you designate. +ou can speci!y one pri#ilege or all three.

Synonym Synta'
l *R%A"% P()'&* S+,-,+. 2synonym name3 4-R 2object name3

%5ample: *R%A"% P()'&* S+,-,+. employee 4-R employee

Grant Synta'
l /RA," 2method3 -, 2object6name3 "- 2grantee3

l l l l

%5 /rant S%'%*" -, employee "- !ja788 /rant D%'%"% -, employee "- !ja788 /RA," A'' -, employee "- !ja788

What is S() )oader


l S9':'oader loads data !rom e5ternal !iles into tables o! an -racle database.

*lements o# S() )oader


l S9':'oader ta;es as input a control #ile which controls the beha#ior o! S9':'oader and one or more data #iles.

l -utput o! the S9':'oader is an -racle database table (where the data is loaded) a log !ile a bad !ile and potentially a discard !ile.

The +ontrol ,ile -.ctl/


l &nitiates the action and directs the code:

'oad Data &,4&'% : &,"- "A)'% 2table name3 4&%'DS "%R.&,A"%D )+ < < -P"&-,A''+ %,*'-S%D )+ <=< "RA&'&,/ ,(''*-'S (2column names3 ) )%/&,DA"A 2insert comma delimited data here3

*'ample .ctl #ile


'oad Data &,4&'% : &,"- "A)'% S"(D%,"S 4&%'DS "%R.&,A"%D )+ < < -P"&-,A''+ %,*'-S%D )+ <=< "RA&'&,/ ,(''*-'S ( student6!name student6lname student6id class) )%/&,DA"A Shawn Ashworth sma7>? @78 Aenni!er )eppler jdbB8B @78 Ryan )idwell rrb7BC @78

Robert )oehm rmb@@B @78

+ontrol ,ile 0otes


l Data is inserted in the !ile. Dowe#er an e5ternal !ile can be called. l l )e sure your column names match up with your data columns Sa#e your *-,"R-' !ile with the .ctl e5tension

The .bat ,ile


l "his !ile begins the whole process.
Eecho o!! sFlldr.e5e G7 dataH2your .cs# !ile3 controlH2your .ctl !ile3 logH2name a log !ile3 badH2name a discard !ile3 s;ipH7 notepad.e5e 2repeat your log !ile3 e5it

*'ample .bat #ile


Eecho o!! sFlldr.e5e G7 dataHstudentlist.cs# controlHstudentlist.ctl logHstudents.log badHstudents.bad s;ipH7 notepad.e5e students.log e5it

The Whole Process

l l l

"he )A" !ile calls S9':'dr "he *"' !ile describes how to load it "he *SI !ile is the thing that got loaded.

Putting it in motion

You might also like