What to do when I have column named as OBJECT_ID....

Hi all,
Can any one tell the work around if i have one column named as OBJECT_ID. I have table which has got column name object_id, although it should not be, but it is an existing applciatin so, i need to fix this.
Oracle has got a pseudocoulumn named ad OBJECT_ID, so when I deployed my application in server and there client is using ORACLE 10g . It throws an exception.
Please help
thanks

Hi,
I am calling this insert statement from java programme.
INSERT INTO AUDIT_TRAIL ( "
               + "AUDIT_TRAIL.ID, " + "AUDIT_TRAIL.ACTIVITY_DATE_TIME, " + "AUDIT_TRAIL.ACTIVITY_TYPE_ID, "
               + "AUDIT_TRAIL.CASE_STATUS, " + "AUDIT_TRAIL.LOGGED_DATE_TIME, " + "AUDIT_TRAIL.OBJECT_ID, "
               + "AUDIT_TRAIL.OBJECT_TYPE, " + "AUDIT_TRAIL.SERVICE_NAME, " + "AUDIT_TRAIL.SYSTEM, " + "AUDIT_TRAIL.USER1 "
               + ") SELECT " + "AUDIT_TRAIL_PK_SEQUENCE.NEXTVAL, "
               + "CASE.ACTIVITY_DATE_TIME, " + "CASE.ACTIVITY_TYPE, "
               + "CASE.CASE_STATUS, " + "SYSDATE, " + "CASE.CASE_ID, "
               + "'Case', " + "?, " + "'Case Management Services', "
               + "?" + "FROM " + "CASE " + "WHERE " + "CASE.CASE_ID=(SELECT CASE FROM FORM_CONTENT WHERE FORM_CONTENT_ID=?)
in our location we are using oracle 9i, but in client side they are using 10g...
thanks

Similar Messages

  • HT1212 What to do when you have not synced to itunes and when it says to connect to itunes?

    what to do when you have not synced to itunes and when your ipod says connect to itunes?

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • HT3231 why do all these pages not tell you where migration assistant is on a mac pro. they all say what to do when you have it however this is of no use if you are unable to find.

    why do all these pages not tell you where migration assistant is on a mac pro.  They all say what to do when it is on however this is of no use if you are unable to find it in the first place.

    In the Utilities folder, which is in Applications. You could also use Spotlight to search for it.
    Matt

  • What to do when you have an iPhone5 but Mac OS 10.5.8

    If you are reading this, you are probably experiencing the same thing as I am: you got an iPhone5, tried to sync it with iTunes just to find out that you can't do so since your Mac runs on OS 10.5.8.
    There have been multiple posts about how to upgrade your OS, but none describes what is really involved in the actual process.
    I thought I would share my experience here in the hope that it might help others who are in the same situation.
    First, I called 1-800-MY-APPLE and told them that I'm considering upgrading to Snow Leopard (OS 10.6).
    The representative asked for my computer's information (which I could easily get from "About this Mac" under the Apple menu).
    She then told me whether my computer is upgradable to Snow Leopard (it is) and how far I could upgrade (it could take Lion 10.7, but not Mountain Lion 10.8).
    The cost of getting Snow Leopard discs is $19.99 + tax, with no shipping fee.
    The cost of upgrading to Lion is also  $19.99 + tax, with no shipping fee.
    Thus, if I want to go all the way to Lion, it's $19.99 x 2 + tax.
    By upgrading to Snow Leopard, I can get iTunes's latest version (10.7) and sync all my media.
    By upgrading to Lion, I could also utilize iCloud in full capacity.
    I decided to go all the way to Lion.
    When I called them this morning (Thursday) around 7:30am, and I was connected to a representative right away.
    My entire conversation with her, including the actual order,  took about 15 minutes.
    FYI, they are open 24-7.
    I was told that I should get my Snow Leopard discs by tomorrow or Saturday.
    As for Lion, you get a code to download, so there is really no wait time (although you obviously have to upgrade to Snow Leopard first).
    There are other ways of dealing with the situation (using a pc with Windows, getting iTunes Match (but you pay $24.99/year), getting a new Mac, etc.), but I found upgrading to Snow Leopard for $19.99 with 1-2 days wait quite reasonable.
    This is not to say that I was happy about having to go through all this, but I was anticipating much worse - after all, if you do a search for Snow Leopard discs on Amazon, they come up around $100.
    And who knows how quickly you can get them from those sellers?
    I was also glad to talk to someone who can confirm whether my computer is upgradable or not.
    I didn't want to place an order and then find out my Mac can't upgrade.
    I hope others find this info helpful.

    well unfortunally it is on a windows machine. sp i t is not possible to move it
    Yes, it is very possible to move it.
    You simply cannot do it using FireWire target disk mode as PT was trying to exlapin.
    1 - You can network the computer together.
    2 - You can copy them on DVD/CD.
    3 - You can use yamipod to get them off the iPod.
    4 - You can use the iPod to copy the library from your Windows computer to the Mac computer.
    Click here -> How to use your iPod to move your music to a new computer

  • What to do when you have reached you're 5 out of 5 iTunes authorisations

    I have had to re-install a few times recently on my Desktop PC but have noticed that I have now reached my 4th out of 5 Computer Authorisations in iTunes.
    What happens when I reach the 5th one and is there a way of re-setting this counter?
    Thanks

    Hi crofty, Welcome to the Forum.
    What happens when I reach the 5th one and is there a way of re-setting this counter?
    Regarding for this matter, you could read this article:
    [About iTunes Store authorization and deauthorization|http://support.apple.com/kb/HT1420]
    Hope this could give you an idea.
    Regards,
    MCM

  • What to do when you have a power outage and my iphoto photos are gone

    I was workng in iPhoto on a photo book when the power went off.  After the power came back on, I turned on my computer and returned to my project in iPhoto, and every photo was gone....disappeared.  It looked like I just installed iPhoto with nothing in the events or photos.  What do i do???
    My photos are backed up, but the book does not back up.  So, that means I have to start my book from scratch and import the photos again!!  I cannot get back all the hours I've worked on this project. 
    Question:  Is there a way to retrieve my photos and all my previous projects in iPhoto?
    --Elaine

    For iPhoto v7
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new iPhoto 08 library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

  • What to do when you have internet connection but go to use an app, you get the Error message, 'An error occurred connecting to the server. Please make sure you have an internet connection' ?

    Yesterday, I downloaded the twoignite app. When I went to open the app to use, this error message appeared: An error occurred connecting to the server. Please make sure you have an internet connection. I checked my connection and found I had a solid connection. I have tried closing the app and reopening it; deleting the app and redownloading it (more than once); turning off my iphone and turning it back on. None of these things have worked. Thanks.

    Have you already seen this:
    http://forums.adobe.com/message/5099439#5099439
    Maybe you could also try asking in the kuler forum.

  • HT1911 what to do when you have forgotten security questions

    i have forgotten my security questions what do i do now

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551

  • What to do when i have lost the email with the serial number on??

    as it says above, i downloaded and biught CS5 from adobe last year, and have lost the email with the serial number on and i need to reload it onto a new machine. all emails from adobe were lost during a breakdown of my laptop.
    could someone shed some light as to how i get this serial number back? i do not want to have to buy photoshop again! it costs enough as it is!

    You will find your serial number in your account only if you have registered your copy with Adobe. If you haven't done that, the only way is to call customer support and see if they can help. (http://www.adobe.com/support/contact/)

  • What to do when you have no middle mouse button

    I usually use my middle mouse button. However I'm away from home and office using somebody's MacBook and they have the old style USB mouse (no middle button). Is there any keyboard shortcut to use with the mouse that will do the same as the middle button (button 3)?

    Pastes things into my remote PC onto something called Exceed. The old apple+V won't work because the Exceed won't let you ctrl+V into it. The only way I have ever done it is using the middle button by clicking down on it.
    I know, not the norm but I'm stuck!

  • What to do when you have finish

    What do you do once your project is finish and how to put it on a dvd ?
    Thanks

    DVD Step By Step

  • HT1430 what to do when I have forgotten my ipod password and it says disabled

    My son has forgotten his password and managed to disable it what do I do ?

    You'll need to connect it to the iTunes library you normally sync it with and restore it.  If iTunes asks you for this passcode before it will let you proceed, connect the iPod to iTunes in recovery mode instead using the instructions in this Apple support document.
    iOS: Unable to update or restore
    B-rock

  • What to do when you have a new mac but an old Ipod??????

    Hi everyone
    I'v got bit of a problem. I just got a new mac, and I want to get all my songs from my ipod in the itunes on the new mac. Is this possible, cause I simply just can't see how this is suppose to be done. Any out there who know??

    well unfortunally it is on a windows machine. sp i t is not possible to move it
    Yes, it is very possible to move it.
    You simply cannot do it using FireWire target disk mode as PT was trying to exlapin.
    1 - You can network the computer together.
    2 - You can copy them on DVD/CD.
    3 - You can use yamipod to get them off the iPod.
    4 - You can use the iPod to copy the library from your Windows computer to the Mac computer.
    Click here -> How to use your iPod to move your music to a new computer

  • CMP : Table does not have a column named ...

    Hello All,
    The following error is generated while verifying CMP bean before deployment with asant tool.
    The table and field are present in the database, is there any way to debug whats wrong?
    Error:
    The table XYZ does not have a column named ABC
    Test Name : tests.ejb.ias.cmpmapping.ASSunCmpMappingTest
    Test Assertion :
    Test Description : FAILED [JDO-GEN-CMP-Validation] : Unexpected exception occured while initializing JDOCodeGenerator, for the mapping file [ META-INF/sun-cmp-mappings.xml ], of the ejb archive [ SchemeEJB ] .Check stacktrace for details :
    [ java.lang.RuntimeException: The table XYZ does not have a column named ABC[/b]
    The following error is reported. But in reality there is a column name(ABC) in the table(XYZ).
    Thanx in Advance
    Rgds,
    Girish.
    Here is the cmp-mapping.xml we are using
    <sun-cmp-mappings>
    <sun-cmp-mapping>
    <schema>SchemeEJB</schema>
    <entity-mapping>
    <ejb-name>SchemeEJB</ejb-name>
    <table-name>SCHEMES</table-name>
    <cmp-field-mapping>
    <field-name>schemeDeptCode</field-name>
    <column-name>SC_DEPT_CODE</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>schemeCode</field-name>
    <column-name>WF_SCHEME_CODE</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>schemeEnName</field-name>
    <column-name>EN_NAME</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>schemeUcdName</field-name>
    <column-name>UCD_NAME</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>schemeStartDate</field-name>
    <column-name>START_DATE</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>schemeEndDate</field-name>
    <column-name>END_DATE</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>isActive</field-name>
    <column-name>IS_ACTIVE</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>enShortDescription</field-name>
    <column-name>EN_SHORT_DESC</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>enLongDescription</field-name>
    <column-name>EN_LONG_DESC</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>ucdShortDescription</field-name>
    <column-name>UCD_SHORT_DESC</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>ucdLongDescription</field-name>
    <column-name>UND_LONG_DESC</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>sponsererCode</field-name>
    <column-name>SPONSERER</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>userId</field-name>
    <column-name>WS_USER_ID</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>createdDate</field-name>
    <column-name>WS_CREATED_DATE</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>lastModified</field-name>
    <column-name>WS_LAST_MODIFIED</column-name>
    </cmp-field-mapping>
    </entity-mapping>
    </sun-cmp-mapping>
    </sun-cmp-mappings>

    This is almost always the case when using CMP and the schema hasn't been updated after adding the new column to the database. This has happened to me multiple times in the past month.
    I'm referring to the <schema> element under the <sun-cmp-mapping> element in the sun-cmp-mappings.xml deployment descriptor that's generated from the capture-schema utility.
    I'm 99% certain this is what you're encountering.

  • What index types do you suggest when you have...

    If you have tables A, B, C and they are all partitioned range by created_date where that is a timestamp
    If nearly all queries can only specify created_date on C only because the B's that belong to A and the C's that belong to B can all be in different partitions relative to their children. So if you have weekly partitions for A, B, C the C's the belong to B and the B's the belong to A can be in different weeks partitions. Now A, B and C all use surrogate keys and there's an index on all of them. You have one to many b/w A->B and one to many b/w B->C where any C has a 1 B parent and that B parent can have one and only one A parent.
    When doing the join you end up doing something like
    select * from A, B, C
    where A.a_id = B.a_id
    and B.b_id = C.b_id
    and C.created_date >sysdate - 1
    The problem is that the indexes on A and B are all global non partitioned as are the indexes on C
    Right now we get partition elimination on C on a good day but when the optimizer decides go to A first we get none. Whenever the optimizer goes to A it often does partition range all scans because there is no partition key on A or B
    used in the query.
    How can we get the query plan to reliably use C first so that partition elimination is always guaranteed.
    Currently our thinking is to use /*+ ORDERED */ where the from is C, B, A
    Unfortunately the programs cannot introduce bind variables so where we can use Baselines to manage the plan for a given sql_id the only way we can do this is to use CURSOR_SHARING=force via login trigger on their session. This forces the
    introduction of bind variables in to the query but Their queries are formed dynamically from a GUI screen that optionally can provide different parameters. So not only do you have N's items in an IN clause to worry about you also have other optional parameters that can show up in the query depending on whether they are used or not.
    Q. Has anybody solved this problem by wrapping the query in a procedure so that you can pin the plan to the procedure where all that differs in the procedure is how the arguments are specified? This seems tedius to me because the procedure would have to take comma separate lists of values whenever you want to pass the values to be used in an IN clause.
    Only if you wrap a query that can have optional parameters and N values for any parameter can you manage the plan for that procedure thru a baseline otherwise you simply end up with too many plans to manage because of the different combinations of the size of the IN clauses and the optional parameters that can be specified.
    When joining b/w A, B, C etc what indexes should be partitioned?
    The typical query uses column values on A to limit the C's associated with the B's that are associated with the A's that match those columns. Those fields on A have global indexes so often when the plan is one where it starts at A first and works it's way down it has to consider far too many rows from A that are unrelated to the eventual partition narrowed to from the C.created_date predicate.
    Edited by: steffi on Mar 8, 2011 8:56 PM
    Edited by: steffi on Mar 8, 2011 8:57 PM
    Edited by: steffi on Mar 8, 2011 8:58 PM

    Dear Steffi,
    The problem is that the indexes on A and B are all global non partitioned as are the indexes on CWhy are you saying that this is a problem?
    What are the definition of your primary index on A, B, and C?
    You can eventually add the partition key (created_date) to those primary keys and hence locally partition their corresponding PK indexes
    As far as you wrote that there is no relation ship between A.created_date, B.created_date a and C.created_date, then I beleive you can't benefit from the partition wise join because in such case you need to join A,B and C on the same partition key which is created_date
    Currently our thinking is to use /*+ ORDERED */ where the from is C, B, AUsing /*+ ORDERED */ is not a guarantee that the Oracle Optimiser will obey this hint.
    Use the hint /*+ Leading(C) */ instaedYou know that when you wrap your query into a static PL/SQL procedure you don't have to care then about the use bind variable. It will be used;
    that is how static PL/SQL wroks. But when you are using dynamic sql into this PL/SQL procedure you need in this case to take care about using bind variable.
    The auto-binding trick which is represented by the cursor_sharing=force (or similar) is not highly recommended as far as there exist side effects like the one that cames to my mind now which is when you have function based indexes based on litteral (for example a function based index like substr(a,2,4)) will be rewritten, when cursor_sharing is set to force, to be substr(a, :SYS_B0, :SYS_B1) which will not mach your original query and will not use the function based index anymore
    Best Regards
    Mohamed Houri

Maybe you are looking for