Oracle
  Home arrow Oracle arrow SQL Script Support in Oracle 10G Express Edition
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ORACLE

SQL Script Support in Oracle 10G Express Edition
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 25
    2006-06-28


    Table of Contents:
  • SQL Script Support in Oracle 10G Express Edition
  • Sample scripts
  • Creating a script
  • Exporting and Importing of Scripts

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    SQL Script Support in Oracle 10G Express Edition
    ( Page 1 of 4 )

    In an earlier tutorial we saw how to use SQL commands in the Oracle 10g Express Edition, or simply Oracle XE. We also saw how to use the PL/SQL commands as well. In another tutorial we saw how to use the Query Builder, the graphical interface for fashioning and running SQL in the Oracle XE. The present tutorial describes the SQL scripting support in Oracle XE. In order to bring out the basic features of scripting support a few example scripts are considered in the discussion.

    Introduction

    Scripts are text files which can be developed using a text editor such as Notepad. They can reduce the labor intensive activity of typing by storing them for future reuse. You find scripts in almost all computer-related activities, and they are available for most programming languages. Also you will find a lot of vendor support for SQL scripting, like Embarcadero, ApexSQL, AciWorldwide and many others.

    Scripts make the process of application development easier, because with well developed scripts, errors are reduced, and reading from a file is faster than one can type. They are extremely useful for automated report generation, file backup, network activity monitoring and whole lot of other things. In Oracle 10G XE, you can develop reusable SQL scripts and save them for future use quite easily. This article takes you through the process of using the script support available in Oracle 10G XE, but it is by no means a tutorial on Oracle SQL scripts.

    Opening the SQL Script Editor

    It is assumed that you have downloaded Oracle 10g Express Edition and that you have unlocked the HR database so that you can log on to this database as a user. Now from the shortcut on your desktop you can log in by clicking on the "Go to the Database Homepage..." shortcut which can be accessed from All Programs-->Oracle 10g Express Edition. This opens up the following window.

    Log in to the database using the credentials Username: hr and Password: hr as shown in the above picture. This should open up the following window. There are five main objects (nodes). The Object Browser shows all the objects in the database.

    Now click on the SQL icon. This will open up a window which gives you access to all the SQL functionalities in Oracle XE, SQL Commands, SQL Scripts, and Query Builder as shown. Please review the SQL Command icon related tutorial as well as the Query builder tutorial, as they will help you in understanding the present tutorial.

    Click on the SQL Scripts icon, which opens up the following window. This screen will list all the scripts that exist in the database, showing the name with which the script was saved, its owner, the user who updated it, the last time it was updated, the number of bytes, the results, and whether it has run previously. You could also search for scripts, or by owner. By default search results are limited to 15, but you may change that. In addition to searching and sorting, the SQL script may be uploaded and created. In this screen you see three saved scripts: Selct, Adval and First_Last, all owned by the owner, HR.  In addition to managing scripts, you can access export/import functionalities as well as review your script quote. More on these later.



     
     
    >>> More Oracle Articles          >>> More By Jayaram Krishnaswamy
     

       

    ORACLE ARTICLES

    - Oracle's Turn to Play in the Sun
    - Implementing and Using Oracle`s Restore Poin...
    - Tuning PL/SQL Code
    - Debugging PL/SQL Code
    - Testing PL/SQL Code
    - Working With PL/SQL Code
    - Conditional Compilation for Oracle Database ...
    - Compile-Time Warnings for Oracle DB 10g
    - Compiling PL/SQL Code for an Oracle Database
    - Troubleshooting PL/SQL Code
    - Managing PL/SQL Code
    - Data Manipulation and More for HTML DB Appli...
    - Oracle Database Fundamentals
    - Adding Processes to HTML DB Applications
    - Adding Computations, Processes, and Validati...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT