Using Source Code Control in Oracle SQL Developer
productivity and simplifies database development tasks. Using Oracle SQL
Developer, you can browse database objects, run SQL statements, edit and debug
PL/SQL statements and run reports, whether provided or created.
the Mac OS X. This is a great advantage to the increasing numbers of developers
using alternative platforms. Oracle SQL Developer is built on an extensible
framework and, as such, is extensible itself. You can create basic XML
extensions or more involved Java extensions to add utilities or other
functionality to the product.
can use the version control feature of SQL Developer to import files into your
source control system, check them out, modify and commit the changes back.
starting this tutorial, you should:
Install Oracle SQL
Developer 2.1 early adopter from OTN.
Install the Oracle
Database 10g and later.
you need not perform the following steps, you can move straight to Viewing the Files to be Versioned.
Open Oracle SQL
In the Connections tab,
right-click Connections and select New Connection.
If this tab is not
visible, select View > Connections.
You can view the files
stored in your local file system by using the Files navigator. To view the
files to be versioned, perform the following steps:
The Files navigator will
navigate to the directory where you unzipped the files from the Prerequisites and open the filePROC_EMP_CURSOR.sql.
create a Subversion repository, perform the following steps:
If you already have a Subverison repository, you can skip this step.
Then click OK.
node in the Versioning Navigator. The repository for the hr_orcl connection is
To import the files to be
versioned into the Subversion repository, perform the following steps:
In the Files Navigator, select the directory where you
unzipped the files from the Prerequisites under
the Files tab.
Click Versioning > Import Files
the node SQLFiles and click Next.
In the Filters page, click Next
In the Versioning Navigator, expand hr_orcl > SQLFiles
You can now see the files in your Subversion Repository
work on the files that are placed under version control, perform the following
from the Prerequisites.
Notice the check out icon indicating that the files in this directory have been
Double click the PROC_EMP_CURSOR.sql file
Add the following comment and click the Save icon
the changes you have done to PROC_EMP_CURSOR.sql. You can right-click on a
version and move between the various changes done.
the File Navigator, right-click the file PROC_EMP_CURSOR.sql and select Versioning > Commit.
the Commit Resources window
successfully. Notice that the version number has increased by 1.
this tutorial, you have learned how to:
Create a Database
View the Files to be
Create a Repository
Import the Files to be
Work with the Files
Under Version Control