XdbConfiguration.sql giving errors for package XDB_CONFIGURATION

Hi,
I am getting following errors(at the bottom) while running xdbConfiguration.sql before installing the demo.
I am logged in as sys user(sysdba) and using running
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
on Windows2000.
Is the wrong version of Oracle. Do I have have 9.2.4.0.
Thanks in advance for help.
Om Soni
Errors for PACKAGE BODY XDB_CONFIGURATION:
LINE/COL ERROR
51/6 PL/SQL: Statement ignored
51/54 PLS-00302: component 'DELETE_FORCE' must be declared
56/4 PL/SQL: SQL Statement ignored
56/20 PL/SQL: ORA-22970: name does not correspond to an object view

Hi ,
I upgraded to 9.2.0.4.0. The error still shows up while running the xdbConfiguration.sql.
The following errors show up:
Errors for PACKAGE BODY XDB_CONFIGURATION:
LINE/COL ERROR
51/6 PL/SQL: Statement ignored
51/54 PLS-00302: component 'DELETE_FORCE' must be declared
56/4 PL/SQL: SQL Statement ignored
58/9 PL/SQL: ORA-00942: table or view does not exist
I got rid of first two error by removing dbms_xdb.DELETE_FORCE from line
dbms_xdb.deleteResource(targetResource,dbms_xdb.DELETE_FORCE);
Last two error are at line :
select make_ref(DATABASE_SUMMARY,'DATABASE_SUMMARY')
into xmlref
from DATABASE_SUMMARY;
Looking at the script DATABASE_SUMMARY is not a object.
May be the script has a bug in it.
-Om

Similar Messages

  • Errors for PACKAGE BODY WWV_FLOW_CUSTOM_AUTH_SSO

    Hi All,
    Running the below package so I can configure SSO...running into the below error.
    Any help is appreciated
    SQL> @custom_auth_sso_902.plb;
    ...wwv_flow_custom_auth_sso
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WWV_FLOW_CUSTOM_AUTH_SSO:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    1/14 PLS-00304: cannot compile body of 'WWV_FLOW_CUSTOM_AUTH_SSO'
    without its specification

    You need to ask Apex related questions in the Apex forum.
    Include the 4 digit Oracle and Apex versions you are using when you post your problem.
    I assume that you have read how to implement SSO for Apex applications to be partner applications for Oracle App Server single sign-on authentication? If not, I suggest that you search http://tahiti.oracle.com for the relevant instructions. (cannot recall the exact manual reference - I did this 3 or 4 years ago myself)

  • Item Open Interface giving error for Org Assignment

    We ran the MTL_SYSTEMS_ITEMS_INTERFACE & loaded all the items at master level.
    We are having issues in setting at Org level. Cant figure out what the issue as only few records gets assigned & then garbage sets in for remaining records. An SR has been raised & the tech support representative was saying that UOM's are different at master & org levels. Never heard of this issue earlier. I have worked with UOM's different at Master/Org levels.
    The UOM's are different at Master & Org Level and in some cases the UOM are different for different Orgs. Attribute Control for Primary/Sec UOM is at Org level. The UOM's belong to the same UOM Class. There are standard conversions defined for all these UOMs.
    Any pointers for quick resolution ?

    Pl do not post duplicates - Item Open Interface giving error for Org Assignment

  • IW32- order-print is giving error for particular User.

    Dear Friends,
    IW32- order-print is giving error for particular User and output type.  Debugging authorization restricted on the system, hence I canu2019t trace out the problem. If anybody comes across such issues, please reply to the post.
    Thanks In Advance for your reply.
    Anil Dasari
    Thanks In Advance.

    Hi,
    Information about dump:
    1. User and Transaction:
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          06.05.2011 10:47:40
         MM Used. 13116304
         MM Free. 3639760
    User and Transaction
         Client.............. 700
         User................ "BLADEF01"
         Language key........ "N"
         Transaction......... "IW32 "
         Transactions ID..... "4DC387ECA12B684DE10000001A5B1803"
         Program............. "/MRSS/SAPLRSG_PM_ORDER"
         Screen.............. "SAPLCOIH 3000"
         Screen line......... 33
    Information on where terminated
         Termination occurred in the ABAP program "/MRSS/SAPLRSG_PM_ORDER" - in
          "/MRSS/RSG_MAINTAIN_MRS".
         The main program was "SAPLCOIH ".
         In the source code you have the termination point in line 441
         of the (Include) program "/MRSS/LRSG_PM_ORDERU04".
    2. Info. Where it got terminated.
    Information on where terminated
        Termination occurred in the ABAP program "/MRSS/SAPLRSG_PM_ORDER" - in
         "/MRSS/RSG_MAINTAIN_MRS".
        The main program was "SAPLCOIH ".
        In the source code you have the termination point in line 441
        of the (Include) program "/MRSS/LRSG_PM_ORDERU04".
    3. How to correct the error.
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "MESSAGE_TYPE_X" " "
        "/MRSS/SAPLRSG_PM_ORDER" or "/MRSS/LRSG_PM_ORDERU04"
        "/MRSS/RSG_MAINTAIN_MRS"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1.1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2.2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3.3. If the problem occurs in a problem of your own or a modified SAP.
    I have been searching for notes recently implemented for IW32.
    Thanks and Regards,
    ANIL DASARI

  • MySite – My Content Page is not working and giving error for existing customers

    We are using SharePoint 2010 and recently moved to SharePoint 2013. Central Admin run under SP 2013 and Content Db Front End run under SP 2010.
    After migration the MySite – My Content Page is not working and giving error for existing customers (http://mysite.ss.com/_layouts/MySite.aspx?Error=4705).
    New users (after migration) are able access the My Content and adding documents but old users can’t.
    Can anyone help me on the above?

    I think you might be using non claims web app in 2010, if that is the case, you 'd need to convert your existing users to claims users for which you can refer to http://technet.microsoft.com/en-us/library/gg251985(v=office.15).aspx
    to check if your exisiting users are claims or classic users , try 
    get-spuser -web http://mysite.ss.com -limit all
    check in the output if you see the claims GUID in form of user names like i:0#.w|domain\username, if yes, they claims users if you just see Domain\username, you want those users to be converted to calims.
    i'd need more details to be specific about my answer but aforementioned scenario is most common of all, hope this helps, 
    Thanks, Noddy

  • Execute SQl Task Error SSIS Package

    Hi all,
    I`m using for each loop container in my package to grab the file name from the source path. I have created 2 vairables
    FilePath and SourceFolder
    I`m using execute sql task inside the container and this is my query
    Insert into [dbo].[DCA_FF_TEST] (File_Name,File_Date) SELECT File_name = ?,
    File_Date = GetDate()
    Please not the Table I am trying to insert has more columns but at this stage I dont need them.
    When i execute the task I get an error
    [Execute SQL Task] Error: Executing the query "
    INSERT INTO   [dbo].[DCA_FF_TEST] ([File_Name],[F..." failed with the following error: "The statement has been terminated.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters
    not set correctly, or connection not established correctly.
    Can someone point me in the right direction? Am I missing anything?
    Resultset property Set to None
    Parameter Mapping: Variablename: FilePath , Direction: Input, datatype : Varchar, Parametername: 0, ParameterSize: 100.
    I`ve checked the connection as well it works.
    FM

    Did you try
    Insert into  [dbo].[DCA_FF_TEST] (File_Name,File_Date)
    SELECT ?, GetDate()
    Or
    Insert into  [dbo].[DCA_FF_TEST] (File_Name,File_Date) VALUES (?, GetDate())
    A Fan of SSIS, SSRS and SSAS

  • Top N query giving error for oracle 8.0.6

    Dear All,
    We are executing this query SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM (SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM PMBPITS.PITS_UNITY WHERE STATUS = '01' ORDER BY PMTIMESTAMP) WHERE ROWNUM < 20
    on oracle 8.0.6 but this is giving the following error
    ora - 00907 missing right parenthesis error
    1. Is it that in the inner select we cannot use order by and where clause together.
    2. We also found that if we remove order by from inner select then the query is not giving error
    pls help . points will be awarded

    Hi,
    what ever the Aman said is correct. You check this is supported in 8.1.5, SQL allows you to embed the ORDER BY clause in a subquery and place the ROWNUM condition in the top-level query;
    'Top-N query' is a ORACLE 8i feature which is supported in SQL. However,
    Bug:855720 states the following:
    "PL/SQL does not support top-N queries (ORDER BY in SUBSELECT/SUBQUERY
    or VIEW. Since this feature is available in SQL, but not in PL/SQL,
    it has been logged as a Bug that will be fixed in 8.1.6."
    - Pavan Kumar N

  • OdiSqlUnload giving error for network location specified

    Hi,
    I have been trying to use OdiSqlUnload tool to create text files on Network machine.
    But it is giving following error
    oracle.odi.oditools.OdiToolInvalidParameterException: Error while setting parameters on tool
         at com.sunopsis.dwg.function.SnpsFunctionBase.getCoreOdiTool(SnpsFunctionBase.java:607)
    So as per error it is saying parameters specified are incorrect.
    Let me also paste for you Code i have used.
    OdiSqlUnload -FILE= \\10.161.102.182\Interfaces\OMP\BUR\snd\RBSIT_#SAP_Filename.txt -DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%> "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" "-FILE_FORMAT=FIXED" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    SELECT * FROM ompodi.start_record
    As here i have specified network location, does it mean i cannot create files on ntwork machine directly?
    If so then is there any way to move files to network machine location from host computer?
    Also i would like to know any tool for deleting files , preferably network location.
    Thanks and Regards,
    Mahesh

    IT WAS GIVING ERROR BECAUSE IN SOURCE COMMAND I HAVENT SPECIFIED SOURCE TECNHOLOGY AND LOGICAL SCHEMA.
    ALSO IN ABOVE COMMAND THERE IS NO NEED TO WRITE QUERY WORD EXPLICITELY.
    SO IT SHOULD BE AS
    OdiSqlUnload -FILE=D:\Patrol\kaname2alert.txt -DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%> "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" "-FILE_FORMAT=FIXED" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    select 'FAILURE ',trim(nvl(substr(substr( PACKAGE_NAME||',', 1, instr(PACKAGE_NAME,',')-1 ),7),'Error Due to missing scenario or Any other unlogged error')) Package_Name,to_char(FAILURE_TIMESTAMP,'DD-mm-yyyy HH24:MI:SS') Execution_Time from <%=odiRef.getSchemaName("OMP","W")%>.ERROR_MESSAGES order by failure_timestamp desc
    HOPE IT WOULD HELP SOMEONE.
    SO POSTING IT.

  • Bypass Prerequisits Check errors for packages

    Trying to install 11gR2 on a Desktop PC with Debian 'squeeze' (ver. 6) OS . Installed all required packages suggested. However, am now stopped at the Prerequisite Checks mainly because all the package versions listed as errors (29 packages) are more current than those require by the install. I was hoping not to go back, download and install older versions of the packages. Is there a way to bypass these errors?

    Hi;
    Trying to install 11gR2 on a Desktop PC with Debian 'squeeze' (ver. 6) OS . Installed all required packages suggested. However, am now stopped at the Prerequisite Checks mainly because all the package versions listed as errors (29 packages) are more current than those require by the install. I was hoping not to go back, download and install older versions of the packages. Is there a way to bypass these errors?Debian is not supported, its mean you could hit many error message during installation and also after installation, i suggest use OEL distro(free) instead of Debian
    Regard
    Helios

  • IDOMServices Parse giving error for non-alpha numeric characters in content

    Hi All,
    Using Adobe InDesign CS4 SDK 557, I want to create IIDXMLDOMDocument * from a xml stored in a PMString variable.
    I used the following code to parse the xml:-
    InterfacePtr<IK2ServiceRegistry> servReg(GetExecutionContextSession(), UseDefaultIID());
    InterfacePtr<IK2ServiceProvider> provider(servReg->QueryServiceProviderByClassID (kDOMParserService, kDOMParserServiceBoss )); 
    InterfacePtr<IDOMServices> domService( provider, UseDefaultIID() ); 
    if(!domService)
        break;
    std::string stdString = myXMLString.GetPlatformString();
    const char * buff = stdString.c_str();
    InterfacePtr<IPMStream> pmStream(StreamUtil:: CreatePointerStreamRead( (char *)buff, stdString.size()));
    IIDXMLDOMDocument * parsedDom = domService->Parse( pmStream );
    -  Now the problem is when myXMLString have some special character like “0x27” , “0x14” etc. then IDOMServices::Parse fails.
    -  I tried replacing these characters with “&#x27;”, “&#x14;” but still IDOMServices::Parse fails.
    I also tried to used ISAXServices::ParseStream, but it also gives error for the same character.
    Also tried setting ISAXParserOptions::SetAbortAfterWarning(kFalse), but not changed in result.
    Please let me know if I am missing something.
    Thanks,
    Jitendra Kumar Singh

    Hi Nitika Saini,
    Please let me know what's your patch level of BI 7 system.
    I am also facing problem with transformations, I didn't see any transper routines in my system for 0IC_C03 - 2LIS_03_BX, LIS_03_BF, 2LIS_03_UM.
    Here, my BI 7 patch level BI content 8 and BW pathc 16.
    Thanks,
    Chandra

  • Dynamic Sql giving error

    Hi,
    I am creating a BIP report and it is giving an issue on generating Data XML in OTM application.
    The Report XML is simple query and taking input parameter for shipment_gid, the parameter is handled in SET_LEXICAL_PARAMETER to add where clause and append “=” with the passed value of parameter &P_SHIPMENT_GGID.
    When I try to generate data XML in Query template, it is giving below error
    java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
    I have tried to change parameter in many ways in SET_LEXICAL_PARAMETERS, but still getting error. Please check the XML and package and advice.
    XML
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <dataTemplate name="pri_sec_ocean_fcl_booking_view" defaultPackage="pri_sec_ocean_fcl_booking_view" version="1.0">
    <properties>
    <property name="xml_tag_case" value="upper" />
    </properties>
    <parameters>
    <parameter name="P_GL_USER" dataType="character" defaultValue="ULE.ADMIN" />
    <parameter name="P_ROLE_ID" dataType="character" defaultValue="ADMIN" />
    <parameter name="P_L_SHIPMENT_GGID" dataType="character" defaultValue="1=1" />
    </parameters>
    <lexicals />
    <dataQuery>
    <sqlStatement name="Q_1">
    <![CDATA[SELECT
                             CT.FIRST_NAME||' '||CT.LAST_NAME||' Email '||CT.EMAIL_ADDRESS||'PHONE1 '||CT.PHONE1||'PHONE2 '||CT.PHONE2 BOOKER_ID
                   FROM      SHIPMENT_INVOLVED_PARTY SH,
                             CONTACT CT
                             &P_L_SHIPMENT_GGID
                   AND        SH.INVOLVED_PARTY_QUAL_GID               =     'CARRIER_BOOKING_OFFICE'
                   AND          SH.INVOLVED_PARTY_CONTACT_GID          =     CT.CONTACT_GID
       ]]>
    </sqlStatement>
    </dataQuery>
    <dataTrigger name="afterParameterFormTrigger" source="pri_sec_ocean_fcl_booking_view.afterpform" />
    <dataTrigger name="beforeReportTrigger" source="pri_sec_ocean_fcl_booking_view.beforereport" />
    <dataStructure>
    <element name="P_L_SHIPMENT_GGID" dataType="varchar2" value="pri_sec_ocean_fcl_booking_view.P_L_SHIPMENT_GGID" />
    <group name="G_1" dataType="varchar2" source="Q_1">
    <element name="BOOKER_ID" dataType="varchar2" value="BOOKER_ID"/>
    </group>
    </dataStructure>
    <dataTrigger name="afterReportTrigger" source="pri_sec_ocean_fcl_booking_view.afterreport()" />
    </dataTemplate>
    Package
    create or replace PACKAGE pri_sec_ocean_fcl_booking_view IS
    DESNAME VARCHAR2(200);
    DESTYPE VARCHAR2(100);
    DESFORMAT VARCHAR2(200):='PDF';
    P_GL_USER VARCHAR2(128);
    P_ROLE_ID VARCHAR2(1000);
    P_DATABASE_CONN_STRING VARCHAR2(50);
    P_FILE VARCHAR2(100);
    P_PDF_HYPERLINK VARCHAR2(1000);
    P_REPORT_GID VARCHAR2(101);
    P_XML_HYPERLINK VARCHAR2(1000);
    P_DOMAIN VARCHAR2(50);
    P_KEEP_FILE_FLAG VARCHAR2(1);
    P_LANGUAGE_ID VARCHAR2(30);
    P_RPT_JOB NUMBER;
    P_FORMAT VARCHAR2(40);
    P_DATE_FORMAT VARCHAR2(15);
    P_TIME_FORMAT VARCHAR2(32767);
    P_REPORT_CALL VARCHAR2(1000);
    P_GLOG_USER VARCHAR2(30);
    P_GLOG_USER_PASS VARCHAR2(30);
    P_REPORT_PHYSICAL_NAME VARCHAR2(100) := 'PRI_SEC_OCEAN_FCL_BOOKING_VIEW';
    P_WITHIN_REPORT VARCHAR2(1);
    P_REPORTS_OUT_DIR VARCHAR2(100);
    P_REPORTS_SERVER VARCHAR2(100);
    P_SHIP_START_RANGE DATE;
    P_SHIP_END_RANGE DATE;
    P_GROUP_BY VARCHAR2(2000);
    P_REP_USERID VARCHAR2(100);
    P_L_SHIPMENT_GGID VARCHAR2(32766) := '1=1';
    P_L_CONTAINER_NUMBER_WHERE VARCHAR2(32766) := '1=1';
    P_H_CONTAINER_NUMBER VARCHAR2(32766);
    FUNCTION P_FORMATVALIDTRIGGER(DESTYPE IN VARCHAR2) RETURN BOOLEAN;
    FUNCTION BEFOREREPORT RETURN BOOLEAN;
    FUNCTION AFTERREPORT RETURN BOOLEAN;
    FUNCTION BEFOREPFORM RETURN BOOLEAN;
    FUNCTION AFTERPFORM RETURN BOOLEAN;
    FUNCTION P_SHIP_END_RANGEVALIDTRIGGER RETURN BOOLEAN;
    FUNCTION VALUE_ENTERED(LEX_NAME IN VARCHAR2) RETURN BOOLEAN;
    PROCEDURE SET_LEXICAL_PARAMETERS;
    END PRI_SEC_OCEAN_FCL_BOOKING_VIEW;
    create or replace
    PACKAGE BODY PRI_SEC_OCEAN_FCL_BOOKING_VIEW IS
    FUNCTION P_FORMATVALIDTRIGGER(DESTYPE IN VARCHAR2) RETURN BOOLEAN IS
    BEGIN
    IF DESTYPE = 'Cache' AND P_WITHIN_REPORT = 'N' THEN
    IF P_FORMAT = 'View PDF' THEN
    DESFORMAT := 'PDF';
    ELSIF P_FORMAT = 'View HTML' THEN
    DESFORMAT := 'HTMLCSS';
    END IF;
    END IF;
    RETURN (TRUE);
    END P_FORMATVALIDTRIGGER;
    FUNCTION BEFOREREPORT RETURN BOOLEAN IS
    BEGIN
    REPORTS_LIBRARY.SET_VPD(P_GL_USER);
    /*SRW.SET_BEFORE_REPORT_HTML(SRW.TEXT_ESCAPE
    ,BUILD_HTML_HEADER)*/NULL;
    /*SRW.SET_AFTER_REPORT_HTML(SRW.TEXT_ESCAPE
    ,BUILD_HTML_FOOTER(P_REPORT_GID
    ,P_LANGUAGE_ID))*/NULL;
    RETURN (TRUE);
    END BEFOREREPORT;
    FUNCTION AFTERREPORT RETURN BOOLEAN IS
    BEGIN
    REPORTS_LIBRARY.SET_VPD(P_GL_USER);
    IF DESTYPE = 'File' THEN
    RPT_GENERAL.P_INSERT_LOG(P_FILE
    ,P_REPORT_GID
    ,P_RPT_JOB
    ,P_GL_USER
    ,P_DOMAIN);
    END IF;
    RETURN (TRUE);
    END AFTERREPORT;
    FUNCTION BEFOREPFORM RETURN BOOLEAN IS
    BEGIN
    REPORTS_LIBRARY.SET_VPD(P_GL_USER);
    /*SRW.SET_AFTER_FORM_HTML(SRW.TEXT_ESCAPE
    ,BUILD_AFTER_FORM_HTML)*/NULL;
    RETURN (TRUE);
    END BEFOREPFORM;
    FUNCTION AFTERPFORM RETURN BOOLEAN IS
    V_STRING VARCHAR2(32750);
    WS_DATE VARCHAR2(30);
    V_BOOLEAN BOOLEAN;
    BEGIN
    REPORTS_LIBRARY.SET_VPD(P_GL_USER);
    V_BOOLEAN := REPORTS_LIBRARY.GET_USER_PREFERENCES(P_GL_USER,P_ROLE_ID
    ,P_DATE_FORMAT
    ,P_TIME_FORMAT
    ,P_LANGUAGE_ID);
    V_STRING := RTRIM(REPORTS_LIBRARY.BUILD_LOCALIZATION_STRING(P_REPORT_GID
    ,P_LANGUAGE_ID));
    /*SRW.APPLY_DEFINITION*/NULL;
    IF P_KEEP_FILE_FLAG = 'Y' THEN
    WS_DATE := '_' || TO_CHAR(SYSDATE
    ,'YYMMDDHHMI');
    END IF;
    P_FILE := LOWER(TRANSLATE(TRANSLATE(P_DOMAIN || '_' || P_REPORT_GID
    ,'_') || P_RPT_JOB || WS_DATE || '.' || DESFORMAT);
    DESNAME := LOWER(P_REPORTS_OUT_DIR || '/' || P_FILE);
    /*SRW.GET_REPORT_NAME(P_REPORT_PHYSICAL_NAME)*/NULL;
    P_REPORT_PHYSICAL_NAME := RTRIM(P_REPORT_PHYSICAL_NAME);
    P_PDF_HYPERLINK := P_REPORT_CALL || '?' || P_REP_USERID || ' server=' || P_REPORTS_SERVER || ' report=' || P_REPORT_PHYSICAL_NAME || ' destype=CACHE desformat=PDF p_gl_user=' || P_GL_USER || ' p_within_report=Y' || ' P_REPORT_GID=' || P_REPORT_GID || ' p_l_time_period=' || ' p_l_named_range=' || ' p_rep_userid=' || P_REP_USERID;
    P_XML_HYPERLINK := P_REPORT_CALL || '?' || P_REP_USERID || ' server=' || P_REPORTS_SERVER || ' report=' || P_REPORT_PHYSICAL_NAME || ' destype=CACHE desformat=XML p_gl_user=' || P_GL_USER || ' p_within_report=Y' || ' P_REPORT_GID=' || P_REPORT_GID || ' p_l_time_period=' || ' p_l_named_range=' ||' p_rep_userid=' || P_REP_USERID;
    SET_LEXICAL_PARAMETERS;
    RETURN (TRUE);
    END AFTERPFORM;
    FUNCTION P_SHIP_END_RANGEVALIDTRIGGER RETURN BOOLEAN IS
    BEGIN
    RETURN (TRUE);
    END P_SHIP_END_RANGEVALIDTRIGGER;
    FUNCTION VALUE_ENTERED(LEX_NAME IN VARCHAR2) RETURN BOOLEAN IS
    BEGIN
    IF LEX_NAME > ' ' AND LEX_NAME <> '1=1' AND LEX_NAME IS NOT NULL THEN
    RETURN (TRUE);
    ELSE
    RETURN (FALSE);
    END IF;
    END VALUE_ENTERED;
    PROCEDURE SET_LEXICAL_PARAMETERS IS
    PLS_ORIG_P1 VARCHAR2(32766);
    BEGIN
    P_L_SHIPMENT_GGID := REPLACE(P_L_SHIPMENT_GGID
    ,'~'
    IF VALUE_ENTERED(P_L_SHIPMENT_GGID) THEN
    P_L_SHIPMENT_GGID := 'WHERE SH.P_L_SHIPMENT_GGID ' || REPORTS_LIBRARY.GET_FILTER_CONDITION(P_L_SHIPMENT_GGID,NULL,'Y');
    ELSE
    P_L_SHIPMENT_GGID := '1=1';
    END IF;
    END SET_LEXICAL_PARAMETERS;
    END PRI_SEC_OCEAN_FCL_BOOKING_VIEW;
    Thanks,
    Dev

    Hi Dev,
    I am not aware that you could change the value of P_L_SHIPMENT_GGID this way.
    One quick way to test that will be to set it to default to something like 'where 1=2' in your concurrent program and see if it runs but produce no results.
    If it indeed does run, then it confirms my thinking.
    You can then do something like this;
    Try creating a global variable in your pri_sec_ocean_fcl_booking_view package header, say G_L_SHIPMENT_GGID.
    Calculate your lexical string and put it in G_L_SHIPMENT_GGID.
    Reference G_L_SHIPMENT_GGID in your query
    FROM SHIPMENT_INVOLVED_PARTY SH,
    CONTACT CT
    &G_L_SHIPMENT_GGID
    .......Kofi

  • Dynamic sql giving error --please help

    Hi ,
    I have written the following code --
    CREATE OR REPLACE FUNCTION tabcount (
    tab IN VARCHAR2, field IN VARCHAR2 ,whr IN VARCHAR2)
    RETURN INTEGER
    IS
    retval INTEGER;
    BEGIN
    DBMS_OUTPUT.PUT_LINE ('whr' ||whr);
    DBMS_OUTPUT.PUT_LINE ('field1' ||field);
    EXECUTE IMMEDIATE
    ' SELECT COUNT(*) FROM ' || tab ||
    ' WHERE ' || field || 'like '/'%'||whr ||'%'/''
    INTO retval;
    DBMS_OUTPUT.PUT_LINE ('countis!' ||retVal);
    RETURN retval;
    END tabcount;
    It is giving the following error--
    ORA-00920: invalid relational operator
    ORA-06512: at "TABCOUNT", line 10
    ORA-06512: at line 2
    I am not sure how to enclose the like operator within the single quotes.Double quotes is not working for me.
    Thanx in advance,
    Ira

    Offhand, it looks like you may still have some syntax problems -- probably need a blank space before the WHERE --maybe some other stuff too.
    What you need to do to debug it is this (and this works just about anytime you are having trouble with dynamic SQL):
    1. store the sql statement in a variable.
    2. Use DBMS_OUTPUT to display your select statement BEFORE calling execute immediate.
    3. copy/paste that select into a separate window and run/debug it.
    4. Once you know what is wrong with that statement, go back and fix the code accordingly.
    Have fun,
    --scott                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Error for package com.sap.aii.mapping.lookup

    Hi All
    I am writing a code for the DB lookup. When I import the package in the Message
    Mapping (Advance Function) I am getting an Error.
    C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map6af6f7d1335111dc9b51000c2967ead8/source/com/sap/xi/tf/_MM_File2JMS_.java:3: package com.sap.aii.mapping.lookup does not exist
    import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.;import com.sap.aii.mapping.lookup.; ^
    C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map6af6f7d1335111dc9b51000c2967ead8/source/com/sap/xi/tf/_MM_File2JMS_.java:57: cannot resolve symbol symbol : class Channel location: class com.sap.xi.tf._MM_File2JMS_ Channel channel = null;
    C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map6af6f7d1335111dc9b51000c2967ead8/source/com/sap/xi/tf/_MM_File2JMS_.java:58: cannot resolve symbol symbol : class DataBaseAccessor location: class com.sap.xi.tf._MM_File2JMS_ DataBaseAccessor accessor = null; ^
    Thanks
    Farooq.

    Hey satish I am getting same Error:
    C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7801d381335311dc8660000c2967ead8/source/com/sap/xi/tf/_MM_File2JMS_.java:3: package com.sap.aii.mapping.lookup does not exist import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.;import com.sap.aii.mapping.lookup.;import java.io.*; ^ C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7801d381335311dc8660000c2967ead8/source/com/sap/xi/tf/_MM_File2JMS_.java:57: cannot resolve symbol symbol : class Channel location: class com.sap.xi.tf._MM_File2JMS_ Channel channel = null; ^ C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7801d381335311dc8660000c2967ead8/source/com/sap/xi/tf/_MM_File2JMS_.java:58: cannot resolve symbol symbol : class DataBaseAccessor location: class com.sap.xi.tf._MM_File2JMS_ DataBaseAccessor accessor = null; ^ 3 errors

  • Giving error for NearCache Configuration-java.lang.IllegalArgumentException

    Hi,
    I tried to use near cache topology but it is giving the below error(I am unable to masp the near cache)
    java.lang.IllegalArgumentException: Unresolved reference to scheme:
    example-local
    at com.tangosol.net.DefaultConfigurableCacheFactory.resolveScheme(DefaultConfigurableCacheFactory.java:840)
    at com.tangosol.net.DefaultConfigurableCacheFactory.resolveScheme(DefaultConfigurableCacheFactory.java:893)
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:130
    6)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:294)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:204)
    at com.tangosol.coherence.component.application.console.Coherence.doCache(Coherence.CDB:18)
    at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:209)
    at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:37)
    at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
    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:597)
    at com.tangosol.net.CacheFactory.main(CacheFactory.java:827)
    I given the below configuration in the cache server side....
    <caching-scheme-mapping>
         <cache-mapping>
    <cache-name>NearCache</cache-name>
    <scheme-name>example-near</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <near-scheme>
         <scheme-name>example-near</scheme-name>
         <front-scheme>
         <local-scheme>
         <scheme-ref>example-local</scheme-ref>
         </local-scheme>
         </front-scheme>
    <back-scheme>
         <remote-cache-scheme>
         <scheme-ref>example-remote</scheme-ref>
         </remote-cache-scheme>
    </back-scheme>
    </near-scheme>
    <remote-cache-scheme>
    <scheme-name>example-remote</scheme-name>
    <service-name>ExtendTcpCacheService</service-name>
    <initiator-config>
    <tcp-initiator>
    <remote-addresses>
    <socket-address>
    <address>localhost</address>
    <port>9099</port>
    </socket-address>
    </remote-addresses>
    </tcp-initiator>
    <outgoing-message-handler>
    <request-timeout>30s</request-timeout>
    </outgoing-message-handler>
    </initiator-config>
    </remote-cache-scheme>
    </caching-schemes>
    PLease provide the configurastion for the nearcache topology....
    Thank you.

    You are missing the example-local
    <local-scheme>
    <scheme-ref>example-local</scheme-ref>
    </local-scheme>
    for example,
    <local-scheme>
          <scheme-name>example-local</scheme-name>
          <eviction-policy>HYBRID</eviction-policy>
          <high-units>{back-size-limit 0}</high-units>
          <unit-calculator>BINARY</unit-calculator>
          <expiry-delay>{back-expiry 1h}</expiry-delay>
    </local-scheme>Examples can be found in the coherence.jar that contains coherence-cache-config.xml

  • Query running OK in SQL, giving error in form trigger.

    Hi guys,
    i am in a strange situation. I have a table.
    EMP_SCALES with fields and datatype.
    PAY_SCALE BASIC_SAL
    VI 8000
    VI-1 10000
    Now when on SQL PROMPT i try to find out BASIC_SAL in the table EMP_SCALES i am writing this query and its working.
    SQL>select basic_sal from emp_scales where pay_scale like('%VI-1%');
    Now i have to use the same query in when-button-press event of a button in my form.
    Code:
    DECLARE
    basic_sal_emp number;
    curr_emp_scale := :BLOCK.MYFIELD;
    BEGIN
    SELECT BASIC_SAL
    INTO BASIC_SAL_EMP
    FROM EMP_SCALES
    WHERE PAY_SCALE LIKE ('%curr_emp_scale%');          
    END;
    (Where :BLOCK.MYFIELD consist EMP_SCALE and its datatype is also char)
    this query retrieves no record... and gives error.
    ORA-01403 which says..
    Cause: In a host language program, all records have been fetched. The return code from the fetch was +4, indicating that all records have been returned from the SQL query.
    Action: Terminate processing for the SELECT statement
    HOW CAN I RESOLVE MY PROBLEM?????
    Plis help
    Imran Baig

    Dur. Everyone seems to have overlooked the import of the error message: ORA-01422. This is thrown whenever an exact fetch returns more than one row.
    The code works when the value 'VI-1' is hard-coded because there's only one row like that. However, when a field is used the query is obviously returning more than one row. For instance, if :EMP_INCREMENTS.CUR_SCALE is empty (NULL) then the query will return all rows (which is more than one). The same applies if the field has a value of 'VI'.
    If you want to use INTO then the query must either return exactly one row or else the trigger needs to handle multiple returns.
    Cheets, APC

Maybe you are looking for