12.07.2015 Views

Solution Guide for Migrating Oracle on UNIX to SQL Server - Willy .Net

Solution Guide for Migrating Oracle on UNIX to SQL Server - Willy .Net

Solution Guide for Migrating Oracle on UNIX to SQL Server - Willy .Net

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

<str<strong>on</strong>g>Soluti<strong>on</strong></str<strong>on</strong>g> <str<strong>on</strong>g>Guide</str<strong>on</strong>g> <str<strong>on</strong>g>for</str<strong>on</strong>g> <str<strong>on</strong>g>Migrating</str<strong>on</strong>g> <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> <strong>on</strong> <strong>UNIX</strong> <strong>to</strong> <strong>SQL</strong> <strong>Server</strong> <strong>on</strong> Windows 287Figure 17.6 shows all the properties of a data block.Figure 17.6Properties of a data blockC<strong>on</strong>trol BlockThe sec<strong>on</strong>d type of block is the c<strong>on</strong>trol block. The items in a c<strong>on</strong>trol block are notassociated with the database, and its items do not relate <strong>to</strong> any columns within anydatabase table. The items in a c<strong>on</strong>trol block are called c<strong>on</strong>trol items. For example,butt<strong>on</strong>s in a module can initiate certain acti<strong>on</strong>s and can be logically grouped in a c<strong>on</strong>trolblock. The c<strong>on</strong>trol block is <strong>on</strong>ly a logical grouping and the physical or visual placementmay differ. It is also a mechanism <strong>to</strong> segregate the c<strong>on</strong>trol block items from the items thatare dependent <strong>on</strong> the database. C<strong>on</strong>trol items are used <strong>to</strong> per<str<strong>on</strong>g>for</str<strong>on</strong>g>m functi<strong>on</strong>s, such asaccepting input from the user and displaying calculated values and look values.Program UnitsProgram units are part of <str<strong>on</strong>g>for</str<strong>on</strong>g>ms modules and they c<strong>on</strong>tain named procedures, functi<strong>on</strong>s,or packages. The program units are similar <strong>to</strong> the program units created in the librariesbut are local <strong>to</strong> the <str<strong>on</strong>g>for</str<strong>on</strong>g>m in which they are created. They are s<strong>to</strong>red and executed <strong>on</strong> theclient with any embedded <strong>SQL</strong> passed <strong>to</strong> the database <str<strong>on</strong>g>for</str<strong>on</strong>g> processing. If this codec<strong>on</strong>tains database interacti<strong>on</strong>s, then it needs <strong>to</strong> be c<strong>on</strong>verted <strong>to</strong> T-<strong>SQL</strong>. If it c<strong>on</strong>tains <strong>on</strong>lyn<strong>on</strong>-database related code, then it needs <strong>to</strong> be c<strong>on</strong>verted <strong>to</strong> its equivalent inVisual Basic .NET.TriggersThe trigger object is a PL/<strong>SQL</strong> block executed <strong>on</strong> an event. Triggers can be owned by the<str<strong>on</strong>g>for</str<strong>on</strong>g>m module, a data block, or an item, depending up<strong>on</strong> their scope.

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

Saved successfully!

Ooh no, something went wrong!