Documente Academic
Documente Profesional
Documente Cultură
8. Script Debugger (Toad for Oracle Professional) -The Script Debugger window provides a location where you can try out SQL scripts and statements in a debugging environment. You can load multiple scripts and each will open in its own data grid tab. 9. Code Xpert (Toad for Oracle Professional)- Acts just like Code Xpert for PLSQL, except applies to SQL Scripts. (See Procedure Editor topic 4) 10. Tune SQL Statement- (See page 4 for the Xpert Tuning Lab)
Procedure Editor Allows you to create and debug functions, procedures, &
packages. 1) Customizing Procedure Template TOAD has templates for Procedures, Functions, Triggers and Packages, which are fully customizable. To modify a template select proc templates from TOAD options. 2) Debugger (Toad for Oracle Professional) TOADs tool to help set breaks and view variables values. a) Set Breaks To set breaks in the code leave the cursor on the line on which you wish the code to break and hit F5. Set conditional breaks by double clicking the break in the Break and Watch view window. b) Add Watch To add a watch on a variable, leave the cursor blinking on the variable on which the watch is desired and click the eyeglasses icon. 3) Deposit values To explicate deposit a value into a variable, highlight the variable in the watch window and hit the calculator on the icon bar which, once moused over will read Evaluate/Modify Watch a) Input Parameters To pass in parameters, click the () icon b) Run the code by hitting the yellow lightening bolt icon
4) Code Xpert (Toad for Oracle Professional)- Run your code through our code review engine by clicking the icon featuring a database cylinder with a flag protruding from it. It is found on the last icon bar farthest to the right. It will pop up a pinnable window from which the user can run his/her code against a set of predefined rules. When run with TOAD Xpert, can scan SQL to tell if any statements are problematic and need tuning.
Explain Plan- TOADs tuning offers a simplified Explain Plan which is automatically
generated when a statement is moved into the Tuning area. The TOAD Tuning Explain Plan displays a numbered layout to show the order of operations. An English breakdown as to what each step of the explain means can be found right below the plan itself.
Indexes The icon to right of the Optimize icon displays the tuning fork atop a green background is the Generate Virtual Index icon. It will analyze all possible new scenarios for indexes that could be created to influence the statements performance.
Best Practices The light bulb icon will invoke best practices which analyzes the
tables, indexes, statistics, and explain plans then offers recommended best practices for improving the SQLs performance.
All of the Above To the right of the Light bulb is an icon which will run all of the
above mentioned functionality.
Miscellaneous Tools
HTML Schema Doc Generator - Want an easy way to document your schema definitions? Toad can easily create the HTML base to allow convenient browsing of schemas... simply select TOOLS->HTML SCHEMA DOC GENERATOR, select the schemas you wish to include, choose your desired options, and press the 'execute' button! Compare Data Ever find yourself in a situation where you needed to compare data content of two similar tables on different schemas or databases? Toad allows you several convenient ways to do this. Choose TOOLS->COMPARE DATA choose the source and target objects, and follow the wizard prompts. Optionally, you can right-click a table in the Schema Browser, and choose "Compare Data". Master Detail Browser Navigating the content of two or more related tables can be very time-consuming and confusing. Choose TOOLS->Master-Detail browser for Toad to bring up one panel that allows you to choose your related tables, and drill into the data logically from one table to another. TOAD Security TOAD respects all the security and privileges that are set up in Oracle. Additionally, you can restrict individuals or groups of users from accessing some TOAD features using Toad Security. You can make TOAD read-only for individuals or groups of users. For more information please email support@quest.com. Auditing Lots of companies don't use the internal audit features of Oracle. Or, when they do use them, they turn on everything and realize there is so much output to analyze they turn it all off. Firewalls and other security tools are a common way to determine if the network or operating system is being misused or abused. Why not audit what users are doing to the "key asset" of an organization, the data. TOADs audit features can help you connect to Oracle audits and help detect unauthorized access and internal abuse of the data held in the database. TOAD 8.5 (and later) has features to help you secure your database so that you can view audit trails and logs that help with maintaining compliance. A complete TOAD auditing white paper is available from Quest. Project Manager The Project Manager is used to build shortcut lists to the DB Objects, external files, and reference To-Do lists to accomplish project oriented tasks. This provides a quick link to work with files and DB Objects that are required to perform the task instead of browsing through the Schema Browser. The Project Manager is activated by clicking on the Blue Book Button in the TOAD Toolbar. This will open and dock the window on the desktop. Click on the pin button to make it become a slide-out window so that it takes up less room and is only expanded as needed. Access Knowledge Base Increase productivity by answering of finding 70-80% of questions faced every day by Oracle Professionals. Get reliable, accurate advice based on industry experts. Includes Oracle error message quick look-up. Simply click on the Knowledge Base Icon (blue button- person with a light bulb inside head) Help TOAD has a very powerful Help section. Click on HELP > CONTENTS. Beginners will want to browse through TOAD BASICS while intermediate and advanced users will want to review MAIN TOAD FEATURES.
F1 F2 F3 <SHIFT> <F3> F4 F5
Windows Help File Toggle Full screen Editor Find Next Occurrence Find Previous Occurrence Describe Table, View, Proc, Funct, or Package in popup window Sets or Deletes a Breakpoint in the Stored Proc editor for PL/SQL debugging Toggle between SQL Editor and Results Grid Clear All Text. If you have the PL/SQL Debugger module, F7 is reserved for the "Trace Into" function" Recall previous SQL statement in the SQL editor (Stores last 100), "Step Over" in the Stored Proc editor for PL/SQL debugging. Execute statement in the SQL editor, Compile in the Stored Proc editor Verify statement without execution (parse) in the SQL editor, Set Parameters in the Stored Proc editor for PL/SQL debugging. Execute current statement at cursor in the SQL editor, Execute Current Source in the Stored Proc editor for PL/SQL debugging.
F6 F7
F8
F9 <CTRL> F9
<SHIFT> F9
F10 F11
Popup Menu Run (continue execution) in the Stored Proc editor for PL/SQL debugging Run to cursor in the Stored Proc editor for PL/SQL debugging Select All Text Display the PL/SQL Debugger Breakpoints window Copy Display the PL/SQL Debugger DBMS Output window Execute Explain Plan on the Current Statement Display the PL/SQL Debugger Evaluate/Modify window Find Text Goto Line Converts Text to Lowercase Make Code Statement Recall Named SQL Statement Opens a Text File Strip Code Statement Find and Replace Save File Save File As
F12 <CTRL> A <CTRL><ALT>B <CTRL> C <CTRL><ALT>D <CTRL> E CTRL><ALT>E <CTRL> F <CTRL> G <CTRL> L <CTRL> M <CTRL> N <CTRL> O <CTRL> P <CTRL> R <CTRL> S SHIFT> <CTRL> S
<CTRL> T <CTRL> U <CTRL> V CTRL><ALT>W <CTRL> X <CTRL> Z <CTRL>. <SHIFT> <CTRL> Z <ALT> <UP> <ALT> <DOWN> <CTRL><HOME> <CTRL><END> <CTRL><SPACE> <CTRL><TAB> <CTRL><ENTER>
Columns Dropdown Converts Text to Uppercase Paste Display the PL/SQL Debugger Watches window Cut Undo Last Change Display popup list of matching tablenames Redo Last Undo Display Previous Statement Display Next Statement (after <ALT> <UP>) In the data grids, goes to the top of the recordset In the data grids, goes to the end of the recordset Completely expand dependency tree views Cycles through the collection of MDI Child windows Execute current SQL (same as <SHIFT>F9) Auto-completes table names
<CTRL><.>