Minimize
Blogger List

Johannes Ahrends
Toad and Oracle

Ben Boise
Toad SC Discussions

Kevin Dalton
Benchmark Factory

Steven Feuerstein
PL/SQL Obsession

Devin Gallagher
Toad SC discussions

Stuart Hodgins
JProbe Discussions

  Henrik "Mauritz" Johnson
Toad Tips & Tricks on the "other" Toads
  Mark Kurtz
Toad SC discussions
  Michael Lumbard
Toad SC discussions
Daniel Norwood
Toad for Data Analysts,
Toad Extension for Visual Studio
Debbie Peabody
Toad for Data Analysts
Gary Piper
Toad Reports Manager
John Pocknell
Toad for Oracle, JProbe
Kuljit Sangha
Toad SC discussions
Bert Scalzo Indicates Oracle ACE status
Toad for Oracle, Data Modeling, Benchmarking
Jeff Smith
Toad product family
Richard To
SQL Optimization
Jim Wankowski
DB2 - LUW and z/OS
John Weathington
  Toad Data Modeler Opens in a new window
Data Modeling
 
  Real Automated Code Testing for Oracle
Quest Code Tester blog
 
Minimize
Blog Tags
toad for oracle (122)
oracle (62)
plsql (46)
sql optimization (37)
toad for data analysts (28)
code tester (19)
toad for ibm db2 (13)
automation (11)
batch optimizer (10)
virtualization (10)
schema browser (9)
toad for sql server (9)
data grid (8)
sql (8)
sql editor (8)
toad data modeler (8)
benchmark factory (7)
excel (7)
query builder (7)
report manager (7)
toad extension (7)
visual studio (7)
11g (6)
configuration (6)
freeware (6)
health check (6)
vmware (6)
connect (5)
dba module (5)
er diagrammer (5)
F4 (5)
linux (5)
refactoring (5)
spotlight (5)
unicode (5)
compare (4)
debugger (4)
export (4)
formatter (4)
make code (4)
rman (4)
strip code (4)
benchmark (3)
bfscript (3)
bulk collect (3)
code templates (3)
code xpert (3)
database browser (3)
db2 (3)
notebook (3)
oem (3)
RAC (3)
session browser (3)
speed (3)
sql optimizer (3)
toad for mysql (3)
tpc-c (3)
9.7 (2)
alert log (2)
app designer (2)
awr (2)
code insight (2)
code snippets (2)
collection (2)
compare and sync (2)
compliance (2)
data generator (2)
data warehouse (2)
database explorer (2)
database monitor (2)
explain (2)
forall (2)
ftp (2)
group execute (2)
handbook (2)
installation (2)
job scheduler (2)
multi-task (2)
nested table (2)
os command (2)
profiler (2)
recovery (2)
release history (2)
save as (2)
schema compare (2)
sql recall (2)
stats pack (2)
subversion (2)
team coding (2)
trace file browser (2)
while loop (2)
10g (1)
64 bit (1)
7zip (1)
action (1)
addm (1)
alter (1)
ansi join (1)
array (1)
ccleaner (1)
code coverage (1)
code road map (1)
CRON (1)
cursor for loop (1)
data browser (1)
data subset (1)
database probe (1)
dbms_flashback (1)
dbms_profiler (1)
ddl (1)
feuerstein (1)
filezilla (1)
flash drive (1)
flow control (1)
for loop (1)
group policy manager (1)
hints (1)
import (1)
index (1)
inheritance (1)
invoker rights (1)
ipad (1)
java (1)
latency (1)
log switch (1)
logical model (1)
ltrim (1)
master-detail browser (1)
monitor (1)
multi-select (1)
naming standards (1)
network (1)
object explorer (1)
OEBS (1)
package (1)
parser (1)
partitioning (1)
performance (1)
pragma (1)
project manager (1)
RAT (1)
revo (1)
REXEC (1)
schema report (1)
script manager (1)
search (1)
set operator (1)
sga (1)
slow (1)
sonarsource (1)
source control (1)
space projection (1)
sql monitor (1)
sql navigator (1)
sql script (1)
sql tracker (1)
sql*plus (1)
standards (1)
statistics (1)
stored procedure (1)
string parser (1)
sub-model (1)
sub-type (1)
synch (1)
synchback (1)
TELNET (1)
toad (1)
trace (1)
unit test (1)
unix (1)
usb (1)
utility (1)
v10 (1)
v9.5 (1)
version control (1)
waits (1)
workload replay (1)
workspace (1)
xml (1)
 
WELCOME, GUEST
 
 

Blogs
Toad and Database Commentaries

Toad World blogs are a mix of insightful how-tos from Quest experts as well as their commentary on experiences with new database technologies.  Have some views of your own to share?  Post your comments!  Note:  Comments are restricted to registered Toad World users.

Do you have a topic that you'd like discussed?  We'd love to hear from you.  Send us your idea for a blog topic.


Mar 12

Written by: John Pocknell
Monday, March 12, 2007  RssIcon

1. What is Team Coding

Team Coding is a cooperative source control feature. You can use Team Coding alone, or in conjunction with a third party version control system. Team Coding works with the Editor to control access and development of functions, procedures, packages, triggers and types. It also supports scripts in the Editor. Some of its key features include:

·          Flexible Code Control Groups (CCGs), which help you control objects from one or more schemas, using customizable groupings.

·          You can organize objects into CCGs by using object masks representing both specific database objects and collections of similar objects (by using the Oracle % wildcard). You can also set up exclusion masks to exclude specific objects from a CCG.

·          Even without a third party version control product, you can use CCGs, to track referenced objects through Team Coding (though without revision history).

·          All configuration data is stored in the database under Team Coding control. Individual workstations do not need to be configured.

Even better – it’s a Standard feature which I bet you hadn’t even heard of !

2. What is Server Side Objects Wizard? 

The Server-Side Objects Wizard is designed to simplify the task of checking whether Team Coding is already configured on the user’s desktop, and if not, to run a script which installed a small repository (called the Team Coding Repository) into a database schema of the user’s choice (usually the Toad schema).

If you wish to install for the first time, select the first option as illustrated below.

Log on to the database in which you want the Team Coding Repository to be built. The Toad schema is recommended to help you manage where any Toad Server Objects are installed.

In the next step, choose the Team Coding option.  This will create the required roles, tables, indexes, triggers, constraints and sequences in the Toad schema.  Access to these objects is also granted to the Public role – this allows Team Coding “rules” to apply to every user of Toad.

Follow all the steps for creating the Server Side objects and also for creating the 3 Team Coding roles: TC_ADMIN_ROLE, TC_LDR_ROLE and TC_MGR_ROLE which can then be assigned to users as appropriate.

This is an order where you can control the access users have to the administration features in Team Coding such as the Team Coding Viewer and the ability to freeze, lock, etc. code in the database.

The rights which each role has are as follows:

  • Administrator (TC_ADMIN_ROLE) - Can configure the instance to define how Team Coding operates, which VCS (if any) is used, and so on. This role is automatically assigned to the Toad user.

  • Project Manager (TC_MGR_ROLE) - Can create and delete code control groups (CCGs) and relate them to a VCS project.

  • Team Leader (TC_LDR_ROLE) - Can modify CCGs, define the objects or scripts are included in the group, and freeze objects. Can also delete rows from the Team Coding Viewer.

Users that are not granted one of these three roles hold the assumed role of developer. They can view the status of objects with the Team Coding Viewer and check items in and out of source control.

3. Setting the Usability Options 

The usability options allow you to control a Team’s coding behavior in the environment with features such as Automatic Check-Out. Note, you can also specify the VCS provider’s name and default working directory.

4. Checking Team Coding Status

Finally, check the Team Coding Status (using a login with the TC_ADMIN_ROLE) to ensure everything is correctly set up.

Click the Settings button (below) to display the configuration options.

The Configuration tab allows you to select the VCS Provider (if you want to use one) and whether to use Code Control Groups (see 5 below) to determine how Developers can access the code.

Note: Team Coding will facilitate code access control even without a VCS if you do not have one. No versioning will take place, but code can be checked-out, locked and then checked-in to the Team Coding Repository.

The File Extension tab lists the default file types associated with using Team Coding.

The General tab enables you to set certain defaults like automatic generation of a new version number when you Check-In.

5. Code Control Groups

Code Control Groups are like filters which allow you to determine if code is controlled or not. If code is controlled using a Code Control Group, this means when a developer accesses the code through the Editor (or Schema Browser or Project Manager), Team Coding will automatically handle the request and perform a Check-Out from the VCS (if it is configured)

Here is an example of a Code Control Group called “Production Group” where all code in the “QUEST_PROD” schema will be controlled by Team Coding with the exception of the “OW_ORDER_TRIGGER” Trigger which will not.

6. Using Team Coding

Toad is now working under the Team Coding configuration.

When the user next launches Toad, they will see a window pop-up which prompts for the VCS login (if Team Coding is configured with a VCS). This option can be changed so that a VCS login would have to performed separately if the user so wishes.

As the code is Checked Out, Team Coding will automatically compare the code with the code in the database to see if they are the same. If not, a warning message will appear informing you that the code is out-of-sync and giving you the option of running a Compare, using the VCS version or using the Database version.

Once you are finished with the code, Team Coding will jump in again and control the Check In. 

Finally, once Team Coding is in use by your Development team, and as a user with TC_ADMIN_TOLE, you will be able to monitor and manage access to your code both within the Team Coding Repository, but also within the VCS itself because Toad can access the VCS management console.


  Team Coding Viewer


VCS Browser (Microsoft Visual Sourcesafe)

Correctly set up and implemented across your Development team, Team Coding will simplify and automate code management in a way which is much more secure and workflow oriented, leaving you time to concentrate on other things.

Tags:
Categories:

24 comment(s) so far...


Re: Toad for Oracle 9.0 - How To Setup Team Coding and VCS Integration

Welcome to Toad World John. Thanks for the contribution and we look forward to a lot more!

By Ceci on   Tuesday, March 13, 2007

Re: Toad for Oracle 9.0 - How To Setup Team Coding and VCS Integration

Nice first blog John - looking forward to reading more.

By Chasker on   Wednesday, March 14, 2007

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Hi John. I just started enabling team coding in toad 9.0.1.8. we want to use team coding with MS Visual safe 2005. Team coding status shows 2 items are in red. 1. VCS Provider is not initialized. 2. VCS provided is not connected. when open toad, i get the error "22:38:48 Error: Error initializing Team Coding: Failed to initialize VCS provider: Class not registered" I am not sure which class it refers to. There is no LOV available in Toad options >> team coding >> source control Provider. But, in team coding setting i have selected MS visual source safe, which is installed on a network derive, not in my pc, where i am running the toad. Appreciate, how can i fix the class not registered error. Ganesan email: ganesan.srirangan2@alcoa.com

By Ganesan on   Tuesday, July 08, 2008

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

There does not seem to be a method to add constraints to a code control group. Any advise? Thank you.

By JohnE on   Monday, November 10, 2008

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Hi JohnE, Team Coding and CCGs only supports the following object types: Views Functions Procedures Triggers Packages Package Bodies Types Type Bodies Java Source Tables & Constraints are not supported. Regards, John

By Pockers on   Wednesday, November 12, 2008

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Hi John. I followed your instructions until step 4. I logged as Toad user (with TC_ADMIN_ROLE) and opened 'Team coding status' window. Marked by green were 'Team coding support installed', 'Version 6.0' and 'Use team coding' in Permisions block. To enable team coding I clicked the 'Settings' button, then a message box appeared 'Connection settings will be read-only. For read and write privileges, you must have the Administrator role'. I use Toad 9.0.1.8 Thank You for any advice Martin

By MartinS on   Friday, November 21, 2008

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Hi Martin, Did you check that the user Toad definitely has the TC_ADMIN_ROLE role granted and that you logged out and logged back in? Also, try assigning the role to another user not yet logged onto Toad, then log on as that user and re-check. Thanks, John

By Pockers on   Monday, November 24, 2008

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

The second advice is right - to assign TC_ADMIN_ROLE to another user, log on as the user and check to enable team coding. Thank You very much. Martin

By MartinS on   Thursday, November 27, 2008

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Pleased to hear it works for you. Regards, John

By Pockers on   Thursday, November 27, 2008

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Hello John, I have SQLNAV working with Visual Source Safe, for two schemas, however, after I setup a third schema to work with VSS I have the following issue. When I right click on an object, package or index for example, on one pc I get the checkout option on the popup menu. Logged in as the same user on another pc, I do not get the menu choice to checkout. On the second pc, the menu choice to checkout does appear for the other 2 schemas. Any ideas? Thank you.

By JohnE on   Friday, January 16, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

On the pc which does not get the pop-up, go into the Toad Options and select Version Control (or Source Control if 9.7) and check to make sure you have the Automatic Check-Out and Automatic Check-In boxes ticked as well as the Prompt for Comment boxes. Also, check that the Source Control Provided field is pointing to the correct VCS system and the correct working folder is selected. John

By Pockers on   Monday, January 19, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

John, We have now switched from VSS to Team Foundation Server. One issue is that I keep getting prompted to log into the TFS whenever I click on an object. How can I avoid being prompted to log in after logging once? Thank you.

By JohnE on   Monday, February 23, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Toad Options | Source Control | "Disable Login Prompt on Connection" Do you have this option checked on or not? John

By Pockers on   Monday, February 23, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Is is checked.

By JohnE on   Monday, February 23, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

In that case, you should only be prompted once the first time you access an object. Are you using a Code Control Group, or do have everything accessible through TFS? Is your working directory specified correctly in Toad? Could you try unchecking the box and having a single connection when you startup Toad to see if you still receive further login prompts? The other thing is we have not tested TFS yet, so we are currently relying on it's SCC compliance. Thanks, John

By Pockers on   Monday, February 23, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Also make sure that TFS is not defaulted to use your Windows network name as a username, which may be different to the one you originally signed in with. I just found this out in VSS. John

By Pockers on   Thursday, February 26, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

How well does "Team Coding" integrate with open e.g. a package source from the database and not from a file? Cheers

By croakk on   Thursday, March 26, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Once Team Coding is configured, it will be used whether you select code from the database or from the file system. You simply use the Open From Database button in the Editor toolbar or File Open button. John

By Pockers on   Thursday, March 26, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Thanks. This is how I would like it to be, so this sounds good.

By croakk on   Thursday, March 26, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

No problem. Let me know if it works OK for you. Regards, John

By Pockers on   Thursday, March 26, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

John, can you confirm if Toad 9.X can use TFS as the version control system? Is there any special/extra needed on the client PC to get it to work? Do you know if SQL Nav 6.X can use TFS as the VCS, too? Thanks.

By Javier1 on   Friday, July 17, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Hi Javier, No, Toad does not currently support TFS. It is down as a future requirement. SQL Navigator 6.x does support TFS. John

By Pockers on   Monday, July 20, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Hi John, thanks for the article. Do you know whether Toad 9.7 integrates with the Oracle Repository (comes with Oracle Developer) as the VCS? Thanks.

By swnd on   Tuesday, August 11, 2009

Re: Toad for Oracle 9.0 - How Do I Setup Team Coding and VCS Integration?

Toad's Team Coding does not integrate with Oracle Repository. The lowest common denominator for such support is adherance to the Microsoft SCC API standard. A full list of supported VCSs are listed in the Toad Help. Thanks, John

By Pockers on   Tuesday, August 25, 2009
Search Blog Entries