To_char on an Oracle date

I'm trying to use:
TO_CHAR(a.some_dt, 'FMMM/DD/YYYY HH:MM:SS AM') AS some_dt_str,
but it's not giving desired output.
Is there a to_char(date, '+something+') that can accomplish these desired outputs:
11/23/2011 5:44:01 AM
2/8/2012 6:48:29 AM
2/8/2012 6:02:45 PM
Notice it's not 02/08/2012
The aforementioned 'FMMM/DD/YYYY HH:MM:SS AM' is close, I think, but I've seen output like:
3/26/2012 2:3:14 AM
and that 2:3 is not desired. It should be 2:03:14 AM ...
thank you for help.

user632715 wrote:
I'm trying to use:
TO_CHAR(a.some_dt, 'FMMM/DD/YYYY HH:MM:SS AM') AS some_dt_str,
but it's not giving desired output.
Is there a to_char(date, '+something+') that can accomplish these desired outputs:
11/23/2011 5:44:01 AM
2/8/2012 6:48:29 AM
2/8/2012 6:02:45 PM
Notice it's not 02/08/2012
The aforementioned 'FMMM/DD/YYYY HH:MM:SS AM' is close, I think, but I've seen output like:
3/26/2012 2:3:14 AM
and that 2:3 is not desired. It should be 2:03:14 AM ...
thank you for help.MM is month as 2 digit number
MI is minutes

Similar Messages

  • Crystal Reports and Oracle Dates

    Post Author: Robert
    CA Forum: General
    Hey Guys, I am experiencing some issues with Crystal Reports Developer XI (SP4) and Oracle Dates. Situation:I have a view setup in oracle database, i use this view to base my reports. Within the view there is a logtime column (to_date(logtime,'DD-MM-YYYY') & to_date(logtime,'DD-MON-YYYY') -: i have used both) When i connect to the database the database expert (view on the left of the screen) displays the logtime column as date time, but when i go to refersh the report with data with the logtime as group 1, i get a whole lot of errors:1: Failed to Retrieve data from Database2: Failed to Retrieve data from Database    Details: ORA-01861: Literal does not match format String    Database vendor code: 18613: Failed to Retrieve data from Database    Details: Failed to execute SQL statement. OCI Call................................... Anybody got any ideas why this is happening, if i use the to_char the report work fine...well it will not sort by date!! Any help, most appreciated.... Robert 

    Post Author: Robert
    CA Forum: General
    Hello there and thanks for your reply,
    I have found the problem, it was not really a problem but a slight misjudgment of the use of the to_date function in oracle!
    I should have used to_date in conjunction with to_char
    to_date(to_char(logtime,'DD-MM-YYYY'),'DD-MM-YYYY')
    Presto
    No need fo any formula in crystal to do this....
    Thanks again

  • Unix Seconds to Oracle Date...HELP !!!

    Hi All
    We got a Oracle (8.1.7) database and I am trying to load some data but one of the column is in Unix time format(seconds since 01-01-1970) and I am trying to convert it to Oracle Date & time (dd-mon-yyyy, hh24:mi:ss) in CST time zone.
    I am using this formula:
    select to_char(new_time(to_date('01011970', 'ddmmyyyy') + 1/24/60/60 * 1090831602, 'GMT', 'CST'), 'dd-Mon-yyyy hh24:mi:ss') "Seconds to Date" from dual;
    But it seems to me that I am getting incorrect results.
    Could someone please help.
    Cheers
    Amit

    hmmm, this is still poor support! new_time does not "know" if we are in winter or in summer.
    select new_time(sysdate, 'GMT', 'EST'), new_time(sysdate + 180, 'GMT', 'EST') from dual
    NEW_TIME(SYSDATE,'G NEW_TIME(SYSDATE+18
    04.08.2004 05:31:59 31.01.2005 05:31:59
    select
      FROM_TZ( CAST(SYSDATE AS TIMESTAMP),'GMT') at time zone 'Europe/Zurich',
      FROM_TZ( CAST(SYSDATE+180 AS TIMESTAMP),'GMT') at time zone 'Europe/Zurich'
    from dual;
    FROM_TZ(CAST(SYSDATEASTIMESTAMP),'GMT')ATT FROM_TZ(CAST(SYSDATE+180ASTIMESTAMP),'GMT'
    04-AUG-04 12.28.15.000000 PM EUROPE/ZURICH 31-JAN-05 11.28.15.000000 AM EUROPE/ZURICH

  • TimeInstance to Oracle Date

    Does anybody know how to convert an XmlSchema timeInstance element into an Oracle Date (preffered) or Java Date ?
    Many Thanks,
    Alan
    null

    since you are source is Jan 1 2009 format , try this to_date(<src.col_name>,'MON dd yyyy') If you are target is date datatype its doesn't matter where you get it yyyy-MM-dd or another format.
    if its varchar then try this
    to_char (to_date(<src.col_name>,'MON dd yyyy'),'yyyy-MM-dd') hope this helps.

  • Oracle date to days in a week. (plsql)

    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    Report Builder 10.1.2.0.2
    ORACLE Server Release 10.1.0.4.2
    Oracle Procedure Builder 10.1.2.0.2
    Oracle ORACLE PL/SQL V10.1.0.4.2 - Production
    Oracle CORE    10.1.0.4.0    Production
    Oracle Tools Integration Services 10.1.2.0.2
    Oracle Tools Common Area 10.1.2.0.2
    Oracle Toolkit 2 for Windows 32-bit platforms 10.1.2.0.2
    Resource Object Store 10.1.2.0.2
    Oracle Help 10.1.2.0.2
    Oracle Sqlmgr 10.1.2.0.2
    Oracle Query Builder 10.1.2.0.2 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle ZRC 10.1.2.0.2
    Oracle XML Developers Kit 10.1.0.4.2 - Production
    Oracle Virtual Graphics System 10.1.2.0.2
    Oracle Image 10.1.2.0.2
    Oracle Multimedia Widget 10.1.2.0.2
    Oracle Tools GUI Utilities 10.1.2.0.2
    Select distinct ih.customer_id,patient_name,
            sum(case when to_char(ih.invoice_date,'Mon')=to_char(to_date(:end_date,'DD-MON-YYYY'),'Mon') then id.order_qty else 0 end) curr_month,
    from     tab1 ih,
               tab2 id,
               tab4 ip,
               tab3 vp
    where id.invoice_number = ih.invoice_number
    and id.item_id = vp.product_code
    and   id.item_id = ip.item_id
    and   ip.item_type in ('P')
    and ih.customer_id = 'WAD-EX0128'
    and   ih.invoice_date between  to_date('01-JAN-2015','DD-MON-YYYY')  and to_date('31-MAR-2015','DD-MON-YYYY')
    and vp.inv_product_type in ('RBC','LRBC','LPHER','PHER','FFP','FP24','CRYO')
    group by ih.customer_id,patient_name
    I need help in the case statement to distribute qty based on weeks of that month.
    This query works fine. But now I need data by weeks, like
    customer  id    patient name            Week1                                          Week2
                                                  mon   tue   wed  thu    fri  sat   sun     mon   tue   wed  thu    fri  sat   sun
    We can just take sample data for 1 month  as start date and 01-jan-2015  and end date as 31-jan-2015. having data for 4 weeks. Help is appreciated. I tried all the queries like
    select to_char(sysdate,'IW'), to_char(sysdate,'Dy') from dual;
    select to_char(sysdate,'Mon') || ' week' || to_char(sysdate,'W') from dual;
    but not getting the data distributed by weeks. Please help me get data based on invoice_date by weeks and days.
    Required Data per sample data ( Jan 2015) 1st week.

    Being 9i you might try to avoid Dynamic SQL concatenating daily counts to a single month_string (in the past Frank proposed it quite frequently), aligning the strings on weekdays (starting with sunday) and finally using substr to form columns.
    select ym,customer_id,patient_name,
           nullif(substr(month_string,1,instr(month_string,',') - 1),'~') sun_1,
           nullif(substr(month_string,instr(month_string,',',1,1) + 1,instr(month_string,',',1,2) - instr(month_string,',',1,1) - 1),'~') mon_1,
           nullif(substr(month_string,instr(month_string,',',1,2) + 1,instr(month_string,',',1,3) - instr(month_string,',',1,2) - 1),'~') tue_1,
           nullif(substr(month_string,instr(month_string,',',1,3) + 1,instr(month_string,',',1,4) - instr(month_string,',',1,3) - 1),'~') wed_1,
           nullif(substr(month_string,instr(month_string,',',1,4) + 1,instr(month_string,',',1,5) - instr(month_string,',',1,4) - 1),'~') thu_1,
           nullif(substr(month_string,instr(month_string,',',1,5) + 1,instr(month_string,',',1,6) - instr(month_string,',',1,5) - 1),'~') fri_1,
           nullif(substr(month_string,instr(month_string,',',1,6) + 1,instr(month_string,',',1,7) - instr(month_string,',',1,6) - 1),'~') sat_1,
           substr(month_string,instr(month_string,',',1,7) + 1,instr(month_string,',',1,8) - instr(month_string,',',1,7) - 1) sun_2,
           substr(month_string,instr(month_string,',',1,8) + 1,instr(month_string,',',1,9) - instr(month_string,',',1,8) - 1) mon_2,
           substr(month_string,instr(month_string,',',1,9) + 1,instr(month_string,',',1,10) - instr(month_string,',',1,9) - 1) tue_2,
           substr(month_string,instr(month_string,',',1,10) + 1,instr(month_string,',',1,11) - instr(month_string,',',1,10) - 1) wed_2,
           substr(month_string,instr(month_string,',',1,11) + 1,instr(month_string,',',1,12) - instr(month_string,',',1,11) - 1) thu_2,
           substr(month_string,instr(month_string,',',1,12) + 1,instr(month_string,',',1,13) - instr(month_string,',',1,12) - 1) fri_2,
           substr(month_string,instr(month_string,',',1,13) + 1,instr(month_string,',',1,14) - instr(month_string,',',1,13) - 1) sat_2,
           substr(month_string,instr(month_string,',',1,14) + 1,instr(month_string,',',1,15) - instr(month_string,',',1,14) - 1) sun_3,
           substr(month_string,instr(month_string,',',1,15) + 1,instr(month_string,',',1,16) - instr(month_string,',',1,15) - 1) mon_3,
           substr(month_string,instr(month_string,',',1,16) + 1,instr(month_string,',',1,17) - instr(month_string,',',1,16) - 1) tue_3,
           substr(month_string,instr(month_string,',',1,17) + 1,instr(month_string,',',1,18) - instr(month_string,',',1,17) - 1) wed_3,
           substr(month_string,instr(month_string,',',1,18) + 1,instr(month_string,',',1,19) - instr(month_string,',',1,18) - 1) thu_3,
           substr(month_string,instr(month_string,',',1,19) + 1,instr(month_string,',',1,20) - instr(month_string,',',1,19) - 1) fri_3,
           substr(month_string,instr(month_string,',',1,20) + 1,instr(month_string,',',1,21) - instr(month_string,',',1,20) - 1) sat_3,
           substr(month_string,instr(month_string,',',1,21) + 1,instr(month_string,',',1,22) - instr(month_string,',',1,21) - 1) sun_4,
           substr(month_string,instr(month_string,',',1,22) + 1,instr(month_string,',',1,23) - instr(month_string,',',1,22) - 1) mon_4,
           substr(month_string,instr(month_string,',',1,23) + 1,instr(month_string,',',1,24) - instr(month_string,',',1,23) - 1) tue_4,
           substr(month_string,instr(month_string,',',1,24) + 1,instr(month_string,',',1,25) - instr(month_string,',',1,24) - 1) wed_4,
           substr(month_string,instr(month_string,',',1,25) + 1,instr(month_string,',',1,26) - instr(month_string,',',1,25) - 1) thu_4,
           substr(month_string,instr(month_string,',',1,26) + 1,instr(month_string,',',1,27) - instr(month_string,',',1,26) - 1) fri_4,
           substr(month_string,instr(month_string,',',1,27) + 1,instr(month_string,',',1,28) - instr(month_string,',',1,27) - 1) sat_4,
           nullif(substr(month_string,instr(month_string,',',1,28) + 1,instr(month_string,',',1,29) - instr(month_string,',',1,28) - 1),'~') sun_5,
           nullif(substr(month_string,instr(month_string,',',1,29) + 1,instr(month_string,',',1,30) - instr(month_string,',',1,29) - 1),'~') mon_5,
           nullif(substr(month_string,instr(month_string,',',1,30) + 1,instr(month_string,',',1,31) - instr(month_string,',',1,30) - 1),'~') tue_5,
           nullif(substr(month_string,instr(month_string,',',1,31) + 1,instr(month_string,',',1,32) - instr(month_string,',',1,31) - 1),'~') wed_5,
           nullif(substr(month_string,instr(month_string,',',1,32) + 1,instr(month_string,',',1,33) - instr(month_string,',',1,32) - 1),'~') thu_5,
           nullif(substr(month_string,instr(month_string,',',1,33) + 1,instr(month_string,',',1,34) - instr(month_string,',',1,33) - 1),'~') fri_5,
           nullif(substr(month_string,instr(month_string,',',1,34) + 1,instr(month_string,',',1,35) - instr(month_string,',',1,34) - 1),'~') sat_5,
           nullif(substr(month_string,instr(month_string,',',1,35) + 1,instr(month_string,',',1,36) - instr(month_string,',',1,35) - 1),'~') sun_6,
           nullif(substr(month_string,instr(month_string,',',1,36) + 1,instr(month_string,',',1,37) - instr(month_string,',',1,36) - 1),'~') mon_6,
           nullif(substr(month_string,instr(month_string,',',1,37) + 1,instr(month_string,',',1,38) - instr(month_string,',',1,37) - 1),'~') tue_6
      from (select ym,customer_id,patient_name,
                   case when to_date(ym,'yyyymm') - trunc(to_date(ym,'yyyymm'),'iw') + 1 < 7
                        then rpad('~,',2 * (to_date(ym,'yyyymm') - trunc(to_date(ym,'yyyymm'),'iw') + 1),'~,')
                   end||
                   days_in_month||
                   rpad('~,',
                        2 * (length(replace(case when to_date(ym,'yyyymm') - trunc(to_date(ym,'yyyymm'),'iw') + 1 < 7
                                                 then rpad('~,',2 * (to_date(ym,'yyyymm') - trunc(to_date(ym,'yyyymm'),'iw') + 1),'~,')
                                            end||days_in_month,
                             length(case when to_date(ym,'yyyymm') - trunc(to_date(ym,'yyyymm'),'iw') + 1 < 7
                                         then rpad('~,',2 * (to_date(ym,'yyyymm') - trunc(to_date(ym,'yyyymm'),'iw') + 1),'~,')
                                    end||days_in_month
                                   ) +
                             38
                       '~,'
                       ) month_string
              from (select to_char(trunc(ih.invoice_date,'mm'),'yyyymm') ym,
                           ih.customer_id,
                           patient_name,
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '01' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '02' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '03' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '04' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '05' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '06' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '07' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '08' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '09' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '10' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '11' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '12' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '13' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '14' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '15' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '16' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '17' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '18' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '19' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '20' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '21' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '22' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '23' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '24' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '24' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '25' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '27' then 1 end))||','||
                           to_char(count(case when to_char(ih.invoice_date,'dd') = '28' then 1 end))||','||
                           case when to_char(last_day(trunc(ih.invoice_date,'mm')),'dd') >= '29'
                                then to_char(count(case when to_char(ih.invoice_date,'dd') = '29' then 1 end))
                                else '~'
                           end||','||
                           case when to_char(last_day(trunc(ih.invoice_date,'mm')),'dd') >= '30'
                                then to_char(count(case when to_char(ih.invoice_date,'dd') = '30' then 1 end))
                                else '~'
                           end||','||
                           case when to_char(last_day(trunc(ih.invoice_date,'mm')),'dd') >= '31'
                                then to_char(count(case when to_char(ih.invoice_date,'dd') = '31' then 1 end))
                                else '~'
                           end||',' days_in_month
                      from tab1 ih,
                           tab2 id,
                           tab4 ip,
                           tab3 vp
                     where id.invoice_number = ih.invoice_number
                       and id.item_id = vp.product_code
                       and id.item_id = ip.item_id
                       and ip.item_type in ('P')
                       and ih.customer_id = 'WAD-EX0128'
                       and ih.invoice_date between to_date(:date_from,'DD-MON-YYYY') and to_date(:date_to,'DD-MON-YYYY')
                       and vp.inv_product_type in ('RBC','LRBC','LPHER','PHER','FFP','FP24','CRYO')
                     group by ih.customer_id,patient_name,trunc(ih.invoice_date,'mm')
    order by ym,customer_id,patient_name
    YM
    CUSTOMER_ID
    PATIENT_NAME
    SUN_1
    MON_1
    TUE_1
    WED_1
    THU_1
    FRI_1
    SAT_1
    SUN_2
    MON_2
    TUE_2
    WED_2
    THU_2
    FRI_2
    SAT_2
    SUN_3
    MON_3
    TUE_3
    WED_3
    THU_3
    FRI_3
    SAT_3
    SUN_4
    MON_4
    TUE_4
    WED_4
    THU_4
    FRI_4
    SAT_4
    SUN_5
    MON_5
    TUE_5
    WED_5
    THU_5
    FRI_5
    SAT_5
    SUN_6
    MON_6
    TUE_6
    WED_6
    201501
    WAD-EX0128
    ALEXIAN BROTHERS MEDICAL CENTER
    9
    7
    11
    11
    2
    26
    14
    27
    17
    21
    16
    10
    14
    14
    4
    50
    0
    21
    13
    12
    17
    26
    20
    34
    34
    51
    8
    1
    5
    1
    41
    201502
    WAD-EX0128
    ALEXIAN BROTHERS MEDICAL CENTER
    19
    3
    27
    11
    9
    0
    15
    22
    32
    4
    8
    16
    33
    0
    54
    0
    21
    26
    11
    8
    13
    0
    41
    11
    11
    15
    18
    20
    201503
    WAD-EX0128
    ALEXIAN BROTHERS MEDICAL CENTER
    0
    5
    6
    28
    0
    0
    39
    0
    0

  • How to export a data as an XML file from oracle data base?

    could u pls tell me the step by step procedure for following questions...? how to export a data as an XML file from oracle data base? is it possible? plz tell me itz urgent requirement...
    Thankz in advance
    Bala

    SQL> SELECT * FROM v$version;
    BANNER
    Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    5 rows selected.
    SQL> CREATE OR REPLACE directory utldata AS 'C:\temp';
    Directory created.
    SQL> declare                                                                                                               
      2    doc  DBMS_XMLDOM.DOMDocument;                                                                                       
      3    xdata  XMLTYPE;                                                                                                     
      4                                                                                                                        
      5    CURSOR xmlcur IS                                                                                                    
      6    SELECT xmlelement("Employee",XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",                       
      7                                  'http://www.oracle.com/Employee.xsd' AS "xsi:nonamespaceSchemaLocation")              
      8                              ,xmlelement("EmployeeNumber",e.empno)                                                     
      9                              ,xmlelement("EmployeeName",e.ename)                                                       
    10                              ,xmlelement("Department",xmlelement("DepartmentName",d.dname)                             
    11                                                      ,xmlelement("Location",d.loc)                                     
    12                                         )                                                                              
    13                   )                                                                                                    
    14     FROM   emp e                                                                                                       
    15     ,      dept d                                                                                                      
    16     WHERE  e.DEPTNO=d.DEPTNO;                                                                                          
    17                                                                                                                        
    18  begin                                                                                                                 
    19    OPEN xmlcur;                                                                                                        
    20    FETCH xmlcur INTO xdata;                                                                                            
    21    CLOSE xmlcur;                                                                                                       
    22    doc := DBMS_XMLDOM.NewDOMDocument(xdata);                                                                           
    23    DBMS_XMLDOM.WRITETOFILE(doc, 'UTLDATA/marco.xml');                                                                  
    24  end;                                                                                                                  
    25  /                                                                                                                      
    PL/SQL procedure successfully completed.
    .

  • Powerpivot Data Refresh Not working with Oracle Data Source in sharePoint 2013

    I am using SQL Server 2012 PowerPivot for Excel 2010. Getting the following error in SharePoint 2013 environment, when using Oracle data source within a workbook -
    EXCEPTION: Microsoft.AnalysisServices.SPAddin.DataRefreshException: Engine error during processing of OLE DB or ODBC error: The specified module could not be found..:
    <Site\PPIV workbook>---> Microsoft.AnalysisServices.SPAddin.DataRefreshException: OLE DB or ODBC error:
    The specified module could not be found..   
     at Microsoft.AnalysisServices.SPAddin.DataRefresh.ASEngineInstance.ProcessDataSource(String server, String databaseName, String datasourceName, SecureStoreCredentialsWrapper
    runAsCredentials, SecureStoreCredentialsWrapper specificConfigurationCredentials, DataRefreshService dataRefreshService, String fileUrlForTracing)     -
    -- End of inner exception stack trace ---   
     at Microsoft.AnalysisServices.SPAddin.DataRefresh.ASEngineInstance.ProcessDataSource(String server, String databaseName, String datasourceName, SecureStoreCredentialsWrapper
    runAsCredentials, SecureStoreCredentialsWrapper specificConfigurationCredentials, DataRefreshService dataRefreshService, String fileUrlForTracing)   
     at Microsoft.AnalysisServices.SPAddin.DataRefresh.DataRefreshService.ProcessingJob(Object parameters)
    I created a simple Excel 2013 PPIV workbook with an oracle data source and uploaded that to SharePoint 2013, but no change in the results - still getting the above error.
    What is this error? We have installed Oracle client (64-bit, since we use 64-bit Excel and Sp is also 64-bit) on SSAS PPIV Server and SharePoint Content DB Server. Do we need
    to install it anywhere else?
    Thanks,
    Sonal

    Hi Sonal,
    To use PowerPivot for SharePoint on SharePoint 2013, it is required to install PowerPivot for SharePoint with the Slipstream version of SQL Server 2012 SP1. If you install SQL Server 2012 and then use the upgrade version of SQL Server 2012 SP1 to upgrade,
    the environment will not support SharePoint 2013.
    I would suggest you refer to the following articles:
    Install SQL Server BI Features with SharePoint 2013 (SQL Server 2012 SP1):
    http://technet.microsoft.com/en-us/library/jj218795.aspx
    Upgrade SQL Server BI Features to SQL Server 2012 SP1:
    http://technet.microsoft.com/en-us/library/jj870987.aspx
    Regards,
    Elvis Long
    TechNet Community Support

  • Oracle Data Profiling and Data Quality

    Hi,
    How to create metabase for Oracle Data Profiling and Data Quality.Is metabase and repository are same.

    Hi,
    You can create a metabase in the Metabase Manager:
    - Expand Control Admin
    - Click on Metabases
    - in the Metabases window, right-click on the white area and select Add...
    - go through the wizard to create your metabase
    This is documented in the ODQ/ODP tutorial (http://www.oracle.com/technology/products/oracle-data-quality/pdf/oracledq_tutorial.pdf) and in the Documentation (in Metabase Manager or Oracle Data Quality go to Help and then Manuals).
    Thanks,
    Julien

  • Performance issue with Oracle data source

    Hi all,
    I've a rather strange problem that I'm stuck on need some assistance on.
    I have a rules file which drags data in via an SQL data source thats an Oracle server. If I cut/paste the 3 sections of "select" "from" and "where" into SQL-Developer and run the query, it takes less than 1 second to complete. When I run the "load data" with this rule file or even use the "Retrieve" with the rules file edit, it takes up to an hour to complete/retrieve the data.
    The table in question being used has millions of rows and I'm using one of the indexed fields to retrieve the data. It's as if the Essbase/Rule file is ognoring the index, or I have a config issue with the ODBC settings on the server that is causing the problem.
    ODBC.INI file entry for the Oracle server as follows (changed any sensitive info to xxx or 999).
    [XXX]
    Driver=/opt/data01/hyperion/common/ODBC-64/Merant/5.2/lib/ARora22.so
    Description=DataDirect 5.2 Oracle Wire Protocol
    AlternateServers=
    ApplicationUsingThreads=1
    ArraySize=60000
    CachedCursorLimit=32
    CachedDescLimit=0
    CatalogIncludesSynonyms=1
    CatalogOptions=0
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    DefaultLongDataBuffLen=1024
    DescribeAtPrepare=0
    EnableDescribeParam=0
    EnableNcharSupport=0
    EnableScrollableCursors=1
    EnableStaticCursorsForLongData=0
    EnableTimestampWithTimeZone=0
    HostName=999.999.999.999
    LoadBalancing=0
    LocalTimeZoneOffset=
    LockTimeOut=-1
    LogonID=xxx
    Password=xxx
    PortNumber=1521
    ProcedureRetResults=0
    ReportCodePageConversionErrors=0
    ServiceType=0
    ServiceName=xxx
    SID=
    TimeEscapeMapping=0
    UseCurrentSchema=1
    Can anyone please advise on this lack of performance.
    Thanks in advance
    Bagpuss

    One other thing that I've seen is that if your Oracle data source and Essbase server are in different geographic locations, you can get some delay when it retrieves data over the WAN. I guess there is some handshaking going on when passing the data from Oracle to Essbase (either by record or groups of records) that is slowed WAY down over the WAN.
    Our solution to this was remove teh query out of the load rule, run it via SQL+ on a command line at the geographic location where the Oracle database is, then ftp the resulting file to where the Essbase server is.
    With upwards of 6 million records being retrieved, it took around 4 hours in the load rule, but running the query via command line took 10 minutes, then the ftp took less than 5.

  • Unable to replicate oracle data into timesten

    I have created CACHE GROUP COMPANY_MASTER
    Cache group :-
    Cache Group TSLALGO.COMPANY_MASTER_TT:
      Cache Group Type: Read Only
      Autorefresh: Yes
      Autorefresh Mode: Incremental
      Autorefresh State: On
      Autorefresh Interval: 1 Minute
      Autorefresh Status: ok
      Aging: No aging defined
      Root Table: TSLALGO.COMPANY_MASTER
      Table Type: Read Only
    But whenever I start timesten server the following lock seen in ttxactadmin <dsn_name>
    Program File Name: timestenorad
    30443   0x7fab902c02f0        7.22     Active      Database  0x01312d0001312d00   IX    0
                                                       Table     1733200              S     4221354128           TSLALGO.COMPANY_MASTER
                                                       Row       BMUFVUAAAAaAAAAFBy   S     4221354128           SYS.TABLES
                                                       Row       BMUFVUAAACkAAAALAF   Sn    4221354128           SYS.CACHE_GROUP
    Due to the following lock oracle data is not replicated in timesten.
    When we check sqlcmdid it shows following output
    Query Optimizer Plan:
    Query Text: CALL ttCacheLockCacheGp(4, '10752336#10751968#10751104#10749360#', 'S', '1111')
      STEP:             1
      LEVEL:            1
      OPERATION:        Procedure Call
      TABLENAME:
      TABLEOWNERNAME:
      INDEXNAME:
      INDEXEDPRED:
      NONINDEXEDPRED:
    Please suggest why timesten take lock on following table.

    966234 wrote:
    Unable to download Oracle Data Integrator with version 11.1.1.6.Hope this could be resolved ASAP.What is the file you are trying to download? Is it for Windows or Linux or All Platforms?
    Thanks,
    Hussein

  • Unable to download Oracle Data Integrator-Version 11.1.1.6(Important)

    Unable to download Oracle Data Integrator with version 11.1.1.6.Hope this could be resolved ASAP.

    966234 wrote:
    Unable to download Oracle Data Integrator with version 11.1.1.6.Hope this could be resolved ASAP.What is the file you are trying to download? Is it for Windows or Linux or All Platforms?
    Thanks,
    Hussein

  • Can SQL*Plus connect via ODBC to NON-Oracle data source?????

    I am struggling to understand something. I downloaded Oracle instance client, SQL*Plus and ODBC components with the hopes of being able to connect via SQL*Plus to a non-Oracle/ODBC compliant database.
    Is this possible? Or is SQL*Plus ability to connect via ODBC only to an Oracle data source??
    Thanks...

    sqlplus only connects to oracle. you can use the odbc driver from instant client to allow other applications to access oracle via odbc (e.g. excel). if you need to connect to non-oracle odbc database (ms-access, foxpro, etc.) you need odbc driver for those sources.
    you can use sqldeveloper to connect to oracle and non-oracle databases. check otn product info for sqldeveloper for more details.

  • Error while installing Oracle Data miner 10G Release 2

    Hello,
    I am a student involved in research in Data mining. I am new to Oracle Database and data miner.
    I installed Oracle Enterprise Manager 10g Grid Control Release 2 (10.2.0.1). Now I am trying to install ORacle data miner (10.2.0.1). However, at the time of installation ODM gives the following error:
    "specified data mining server is not compatible. 10.1.0.4.0."
    I have installed Oracle 10.2.0.1 but when I login using SqlPlus I get the following information -
    SQL*Plus: Release 10.1.0.4.0 - Production on Sun Jul 23 09:52:41 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>
    I would be really obliged if someone can help me with this.
    Thanks in advance
    Pooja

    Hi ,
    Download and install the product version(10.2.0.1.) of Oracle Data Mining....
    Simon

  • Oracle Data Miner 10.1.0.2 Interoperate with Database 10g Release 2

    Hi all,
    I cannot connect from Oracle Data Miner to a newly upgraded Database 10g Release 2 with Data Mining option. This database was 10.1.0.2 before upgrade, and I could connect via Oracle Data Miner before the upgrade (though it needs to be upgraded to 10.1.0.3+ for data mining to function).
    I have similar problem for a new installation on another computer. The error message in either case is "Cannot connect to specified Data Mining Server. Check connection information and try again."
    I can use SQL*Plus to login as the data mining user using the net service corresponding to the connect string. I check the v$option and DBA_REGISTRY as per the Data Mining Admin. documentation to verify that the data mining option exists and is valid. I am able to use the same connect string "host:port:SID" to connect from Analytical Workspace Manager to verify that the connectivity is OK.
    Furthermore, some Oracle by Example seems not valid for a DB of version 10.2. For example, at the URL http://www.oracle.com/technology/obe/obe10gdb/bidw/odm/odm.htm#p, the point 6 <ORACLE_HOME>\dm\lib\odmapi.jar is not applicable, because the path <ORACLE_HOME>\dm no longer exists.
    Therefore, I have query if Oracle Data Miner 10.1.0.2 can work with DB 10.2? What procedure should I follow? Please advise.
    Thanks and regards,
    lawman

    I am waiting on the beta version since I have installed Oracle10gR2.
    I've been checking the OTN website every day to see when it is released.
    If it is not a bother, can you send me an email when I can download it.
    Thanks in advance.
    Have a wonderful day/weekend,
    Andy

  • Oracle Data Integrator 11.1.1.5 Work Schema - List of Privileges

    Hi All,
    Oracle Data Integrator 11.1.1.5.
    Extracting data from Oracle DB for Oracle EBS 12.1.3.
    Customer created read-only schema (XXAPPS) to extract the data from EBS.
    For ODI Work schema we now created one schema 'XBOL_ODI_TEMP' on the source DB. We are now looking for appropriate privileges that needs to be granted to XXAPPS and 'XBOL_ODI_TEMP' so that we won’t face the any error messageS related to permissions when we run ODI scenario?
    We are now facing the error message : ODI-1227: Task SrcSet0 (Loading) fails on the source ORACLE connection VTB_ORACLE_EBS_1213.
    Caused By: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist.
    Similar previliges can be granted to the work schema on target.
    Venkat

    i think it would be fine with only one schema(user) created at the source system which has got read access on the tables of the EBS DB. Now to resolve this error, assuming XXAPPS user is the one used,
    in the topology --> data server(for EBS) --> physical schema the EBS schema name could be selected for Schema and XXAPPS as the work schema(for all ODI work related objects e.g. CDC)
    Also, in the Data server the user XXAPPS needs to be used which has read access to EBS tables.
    Now everytime ODI generates a query it will access a table lets say DUMMY as ,<EBS Schema>.DUMMY thus the reference is made.
    Alternatively, you can create synonyms for EBS tables in XXAPPS schema.

Maybe you are looking for