Syntax is not correctly checked while using keep dense_rank

Hi,
Looks like Oracle doesn't check the syntax correctly, "order" is not required to write before "by" in keep (dense_rank...).
DB version 11.1.0.6
SQL> with t as (select 5 val, 2 val2 from dual union all
  2  select 1 val, 9 val2 from dual union all
  3  select 2 val, 9 val2 from dual)
  4  select sum(val) keep (dense_rank last blabla by val2) total_9 from t;
   TOTAL_9
         3Looks like a bug or what?

Did you get any error in 10g?
It is running in my 10g, too.
I've to modify your query as i'm running this in Oracle 8 client. ;)
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
real: 30
satyaki>
satyaki>
satyaki>
satyaki>select sum(val) keep (dense_rank last blabla by val2) total_9
  2  from (
  3         select 5 val, 2 val2 from dual union all
  4         select 1 val, 9 val2 from dual union all
  5         select 2 val, 9 val2 from dual
  6     );
  TOTAL_9
        3
real: 11
satyaki>
satyaki>
satyaki>with tt
unknown command "with tt" - rest of line ignored.
satyaki>as (
unknown command "as (" - rest of line ignored.
satyaki>       select 5 val, 2 val2 from dual union all
  2         select 1 val, 9 val2 from dual union all
  3         select 2 val, 9 val2 from dual
  4     )
  5  select sum(val) keep (dense_rank last blabla by val2) total_9
  6  from tt;
ERROR at line 4:
ORA-00933: SQL command not properly ended
real: 70
satyaki>Regards.
Satyaki De.

Similar Messages

  • How to disable CD-DRIVE checking, while using a Dolphin file manager

    Hello.
    I  would like ask for a help. I have one problem that's quite annoying. It is related to checking cd-drive when using a dolphin file menager. It always cheecks it when Dolphin is launched from K or launcher on taskbar for the first time, again it happens when i close it and open again.
    Is there a way to disable checking of cd-drive in Dolphin? This behaviour occurs on KDE with all linux system that i checked: Slackware, Arch, Kubuntu. Look at this:
    Disabling CD-DRIVE checking, while using a file manager
    I would like to disable it in order to speed up opening Dolphin, launching it.

    Udisks2 is what dolphin uses to handle external drives of all kinds (USB, optical, etc).  Udisks is an automounting tool that allows normal users to mount disks.  The permission handling before was handled with consolekit and has now been replaced by systemd-logind (which is much better anyway).  So what I am suggesting is that it might be that dolphin is using udisks2 as the tool that polls for the existence of a disc in your optical drive.
    Unfortunately, it is a bit more confusing than that because udisks2 is the replacement for the original udisks.  It is totally different and not compatible.  So I remember seeing a way to turn off optical drive polling, but I cannot remember if it was udisks or udisks2.  But it was done with a udev rule. 
    So I think if you tried to google for "udisks optical (or cd or dvd) polling" or something like that, you might be able to figure out how this is done.
    Edit: unfortunately, I do not use dolphin or udisks2.  But I do have the original udisks installed.
    Edit2: It seems that the method I remembered is for the original udisks.
    Last edited by WonderWoofy (2013-07-25 17:51:56)

  • Startup error: this version is not correctly localized.  Use the English version.

    I have Itunes running on Win7 ;  its my home laptop (lenovo G770).  A PC-tech cleaned up my registry and shrank my bloated list of startup programs.  After that was done, my laptop booted better.  However, iTunes won't start: the message is "This version of iTunes has not be correctly localized for this language.  Please use the English version."
    How can I fix that?  Sure I can reinstall new client (iTunes) over top of my old iTunes, but is there anything simpler?

    Hey there theozt,
    It sounds like you are getting an error message saying that iTunes is not correctly localized for this language. I would use the troubleshooting in the following article, named:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Start with this step, and work your way down the article as needed:
    Start iTunes in Safe Mode
    Open iTunes in Safe Mode to isolate any interference from plug-ins or scripts not manufactured by Apple.
    Hold down Shift–Control while opening iTunes. You should see a dialog that says "iTunes is running in safe mode" before iTunes finishes starting up.
    Click Continue.
    See if the issue you're experiencing persists in Safe Mode.
    If you have the same issue while iTunes is in Safe Mode, proceed to the "Create a new user account" section. If you don't experience the same issue, follow these steps to remove third-party plug-ins.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Not responding / crash while using proxy calendar

    Hi
    On one station the GroupWise Client crashes often while using proxy calendars. The user opens a calender trough proxy access and klick on somme entries (days). The error is not reproducable - restarting the client and do the same klicks won't crash again.
    Most of the crashes report this File: C:\PROGRA~2\Novell\GROUPW~1\gwclu.ocx
    Any help would be nice.
    grpwise.exe 11/16/2014 09:53:31 12.0.3.28451
    - GroupWise Unhandled Exception Report -
    - Generated on 4/1/2015 at 16:50:41 -
    Exception code: C0000005 EXCEPTION_ACCESS_VIOLATION
    Fault Address: 54BF63A8 01:000153A8
    File: C:\PROGRA~2\Novell\GROUPW~1\gwclu.ocx
    File TimeStamp: 11/16/14 09:54:20
    --------------Network----------------------
    Computer Name: PC-75
    User Name: gau
    --------------Hardware---------------------
    Number of Processors: 8
    Processor Type: Intel64 Family 6 Model 30 Stepping 5
    --------------Operating System-------------
    Platform: Windows NT
    Version: 6.1
    Build Number: 7601
    Other Information: S

    In article <[email protected]>, Interbit wrote:
    > Yes, one user, one machine. The machine was completely new installed,
    > still 2-3 isues per Week.
    So this rather points to the user. So the next question is what
    regular preventative maintenance do you have running?
    What I typically set of customers is
    http://www.konecnyad.ca/andyk/gwmnt5x.htm
    If you are already running the contents checks, then look at section of
    the resulting logs for that user to see what errors are showing there.
    Especially of note would be errors that are identical each time as they
    indicate there is something that needs a bit of direct effort.
    Also are there any error showing in the POA logs that coinside with
    these crashes?
    Is it always the same calendar? Are others proxying into the same
    calendar?
    Andy of
    http://KonecnyConsulting.ca in Toronto
    Knowledge Partner
    http://forums.novell.com/member.php/75037-konecnya
    If you find a post helpful and are logged in the Web interface, please
    show your appreciation by clicking on the star below. Thanks!

  • Full text not getting displayed while using RSRT

    Hi,
    I am facing issue while downloading data using RSRT in BI system.
    When I go to RSRT and execute a report the output doesn't display full text for a characteristic. i.e. the characteristic has a size of 60 characters, but only 30 chars ( approx) are being displayed as report output in RSRT.
    COuld anyone here please help me in getting the full text using RSRT transaction?
    I am not using Bex here for the reason that the output has more than 1.8 lac records and hence I get an error while using Bex
    WHen I try to execute this report using Bex for a small selection I could see full text there.
    And there is no text master data maintained for this characteristic.
    Thanks in advance for your replies.

    Hi,
    As you said you have 1.8 Lac records, There is no point in increasing the size to maximum number possible i.e 65K .
    You have following three options to satisfy your requirement.:
    1.    Usage of  web reporting for export of more than 65k rows. According the note: 1127156 - Safety belt: Result set is too large, in BW version 7.x it I possible to set parameters that would allow such a massive export of data.
    2.    Functionality of OpenHubs. Data can be placed directly into the files (e.g. in CSV format) on application server. Be careful here OpenHubs are specially licensed and by using it there are additional fees.
    3.    Coding of custom ABAP report which runs BW query and gets all its output and saves it in the flat files.
    Please let me know if this info is helpful.
    Regards,
    Krishna Tangudu

  • Email body format is not correctly in SOST using SO_DOCUMENT_SEND_API1

    Hi Experts,
    I am sending email from my program, Email body is not coming correct format in the SOST as it is in the internal table.
    Below code i was written if any one knows please suggest.
        CONCATENATE DBHOST ':' SY-REPID INTO SUBJECT.
        DESCRIBE TABLE EMAIL_BODY LINES LINCOUNT.
        MOVE SUBJECT TO V_DATA-OBJ_DESCR.
        V_DATA-OBJ_NAME = 'TEXT'.
      IT_PACK-HEAD_START = '000000000000001'.
      IT_PACK-BODY_START = '000000000000001'.
      IT_PACK-DOC_TYPE = 'HTM' .
      IT_PACK-BODY_NUM = LINCOUNT.
      APPEND IT_PACK.
      IT_RECEIVER-RECEIVER = ADDRESSEE.
      IT_RECEIVER-REC_TYPE = 'U'.
      IT_RECEIVER-COM_TYPE = 'INT'.
      APPEND IT_RECEIVER.
      LOOP AT EMAIL_BODY.
        MOVE EMAIL_BODY-TDLINE TO IT_TEXT-LINE.
        APPEND IT_TEXT.
        CLEAR IT_TEXT.
      ENDLOOP.
        lv_RECEIVER = program input field email address.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
         DOCUMENT_DATA                    = V_DATA
         PUT_IN_OUTBOX                    = 'X'
         SENDER_ADDRESS                   = lv_RECEIVER
         SENDER_ADDRESS_TYPE              = 'INT '
        TABLES
          PACKING_LIST                    = IT_PACK
         CONTENTS_TXT                     =  IT_TEXT
          RECEIVERS                       = IT_RECEIVER
       EXCEPTIONS
         TOO_MANY_RECEIVERS               = 1
         DOCUMENT_NOT_SENT                = 2
         DOCUMENT_TYPE_NOT_EXIST          = 3
         OPERATION_NO_AUTHORIZATION       = 4
         PARAMETER_ERROR                  = 5
         X_ERROR                          = 6
         ENQUEUE_ERROR                    = 7
         OTHERS                           = 8.
    Eagerly waiting for your response.
    Thanks,
    Kumar

    what do you mean by "not correctly"?  Is the text wrapping at 80 characters, or ??  Where's your example of the "not correctly" text?

  • Check box GEN_NEW is not getting checked while creating a change order.

    Hi Experts,
      I have written a zee function module to create a change order.I am calling this function module from an external system.In my zee function module I am calling a standard function module
    CCAP_ECN_MAINTAIN.I am able to create the change order successfully but when I open the object types in the change order the check boc of the field GEN_NEW is not getting checked.I am unable to find the field and default it to 'X' so can you please help out over this issue.Answers will be rewarded with good number of points.
    Thanks,
    Sridevi.

    Hi,
    If you want to close a line item for a PR Number, refer FM BAPI_REQUISITION_DELETE
      CLEAR : wa_pr_close,
              wa_return_close.
      REFRESH : it_pr_close,
                it_return_close.
      wa_pr_close-preq_item  = lv_bnfpo. "<--Line Item Number (BNFPO)
      wa_pr_close-delete_ind = c_check.  "<--set as X (c_check = 'X')
      APPEND wa_pr_close TO it_pr_close.
      CLEAR wa_pr_close.
      CALL FUNCTION 'BAPI_REQUISITION_DELETE'
        EXPORTING
          number                      = lv_banfn  "<--PR Number (BANFN)
        TABLES
          requisition_items_to_delete = it_pr_close
          return                      = it_return_close.
    Hope this helps you.
    Regards,
    Tarun

  • How to handle "The specified resource does not exist" exception while using entity group transactions to purge WADLogs table

    Hi,
    We have a requirement to purge the Azure WADLogs table on a periodic basis. We are achieving this by using Entity group transactions to delete the
    records older than 15 days. The logic is like this.
    bool recordDoesNotExistExceptionOccured = false;
    CloudTable wadLogsTable = tableClient.GetTableReference(WADLogsTableName);
    partitionKey = "0" + DateTime.UtcNow.AddDays(noOfDays).Ticks;
    TableQuery<WadLogsEntity> buildQuery = new TableQuery<WadLogsEntity>().Where(
    TableQuery.GenerateFilterCondition("PartitionKey",
    QueryComparisons.LessThanOrEqual, partitionKey));
    while (!recordDoesNotExistExceptionOccured)
    IEnumerable<WadLogsEntity> result = wadLogsTable.ExecuteQuery(buildQuery).Take(1000);
    //// Batch entity delete.
    if (result != null && result.Count() > 0)
    Dictionary<string, TableBatchOperation> batches = new Dictionary<string, TableBatchOperation>();
    foreach (var entity in result)
    TableOperation tableOperation = TableOperation.Delete(entity);
    if (!batches.ContainsKey(entity.PartitionKey))
    batches.Add(entity.PartitionKey, new TableBatchOperation());
    // A Batch Operation allows a maximum 100 entities in the batch which must share the same PartitionKey.
    if (batches[entity.PartitionKey].Count < 100)
    batches[entity.PartitionKey].Add(tableOperation);
    // Execute batches.
    foreach (var batch in batches.Values)
    try
    await wadLogsTable.ExecuteBatchAsync(batch);
    catch (Exception exception)
    // Log exception here.
    // Set flag.
    if (exception.Message.Contains(ResourceDoesNotExist))
    recordDoesNotExistExceptionOccured = true;
    break;
    else
    break;
    My questions are:
    Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    Would this logic fail in any particular case?
    How would this approach change if this code is in a worker which has multiple instances deployed?
    I have come up with this code by referencing the solution given
    here by Keith Murray.

    Hi Nikhil,
    Thanks for your posting!
    I tested your and Keith's code on my side, every thing worked fine. And when result is null or "result.count()<0", the While() loop is break. I found you code had some logic to handle the error "ResourceDoesNotExist" .
    It seems that the code worked fine. If you always occurred this error, I suggest you could debug your code and find which line of code throw the exception.   
    >> Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Base on my experience, we could use code (like the above logic code) and using the third party tool to delete the entities manually. In my opinion, I think the code is every efficient, it could be auto-run and save our workload.
     >>Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    In you code, you used the "recordDoesNotExistExceptionOccured " as a flag to check whether the entity is null. It is a good choice. I had tried to deleted the log table entities, but I used the flag to check the result number.
    For example, I planed the query result count is 100, if the number is lower than 100, I will set the flag as false, and break the while loop. 
    >>Would this logic fail in any particular case?
    I think it shouldn't fail. But if the result is "0", your while loop will always run. It will never stop. I think you could add "recordDoesNotExistExceptionOccured
    = true;" into your "else" block.
    >>How would this approach change if this code is in a worker which has multiple instances deployed?
    You don't change anything expect the "else" block. It would work fine on the worker role.
    If any question about this issue, please let me know free.
    Regards,
    Will
    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.
    Click
    HERE to participate the survey.

  • Getting 'File not found' error while using server object model code

    Hi,
    I am using server object model code to pull list data in a console application. My machine has standalone installation of SP 2010. I am getting error 'File Not Found', however the same operation is working fine with client object model code.
    Code I am using:
    string strURL=http://servername/sites/sitename;
    SPSite siteObj=new SPSite (strURL); //getting error here.
    I have already checked the below,
    1. Framework being used is 3.5.
    2. I have proper access to site.
    3. Running visual studio as admin.
    Any help is much appreciated.
    thanks
    Tarique
    thanks and regards Tarique Aslam

    Hello Tarique ,
    Couple of pints need to check:
    1. User running the console application needs to have at least read permission to the SharePoint databases
    2. Set application by changing the "Platform target:" option on the "Build" to "Any CPU"
    Also refer this similar thread:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2a419663-c6bc-4f6f-841b-75aeb9dd053d/spsite-file-not-found
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Class not found error while using ikvm error code IKVMC0100: class "javax.b

    hi iam writing a java application which uses bluetoth i.e. javax.bluetooth;
    now i need to create exe for c# i.e. my GUI is C# and business logic is java,
    so these are steps i have followed
    * created a java project (iam using netbeans 6.1)
    * after build i used command prompt and travesed to dist of my project location which contains jar
    * here i typed ikvmc my.jar
    but now it says the following it also contains others but one of such is
    Warning IKVMC0100: class "javax.bluetooth.LocalDevice" not found
    it also creates exe but if use that in my c# then raises the exception...
    so please help me.. what is the solution for this....

    If you have the SDKPanel sample, you have a Flex sample and debugging information. Please let me know (off-forum) what you're buildng, and we'll make sure your dev environment is configured correctly.

  • I can not open PDFs while using Parallels

    My boss recently bought me an iMac and since our company is on Windows I have to use the software for Parallels so I can run both Windows and Mac.  The problem I ran into today was I can not open any PDFs on either the Windows or Mac side.  The error message that appears says: Distiller can not run fils with the extension PDF or JFD.  I have never heard of a Mac having issues opening PDFs so I am at a loss. 

    WhitneyGaines wrote:
    My boss recently bought me an iMac and since our company is on Windows I have to use the software for Parallels so I can run both Windows and Mac.  The problem I ran into today was I can not open any PDFs on either the Windows or Mac side.  The error message that appears says: Distiller can not run fils with the extension PDF or JFD.  I have never heard of a Mac having issues opening PDFs so I am at a loss. 
    I use Parallels with no problems creating PDFs with CS products running in Windows (XP SP3) or in OS X 10.6.8, and no problems opening them with Acrobat or Reader on either OS, regardless of whether they were made under the same OS as the opening application.
    How are you opening the PDFs? Double clicking or right-clicking on them in Finder or Windows Explorer, or by using File > Place in a CS product on either OS, or by using File > Open in Acrobat or Reader in either OS?
    If the problem exists when trying to open in Acrobat or Reader with File > Open or double clicking in Finder or Windows Explorer, it's definitely not an ID problem.
    If you're using File > Open in ID, this is your problem, because ID can only place (import) PDFs, not open them.
    Have you tried closing Windows and then trying to open a PDF on Mac? What results? (NOTE: you can leave Parallels running or close it, too.)
    As Peter S. notes, there may be a problem in which application is set to open PDFs. You can find out by right clicking a PDF in Mac Finder, and lookiing under Open With - the default application is stated there. I believe it will show Windows applications used by Parallels, like Distiller on the Windows side, but I'm not sure if Parallels needs to be running or not. If files with PDF extension do not have a Acrobat, Reader, or PDF icon in Finder or Windows Explorer, then the PDF extension isn't correct for the actual file, or the file's corrupted.
    Can the files be opened by another user on another computer; i.e., are you the only one with the problem? If so, create a new user account on your computer, and try to open the PDF. If this works, then the problem may be due to incorrect permission settings.
    Search Google for terms like "windows create new user account," "mac OS create new user account," "windows associating files with applications," "mac associating files with applications," "InDesign place pdf," and "parallels windows mac file associations," without quotes, for links to resources on this Adobe site, as well as across the Web.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • HT3924 iTunes not working anymore while using screen in Target Mode

    Hi, I use this feature a lot when working from home, as my company laptop is only 12.5" it's nice with the 27" screen. This has always worked out great, but recently (not sure if it started after Moutain Lion upgrade), I'm not anymore able to listen to my iTunes music (running in the background), when moving to "target display mode".
    Immediately after pressing cmd+F2, and moving to external mode, the music starts skipping...
    It happens with iTunes, Spotify, MPlayerX...
    I tried to turn off "always put harddrives to sleep while possible" but this didn't help.
    I tried to listen to music stored on different HDDs, didn't help.
    Anyone found a fix, or need to wait for new OS update?
    Thanks,
    Seb

    Hi, Hilary. The backlight in your Powerbook's display isn't working. That's most likely caused by an inverter failure, rather than a failure of the backlight itself (which is very rare). The inverter supplies power to the backlight, and sometimes it just fails. Repairing the hard drive won't fix it, and closing the display while loading pictures from a camera didn't cause it. It just failed, and now it needs to be replaced. Don't bother with any of the FireWire Target Disk Mode stuff you've been trying — just take the machine in for service.

  • Values having html tags not getting populated while using AJAX in APEX

    Hi,
    I am using AJAX to populate certain values in a tabular report.
    I have a java script of this form (I have taken this example from Denes's example http://apex.oracle.com/pls/otn/f?p=31517:241:1400877312570049)
    <script language="JavaScript" type="text/javascript">
    function f_set_multi_items_tabular(pValue, pRow){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_Multi_Items_Tabular',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    get.add('T_ROWNUM',pRow)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    if(gReturn){
    var l_Count = gReturn.getElementsByTagName("item").length;
    for(var i = 0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    get = null;
    </script>
    And I have the application process as follows
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="f05_000' || :T_ROWNUM || '">' || :TEMPORARY_APPLICATION_ITEM || '</item>');
    HTP.prn ('</body>');
    END;
    If I have :TEMPORARY_APPLICATION_ITEM as 'Vikas' it gets displayed properly but if I have '&lt;b&gt;Vikas&lt;b&gt;' it shows null. if it has any HTML tags function l_Opt_Xml.firstChild.nodeValue is not working properly .Please tell me what modiifcation can I use in function l_Opt_Xml.firstChild.nodeValue to get Values with HTML tags also to get displayed.
    Thanks,
    Vikas

    Vikas,
    Try escaping special characters: htf.escape_sc(:TEMPORARY_APPLICATION_ITEM)Regards,
    Dan

  • Class Not Found Error while using dcm 9.0.3 jar

    I am getting the following exception while trying to stop an application deployed in oracle 10g app server using dcm utility.Can anyone please help me how to resolve this because it is very urgent for my work to progress
    Thanks in Advance
    04/10/18 07:34:37 A problem has occurred accessing the Oracle9iAS
    infrastructure
    database.
    Base Exception:
    java.lang.NoClassDefFoundError:oracle/ias/repository/SchemaManager
    04/10/18 07:34:37 Please, refer to the base exception for resolution, or
    call Or
    acle support.

    Hi Sujith,
    You should post that question here: Oracle Application Server - General
    - Don

  • "ORA-01762: vopdrv: view query block not in FROM" while using LOG ERRORS INTO  feature for Update/Delete

    Hi
    Ours is VPD database in 11GR2. We're using "LOG ERRORS INTO " feature to track list of records violating constraints.
    For Inserts it is working as expected but for Updates/Deletes it is throwing mis. ORA- errors. "ORA-01762: vopdrv: view query block not in FROM"
    We dint find any clue when searched in net.
    Could someone help us here? Is there any limitation with "LOG ERRORS INTO" ?
    Below are the steps we're executing
    EXEC DBMS_ERRLOG.CREATE_ERROR_LOG(
    dml_table_name => 'EMP',
    err_log_table_name => 'ERR_EMP'
    > DESC EMP
    Name                                      Null?    Type
    EMPNO                                     NOT NULL NUMBER(4)
    ENAME                                              VARCHAR2(10)
    SAL                                                NUMBER(7,2)
    COMM                                               NUMBER(7,2)
    DEPTNO                                             NUMBER(2)
    INSERT INTO EMP VALUES('1','Test','@' /* generates Ora */,2,'2); -- ERR_EMP populated
    UPDATE EMP set SAL='@'
    where EMPNO='1' -- Throwing ORA-01762: vopdrv: view query block not in FROM
    Could someone help us?

    Hi
    Ours is VPD database in 11GR2. We're using "LOG ERRORS INTO " feature to track list of records violating constraints.
    For Inserts it is working as expected but for Updates/Deletes it is throwing mis. ORA- errors. "ORA-01762: vopdrv: view query block not in FROM"
    We dint find any clue when searched in net.
    Could someone help us here? Is there any limitation with "LOG ERRORS INTO" ?
    Below are the steps we're executing
    EXEC DBMS_ERRLOG.CREATE_ERROR_LOG(
    dml_table_name => 'EMP',
    err_log_table_name => 'ERR_EMP'
    > DESC EMP
    Name                                      Null?    Type
    EMPNO                                     NOT NULL NUMBER(4)
    ENAME                                              VARCHAR2(10)
    SAL                                                NUMBER(7,2)
    COMM                                               NUMBER(7,2)
    DEPTNO                                             NUMBER(2)
    INSERT INTO EMP VALUES('1','Test','@' /* generates Ora */,2,'2); -- ERR_EMP populated
    UPDATE EMP set SAL='@'
    where EMPNO='1' -- Throwing ORA-01762: vopdrv: view query block not in FROM
    Could someone help us?

Maybe you are looking for

  • Does apple make a web cam?

    i wanna do facetime and my monitor doesnt have a cam so wondering does apple make one?if not is there a mac specific cam thats plug and play? what cam are you guys all using?

  • Newbee question (first of many though)

    As soon as I can break through the initial intimidation I hope to begin learning Lightroom and cataloging my 15k+ images.  Before I dive in though I'd like to begin with a handful of images and see how the program and my workflow (to be determined) w

  • Photo and email

    How do I attach a photo to a e-mail?

  • How can I change the number in iMessage send and receive on my iPhone 5c that is gray?

    I recently bought a iphone 5c and when I activate it, the imessage automatically set the number in send and receive, but the funny thing is the number that is registered is my number in another network and is grayed out, How can I change the number t

  • Applecare IMAC - International Support, Transfer between countries.

    I am planning to purchase AppleCare for my Imac G5 intel based. I have few questions: - Can I buy AppleCare from any country or only from the country I reside. - If I change my location (country of residence) can my AppleCare be transfered. Or will I