Synonym for TEXT datatype (migration from postgres)

Hi,
we want to migrate a Java application currently using a postgres database to Oracle with the least changes possible. One open question is the use of TEXT datatypes in postgres. We need some trick that the 2 statements in Oracle will work:
create table COFFEEStext
(COF_NAME varchar(32),
SUP_ID int,
PRICE float,
SALES text,
TOTAL float)
and
INSERT INTO MONALISA.COFFEESTEXT (
COF_NAME, SUP_ID, PRICE,
SALES, TOTAL)
VALUES ( 'arabica', 1, 2.35,
'good stuff', 2.35 );
I tried using a TYPE
CREATE OR REPLACE TYPE TEXT AS OBJECT (
COL VARCHAR2 (4000))
but then the INSERT statement does not work (Needs TEXT('good stuff') and easy select does not work as well).
I would need to define a synonym TEXT for VARCHAR2(4000) or CLOB (like the datatype REAL and FLOAT are synonyms for some NUMBER(x,y)).
How can I achieve this without changing the original statements from the Java Application?
Thanks, Michael

yes, that's true. But this means to change the code in the Application from datatype TEXT to VARCHAR2.
This is only an example, in realityt there are dozens of tables with their DDLs spread in the code, so I look for a solution without changing the DML and without changing the DDL of the application if possible!
The problem is that the same code still runs on postgres and the maintainer is not willing to make great changes everywhere.

Similar Messages

  • What cable do I need for a full migration from a 2011 MacBook Pro to a new current one-wireless migration way too slow.?

    What cable do I need for a full migration from a 2011 MacBook Pro to a new current one-wireless migration way too slow.?

    All you need is an Ethernet cable.
    Just plug it into both machines. Don't bother with a crossover cable, just a plain old Ethernet cable will do. The Ethernet ports on the Macs are smart and will adjust appropriately.

  • Custom Auto Attendant Prompts through TUI not working for users who migrated from 2010 to 2013

    In Exchange 2010, we started using unified messaging and set up Auto Attendants. We setup a admin role/RBAC for people of a security group to be able to update the message on the auto attendants. They have the UMPrompts assigned role. All of this is working
    great in 2010. We have now migrated to 2013, and the users who were migrated from 2010 to 2013 can no longer update the messages through TUI. Newly created 2013 users can and are assigned the EXASCT same permission as the users who have been doing this for
    well over a year on 2010.  When they call the AA and press #,* they are asked to provide their extension, after doing so the system tells them that extension is not correct. and asks for the extension again.  Newly created users with the same permissions
    get prompted for their PIN and can log in and change the message just fine. 
    Confirmed Bug?  anybody else having this issue?
    What would be different for this process between a user who was migrated from a previous version like 2010 compared to a newer user who has only ever existed on 2013?

    What if the migrated 2010 users are in the same DB as the system mailbox? I had a similar issue during a migration; http://www.skypeadmin.com/2014/11/10/known-issue-um-automated-attendant-tui-editing-broken-migration/
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Possible cause for Faces failures (migration from an older version)

    I've had no luck with Faces recognizing faces in images.
    I think that the issue is with how the images got to iPhoto.
    I imported 2000+ images from my iBook (iPhoto 04). Of those, Faces failed in ~>95% of the images. Today, I took two junky photos with Photobooth, including a dark and distant shot. Faces recognized that there was a face in the image, although it hadn't learned the face, yet (I know, that takes time).
    I believe the issue might have to do with the fact that I imported images from a distant version (i.e. coming from iPhoto 4 instead of iPhoto 07 or 08, or whatever).
    Or, possibly that I migrated from another machine as opposed to upgrading iPhoto on the same machine?
    Hopefully this line of reasoning will isolate the problem's cause.
    Please reply if you are having success or not, as well how your photos got into iPhoto '09 (i.e. Migration from another computer and type, prior iPhoto version, etc.)
    I'll start...
    I migrated my images from iPhoto 4 from an iBook (PPC) and have had very little, if any, success with Faces recognizing faces in images.
    Thanks!

    I just imported (from my Treo) three images that were exactly the same as the three successes from Photobooth.
    Being from different sources they cannot be the same. Maybe the face in the photo was the same but the rest of the file, i.e. the metadata is different. Some image sources write metadata differently and that can cause issue. It's probable that iPhoto is expecting the metadata to adhere strictly to the EXIF/ITPC standards and some of the sources don't in writing the metadata to the file.
    Report the problem to iPhoto via http://www.apple.com/feedback/iphoto.html and give the details of the photos as you've done here. That will help them better understand the issue and get a fix out.

  • NPE for textField text after migration from ea2 to final release , help....

    I migrate an application from JSC2 EA2 to JSC2 final release
    In one of my page (first page that i check after migration) I have some text field.
    In a button action i used those textfields Text for some processing.
    Now after i press submit key (whether text boxes are full or empty) i get null pointer exception when i try to access the textfields text
    by using getTextField1().getText().toString()
    can any one say where i have mistaken in my migration plane ?
    Thanks

    Hi,
    Suggest to replace all butttons using FCS version.
    There was some change from EA to FCS for buttons.
    e.g. if you have multiple buttons on a Page that was created using EA
    then the wrong action handler will get called
    hth
    John

  • Bi-derectional text and migration from Flex 3 to Flex 4

    Hi guys, Can we migrate our application from Flex 3 to Flex 4
    in order to support bi-directional text? I have been reviewing the
    new Text Layout Framework tutorial and I found out a set of new
    components that need to be used in order to support bi-di ext.
    What about the classical Flex components that we used to use
    in our application? do I need to re-write my application with the
    TLF components in order to support bi-di? Can’t I just set
    some new properties and re-compile my application?
    Please help
    Thank You

    For Flex 4, in addition to developing new "Gumbo" components
    which have an improved skinning architecture and use TLF, the Flex
    team is also planning to make it possible to have a few TLF
    features such as bidirectional text in some or perhaps all of the
    Halo components from Flex 3. These components currently use a
    Player class known as TextField. A class called TLFTextField is
    being developed which uses TLF to implement the same APIs as
    TextField, and therefore can replace TextField in the Halo
    components.
    This work is underway but not yet complete. Only a few
    components are currently working with this approach and there is no
    way at the moment to turn on bidirectionality. We are also starting
    to develop a UI-mirroring feature to allow the entire user
    interface -- not just the text -- to become right-to-left.
    So what you need -- the ability to write Arabic and Hebrew
    applications using only legacy Halo components -- is planned for
    Flex 4.
    Gordon Smith
    Adobe Flex SDK Team

  • User Defined datatypes migration from sqlserver2000 to Oracle

    Hello,
    Need help on the below for sqlserver 2000
    a. Whether the current version of Oracle Migration WorkBench
    supports migration of userdefined datatypes
    b. A list (or a doc listing) the limitations of Oracle Migration WorkBench, from the perspective of what all needs to be migrated manually.
    Thanks a lot
    Cyril

    Cyril,
    Have a look at the users guide and the reference guide for SQL Server on OTN. UDTs get mapped to their base types through the Migration Workbench.
    Look at otn.oracle.com/tech/migration/workbench and click on documentation. All the user guides and reference guides are here.
    thanks
    Barry

  • What is the procedure for FDM App Migration from v9 to v11

    Kindly provide the procedure for Migrating of FDM application from system 9.3.1 to v11.1.2.1.
    and also Please share the documents if you folks having.
    Thanks in Advance.
    AVSR
    Edited by: 948364 on Jul 24, 2012 5:07 AM

    This is covered in the documentation pretty well I believe; however, here's the outline I followed...
    - Copy FDM databases to v11 database server. (I renamed mine to follow my v11 naming scheme, but ...)
    - Copy FDMApps folders over (i.e. Inbox files, scripts, etc)
    - Add the applications to the new FDM. (i.e. from the login screen, pick Add Application
    - Run Schema Update tool on your FDM applications
    - Run User Migration Tool on your FDM applications
    - Extract Oracle\Middleware\EPMSystem11R1\products\FinancialDataQuality\SharedComponents\DBSetup.zip to /Data/Scripts/Custom folder for each FDM App
    - Update Machine Profiles (Workbench) (Repeat for each application)
    - Add Adapter (Repeat for each application)
    - Configure Adapter (Repeat for each application)
    - Fix mappings*
    In v9, you don't have to map dimensions you don't use. In v11 you do.... Instead of doing it that hard way and manually updating hundreds of maps, I used SQL to do it. In my environment ICP, UD3, UD1, and UD2 generally were not mapped. You would need to update this accordingly.
    NOTE : I TAKE NO RESPONSIBILITY IF THE FOLLOWING CODE BLOWS YOUR STUFF UP. IT SHOULDN'T, BUT ...........
       Function    : Bulk Create Import File Format field creator
       Author      : Charles Beyer
       Date        : 5/10/2012
       Description : This routine will automatically create a new record for each Import File Format
                     Corresponding to the supplied information.  This may come in handy if you find
                     yourself needing to map a field that you have never needed before and MOST
                     of the locations are not actively mapping it yet.
                     It will also take care of the incrementing of the ImpSeq field automatically for you
                     Finally, it will create a * to * mapping to serve as a generic placeholder in the location's
                     map
       Input(s)    :
                     @FDMField = This is the FDM field name such as UD2
                     @FieldValue = This is the hardcoded value to start with such as [None]
    --Declare Working Memory
    DECLARE @FDMField varchar(50)
    DECLARE @FieldValue varchar(50)
    DECLARE @ImpSeq int
    --Initialize Working Memory
    SET @FDMField = 'UD2'
    SET @FieldValue = '[None]'
    SET @ImpSeq = (select top 1 ImpSeq from tBhvImpItemFile order by ImpSeq DESC)
    -- Insert a Import File Field corresponding to the supplied Field Name
    -- For each location that *DOES NOT* already have that field defined in their
    -- Import Format
    insert into tBhvImpItemFile (ImpGroupKey, ImpSeq, ImpFldFieldName, ImpFldFixedText, ImpFldStartPos, ImpFldLength)     
         select distinct (ImpGroupKey), 0 as ImpSeq, @FDMField, @FieldValue, 1, 1 from tBhvImpItemFile where ImpGroupKey not in (Select ImpGroupKey from tBhvImpItemFile where ImpFldFieldName = @FDMField)
    -- Since for some silly reason ImpSeq is not an identity field, we need to increment the values
    -- To play nice
    update tBhvImpItemFile set @ImpSeq = ImpSeq = @ImpSeq + 1 where ImpSeq = 0
    --Add a '* to *' type mapping
    insert into tdatamap (PartitionKey, DimName, SrcKey, SrcDesc, TargKey, WhereClauseType, WhereClauseValue, ChangeSign, Sequence,  VBScript)           
         select distinct partitionkey, @FDMField, '*','* to * Default Map', '*', 'Like', '*',0, 0, '' from tDataMap     
              where PartitionKey not in (select distinct partitionkey from tDataMap where DimName = @FDMField)

  • Photos for OS X, migration from Aperture

    i shouldn't have, but I have, migrated all my aperture photos into the new photos on OS X.  Because not all the metadata is present on some old pics, it's messed them all up! I need to update all the data in aperture when I have time, then import them all.
    is there are way you can reverse the migration process, and start again from scratch?

    Apparently, when you inittiate the Photos Import - the the NEW photos library  copies over the masters from  aperture and leaves Aperture with references to the new Library  ??
    So how do we reverse this and reset the New photos ? .
    Both libraries are sharing the same files by hard links. Hard links are different from aliases or symbolic links. Both libraries will work on its own, even if you delete the other library. That is why they are showing nearly the same file size in the Finder. You can delete one of the libraries and the other will continue to work.
    See:  Six Colors: The (hard) link between Photos and iPhoto
    Or: Photos saves disk space by sharing images with your iPhoto or Aperture libraries - Apple Support

  • What chords do i need for a data migration from macbook 2008 to  macbook air 2012

    My 2008 macbook has a firewire port and my new macbook air 2012 has a thunderbolt port. I have a thunderbolt cable but i can't find an adapter to firewire or the firewire cord? Should I return the thunderbolt cable and surrender the 100 bucks for one-on-one or go through the tedious process of using my external hard drive as the 'messenger boy'?

    There's all sorts of ThunderBolt to FireWire adapters out there. Here's one on Amazon. http://www.amazon.com/Apple-Thunderbolt-to-FireWire-Adapter/dp/B008RXYOKY/ref=sr _1_11?ie=UTF8&qid=1346277186&sr=8-11&keywords=thunderbolt+firewire
    You'd also need a FireWire 800 to 400 adapter. http://www.amazon.com/elago-FireWire-400-800-Adapter/dp/B002TF0ZDQ/ref=sr_1_8?ie =UTF8&qid=1346277133&sr=8-8&keywords=thunderbolt+to+firewire

  • R3load argument values for OS/DB migration from HP-UX/ORA to WINTEL/MSSQL

    Greetings,
    I am looking for a comprehensive list of R3load task and load argument values for both export and import.
    We are using distribution monitor 1.9.1 I'm looking for possible values for the following parameters in distmon properties file.
    r3load.export.taskArgs
    r3load.export.loadArgs
    r3load.import.taskArgs
    r3load.import.loadArgs
    migmonArgs
    I know the typical values, but I am looking for a comprehensive list and I have not been able to find it in any documentation.
    thanks,
    Joe

    > I know the typical values, but I am looking for a comprehensive list and I have not been able to find it in any documentation.
    Yes - because there is no such list and those parameters change because R3load and lib_dbsl is continously developed; I'd check the corresponding notes.
    Currently for Oracle I'd use
    -loadprocedure fast -merge_bck
    and for MSSQL I'd use
    -loadprocedure fast -merge_bck -c 10000
    plus
    BCP_LOB=1 in the environment of the user running the R3load.
    Also I'd set the logging to minimal and add traceflag 610 (http://msdn.microsoft.com/en-us/library/dd425070%28v=sql.100%29.aspx) - plus modifying DDLMSS.TPL to use page compression.
    Markus

  • Alerts for Text messages.

    I have sounds imported from my last phone to use on my new Droid Incredible.  I have certain sounds I want to use for text message alerts from my last phone. How can I get them set or am I stuck with just the supplied ones that came with the phone.  I know how to set tones for contacts, but cant figure out how to do it for text messages.
    Thanks in advance for the help.

    Phoinix wrote:
    I have sounds imported from my last phone to use on my new Droid Incredible.  I have certain sounds I want to use for text message alerts from my last phone. How can I get them set or am I stuck with just the supplied ones that came with the phone.  I know how to set tones for contacts, but cant figure out how to do it for text messages.
    Thanks in advance for the help.
    Create the following folders in your sd card.  Move or copy your ringtones to the proper folder and they will show up automatically on the right list.
    \media\audio\ringtones
    \media\audio\notifications
    \media\audio\alarms

  • Migrating from form4.5 to forms9i

    Hi all,
    Just wanna check how easy is it to migrate from forms4.5 to forms9i. I understand that we need to migrate first to forms6i and then move to forms9i.
    My main concern is that I have never done migration before.
    Is it easy to migrate to forms9i or we need some migration experts to do it. If its quite simple then ,where i can find relevant documents for the migration..
    regds
    Lasily Thomas

    Basic migration is simple - open the old form in the new builder.
    I'd recommend you check out the Forms upgrade center on OTN for more information than you'll ever need:
    http://otn.oracle.com/products/forms/htdocs/upgrade/index.html
    Also read the document:
    http://otn.oracle.com/products/forms/pdf/forms_upgrade_reference.pdf
    For a list of all the stuff that has been made obsolete in 9i that you may have to watch out for, particularly when migrating from an old version like 4.5

  • Migrating from OAS to iAS9

    Hi!
    I'm looking for documents about migrating from OAS 4.0.8.1 (Linux & HP-UX) to iAS9. The document i have found on OTN don't tells me much about how to migrate from JServlet and PL/SQL.
    My main questions are:
    - how do i migrate my Servlet, which uses many Oracle spezific classes (icx etc.). Are these Classes supported in iAS?
    - how i call PL/SQL-Skripts from Servlets now? Is ICX supported?
    - can i use my PL/SQL scripts without modifications? I'm using only htp.print
    Che
    null

    a) ICX is not supported from Java. However, ICX is just http library - kind of like java.net.url. So, you should be able to do everything that ICX provided using java.net packages. If not, pl. submit a followup and we can discuss.
    b) The way you would call a PLSQL procedure is you would just submit a request thru java.net.url package. The target url of this request would be one that maps to the plsql procedure. You will thus have the response back in a string.
    c) You can use your plsql scripts without modifications [at least for what you are doing. there are some minor changes, but they don't impact you.]
    The other thing to note is that you cannot runa standalone sql file like you could in OAS. It has to be in the database.
    null

  • Migrating from SharePoint Online to an In House SharePoint Environment

    What will be the method for clients to migrate from SharePoint Online to an In House SharePoint environment if the need arises in the future. I have had clients ask me this and I do not yet have a good answer.

    Hi Michael,
    Right now, to migrate off of SharePoint Online, it is a manual process. You would need to copy the documents, lists, etc. all manually (suggest creating list templates that contain the data). Third party tools like those offered by Quest, Metalogix, and Casahl also work in this scenario.
    However, we realize this is not ideal. We have heard several requests in this area and are now exploring options to provide an automated way to get your data off of SharePoint Online.

Maybe you are looking for

  • My iPhone 3GS (working on iOS 6.1.3) has not backed up to iCloud for the past 10 weeks.

    My iPhone 3GS (working on iOS 6.1.3) has not backed up to iCloud for the past 10 weeks. And whenever I try Backing up to iTunes or to iCloud via either a pc or a Mac, I get the message: "Itunes could not backup the iPhone because an error occured". I

  • How to change the orientation of a document on iPad?

    How do I change the orientation of a document on my iPad?

  • How to deploy war file in wesphere5.1

    hi i am new to websphere 5.1. i am trying to deploy war file in websphere admin it giving an error that ear file is corrupt. same file is working with weblogicc.. so please tell me step by step . if is there any other site where can i get the step st

  • Calculation on two columns in pivot table

    Hello all, I have a view: Dept Year Amount Accounting $500 2010 Accounting $700 2011 Engineering $100 2010 Engineering $600 2011 and etc pivot table:(data displayed side by side) Dept: 2010 2011 Accounting $500 $700 Engineering $100 $600 Is there a w

  • Relinking resizing issues with CS5.5

    I've just gone from CS3 to 5.5. Working from templates I've created, I could relink variations of a logo without the scale of the logo changing (the text will stay the same size from one logo to the next) and when updating images that have been rezed