View created with NUMBER(126) type instead of using the underlying datatype

I have a view that needs to be updated with one additional field. The view combines the contents of three different tables with the same fields using UNIONs and some logic to filter out certain contents from each table. I created the new field in each of the three underlying tables with a type of NUMBER(4), then added it to the view and it had a type of NUMBER(126). This caused errors to be generated by queries (PLS-216).
I don't know how relevant this is, but if I use the version of the view that I pulled out of our source repository, which was written for 9i, EVERY number field shows up as NUMBER(126) in the 10g database whether I include the new field or not. That script has the following format:
CREATE OR REPLACE VIEW <viewname> (<field1>, <field2> ... ) AS select <field1>, <field2> ... from
<select 1>
UNION ALL
<select 2>
UNION ALL
<select 3>
) a
LEFT JOIN <table4> ON field = field
I used dbms_metadata.get_ddl to pull the DDL out of an existing 10g production DB, and it was more or less the same except it began:
CREATE OR REPLACE VIEW <viewname> ("<field1>", "<field2>" ... )
That is, all of the field names were in quotes. When I ran THAT on a different 10g instance, all of the NUMBER fields pulled their size from the underlying tables; when I modified that script to include the new field, it was the only field that was a NUMBER(126)

Strangely, I was able to get the correct datatype by moving the new field to the beginning of the view. Metalink indicates that this is a bug in Oracle.

Similar Messages

  • VF11 wrongly created with RV Doc type and with not clear status.

    Hi All
    Issue: There are 2 billing documents which were created(VF01) in March are canceled (VF11) in May. Cancel document is saved with a message (No automatic clearing of billing document XXXXXXXXX) and message diagnosis saying that u201CThe Automatic clearing of billing document and reversal is not possible. This may be, for example, because the line item update is deactivatedu201D
      In the SD document flow cancel billing document is created and it's posted to accounting with Document type RV(which is not configured in the billing  types) and it is in not clear status.
    2 Sales order types are ZNRC(No Rebate u2013 Credit)    second is ZCR (CM Req With Refer).
    Order Type  : ZNRC , Billing type :ZG2, Cancel billing type :Z5, Accounting document in billing type for ZG2: is DG and accounting document in cancel billing type Z5 is :(_) blank.
    Order type:  ZCR Billing type :G2, Cancel billing type :S2, Accounting document in billing type for G2: is DG and accounting document in cancel billing type S2 is :(_) blank.                                                
          FI document type Not maintained in the cancel billing type configuration because this should be determine by reversal document type DA which is maintained in DG document type from FI side. It will be triggered in VF11)
    The above configuration is working with the order created VA01,billing VF01 and cancelling VF11 done in same period. If the order and billing done in old period and canceling(VF11) done in current period than FI document creating with RV document type and with not clear status in the document flow.
    I reviewed similar issues with SAP Note and with below explanation:
              "There are 2 procedures that are possible when Vf11 is posted.
              Old Procedure - An FI "Reversal" document was created that was not connected with the orignal.
              New Procedure - A Real FI reversal was carried out with clearing."
    In this case, our system is following with new procedure except above mentioned orders created in previous period and and canceled in current period.
      My Questions are: How the RV document is getting triggered here? why the cancel document (Reversal FI Doc) is not clearing?
         Appreciate your answers or suggestions.
    Thanks in advance,
    Sunil
    Edited by: Sunil kumar Matta on Jun 9, 2011 3:40 PM

    Thank you Ivano.
      I referred SAP note 1259505 and 339928. But initially we thought of none of the symptoms mentioned in the SAP note are matching with our issue. Then we contacted SAP online support and they suggested checking one SAP note (Mentioned above).
      Our system is following new cancellation procedure, but itu2019s failing only for some few documents.
      Finally we identified several reasons for the issue. One is profitability segment in the billing document and cancelled document is different due to some changes in segment assignments. Another one is consolidation- consolidation document does not exist in the billing document list but it is getting created in Canceled document (VF11).(Consolidation postings are switched off some time back and now itu2019s on)
      After some discussions it is decided to include accounting document type (Reversal) in cancel billing types to avoid default RV document type in canceled billing document accounting document. And non-cleared documents need to be created manually in F-32.
      Thread is closed.
    Sunil

  • Ho to Comapre with Number Data Type

    hi
    My reqt is to do validation in ValidateEntity Method.
    How to compare the with Number Data type:
    For ex: Number a = gatAbc();
    If(a>10)
    throw new oaExcption...
    But while comapring i got compiler Error
    Error(218,17): method >(oracle.jbo.domain.Number, int) not found in class abc.oracle.apps.per.irc.pqr.schema.server.XxabcEOImpl
    So plz tell me how to compare the integer value with Number data type
    Thanx

    Check with float. It will work definitely.
    float number = Float.parseFloat(HrsPerDay); //HrsPerDay is a String and I am converting it to float
    if(( number <= 0) || (number >= 21))
                            throw new OAAttrValException(OAAttrValException.TYP_VIEW_OBJECT,
                                              "xxCopyResourceVO1",
                                              rowi.getKey(),
                                              "NoOfCopies",
                                              rowi.getAttribute("NoOfCopies"),
                                              "PA",
                                              "xx_xx_COPY_POSITIVE_NUM");
                       }Here in this code i am also checking that the Hours cannot be less then 0 and greater than 20.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • PDF created with text as image instead of text

    Acro Pro 9.3.2 on Win 7 Pro 64-bit using OpenOffice.org 3.2.0, Impress.
    When I create a PDF from a presentation document using the referenced, the text is rendered as an image (which I don't want). I've gone through the settings several times and can't find something which is probably painfully obvious. Oddly enough, if I use OpenOffice.org's Export as PDF feature, the PDF comes through exactly as I'd expect it to, with the text generated as text.
    Would anyone know what setting(s) I've overlooked so I can change the behavior in Acro Pro? Thanks.

    Bill, thank you for putting so much time into this. As you can see from my other responses, the problem may well be limited just to the one doc in question so it's not worth any more of anyone's time. If nothing else, I feel less embarrassed knowing I (apparently) didn't overlook something obvious. I probably shouldn't write that, should I?
    In case it's of interest, I tried unchecking the "rely on sys fonts only" option and that didn't change anything.
    OO 3.2 is a significantly better product than 2.4 btw. I realize you didn't say anything negative about it. I just wanted to drop that in.
    Again, thank you for working on this.

  • Why do I get a "can't import spreadsheet because it was created with an unsupported application version" alert when the updated version was purchased direct from the Mac App Store? The spreadsheet is now lost somewhere!

    Why do I get a "can't import spreadsheet because it was created with an unsupported application version" alert when the updated version was purchased direct from the Mac App Store? The spreadsheet is now lost somewhere!

    Pages 4.3 should still be in an iWorks folder within your Applications folder. 
    http://www.apple.com/feedback/pages.html

  • Order types, why do we need to create our order types and not use the stand

    HI
    Order types, why do we need to create our order types and not use the standard ones during implementation.

    Hi Raj,
    Well there is no hard and fast rule that you have to copy nad create a new order type. Its just to meet our own requirements that we copy the standard and make the changes if required to meet our business needs.
    And by this way we keep unchanged the standard order type for further use.
    If you are sure that the standard order type satisfies your need you can directly use that only.
    I hope this clarifies the issue.
    Do reward if find useful
    Regards,
    Abhi

  • Creating a button for count hits instead of using the default

    Can any one provide me with the code of calculating the total no of records displayed in a forms instead of using the COUNT HITS default functionality provided by oracle in the menu bar

    Hi,
    You can do a count_query on the block for which you want to get the no. of records and then use a get_block_property('<your_block>',query_hits) to get the value.
    For ex.
    go_block('my_block');
    do_key('COUNT_QUERY');
    message(get_block_property('my_block',query_hits));-Arun

  • Push button responds with spoken message, pronouncing the name of the button... Instead of opening the underlying screen of app!

    Dear all,
    My iPhone 4 doesn't work as it should. If I touch any button it responds with a spoken message, pronouncing the name of the button... Instead of opening the underlying screen of app! Bug in the OS?

    No, bug in the user, who enabled VoiceOver in Accessibility settings. See: http://support.apple.com/kb/HT3577

  • Creating a Master virtual hard disk and using the same for all other VM's

    Hi,
    We would like to create a master virtual hard disk and use the same for all other VM's. Can we do that ?
    my requirements :
    1) create 10 VM's
    2) first create a master virtual hard disk with win OS and use the same to create the 10 VM's.
    3) After creating the VM's change the HDD size.
                  -- if i have created master virtual disk with 500GB , and use the same for creating a virtual machine. can we change the HDD size to 1TB ?
    After creating the VM's ,i will change the system names and activate the windows accordingly.
    Will there be any implications ,if we can/will do like this.
    Thanks.

    Hi Suren424,
    I think Using Differencing Disks may cover your needs .
    Please refer to following setps:
       "Create the Parent Virtual Machine Configuration and Virtual Hard Disk
        Install the Operating System, updates, and common software
        Generalize the installation
        Prepare the parent virtual hard disk
        Create the differencing disks
        Create virtual machines that use the differencing disks
    For details please refer to follwing link:
    http://social.technet.microsoft.com/wiki/contents/articles/1393.hyper-v-virtual-machine-vm-parent-child-configuration-using-differencing-disks.aspx
    Hope this helps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • URGENT:Problem in a mapping with 8 tables in JOIN and using the DEDUP op.

    I have an urgent problem with a mapping: I must load data from 8 source tables (joined togheter) in a target table.
    Some data from 1 of the 8 tables have to be deduplicated, so I created a sort of staging table where I inserted the "cleaned" data, I mean, the deduplicated ones.
    I made it to make all the process faster.
    Then, I joined the 8 tabled, writing the join conditions in the operator properties, and connected the outputs into the fields of the target table.
    But..it does not work because this kind of mapping create a cartesian product.
    Then, I tried again with another mapping builted up in this way: after the joiner operator, I used the Match-Merge Operator and I load all data into a staging table exactly alike the target one, except for the PK (because it is a sequence). Then, I load the data from this staging table into the target one, and, of course, I connect to the target table also the sequence (the primary key). The first loading works fine (and load all the data as I expected).
    For the next loadings,I scheduled a pre-mapping process that truncate the staging table and re-load the new data.
    But..it does not work. I mean, It doesn't update the data previously loaded (or inser the new ones), but only insert the data, not considering the PK.
    So, my questions are as follow:
    1) Why loading the data directly from the joiner operator into the fact table doesn't work? Why does it generate a cartesian product??
    2) The "escamotage" to use the Match-Merge operator is correct? I have to admit that I didn't understand very well the behaviour of this operator...
    3) And, most of all, HOW CAN I LOAD MY DATA? I cannot find a way out....

    First of all, thanks for the answer!
    Yes, I inserted the proper join condition and in fact I saw that when WB generates the script it considers my join but, instead of using the fields in a single select statement, it builts up many sub-selects. Furthermore, it seems as it doesn't evaluate properly the fields coming from the source tables where I inserted the deduplicated data...I mean, the problems seems not to be the join condition, but the data not correctly deduplicated..

  • Instead of using the make file can you build nirlpk.sys using MS WDK 8.0 on VS2012?

    After downloading the NI nimhddk_windowsWDM-2 and -1
    Instead of using the make file I built nirlpk.sys using MS WDK 8.0 on VS2012
    I copied the source files out of the dir /nirlpk to the MS template for WDM drivers
    It built after turning warnings as errors off.
    After uninstalling the NI_DMX driver I tried to install the RLP driver that consisted of nirlp.inf and nirlpk.sys
    I got this message:
    Windows found driver software for your device but encounted and error while attempting to install it.
    PCI-6602 RLP WDM
    Driver is not intended for this platform
    Is the nirlp.inf file correct for loading on Windows 7 64 bit?
    Any ideas?

    I have now altered the example along lines
    suggested by ghaneman*, who pointed out that
    a trusted application did not need to use the
    FileOpenService/FileContents just to get an
    InputStream.
    * Mentioned on 'File associations / sandboxed app.'
    http://forum.java.sun.com/thread.jspa?threadID=785224
    The altered code is..
    /** Load a file into the editing area.
    @param path A string representing the path to the desired file. */
    public void loadFile(String path) {
        // first try as if this were a trusted application..
        if (!path.equals(".")) {
            try {
                FileInputStream inputStream = new
                    FileInputStream(path);
                loadFile(inputStream);
            } catch (Exception e) {
                // we do not have trust, use the FileOpenService
                loadFileByFileService(path);
        } else {
            // we only have a directory, use the FileOpenService
            loadFileByFileService(path);
    public void loadFileByFileService(String path) {
        try {
            if (fileOpenService==null) {
                fileOpenService = (FileOpenService)ServiceManager.
                    lookup("javax.jnlp.FileOpenService");
            fileContents = fileOpenService.openFileDialog(path, xtns);
            // the user may have cancelled the action..
            if (fileContents!=null) {
                loadFile( fileContents.getInputStream() );
        } catch(UnavailableServiceException use) {
            use.printStackTrace();
        } catch(IOException ioe) {
            ioe.printStackTrace();
    }If the user launches the trusted version, and
    selects 'always trust' for the (self signed)
    certificate, the end user can thereafter double
    click a file and see it appear in the application's
    editing area with no further user interaction.

  • Im trying to buy a movie on itunes but it keeps asking for a credit car instead of using the money on my account

    im trying to buy a movie on itunes but it keeps asking for a credit car instead of using the money on my account

    OH MAN! I had the same problem for so long! I was trying to get as much information and try as many different ways as possible. None worked for me and I am guessing none worked for you either. I will try and help you out! I hope this works for you!!!
    Click on your Apple ID > Type in your password > Scroll down to Purchase History > Click on it > If your account has red numbers higlighting a balance. You need to pay that first. Then you are hopefully free of that stupid security code crap! I hope this helped you!

  • My serial number will not work after using the trial, I purchased the software from Best Buy.

    Adobe Premiere Elements 11  I have uninstalled and reinstalled, but still will not accept serial number.  Please advise

    lindawhitssitt
    Please use the following link to reach Adobe Chat with your serial number issue. You should get immediate and effective resolution to your issue. After the link opens, click on "I still need more help." and the Adobe Chat pop up will appear.
    http://helpx.adobe.com/contact.html?product=premiere-elements&topic=serial-number-issues-o r-activating-my-product
    Please let us know the outcome.
    Thanks.
    ATR

  • My iTunes has a 25.00 credit on it but whenever I try buying music it tries charging my debit card instead of using the $25

    My iTunes has a 25.00 credit on it but whenever I try buying music it tries charging my debit card instead of using the $25

    What happens when you try to buy a song, what messages/prompts do you see on the screen (gifting will require card details) ? If this is the first time that you've tried to buy something on the account, then unless the instructions on this page are followed when creating an account : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method - Apple Suppor…
    then card details will need to be entered before the account can be used to download any item from the store.
    Have you tried entering card details to see if it is charged for the purchase (you may see a temporary store holding charge go on the card which your card issuer should remove within a few days or so) ? You should be able to remove card details after entering them.

  • I have 2 macbooks each with an account for me and one for my wife. I use one Macbook logged in with my account and my wife uses the other Macbook only loged in on her account. We both make regular time-machine back-ups each on a separate external disk

    I have 2 Macbooks each with an account for me and one for my wife. I use one Macbook logged in with my account and my wife uses the other Macbook only logged in on her account. We both make regular time-machine back-ups each on a separate external disk. Is it possible to update her account on my macbook using her external disk without overwriting my stuff on the same Macbook and vice versa?

    Time Machine does not do individual accounts. It records the complete drive. So if you were to use her TM backup on your Mac it would make your Mac just like hers. Both yours and her account on your MAC.
    Just copy the missing files over from her Mac to yours. If there are differennt programs on each then they would need to be installed on both.

Maybe you are looking for

  • Newly created task does NOT show up at SOLMAN project

    We have CHARM configured. However, the newly created task cannot be seen at SOLAMN's project. The existing tasks showed without issues. What could be the reason?  Thanks!!

  • Code signing tools

    is it possible to just download the code signing tools? I've installed the SDK, but I can't find keytool or the javasign(?) commands. thanks.

  • Does not recognise ipod device

    the lead works fine with a 3rd gen ipod but with my 2gb original it does not recognise the usb device Is there a difference in the cables?

  • Extension of organization structure

    Hi sap guru, Greetings for the day, Iam currently working on SAP PRODUCT DEVELOPMENT, where i have to create a document called EXTENSTION OF ORGANIZATION STRUCTURE, where i already have a standard organization structure where we can view throught tra

  • Stenge error message on OAS 10.1.3.3 class missing

    I'm getting the following error when I run the application : I'm using OAS 10.1.3.0 and upgraded to 10.1.3.3 on Linux it strenge that according to the error message the server knows the missing class is available from the certain locations. but why i