Problem about advanced rewrite

i build a advanced rewrite like:
begin
sys.dbms_advanced_rewrite.declare_rewrite_equivalence (
     name=> 'rewrite1',
     source_stmt =>
'select * from testfy where con like ''%c%''',
     destination_stmt =>
'select * from testfy where contains(con,''%c%'')>0',
     validate=> false,
     rewrite_mode=> 'text_match');
end;
but when i execute the query "select * from testfy where con like '%a%';"
DB gave me a error:
ERROR at line 1:
ORA-03113: end-of-file on communication channel
Process ID: 5280
Session ID: 170 Serial number: 8
Why?
What should i do?

What db version are you using? Runs without error on 11.1.0.7 but still I think it does not return the expected results:
SQL> select * from v$version where rownum=1
BANNER                                                                         
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production         
1 row selected.
SQL> drop index emp_txt_idx
Index dropped.
SQL> create index emp_txt_idx
   on emp (ename)
   indextype is ctxsys.context
Index created.
SQL> begin
   sys.dbms_advanced_rewrite.declare_rewrite_equivalence (
      name               => 'rewrite1',
      source_stmt        => 'select ename from emp where ename like ''%L%''',
      destination_stmt   => 'select ename from emp where contains(ename, ''%K%'') > 0',
      validate           => false,
      rewrite_mode       => 'text_match'
end;
PL/SQL procedure successfully completed.
SQL> select ename from emp where ename like '%L%'
ENAME    
ALLEN    
BLAKE    
CLARK    
MILLER   
4 rows selected.

Similar Messages

  • Why Apple don't fix half year serious problem with HD3000, Lion and Adobe products? Doesn't Apple really care about advanced users?

    Why Apple don't fix half year serious problem with HD3000 drivers, Lion and Adobe products? Doesn't Apple really care about advanced users?
    I have Mac mini and Macbook Pro 13". Bouth with HD3000. And I can't work at all. With Snow Lepard I had no problems. It's tiny problem in code. And such pain for lots of users!

    If you have a problem with Adobe products, voice your issues with them.
    It is the software developers responsibility to maintain compatability
    with any operating system, beit OSX or Windows.

  • Problem about Handling of Empty Files in File Adapter

    Hello everyone,
    NetWeaver 2004s --- XI
    In Sender i have a File Adapter.
    Now i meet a problem about Handling of Empty Files. When i send empty file, but don't cerate a leer message.
    I have seen following text in help document. But in adapter configuration i can not find the correspond parameter.
    can you give me some tips?
    Thx in advance
    best regards
    Yaning
    SAP Help Document über File Adapter
    +Handling of Empty Files
    Specify how empty files (length 0 bytes) are to be handled.
    ○       Do Not Create Message
    No XI messages are created from empty files.
    The files are processed according to the selected Processing Mode.
    For example, if the processing mode is Delete, empty files are deleted in the source directory.
    ○       Process Empty Files
    XI messages are created with an empty main payload.
    The files are processed according to the selected Processing Mode.
    ○       Skip Empty Files
    No XI messages are created from empty files.
    Empty files are skipped and remain in the source directory.+
    Help Docu

    hi,
    it's available since Sp19 for XI 3.0
    and the corresponding SPS fpr XI 7.0
    http://help.sap.com/saphelp_nw04/helpdata/en/44/f565854b7341e6e10000000a1553f6/frameset.htm
    so probably you need to install the new SP
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Problem about enabling GL Drawing.Any help,please?

    Installed PhotoshopCS5 trial on laptop Vaio , XP Pro, service pack 3.
    When setting preferences found that in Performance window, section GPU is dimmed and can not activate Enable GL Drawing .
    The message in Description area is that Graphics hardware is not available and I need to upgrade video driver, possibly card.
    Did try to find what video card is present in the laptop but the  only info  found in Search is that DirectX is installed plus number of files with odd names (I am not a techie).
    So, I have no idea what video card is installed and what needs to be updated…
    Is there any solution  to this problem about enabling GL Drawing and what is it?
    My trial time is running out and any simple to understand advise is appreciated!
    Thanks in advance!
    Gloria

    Zeno is probably right in that your igp is too weak to support openGL, but if such is not the case, have a read here: http://kb2.adobe.com/cps/406/kb406921.html

  • Problem about using Oracle Form 6i to connect Oracle Database 10g express.

    Sorry to interrupt all of you.
    I have encountered a problem about using Oracle Form 6i to connect Oracle Database 10g express.
    As I would like to
    I use Oracle Net8 Easy Config to create a connection.
    According to "tnsnames.ora", the paramater of connection is as follows;
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA = (SID = XE))
    Unfortunately, when I use Oracle Net8 Easy Config to test the connection, an error message is prompted as follows:
    Connecting....
    The test did not succeed.
    ORA-03106: fatal two-task communication protocol error
    There may be an error in the fields entered
    or the server may not be ready for a connection.
    You can check the server and retry, or continue.
    After I google it, I still have no idea how to solve the problem. I would like to ask, could anyone mind providing some hints or solution to address the issues.
    Thanks for your assistance in advance.

    I don't believe the Net8 Easy Config (NEC) will create a compatible entry in the tnsnames.ora. I have Forms 6i running successfully against a 10g Express database, but I did not use the NEC - I created the entry myself. Here is the entry I use:
    XE=
      (DESCRIPTION=
        (ADDRESS=
          (PROTOCOL=TCP)
          (HOST=<<servername or IP address>>)
          (PORT=1521)
        (CONNECT_DATA=
          (SERVER=dedicated)
          (SERVICE_NAME=XE)
      )Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • A problem about gcc

    I installed Solaris8 x86 on my PC successfully, including software companion CD, which was installed under /opt.
    Following was added in .profile :
    PATH=/opt/sfw/bin:$PATH
    Then I created two programs in a subdirectory:
    C code, HelloWorld.c, compiled using gcc, run ./a.out, everything OK;
    C++ code, HelloWorld.cc, compiled using g++, ./a.out was generated, it seemed ok. But when I tried to run ./a.out, got following error message:
    $ ./a.out
    ld.so.1: ./a.out: fatal: libstdc++.so.2.10.0: open failed: No such file or directory
    Killed
    The same C++ HelloWorld compiled and run good on another Sparc/Solaris7.
    Anybody can tell me what the problem is and how to solve it?

    Edward_King wrote:
    I enter a problem about gcc,I installed solaris 10,and then login with root user,I want to use gcc,
    #pwd
    #gcc
    but I find there is no gcc,A better way to find gcc is to:
    grep gcc /var/adm/install/contents
    On a Solaris system if you install the developer or greater cluster then gcc should be installed into:
    /usr/sfw/bin
    so you can start by just checking there.
    PATH=$PATH:/opt/gnome/bin:/usr/local/bin:/opt/netscape:/usr/ccs/bin
    export PATH I'm not sure why you would need /opt/gnome or /opt/netscape but whatever.
    1 how can i know root user use sh or csh user?Look at the /etc/passwd file.
    2 I can't find .profile or .cshrc file in / directory,where are they? Which directory should I create profile or .cshrc file? After I create profile or .cshrc file,which command I can run to make profile or .cshrc file go function? Need I reboot the solaris system?By default root doesn't have one so just create using vi.
    vi /.profile
    Thanks in advance!regards,
    alan

  • PI7.0: Problem about openning alert configuration in RMB

    Hi experts,
       I encounter a problem about alert configuration.
       I have defined the alert catogory in WAS ABAP and use the report RSALERTTEST to test it. It's OK. Then I logon RWB and click u201CAlert configurationu201D,system popup a login window. I input my user account and confirm it. But the logon window popup again and again.I don't kown how to resolve it. BTW, my user account has the roles SAP_ALM_ADMINISTRATOR and SAP_ALM_CUSTOMIZER.And I have resolved the problem "Alert configuration does not start" according to note 750287.
       Anyone has idea??Could you please give me some advice???
    Thanks a lot in advance.
    BR Villy.L

    Hello Villy
    Check these notes:
    1) #913858 XI Alerting: Troubleshooting
    2) #768456 Troubleshooting Runtime Workbench
    Restart the java engine after making any changes in the Exchange Profile.
    For further info check previous threads on this topic:
    The URL contains no complete domain specification
    Calling the BSP page terminated due to an error While accessing ALERT INBOX
    Regards
    Mark

  • PI7.0: Problem about openning alert configuration in RWB

    Hi experts,
       I encounter a problem about alert configuration.
       I have defined the alert catogory in WAS ABAP and use the report RSALERTTEST to test it. It's OK. Then I logon RWB and click u201CAlert configurationu201D,system popup a login window. I input my user account and confirm it. But the logon window popup again and again.I don't kown how to resolve it. BTW, my user account has the roles SAP_ALM_ADMINISTRATOR and SAP_ALM_CUSTOMIZER.And I have resolved the problem "Alert configuration does not start" according to note 750287.
       Anyone has idea??Could you please give me some advice???
    Thanks a lot in advance.
    BR Villy.L

    Hi Villy,
    Although i have not faced this issue but one workaround fix that can help you to address your problem would be....
    Please add below 'actions' to 'everyone' role using NWA->Identity Management
    UME keystore-view.TicketKeystore entry-actions.all.all
    UME keystore-view.TicketKeystore property-actions.all.all
    UME keystore-view.TicketKeystore view-actions.all.all
    Then, Initiate RWB using URL - http://<j2ee-host>:<http-port>/rwb/rtc?op=init
    I hope this fixes your issue.
    Regards
    Sekhar

  • Problems about  query filter (BEx).

    Hello there,
    I have some problems about  query filter (BEx).
    I have master data and I want to use attribute in this master data to dynamic filter in query(BEx).
    But this attribute is key figure. I can't done it now. TT
    Is this possible? If yes, could anyone advise how this is to be done?
    Thanks in advance.

    Hi
    In BEx there is option as 'Exceptions' & 'Conditions'. If you go in condition, you can specify range for key figure output. This is either predefined or by user selection. You create the condition as per your requirement & it will show you filtered data.
    How to create conditions you will find easily on this site.
    You can create as many conditions as no of filters you want. You can create these at query level also at report output level.

  • Problem about excel download

    Dear all,
    I got a problem about Thai language.
    I wrote down ABAP code for sent mail and attached excel file to business workplace, but when I open excel file I can not read Thai language.
    Please advance.
    Regard
    Lee

    Hi Santosh,
    I cant change the code because it's SAP standard (I would njeed to find an OSS note and there doesnt seems to be one there) the SAP Standard incluse is LSLPCF02 and the code is as follows:
    DATA: fname type string,
            result type abap_bool.
      fname = file_name.
      CALL METHOD cl_gui_frontend_services=>file_exist
        EXPORTING
          file            = fname
        receiving
          result          = result
        EXCEPTIONS
          others          = 0.
      call method cl_gui_cfw=>flush.
      IF result = abap_false.
        RAISE file_not_exist.
      ENDIF.
    This seems to be the same, only difference is the way i_result is declared ??
    Thanks

  • An old and difficult problem about "UnsatisfiedLinkError"

    Hi dear all,
    I have been struck with the problem about "UnsatisfiedLinkError". I have a c++ class HelloWorld with a method hello(), and I want to call it from within a java class. In fact, I have succeeded in calling it on the windows platform. But when I transfer it to linux, the error "UnsatisfiedLinkError" comes out. I have tried to take the measures as Forum has suggested, but it failed.
    The source code is very simple to demonstrate JNI.
    "HelloWorld.h"
    #ifndef INCLUDEDHELLOWORLD_H
    #define INCLUDEDHELLOWORLD_H
    class HelloWorld
    public:
    void hello();
    #endif
    "HelloWorld.cpp"
    #include <iostream>
    #include "HelloWorld.h"
    using namespace std;
    void HelloWorld::hello()
    cout << "Hello, World!" << endl;
    "JHelloWorld.java"
    public class JHelloWorld
    public native void hello();
    static
    System.loadLibrary("hellolib");
    public static void main(String[] argv)
    JHelloWorld hw = new JHelloWorld();
    hw.hello();
    "JHelloWorld.cpp"
    #include <iostream>
    #include <jni.h>
    #include "HelloWorld.h"
    #include "JHelloWorld.h"
    JNIEXPORT void JNICALL Java_JHelloWorld_hello (JNIEnv * env, jobject obj)
    HelloWorld hw;
    hw.hello();
    All the files are in the same directory and all the processes are under the dirctory:
    1. javac JHelloWorld.java
    2. javah -classpath . JHelloWorld
    3. g++ -c -I/usr/java/jdk1.3/include -I/usr/java/jdk1.3/include/linux JHelloWorld.cpp HelloWorld.cpp
    4. ld -shared -o hellolib.so *.o
    5. java -cp . -Djava.library.path=. JHelloWorld
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no hellolib in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1349)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at JHelloWorld.<clinit>(JHelloWorld.java:7)
    Tried another measure:
    i) export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
    ii)java -cp . JHelloWorld
    The same error came out as above.
    I really don't know what is wrong with it.
    Would you like to help me as soon as possible?
    Thanks.
    Regards,
    Johnson

    Hi Fabio,
    Thanks a lot for your help.
    It is very kind of you.
    Regards,
    Johnson

  • A problem about calling Labview vi in VB

    Hi all:
    I meeting a problem about data transfer and parallel operation between VB and Labview.
    Actually, I want develop a VB program, in which, the Labview VI can be called and corresponding parameters can be transferred to Labview. and then, I also can operate my system by VB program at same time. something like parallel operation (VB and Labview program).
     But the question is :
    1.   If I use "Call" method of ActiveX in VB,  and the LabVIEW subvi is not stopped (for example, a loop structure), I can not do  parallel operation on VB program. The error message is "other application is busy" which is attached below. The sample codes is also attached.
    2.   I tried to use other methods like "OpenFrontPanel" and "Run", but I am not sure how to transfer the parameter??
    3.  Then I tried to use "SetControlValue" to set the parameters, but there is a error " := expected", which is very strange, because the statement  I wrote is followed with the help documents [ eg: VI.SetControlValue ("string", value)], why it is still need a "=" ??
    Does anybody know something about it? Thanks a lot
    Message Edited by hanwei on 11-07-2008 03:18 PM
    Attachments:
    vb_labview_error_message_1.JPG ‏14 KB
    VB_to_LV.zip ‏10 KB

    I sure hope OP has solved it by now.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • HT201210 hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    Try the suggestions here to see if they resolve your problem:
    http://support.apple.com/kb/ts1559
    If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support.

  • Problem about sales order stock stock transfer and batch determination

    Hi, experts, I get a problem about sales order stock stock transfer and batch determination.The following is the current situation of my system:
      In OMCG I assigned search procedure ME0001 to both 311 and 311 E and ticked check batch. After that, I found  that if iI need to tranfer unrestricted-use material from storage location 1000 to 2000 with movement type 311, I just need to input * at the field batch, then the system will display all of the available batches. But for the transferring of sales order stock with movement type 311 E, after I input * at the batch field, no batch is displayed and there is also no message from the system.
      Can anybody help me? Is there anything else I need to do? Thanks very much.

    I think my question is not clear, actually I tried 562 E , 411 E and 413 already. all the transaction looking for the sales order but unfortunatly the sales order is deleted  from SAP.

  • Hello apple I have the problem with my iPhone and my friends have this problem too. My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it bu

    Hello apple
    I have the problem with my iPhone and my friends have this problem too.
    My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it but when answer both of us can't hear anything and when I put my iPhone to my face the screen is still on and when I quit the phone application and open it again it will automatic call my recent call. And when my friends call me my iPhone didn't show anything even the missed call I'm only know that I missed the call from messages from carrier. Please check these problem I restored my iPhone for 4 time now in this week. I lived in Hatyai, Songkhla,Thailand and many people in my city have this problem.
    Who have this problem??

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

Maybe you are looking for