Vault Pro, Keyword Expansion - Oracle Forms PL/SQL Libraries

If you are having a problem using Vault, post a message here.
Post Reply
clarkec21
Posts: 17
Joined: Wed Aug 22, 2012 9:51 am

Vault Pro, Keyword Expansion - Oracle Forms PL/SQL Libraries

Post by clarkec21 » Wed Aug 22, 2012 10:07 am

Hi

I am having trouble with Keyword Expansion upon checkin of Oracle Forms PL/SQL Library (*.pll).

I am using the notation '$Revision: 1 $' in exception handling within functions and procedures that is used to log the version number of the library in an Oracle table by function call as follows:
EXCEPTION
WHEN OTHERS THEN
pa_err_msg := SQLERRM;
pr_log_message_lib( pa_mdl_name => 'WRK_L010'
, pa_mdl_version => '$Revision: 1 $'
, pa_error_code => SQLCODE
, pa_location => 'fn_cancel_monitor_by_id '||l_loc
, pa_text => pa_err_msg||' PARAM pa_monl_id : '||pa_monl_id
, pa_severity => 'E'
) ;
RETURN 'FAILURE';

When checking in the replacement does work and the version number matches the Vault version (I can see by opening the file in textpad) but the pll file will then no longer open in Oracle Forms Builder - I get the error "PDE-PER001 Internal error (depli 36)". Exactly the same issue happens with VSS 6.0 - any ideas?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Vault Pro, Keyword Expansion - Oracle Forms PL/SQL Libra

Post by lbauer » Wed Aug 22, 2012 2:55 pm

What keyword(s) are you expanding in these files?

Are the .pll files binary?
Linda Bauer
SourceGear
Technical Support Manager

clarkec21
Posts: 17
Joined: Wed Aug 22, 2012 9:51 am

Re: Vault Pro, Keyword Expansion - Oracle Forms PL/SQL Libra

Post by clarkec21 » Thu Aug 23, 2012 3:07 am

Hi Linda - I am using '$Revision: 1 $' - The '.pll' has been added to the list of mergeable files and added to the keyword expansion list with no Start or End of History line markers.

Yes the file is binary. Is this the problem? We do the same with Oracle Forms and have no problem, the revision works and the form is not corrupted. When checking the *.pll files in and out of SGV without '$Revision: 1 $' there is no corruption.

I have noticed when I open the *.pll file using a text editor there are embeded '$' chars.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Vault Pro, Keyword Expansion - Oracle Forms PL/SQL Libra

Post by lbauer » Thu Aug 23, 2012 8:48 am

Our implementation of Keyword Expansion is similar to VSS. A binary file can be corrupted by keyword expansion, especially if the keyword expands to a different string length each time.

You might be able to use keywords if you keep the expanded keyword at a consistent spacing.

Instead of this:

Code: Select all

$Revision: 1 $
Try:

Code: Select all

 $Revision::       1 $ 
Leave enough space to account for the longest possible string length.

When you use one colon, Vault puts its information between the colon and the dollar sign. Depending on how long the information is, and how many spaces you had, this can make the whole string either shorter or longer than it was at first. In a text file, this is not a problem, but will corrupt a binary file.

When you use two colons, Vault keeps the string length the same. Vault maintains the exact same number of characters between the second colon and the dollar sign. Vault adds extra spaces, or truncates the information, as necessary, in order to keep things the same, so the binary file is not corrupted.

Note: You can't use this for the History or Log keywords.
Linda Bauer
SourceGear
Technical Support Manager

clarkec21
Posts: 17
Joined: Wed Aug 22, 2012 9:51 am

Re: Vault Pro, Keyword Expansion - Oracle Forms PL/SQL Libra

Post by clarkec21 » Fri Aug 24, 2012 3:43 am

Linda, that worked perfectly, Thank you very much for that.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Vault Pro, Keyword Expansion - Oracle Forms PL/SQL Libra

Post by lbauer » Fri Aug 24, 2012 3:01 pm

Thanks for the update. That's good news. :D
Linda Bauer
SourceGear
Technical Support Manager

Post Reply