Oracle date function help

Hi all,
I need to write a function below scenario
I need to pass two parameters from_date and to_date
i want to get all dates between from_date and to_date except Saturdays and include from_date and to_date also.
Please help me.
Thanks,
Edited by: carmac on Jan 29, 2013 5:04 PM

Check in plain SQL.. Enter the dates inthe format YYYYMMDD
WITH t AS
        (SELECT TO_DATE (:dt1, 'YYYYMMDD') startdt,
                TO_DATE (:dt2, 'YYYYMMDD') enddt
           FROM DUAL)
SELECT *
  FROM (    SELECT DECODE (TO_CHAR (startdt + ROWNUM, 'DY'),
                           'SAT', NULL,
                           startdt + ROWNUM)
                      dt
              FROM t
        CONNECT BY ROWNUM <= (enddt - startdt))
WHERE dt IS NOT NULL;PL/SQL approach (Function):---
CREATE TYPE t_dt AS OBJECT
       (dt DATE);
CREATE TYPE t_dt_tbl IS TABLE OF t_dt;
CREATE OR REPLACE FUNCTION fn_ret_dts_no_sat (p_dt1 varchar2, p_dt2 varchar2)
   RETURN t_dt_tbl
   PIPELINED AS
BEGIN
   FOR rec
      IN (WITH t AS
                  (SELECT TO_DATE (p_dt1, 'YYYYMMDD') startdt,
                          TO_DATE (p_dt2, 'YYYYMMDD') enddt
                     FROM DUAL)
          SELECT *
            FROM (    SELECT DECODE (TO_CHAR (startdt + ROWNUM, 'DY'),
                                     'SAT', NULL,
                                     startdt + ROWNUM)
                                dt
                        FROM t
                  CONNECT BY ROWNUM <= (enddt - startdt))
           WHERE dt IS NOT NULL) LOOP
      PIPE ROW (t_dt (rec.dt));
   END LOOP;
   RETURN;
END;
/Testing:
select * from table(fn_ret_dts_no_sat('20120101','20120131'));Output:
DT
1/2/2012
1/3/2012
1/4/2012
1/5/2012
1/6/2012
1/8/2012
1/9/2012
1/10/2012
1/11/2012
1/12/2012
1/13/2012
1/15/2012
1/16/2012
1/17/2012
1/18/2012
1/19/2012
1/20/2012
1/22/2012
1/23/2012
1/24/2012
1/25/2012
1/26/2012
1/27/2012
1/29/2012
1/30/2012
1/31/2012Cheers,
Manik.
Edited by: Included Function approach.

Similar Messages

  • Oracle Date function.

    Hi Team,
    I have a table with date column (16/06/1996 15:03:59) as value in the displayed format.
    As I have tried with the below query format I could n't able to retrive the records.
    select * from <table> where DATE_INSERT=SYSDATE;
    Could you please help to retrive the rows for the tables ?
    Regards,
    Augustine

    Hi, Augustine,
    Do you want to find rows where the year, month and day of date_insert are the same as the year, month and day of SYSDATE, regardless of what the hours, minutes and seconds of each are?
    If so:
    SELECT *
    FROM table_x
    WHERE date_insert >= TRUNC (SYSDATE)
    AND date_insert < TRUNC (SYSDATE) + 1
    This query above is more efficient than the following:
    SELECT *
    FROM table_x
    WHERE TRUNC (date_insert) = TRUNC (SYSDATE) -- *** BAD ***
    (although they get the same results) because it only  has to call the TRUNC function 2 times, no matter how many rows are in the table.  If you have 1,000,000 rows in the table, the 2nd query has to call TRUNC 1,000,002 times.  Potentially more important, the 1st query allows the optimizer to use an index on date_insert.

  • Date Function help

    Dear All,
    I have a table A with date coulmn called trans_date. It stores lot of months of data. I am trying to copy into table B only previous month's data. For example if i try to copy the data today...its suppose to pull March's data(01-MAR-2010 to 31-MAR-2010) only..Help me to wright the WHERE CONDITION...
    INSERT INTO TABLE_B
    SELECT * FROM TABLE_A@dblink
    where
    With Regards
    Phani

    Hi, Phani,
    SYSDATE is today's date (on the database server)
    TRUNC (SYSDATE, 'MONTH') is the beginning of the current month
    ADD_MONTHS (TRUNC (SYSDATE, 'MONTH'), 1) is one month before the beginning of the current month, that is, the beginning of last month.
    You're interested in everything on or after the beginning of the last month (March 2010), but before the the beginning of the current month (April 2010), so
    WHERE     trans_date     >= ADD_MONTHS (TRUNC (SYSDATE, 'MONTH'), -1)
    AND     trans_date     <              TRUNC (SYSDATE, 'MONTH')I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and the results you want from that data (that is, the contents of the destination table after everything is finished).

  • How to get no of days using oracle date function

    Dear all,
    i need different output from this query mentioned below.
    suppose i have execute this query.
    sql> select add_month(SYSDATE, -1 * 6) finaldate from dual;
    it will give the output as
    sql>FINALDATE
    05-JUL-2009 13:46
    now i need to get the total no days from the same query that means it should calculate the total no of days from july to current date and give the output.
    if you can give any hint.
    Regards
    Laxman

    Oracle supports date arithmetic and uses day as a unit.For example, number of days from July 1, 2009 to SYSDATE
    SQL> SELECT  SYSDATE - DATE '2009-07-01'
      2    FROM  DUAL
      3  /
    SYSDATE-DATE'2009-07-01'
                  188.386968
    SQL> SY.

  • Oracle date function to add one second

    how to add one second to the date, example, SYSDATE+1 will add one day to current day, but how to add one second to the current time. for example, the current date is "2006-4-21 12:01:12", and I want to add 1 second to the current time, and the result will be "2006-4-21 12:01:13", how to achieve it&#65311;&#65311;

    select to_char(sysdate,'hh24:mi:ss'),
    to_char(sysdate+1/24/60/60,'hh24:mi:ss') from dual;
    TO_CHAR( TO_CHAR(
    09:44:44 09:44:45

  • Oracle Dates & Working Days

    Hi,
    Is there an Oracle date function that ignores public bank holidays and calculates working days only?

    On the Internet, there is something called 'Google'. It can be used by anyone.
    I just used it for your request and got 569.000 hits.
    Sybrand Bakker
    Senior Oracle DBA

  • Oracle Data Mining - How to use PREDICTION function with a regression model

    I've been searching this site for Data Mining Q&A specifically related to prediction function and I wasn't able to find something useful on this topic. So I hope that posting it as a new thread will get useful answers for a beginner in oracle data mining.
    So here is my issue with prediction function:
    Given a table with 17 weeks of sales for a given product, I would like to do a forecast to predict the sales for the week 18th.
    For that let's start preparing the necessary objects and data:
    CREATE TABLE T_SALES
    PURCHASE_WEEK DATE,
    WEEK NUMBER,
    SALES NUMBER
    SET DEFINE OFF;
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('11/27/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 1, 55488);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('12/04/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 2, 78336);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('12/11/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 3, 77248);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('12/18/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 4, 106624);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('12/25/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 5, 104448);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/01/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 6, 90304);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/08/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 7, 44608);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/15/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 8, 95744);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/22/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 9, 129472);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/29/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 10, 110976);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('02/05/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 11, 139264);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('02/12/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 12, 87040);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('02/19/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 13, 47872);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('02/26/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 14, 120768);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('03/05/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 15, 98463.65);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('03/12/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 16, 67455.84);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('3/19/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 17, 100095.66);
    COMMIT;
    There are a lot of linear regression models and approaches for sales forecast out on the market, however I will focus on what oracle 11g offers i.e. package SYS.DBMS_DATA_MINING to create a model using regression as mining function and then, once the model is created, to apply prediction function on the model.
    Therefore I'll have to go through few steps:
    i) normalization of data
    CREATE OR REPLACE VIEW t_sales_norm AS
    SELECT week,
    sales,
    (sales - 91423.95)/27238.3693126778 sales_norm
    FROM t_sales;
    whereas the numerical values are the mean and the standard deviation:
    select avg(sales) from t_sales;
    91423.95
    select stddev(sales) from t_sales;
    27238.3693126778
    ii) auto-correlation. For the sake of simplicity, I will safely assume that there is no auto-correlation (no repetitive pattern in sales among the weeks). Therefore to define the lag data I will consider the whole set:
    CREATE OR REPLACE VIEW t_sales_lag AS
    SELECT a.*
    FROM (SELECT week,
    sales,
    LAG(sales_norm, 1) OVER (ORDER BY week) L1,
    LAG(sales_norm, 2) OVER (ORDER BY week) L2,
    LAG(sales_norm, 3) OVER (ORDER BY week) L3,
    LAG(sales_norm, 4) OVER (ORDER BY week) L4,
    LAG(sales_norm, 5) OVER (ORDER BY week) L5,
    LAG(sales_norm, 6) OVER (ORDER BY week) L6,
    LAG(sales_norm, 7) OVER (ORDER BY week) L7,
    LAG(sales_norm, 8) OVER (ORDER BY week) L8,
    LAG(sales_norm, 9) OVER (ORDER BY week) L9,
    LAG(sales_norm, 10) OVER (ORDER BY week) L10,
    LAG(sales_norm, 11) OVER (ORDER BY week) L11,
    LAG(sales_norm, 12) OVER (ORDER BY week) L12,
    LAG(sales_norm, 13) OVER (ORDER BY week) L13,
    LAG(sales_norm, 14) OVER (ORDER BY week) L14,
    LAG(sales_norm, 15) OVER (ORDER BY week) L15,
    LAG(sales_norm, 16) OVER (ORDER BY week) L16,
    LAG(sales_norm, 17) OVER (ORDER BY week) L17
    FROM t_sales_norm) a;
    iii) choosing the training data. Again, I will choose the whole set of 17 weeks, as for this discussion in not relevant how big should be the set of training data.
    CREATE OR REPLACE VIEW t_sales_train AS
    SELECT week, sales,
    L1, L2, L3, L4, L5, L6, L7, L8, L9, L10,
    L11, L12, L13, L14, L15, L16, L17
    FROM t_sales_lag a
    WHERE week >= 1 AND week <= 17;
    iv) build the model
    -- exec SYS.DBMS_DATA_MINING.DROP_MODEL('t_SVM');
    BEGIN
    sys.DBMS_DATA_MINING.CREATE_MODEL( model_name => 't_SVM',
    mining_function => dbms_data_mining.regression,
    data_table_name => 't_sales_train',
    case_id_column_name => 'week',
    target_column_name => 'sales');
    END;
    v) finally, where I am confused is applying the prediction function against this model and making sense of the results.
    On a search on Google I found 2 ways of applying this function to my case.
    One way is the following:
    SELECT week, sales,
    PREDICTION(t_SVM USING
    LAG(sales,1) OVER (ORDER BY week) as l1,
    LAG(sales,2) OVER (ORDER BY week) as l2,
    LAG(sales,3) OVER (ORDER BY week) as l3,
    LAG(sales,4) OVER (ORDER BY week) as l4,
    LAG(sales,5) OVER (ORDER BY week) as l5,
    LAG(sales,6) OVER (ORDER BY week) as l6,
    LAG(sales,7) OVER (ORDER BY week) as l7,
    LAG(sales,8) OVER (ORDER BY week) as l8,
    LAG(sales,9) OVER (ORDER BY week) as l9,
    LAG(sales,10) OVER (ORDER BY week) as l10,
    LAG(sales,11) OVER (ORDER BY week) as l11,
    LAG(sales,12) OVER (ORDER BY week) as l12,
    LAG(sales,13) OVER (ORDER BY week) as l13,
    LAG(sales,14) OVER (ORDER BY week) as l14,
    LAG(sales,15) OVER (ORDER BY week) as l15,
    LAG(sales,16) OVER (ORDER BY week) as l16,
    LAG(sales,17) OVER (ORDER BY week) as l17
    ) pred
    FROM t_sales a;
    WEEK, SALES, PREDICTION
    1, 55488, 68861.084076412
    2, 78336, 104816.995823913
    3, 77248, 104816.995823913
    4, 106624, 104816.995823913
    As you can see for the first row there is a value of 68861.084 and for the rest of 16 values is always one and the same 104816.995.
    Question: where is my week 18 prediction ? or maybe I should say which one is it ?
    Another way of using prediction even more confusing is against the lag table:
    SELECT week, sales,
    PREDICTION(t_svm USING a.*) pred
    FROM t_sales_lag a;
    WEEK, SALES, PREDICTION
    1, 55488, 68861.084076412
    2, 78336, 75512.3642096908
    3, 77248, 85711.5003385927
    4, 106624, 98160.5009687461
    Each row out of 17, its own 'prediction' result.
    Same question: which one is my week 18th prediction ?
    Thank you very much for all help that you can provide on this matter.
    It is as always highly appreciated.
    Serge F.

    Kindly let me know how to give input to predict the values for example script to create model is as follows
    drop table data_4svm
    drop table svm_settings
    begin
    dbms_data_mining.drop_model('MODEL_SVMR1');
    CREATE TABLE data_4svm (
    id NUMBER,
    a NUMBER,
    b NUMBER
    INSERT INTO data_4svm VALUES (1,0,0);
    INSERT INTO data_4svm VALUES (2,1,1);
    INSERT INTO data_4svm VALUES (3,2,4);
    INSERT INTO data_4svm VALUES (4,3,9);
    commit;
    --setting table
    CREATE TABLE svm_settings
    setting_name VARCHAR2(30),
    setting_value VARCHAR2(30)
    --settings
    BEGIN
    INSERT INTO svm_settings (setting_name, setting_value) VALUES
    (dbms_data_mining.algo_name, dbms_data_mining.algo_support_vector_machines);
    INSERT INTO svm_settings (setting_name, setting_value) VALUES
    (dbms_data_mining.svms_kernel_function, dbms_data_mining.svms_linear);
    INSERT INTO svm_settings (setting_name, setting_value) VALUES
    (dbms_data_mining.svms_active_learning, dbms_data_mining.svms_al_enable);
    COMMIT;
    END;
    --create model
    BEGIN
    DBMS_DATA_MINING.CREATE_MODEL(
    model_name => 'Model_SVMR1',
    mining_function => dbms_data_mining.regression,
    data_table_name => 'data_4svm',
    case_id_column_name => 'ID',
    target_column_name => 'B',
    settings_table_name => 'svm_settings');
    END;
    --to show the out put
    select class, attribute_name, attribute_value, coefficient
    from table(dbms_data_mining.get_model_details_svm('MODEL_SVMR1')) a, table(a.attribute_set) b
    order by abs(coefficient) desc
    -- to get predicted values (Q1)
    SELECT PREDICTION(MODEL_SVMR1 USING *
    ) pred
    FROM data_4svm a;
    Here i am not sure how to predict B values . Please suggest the proper usage . Moreover In GUI (.NET windows form ) how user can give input and system can respond using the Q1

  • Oracle 9i function to perform data manipulation

    Hi everyone,
    I have two scenarios. I would like to write one Oracle 9i function that can accommodate both these scenarios, using PL/SQL developer. I intend passing a varchar2 parameter to this function. Within the function, I perform a select on a table and see if this value sent has a parent record.
    If it does not have a parent record (null or blank) then I take this value, join with another table, perform some processing and return one varchar2 value.
    If it has a parent record (not null or not blank) then I need to retrieve all the other children records associated with this same parent record, take this value, join with another table,perform some processing and return one varchar2 value.
    I have two simple queries that I wrote: one for record with null/blank parent, and the other for record with same parent and other children. These two queries work individually, when I combine them is where I run into problems. Sample table:
    TABLE XYZ data: (note: if there is a parent, parent shows up in both parent and child field in the table)
    child parent
    1234
    5107 3167
    6259 3652
    5678 9754
    3167 3167
    3652 3652
    1649
    2306 9754
    4657 3652
    9754 9754
    8753 3652
    passing record 1234 into the function.
    SELECT A.child, A.parent, C.field1
    FROM OTHERTABLE C,
    (SELECT TableA.child, TableA.parent
    FROM XYZ TableA
    WHERE TableA.child ='1234')A
    WHERE A.child = C.field2
    ----(output of this query is 1 record with 3 fields 1234 and null/blank and 987654321. I place this output into a cursor and then take 987654321 and place into a variable and return this value)
    passing record 4657 into the function
    SELECT c.CHILDfield, c.PARENTfield, TableOther.field1
    FROM OTHERTABLE TableOther,(
    (SELECT B.CHILDfield, B.PARENTfield FROM
    (SELECT A.PARENTfield, i.CHILDfield FROM TableB,
    (SELECT TableA.CHILDfield, TableA.PARENTfield
    FROM XYZ TableA
    WHERE TableA.CHILDfield ('4657' ))A
    -- pass 4657 and then get the parent
    WHERE A.PARENTfield = TableB.PARENTfield)B
    -- gets associated children with the parent from previous query.
    -- note: parent can exist in the parent and child fields
    WHERE B.CHILDfield <> B.PARENTfield))C
    --strips off the parent and gets child/children only as I don't need
    --the parent when it is also a child
    WHERE C.CHILDfield = TableOther.field1
    --(output of this query is 3 records
    4657 3652 912345671
    6259 3652 945362798
    8753 3652 934274857)
    I place this output into a cursor and then have a CASE statement that goes thru each record, and appends the third value into a variable, the ultimate return value of this will be as follows:
    912345671;945362798;934274857)
    The dilemma is writing a generic query to accommodate both these situations. My current function can handle each of these situations individually, but not both. For testing purposes, I change the select statement depending on whether I have a record that has a parent on not!
    Any help is greatly appreciated.

    You want one function to handle two cases? This is the best opportunity to use the IF STATEMENT.
    FUNCTION MyFunc (p_input IN VARCHAR2) RETURN VARCHAR2 IS
    ReturnValue VARCHAR2;
    BEGIN
    IF <blank or null test> THEN
    SELECT ... -- Blank or null select statement
    ... -- Blank or null data processing
    RETURN ReturnValue;
    ELSE
    SELECT ... -- Other select statement
    ... -- Other data processing
    RETURN ReturnValue;
    END IF;
    END MyFunc;

  • Convert Date function to oracle

    The follwoing Sql for Sqlserver, what is the equivalent function in oracle. Need help on this.
    YTD:
    YOUR_DATE_FIELD between DATEADD(yy,
    DATEDIFF(yy,0,@Prompt('BEGIN_DATE','D',,mono,free)), 0) AND
    @Prompt('END_DATE','D',,mono,free)
    MTD:
    YOUR_DATE_FIELD between DATEADD(mm, DATEDIFF(mm, 0,
    ,@Prompt('BEGIN_DATE','D',,mono,free)), 0) AND
    @Prompt('END_DATE','D',,mono,free)
    WTD
    YOUR_DATE_FIELD between (,@Prompt('BEGIN_DATE','D',,mono,free) -
    DATEPART(dw, ,@Prompt('BEGIN_DATE','D',,mono,free)))+1 AND
    @Prompt('END_DATE','D',,mono,free)

    Extracting month,year,day from sysdate (You may even opt to use to_char)
    SQL> select extract (month from sysdate) from dual;
    EXTRACT(MONTHFROMSYSDATE)
                            4
    SQL> select extract (year from sysdate) from dual;
    EXTRACT(YEARFROMSYSDATE)
                        2007
    SQL> select extract (day from sysdate) from dual;
    EXTRACT(DAYFROMSYSDATE)
                          5
    Adding 5 days to today's date
    SQL> select sysdate + 5 from dual;
    SYSDATE+5
    10-APR-07
    Adding Months
    SQL> select add_months(sysdate,3) from dual;
    ADD_MONTH
    05-JUL-07
    Date Difference
    SQL> select sysdate - to_date('01/04/2007','dd/mm/yyyy') from dual;
    SYSDATE-TO_DATE('01/04/2007','DD/MM/YYYY')
                                    4.42670139
    Date Difference
    SQL> select trunc(sysdate) - trunc(to_date('01/04/2007','dd/mm/yyyy')) from dual
    TRUNC(SYSDATE)-TRUNC(TO_DATE('01/04/2007','DD/MM/YYYY'))
                                                           4
    SQL>

  • Transfer Of Data from Sap to Oracle with the help of Enterprise Services.

    Hello,
    We want to transfer data from Sap to Oracle using standard Enterprise Services.Some fields were not available in the existing standard Enterprise Services,so we have enhanced the existing Services by writing code inside BADI available with Enterprise Services.Rest of the fields we have mapped with the existing fields available in standard Enterprise Services.But,the Oracle people want to fetch all data from Sap without entering any input as a mandatory field in the Enterprise Services.The existing standard Enterprise Services require to enter any field as mandatory and are not accepting the range in input for multiple records.e.g.All enterprise Services related to Sales Orders are displaying only one sales Order.We have searched all Enterprise Services for Sales Order(related to reading of data),but not able to find service which would display mutiple records without entering any input.ECC_SALESORDER009QR is the only service which is displaying multiple records without entering any input,but the required fields are not available in this service.So,kindly suggest what we need to do further.
    1.Should we go for customization of services completely,so that it would fulfil our requirement.
    2.Are there  standard Enterprise Services exists which would we give us data in range(all records).
    If they exists,please specify the names of Services for reading Purchase Order,Production Order,BOM etc.
    Thanks & Regards,
    Divya.

    Hi Vaibhav,
    Let me tell you the objective in detail.
    Objective.
    To develop a package solution which will work as a bridge between Oracle APS and SAP system so that customers using SAP will be able to use advantages of Oracle APS for their planning needs.
    This will consist of following major components:
    OA Templates is an Oracle utility to load data from any legacy system to Oracle APS using standard flat files.
    Oracle has developed an Application Integration Architecture which is a standard architecture used for integration of Oracle products with other systems.
    Enterprise services is an SAP utility to communicate with SAP.
    AIA canonicals are standard canonicals developed by Oracle where we have to map data fields from destination system (Oracle APS) and source system (SAP)
    Fusion middleware is being used to develop application interfaces following AIA standards.
    Tasks at stake:
    Mapping of Oracle APS fields and SAP Enterprise Service fields to AIA canonicals
    Technical work of developing middleware using Oracle Fusion
    From Sap side,we have to map fields which we have received from Oracle with the help of Enterprise Services,rest  consumption of these services is done by Oracle guys.So,suggest is there enterprise services available which would give us multiple records .
    Thanks & Regards,
    Divya.

  • Need help in oracle data recovery

    Friends ,i need help in oracle data recovery.
    I had an oracle 8i database running on windows.
    For some reason Windows operating system crashed.
    It is not booting up.
    I dont have current backups.But my database physical files are in the disk.
    Controlfile,datafiles and redo log files are there.
    Is there any way I can recover my database?
    Please help in this issue.
    regards
    Ajith

    HI citrus,
    thanks for the reply.
    I have installed database 9i on the same PC after O/S reinstallation.
    You are saying that ,I need to keep oracle root folder same as that of my old installation ,and copy control files,redo log and data files in exactly same folders as that of old database,and then start the database?
    thank you for your patience and support.
    regards.,
    Ajith

  • Help with Creating a Oracle Data Source

    Hello:
    I am trying to create a Oracle Data source.
    I was successful in creating a JDBC Conection Pool.
    But I am stumped creating a new datasource that uses the Oracle Connection Pool.
    It asks for a JNDI Name and I have no clue what I should enter in this box.
    Can somebody help me?
    Thanks.
    venki

    Enter whatever name suits you. This is the name you will use when looking up your datasource in the JNDI tree, i.e.
    Context ctx = new InitialContext();
    DataSource oracleDS = (DataSource) ctx.lookup("myJNDIName");

  • Using R function on Oracle data base

    for using R, I only can use Oracle data mining algorithms or I can use R function like social network in Oracle data base?

    Oracle Advanced Analytics provides multiple language (SQL, R and if we include GUIs, Oracle Data Miner workflow UI) support to the in-DB analytics. Using SQL, R or the ODM'r GUI, you can access a library of simple descriptive, summary and coparative statistics that have been implemented in the Oracle Database + a dozen hi-perf in-DB data mining algorithms (e.g. regression, decision trees, text mining, clustering, associations, anomaly detection, etc.) and solve a wide range of business and technical problems.
    Should you require additional techniques e.g. R CRAN packages, then Oracle Advanced Analytics supports that through R to SQL transparancy where it "pushes down" R language intentions to matching in-DB SQL functions e.g. ETL, stats and data mining OR it can make a callout to R via "embedded R mode" and have the Database manage the flow of data and the process.
    There is an OTN Discussion Forum that focuses entirely on the "R" aspects of the Oracle Advanced Analytics Option. I suggest that you re-post your questiion here R Technologies for additional discusssions and for the benefit of that Oracle Advanced Analytics/Oracle R Enterprise OTN forum/community.
    cb

  • Raw to date function in oracle

    Hi..
    I would like to know the details and usage of Raw to date function in oracle database.Could some one let me know the function details?

    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> set serveroutput on
    SQL> DECLARE
      2   rv RAW(32) := '786B060818023A';
      3   dt DATE := NULL;
      4  BEGIN
      5    dbms_stats.convert_raw_value(rv, dt);
      6    dbms_output.put_line(TO_CHAR(dt, 'DD-MON-YYYY'));
      7  END;
      8  /
    08-JUN-2007
    PL/SQL procedure successfully completed.
    SQL>Regards,
    Jo
    PS: This is not my own example. I don't recollect the link I got this example from. Will post the link if I come across it again. I think its www.psoug.org (not sure)

  • Hi! pls help date functions

    hi! i have problem in date functions in java!
    1. if i give input date format is dd/mm/yyyyy (or) yyyy/mm/dd (or) mm/dd/yyyy?
    the result must be display dd/mm/yyyy only?
    pls help me!
    thanks and regadrs
    senthilraj

    http://www.javaalmanac.com/egs/java.text/FormatDate.html
    http://www.javaalmanac.com/egs/java.text/ParseDate.html

Maybe you are looking for

  • Snow Leopard 10.6.5 makes Aperture 3.1 slower. What gives?

    I recently upgraded to Snow Leopard 10.6.5 with Aperture 3.1 1290000.2 in an attempt to make Aperture faster, but instead Aperture is now SLOWER than on Leopard! I am using an iMac 2.66 GHz Intel Core 2 Duo, 2GB SDRAM, with the library located on my

  • BA00 Output Urgent

    Hi all, I created a new payment terms but the invoice output shows the one thats in the order i.e. the correct one. but the order output shows the diffrent payment terms the one that is not in the order or the customer master. all partner functions a

  • CRM-survey doesn't be displayed in a contact-activity

    Hi, I have a problem with CRM (4.0) activities (contact). I am new to surveys but I created one and can't see it in a contact. At first I have created a new survey (SPRO - CRM - Transactions - Seetings for Activities - Questionnaires). Then I have cr

  • Testing HTTP Receiver adapter.

    Hi Everyone, Would anyone Please provide the sample details required for testing the HTTP Receiver adapter to check its fuctionality and the required output. Any Help would be appreciated. Regards, Varun

  • Column view error

    Hello, I use column view to open indesign files and place textfiles and pictures into my documents. For a couple of weeks every now and then when i want to browse for an document the column view jumps to the first column, leaving the other colums bla