WITH query Clause does not work in Oracle reports.

Hi gurus,

I use a query WITH clause and want to create a report by using the same query.

But when I am trying to build a report, request gives error like "WITH clause table or view does not exist.

But the same query works perfectly in line of sql.

Does support the Oracle WITH clause query reports?

Please suggest.


Thank you
Onkar

I met a similar problem before and worked around it by moving the query to a pipeline function in the database as described in the unexpected CLAUSE causes ORA-00942 in Report Builder

I hope this helps.

Tags: Oracle Development

Similar Questions

  • With the clause does not work in SqlPlus for DataBase 11 GR 8 1 material

    I have 11 GR 1 database material, when I connect to my database through SqlPlus (version 8.0.6.0.0) this query
    with x as (select * from areas) select * from x;
    does not work. But when you use SqlPlus provided by 11g, this query works well. This query can run on an older version of SqlPlus?

    user12222356 wrote:
    This client software is installed with Oracle developer 6i form. should I remove all the form developer? Latest version of the form developer is available for 11 GR 1 matter?

    Well, you have problems with the developer of forms?

    I wouldn't recommend delete because you have problems with the SQL more customer that goes with it. I recommend to download the instant client and using them for your needs of sqlplus and leaving the rest products installed on your machine only.

  • WITH THE CLAUSE DOES NOT WORK

    Hello everyone,
    I have the suite Oracle version:

    SQL & gt; selection of version of $ v; *

    BANNER
    ----------------------------------------------------------------
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64 bit Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE Production 9.2.0.8.0
    AMT for Solaris: 9.2.0.8.0 - Production Version
    NLSRTL Version 9.2.0.8.0 - Production

    But when I try to run a query with * 'with the clause"* it gives following error:

    SQL & gt; with sam as (select from asap.triangular_reco_aug) *.
    SP2-0734: beginning of unknown command «with sam a...» "- rest of line is ignored.
    SQL & gt;

    Could someone please why this is happening?

    What is your version of SQL * more? If you are using a version earlier than 9.2 then it is probably intercept the syntax error before it happens even to the database that supports.

  • WITH the Clause does not work in 11g

    Hi all

    I run this query via PL/SQL developer in 11g, but it shows no data to me.

    with aquery as (c1, c2 from t1 select where c2 = 20130101) select * from aquery.

    However, when I run only the SELECT, and then it retrieves the output.

    Select c1, c2 from t1 where c2 = 20130101

    The db user privileges both CREATE MV and CREATE Table in this database.

    Thank you.

    I have no developer PL/SQL, but I do not have 11.2.0.4, and your query works for me in sqlplus and SQL Developer, the problem is with PL/SQL Developer, or maybe a transient network issue any.  You simply get an error any or all not the lines selected?

    John

  • Rotate the Plugin does not work in Oracle Apex 5

    Hi all

    Now I am developing an application using Oracle Apex 5.

    I have improved my request of Oracle Apex 4.2 to 5.

    I used the plugin called PivotTable. Its works fine in Oracle Apex 4.2, but does not work in Oracle Apex 5.

    I just downloaded the plugin from the link below

    https://code.Google.com/p/PLSQL-utils/downloads/detail?name=region_type_plugin_muledev_pivot_region.SQL

    How to use this plugin in my Oracle Apex 5 application?

    Thank you

    Su.GI

    Su.GI wrote:

    Now I am developing an application using Oracle Apex 5.

    I have improved my request of Oracle Apex 4.2 to 5.

    I used the plugin called PivotTable. Its works fine in Oracle Apex 4.2, but does not work in Oracle Apex 5.

    I just downloaded the plugin from the link below

    https://code.Google.com/p/PLSQL-utils/downloads/detail?name=region_type_plugin_muledev_pivot_region.SQL

    How to use this plugin in my Oracle Apex 5 application?

    Interaction with the rendering plugin 5.0 of APEX generates hundreds of errors in JavaScript (check the browser console) of the jquery.ui.sortable.min.js library included with the plug-in, indicating an incompatibility with versions 5.0 of the APEX of the other libraries.

    The plugin code includes a comment about this library:

      -- note: this file is also found in /i/libraries/jquery-ui/1.8.22/ui/minified/ but is not included by default by Apex
      apex_javascript.add_library (
        p_name      => 'jquery.ui.sortable.min',
        p_directory => p_plugin.file_prefix);
    

    APEX 5.0 is a newer version of the library of /i/libraries/jquery-ui/1.10.4/ui/minified/jquery.ui.sortable.min.js and the plugin works when it is used with it.

    Go to the components shared > Plug-ins > PivotTable, delete the original jquery.ui.sortable.min.js of the files section and download the 1.10.4 version instead.

  • How can I get the serial number for update for first pro cs4 4.2.1, one provided with the product does not work.

    How can I get the serial number for update for first pro cs4 4.2.1, one provided with the product does not work?

    You don't need a serial nr for updating a program

    You need the original CS4.0. install and add the series nr. to get the program to work.

    Now you can update to 4.2.1

  • Jdev - query Tester does not work

    Jdev Version: 11.1.1.7.1

    The query VO on my Jdev Tester does not work. More importantly on my your Expert mode, when I add a new column to SQL, the attributes do not automatically get added to the VO. Only clue I have is the bottom of the stack trace that is thrown when I click on "Query Builder" (other buttons as Test donot throw any error and no success message):

    java.lang.NullPointerException

    at oracle.javatools.db.jdbc.JdbcDDLDatabase.registerBuilders(JdbcDDLDatabase.java:453)

    to oracle.javatools.db.AbstractDatabase. < init > (AbstractDatabase.java:85)

    to oracle.javatools.db.ddl.DDLDatabase. < init > (DDLDatabase.java:50)

    to oracle.javatools.db.jdbc.JdbcDDLDatabase. < init > (JdbcDDLDatabase.java:74)

    at oracle.javatools.db.jdbc.JdbcDatabaseFactory.createDatabaseImpl(JdbcDatabaseFactory.java:35)

    at oracle.javatools.db.DatabaseFactory.createDatabaseImpl(DatabaseFactory.java:241)

    at oracle.javatools.db.DatabaseFactory.createStandaloneDatabase(DatabaseFactory.java:344)

    at oracle.javatools.db.DatabaseFactory.findOrCreateDatabase(DatabaseFactory.java:326)

    at oracle.jbo.dt.jdevx.ui.view.XVOQueryBuilder.createDatabase(XVOQueryBuilder.java:273)

    at oracle.jbo.dt.jdevx.ui.view.XVOQueryBuilder.invokeQueryBuilder(XVOQueryBuilder.java:56)

    at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokeQueryBuilder(JdxMenuManager.java:1615)

    at oracle.jbo.dt.ui.view.VOClausePanel.queryBuilderAction(VOClausePanel.java:2440)

    at oracle.jbo.dt.ui.view.VOClausePanel.actionPerformed(VOClausePanel.java:1390)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

    at java.awt.Component.processMouseEvent(Component.java:6289)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

    at java.awt.Component.processEvent(Component.java:6054)

    at java.awt.Container.processEvent(Container.java:2041)

    at java.awt.Component.dispatchEventImpl(Component.java:4652)

    at java.awt.Container.dispatchEventImpl(Container.java:2099)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

    at java.awt.Container.dispatchEventImpl(Container.java:2085)

    at java.awt.Window.dispatchEventImpl(Window.java:2478)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)

    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)

    in java.awt.EventQueue$ 1.run(EventQueue.java:603)

    in java.awt.EventQueue$ 1.run(EventQueue.java:601)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)

    in java.awt.EventQueue$ 2.run(EventQueue.java:617)

    in java.awt.EventQueue$ 2.run(EventQueue.java:615)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)

    in java.awt.Dialog$ 1.run(Dialog.java:1046)

    in java.awt.Dialog$ 3.run(Dialog.java:1098)

    at java.security.AccessController.doPrivileged (Native Method)

    at java.awt.Dialog.show(Dialog.java:1096)

    at java.awt.Component.show(Component.java:1585)

    at java.awt.Component.setVisible(Component.java:1537)

    at java.awt.Window.setVisible(Window.java:842)

    at java.awt.Dialog.setVisible(Dialog.java:986)

    at oracle.jbo.ui.main.JboDialog.setVisible(JboDialog.java:130)

    to oracle.jbo.ui.wizard.JboWizard$ MddWizardDialog.setVisible (JboWizard.java:2558)

    at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:395)

    at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:356)

    at oracle.jbo.ui.main.JboDialog.showDialog(JboDialog.java:108)

    to oracle.jbo.ui.wizard.JboWizard$ MddWizardDialog.showDialog (JboWizard.java:2494)

    at oracle.jbo.ui.wizard.JboWizard.createMddWizard(JboWizard.java:550)

    at oracle.jbo.ui.wizard.JboWizard.setVisible(JboWizard.java:353)

    at oracle.jbo.ui.wizard.JboWizard.showDialog(JboWizard.java:331)

    at oracle.jbo.dt.jdevx.ui.editors.view.VoeSqlPage.showEditSqlDialog(VoeSqlPage.java:625)

    at oracle.jbo.dt.jdevx.ui.editors.view.VoeSqlPage.invokeEditSqlDialog(VoeSqlPage.java:592)

    at oracle.jbo.dt.jdevx.ui.editors.view.VoeSqlPage.performAction(VoeSqlPage.java:935)

    at oracle.jbo.dt.ui.main.controls.DtcAction.actionPerformed(DtcAction.java:47)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)

    at java.awt.Component.processMouseEvent(Component.java:6289)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

    at java.awt.Component.processEvent(Component.java:6054)

    at java.awt.Container.processEvent(Container.java:2041)

    at java.awt.Component.dispatchEventImpl(Component.java:4652)

    at java.awt.Container.dispatchEventImpl(Container.java:2099)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

    at java.awt.Container.dispatchEventImpl(Container.java:2085)

    at java.awt.Window.dispatchEventImpl(Window.java:2478)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)

    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)

    in java.awt.EventQueue$ 1.run(EventQueue.java:603)

    in java.awt.EventQueue$ 1.run(EventQueue.java:601)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)

    in java.awt.EventQueue$ 2.run(EventQueue.java:617)

    in java.awt.EventQueue$ 2.run(EventQueue.java:615)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Any idea on what could be the problem?

    The question seems to be to the JDBC data source that we define in the configuration Module of the Application screen. We have a JNDI to data source, and somehow at design time, the your do not work with it. Currently, I change that to a local data source, the tester of VO, requeteur all work fine.

  • BEFORE the UPDATE of relaxation with time stamp does not work as expected

    We have a scenario where I check update operations on a table.

    I created a before update TRIGGER, so that every time he goes an update on the main table statement, one before the image of the lines is captured in the table of audit with timestamp.

    Since it is before updating, ideally the audit table timestamp (TRG_INS_TMST) should be less main table timestamp (IBMSNAP_LOGMARKER) VALUE, I mean TRIGGER should happen before the update.

    (I could understand in a way that the UPDATE statement is formulated with SYSTIMESTAMP earlier before the TRIGGER is evaluated and so UPDATE is to have a time stamp prior to TRIGGER, but this isn't what we wanted. We want PRIOR update)

    'Table' IBM_SNAPOPERATION IBM_SNAPLOGMARKER            
    ---- ----------------- -------------------------------
    T1   U                 13-OCT-15 03.07.01.775236 AM   <<---------- This is the main table, This should have the latest timestamp
    T2   I                 13-OCT-15 03.07.01.775953 AM
    

    Here is my test case.

    DELETE FROM TEST_TRIGGER_1;
    
    DELETE FROM TEST_TRIGGER_2;
    
    SELECT 'T1', ibm_snapoperation, ibm_snaplogmarker FROM TEST_TRIGGER_1
    UNION
    SELECT 'T2', ibm_snapoperation, TRG_INS_TMST FROM TEST_TRIGGER_2;
    
    INSERT INTO TEST_TRIGGER_1 (ID,ibm_snapoperation, ibm_snaplogmarker)
         VALUES (1, 'I', SYSTIMESTAMP);
    
    COMMIT;
    
    SELECT 'T1', ibm_snapoperation, ibm_snaplogmarker FROM TEST_TRIGGER_1
    UNION
    SELECT 'T2', ibm_snapoperation, TRG_INS_TMST FROM TEST_TRIGGER_2;
    
    UPDATE TEST_TRIGGER_1
       SET IBM_SNAPOPERATION = 'U', ibm_snaplogmarker = SYSTIMESTAMP;
    
    COMMIT;
    
    SELECT 'T1', ibm_snapoperation, ibm_snaplogmarker FROM TEST_TRIGGER_1
    UNION
    SELECT 'T2', ibm_snapoperation, TRG_INS_TMST FROM TEST_TRIGGER_2;
    

    Def trigger:

    CREATE OR REPLACE TRIGGER etl_dbo.TEST_TRIGGER_1_TRG BEFORE UPDATE OF IBM_SNAPOPERATION
    ON TEST_TRIGGER_1 REFERENCING OLD AS OLD NEW AS NEW
    FOR EACH ROW
    WHEN (
    NEW.IBM_SNAPOPERATION= 'U'
          )
    DECLARE
    V_SQLCODE  VARCHAR2(3000);
    --PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    INSERT INTO etl_dbo.TEST_TRIGGER_2
    (ID,
    IBM_SNAPOPERATION,
    IBM_SNAPLOGMARKER,
    TRG_INS_TMST
    )
    VALUES (:OLD.ID,:OLD.IBM_SNAPOPERATION,:OLD.IBM_SNAPLOGMARKER,SYSTIMESTAMP)
    ;
    --COMMIT;
    END;
    /
    

    Output is something like this

    1 row deleted.
    1 row deleted.
    no rows selected.
    1 row created.
    Commit complete.
    
    'T1' IBM_SNAPOPERATION IBM_SNAPLOGMARKER            
    ---- ----------------- -------------------------------
    T1   I                 13-OCT-15 03.07.00.927546 AM 
    1 row selected.
    1 row updated.
    Commit complete.
    
    'T1' IBM_SNAPOPERATION IBM_SNAPLOGMARKER            
    ---- ----------------- -------------------------------
    T1   U                 13-OCT-15 03.07.01.775236 AM   <<---------- This is the main table, This should have the latest timestamp
    T2   I                 13-OCT-15 03.07.01.775953 AM 
    
    2 rows selected.
    

    But for some reason, even after the creation of the 'AFTER' trigger for update, it works as expected. Sense - the main table is not having the last timestamp given

    It's OKAY - I told you in my reply earlier. Reread my answer.

    could understand somehow that the UPDATE statement is made with earlier

    SYSTIMESTAMP until the TRIGGER is assessed and updated so is to have

    time stamp prior to the trigger, but this isn't what we wanted. We want to

    BEFORE the update)

    As I told you before that your UPDATE statement occurs BEFORE the trigger is activated.

    Despite what the other speakers have said, it makes NO DIFFERENCE if you use a BEFORE UPDATE or an AFTER UPDATE trigger. Your UPDATE statement runs ALWAYS BEFORE the trigger.

    HE has TO - it's your update processing statement that causes the trigger to fire.

    Your update statement includes SYSTIMESTAMP. If during the processing of your return to update the value of SYSTIMESTAMP "at this exact time" is captured.

    Then your trigger is activated and starts to run. ANY reference to SYSTIMESTAMP that you use in your trigger cannot be earlier than the value of until the trigger was executed. It's IMPOSSIBLE.

    The trigger can use the SAME value by referencing: NEW and the column name you store the value. Or the trigger can get its own value that your code is doing.

    But the SYSTIMESTAMP value in the trigger will NEVER earlier than the value in your query.

    And none of these values can actually be used to tell when the changes are really ENGAGED since the trigger does not work and CAN NOT, to know when, or if, a validation occurs.

    Reread my first answer - he explains all this.

  • Games used with Windows XP does not work

    Can I install XP on the same computer with 7?

    Games will not work on windows 7... It was the biggest reason outside the Office that I bought the new computer... now my games does not work...

    These are your options to get a game like work on Windows 7.

    If the program is not compatible, then you try to install and run the program in compatibility mode.
    Use the following steps:
    (1) right click on the program
    2) click Properties
    3) click on the Compatibility tab
    (4) select run this program in compatibility mode and select Windows Vista or other operating system, the program has been run successfully.

    Check out the link here: make sure to run older programs in this version of Windows
    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    If you are running Windows 7 Professional or Ultimate version, install Windows Virtual PC and Windows XP mode (http://www.microsoft.com/windows/virtual-pc/default.aspx) and run your software in Windows XP.

    If you run Windows 7 Home Premium, you cannot run Windows XP mode, but you can try VirtualBox (www.virtualbox.org) or VMware Player (www.vmware.com), or any other 3rd party software virtualization and install a separate copy of Windows XP (family or professional edition) for this purpose. You can find the virtualization software free that will run on Windows 7 Home Premium.

    Thank you

    Marilyn

  • MS Paint "fill with color" tool does not work. :(

    In the painting, my "fill with color" tool (the pouring paint can) does not work. I click on the box, I click on a different color, the icon changes to the can, but when I click on a space as say an empty circle, it doesn't do anything. Right click, nothing, left click, nothing.

    I noticed that the only thing he is able to do is to change a solid color that I did (as a solid black rectangle) in a different color, but only once. If I rectangle black color green, I can't change it to any other color after. I don't know what is happening.

    I am not edit a photo or anything btw, I start a new painting from scratch file. I'm trying just to circles of color and enclosed spaces. I've done this dozens of times with no problems. I tried restarting the computer and paint without effect.

    Thanks for any help!

    In the painting, my "fill with color" tool (the pouring paint can) does not work. I click on the box, I click on a different color, the icon changes to the can, but when I click on a space as say an empty circle, it doesn't do anything. Right click, nothing, left click, nothing.

    I noticed that the only thing he is able to do is to change a solid color that I did (as a solid black rectangle) in a different color, but only once. If I rectangle black color green, I can't change it to any other color after. I don't know what is happening.

    I am not edit a photo or anything btw, I start a new painting from scratch file. I'm trying just to circles of color and enclosed spaces. I've done this dozens of times with no problems. I tried restarting the computer and paint without effect.

    Thanks for any help!

    salés

    try to run the sfc/scannow command. to repair the corrupted system files

    http://support.Microsoft.com/kb/929833

    Use the (SFC.exe) System File Checker tool to determine which file is causing the problem and then replace the file. To do this, follow these steps:

    1. Open an elevated command prompt. To do this, click Start, click principally madeprograms, Accessories, right-click guest, and then click run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or clickallow.
    2. Type the following command and press ENTER:
      sfc/scannow

      The sfc/scannow command analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions.

    Walter, the time zone traveller

  • Problem with BearPaw 2400CU Plus Scanner with Win7 Scanner does not work properly

    BearPaw 2400CU more does not work with Win7

    Yes I did, but it has not solved the problem

  • Sampling of colors with the eyedropper does not work.

    In Lightroom CC, I create a graduated filter. I want to give it a color, if I click in the gray box, which shows the colorpicker. I understand that you can pitch a color of the picture by clicking the box with the colors, then hold and go to the photo and release the mouse button, LR will choose this color. This does not work with me. If I click on the mouse button and let the color box, the slider in the color box drops to zero saturation and does not move with the colors of my photo I'm going with my pipette. It does not pick up the color.

    Same problem here! Selector is not looking for colors on the image window (it does outside of the Lightroom window!)

    I found that the problem occurs when the preferences are set to use the graphics processor.

    Disable the GPU and the color eyedropper tool returns to work on the image window.

  • 'Open with Photoshop Elements' does not work

    My photo does not open in Photoshop Elemtens, when I use "open with" to a JPEG file. The program starts, but no picture opens. What can I do?

    I did as you said, but it does not work.

    But I found the Solution in another forum:

    'open with photoshop elements EDITOR' and not with photoshop elements...

    He now works :-)

  • order by clause does not work in plsql cursor

    I have a sql that works well in sqlplus, but when I add it to a cursor in plsql, it doesn't. Also, I discovered that it works very well in plsql if I remove the order by clause.

    We cannot use "order by" clause in plsql?

    I have to explicitly use the name of the column to select the cause for which I ' order by '?

    Here is the work and not work code:

    -Works fine in sqlplus
    Select * from mgmt$ compliance_standard_rule where ((rule_iname comme '_SecRepRul %') OU))
    (substr(rule_iname,9) in ('AUDIT_SYS_OPS'))) and target_type = "oracle_database" order of rule_iname

    -Works fine in plsql
    CURSOR c_rule_guids_database () IS
    Select * from mgmt$ compliance_standard_rule where ((rule_iname comme '_SecRepRul %') OU))
    (substr(rule_iname,9) in ('AUDIT_SYS_OPS'))) and target_type = "oracle_database."
    );

    -Does not work in plsql: PL/SQL: ORA-00907: lack the right parenthesis
    CURSOR c_rule_guids_database () IS
    Select * from mgmt$ compliance_standard_rule where ((rule_iname comme '_SecRepRul %') OU))
    (substr(rule_iname,9) in ('AUDIT_SYS_OPS'))) and target_type = "oracle_database" order of rule_iname
    );

    Thanks for the help.

    Remove the parentheses around your return cursor:

    SQL> declare
      2      CURSOR c_rule_guids_database IS
      3      (select *
      4       from   compliance_standard_rule
      5       where ((rule_iname like '%_SecRepRul')
      6               OR
      7              (substr(rule_iname,9) in ('AUDIT_SYS_OPS'))
      8             )
      9       and   target_type = 'oracle_database'
     10       order by rule_iname
     11      );
     12  begin
     13     null;
     14  end;
     15  /
         order by rule_iname
         *
    ERROR at line 10:
    ORA-06550: line 10, column 6:
    PL/SQL: ORA-00907: missing right parenthesis
    ORA-06550: line 3, column 5:
    PL/SQL: SQL Statement ignored
    
    SQL> declare
      2      CURSOR c_rule_guids_database IS
      3       select *
      4       from   compliance_standard_rule
      5       where ((rule_iname like '%_SecRepRul')
      6               OR
      7              (substr(rule_iname,9) in ('AUDIT_SYS_OPS'))
      8             )
      9       and   target_type = 'oracle_database'
     10       order by rule_iname
     11       ;
     12  begin
     13     null;
     14  end;
     15  /
    
    PL/SQL procedure successfully completed.
    
  • I got a problem with intel rst does not work, so I uninstalled it but want to reinstall.

    Original title: RST

    My cell phone message says RST service does not work - I does not recognize so I uninstalled Rapid Storage Technology completely and I can't restart.  Startup Repair is on-screen and worked for always.

    Hi Sue1234,

    Follow the steps below for a possible solution:

    Step 1: Start in safe mode and then try to perform the system restore when you uninstalled the RST.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Step 2: Try restoring the system to safe mode.

    You can follow the items below:

    What is system restore?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore

    System Restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions

    I hope this helps.

Maybe you are looking for

  • publish photos on Facebook

    When I post a picture on Facebook, it seems that my partner has posted?

  • Configuration of the BIOS XW8600 for SSD and HDD

    Until recently, my xw8600 has been configured with the emulation of SATA under storage on the separate IDE controller Options.  250 GB hard drives connected to the SATA 1 and SATA ports 0 and readers of DVD RW Drive connected to 2 SATA and SATA 3 por

  • Need information about Satellite C50 - B i0015

    I have PC Toshiba laptop satellite c50 - b i0015... I can't find any information on this model in one of the Web sites...I want to know the weather, this model is equipped with a built-in battery or a removable... I also need to know what kind of mou

  • Satellite P10 554 stops after a few minutes and I can not restart

    HelloI hope someone can help me with my satellite P10 554When I start the laptop, everything is working fine a few minutes. the monitor turns black and the books suddenly stops. I can't restart, when I push the Start button, nothing happens. I have t

  • WRT1900AC OpenVPN sees only not the side of the router LAN

    I have a WRT1900AC with the OpenVPN server, put in place. Can I access with my laptop running the OpenVPN client on the internet (the router is in one State other than me). I ping the hotspot side WAN, internet access at the router. I can't see or pi