Oracle MVA

Tales from a Jack of all trades


with 2 comments

After reading the documentation and running RCU commandline for some time (mostly from a script I build) I felt confident about RCU. For a new environment I had to run RCU manually, so I setup the command:

$ ./rcu -silent -createRepository -connectString scan.area51.local:1521:rcuservice -dbUser SYS -dbRole sysdba -component MDS -component SOAINFRA -component OIM -component IAU -schemaPrefix DEV -f < /home/oracle/pass

and ran into this error:

Processing command line ....
Repository Creation Utility - Checking Prerequisites
Checking Global Prerequisites
RCU-6011:A valid prefix should be specified. Prefix can contain only alpha-numeric characters. It should not start with a number and should not contain any special characters.
RCU-6091:Component name/schema prefix validation failed.

Now this error surprised me to great extend. The parameters where all there, so what could cause this?  Some suffling around with the parameters learned me that this command does run:

$ ./rcu -silent -createRepository -connectString scan.area51.local:1521:rcuservice -dbUser SYS -dbRole sysdba -schemaPrefix TLTB1 -component MDS -component SOAINFRA -component OIM -component IAU -f < /home/oracle/pass

Turn out that the order of the parameters is of importance to rcu.

Hope this helps.


Written by Jacco H. Landlust

October 26, 2011 at 11:34 am

2 Responses

Subscribe to comments with RSS.

  1. I didn’t know this – so by the sounds of it “-schemaPrefix” has to be before any “-component”s.

    It does make you wonder about the quality of the developer of this code – library functions to parse command line parameters in a loop are standard in most languages and this is a fairly trivial logic.

    Simon Haslam

    October 26, 2011 at 12:44 pm

    • I am not the one to judge the coder of RCU, but it does seem a small bug. One could argue this is a documentation bug 🙂

      Jacco H. Landlust

      October 26, 2011 at 1:24 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: