ORA-01732: what functions are allowed for view creation?

Hi,
i try to create a view, where i can delete rows. Here my view
CREATE OR REPLACE VIEW myview as select * from (select * from orders order by starttime) where rownum < 4
If i try to delete a row i get:
SQL Error: ORA-01732: Datenmanipulationsoperation auf dieser View nicht zulässig
(translation: data manipulation for this view not allowed)
Breaks the rownum the view? I tested it with rank() over and this breaks it too...

sql>
CREATE OR REPLACE VIEW myview
as
select * from (select * from emp order by hiredate) where rownum<4;
View created
sql>
create or replace trigger trig1
instead of delete
on myview
for each row
begin
delete from emp
where empno = :old.empno;
end;
Trigger created.
sql>select * from myview;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7499  ALLEN  SALESMAN  7698  20-FEB-81  1600  300  30 
7521  WARD  SALESMAN  7698  22-FEB-81  1250  500  30 
7566  JONES  MANAGER  7839  02-APR-81  2975     20 
sql>
delete from myview
where rownum=1;
1 row deleted.
sql>select * from myview;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO 
7521  WARD  SALESMAN  7698  22-FEB-81  1250  500  30 
7566  JONES  MANAGER  7839  02-APR-81  2975     20 
7698  BLAKE  MANAGER  7839  01-MAY-81  2850     30
Message was edited by:
        jeneesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Java.sql.BatchUpdateException: ORA-01027: bind variables not allowed for da

    Hi guys, I m facing a problem while executing below query .Query is working fine in toad i don't know what is the issue with the code
    <code>
    String url3 = "CREATE OR REPLACE VIEW Table2(PERIOD, YEARS, COST_CENTRE, S_DIR_PERM, S_DIR_CONT, S_INDIR_PERM, S_INDIR_CONT, O_DIR_PERM, O_DIR_CONT, O_INDIR_PERM, O_INDIR_CONT)AS select period, year, cost_center, sum(s_dir_perm), sum(s_dir_cont), sum(s_indir_perm), sum(s_indir_cont), sum(o_dir_perm), sum(o_dir_cont), sum(o_indir_perm), sum(o_indir_cont) from ( select b.period, b.year, a.cost_center, sum(a.perm_dir_hc) as s_dir_perm, sum(a.contract_dir_hc) as s_dir_cont, sum(a.perm_indir_hc) as s_indir_perm, sum(a.contract_indir_hc) as s_indir_cont, 0 as o_dir_perm, 0 as o_dir_cont, 0 as o_indir_perm, 0 as o_indir_cont from ZVHR_ACT_HC_ASOF_FISPRD a, pertable b where to_char(as_of_date, 'mm/dd/yyyy') = b.ENDPERIOD and shift not in ('G','N','O2','O7') and b.endperiod = ? group by b.period, b.year, a.cost_center union select b.period, b.year, a.cost_center, 0 as s_dir_perm, 0 as s_dir_cont, 0 as s_indir_perm, 0 as s_indir_cont, sum(a.perm_dir_hc) as o_dir_perm, sum(a.contract_dir_hc) as o_dir_cont, sum(a.perm_indir_hc) as o_indir_perm, sum(a.contract_indir_hc) as o_indir_cont from ZVHR_ACT_HC_ASOF_FISPRD a, pertable b where to_char(as_of_date, 'mm/dd/yyyy') = b.ENDPERIOD and shift in ('G','N','O2','O7') and b.endperiod = ? group by b.period, b.year, a.cost_center) group by period, year, cost_center";
    PreparedStatement statement3 = connection.prepareStatement(url3);
    statement3.setString(1, "12/10/2008");
    statement3.setString(2, "12/10/2008");
    statement3.addBatch();
    statement3.executeBatch();
    </code>
    i m getting the following error
    java.sql.BatchUpdateException: ORA-01027: bind variables not allowed for data definition operations
    can any1 help me with this.

    Can you explain what you are trying to do from a business perspective?
    If you are creating a view, it doesn't make sense to pass bind variables to that DDL statement. The view definition itself is going to have to end up with hard coded date values there. So what possible benefit is there to using bind variables?
    As an aside, if you are using bind variables and you have DATE columns, you really want to pass in the proper data type (i.e. setDate or setTimestamp rather than setString). Otherwise, Oracle has to do implicit string to date conversion, which depends on the session's NLS settings, which is likely to be different on different client machines and lead to all sorts of odd errors and behaviors down the line.
    Are you trying to build a view that takes parameters? If so, there are a few options for that sort of thing.
    Justin

  • What apps are available for ipod touch 1st generation

    what apps are available for 1st generation ipod touch

    Here's a list of Apps/games I've been able to download & play for 1st gen ipod touch:
    1. Dragon Story
    2. Dragon Village
    3. World War
    4. Rollercoaster Buggy
    5. GTA: Chinatown Lite
    6. iBrowser Free
    7. Castle Magic Lite
    8. Tappily Ever After
    9. TextFree
    10. Unblock Me
    11. Emer. Radio Free
    12. Need For Speed: Hot Pursuit
    13. Touch Chords
    14. Word Search
    15. Ghost Stories
    16. Search Bing
    17. HTML Viewer
    18. Multi-App
    19. Namco Portal
    20. Fantasy Background
    21. Shanghai Lite (Mahjongg)
    22. Solitaire
    23. Bling
    24. Freecell
    25. Fairy*
    26. City Story
    27. *City*
    28. Nightclub
    29. Hidden Object Free
    30. Party In My Dorm
    31. Crossworlds: The Flying City
    32. Fast-Connect (WiFi)
    33. Taptown 2
    34. The Hunt
    35. Daily Jigsaw
    36. Hidden Mysteries: Civil War
    37. Slingo Supreme Lite
    38. Pocket Bingo
    39. Keno Keno Free
    40. Live Bingo
    41. Scrabble Free
    42. Boggle Free
    43. Fruited
    44. Free Browser
    45. Monster City
    46. City Zombies
    47. Jewel Farm
    48. iSpaceship Landing
    49. Land Of The Lost: Crystal Adventure
    50. Exotic Positions
    51. Sex Postions Game
    52. iFun Sex
    53. Yukon (Solitaire)
    54. Canfield (Solitaire)
    55. Sex Positions
    56. Pickup Lines
    57. Yo Momma Ultimate Lite
    58. Jokes
      There are more.

  • What updates are available for Mac OS X 10.5.8 (9L30)?

    What updates are available for Mac OS X 10.5.8 (9L30)?

    Before embarking on a major OS upgrade, it would be wise, advisable and very prudent if you backup your current system to an external connected and Mac formatted Flash drive OR externally connected USB, Thunderbolt or FireWire 800, Mac formatted hard drive. Then, use either OS X Time Machine app to backup your entire system to the external drive OR purchase, install and use a data cloning app, like CarbonCopyCloner or SuperDuper, to make an exact and bootable copy (clone) of your entire Mac's internal hard drive. This step is really needed in case something goes wrong with the install of the new OS or you simply do not like the new OS, you have a very easy way/procedure to return your Mac to its former working state.
    Then, determine if your Mac meets ALL minimum system install requirements.
    Mac OS X v10.6 Snow Leopard system requirements
    Purchased Installer disc here. 
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    To install Snow Leopard for the first time, you must have a Mac with:
    An Intel processor
    An internal or external DVD drive, or DVD or CD Sharing
    At least 1 GB of RAM (additional RAM is recommended)
    A built-in display or a display connected to an Apple-supplied video card supported by your computer
    At least 5 GB of disk space available, or 7 GB of disk space if you install the developer tools
    Installing and updating OS X 10.6 Snow Leopard to OS X 10.6.8 gives your Mac access to the Mac App Store where you can decide which version of OS X to upgrade to, again, if you desire.
    OS X Lion system requirements
    Purchased emailed download code here.
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    To use Lion, make sure your computer has the following:
    An Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    Mac OS X v10.6.6 or later to install via the Mac App Store (v10.6.8 recommended)
    7 GB of available disk space
    2 GB of RAM
    To install OS X  10.8 Mountain Lion or OS X 10.10 Yosemite.you need one of these Macs:
    OS X 10.8 Mountain Lion purchased emailed download code here.
    http://store.apple.com/us/product/D6377Z/A/os-x-mountain-lion
    iMac (Mid-2007 or later)
    MacBook (13-inch Aluminum, Late 2008), (13-inch, Early 2009 or later)
    MacBook Pro (13-inch, Mid-2009 or later),
    MacBook Pro (15-inch or 17-inch, Mid/Late 2007 or later)
    MacBook Air (Late 2008 or later)
    Mac mini (Early 2009 or later)
    Mac Pro (Early 2008 or later)
    Xserve (Early 2009)
    Your Mac also needs:
    OS X Mountain Lion, Lion, or Snow Leopard v10.6.8 already installed
    2 GB or more of memory (I strongly advise, at least, 4 GBs of RAM or more)
    8 GB or more of available space.
    Your year and model Mac can take a total of 6 GBs of RAM, max..
    I strongly suggest you install the max. RAM your Mac can take.
    Correct, compatible and reliable Mac RAM can ONLY be purchased from online RAM sources Crucial memory or OWC (macsales.com).
    OWC is the only source for the  6 GB RAM kit.
    Next,
    If you run any older Mac software from the earlier PowerPC Macs, then none of this software will work with the newer OS X versions (10.7 and onward). OS X Snow Leopard had a magical and invisible PowerPC emulation application, called Rosetta, that worked seamlessly in the background that still allowed older PowerPC coded software to still operate in a Intel CPU Mac.
    The use of Rosetta ended with OS X Snow Leopard as the Rosetta application was licensed to Apple, from a software company called Transitive, which got bought out, I believe, by IBM and Appe  could no longer secure their rights to continue to use Rosetta in later versions of OS X.
    So, you would need to check to see if you have software on your Mac that maybe older than, say, 2006 or older.
    Also, check for app compatibilty  here.
    http://roaringapps.com/
    If you have any commercial antivirus installed and/or hard drive cleaning apps installed on your Mac, like MacKeeper, CleanMyMac, TuneUpMyMac, MacCleanse, etc. now would be a good time to completely uninstall this apps by doing a Google search to learn how to properly uninstall these types of apps.
    These types of apps will only cause your Mac issues later after the install of the new OS X version and you will have to completely uninstall these types of apps later.
    Once you have determined all of this, you should be able to find the latest versions of OS X by clicking on the Mac App Store icon in the OS X Dock and then login to the Mac App Store using your Apple ID and password and using the appropriate download codes need
    You can then begin the download and installation process of installing your desired versions of OS X  from the Mac App Store.

  • No taxes on sales/purch.are allowed for account 413001 1000, Z3 is not allo

    Hi All,
             I am getting the error message when i am creating the excise invoice in j1iin
    No taxes on sales/purch.are allowed for account 413001 1000, Z3 is not allowed
    Message no. FS217
    Plz Help
    Regards.

    Hi Abid
    Trying to answer your question, can you please let me know what do you mean by "<b>Z3</b>"??
    Also if my understanding is correct, 413001 is the respective GL account for Excise Duty Payable and 1000 is your Sales Org??  Correct me if I am wrong.
    Thanks
    G. Lakshmipathi

  • Is it possible to define what clients are allowed to connect?

    Hello,
    under certain circumstances i would like to have the possibility to define what clients are allowed to connect to the database. I was trying to find something like an "access list" for the listener configuration in which one can define what computers will be allowed by the listener to connect to the db, but unfortunately i didn't succeed.
    Do you know if something like this exists? (its about an old 9.2 db...)

    Sorry, it seems this already is what i was looking for:
    http://www.dba-oracle.com/security/node_filtering.htm
    I will give it a try
    kind regards

  • What changes are required for OSS note 456507

    Hi All,
    PLease advise me what changes are required for OSS note 456507 (Assign the function groups QOWK or ORFC in the authorization object S_RFC to tRFC/qRFC users).
    I’m thinking of just going with the following additions to Role
    AAAB – Cross Application Auth Objects
    S_RFC
    Activity – 16
    Name of RFC - *
    Type of RFC - *
    But wanted to check what the implications of doing such a thing were, are there any negative points that you can think of opening up the access as above, as opposed to what was suggested in the OSS note?
    Your advice would be greatly appreciated.
    Thanks in Advance.
    Regards,
    Sandhya.

    Hello Sandhya,
    S_RFC is needed in case of making any RFC calls.
    Normally it is needed  for users that are mentioned in RFC destinations.
    As such mostly these users are system/communication users or super users.
    Without giving access to function groups through S_RFC successful RFC call can´not be done.
    Now the value of field name of RFC can be * but only for those users which are really global super users. In case you need this authorization for any selective functionality as in you case only for function groups QOWK or ORFC then you should try to  restrict the access. Negatiity is only that in case of * the authorization access increases but for system or super users you dont need to worry too much really because with system/communication users no one can login and the super users will have sap_all generally. Also their passwords will be a well kept secret so that a miususe can not be made.
    By global super users I mean users which are used for various types of activites.
    Please award points accordingly.
    Regards.
    Ruchit.

  • No taxes on sales/purch.are allowed for account 2601010    5000, V0 is not

    Dear Friends,
    While posting the amount from PLA HOLD to PLA account in J1IH ,getting an error
    No taxes on sales/purch.are allowed for account 2601010    5000, V0 is not allowed.
    This GL is PLA CESS.
    What could be the reason.
    Thanks
    MKS

    Hi,
    Goto the GL account and mark the Tax Category in Control Data to * (all taxes allowed).  This will solve ur issue.
    Thanks
    Krishna.

  • No taxes on sales/purch.are allowed for account 24910000 5000, V0 is not al

    Dear Sir,
    While  posting the amount from PLA HOLD to PLA account in J1IH ,getting an error
    No taxes on sales/purch.are allowed for account 24910000 5000, V0 is not allowed.
    This GL is PLA CESS.
    What could be the reason.
    Thanks
    deepti

    Hi
    This is a setting done by FI during G/L account master data creation. Hence the issue. Use T Code FS00 and check the control data for the relevant G/L account. Take the help of the FI consultant to make the changes.
    Regards,
    Jn.

  • When you open a new browser tab, underneath the box to type in what you are looking for is the recently visited list. I want to disable or delete this list...how do I get rid of this list???

    When you open a new browser tab, underneath the box to type in what you are looking for is the recently visited list. I want to disable or delete this list...how do I get rid of this list???

    The drop-down list displays items from your History and/or Bookmarks.
    You can control what shows (or nothing at all): Options > Privacy, "Location Bar" section. Options are:
    *History and Bookmarks
    *History
    *Bookmarks
    *Nothing
    See --> https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • No taxes on sales/ purch. are allowed for account 50600000 , v0 is not al

    Hi ,
    While posting in MIRO , the below error message is coming.
    No taxes on sales/ purch. are allowed for account 50600000 , v0 is not allowed .
    this account is P& L statement  account with Tax category blank in master data.
    please help me how to solve this issue..
    Thanks & regards,
    Hari priya

    Hi,
    Is it the Z message?, if so validations are hitting this message.
    'posting without tax allowed ' has a relevancy  only when you have tax category being filled up on the master data.
    Regards
    Suresh Addagiri
    SAP FICO/sabrix consultant

  • Error in MIRO -  " No taxes on sales/purch.are allowed for account 174600

    Hi freinds,
    a have created new condition type for PO maintained the same Pricing procedure also .now my problem is while doing miro it is showing an error that " No taxes on sales/purch.are allowed for account 174600 1000, V0 is no is not allowed "
    pls help me out .
    regards,
    Rashmi

    Hi
    Fo to FS00 enter your GL and company code go to change made and then go to contoal data tab and then in Tax category
    select * or as per your requirment.
    regards

  • HT3231 What cables are necessary for the fastest transfer of data from MacBook Pro to MacBook Air

    What cables are necessary for the fastest transfer of data from MacBook Pro to MacBook Air

    As I posted "it is an Unknown", at least to me, what type FW port is on the OPs older Mac.
    LowLuster
    HT3231 Re: What cables are necessary for the fastest transfer of data from MacBook Pro to MacBook Air 
    Dec 26, 2013 8:04 PM (in response to OGELTHORPE)
    But the newest Mac notebooks do not have a firewire port.
    So he may need a TB to FW adapter, $29, a FW 400 or 800 cable, $??, and then a FW 400 to 800 cable/port adapter (If the old Mac only has a FW 400 port), $??.
    It is unknown if the old Mac has a FW 400 or 800 port.

  • What settings are required for DP_PROC_TY,CT_PROC_TY,TEND_TYPE

    hai friends
    what settings are required for DP_PROC_TY,CT_PROC_TY,TEND_TYPE
    Thanks a lot
    Regards
    VinayKrishna

    Hi Vinay,
    1. For DP_PROC_TY  you need to give the transaction type or R/3 document type you want to use for creating direct material POs. Could be ECDP given in the standard or copy of which you might  have created.
    2. For CT_PROC_TY it is either PCTR or GCTR depending what you want to create local contract or GOA.
    3. TEND_TYPE can have BID, RFCR etc depending on what type of bid invitaion you want to create form sourcing cockpit or as follow on bid invitaion.
    Ragards,
    RRK.
    Do reward points for useful answers
    Edited by: Ramakrishna Rallapalli on Jun 16, 2008 9:06 AM
    Edited by: Ramakrishna Rallapalli on Jun 16, 2008 9:06 AM

  • No taxes on sales/purch.are allowed for account 440080 1000, A2 is not allo

    hello gurus
    when evere we are doing the billing am getting the prob like this
    No taxes on sales/purch.are allowed for account 440080 1000, A2 is not allowed
    where we can assign cost center in SD
    can u pls tell me the procedure 
    thanks
    shameer

    Dear Shameer
    Go to FS00, input the G/L Account and click on Control Data tab. There maintain asterisk (like star) mark against the field "Tax Category"  This should solve your problem.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • How to display value in waveform chart

    dear sir i am using labview 7.0 with dsc module for scada.  now i want to display the difference between two tags value in waveform chart. Also i want to display that difference value on y axis and system date and time on x axis continously. Also if

  • Problems with files and a new hard drive...

    Hi there... I have maxed out an external hard drive I was using to hold all my photos.... I have bought a 2 new drives with a view to backing up everything I have on file. If I start moving files around LR then can not locate the files and they come

  • Crystal reports 9 installation hangs on xp craxdrt9.dll PLEASE help!!

    I uninstalled crystal reports 9 and did a re-install on the same machine, but the re-install is hangig on registering modules crxdrt9.dll. This .dll is in the correct folder and I tried to manually uninstall it and re-install but it keeps on trying t

  • N900 OVI map not available to be download..?

    Can I know where to download Nokia N900 OVI map..? Because I search allots of places but I still cannot get the map..Thks..

  • Junit installed, but with test failures

    Hello, I installed junit using pacman without issues. Now I tried to do the tests as mentioned in http://junit.sourceforge.net/doc/faq/faq.htm#started_2. However that causes two failures as below: faraz ~ $ java org.junit.runner.JUnitCore org.junit.t