Problem with implementing VPD in 10g

Hi,
I try to create a VPD policy on a table without a context. I encountered a strange problem. When I execute the select statement (select * from tableA) to the table, I always get error (ORA-28112: failed to execute policy function) the first time. If I ignore the error and execute the query again, then things works as normal.
Is there anyway to avoid erroring out when query the table first time?
Thanks

Hi,
From Oracle Docs:
ORA-12013: updatable materialized views must be simple enough to do fast refresh
Cause: The updatable materialized view query contained a join, subquery, union, connect by, order by, or group by caluse.
Action: Make the materialized view simpler. If a join is really needed, make multiple simple materialized views then put a view on top of them.
Regards
K.Rajkumar

Similar Messages

  • Problems with servlet mapping in 10g AS

    Hi There,
    i have a web application consisting of 2 controller servlets and use url mapping to send requests to the appropriate servlet, but i have a strange issue with 10g where it seems to be alternating between serlvets when handling requests!!!!
    the web.xml is like as follows (with the app having the root context '/app'):
    <servlet>
    <servlet-name>control1</servlet-name>
    <servlet-class>com.package1.class.name</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>control2</servlet-name>
    <servlet-class>com.package2.class.name</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>control2</servlet-name>
    <url-pattern>/special/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>control1</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    therefore i'd expect a request like http://domain.name/app/special/content to be handled by the control2 servlet and http://domain.name/app/normal/content or http://domain.name/app/normal/special/content to be handled by the control1 servlet...
    but what seems to happen when requesting http://domain.name/app/special/content oc4j seems to alternate which servlet it passes it to...
    is there any reason why this might be happening (like some app server configuration), as i have other applications that are configured in the same way, and there's no problems with requests going to the wrong servlet.
    many thanks for your help,
    Andy

    In your integration process, define the import parameter under Configurable Parameters category.
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/1f1a5c932d0d19e10000000a114a6b/frameset.htm
    Regards,
    Prateek

  • Problems with implementing LV shared vars for executable standalone applications

    In order to implement shared variables, it appears that all networked computers must have LV compiler installed and running the code that will have the shared variables so that an association may be made thru explicit binding. The problem with this is that I want to build my applications on my development computers to use shared variables and then I want to make executables to distribute to locations that do not have LV compilers.  If shared variables are only good on a machine that is currently running he source code, then this whole shared variable idea seems very unusable.  Any ideas?

    What you need to do is build an executable from your code using the
    Application Builder, then you'll be able to run it on machines that do
    not have LabVIEW installed. These machines will need to have the LabVIEW Runtime engine (needs to be the same version as your version of LabVIEW) and any needed driver packages (NI-DAQ, VISA, ect.) installed, but these are a free download.
    Let us know if you have more questions.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Problem with javascript/PHP/ oracle 10g smart quotes

    I have a problem with my php form that passes the text field to a javascript object. When I copy text from MS Word that includes smart quotes, the form inputs that into the database as ? (upside down) marks. The charset of the DB is WE8MSWIN1252. How do I store these smart quotes as regular quotes? And also if I can do any conversions on the front end (js or php). I tried doing some conversion but to no avail. Any help would be appreciated thank you. “double”

    Decide if you want your HTML pages in Windows code page 1252 or Unicode UTF-8. Then, make sure the pages are properly tagged as either "text/html;charset=windows-1252" or "text/html;charset=utf-8". Use HTTP header Content-type or the corresponding <META HTTP-EQUIV=...> tag. Then, set NLS_LANG environment variable for your PHP engine to either AMERICAN_AMERICA.WE8MSWIN1252 or to AMERICAN_AMERICA.AL32UTF8, depending on which encoding you selected for your HTML.
    -- Sergiusz

  • Problem with implementing license in Cisco Prime Infrastructure 2.2

    Goodday,
    For Cisco Prime Infrastructure 2.2 I downloaded an license from the license portal.
    This concerns a eval/demo license, for an demo of Cisco Prime Infrastructure 2.2.
    When selecting the the type of license you get a few options, from which I selected the basic, advanced and lifecycle evaluation licenses. This is the type of license that is required for our demo.
    After completing the wizard I can download en implement the license.
    Until this point everything goes as it supposed to be.
    When i go to the Prime Infrastructure 2.2 appliance (running on VMWare ESXi 5.5.0).
    When I go to the license section in Cisco Prime Infrastructure I can implement the license, however if I implement the .lic file I get the error “Unknown feature (PI_VM)”.
    I have done implementing license files before, but this is the first time i encounterd this problem.
    Who can help me with this error?
    Regards,
    Dennie Verhoeven

    Hi Dennie,
    PI2X-BASE-LF-AS-US-VM-N-EVAL-90   >> I think you have used this product name while generating the license
    Either you try generating a new license or  contact cisco license team to generate a new license
    with the information  like below ::
    Product Name                : R-PI2X-K9
        Product Description         : R-PI2X-K9:R-PI2X-K9 : Cisco Prime Infrastructure 2.x
        Product Qty                 : 1
        UDI                        : PID: PRIME-NCS-VAPL  SN: ANY:ANY
    Serial no : with ANY:ANY will work as  starting from PI 2.2 , there is no node locking with license.
    Thanks-
    Afroz
    ****Ratings Encourages Contributors ****

  • V4.0 Dynamic Action - Problem with implementing disabling/enabling button

    I'm having trouble implementing the following APEX V4.0 dynamic action:
    The enabling/disabling of a button when a text field is not-null/null.
    I'm following the example in Oracle's Advanced APEX course notes Pgs 5-13 to 5-16. I can get it working with no problems using two text fields. The example states that the "Select Type" for the button is a DOM object and you then have to enter it's name in "DOM Object" attribute. The example uses a "CREATE" button in a region position. Is "CREATE" just the Name attribute of the object? Is that what we are suppose to enter here? Also my FIND button is a "button among the region items" and not a "button in a region position" as in the example. The name of the button is P1_PAT_TBRN_SEARCH but when I use it as the Dom Object, nothing happens. Also I am using the "Key release" event for the text field that must be not-null.
    I notice that Demitri Gielis on his blog couldn't get it working either (see last paragraph)
    http://dgielis.blogspot.com/2010/01/apex-40-dynamic-actions-part-1.html
    Any suggestions?
    thanks in advance
    Paul P
    Edited by: PaulP on Jun 2, 2011 12:01 PM

    Hi Paul
    Two separate situtations here:
    - html buttons
    - template based buttons, typically comprising multiple html elements
    HTML Buttons
    These should be easy to enable/disable using dynamic actions, specifying an appropriate DOM selector.
    Typically you would use the ID attribute of the button, so that's straight forward except for one catch..
    APEX supports a #BUTTON_ID# template substitution tag , but performs substitutions only for buttons in Region positions and not for button items.
    Use button attributes instead to assign a specific ID.
    Template Buttons
    Since these are made up of multiple elements, you need to treat them as a single object to be able to interact with them easily.
    APEX provides the apex.widget.initPageItem method to integrate plugins with the dynamic actions framework:
    apex.widget.initPageItem("P1_MY_ITEM", {
    enable: function(){},
    disable: function(){},
    getValue: function(){},
    setValue: function(){},
    nullValue: "%null%"
    });This provides you with a mechanism to over-ride one or all of these built-in methods with your own JS, to use custom code to enable/disable your template buttons.
    For an example on how this works, look in the uncompressed apex_widget_4_0.js file, search for the shuttle widget.
    You could just add code to initialize your template buttons manually, or better still create a plugin button to add the code automatically.
    This is reasonably advanced work to do, but you really have to take your hat of to the APEX team for providing the mechanism to do it.
    Regards
    Mark
    demo: http://apex.oracle.com/pls/otn/f?p=200801 |
    blog: http://oracleinsights.blogspot.com |
    book: Oracle Application Express 4.0 with Ext JS

  • Download/print problems with Interactive Reports on 10g

    Running APEX 3.1.1.00.9 on Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production with BI Publisher
    When downloading Interactive report using xls/rtf - no data is shown, pdf - corrupted file error is shown. This seems to only happen with row counts over 20. Same tables with less rows populates fine with all file types.
    This problem does not exist using the APEX.oracle.com site, same tables. Is this due to the DB version?

    For addional info, I'm putting down major steps that I followed so that it can be confirmed for any missing links. Sorry for a little bigger post
    1) $ORACLE_HOME\bin\rwserver.exe -install myRepSrv
    2) Created a report in the reports builder, saved as .rdf
    3) In Forms builder, attached the report as a new report object.
    4) In a procedure to call the report, following code is written
    ----------8<---------------
    repid := find_report_object('testreport');
    set_Report_object_property(repid,report_filename,'testreport');
    set_report_object_property(repid,report_COMM_MODE,synchronous);
    set_report_object_property(repid,report_server,'myRepSrv');
    v_rep_jobid := RUN_REPORT_OBJECT(repid);
    v_rep_stat := report_object_status(v_rep_jobid);
    IF v_rep_stat = 'FINISHED' THEN
    web.show_document('/reports/rwservlet/getjobid'||substr(v_rep,length('myRepSrv')+2,LENGTH(V_REP))||'?server=myrepsrv','_blank');
    else
    message (v_rep_stat||'- Report output aborted '||sqlerrm);
    END IF;
    ----------8<---------------
    5) Compiled the form and placed the form binary in approprite folder
    6) modified $ORACLE_HOME\reports\conf\myRepSrv.conf. Changed the property of engine tag(sourceDir) to correctly point to the appropriate directory where the report has been saved
    7) modified rwservlet.properties to turn off SSO
    8) Started the external reports service with modified values
    9) Invoked the form to launch the report
    Please also note that if I invoke directly web.show_document and paste the hardcoded path, as can be expected, my work is done. But as can be agreed, this is not a very good approach.
    Thanks and regards,
    Kinjal Sonpal

  • Problems with reports on AS 10g R2

    Hi.
    We have installed a Oracle Application Server 10g Release 2 on a Windows Server 2003 SP1.
    We start the Report Server with rwserver server=<servername>
    We put one entry for this report server in the tnsnames.ora.
    Which port is used for report server? There is a standard entry with port 1950. So we now set the new entry to port 1951.
    And we set the path to the reports in the <ASHome>\reports\<servername>.conf for "SourceDir".
    What is also needed? Have we forgot something?
    When we start a report via http://<host>:7778/repdemo/runrepIAS.html on this report server, it doesn´t work. We got connection errors (connection refused).
    Normally we want to start the reports from our forms-application. The forms and reports are migrated from an old 6i application (running in the past on a 9i AS and DB).
    We don´t know what the problem is.
    When we connect via forms we got the error: FRM-41214 ("can´t run report") and FRM-41217 (can´t get job status). The 2nd error is based on the first I think.
    And when we start from a other computer the forms and want to run the reports, it runs and runs ... until world go down...
    I hope someone can help.
    Thanks for any suggestions.

    First of all, did you install the Reports Demo on this Application Server? If so, did you follow every steps in the Demos installation guide?
    Also, did you set up this Application Server according to the documentations? Reports_Path etc...?
    ... and as this is a Reports issue, I'd suggest to ask it in the Reports Forum for best response!
    Regards,
    Martin

  • "Problem with links in Oracle 10g Express Edition Application Interface"

    Hi.
    Under Object_Interface>Browse>Procedure the "edit" and "compile" links are not working.Also I am unable to see my code when I click on one of the procedures. Kindly help me out.
    Thanks & Regards
    Sri

    My laptop didn't start this morning. Can you help me out?
    (Go to the Express Edition forum at Oracle Database Express Edition (XE) and give them some hints about what the problem is. )
    At the very least you will need to tell people: operating system, browser, whether you have Firewall turned on, whether you are using anti0virus, whether yo have upgraded the Application Express interface.
    You can volunteer that information, or you can wait until people ask for it, but you will need to provide that information. And if you force people to ask - it's quite likely they will get bored with your problem.

  • Problem with key mapping in 10g

    Hello,
    my client is using key mapping on their reports server. It works fine except for parameter values...
    I can run this URL:
    http://<host>/reports/rwservlet?kr+2002+20
    and there is a mapping for kr in the cgicmd.dat file like this:
    kr: report=KR userid=<user>/<pw>@orcl desformat=html destype=cache p_verksamhetsar=%1
    p_verksamhetsar is a parameter of the report (meaning year).
    My problem is that when the report is run using the above URL the parameter gets the value 2002=
    An equal sign is added! The year column is a varchar2 so the query works but gives no result.
    I get the same problem if I try this URL:
    http://<host>/reports/rwservlet?kr%262002%2620
    If I run this URL it works fine (with a result as well):
    http://<host>/reports/rwservlet?report=KR&userid=<user>/<pw>@orcl&desformat=html&destype=cache&p_verksamhetsar=2004
    Any suggestions?
    Kind regards
    Tomas Albinsson

    Hi Kranthi,
    I think you mean %* at the end, meaning all parameters sent.
    Yes, I use this approach now as I've been unable to get %1, %2 etc to work.
    Strange, because %1 is described in the manual and I feel I use it like they say.
    Well, it works in a way, just that = is appended to the values.
    It has that buggy smell :)
    Kind regards
    Tomas

  • Problem with Materialized Views in 10g

    Hi All,
    I am creating a Materialized View like
    CREATE MATERIALIZED VIEW mvname TABLESPACE SYSTEM BUILD IMMEDIATE REFRESH WITH ROWID FOR UPDATE AS ( SELECT a,b,c FROM table_a,table_b,table_c WHERE cond );
    I am getting an error
    SQL Error: ORA-12013: updatable materialized views must be simple enough to do fast refresh.
    Can anyone tell what is the problem?
    I have included rowid of all three tables in select clause.

    Hi,
    From Oracle Docs:
    ORA-12013: updatable materialized views must be simple enough to do fast refresh
    Cause: The updatable materialized view query contained a join, subquery, union, connect by, order by, or group by caluse.
    Action: Make the materialized view simpler. If a join is really needed, make multiple simple materialized views then put a view on top of them.
    Regards
    K.Rajkumar

  • Problem with large tree in 10g

    We have a large tree within a form using 10g.
    This tree is refreshed quite often and we have found a problem when the user clicks in the tree area before the tree has fully displayed it causes a Java error in our JRE and this causes the whole form to stop working.
    When we took this up on metalink, they agreed it was an error but asked us to upgrade our patchset to 10.1.2.2.0. I did this on a Virtual PC and can still (less frequently) get the error. Unfortunately unlike before the patchset, i can not replicate every time on the latest patchset, and oracle require a test scenario in order to create a fix.
    I found that if I disable the tree the error does not occur. So Im thinking that a workaround would be to disable the tree during refresh then enable once it is built. I am using a button When Button Pressed trigger to call a procedure which in turn calls one other procedure. Unfortunately I cant find an easy way of finding a spot where the tree is fully built. If I put a alert in AFTER the procedure call in the button trigger the tree has only built the first layer and is not complete.
    I put in alert messages and sync commands at the end of the code but it is not refreshing the screen on the first alert. Depending on the size of the tree it can be the 4th or the 5th alert. It appears to only sync the first level then the 2nd and so on.
    Is there any way of working out when the tree is fully built. Then I can enable the tree at this point?
    Any comments or ideas for a work around would be much appreciated

    Hi,
    From Oracle Docs:
    ORA-12013: updatable materialized views must be simple enough to do fast refresh
    Cause: The updatable materialized view query contained a join, subquery, union, connect by, order by, or group by caluse.
    Action: Make the materialized view simpler. If a join is really needed, make multiple simple materialized views then put a view on top of them.
    Regards
    K.Rajkumar

  • Problem with implement BI_cont_ TX

    Hi all;
    After I add Bi-cont 5.0 om my bi installation.
    I treid to implement Bi_cont ext on SAINT as add-on. But I get this massages:
    caution upgrade or prepare is still running import not permitted
    I did run report RSUPGRES on client 000 by DDIC user. But I get this massages:
    Report cannot run on shadow system !
    My shadow instance is 003.
    Any idea what is the problem
    Thanks

    Ejersbo Reza wrote:
    The shadow cannot be client 000. The shadow client is 03 and I can logon it.
    >
    > Very  confusing .
    Shadow instance is not client specific. Shadow instance is replica of your original system but without application data.
    As you said earlier, upgrade is finished then there should not be any shadow instance because after upgrade shadow instance does not exist.
    So, either upgrade is still running in the system that's why you are getting that message or your doing it wrong.
    Thanks
    Sunny

  • SSO Integration problem with Java version in 10g

    Hi,
    I'm following the instructions to integrate my HTML DB with 9iAS 9.0.2 SSO. The instructions tell me to download the SSO PDK and extract the file SSOHash.class then load it into my FLOWS_xxxx schema. My database version is 10g, and the loadjava fails with the following message:
    Error while testing for existence of dbms_java.handleMd5
    ORA-03113: end-of-file on communication channel
    The reason is that the function handleMD5 is no longer in the dbms_java package in 10g, it is in this package in 9i. Has anyone got a workaround to this?
    Thanks,
    Steve

    Scott,
    Actually I'm wrong about the function not being there, it is. But someone else is having the same issue, please look here:
    loadjava hangs
    Steve

  • Problems with the installation Oracle 10g 10202 - Platform x86 - Sol 5.10

    Hi,
    I am trying to install Oracle 10g R10202 in plataform x86 Solaris 5.10. I did all the tasks of preinstallation, and when I execute runInstaller, the following error appears ==>
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be 5.10. Actual 5.10
    Passed
    Checking Temp space: must be greater than 250 MB. Actual 7622 MB Passed
    Checking swap space: must be greater than 500 MB. Actual 1761 MB Passed
    Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /opt/tmp/OraInstall2007-08-26_09-18-08PM. Please wait ...warning [../stage/Components/oracle.swd.jre/1.4.2.0.0/1/DataFiles/filegroup2.jar]: 1 extra byte at beginning or within zipfile
    (attempting to process anyway)
    file #0: bad zipfile offset (local header sig): 1
    (attempting to re-compensate)
    error: invalid compressed data to inflate /opt/tmp/OraInstall2007-08-26_09-18-08PM/jre/1.4.2/lib/sparc/libjvm.so
    file #516: bad zipfile offset (local header sig): 23197903
    (attempting to re-compensate)
    Error in writing to directory /opt/tmp/OraInstall2007-08-26_09-18-08PM. Please ensure that this directory is writable and has atleast 69 MB of disk space. Installation cannot continue.
    : Error 0
    Obviously it is not a problem of space in the directory/tmp.
    I have tried other options as ==>
    *-Run runInstaller con el parameter ignoreSysPrereqs
    *-Setting  others variables of environment like,  TMP =/opt/tmp
    and TMPDIR =/opt/tmp.
    But I don't fix the problem.
    Someone has some idea of like solving this bug or problem?
    Thanks in Advance.
    Best Regards.
    NSV

    Error is on small caps but it is straight forward:
    ".. error: invalid compressed data to inflate ..."
    Your oracle media is corrupt. Redownload it and verify the downloaded zip file.
    ~ Madrid

Maybe you are looking for

  • Deploying beans in weblogic 6.0

    Hello, Can anyone tell me how to deploy beans, servlets etc in 6.0. I have done everything in 5.1. But we are not able to find out how everything is working on 6.0. If someone can give me a URL which mentions all these, I will be much grateful. Sures

  • How to stop a elapse time

    Hi, I have an elapsed time inside a while loop and I want stop it (the elapsed time) when the user press a button. How can I do it? Thanks, ToNi.

  • I need a version of firefox that runs on Win 98, first edition.

    I have a friend with an old computer on dial up. He only has Win 98, first edition, but wants firefox. I'd like to burn it on a CD for him, along with some extensions, but first I have to find the download. Would somebody please give me a pointer?

  • Windows not retaining settings after 10.4.11 update

    Hello everyone, I just updated my PowerBook G4/667 Titanium to Mac OS X 10.4.11 (from 10.4.1) and everything is working fine but there is one annoying problem. Every time I restart, when I open some of the windows on my computer, they do not retain t

  • Kernel panics following wakeups using Leopard

    I had been encountering routine system crashes (kernel panics) after waking my G5 from sleep mode. In an effort to isolate a possible cause, I changed USB hubs, disconnected external hard drives, and so on. What seems to have been the source (fingers