Problem in constraints

Hi friends,
I have a scenario in the sense, i'm a Apex Developer.......Im developing an database application in apex by using two tables..........
One table is the one that im taking from my production instance, in my scenario i have taken the table from the HRMS.......The table name is
*) per_all_people_f
Other table is the one that im creating in the customly in apex itself, the table name is
*) xx_l_org_emp_details
Since the Apex and the production instance are of in the different server, so what i did inorder to access my production table to apex means, in the sense i created a db link between the two server and through this db link i have taken the production table in the apex........
so, according to my scenario i need to build the application using these both tables, that is the table from production instance and the table that i creating in the apex.......
According to my scenario, i shouldnot make any DML operations in the production instance table due to the security purpose.....What all i need to do is just fetch the datas from it, inorder to use it in the application.....But i can perform the DML operations in my custom table that i created in the apex(xx_l_org_emp_details).......
So inorder to use the two tables in my application i need to join the two tables,
For that in the table *"per_all_people_f"* person_id, is the primary key column...So what i did is i created a some of the columns in the custom table along with person_id in it inorder to give join between the two.....
Okay by using the two tables i have created the application......This is what the steps so far i have done.........
My problem comes over here......Since the name of the application that i was developing is the salary certificate....
So, a single person can raise more than twice or thrice the salary certificate according to his need........And all these details will be stored in the custom table xx_l_org_emp_details only...
But my problem is a single person cannot raise more than one salary certifcate request, because i have taken"person_id" as a primary key column which is unique constraint and it will not allow duplicate values.....
At that time, what i did is i disabled the unique constraint in the table and i started to insert more than three salary request by a single person........Hence all the three records raised by a single person is inserted in my custom table as i disabled the constraint.....( If the constraint is enabled means i cannot insert more than one that's why i disabled it )....
But incase, if i want to update any three of the request raised by the single person means, i need to update it......But it is not allowing me to update as it is throwing error like
ORA-01422: exact fetch returns more than requested number ...
I know that this error will occur, as it doesnt know which record it needs to take inorder to update that's why it is throwing the above error.......
But according to my scenario i need to update all the three records raised by the single person, and also he can apply more than 3 request by himself...for this case what can i do.......Any idea friends....
Help me to achieve this........
Thanks,
GTA...

From what I can gather from your post, you need to turn off the automatic row processing (for now, just set condition to never), and write your own update process.

Similar Messages

  • [svn:fx-trunk] 8452: - Fix flicker problem with constraint bound text that is being autoSized.

    Revision: 8452
    Author:   [email protected]
    Date:     2009-07-08 08:38:32 -0700 (Wed, 08 Jul 2009)
    Log Message:
    - Fix flicker problem with constraint bound text that is being autoSized.  If the remeasure is done in a 2nd pass you will see a flicker as all the objects are moved to accommodate the reflowed text.
    - Fix data binding issue with text setter.
    - Rework measure() to accommodate implicit autoSize.
    If explicitWidth or widthInChars specified and explicitHeight or heightInLines specified, or for now, blockProgression != "tb", the text has fixed dimensions and is not auto-sized.
    If no text and width specified, but no height, start at specified width and one line high and grow taller.
    If no text and height specified, start at 1 char wide with the specified height and grow wider.
    If neither width nor height specified, and toFit lineBreaks, start at explicitMaxWidth, or default maxWidth of 160, and grow taller.
    If neither width nor height specified, and explicit lineBreaks width is unlimited and can grow taller.
    These are further constrained by min/max Width and Height except in the case that explicitWidth or explicitHeight are specified.
    - Change default maxWidth for RichText and SimpleText to 160 to match RET.  Previously it was 10000.  This is used for
    text with toFit lineBreaks if a width isn't specified.
    QA Notes: 12 or so TextGraphic tests fail because of the new default maxWidth.
    Doc Notes:SDK-22014, SDK-21837
    Reviewers: Gordon
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22014
        http://bugs.adobe.com/jira/browse/SDK-21837
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicEleme nt.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/RichEditable TextContainerManager.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicE lement.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/RichEditable TextEditManager.as

    You have used elements like header, footer, footer1 and nav without using the correct DOCTYPE declaration. Replace the first line of your code with
    <!doctype html>
    Also have a look here for other problems http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fhome.surewest.net%2Fstorytales%2F test%2Fforposting.html
    After the above has been fixed, please come back here to fix the remaining problem(s)
    Gramps

  • Form based authentication problem - security constraint in web.xml

    Hi ,
    I have j_security_check in my login page
    <form name="loginForm" id="loginForm" method="post" action="j_security_check">
         <table id="login" align="center" cellspacing="0" cellpadding="0">
                   <tr>
                        <td class="label">Name</td>
                        <td class="value"><input id="j_username" name="j_username" value="" type="text" ></td>
                   </tr>
                   <tr>
                        <td class="label">Password</td>
                        <td class="value"><input name="j_password" type="password"></td>
                   </tr>               
                   <tr>
                        <td colspan="2" class="submit"><input type="submit" name="Submit" value="Log in >>"></td>
                   </tr>
         </table>
         </form>
    And my web.src consists the following
    <security-constraint>
              <web-resource-collection>
                   <web-resource-name>EP</web-resource-name>
                   <url-pattern>/*</url-pattern>
              <http-method>GET</http-method>
              <http-method>POST</http-method>
    </web-resource-collection>
              <auth-constraint>
                   <role-name>EP</role-name>
              </auth-constraint>
              <user-data-constraint>
                   <transport-guarantee>CONFIDENTIAL</transport-guarantee>
              </user-data-constraint>
         </security-constraint>
    <login-config>
              <auth-method>EPULSE</auth-method>
              <realm-name>AuditManager</realm-name>
              <form-login-config>
                   <form-login-page>/login.jsp</form-login-page>
                   <form-error-page>/error.jsp</form-error-page>
              </form-login-config>
         </login-config>
    After I start the tomcat server I can go to the login page, however when I enter the username and password and press enter..
    http://localhost:8443/au/j_security_check ...
    Can you please advise me whether there is a problem in this?
    Manisha

    Please read the Servlet specification for details on how to specify url-patterns (see section 11.2). Your "index.*" is not a legal pattern. You can only end in "/*" or "*.foo". See Servlet spec.
    If after fixing that you have more questions, please include the actual sequence of requests (and responses), preferably from a network snoop.

  • Problem with constraint names

    Hi to all, I have a problem with the constraint names. I need to delete the table name that is used like prefix in the constraint name.
    Example:
    - Actual : DBO_MYDATABASE_FK_Ho_Ka
    - Desired : FK_Ho_Ka
    The constraint names are FK_Ho_Ka in the creation database script, but if I import the database schema, I have DBO_MYDATABASE_FK_Ho_Ka, but I only need the constraint name.
    Thanks so much :)

    Thanks for your time :)
    I did a migration from Microsoft SQL Server 2005 to Oracle 11g database. Then, I need to use the same Entity Framework model to use with Sql Server and Oracle. Then, I need that the constraint names must be the same in the two databases.
    I did the migration with Oracle Sql Developer and all works fine. The resulted migration script has the constraint name like FK_UJ_UK (that it's OK) but when I import the database schema or do the Entity Framework model, I have this constraint name DBO_MYDATABASE_FK_UJ_UK.
    Edited by: Bluegene on Dec 11, 2008 9:35 AM

  • Hi Can you please guide me in solving this problem Unique Constraint  Prob

    Can you please tell me what is the problem.
    Please find the table creation below.
    create table table1(id int,value int);
    create table table2(id1 int,value1 int);
    create table maptest(id int references table1(id),id1 int references table2(id1),
    CONSTRAINT map_uniq UNIQUE(id,id1));
    Iam getting the following error "[ANTs Software][ANTs DATABASE ODBC driver][ants_dsn_3.61] Server returned error : ERROR (28): Target column must be unique!"
    Regards,
    Faizan.

    Thanks For the reply Gints Plivna,
    OOPS i forgot to put the primary key constraint for tables
    create table table1(id int primary key,value int);
    create table table2(id1 int primary key,value1 int);
    create table maptest(id int references table1(id),id1 int references table2(id1),
    CONSTRAINT map_uniq UNIQUE(id,id1));
    Now this works fine ...
    Thanks For your Reply

  • Problem with constraint in a table..help required..

    Hi ,
    i need to create a table which has an attribute year_joined and need to set a constraint that the year_joined should be less than or equal to the current year (year obtained from sysdate (YYYY)) ..
    can any one help me with the create statement required...
    eg: create table test(year_joined number, constraint c_year check(year_joined< = ?));
    i could not use a sub query in the create statement.
    help req..
    thanks,
    sri

    Satyaki,
    I tried but fail. Could you please tell the way how it can be implementaed in CHECK constraint.
    SQL> CREATE TABLE T ( YERR_JOINED NUMBER(4) , CHECK (YERR_JOINED <='2007'));
    Table created.
    SQL> drop table t;
    Table dropped.
    SQL> CREATE TABLE T ( YERR_JOINED NUMBER(4) , CHECK (YERR_JOINED <= TO_CHAR(SYSDATE,'YYYY')));
    CREATE TABLE T ( YERR_JOINED NUMBER(4) , CHECK (YERR_JOINED <= TO_CHAR(SYSDATE,'YYYY')))
    ERROR at line 1:
    ORA-02436: date or system variable wrongly specified in CHECK constraint
    SQL>

  • One problem with constraints missing in source and target database....

    DB Gurus,
    In my database I am going to export and import data using datapump but dont specify CONTENT clause.
    so when I start working on my application, I came to know there are some constraints are missing. now how to check what are the constraints are missing from Source database and how to create those missing constraints on Target database?
    Suggest me if you have any idea.

    Create a database link between source and target schema.
    Use all_/dba_/_user_constraints to generate the difference using MINUS operator.
    something like this:
    select owner,constraint_name,constraint_type from dba_constraints@source
    MINUS
    select owner,constraint_name,constraint_type from dba_constraints

  • Problem about constraints and validation

    hi
    I want to add new unique constraint into a table. But current data does not fit to constraint.
    My constraint is like this:
    ALTER TABLE T_STUDENT ADD
    CONSTRAINT UNIQ_STUDENT
    UNIQUE (STUDENT_NUMBER, NAME, SURNAME)
    DISABLE
    VALIDATE;
    I want to add constraint and I do not want to update the data. So how can I add constraint without validating current data?

    Since you are creating UQ constraint, Oracle will create a UQ index to enforce it. You have to use non-unique index for such a constraint:
    SQL> create table t (x int, y int);
    Table created.
    SQL> insert into t select 1,1 from dual connect by level <= 2;
    2 rows created.
    SQL> alter table t add constraint t_uq unique(x) enable novalidate;
    alter table t add constraint t_uq unique(x) enable novalidate
    ERROR at line 1:
    ORA-02299: cannot validate (TIM.T_UQ) - duplicate keys found
    SQL> alter table t add constraint t_uq unique(x)
      2  using index (create index t_indx on t(x)) enable novalidate;
    Table altered.

  • Primary key, unique key impdp problem

    Hi, during my impdp I came across problems with constraints being violated. So I disabled all constraints in a proper order. It didn't help. There are still the same errors. I checked some individual constraints that were problematic and it turned out that they were all disabled as I expected. I don't understand why datapump still shows these errors despite constraints are DISABLED.

    But if the unique index exists on the target table it does not matter if the PK is disabled or not. You would need to drop the index; however, this shows you have a data problem.
    Why do you have duplicate keys? If you import duplicates then rebuilding the unique index would result in an error.
    Do you need to truncate or drop some of the target tables before importing?
    These are points I raised in my first response and which you have not addressed in your answer.
    HTH -- Mark D Powell --

  • Constraints in shifting UME from portal database to ABAP

    Hi All,
    We want to move our UME to ABAP and checking for the problems and constraints in this process.I have read in the below link that due to ABAP engine constraints User can change his password only once in  a day.
    http://help.sap.com/saphelp_sm32/helpdata/EN/84/10594aecd3e1408845e66c432b955e/frameset.htm
    We want to give the option for the user to change the password more than once in  a day from EP . Please suggest me that Can we overcome this constraint in any way or is it unavoidable? Please tell me if there are any other constraints in shifting the database to ABAP. Please help.

    Dear Sharath,
    Due to the security policy of the AS-ABAP system, users can change their passwords only once per day. However, if the administrator provides a new password, the user can and must change his or her password the next time he or she logs on.
    This is fixed in the system and cannot be changed.
    Another important constraint is that once you have chosen this data source configuration, you cannot change to any other data source configuration.
    For other constraints while using ABAP as data source, please refer to this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/49/9dd53f779c4e21e10000000a1550b0/content.htm
    Best Regards,
    Shitij

  • Error deploying when web.xml contains similiar security-constraint elements

    I am receiving an error when I include similiar security constraints in my web.xml descriptor.  I actually have many security-constraint elements defined but I have narrowed it down to the following two that appear kind of similiar which are causing the problem:
    <security-constraint>
    <web-resource-collection>
         <web-resource-name>ProcessesPosts</web-resource-name>
         <url-pattern>/processPost/*</url-pattern>
    </web-resource-collection>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
         <web-resource-name>Processes</web-resource-name>
         <url-pattern>/process/*</url-pattern>
    </web-resource-collection>
    </security-constraint>
    The error I receive is:
    #1#com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generating components of sap.com/s25qoie_1_SAP application in servlet_jsp container.
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:512)
         at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:248)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:215)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:371)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:405)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:2298)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:286)
         at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:2636)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:253)
         at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:109)
         at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:841)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:125)
         at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:59)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:108)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:168)
    Caused by: java.lang.IllegalArgumentException: Invalid prefix pattern in URLPatternList
         at javax.security.jacc.URLPatternSpec.setURLPatternArray(URLPatternSpec.java:329)
         at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:106)
         at javax.security.jacc.WebResourcePermission.<init>(WebResourcePermission.java:188)
         at com.sap.engine.services.servlets_jsp.server.deploy.util.jacc.JACCRulesGenerator.generatePermissionsUnchecked(JACCRulesGenerator.java:311)
         at com.sap.engine.services.servlets_jsp.server.deploy.util.jacc.JACCRulesGenerator.generateAndAddPermissionsIntoPolicyConfiguration(JACCRulesGenerator.java:132)
         at com.sap.engine.services.servlets_jsp.server.deploy.util.jacc.SecurityConstraintParser.processAllSecurityConstraints(SecurityConstraintParser.java:151)
         at com.sap.engine.services.servlets_jsp.server.deploy.util.jacc.SecurityConstraintParser.createSecurityResourcesJACC(SecurityConstraintParser.java:57)
         at com.sap.engine.services.servlets_jsp.server.deploy.util.SecurityUtils.createSecurityResources(SecurityUtils.java:122)
         at com.sap.engine.services.servlets_jsp.server.deploy.DeployAction.initXmls(DeployAction.java:722)
         at com.sap.engine.services.servlets_jsp.server.deploy.DeployAction.deploy(DeployAction.java:276)
         at com.sap.engine.services.servlets_jsp.server.deploy.WebContainer.deploy(WebContainer.java:181)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:506)
         ... 14 more
    Has anyone seen anything like this?  Have I defined something wrong in my web.xml?  The exact same web.xml file does work in several other application servers.

    Hi Jay,
    I am not aware of such document for the preview release.
    About the concrete problem your investigation was enough detailed so we managed to reproduce and fix it.
    Thanks and regards

  • ODI File Datastore

    Hi All,
    I have a confusion regarding physical and logical length in ODI file datastore.
    I have a fixed width file where a col c2 had datatype as string(30).
    I defined that column in datastore as string>Physical length 30 >Logical length 30
    My interface failed with error as"
    ORA-12899: value too large for column "S0_IDM"."C$_0S0_EAGLE_DWHCDC_CHRG_MST"."C2_CHARGE_DESC" (actual: 31, maximum: 30)"
    When I increased the logical length to 255,the interface worked fine.
    Physical length still being the same 30.
    How different is this?
    Any help on this will be appreciated.
    Thanks and Regards
    Reshma

    This is not from any official documentation, but here is my take after a few moments thought
    Everything you do in the ODI designer is based on the logical architecture. Only at runtime is this manifested into a physical implementation i.e. connection strings are materialized etc. When you perform an integration ODI generally creates a few temporary tables prefixed with C$, I$ etc to be able to perform the necessary data movement and transformations required to, for example, populate a target datastore (table). In your example, your flat file will be materialized into such a temporary table before its contents are manipulated (or not) and loaded to the target datastore. When ODI generates this code it is using the logical length issued in the DDL that generates the temporary table column lengths, the physical column is ignored.
    Now in your scenario this is not a problem as constraints such as these do not matter to the physical version of the file i.e. if you were to write back to the file it would not matter if you wrote back 255 characters or 31. This could be a problem if you were using database tables and varying the logical vs. physical lengths but usually you reverse engineer database tables using ODI rather than doing it manually so this mitigates that.
    Anyway, in short, I think the logical lengths should be taken as representing what will be manifested in the materialization of the temporary objects used to manged / transform data from the source models (C$tables) and target models (I$tables)  whereas the physical lengths indicate what the underlying physical representation of those models actually are.
    EDIT: After reading a bit of documentation logical actually represents the length whereas physical is related to the number of bytes required to store the data. Therefore you could have a situation with multi-byte characters where the physical length could be greater than the logical length but not really the other way around. 

  • Best practice to load a table that is a relationship between 2 parent tabs

    I need to know what is the best way to load a table that is a kind of relationship between 2 master tables and that is relating them. It is an append procedure not a replace procedure.
    should it be a sqlldr?
    what tool should be used?
    Thanks a lot.
    @}--->----->>----------
    Paola

    Yes it is inside of a file that is a kind of .txt, it is ASCII.
    I want to load without having problems with constraints at all.
    But the point is that it should be fast enough to avoid performance problems.
    Thank you.
    Paola
    @{--->----->>----------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Move page from Dev to Prod?

    I would like to copy/move a page from my Development application to Production. Both are on the same workspace. I go to the destination app and, while editing a page, select Create > New Page as a Copy. The page I'm moving already exists in the destination and I'd simply like to update with the new version of the page. However, it doesn't seem to allow you to "update" a pre-existing page. You have to copy to an unused page number. I believe I can delete the original page and then move it, but wanted to see if there's a more eloquent way to update the existing page.
    Ideas? I'm using APEX 4.2
    Thanks,
    Steve

    Hi Steve,
    you can export page from one application and modify line in export script:
    wwv_flow.g_flow_id := nvl(wwv_flow_application_install.get_application_id,APP_NUMBER );Modify APP_NUMBER with number off application where are you importing script but you'll probably have problems with constraints.
    The best way would be to separate workspaces. One for development, one for production version (copy of dev) and put them on different instances of APEX. Then you could easily do export/import.
    Br,
    Marko Goricki
    http://apexbyg.blogspot.com/

  • Strange mapping debbug error!

    I'm debugging a mapping and I have problem : parent constraint not found, it's strange because I defined other tables the same and it's ok. but this table have a Date format, so I think this is the problem. I know that Oracle format is dd-mon-yy, and I have mi source files as dd/mm/yyyy, can I put in the flat file propreties the format dd/mm/yyyy, or I must put the oracle format (dd-mon-yy)?
    I thing it give this error because ti can't se the row referenced because has data format!

    Hi,
    If your flat source file has the format dd/mm/yyyy on dates, you should use DD/MM/YYYY in the format string also.
    You might also want to turn on error logging in the properties of the mapping. This can give you an error log on the DB server file system.
    Regards, Hans Henrik

Maybe you are looking for

  • U330 External display problem.

    Hello I just bought a U330 and I am having problem using it with my external monitor attached via VGA. The laptop won't let me set the maximum resolution as 1920 by 1200. Every time I try to force it to display at 1920 x 1200 resolution, it will simp

  • How to remove "Created by" and "Last Modified" on Edit list item

    Hi,  I have a custom list, after adding items when I try to edit, I can see "Created by" and "Last Modified"  at the bottom left(You can see in pic below). I need to remove it, How can I achieve this? This is overlapping with some of my fields when I

  • Screen of my ipod touch blocked since he tried to save to icloud

    When I switched on my ipod touch this morning, a message came on the screen: "sauvegarde icloud, because you have not saved your content to icloud in the last 2 weeks, you have to do so. Therefore, your ipod has to be connected to a socket, be locked

  • Time Machine Backup= Aperture quits upon startup

    Here is the Problem Details. ALL of my other applications are working perfectly from the Time Machine restore function except for Aperture. It is version 2.1 Process: Aperture [650] Path: /Applications/Aperture.app/Contents/MacOS/Aperture Identifier:

  • Distorted downloads when burned to CD

    I purchased some music and then burned it to a CD. This has created cda files. However when i play these (on a different computer) from the CD the songs are all distorted (sort of on fast forward with clicks!!) Are there some restrictions that I'm no