Schema Constraints with The Schema tool.

Lets say that I have a data model of 15 objects. (Conveniently I do) Further,
lets say that the objects have various attributes and one of them is an account
number. The Account number has to be unique.
Now I have two choices. Either I can make them datastore ID or Application ID.
If I chose datastore id, then the database will have an entirely new column as a
primary key for my objects. The question is, then, how do I tell my schema tool
that I want all of the account numbers to be unique? Do I have to edit the
database manually (which would be a travesty considering the maintenance factor)
or is there some way to specify it?
-- Robert

Its just annoying because I have to do this with ant instead of my eclipse
project. This means I have to set up an Ant build and this means I have to set
it up "right" because I dot do things half way.
-- Robert
"Abe White" <[email protected]> wrote in message
news:[email protected]..
The problem is that I dont really want to much around with application
ID at this point as this is a demonstration application, not a "real"
one.It's not as if using application identity is difficult. Declare
accountNumber to be a primary key field in the metadata, add an
objectid-class metadata attribute with the name of the application
identity class you want, and then run the appidtool on the metadata to
generate the application identity class. Bang, you're done.

Similar Messages

  • How to extract all keys (PK, FK) and constraints from the schema?

    hi,
    How to extract all keys (PK, FK) and constraints from the schema?Thanks!

    I have no idea about any tool which only extract the DDL of constraints.
    In oracle 9i or above you can use DBMS_METADATA to extract DDL of a table which also shows contraints defination.
    You can take the tables export without data and use databee tool to extract the DDL.
    www.databee.com

  • How to synchronize test schema objects with the prod schema objects.

    Hi,
    I have a requirement of synchronizing test schema objects with the production schema objects. Please let me know the below
    1. if there is a standardized method for such activity,
    2. if there are oracle utilities for this task.
    3. If i had to do this job manually, can you let me know the check list if any.
    Thanks
    Purushotham M

    http://www.oracle.com/technetwork/issue-archive/2012/12-sep/o52sqldev-1735911.html
    You could try database diff tool in sql developer(but there are some licence restrictions).
    I don't know your database version, you could try DBMS_COMPARISON package also.
    Look at this link http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_comparison.htm
    Other solution is to create db link between test and production database, and then you can try different types of queries like
    select table_name from user_tables
    minus
    select table_name from user_tables@db_link_to_other_database
    And you can do this for columns, indexes and so on.
    But you must have proper DDL scripts for this, to generate sync script.
    Also there is a question about work process, you are doing sync in reverse order(from production to test). Test db is for test, after test you go to production db with proper ddl and dml scripts, so these schemas shouldn't be different in the first place(talking about schema, not data here).

  • Using dbms_datapump package to export the schema with the schema name as pa

    Hi,
    I am using the pl/sql block to export schema using dbms_datapump package,Now I want to pass the scheme name as the parameter to the procedure and get the .dmp and .log files with the schema name included.
    CREATE OR REPLACE PROCEDURE export
    IS
    h1 number;
    begin
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'export1', version => 'COMPATIBLE');
    dbms_datapump.set_parallel(handle => h1, degree => 1);
    dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
    dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
    dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''CHECKOUT'')');
    dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
    dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U' || to_char(sysdate,'dd-mm-yyyy') || '.DMP', directory => 'DATA_PUMP_DIR', filetype => 1);
    dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
    dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
    dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
    dbms_datapump.detach (handle => h1);
    exception
    when others then
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    end;
    Thank you in advanced
    Sri

    user12062360 wrote:
    Hi,
    I am using the pl/sql block to export schema using dbms_datapump package,Now I want to pass the scheme name as the parameter to the procedure and get the .dmp and .log files with the schema name included.
    OK, please proceed to do so
    >
    CREATE OR REPLACE PROCEDURE export
    IS
    h1 number;
    begin
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'export1', version => 'COMPATIBLE');
    dbms_datapump.set_parallel(handle => h1, degree => 1);
    dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
    dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
    dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''CHECKOUT'')');
    dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
    dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U' || to_char(sysdate,'dd-mm-yyyy') || '.DMP', directory => 'DATA_PUMP_DIR', filetype => 1);
    dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
    dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
    dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
    dbms_datapump.detach (handle => h1);
    exception
    when others then
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    end;
    EXCEPTION handler is a bug waiting to happen.
    eliminate it entirely

  • Creating a link with the Link Tool

    I used the Link Tool to create a Link in my pdf file.  The link is set to open a website file.  I created 2, one with just a little text and the other was a picture that was 200 X 300 px.  When I follow the links, each is opening a full web page.  I expected that with the Text link because I put the text on an html page but the picture I sized to the 200X300 but that opened a full web page also.  When setting up the link to the Web File I did not see an additional settings as far as how to open the web page such as _parent or _child etc.  I believe it is normally the Target.
    Does anyone know how I would either do this with the link tool or know of a better way to do it overall?
    Thanks
    Bob

    Hi,
    You may be confusing HTML markup for links with PDF links.
    In PDF, HTML markup is not applicable.
    So "target_xxxx" or any other HTML 'stuff' cannot be used.
    For the graphic file (JPG, PNG, whatever), make a web page file that is configured to display the graphic file in a manner you desire.
    The web link you set in the PDF, with Acrobat, will result in this web page file opening.
    This is the file that will control how the graphic is rendered.
    If needed, a resource for HTML "how to" is W3 Schools.
    Be well...

  • How can you fix transparency less than 100% when drawing multiple shapes with the pencil tool?

    I draw a (fill only) shape at 50% with the pencil tool and when I go to draw another, the transparency jumps back to 100%. I would like it to stay at 50% for every mark I make, anyone know how? I wish to build up multiple semi-translucent vector shapes like in the attached image.
    Many Thanks.
    Mark

    In the bottom of the Appearance Palette, toggle the (deep breath) New Art Maintains Appearance / New Art Has Basic Appearance button (pant pant).
    I leave it to you to do three things:
    1. Figure out which state of that stupidly-designed single button means which setting.
    2. Figure out if the stupidly-designed tooltip that appears when you hover over that stupid button means:
    A. ...that what the tooltip reads is the current setting, or...
    B. ...that what the tooltip reads is the setting you will get if you click the stupidly-designed single button.
    3. Remember what you figured out the next time you need to visit that stupidly-designed button.
    Adobe doesn't understand this is a simple yes/no decision, and that a far more intuitive simple labeled checkbox will do.
    JET

  • Please help me! I am struggling with the mesh tool!

    So I want to make this chair look like it does in the picture, but I cant! There is a chapter in my Illustrator CS3 book explaining how to use gradient mesh and mesh tool, but it doesnt help me at all. I am clueless!   The tutorial says that I can create points in the mesh simply by clicking with the mesh tool within an object, but when I try to do that, the pointer is "crossed out". I can only add extra points on lines or edges, but not on empty space within an object. What gives? Why is it that others can do it an I cant? Forgive me if I sound a little too upset, but I've been struggling with this for days and I cannot find an answer.
    In this tutorial right here: http://www.layersmagazine.com/illustrator-gradient-mesh-tool.html the guy just clicks in empty spaces creating intersections. In my case it is impossible.
    PS: Please look at an attached file and tell me what would be the best way to go about coloring this chair. Maybe I am doing this completely wrong? (I only started learning illustrator about 5 weeks ago)
    Sorry for the background template being of poor quality, but this was taken from a book and scanned, so it's the best I could do.

    You know something I think there should be a behavioral change in this case. To my way of thinking this option should automatically be disabled if you select the Mesh tool. If for some reason you want the mesh tool not to behave the way there might be a toggle or a double click to get the preferences for the tool 's behavior itself. I can see where this behavior can be useful but there needs to be a toggle.
    Selecting the anchors for adding color with out accidentally creating a new mesh division is good thing but you need to be able to work both ways.
    What do you think Scott Weichert you use the tool extensively, am i wrong?

  • In Adobe Flash CS6, I have a blue box appearing around lines drawn with the line tool (and other tools like brush etc). I can't figure out how to disable.

    In Adobe Flash CS6, I have a blue box appearing around lines drawn with the line tool (and other tools like brush etc). Whenever I try to use a tool,  a blue box appears around the line and I have to double click it to manipulate it, which opens just that line in a semi burred screen where all the other objects are semi-grey in the background. I can manipulate this line in this screen but nothing else at that time which I could do about 5 minutes ago. For exampe, I no longer can join up 2 lines drawn by the line tool together. For some reason this started randomly (probably due to a accidental shortcut combination) and I just can't put it back to what it used to be. I have inserted a video hopefully showing what I mean. Any help would be appreciated.

    Thank you - Just what I needed

  • What is wrong with the crop tool in Photoshop CS6? (picture included)

    Ever since I upgraded to Photoshop CS6 and started to use the new crop tool, I get this quite interesting visual error and some artifacting.
    I didn't have the problem with the crop tool in the previous versions of Photoshop.
    What can be the issue?

    Seems like a GPU problem. Can you try going into Photoshop Preferences, disable GPU acceleration and try if that fixes it?

  • Problems moving  an object with the selection tool

    Im working on CS2 and since last week I have a problem moving objects with the selection tool: To move the object I am obligate to select the object first, and then click at the edge/stroke of the object to drag it. Before that I could move the objects just by selecting somewhere in the object and then just drag it to some other place in one step. I think I maybe changed something in the general preferences....

    Ho thanks a lot Kurt!!!!! Indeed, that was the problem!!! Finally I can work normally again.... (the joker was me...but not on purpose)
    Thanks again!

  • PS5 - How do I get the hidden target channel to work with the typing tool?

    PS5 - How do I get the hidden target channel to work with the typing tool?
    I keep getting this error message everytime I try to move a box around.

    Have you tried an Adobe forum? PS5 is an Adobe product!

  • How to create a wavy line with the Pen Tool?

    Let me start by saying that I am a novice to Adobe CS4, including PS.
    I am trying to follow this tutorial: http://www.rnel.net/tutorial/Photoshop/11541 but I can not even get the pen to draw wavvy line. I keep get a straight line. To say the least, I am only able to complete creating the file.
    How do I create a wavvy line or lines using the Pen Tool?

    Check out this page from the Help Files:
    Draw curves with the Pen tool:
    http://help.adobe.com/en_US/Photoshop/11.0/WS08E4D386-15E9-4dcd-91E6-DF4219CC6D24.html

  • Can't reshape rectangle with the "Selection Tool"

    Hi,
    After updating Illustrator CC 2014 to the newest versions I can't reshape rectangles with the "Selection Tool".
    Is this a new feature where you have to go to: "Shape > Expand rectangle" to be able to reshape it?
    -C

    ristogoertz,
    I am afraid you have come across the Live Rectangle bug which is limited to the MAC versions starting with 10.7 and 10.8, but not 10.9 (Mavericks).
    So a switch to Mavericks with a reinstallation might be the way to solve it here and now.
    To get round it in each case, it is possible to Expand the Live Rectangles to get normal old fashioned rectangles, or to Pathfinder>Unite, or to use the Scale Tool.
    A more permanent way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

  • Drawing with the Pen tools

    This question was posted in response to the following article: http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-73a0a.h tml

    Correction: same issue -- pen tool drawing shows up only on the digital image on the screen. Not when printed. Well sounded like a good theory.
    Problem remains: how to get pen tool drawing, made on photographs, to print.
    From: [email protected]
    To: [email protected]
    Subject: Drawing with the Pen tools o photographi
    Date: Sat, 5 May 2012 20:08:05 +0000
    Curt, believe I found the answer:
    Create a new blank page, the size of the photograph to be worked on. The blank page is what the pen tool responds to only.
    Add the photographic image to the new blank page (same size).
    Now you can use the pen tool over the photographic image. When finished drawing, flatten the image with drawing, and print. 
    Date: Fri, 4 May 2012 21:00:54 -0600
    From: [email protected]
    To: [email protected]
    Subject: Drawing with the Pen tools
        Re:  Drawing with the Pen tools
        created by Curt Y in Photoshop General Discussion - View the full discussion
    Perhaps you are talking about stroking the line? 
    Set the color and size with brush, then in Path window click on Stroke Path with Brush.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4380667#4380667
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4380667#4380667. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop General Discussion by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Need Help with the Mesh Tool

    I'm having trouble adding a gradient mesh to this image:
    http://img237.imageshack.us/my.php?image=picture1xi9.png
    I would like to make it look a little more 3D or shiny with a white gradient. When I click inside the shape with the mesh tool, it creates some crazy mesh lines.. I'm pretty new to this and would really, really appreciate some help. Thanks! :)

    I see the problem as well you may have to make an clipping mask of a rectangle or other shape that is more regular using this shape as the mask and grouping them.
    <br />
    <br />
    <a href="http://www.pixentral.com/show.php?picture=1wekWFXbGiN7ixwI4ulbOLsAZQRp0k" /></a>
    <img alt="Picture hosted by Pixentral" src="http://www.pixentral.com/hosted/1wekWFXbGiN7ixwI4ulbOLsAZQRp0k_thumb.png" border="0" />

Maybe you are looking for