Desname parameter works fine in Report builder but fails in Forms builder

Hi,
I need some help with my current task. Here is my problem.
I am working on Oracle 10g. My reports and Forms builder version is 10.1.2.3.0.
My objective is to use Forms builder to call a report which will direct the output directly to the printer without preview.
First , in report builder , I use the Parameter Form builder and set Report parameter DESTYPE = PRINTER and the DESNAME automatically changes to PCL6 ( which is the network printer name I am using).
When I run the report , the output is directed to the printer and it works just fine.
But in Forms builder , when I call the same report, set the DESTYPE as Printer and DESNAME as 'PCL6' , it gives an error Invalid printer name 'PCL6' specified by parameter DESNAME.
I tried searching in this forum, it says the error is due to an invalid printer name specified in the DESNAME. But if my printer name is invalid, I wonder how the same printer name works well in Report builder?
My coding in Forms as below :
SET_REPORT_OBJECT_PROPERTY( repid, REPORT_DESTYPE,PRINTER);
SET_REPORT_OBJECT_PROPERTY( repid, REPORT_DESNAME,'PCL6');
Appreciate if anyone can help. Thanks
Regards
Shiva

Hi Puppethead,
I have tried with your suggestions.
the following condition -- did not work
( (mgr_name = :manager name)
OR (mgr_name LIKE DECODE(:manager name, 'ALL', '%', NULL)))
but for the other condition ---
( (mgr_name = :manager name)
OR (mgr_name LIKE DECODE(nvl(:manager name, 'ALL'), 'ALL', '%', NULL)))
is wrong because, :manager name cud be null, when it is null, it takes 'ALL' i.e. '%' which shud not be the case.
if the user enters null, it has to display records with null only but with the above condition it takes '%'
The main issue which i dont understand is, the report works fine for the first time. for the second time, the report takes null values . why is it taking null values for the second time.
Thanks

Similar Messages

  • ANT Deployment issue. works fine in one environment but fails in other

    Hi,
    Ant script is working fine in Dev environment but is failing in the other environment. Somehow the BPEL server is not able to pick the latest deployed process , due to this the dependent BPEL processes are failing. If we restart the server , it moves forward and then fails at the point where it couldn’t find reference to the processes deployed after restart. Restarting the server at every failed interval will deploy all the BPEL processes which is not the solution.
    example : we have BPEL Processes say A, B, C, D and E. A,B are independent processes C is dependent on A, D is independent and E is dependent on D. So I have Ant script to deploy in A,B,C,D,E order. Now I run the Ant Script: It deploys A,B processes and Fails at C saying it couldn't find the process A.wsdl(But A is deployed). So if i restart now it recognizes A and B are deployed so C is also deployed succesfully it also deploys D as it is Independent but fails at E. If i restart the server E is also deployed.
    The Environment is clustered.
    Any suggestion to make my Ant script to run at a go will be highly appreciated
    Thanks
    Krishna

    Hi KrishnaBhaskarla,
    I have something related to ant script, Can you please provide me the steps for deploying applications using ant script.
    Regards
    Kumar

  • MyPlugin works fine in AdobeReader-9 but fails in AdobeReader-X(10).

    Hi ,
    The plugin which i created using Acrobat SDK works fine in AdobeReader-9 but it doesnt works as expected in AdobeReader-X.
    The issues with Reader-X are listed below :
    1. MyPlugin doesn't get loaded at the top as the other tollbars , which i was able to load MyPlugin in Reader-9. In Reader-X , MyPlugin gets loaded at the right-side panel under 'Tools' Tab.
    2. In Reader-X, there is an option which we can select for 'Enable Protected-Mode'.
         a. If this is enabled i am able to see all the buttons of MyPlugin but when i clicked on each button it wont do its task instead i get error message saying          unable to create HelperObject. Why MyPlugin's buttons not performing its task when the Protected-Mode is Enabled?
         b.If i disable the Protected-Mode , i will see only first two buttons of MyPlugin(MyPlugin contains 4 buttons) and the when i click on those buttons it will be         able to do its task as expected. Why i am not able to see all the buttons of MyPlugin during Protected-Mode disabled ?
    Please let me know what i should do to make MyPlugin work in Reader-X. MyPlugin is working fine in Reader-9.
    Thanks in advance. Please someone help me out from this..

    Hi Richard,
    Sorry , i could not reply to your previous posts.
    In the below link they is a sample for making IE-Plugin work when IE-Protected mode is On.There is explaination on broker process.
    http://msdn.microsoft.com/en-us/library/bb250462(v=vs.85).aspx .
    This below links may also be useful :
    http://msdn.microsoft.com/en-us/library/ms537312(v=vs.85).aspx
    http://www.codeproject.com/KB/vista-security/PMSurvivalGuide.aspx
    We may have to do the same way for our Reader Plugin, which i have also not implemented it till now,also did not get any sample for Reader Broker process.
    I did lot of search but i also didn find any.
    So what i am doing is,displaying a message box to user if the Reader Protected mode is enabled. And ask the user to Click on a button to disable Reader Protected mode. After restarting the PDF the user will be able to access MyPlugin without any error.
    As of now i am doing this, but i have to make MyPlugin to work even when the Protected Mode is enabled. For this i need to create the Broker Process.
    I know you have also spend lotz of your time to find a solution for this. But we are not getting the right ways to achieve a solution for this.
    If i get a solution for this i will definately inform you and if you get any solution please let me know.
    Thanks and Regards,
    Chetan.

  • I have a java script calulation that works fine on a PC but when the form is on a IPad it does not calculate. Why?

    var sDate = this.getField("MDate").value;
    if(sDate=="")
    event.value="";
    else{
    var oDate = util.scand("mm/dd/yy", sDate);
    oDate.setDate(oDate.getDate() +6);
    event.value = util.printd("mm/dd/yy", oDate);

    What app is involved?
    Many apps on mobile devices cannot handle from fields. They also have very limited JavaScript support. The "uiti" objects is nol fully supported by Adobe Mobile Reader.
    http://www.adobe.com/devnet-docs/acrobatetk/tools/Mobile/Enterprise_Guide_ReaderMobile.pdf

  • Workbook works fine in discoverer plus but shows error in discoverer viewer

    Hi,
    I have some issues with the parameter of a report.
    one of the parameters is
    mgr_id (eg: 1,2,3) -- from database table.
    manager names are not available in the database but they are known to users like
    1 - david
    2 - alan chris
    3 - peter
    so the requirement is
    (i) the input parameter wud be entered as 1 or 2 or 3 or null ( or in multiple combination or all).
    But the report shud have parameters in the header of the report.
    for eg: if the input parameter is mgr_id = '1' then the report shud have manager name: 'david' in the header.
    if the input is mgr_id = '1',' 2', '3' then on the report header, it shud display as manager name: 'david','alan chris','peter'
    (ii) the default value of mgr_id shud be 'ALL'. if the user enters mgr_id as 'ALL' then it shud take all the values of mgr_id and pull all the values of mgr_id (like 1,2,3)
    and the report header shud display as department name: 'ALL'
    i have developed a custom query where i used,
    select dept_id, decode(mgr.mgr_id,'1','david','2','alan chris','3','peter') as mgr_name, ..... etc.
    in discoverer admin,
    I have created LOVs (item classes) for mgr_name.
    after that going to properties of mgr_name, i have selected mgr_id as indexed item.
    and in the report i have created parameter dept based on mgr_name and selected the option -- allow to select both indexes and values.
    and in the default value i mentioned 'ALL'.
    after that i changed the condition as
    ((mgr_name = :manager name) OR (mgr_name LIKE DECODE(:manager name,'ALL','%')))
    and in the header, i used &department name --- then it displays correctly.
    but the problem is ---
    the report works fine in plus. the problem is only when parameter value is 'ALL'
    when i run the report from discoverer viewer for the very first time (after logging in), the report works fine with correct data.
    but when i run the same report second time with parameter value 'ALL', it gives an error ---
    Invalid value "''" for parameter "department name"
    i dont understand, why it works for first time and doesn't afterwards. If i logout and login again, it works fine in viewer.
    am i doing anything wrong in conditions or declaring the parameters?
    I came to know that, the very first time, when we enter 'ALL' it is taking '%' but when we run for the second time, it is taking NULL. since NULL isn't there in mgr_id or mgr_name, it is throwing that error.
    How do i fix this error?
    Thanks

    Hi Puppethead,
    I have tried with your suggestions.
    the following condition -- did not work
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(:manager name, 'ALL', '%', NULL)))
    but for the other condition ---
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(nvl(:manager name, 'ALL'), 'ALL', '%', NULL)))
    is wrong because, :manager name cud be null, when it is null, it takes 'ALL' i.e. '%' which shud not be the case.
    if the user enters null, it has to display records with null only but with the above condition it takes '%'
    The main issue which i dont understand is, the report works fine for the first time. for the second time, the report takes null values . why is it taking null values for the second time.
    Thanks

  • Hello I have imac (27-inch mid 2011) 3.1ghz intel core i5 1tb serial ata hard drive, amd radeon hd 6970m my problem is imac works fine in safe mode,but when you try to startup normal it's connstantly restart by it self.

    hello I have imac (27-inch mid 2011) 3.1ghz intel core i5 1tb serial ata hard drive, amd radeon hd 6970m
    my problem is
    imac works fine in safe mode,
    but when you try to startup normal it's connstantly restart by it self.

    in safe mode works perfectly,soon as I try to boot in normal mode it's keep restarting.on screen I don't  see any line vertical or horizontal picture look normal on safe mode.but unable to start normal it just restarting over and over.I try another HDD but same things happen,I replace memory but still same.works ok in safe mode but not in normal mode.I will try to post system error report.

  • ESS app ess.us.pdata builds fine in dev buildspace but fails in cons....

    Hi Folks,
       I have 3 ess apps that build fine in the dev buildspace but the build fails in the cons buildspace...the dev space build and deploy work fine from netweaver and u can see the changes working fine in the portal too....
    to take it to the next environment, the cons build needs to succeed but it fails with this log.....we had one of the .ear files loaded into the next environment and it works fine there too..but this build needs to work to make the apps go thru the transport process..Any Ideas????......The last change I did was to a java file  VcPerPersonalUSDetail.java file to add some validation...did not add any new methods..just changed some existing ones....
    java.lang.NoClassDefFoundError: com/sap/ide/metamodel/general/DevelopmentObject
         at java.lang.Class.getDeclaredMethods0(Native Method)
         at java.lang.Class.privateGetDeclaredMethods(Class.java:1678)
         at java.lang.Class.getMethod0(Class.java:1924)
         at java.lang.Class.getMethod(Class.java:984)
         at com.sap.dictionary.generation.ant.DDGenAntTask.execute(DDGenAntTask.java:70)
         at org.apache.tools.ant.Task.perform(Task.java:341)
         at org.apache.tools.ant.Target.execute(Target.java:309)
         at org.apache.tools.ant.Target.performTasks(Target.java:336)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
         at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:115)
         at com.sap.tc.buildplugin.AbstractAntBuildAction.execute(AbstractAntBuildAction.java:65)
         at com.sap.tc.buildplugin.AbstractPlugin.handleBuildStepSequence(AbstractPlugin.java:217)
         at com.sap.tc.buildplugin.AbstractPlugin.performBuild(AbstractPlugin.java:193)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.tc.buildtool.PluginCommunicator.maybeInvoke(PluginCommunicator.java:114)
         at com.sap.tc.buildtool.PluginCommunicatorV2.communicate(PluginCommunicatorV2.java:42)
         at com.sap.tc.buildtool.PluginHandlerImpl.handlePluginCommunication(PluginHandlerImpl.java:345)
         at com.sap.tc.buildtool.PluginHandlerImpl.execute(PluginHandlerImpl.java:175)
         at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1726)
         at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1498)
         at com.sap.tc.buildcontroller.CBSBuildController.build(CBSBuildController.java:727)
         at com.sap.tc.buildcontroller.CBSBuildController.execCommand(CBSBuildController.java:503)
         at com.sap.tc.buildcontroller.CBSBuildController.evalCmdLine(CBSBuildController.java:442)
         at com.sap.tc.buildcontroller.CBSBuildController.run(CBSBuildController.java:314)
         at com.sap.tc.buildcontroller.CBSBuildController.exec(CBSBuildController.java:252)
         at com.sap.tc.buildcontroller.CBSBuildController.mainLoop(CBSBuildController.java:207)
         at com.sap.tc.buildcontroller.CBSBuildController.main(CBSBuildController.java:168)

    Hi,
    check if the archives imported into cons are the same as in dev. You can see the imported versions on the "System State" tab in the CMS transport studio. I'd suspect that there's a mismatch.
    Regards,
    Marc

  • Facetime works fine on my iphone, but will not work on my MBA.

    Facetime works fine on my iphone, but will not work on my MBA.   Keeps telling me "unable to verify address" and says it is sending me a verification link to my email address but I never get anything.   Crazy. 
    After a while it tells then me that it cannot verify my email address because of a network connection  ("Could not verify the email address. Please check your network connection and try again. ")
    Does anyone have any ideas?

    Facetime works fine on my iphone, but will not work on my MBA.   Keeps telling me "unable to verify address" and says it is sending me a verification link to my email address but I never get anything.   Crazy. 
    After a while it tells then me that it cannot verify my email address because of a network connection  ("Could not verify the email address. Please check your network connection and try again. ")
    Does anyone have any ideas?

  • How do I connect to Net Flix? I put in my user name and password which work fine with my iMac but not on my Apple TV?

    How do I connect to Net Flix? I put in my user name and password which work fine with my iMac but not on my Apple TV?

    Can you give me a screenshot of the User Accounts window in Control Panel?
    Please create a screenshot by following the guide mentioned at [[How do I create a screenshot of my problem?]].
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. You really help us to visualize the problem.

  • I am trying to connect to my Wifi Network. It is a Galaxy Nexus. I am trying to connect to this Hotspot. I have an iMac that works fine with my network but for some reason with this computer I cannot connect.

    So far I have pulled the system configuration file, I have reset safari, I deleted all old passwords from the wifi network in Keychain I restarted both devices. I am at the end here and I cannot get it to work I have an iMac that works fine with my network but for some reason this computer will not connect. It is system wide specifically to my personal hotspot. I can connect fine to any other network (wifi) but just not mine. I have not changed any wifi settings. I have been trying to figure this out. I have a MacBook Pro Late 2006 model running Lion (10.7.5) So any ideas anyone? Please help!

    12. At a WiFi hotspot, you can't get connected.  The most frequent reason is the login screen for the WiFi hotspot is only able to be connected with a single type of browser.  If Safari doesn't work, try Firefox, Chrome, Omniweb, or Opera. 
    From my tip:
    https://discussions.apple.com/docs/DOC-6411

  • WHEN I GO TO PRIVACY SETTINGS AND CLICK ON EXCEPTIONS AND TYPE IN A WEB ADDRESS TO ALLOW ALL THE TIME IT DOES NOT SAVE IT THE NEXT TIME I SIGN ON TO FIRE FOX IT IS LOST. IT WORKS FINE ON MY DESKTOP BUT NOT ON MY LAPTOP THAT I JUST BOUGHT in English.

    Question
    WHEN I GO TO PRIVACY SETTINGS AND CLICK ON EXCEPTIONS AND TYPE IN A WEB ADDRESS TO ALLOW ALL THE TIME IT DOES NOT SAVE IT THE NEXT TIME I SIGN ON TO FIRE FOX IT IS LOST. IT WORKS FINE ON MY DESKTOP BUT NOT ON MY LAPTOP THAT I JUST BOUGHT in English.

    I just updated my whatsapp...clicked on whatsapp in appstore and now can access my whatsapp

  • HT204053 i have an itunes library with 1,000+ songs on a pc.  my daughter has a macbook air and i loaded my apple ID onto it.  how do i get the songs from my itunes account to show up?  This works fine on her iPhone, but having trouble on the new macbook

    i have an itunes library with 1,000+ songs on a pc.  my daughter has a macbook air and i loaded my apple ID onto it.  how do i get the songs from my itunes account to show up?  This works fine on her iPhone, but having trouble on the new macbook air

    Hey kbert73
    I would do a transfer of purchases from the phone and not sync. If you sync then it will want to start over and sync music that is on the MacBook Pro. If you want to transfer the music, check out the article below that will give you multiple options on how to move. I have also provided on how to sync with multiple computers.
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • My iPad is set up for my Apple ID account and works fine with iTunes. But when I try to use it for the App Store, my wife's apple ID shows up, not mine.

    My iPad2 is set up with my Apple ID and works fine with iTunes. But when I try to use the app store, my wife's apple ID appears in the password window, not mine. How can I get my apple ID to show up?

    Sign her out and sign yourself in!

  • Is there a way to print from ipad 4 to a non AirPrint printer? I have a Canon Pixma MP 620 wifi which works fine with my PC but I don't want to buy a new printer. Is there an app for this or adaptors which could work?   thank, Ric

    Is there a way to print from ipad 4 to a non AirPrint printer?
    I have a Canon Pixma MP 620 wifi which works fine with my PC but I don't want to buy a new printer.
    Is there an app for this or adaptors which could work? 
    Thank, Ric

    Printopia is another option but be aware that since these solutions effectively act as a print server and AirPrint receiver, they require a computer to be running on the same WiFi network.
    Canon also has a couple of apps in the App Store that might facilitate this on non-AirPrint printers. Check out...
    Canon Easy-PhotoPrint
    Canon Mobile Printing
    PIXMA Printing Solutions

  • Text Index works fine consistently with Table, but not on underlying View

    Hi,
    We are facing weird issue relating to Oracle Text Indexes. Search using Oracle Text Index
    works fine on a Table, but when running query on View it gives sometimes (not consistently)
    ORA-20000: Oracle Text error:
    DRG-10849: catsearch does not support functional invocation
    DRG-10599: column is not indexed
    Sometimes it works.
    All of the below steps are run using User IR2OWNER:
    STEP 1: Table CPF_CUSTOMER created as follows (3 Non Text Indexes defined at time of creation )
    **Please note no Public Synonym is created for this Table**
    ** There is already another Table by same name CPF_CUSTOMER under different Owner (CDROWNER)
    and that Table has Public Synonym CPF_CUSTOMER created. Other Table CPF_CUSTOMER does not
    have any Views **
    create table CPF_CUSTOMER
    CPF_CUSTOMER_UUID NUMBER(20) not null,
    SAP_ID VARCHAR2(10 CHAR) not null,
    IRIS2_ID VARCHAR2(7 CHAR),
    NAME VARCHAR2(70 CHAR) not null,
    DRAFT_IND NUMBER(1) not null,
    ACTIVE_IND NUMBER(1) not null,
    REPLACED_BY_CUST VARCHAR2(10 CHAR),
    CRE_DT_GMT DATE,
    CRE_DT_LOC DATE,
    TIME_ZONE VARCHAR2(3 CHAR),
    CRE_USR VARCHAR2(8 CHAR),
    CHG_DT_GMT DATE,
    CHG_DT_LOC DATE,
    CHG_TIME_ZONE VARCHAR2(3 CHAR),
    CHG_USR VARCHAR2(8 CHAR),
    VFY_DT_GMT DATE,
    VFY_DT_LOC DATE,
    VFY_USR VARCHAR2(8 CHAR),
    DIVISION VARCHAR2(20 CHAR),
    SALES_ADMIN VARCHAR2(3 CHAR),
    MF_CUST_CDE VARCHAR2(14 CHAR),
    CR_CTRL_OFCE VARCHAR2(3 CHAR),
    DEFAULT_INV_CCY VARCHAR2(3 CHAR),
    AUTOBILL_OVRRD_IND NUMBER(1) not null,
    AUTOBILL NUMBER(1) not null,
    AUTOPRT_OVRRD_IND NUMBER(1) not null,
    AUTOPRT NUMBER(1) not null,
    AVE_PYMT_DAY NUMBER(3),
    TTL_INV_VAL NUMBER(12,2),
    INHERIT_CR_TERM_ASSGMT NUMBER(1) not null,
    NORMALIZED_NME VARCHAR2(70 CHAR),
    OB_PYMT_OFCE VARCHAR2(3 CHAR),
    IB_PYMT_OFCE VARCHAR2(3 CHAR),
    CGO_SMART_ID VARCHAR2(20 CHAR),
    REC_UPD_DT TIMESTAMP(6),
    NCPF_CUST_ID VARCHAR2(7) not null,
    CPF_CUST_LEVEL_UUID NUMBER(20) not null
    tablespace DBCPFP1_LG_DATA LOGGING;
    CREATE UNIQUE INDEX CPF_CUSTOMERI1 ON CPF_CUSTOMER
    (SAP_ID ASC) TABLESPACE DBCPFP1_LG_INDX;
    ALTER TABLE CPF_CUSTOMER
    ADD CONSTRAINT CPF_CUSTOMERI1 UNIQUE (SAP_ID);
    CREATE UNIQUE INDEX CPF_CUSTOMERI2 ON CPF_CUSTOMER
    (CPF_CUSTOMER_UUID ASC) TABLESPACE DBCPFP1_LG_INDX;
    ALTER TABLE CPF_CUSTOMER
    ADD CONSTRAINT CPF_CUSTOMERI2 UNIQUE (CPF_CUSTOMER_UUID);
    CREATE INDEX CPF_CUSTOMER_IDX2 ON CPF_CUSTOMER (UPPER(NAME))
    TABLESPACE DBCPFP1_LG_INDX;
    STEP 2: Create View CPF_CUSTOMER_RVW on above Table (and Public Synonym on View)
    This View is created under same OWNER as Table created in STEP 1 (IR2OWNER)
    create or replace view cpf_customer_rvw as
    select
    CPF_CUSTOMER_UUID,
    SAP_ID,
    IRIS2_ID,
    NAME,
    DRAFT_IND,
    ACTIVE_IND,
    REPLACED_BY_CUST,
    CRE_DT_GMT,
    CRE_DT_LOC,
    TIME_ZONE,
    CRE_USR,
    CHG_DT_GMT,
    CHG_DT_LOC,
    CHG_TIME_ZONE,
    CHG_USR,
    VFY_DT_GMT,
    VFY_DT_LOC,
    VFY_USR,
    DIVISION,
    SALES_ADMIN,
    MF_CUST_CDE,
    CR_CTRL_OFCE,
    DEFAULT_INV_CCY,
    AUTOBILL_OVRRD_IND,
    AUTOBILL,
    AUTOPRT_OVRRD_IND,
    AUTOPRT,
    AVE_PYMT_DAY,
    TTL_INV_VAL,
    INHERIT_CR_TERM_ASSGMT,
    NORMALIZED_NME,
    OB_PYMT_OFCE,
    IB_PYMT_OFCE,
    CGO_SMART_ID,
    NCPF_CUST_ID,
    CPF_CUST_LEVEL_UUID,
    REC_UPD_DT
    from CPF_CUSTOMER;
    CREATE OR REPLACE PUBLIC SYNONYM CPF_CUSTOMER_RVW FOR CPF_CUSTOMER_RVW;
    STEP 3: Insert Test row
    insert into cpf_customer (CPF_CUSTOMER_UUID, SAP_ID, IRIS2_ID, NAME, DRAFT_IND, ACTIVE_IND, REPLACED_BY_CUST, CRE_DT_GMT, CRE_DT_LOC, TIME_ZONE, CRE_USR, CHG_DT_GMT, CHG_DT_LOC, CHG_TIME_ZONE, CHG_USR, VFY_DT_GMT, VFY_DT_LOC, VFY_USR, DIVISION, SALES_ADMIN, MF_CUST_CDE, CR_CTRL_OFCE, DEFAULT_INV_CCY, AUTOBILL_OVRRD_IND, AUTOBILL, AUTOPRT_OVRRD_IND, AUTOPRT, AVE_PYMT_DAY, TTL_INV_VAL, INHERIT_CR_TERM_ASSGMT, NORMALIZED_NME, OB_PYMT_OFCE, IB_PYMT_OFCE, CGO_SMART_ID, NCPF_CUST_ID, CPF_CUST_LEVEL_UUID, REC_UPD_DT)
    values (2.26283572796028E15, '6588125000', '6588125', 'S M Mooseen And Sons(PVT) Limited', 0, 1, '', to_date('15-03-2005 08:55:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('15-03-2005 14:25:00', 'dd-mm-yyyy hh24:mi:ss'), 'IST', 'licr2', to_date('19-02-2007 00:33:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('19-02-2007 06:03:00', 'dd-mm-yyyy hh24:mi:ss'), 'IST', 'BaseAdmi', to_date('15-03-2005 09:03:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('15-03-2005 14:33:00', 'dd-mm-yyyy hh24:mi:ss'), 'ninwasa', '', '', 'SRI06588125000', '463', '', 0, 0, 0, 0, null, null, 0, 'SMMOOSEENANDSONSPVTLIMITED', '', '', '', '6588125', 109966195050333, '14-JAN-09 02.49.28.325774 PM');
    commit;
    STEP 4: Create Oracle Text Index on Table CPF_CUSTOMER
    EXEC CTX_DDL.DROP_PREFERENCE('CTXCAT_IR2_STORAGE');
    EXEC CTX_DDL.CREATE_PREFERENCE('CTXCAT_IR2_STORAGE', 'BASIC_STORAGE');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'I_INDEX_CLAUSE', 'TABLESPACE COMMON_SM_INDX COMPRESS 2');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'I_INDEX_CLAUSE', 'TABLESPACE COMMON_SM_INDX COMPRESS 2');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'K_TABLE_CLAUSE', 'TABLESPACE COMMON_SM_INDX COMPRESS 2');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'R_TABLE_CLAUSE', 'TABLESPACE COMMON_SM_INDX COMPRESS 2');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'I_ROWID_INDEX_CLAUSE', 'TABLESPACE COMMON_SM_INDX storage (INITIAL 5M)');
    -- Define IR2_AB_LEXER to handle Special Characters.
    EXEC ctx_ddl.drop_preference('IR2_AB_LEXER');
    EXEC ctx_ddl.create_preference('IR2_AB_LEXER', 'BASIC_LEXER');
    EXEC ctx_ddl.set_attribute ('IR2_AB_LEXER', 'printjoins', ',_!$~%?=({;|&+-:/)}.@`^');
    --Drop Indexes
    drop index CPF_CUSTOMER_DIDX1;
    -- CATSEARCH INDEX on CPF_CUSTOMER.NAME     
    CREATE INDEX CPF_CUSTOMER_DIDX1 ON CPF_CUSTOMER(NAME) INDEXTYPE IS CTXSYS.CTXCAT PARAMETERS ('STORAGE CTXCAT_IR2_STORAGE STOPLIST CTXSYS.EMPTY_STOPLIST LEXER IR2_AB_LEXER');
    commit;
    STEP 5: Run Query to use Oracle Text Index on Base Table (works fine always. No issues seen so far)
    SELECT a.sap_id||'|'||a.name||'|' CUSTOMER_STR
    FROM cpf_customer a
    WHERE (catsearch(a.name, 'Mooseen'||'*', '')>0);
    CUSTOMER_STR
    6588125000|S M Mooseen And Sons(PVT) Limited|
    STEP 6: Run Query to use Oracle Text Index on View created under Table (get below error periodically)
    ORA-20000: Oracle Text error:
    DRG-10849: catsearch does not support functional invocation
    DRG-10599: column is not indexed
    But it works sometimes as in STEP 5 and returns 1 row. It is never consistent. We would like to
    provide access to this Table using View only. That is why we would like to get this query working consistently
    using View.
    Any help or tips would be greatly appreciated
    Thanks
    Auro

    This is a known issue with CTXCAT indexes. Sometimes the optimizer will "drive" the query off another index, and request results from the CTXCAT index on a row-by-row basis ("does the row with rowid NNNN satisfy this CATSEARCH condition?"). That's known as a functional lookup, and is not supported by the CTXCAT indextype.
    The only solution is to try to persuade the optimizer to use a different plan which does not use a functional lookup. This can be achieved by the use of hints, or sometimes by collecting or deleting statistics on the table.

Maybe you are looking for

  • Revaluation in Retail

    Dear all, I'm setting up the logistics extraction in a retail environment. For Revaluations, standard BC infosources & data sources are available. Can somebody please tell me what the difference is between 2LIS_03_UM and 2LIS_40_REVAL? Should I use b

  • They keep asking to see my card!

    it happened at Aeropostale...  After a sucessful payment I had to sign and she asked me for my card... So whats the point of apple pay?

  • Codec help needed - Quicktime to Final Cut

    I am having a problem in my workflow using Keynote, QuickTime and Final Cut Pro. I'm trying to create some presentations in Keynote, export them to Quicktime, then import them into Final Cut Pro and then export them into various formats. I want to ha

  • HT4528 What is the squiggly line next to the battery percentage mean?

    There is a symbol next to my battery percentage. Anybody know what it means?

  • HOWTO: get those files back from FileVault

    Hi, An update of OS X on my MacBook became unstable, and I was no longer able to get to a login screen. Panic rising .... My files (read: my research from the past two months) were locked with FileVault. (I now would recommend against keeping FileVau