How to use the generated SQL of "Recommendation"

Dear Experts,
I am using KXEN recommendation function. After trained the model, I expose the result in form of HANA SQL. However, I am really have no idea how to make this SQL runnable because there are some subqueries like:
FROM $Dataset "SPACEIN"
  LEFT OUTER JOIN (SELECT * FROM  WHERE "GRAPH_NAME" = 'Transactions') "PRODUCTS" ON ("PRODUCTS"."KXNODEFIRST" = "SPACEIN".MemberID)
  LEFT OUTER JOIN (SELECT * FROM  WHERE "GRAPH_NAME" = 'Product') "RULES" ON ("PRODUCTS"."KXNODESECOND" = "RULES"."KXNODESECOND")
  LEFT OUTER JOIN (SELECT * FROM  WHERE "GRAPH_NAME" = 'Transactions') "NOTIN" ON ("RULES"."KXNODESECOND_2" = "NOTIN"."KXNODESECOND") AND ("NOTIN"."KXNODEFIRST" = "SPACEIN".MemberID)
Please pay attention to the red parts. While $Dataset, I assume it should be the data source which is used to train the model, but how to handle the "GRAPH" parts(the next 3 subqueries)? There are something missing after "FROM" clause, what should I fill in here? why the XKEN will generate sucn incomplete codes?
Thanks for your help!

Hi Richard,
To apply a recommendation model, you first need to save your model in your database. (saving the model in the database for such models and for what you want to do is mandatory).
Once you saved it, you will see many tables starting with "Kx" : KxInfos, KxLinks, KxNodes...
These tables contains information on the nodes available in the data used, on the links between products.
Now, if you generate the SQL code for Hana, the name of your KxLinks table should now be used in the SQL code.
When prompted for $Dataset and $Key, you should specify in place of $Dataset the name of the table on which you want to apply your model. In place of $Key, you should enter the name of the key of this table (e.g. UserId).
In my case $Dataset =>KAR_UniqueCustomers and $Key=>UserID
My generated code looks like this :
FROM KAR_UniqueCustomers "SPACEIN"
LEFT OUTER JOIN (SELECT * FROM KxLinks1 WHERE "GRAPH_NAME" = 'Transactions') "PRODUCTS" ON ("PRODUCTS"."KXNODEFIRST" = "SPACEIN".UserID)
LEFT OUTER JOIN (SELECT * FROM KxLinks1 WHERE "GRAPH_NAME" = 'ItemPurchased') "RULES" ON ("PRODUCTS"."KXNODESECOND" = "RULES"."KXNODESECOND")
Note that your application table must contain:
- A column with the same name as your users identifier in the training dataset. It contains the list of distinct users (stricly 1 row for each customer id)
- A column with the same name as your products name in the training dataset. It can contain the name of the same product for all customers.
I hope you'll make it work !
Armelle

Similar Messages

  • How to examine the generated SQL statement in Receiver JDBC Adapter

    I have been searching this forum how to display te generated sql statement (by the jdbc receiver adapter).
    The only suggestion is to use RWB, but I was unable to find any details about how to do so.
    Any help is appreciated

    Hi,
    To add, u can see the SQL Statements in Audit log of RWB.
    Select Message Monitoring-> Adapter Engine. choose ur entry and click on Details option button, u can see the SQL Statements in Audit Log.
    Regards,
    Sudharshan
    Message was edited by:
            Sudharshan Aravamudan

  • How to use the oem_exec_template.sql

    hi,guys
    Env
    OWB 9.2.0.2.8
    Oracle DB 9.2.0.1
    OEM 9.0.1
    I've deployed a mapping SRC_TO_TAR. And I've successfully run this mapping in owb.
    But when I try to use the oem_exec_template.sql to invoke in sqlplus, the script always tells me 'Taks not found'.
    I use the following command to invoke the oem_exec_template.sql:
    sqlplus owb_runtime_access/dw@dwdb @oem_exec_template.sql owb_runtime owb_target PLSQL SRC_TO_TAR "," ","
    the result is
    Connected to:
    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
    Session altered.
    Role set.
    Stage 1: Decoding Parameters
    | location_name=owb_target
    | task_type=PLSQL
    | task_name=SRC_TO_TAR
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are
    correct.
    ORA-06512: at line 261
    Could any one here tell me how to correctly use the oem_exec_tempalte.sql?
    thanks very much.
    Frank

    I login in as runtime owner and runtime access user and run the sql:
    select * from all_objects where owner = 'OWB_TARGET'
    I can't find the mapping that I have already deployed.
    is this the reason why it always retrun "Task not found"
    who knows?
    urgent
    thanks
    Frank

  • Would like instructions on how to use the generator

    Help,
    I have been assigned the task of creating DTDs for our project.
    I have had no previous exposure to JAVA or XML or any other
    projects relating to the web. I have read some material and
    think I have come up with a DTD (enclosed below). I am trying to
    parse it and validate it but am unsure of how to accomplish
    this.
    Any Help anyone can give me would be greatly appreciated.
    Bill Kennedy
    DTD:
    <?XML version='1.0' standalone='no' ?>
    <!DOCUMENT Cargo_Declaration[!ELEMENT
    ITN(Goods_Status,International_Transaction_Number,
    ITN_Version_Number,Message_Type_Code,International_Transaction_Ty
    pe?,
    Declaration_Type_Code?,Process_Indicator_Code?,Message_Reference_
    Nbr?,
    Acknowledgement_Indicator?,Filed_Date_Time?,Received_Date_Time?,F
    iler?,Shipper?,
    Broker?,Importer?,Exporter?,Cargo_Notify_Party_Name?,Cargo_Notify
    PartyPhone?,
    Hazardous_Material_Indicator?,Accounting_Date?,Elected_Entry_Date
    Estimated_Departure_Date?,Duty_Calc_Requested_Indicator?,Port_Of_
    Accounting?,
    Port_Of_US_Export?,Total_Declared_Customs_Value?,Bond_Type_Code?,
    Surety_Company?,
    Customs_Entry_Number?,Trader_Reference_Number?,Probill_Number?,Re
    lease_Date?,
    Electronic_Signature?,Line_Item*,Goods_Notice*,ITN_Revenue*,Inter
    mediate_Country*,
    Filed_ITN*)>
    <!ELEMENT Goods_Notice (#PCDATA)>
    <!ELEMENT International_Transaction_Number (#PCDATA)>
    <!ELEMENT ITN_Version_Number (#PCDATA)>
    <!ELEMENT Message_Type_Code (#PCDATA)>
    <!ELEMENT International_Transaction_Type (#PCDATA)>
    <!ELEMENT Declaration_Type_Code (#PCDATA)>
    <!ELEMENT Process_Indicator_Code (#PCDATA)>
    <!ELEMENT Message_Reference_Number (#PCDATA)>
    <!ELEMENT Acknowledgement_Indicator (#PCDATA)>
    <!ELEMENT Filed_Date_Time (#PCDATA)>
    <!ELEMENT Received_Date_Time (#PCDATA)>
    <!ELEMENT Filer (#PCDATA)>
    <!ELEMENT Shipper (#PCDATA)>
    <!ELEMENT Broker (#PCDATA)>
    <!ELEMENT Importer (#PCDATA)>
    <!ELEMENT Exporter (#PCDATA)>
    <!ELEMENT Cargo_Notify_Party_Name (#PCDATA)>
    <!ELEMENT Cargo_Notify_Party_Phone (#PCDATA)>
    <!ELEMENT Hazardous_Material_Indicator (#PCDATA)>
    <!ELEMENT Accounting_Date (#PCDATA)>
    <!ELEMENT Elected_Entry_Date (#PCDATA)>
    <!ELEMENT Estimated_Departure_Date (#PCDATA)>
    <!ELEMENT Duty_Calc_Requested_Indicator (#PCDATA)>
    <!ELEMENT Port_Of_Accounting (#PCDATA)>
    <!ELEMENT Port_Of_US_Export (#PCDATA)>
    <!ELEMENT Total_Declared_Customs_Value (#PCDATA)>
    <!ELEMENT Bond_Type_Code (#PCDATA)>
    <!ELEMENT Surety_Company (#PCDATA)>
    <!ELEMENT Customs_Entry_Number (#PCDATA)>
    <!ELEMENT Trader_Reference_Number (#PCDATA)>
    <!ELEMENT Probill_Number (#PCDATA)>
    <!ELEMENT Release_Date (#PCDATA)>
    <!ELEMENT Electronic_Signature (#PCDATA)>
    <!ELEMENT
    Line_Item(LI_Instance_Id,LI_Line_Number,LI_Controlling_Commrcl_Do
    c?,
    LI_Controlling_Commrl_Doc_Type?,LI_Commodity_Description?,LI_Coun
    try_Final_Destination?,
    LI_Country_Of_Origin?,LI_Country_Of_Production_FDA?,LI_Country_Of
    _Export?,
    LI_State_Prov_Final_Destination?,LI_State_Prov_Of_Origin?,LI_Stat
    e_Prov_Of_Export?,
    LI_Foreign_Trade_Zone?,LI_Deliver_To_Party?,LI_Intermed_Deliver_T
    o_Party?,
    LI_Producer_Manufacturer?,LI_Agency_Spnsoring_Cargo?,LI_Purchaser
    _Buyer?,
    LI_Seller_Vendor?,LI_Relationship_Indicator?,LI_Foreign_Military_
    Sales_Ind?,
    LI_Basis_Of_Appraisement_Code?,LI_Currency_Code?,LI_Unit_Price_Am
    ount?,
    LI_Export_Value?,LI_Declared_Customs_Value_Amt?,LI_Gross_Weight?,
    LI_Gross_Weight_Unit_Of_Msr?,LI_Unit_Qty1?,LI_Unit_Of_Measure1?,L
    I_Addl_Qty_Indicator?,
    LI_Part_Number?,LI_Serial_Number?,LI_Lot_Number?,LI_Batch_Number?
    ,LI_VIN?,
    LI_Addl_Id_Indicator?,LI_Product_Code?,LI_Product_Code_FDA?,LI_Ma
    ke?,LI_Model?,
    LI_Model_Year?,LI_Brand_Name?,LI_Conform_Criteria_Code?,LI_Can_He
    ight?,LI_Can_Width?,
    LI_Can_Length?,LI_Hazardous_Material_Code?,LI_Storage_Status_Code
    LI_Safeguard_Handling_Instuctns?,LI_Request_Exam_Location?,LI_Act
    ual_Exam_Location?,
    LI_Export_Control_Classifctn_Nbr?,LI_Percent_Active_Ingredient?,
    LI_Prime_Contract_Number?,LI_Terms_Of_Payment_Code?,LI_Terms_Of_D
    elivery_Code?,
    LI_Verification_Quantity?,LI_Verification_Unit_Of_Measure?,LI_Cha
    nge_Reason_Code?,
    Line_Identifier*,Line_Revenue*,Line_Quantity*,Tariff+,Line_Border
    Status*,FiledLine*)>
    <!ELEMENT LI_Instance_Id (#PCDATA)>
    <!ELEMENT LI_Line_Number (#PCDATA)>
    <!ELEMENT LI_Controlling_Commrcl_Doc (#PCDATA)>
    <!ELEMENT LI_Controlling_Commrl_Doc_Type (#PCDATA)>
    <!ELEMENT LI_Commodity_Description (#PCDATA)>
    <!ELEMENT LI_Country_Final_Destination (#PCDATA)>
    <!ELEMENT LI_Country_Of_Origin (#PCDATA)>
    <!ELEMENT LI_Country_Of_Production_FDA (#PCDATA)>
    <!ELEMENT LI_Country_Of_Export (#PCDATA)>
    <!ELEMENT LI_State_Prov_Final_Destination (#PCDATA)>
    <!ELEMENT LI_State_Province_Of_Origin (#PCDATA)>
    <!ELEMENT LI_State_Province_Of_Export (#PCDATA)>
    <!ELEMENT LI_Foreign_Trade_Zone (#PCDATA)>
    <!ELEMENT LI_Deliver_To_Party (#PCDATA)>
    <!ELEMENT LI_Intermed_Deliver_To_Party (#PCDATA)>
    <!ELEMENT LI_Producer_Manufacturer (#PCDATA)>
    <!ELEMENT LI_Agency_Sponsoring_Cargo (#PCDATA)>
    <!ELEMENT LI_Purchaser_Buyer (#PCDATA)>
    <!ELEMENT LI_Seller_Vendor (#PCDATA)>
    <!ELEMENT LI_Relationship_Indicator (#PCDATA)>
    <!ELEMENT LI_Foreign_Military_Sales_Ind (#PCDATA)>
    <!ELEMENT LI_Basis_Of_Appraisement_Code (#PCDATA)>
    <!ELEMENT LI_Currency_Code (#PCDATA)>
    <!ELEMENT LI_Unit_Price_Amount (#PCDATA)>
    <!ELEMENT LI_Export_Value (#PCDATA)>
    <!ELEMENT LI_Declared_Customs_Value (#PCDATA)>
    <!ELEMENT LI_Gross_Weight (#PCDATA)>
    <!ELEMENT LI_Gross_Wgt_Unit_Of_Msr (#PCDATA)>
    <!ELEMENT LI_Unit_Qty1 (#PCDATA)>
    <!ELEMENT LI_Unit_Of_Measure1 (#PCDATA)>
    <!ELEMENT LI_Addl_Qty_Indicator (#PCDATA)>
    <!ELEMENT LI_Part_Number (#PCDATA)>
    <!ELEMENT LI_Serial_Number (#PCDATA)>
    <!ELEMENT LI_Lot_Number (#PCDATA)>
    <!ELEMENT LI_Batch_Number (#PCDATA)>
    <!ELEMENT LI_VIN (#PCDATA)>
    <!ELEMENT LI_Addl_ID_Indicator (#PCDATA)>
    <!ELEMENT LI_Product_Code (#PCDATA)>
    <!ELEMENT LI_Product_Code_FDA (#PCDATA)>
    <!ELEMENT LI_Make (#PCDATA)>
    <!ELEMENT LI_Model (#PCDATA)>
    <!ELEMENT LI_Model_Year (#PCDATA)>
    <!ELEMENT LI_Brand_Name (#PCDATA)>
    <!ELEMENT LI_Conform_Criteria_Code (#PCDATA)>
    <!ELEMENT LI_Can_Height (#PCDATA)>
    <!ELEMENT LI_Can_Width (#PCDATA)>
    <!ELEMENT LI_Can_Length (#PCDATA)>
    <!ELEMENT LI_Hazardous_Material_Code (#PCDATA)>
    <!ELEMENT LI_Storage_Status_Code (#PCDATA)>
    <!ELEMENT LI_Safeguard_Handling_Intructions (#PCDATA)>
    <!ELEMENT LI_Request_Exam_Location (#PCDATA)>
    <!ELEMENT LI_Export_Control_Classifctn_Nbr (#PCDATA)>
    <!ELEMENT LI_Percent_Active_Ingredient (#PCDATA)>
    <!ELEMENT LI_Prime_Contract_Number (#PCDATA)>
    <!ELEMENT LI_Terms_Of_Payment_Code (#PCDATA)>
    <!ELEMENT LI_Terms_Of_Delivery_Code (#PCDATA)>
    <!ELEMENT LI_Verification_Quantity (#PCDATA)>
    <!ELEMENT LI_Verification_Unit_Measure (#PCDATA)>
    <!ELEMENT LI_Change_Reason_Code (#PCDATA)>
    <!ELEMENT Line_Identifier(L_I_Id_Number,L_I_Unique_ID)>
    <!ELEMENT L_I_ID_Number (#PCDATA)>
    <!ELEMENT L_I_Unique_ID (#PCDATA)>
    <!ELEMENT
    Line_Revenue(LR_Category_Code,LR_Category_Type_Code,LR_Amount?,LR
    UnitQuantity?,
    LR_Unit_Of_Measure?)>
    <!ELEMENT LR_Category_Code (#PCDATA)>
    <!ELEMENT LR_Category_Type_Code (#PCDATA)>
    <!ELEMENT LR_Amount (#PCDATA)>
    <!ELEMENT LR_Unit_Quantity (#PCDATA)>
    <!ELEMENT LR_Unit_Of_Measure (#PCDATA)>
    <!ELEMENT
    Line_Quantity(LQ_Sequence_Number,LQ_Unit_Quantity?,LQ_Unit_Of_Mea
    sure?)>
    <!ELEMENT LQ_Sequence_Number (#PCDATA)>
    <!ELEMENT LQ_Unit_Quantity (#PCDATA)>
    <!ELEMENT LQ_Unit_Of_Measure (#PCDATA)>
    <!ELEMENT
    Tariff(T_Tariff_Number,T_Sequence_Number?,T_Duty_Amount?,T_Unit_Q
    uantity1?,
    T_Unit_Of_Measure1?,T_Unit_Quantity2?,T_Unit_Of_Measure2?,T_Unit_
    Quantity3?,
    T_Unit_Of_Measure3?,T_Add_Amount?,T_Cvd_Amount?,T_Add_Case_Number
    T_Cvd_Case_Number?,T_Add_Cvd_Bond_Indicator?,T_Surety_Code?,
    T_Add_Specific_Deposit_Value?,T_Textile_Category_Number?T_Exempti
    on_Claim_Code?,
    T_Reconciliation_Reason_Code?,Line_License*)>
    <!ELEMENT T_Tariff_Number (#PCDATA)>
    <!ELEMENT T_Sequence_Number (#PCDATA)>
    <!ELEMENT T_Duty_Amount (#PCDATA)>
    <!ELEMENT T_Unit_Quantity1 (#PCDATA)>
    <!ELEMENT T_Unit_Of_Measure1 (#PCDATA)>
    <!ELEMENT T_Unit_Quantity2 (#PCDATA)>
    <!ELEMENT T_Unit_Of_Measure2 (#PCDATA)>
    <!ELEMENT T_Unit_Quantity3 (#PCDATA)>
    <!ELEMENT T_Unit_Of_Measure3 (#PCDATA)>
    <!ELEMENT T_Add_Amount (#PCDATA)>
    <!ELEMENT T_Cvd_Amount (#PCDATA)>
    <!ELEMENT T_Add_Case_Number (#PCDATA)>
    <!ELEMENT T_Cvd_Case_Number (#PCDATA)>
    <!ELEMENT T_Add_Cvd_Bond_Indicator (#PCDATA)>
    <!ELEMENT T_Surety_Code (#PCDATA)>
    <!ELEMENT T_Add_Specific_Deposit_Value (#PCDATA)>
    <!ELEMENT T_Cvd_Specific_Deposit_Value (#PCDATA)>
    <!ELEMENT T_Textile_Category_Number (#PCDATA)>
    <!ELEMENT T_Exemption_Claim_Code (#PCDATA)>
    <!ELEMENT T_Reconciliation_Reason_Code (#PCDATA)>
    <!ELEMENT
    Line_License(LL_License_Number,LL_Number_Type_Code,LL_Responsible
    _Agency,
    LL_VISA_Country?,LL_Unit_Quantity?,LL_Unit_Of_Measure?,LL_Unit_Va
    lue?)>
    <!ELEMENT LL_License_Number (#PCDATA)>
    <!ELEMENT LL_Number_Type_Code (#PCDATA)>
    <!ELEMENT LL_Respnsible_Agency (#PCDATA)>
    <!ELEMENT LL_VISA_Country (#PCDATA)>
    <!ELEMENT LL_Unit_Quantity (#PCDATA)>
    <!ELEMENT LL_Unit_Of_Measure (#PCDATA)>
    <!ELEMENT LL_Unit_Value (#PCDATA)>
    <!ELEMENT
    Line_Border_Status(LBS_Status,LBS_Status_Datetime,LBS_Status_Sour
    ce,LBS_Agency_Code?,
    LBS_Inspection_Timestamp?,LBS_Inspector_ID?,LBS_Inspector_Action_
    Code?,
    LBS_Inspection_Description?,LBS_Notify_Trade_Indicator?)>
    <!ELEMENT LBS_Status (#PCDATA)>
    <!ELEMENT LBS_Status_Datetime (#PCDATA)>
    <!ELEMENT LBS_Status_Source (#PCDATA)>
    <!ELEMENT LBS_Agency_Code (#PCDATA)>
    <!ELEMENT LBS_Inspection_Timestamp (#PCDATA)>
    <!ELEMENT LBS_Inspector_ID (#PCDATA)>
    <!ELEMENT LBS_Inspector_Action_Code (#PCDATA)>
    <!ELEMENT LBS_Inspection_Description (#PCDATA)>
    <!ELEMENT LBS_Notify_Trade_Indicator (#PCDATA)>
    <!ELEMENT
    Filed_Line(FL_Consignee?,FL_Manufacturer?,FL_Consignee_Name?,FL_C
    onsignee_Addr1?,
    FL_Consignee_Addr2?,FL_Consignee_City?,FL_Consignee_State?,FL_Con
    signee_Zip?,
    FL_Add_Cvd_Surety?,FL_FDA_Country_Of_Production?,FL_FDA_Manufactu
    rer?,
    FL_FDA_Shipper?,FL_FDA_Consignee?,FL_FDA_Line_Value?)>
    <!ELEMENT FL_Consignee (#PCDATA)>
    <!ELEMENT FL_Manufacturer (#PCDATA)>
    <!ELEMENT FL_Consignee_Name (#PCDATA)>
    <!ELEMENT FL_Consignee_Addr1 (#PCDATA)>
    <!ELEMENT FL_Consignee_Addr2 (#PCDATA)>
    <!ELEMENT FL_Consignee_City (#PCDATA)>
    <!ELEMENT FL_Consignee_State (#PCDATA)>
    <!ELEMENT FL_Consignee_Zip (#PCDATA)>
    <!ELEMENT FL_Add_Cvd_Surety (#PCDATA)>
    <!ELEMENT FL_FDA_Country_Of_Production (#PCDATA)>
    <!ELEMENT FL_FDA_Manufacturer (#PCDATA)>
    <!ELEMENT FL_FDA_Shipper (#PCDATA)>
    <!ELEMENT FL_FDA_Consignee (#PCDATA)>
    <!ELEMENT FL_FDA_Line_Value (#PCDATA)>
    <!ELEMENT
    Goods_Notice(GN_Sequence_Number,GN_Datetime_Recipient?,GN_Sender?
    GN_Notice_Type?,GN_Controlling_Commercial_Document?,
    GN_Line_Number?,GN_Border_Status?,GN_Text?)>
    <!ELEMENT GN_Sequence_Number (#PCDATA)>
    <!ELEMENT GN_Datetime (#PCDATA)>
    <!ELEMENT GN_Sender (#PCDATA)>
    <!ELEMENT GN_Notice_Type (#PCDATA)>
    <!ELEMENT GN_Controlling_Commercial_Document (#PCDATA)>
    <!ELEMENT GN_Line_Number (#PCDATA)>
    <!ELEMENT GN_Border_Status (#PCDATA)>
    <!ELEMENT GN_Text (#PCDATA)>
    <!ELEMENT
    ITN_Revenue(IR_Category_Code,IR_Category_Type_Code,IR_Controlling
    CommercialDocument?,
    IR_Amount?,IR_Unit_Of_Measure?)>
    <!ELEMENT IR_Category_Code (#PCDATA)>
    <!ELEMENT IR_Category_Type_Code (#PCDATA)>
    <!ELEMENT IR_Controlling_Commercial_Document (#PCDATA)>
    <!ELEMENT IR_Amount (#PCDATA)>
    <!ELEMENT IR_Unit_Of_Measure (#PCDATA)>
    <!ELEMENT Intermediate_Country(IC_Country_Code)>
    <!ELEMENT IC_Country_Code (#PCDATA)>
    <!ELEMENT
    Filed_ITN(FI_Entry_Filer?,FI_District_Port_Of_Entry?,FI_Importer_
    Number?,
    FI_Surety_Code?,FI_Ultimate_Consignee?,FI_Shipper?,
    FI_District_Port_Of_Unloading?,FI_Foreign_Trade_Zone?,FI_Carrier_
    Code?,
    FI_Shipping_Qty?,FI_Shipping_Qty_Unit_Of_Measure?,FI_Date_Of_Impo
    rtation?,
    FI_Port_Of_Foreign_Loading?,FI_General_Order_Number?)>
    <!ELEMENT FI_Entry_Filer (#PCDATA)>
    <!ELEMENT FI_District_Port_Of_Entry (#PCDATA)>
    <!ELEMENT FI_Importer_Number (#PCDATA)>
    <!ELEMENT FI_Surety_Code (#PCDATA)>
    <!ELEMENT FI_Ultimate_Consignee (#PCDATA)>
    <!ELEMENT FI_Shipper (#PCDATA)>
    <!ELEMENT FI_District_Port_Of_Unloading (#PCDATA)>
    <!ELEMENT FI_Foreign_Trade_Zone (#PCDATA)>
    <!ELEMENT FI_Carrier_Code (#PCDATA)>
    <!ELEMENT FI_Shipping_Quantity (#PCDATA)>
    <!ELEMENT FI_Shipping_Qty_Unit_Of_Measure (#PCDATA)>
    <!ELEMENT FI_Date_Of_Importation (#PCDATA)>
    <!ELEMENT FI_Port_Of_Foreign_Loading (#PCDATA)>
    <!ELEMENT FI_General_Order_Number (#PCDATA)>]>
    null

    Bill Kennedy (guest) wrote:
    : Help,
    : I have been assigned the task of creating DTDs for our
    project.
    : I have had no previous exposure to JAVA or XML or any other
    : projects relating to the web. I have read some material and
    : think I have come up with a DTD (enclosed below). I am trying
    to
    : parse it and validate it but am unsure of how to accomplish
    : this.
    : Any Help anyone can give me would be greatly appreciated.
    : Bill Kennedy
    Generally you want to parse and validate XML document instances
    against your DTD. The XML Class Generator creates classes based
    upon an input DTD that can be used to create these document
    instances.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • How to use the item of table(ms access) in pl/sql

    I want to use oracle forms builer developer application with ms access database
    I don't know how to use the item of table in the pl/sql;please help me !

    MERGE INTO EmpDept Target
    Using (SELECT E.Address,
    e.Design,
    e.EmailId,
    e.EmpId,
    e.Ename,
    e.ManagerId,
    e.Salary,
    D.DeptId,
    D.DeptName,
    D.Location
    FROM Employee E
    INNER JOIN Dept D
    ON E.DeptId = D.DeptId) AS Source (Address, Design, EmailId, EmpId, EName, ManagerId, Salary, DeptId, DeptName, Location)
    ON Source.EmpId = Target.EmpId
    WHEN NOT matched THEN
    INSERT (Address,
    Design,
    EmailId,
    EmpId,
    Ename,
    ManagerId,
    Salary,
    DeptId,
    DeptName,
    Location)
    VALUES (Address,
    Design,
    EmailId,
    EmpId,
    EName,
    ManagerId,
    Salary,
    DeptId,
    DeptName,
    Location)
    WHEN matched THEN
    UPDATE SET Address = Source.Address,
    Design = Source.Design,
    EmailId = Source.EmailId,
    Ename = Source.Ename,
    ManagerId = Source.ManagerId,
    Salary = Source.Salary,
    DeptId = Source.DeptId,
    DeptName = Source.DeptName,
    Location = Source.Location;

  • How to hide system tables when using the Oracle SQL Developer?

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? I didnt find a way to create a separate database using the Oracle Sql Developer. I see all the tables together, and would like to differentiate between different databases.
    Can anyone explain to me how to do these things?
    Thanks,

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? Your posting is not clear,again tell something more on tables tree,what u want to achieve with it.
    How to hide system tables when using the Oracle SQL Developer? if u connected with sys, system or user with dba role then u have a privilege to see these tables,so revoke the privilege/role from ur user to view this tables if ur connected other then sys,system,
    I didnt find a way to create a separate database using the Oracle Sql Developer. DBCA is a tool for creating the new database.
    Kuljeet

  • SQL QUERRy (how to use the SQVI)

    Hi all,
    can anyone explain the process and how to use the Tcode SQVI.....
    thanks in advance
    srinivas...

    thanks for imm responce....
    as per ur mail ...
    If a report got created through SQVI Transaction it will not allows you to transport..
    the same senario will effect to the Tcodes SQ01,SQ02,SQ03.....
    could you please look into below my question also..can any one please responce to this,,,,
    The below link will explain to genereate the normal or ALV report using ABAP query without any programming language.i have few questions......
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c
    1.here in this link pdf doc explained how to get the data in two tables usuing ABAP quesry,,,
    is it possible for getting the data from more than two tables and how ,canone please guide me....
    2.using ABAP query i got the ALV single grid report ,is it possible to get more than single grid usuingABAP query ....?
    3.using ABAP query i got the ALV single grid report then how to give the print and how copy and paste in the edit pad....
    note : the above PDF link step by step is helpfull for generating report using Tcodes like SQ01,SQ02,SQ03.
             can anyone provide the similar type pdf documents for generating report using Tcode SQVI...?
    thanks in advance
    Srinivas...........

  • How to Compile the PL/SQL Package/ Procedure using shell script

    Hi,
    I tried to Compiled the shell script but I am facing some error.
    Can any one help me how to compile the PL/SQL shell script without error. Awaiting for your valuable reply.
    Thanks,
    Arun Prakash

    user8726849 wrote:
    PL/SQL shell script without errorWhat's a PL/SQL shell script?
    Can you please post exactly what you are trying to do (As in the actual code that you are executing and its output)? Also please post it in \ tags (See FAQ).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to use the updated value in the same update statement

    Hello,
    I just wonder how to use the updated new value of other column in the same udpate statement. I am using Oracle 11.2, and want to update the two columns with one update statement as following:
    create table tb_test (id number(5), tot number(5), mon_tot number(5));
    update tb_test set (tot = 15, mon_tot = tot *15) where id = 1;
    ...I would like to update both tot and mon_tot column, the value of mon_tot shall be determinted by the new value of tot.
    Thanks,
    Edited by: 939569 on 1-Feb-2013 7:00 AM

    Edit: example added
    SQL> create table tb_test
      2  ( id number(5)
      3  , tot number(5)
      4  , mon_tot number generated always as (tot*15) virtual
      5  );
    Table created.
    SQL> insert into tb_test (id, tot) values (1, 5);
    1 row created.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1          5         75
    1 row selected.
    SQL> update tb_test
      2  set    tot = 15
      3  where  id = 1;
    1 row updated.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1         15        225
    1 row selected.

  • How to use the prompted value in the filter expression

    Hi
    Is it possible to use the prompted value in the filter expression?
    My requirement is that user will be prompted for a date field and I need to filter the records such that the records are displayed for the last 5 weeks from the date entered by the user.
    If somehow I know how to use the prompted value in the filter expression then this requirement is easy to be done. If this is possible, please guide me?
    If there are other ways to acheive the desired results then please suggest.
    Thanks
    -Jaz

    Edit: example added
    SQL> create table tb_test
      2  ( id number(5)
      3  , tot number(5)
      4  , mon_tot number generated always as (tot*15) virtual
      5  );
    Table created.
    SQL> insert into tb_test (id, tot) values (1, 5);
    1 row created.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1          5         75
    1 row selected.
    SQL> update tb_test
      2  set    tot = 15
      3  where  id = 1;
    1 row updated.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1         15        225
    1 row selected.

  • How to use a ".generate" file in JDeveloper 11g ?

    hi
    Using JDeveloper 11g (11.1.1.0.1) I created a Database Diagram and dropped both SCOTT.EMP and SCOTT.DEPT tables on it, creating Offline Database Objects.
    After that I used the "Generate..." option from the right-click menu on the SCOTT Offline Database Source in JDeveloper, to generate a SQL script.
    Step 6 of 6 allowed me to "Save settings for reuse", resulting in a ".generate" file (see GenerateSQLFromDatabaseObjectsStep6Of6.png).
    question
    How should I be able to reuse such a ".generate" file, the right-click menu does not have a "Generate" option (like JDeveloper 10g has) or something similar, see GenerateSQLRightClickMenuForGenerateFile.png.
    many thanks
    Jan Vervecken

    Thanks for your reply Susan.
    You were not able to access it via metalink as it was categorized as an internal bug rather than a production version bug. Since it has now been fixed it is unlikely that I can get it changed to allow it to be seen via metalink.about "unlikely", see also ...
    ... Steve Muench : "Re: Request for "WHERE  -   IN" Combination with Bind Variables."
    ... Keimpe Bronkhorst : "Re: Generics : compiler option : unchecked conversion warnings"
    ... Brian Duff : "Re: Surround With Try/Catch : comments issue"
    ... Frank Nimphius : "Re: Jdev 11g: Warnings in structure window for jspx (makeCurrent)"
    But there is probably an explanation.
    regards
    Jan

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

  • How to use the same services-config for the local and remote servers.

    My flex project works fine using the below but when I upload my flash file to the server I doesn't work, all the relative paths and files are the same execpt the remote one is a linux server.
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service id="amfphp-flashremoting-service"
                class="flex.messaging.services.RemotingService"
                messageTypes="flex.messaging.messages.RemotingMessage">
                <destination id="amfphp">
                    <channels>
                        <channel ref="my-amfphp"/>
                    </channels>
                    <properties>
                        <source>*</source>
                    </properties>
                </destination>
            </service>
        </services>
        <channels>
        <channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>
        </channels>
    </services-config>
    I think the problem  is the line
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
    but I'm not sure how to use the same services-config for the local and remote servers.

    paul.williams wrote:
    You are confusing "served from a web-server" with "compiled on a web-server". Served from a web-server means you are downloading a file from the web-server, it does not necessarily mean that the files has been generated / compiled on the server.
    The server.name and server.port tokens are replaced at runtime (ie. on the client when the swf has been downloaded and is running) not compile time (ie. while mxmlc / ant / wet-tier compiler is running). You do not need to compile on the server to take advantage of this.
    Hi Paul,
    In Flex, there is feature that lets developer to put all service-config.xml file configuration information into swf file. with
    -services=path/to/services-config.xml
    IF
    services-config.xml
    have tokens in it and user have not specified additional
    -context-root
    and this swf file is not served from web-app-server (like tomcat for example) than it will not work,
    Flash player have no possible way to replace token values of service-config.xml file durring runtime if that service-config.xml file have been baked into swf file during compilation,
    for example during development you can launch your swf file from your browser with file// protocol and still be able to access blazeDS services if
    -services=path/to/services-config.xml
    have been specified durring compilation.
    I dont know any better way to exmplain this, but in summary there is two places that you can tell swf  about service confogiration,
    1) pass -services=path/to/services-config.xml  parameter to compiler this way you tell swf file up front about all that good stuff,
    or 2) you put that file on the webserver( in this case, yes you should have replacement tokens in that file) and they will be repaced at runtime .

  • How to use the Google Android Emulator in Flash Builder on Windows 7?

    I want to try out Flash Builder to create an app, but I cannot find out how to use the Google Android Emulator in Flash Builder. The simulators in Flash Builder work, and the android emulator is installed correctly and can run. I just can't seem to connect them. How do I do that?

    Hi Pahup,
    Thank you for your reply!!
    I adapted an Android App using Flash CC on a Mac. I already published this App for the Apple App Store. When I published the App for Android I chose Air 3.7.xxx for Android. I also created the p12 certificate using Flash CC in the publishing settigns for Android. So my App is theoretically finished and ready for Upload.
    When I went to the Google Play Store Developer Console I had the options to
    1.) Upload APK
    or
    2.) Prepare Store Entry
    ...so I prepared the Store entry first. When I go to "APK"-Tab in the console it looks like this:
    ... it says "Upload APK" and the Button below "Get Licence Key". When I click on the license Key Button it looks like this:
    So I think I should enter this RSA-Key somehow into my App BEFORE uploading it to the Google Play Store. This is recommended when an Ap is set to be paid. My Application is set to paid.
    I did not use any kind of licensing API (until now - cause I don´t know how and what it is for)
    This is all new to me. It is the first App I want to bringt to the Android market. I really hoped it would be as easy as getting an app into the Apple App Store. I found so many step by step instructions for dummies on "How to get an Flash iOS App into the App Store plus creating all the certificates needed", so I thought it would be the same for Android. But there is no help at all at the moment. I am totally confused.
    So any help, hint or instrusction would be great!!
    By the way - this is the App I want to get into the Google Play Store

  • How to use the Calculated attibute in view object

    Hi,
    I have a view object query with the calculated attribute name as 'TRANCODE' in the below sql.This query works for the initial page loading.
    After the page gets loaded, there is a search section in the same page at the top.
    Here i will have to build the whereclause to the same query and retrieve the values.
    i am using jDeveloper 10.1.3.1, with adf and jHeadstart.
    Can some one tell as how to use the calculated attribute TRANCODE in whereclause?
    SELECT /*+ first_rows(10) */
    BatchCntl.FILE_CNTL_ID,
    CASE WHEN chk_bit(Entry.ENTRY_FLAGS, 2)='Y' OR Entry.ENTRY_SUBSTATUS = 'D' OR Entry.ENTRY_SUBSTATUS = 'J'
    THEN
    CASE eeh.TRAN_CODE
    WHEN '21' THEN 'C'
    WHEN '22' THEN 'C'
    WHEN '31' THEN 'C'
    WHEN '32' THEN 'C'
    WHEN '26' THEN 'D'
    WHEN '27' THEN 'D'
    WHEN '36' THEN 'D'
    WHEN '37' THEN 'D'
    ELSE eeh.TRAN_CODE
    END
    ELSE
    CASE Entry.TRAN_CODE
    WHEN '21' THEN 'C'
    WHEN '22' THEN 'C'
    WHEN '31' THEN 'C'
    WHEN '32' THEN 'C'
    WHEN '26' THEN 'D'
    WHEN '27' THEN 'D'
    WHEN '36' THEN 'D'
    WHEN '37' THEN 'D'
    ELSE Entry.TRAN_CODE
    END
    END AS TRANCODE,
    FROM Batch_Cntl BatchCntl, Entry, ENTRY_EDIT_HIST eeh
    WHERE (BatchCntl.BATCH_TYPE = 'E')
    AND (BatchCntl.BATCH_STATUS in ('A','D','R','P'))
    AND entry.in_batch_cntl_id = BatchCntl.BATCH_CNTL_ID
    and Entry.fi_rt = eeh.fi_rt (+)
    and Entry.entry_id = eeh.entry_id (+)
    AND (Entry.ENTRY_STATUS in ('A','D','R','P'))
    ORDER BY BatchCntl.BATCH_CNTL_ID, Entry.entry_id
    regards
    Raj.

    Let's say your application module is com.yourcompany.someapp.services.MyService, and let's say you authored a method like the following in the MyServiceImpl.java file:
      public void doSomething(int i, String s) {
      }and you exposed this AM custom method using the AM editor.
    BC4J design time will automatically create you the com.yourcompany.someapp.services.common.MyService interface that will look like this if you go look at the source code:
    package com.yourcompany.someapp.services.common;
    import oracle.jbo.ApplicationModule;
    public interface MyService extends ApplicationModule {
      public void doSomething(int i, String s);
    }To use your custom method from a client, just cast your ApplicationModule to your custom interface like this:
    import com.yourcompany.someapp.services.common.MyService;
      MyService mySvc = (MyService)yourAM;
      mySvc.doSomething(1,"foo");

Maybe you are looking for

  • How can i get my music from my labtop to my iphone

    i want to get all my music content from my labtop to my iphone and i cant figure out how to do it?

  • Need to avoid Select Email Client dialog when submitting Acrobat X form

    We are using Windows 7 / Office 2010 32-bit with Adobe Pro X, and have found that when creating a PDF from a Word 2010 document (via either print or convert or Word PDF or XPS), then using Acrobat to create a form from it, when we apply the action Su

  • How to retrieve price per unit in SAP?

    Hi all! does anyone know what are the steps to retrieve from SAP price per unit value that customer was invoiced? I am writing Z program for retrieving price per unit (for example per kilogram) in order to calculate debit/credit memo invoice for the

  • Trouble with Qmaster, Compressor

    Hello all! I am trying to compress a 48 Minute long HDV sequence to HD-DVD using the H.264 60 Min encode settings, and I am having problems. I have read how to setup Qmaster to run multiple cores, so I have made a 4 core quick cluster on Qmaster with

  • ADF Forms Issue

    Hi All, I am fairly new to JDeveloper so please bear with me. Based on the ADF Tutorial for Forms/4GL developers I have developed a simple ADF form that edits data on a database table. The table is built from a data control, has bound managed session