BR0252E Function mkdir() failed for adding the data file

Dear experts.
  I assigned new file to data file, i face below error
BR0280I BRSPACE time stamp: 2010-12-15 10.38.26
BR0681I Enter string value for "file" (<file>|<sapdata>|<N>) [/oracle/DBP/sapdata7/sr3_70/sr3.data69]:
/oracle/DBP/sapdata8/sr3_70/sr3.data69
BR0280I BRSPACE time stamp: 2010-12-15 10.38.46
BR0683I New value for "file": '/oracle/DBP/sapdata8/sr3_70/sr3.data69'
Error
BR0252E Function mkdir() failed for '/oracle/DBP/sapdata8/sr3_70' at location BrDirCreate-1
BR0253E errno 13: Permission denied
Regards,
kalees

>>BR0252E Function mkdir() failed for '/oracle/DBP/sapdata8/sr3_70' at location BrDirCreate-1
Make sure the sapdata8 is owned by ora<SID> and dba group.
and you are adding the datafile using ora<SID> userID.

Similar Messages

  • DB13 error for CHECKDB task - BR0252E Function _stat() failed for 'D:\oracl

    Hi
    while trying to execute CHECKDB in Db13 i was getting the following error message
    My Operating system is windows 2003 database oracle 10g
    already referred to notes 952080, 134592 and subsequent notes
    E:\ORACLE\NPE\ORIGLOGA\CNTRL\CNTRLNPE.DBF       26066944            4  FILE  NOLINK
    E:\ORACLE\NPE\ORIGLOGB\CNTRL\CNTRLNPE.DBF       26066944            4  FILE  NOLINK
    D:\ORACLE\NPE\SAPDATA1\CNTRL\CNTRLNPE.DBF       26066944            3  FILE  NOLINK
    BR0982I Database disk volumes
    Directory / Raw disk                          Device      Total[KB]      Free[KB]    Used[%]   MaxNeed[KB]   MaxMiss[KB]
    BR0252E Function _stat() failed for 'D:\oracle\EO1\102' at location BrDiskStatGet-1
    BR0253E errno 2: No such file or directory
    BR0277E Determination of disk volume status for D:\oracle\EO1\102 failed
    BR0806I End of BRCONNECT processing: ceadprqb.chk 2009-03-17 18.06.25
    BR0280I BRCONNECT time stamp: 2009-03-17 18.06.25
    BR0804I BRCONNECT terminated with errors
    if any faced simlar problem, please give let me know if you have a solution.
    Regards
    HM

    Hello,
    this type of error happens when there are permission problems. Check permission of BRtools
    Check the permission of files..Check the link below for more information :
    http://www-01.ibm.com/support/docview.wss?rs=667&context=SSZHVN&dc=DB560&dc=DB520&uid=swg21327498&loc=en_US&cs=UTF-8&lang=en&rss=ct667tivoli
    Thanks
    Anju

  • BR0252E Function fopen() failed for '/oracle/SID/sapbackup/.user.pas' at location BrToolCall-2

    Hi all,
    I am working on setting up the DB13/BRTOOLS integration.
    I am trying to run a db check from sidadm user through brtools and getting the below error.
    BR0280I BRTOOLS time stamp: 2014-04-24 09.35.56
    BR0257I Your reply: 'c'
    BR0259I Program execution will be continued...
    BR0252E Function fopen() failed for '/oracle/PB1/sapbackup/.user.pas' at location BrToolCall-2
    BR0253E errno 13: Permission denied
    I changed the permissions for br* to 755 as below
    but still I am getting the same error.
    ustrlxpb1db80:pb1adm 73>  ls -l br*
    -rwxr-xr-x 1 pb1adm sapsys 5736689 Sep  7  2011 brarchive
    -rwxr-xr-x 1 pb1adm sapsys 5854578 Sep  7  2011 brbackup
    -rwxr-xr-x 1 pb1adm sapsys 7577045 Sep  7  2011 brconnect
    -rwxr-xr-x 1 pb1adm sapsys 6279708 Sep  7  2011 brrecover
    -rwxr-xr-x 1 pb1adm sapsys 2227868 Sep  2  2011 brrestore
    -rwxr-xr-x 1 pb1adm sapsys 8033945 Sep  7  2011 brspace
    -rwxr-xr-x 1 pb1adm sapsys 3090793 Sep  2  2011 brtools
    What might be the issue?
    Thanks
    vimal

    Hi Gaurav,
    Thanks for your information.
    I changed the persmissions for sapbackup and sapcheck to 775 and I can able to start the dbcheck via brtools through sidadm user.
    But it got stuck with a below sql error , with insufficient privileges
    BR0280I BRTOOLS time stamp: 2014-04-24 10.36.06
    BR0257I Your reply: 'c'
    BR0259I Program execution will be continued...
    BR0801I BRCONNECT 7.20 (17)
    BR0805I Start of BRCONNECT processing: censafis.chk 2014-04-24 10.36.06
    BR0484I BRCONNECT log file: /oracle/PB1/sapcheck/censafis.chk
    BR0477I Oracle pfile /oracle/PB1/112_64/dbs/initPB1.ora created from spfile /oracle/PB1/112_64/dbs/spfilePB1.ora
    BR0280I BRCONNECT time stamp: 2014-04-24 10.36.08
    BR0813I Schema owners found in database PB1:
    APPQOSSYS, DBSNMP, DIP, OPS$ORAPB1, OPS$PB1ADM, OPS$SAPSERVICEPB1, ORACLE_OCM, OUTLN, SAPSR3*, SYS,
    SYSTEM
    BR0280I BRCONNECT time stamp: 2014-04-24 10.36.09
    BR0814I Number of tables/partitions in schema of owner SAPSR3: 25128/247
    BR0836I Number of tables treated as info cubes for owner SAPSR3: 1676
    BR0814I Number of tables/partitions in schema of owner SYS: 890/298
    BR0814I Number of tables/partitions in schema of owner SYSTEM: 151/39
    BR0280I BRCONNECT time stamp: 2014-04-24 10.36.12
    BR0815I Number of indexes/partitions in schema of owner SAPSR3: 33103/502
    BR0815I Number of indexes/partitions in schema of owner SYS: 965/242
    BR0815I Number of indexes/partitions in schema of owner SYSTEM: 212/52
    BR0280I BRCONNECT time stamp: 2014-04-24 10.36.13
    BR0816I Number of segments in schema of owner DBSNMP: 8
    BR0816I Number of segments in schema of owner OPS$PB1ADM: 1
    BR0816I Number of segments in schema of owner OUTLN: 9
    BR0816I Number of segments/LOBs in schema of owner SAPSR3: 21553/2395
    BR0816I Number of segments/LOBs in schema of owner SYS: 2714/144
    BR0816I Number of segments/LOBs in schema of owner SYSTEM: 407/22
    BR0280I BRCONNECT time stamp: 2014-04-24 10.36.13
    BR0961I Number of conditions found in DBCHECKORA: 128
    BR0280I BRCONNECT time stamp: 2014-04-24 10.36.13
    BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement:
    'PREPARE stmt_5 FROM'
    'SELECT OBJNAME FROM "SAPSR3".DBDIFF WHERE DBSYS IN ('ORACLE', ' ') AND OBJTYPE = 'TABL' AND DIFFKIND IN ('02', '61', '99') ORDER BY OBJNAME'
    ORA-01031: insufficient privileges
    BR0806I End of BRCONNECT processing: censafis.chk 2014-04-24 10.36.13
    BR0280I BRCONNECT time stamp: 2014-04-24 10.36.13
    BR0804I BRCONNECT terminated with errors
    BR0292I Execution of BRCONNECT finished with return code 3
    Thanks
    Vimal

  • BR0252E Function remove() failed

    While trying to extend the tablespace (PSAPCRM), I encounter an error :
    BR1001I BRSPACE 7.00 (40)
    BR0252E Function remove() failed for '/oracle/SID/sapbackup/.user.pas' at location global_set-5
    BR0253E errno 13: Permission denied
    BR0700E Fatal errors occurred - terminating processing...
    BR1008I End of BRSPACE processing: seadhacx.log 2009-03-15 22.45.39
    BR0280I BRSPACE time stamp: 2009-03-15 22.45.39
    BR1007I BRSPACE terminated with errors
    Any clues pls ?
    Regards
    Shaji

    Hi Jacob,
    Can you tell us with which user you are running?
    I think there are some file permission are missing with that user id.
    Please follow SAP NOTE 113747 to give sufficiant access privillages for BRTOOLS.
    Regards
    Nick Loy

  • Which  Function Module is used for converting the DATE in BDC

    HI,
    Which  Function Module is used for converting the DATE Format in BDC for Uploading purpose please help me.

    data : date like sy-datum.
    data : odate(10) type c.
    date = sy-datum.        " in format YYYYMMDD
    CALL FUNCTION 'CONVERSION_EXIT_PDATE_OUTPUT'
      EXPORTING
       input         = date
    IMPORTING
       OUTPUT        = odate         .
    write:/ odate.  "in ur format '.
    1.
    In ur itab make a field for date as 10 characters and use this Fm to store the date .
    2. Pass the date as the charcter field to the screen and now check .

  • Which function is used for  adding days to given month

    which function is used for  adding days to given month

    Hi Jagrut,
    Good ... Check out the following examples
    <b>Get a date</b>
    DATE_GET_WEEK Returns week for a date
    WEEK_GET_FIRST_DAY Returns first day for a week
    RP_LAST_DAY_OF_MONTHS Returns last day of month
    FIRST_DAY_IN_PERIOD_GET Get first day of a period
    LAST_DAY_IN_PERIOD_GET Get last day of a period
    RP_LAST_DAY_OF_MONTHS Determine last day of month
    <b>Date calculations</b>
    DATE_COMPUTE_DAY Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
    DATE_IN_FUTURE Calculate a date N days in the future.
    RP_CALC_DATE_IN_INTERVAL Add days/months to a date
    RP_CALC_DATE_IN_INTERVAL Add/subtract years/months/days from a date
    SD_DATETIME_DIFFERENCE Give the difference in Days and Time for 2 dates
    MONTH_PLUS_DETERMINE Add or subtract months from a date. To subtract a month, enter a negative value for the 'months' parameter.
    DATE_CREATE Calculates a date from the input parameters:
    Example: DATE_CREATE
    CALL FUNCTION 'DATE_CREATE'
    EXPORTING
       anzahl_jahre  = 1
       anzahl_monate = 2
       anzahl_tage   = 3
       datum_ein     = '20010101'
    IMPORTING
       datum_aus     = l_new_date.
       Result:
       l_new_date = 20020304
    Example: MONTH_PLUS_DETERMINE
    data: new_date type d.
    CALL FUNCTION 'MONTH_PLUS_DETERMINE'
    EXPORTING
    months = -5 " Negative to subtract from old date, positive to add
    olddate = sy-datum
    IMPORTING
    NEWDATE = new_date.
    write: / new_date.
    <b>Hollidays</b>
    HOLIDAY_GET Provides a table of all the holidays based upon a Factory Calendar &/ Holiday Calendar.
    HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the
    date is a holiday by checking the parameter HOLIDAY_FOUND.
    Example: HOLIDAY_CHECK_AND_GET_INFO
    data: ld_date                 like scal-datum  default sy-datum,
          lc_holiday_cal_id       like scal-hcalid default 'CA',
          ltab_holiday_attributes like thol occurs 0 with header line,
          lc_holiday_found        like scal-indicator.
    CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'
      EXPORTING
        date                               = ld_date
        holiday_calendar_id                = lc_holiday_cal_id
        WITH_HOLIDAY_ATTRIBUTES            = 'X'
      IMPORTING
        HOLIDAY_FOUND                      = lc_holiday_found
      tables
        holiday_attributes                 = ltab_holiday_attributes
      EXCEPTIONS
        CALENDAR_BUFFER_NOT_LOADABLE       = 1
        DATE_AFTER_RANGE                   = 2
        DATE_BEFORE_RANGE                  = 3
        DATE_INVALID                       = 4
        HOLIDAY_CALENDAR_ID_MISSING        = 5
        HOLIDAY_CALENDAR_NOT_FOUND         = 6
        OTHERS                             = 7.
    if sy-subrc = 0 and
       lc_holiday_found = 'X'.
      write: / ld_date, 'is a holiday'.
    else.
      write: / ld_date, 'is not a holiday, or there was an error calling the function'.
    endif.
    Checking dates
    DATE_CHECK_PLAUSIBILITY Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems.
    Converting dates
    DATE_CONV_EXT_TO_INT Conversion of dates to SAP internal format e.g. '28.03.2000' -> 20000328 Can also be used to check if a date is valid ( sy-subrc <> 0 )
    Function to return literal for month
    he table you want to use is T247. You can also use the function MONTH_NAMES_GET.
    You can also try table T015M. It has the month number in it's key.
    Formatting
    DATUMSAUFBEREITUNG Format date as the user settings
    Other
    MONTH_NAMES_GET It returns all the month and names in repective language.
    Good Luck and thanks
    AK

  • Gui_download for transferring the data from internal table to excel sheet.

    hi all,
    i am using gui_download for transferring the data from internal table to excel sheet.
    I have a internal table with 3 columns col1,col2,col3 and I am getting the file at the specified path,but my problem is that,in the excel sheet(path specified) all the 3 columns values are printed in one column.Please help me.
    Thanks in advance.

    Hi Venkata,
    plz use FM 'SAP_CONVERT_TO_XLS_FORMAT' :
      call function 'SAP_CONVERT_TO_XLS_FORMAT'
        exporting
    *   I_FIELD_SEPERATOR          =
    *   I_LINE_HEADER              =
          i_filename                 = p_file
    *   I_APPL_KEEP                = ' '
        tables
          i_tab_sap_data             = t_mbew
    * CHANGING
    *   I_TAB_CONVERTED_DATA       =
    * EXCEPTIONS
    *   CONVERSION_FAILED          = 1
    *   OTHERS                     = 2
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    Hope this helps,
    Erwan

  • Where is the data file for the address book located, I need to restore mine from backup but don't know where it is.

    Where is the data file for the address book located, I need to restore mine from backup but don't know where it is to do so.  Putting my Mac Pro onto icloud synching contacts resulted in duplicate and triplicates of the same cards.  I have a few THOUSAND contacts and the last time this happened was on mobile me.  that had a function where you could replace info on the mobile me server with info on the computer.  I see no way to do that on the new cloud.

    In the stupidly hidden user's Library->/Application Support/AddressBook/ labeled as AddressBook-v22.abcddb
    For TM restores, see Pondini's TM FAQs for starters, since I don't use TM.

  • Can anyone confirm the date used for pushing the data into AR interface table? Is it abse don Actual ship date or scheduled ship date?

    Can anyone confirm the date used for pushing the data into AR interface table? Is it abse don Actual ship date or scheduled ship date? We are facing a scenario where trx date is lower than the actual ship to which logically sounds incorrect.
    Appreciate any quick response around this.

    Hi,
    Transaction date  will be your autoinvoice master program submission level date (If you haven't setup any logic.
    Please check the program level default date, if user enter old date ststem will pick the same.
    Customer is trying to set the value of the profile OM:Set receivables transaction date as current date for non-shippable lines at the responsiblity level. System does not set the transaction date to current date in ra_interface_lines_all.
    CAUSE
    Customer has used the functionality in R11i. But after the upgrade to R12, the system functions differently than R11i.
    SOLUTION
    1.Ensure that there are no scheduled workflow background process run.
    2.Set the profile "OM: Set Receivables Transaction Date as Current Date for Non-Shippable Lines"  at Responsibility level only as Yes.
    3.Now switch the responsibility to which the profile is set.
    4.Create order for Non-Shippable Lines and progress it to invoicing.
    5.Ensure that the 'workflow background process' concurrent program is run in the same responsibility and this line is considered in it.
    6.Now check if the 'SHIP_DATE_ACTUAL' is populated to ra_interface_lines_all

  • FM for uploading the data in infotype

    Dear Friends,
                           I need a example how i can use the FM(HR_MAINTAIN_MASTERDATA,HR_INFOTYPE_OPERATION) for uploading the data in multiple infotypes at a time.
    I have a data in internal table now how i should pass the infotype no in the FM am not aware of that kindly help meee.
    And also my personnal no is internal ,how i pass in the FM.
    How i pass the remaning values .....
    my code ......
    Loop at it_employee into wa_employee.
      CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
    EXPORTING
       PERNR                     = '00000000'
       MASSN                     =  wa_employee-MASSN
       ACTIO                     = 'INS'
       TCLAS                     = 'A'
       BEGDA                     = SY-DATUM
       ENDDA                     = '99991231'
      OBJPS                    =
      SEQNR                    =
      SPRPS                    =
      SUBTY                    =
       WERKS                     = wa_employee-WERKS
       PERSG                     = wa_employee-PERSG
       PERSK                     = wa_employee-PERSK
      PLANS                     = wa_employee-PLANS
       DIALOG_MODE              = '1'
       LUW_MODE                 = '1'
       NO_EXISTENCE_CHECK       = 'X '
       NO_ENQUEUE               = 'X'
    IMPORTING
       RETURN                   = t_return
      RETURN1                  =
      HR_RETURN                =
      TABLES
        proposed_values          = it_employee.
      MODIFIED_KEYS            =
    write : / t_return.
    thanks
    sandeep

    Hi
    you have to open one more gl account for intial upload.
    E.g. If you have the debit balance of Gl alc 50000 in legacy system, then the entry should be:
    Dr 50000alc               $100
    Cr initial Upload alc     $100.
    if you want futher explaination let me know, i will explain in detail.
    Thanks & Regards,
    Reva naik.

  • Data adapter failed during OnLoad: The UDC file contains errors: '=' is an unexpected token. The expected token is ';'.

    I am working on SharePoint 2010 Infopath form, i have created one secondary connection to SharePoint List view using XML Connection it works fine.
    For the deployment from DEV to PROD i converted this connection to universal data connection (UDC) and tested this before deploying to PROD but i m getting below error.
    An error occurred querying a data source.
    i checked ULS logs and found below details
    Data adapter failed during OnLoad: The UDC file contains errors: '=' is an unexpected token. The expected token is ';'. Line 17, position 108.
    UDC file is below
    <?xml version="1.0" encoding="UTF-8"?>
    <?MicrosoftWindowsSharePointServices ContentTypeID="0x010100B4CBD48E029A4ad8B62CB0E41868F2B0"?>
    <udc:DataSource MajorVersion="2" MinorVersion="0" xmlns:udc="http://schemas.microsoft.com/office/infopath/2006/udc">
    <udc:Name>LastItemID</udc:Name>
    <udc:Description>Format: UDC V2; Connection Type: XmlQuery; Purpose: ReadOnly; Generated by Microsoft InfoPath 2010 on 2014-04-25 at 16:49:31 by DOMAIN\username.</udc:Description>
    <udc:Type MajorVersion="2" MinorVersion="0" Type="XmlQuery">
    <udc:SubType MajorVersion="0" MinorVersion="0" Type=""/>
    </udc:Type>
    <udc:ConnectionInfo Purpose="ReadOnly" AltDataSource="">
    <udc:WsdlUrl/>
    <udc:SelectCommand>
    <udc:ListId/>
    <udc:WebUrl/>
    <udc:ConnectionString/>
    <udc:ServiceUrl UseFormsServiceProxy="false"/>
    <udc:SoapAction/>
    <udc:Query>https://contoso/_vti_bin/owssvr.dll?Cmd=Display&List={32364DED-7FE3-4276-837C-F2AC62C04B81}&View={804CC528-34B2-4473-89DB-C4E766CACC95}&XMLDATA=TRUE&NOREDIRECT=TRUE</udc:Query>
    </udc:SelectCommand>
    <udc:UpdateCommand>
    <udc:ServiceUrl UseFormsServiceProxy="false"/>
    <udc:SoapAction/>
    <udc:Submit/>
    <udc:FileName>Specify a filename or formula</udc:FileName>
    <udc:FolderName AllowOverwrite=""/>
    </udc:UpdateCommand>
    <!--udc:Authentication><udc:SSO AppId='' CredentialType='' /></udc:Authentication-->
    </udc:ConnectionInfo>
    </udc:DataSource>
    w: sandippatilblog.blogspot.com/

    Hi  Sandip ,
    How about escape “&” to “&amp;” as below:
    <udc:Query>https://contoso/_vti_bin/owssvr.dll?Cmd=Display&amp;List={32364DED-7FE3-4276-837C-F2AC62C04B81}&amp;View={804CC528-34B2-4473-89DB-C4E766CACC95}&amp;XMLDATA=TRUE&amp;NOREDIRECT=TRUE</udc:Query>
    Reference:
    http://social.technet.microsoft.com/Forums/en-US/534fae6b-2cef-4947-86e2-4869cb291cfe/the-form-cannot-be-opened-because-it-requires-the-domain-permission-level-log-id-5566-error?forum=sharepointcustomizationlegacy 
    http://stackoverflow.com/questions/3493405/do-i-really-need-to-encode-as-amp
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Failed to retrieve the data source in Business Objects Explorer

    I have built a universe with Designer suits and separate measurements of paramentros and bound by, ran on Web Intelligence, but when I try to use the Business Objects Explorer is reported the following message:
    Failed to retrieve the data source details.
    The creation of the data source object tree failed
    What should I do?

    There are two OSS notes about this error ;
    1411433
    1363777
    Also you can take a look at this service pack
    http://ftp1.businessobjects.com/outgoing/CMS/crXIwin_en_sp3.pdf
    cheers
    Tansu
    Edited by: tansu aksu on Jan 25, 2011 5:03 PM

  • Lock NOT set for: Archiving the data from a data target

    Dear Expert,
    I try to archive one of my info cube, when i start to write the Archive file the Free Space in the Archive folder not enough and it make the process error.
    Then i try to changes the Archive folder to another path with enough free space. But when i start to write the archive file with new variant this error message came up :
    ==============================================================
    An archiving run locks InfoProvider ZICCPS810 (archivation object BWCZICCP~0)
    Lock NOT set for: Archiving the data from a data target             
    InfoProvider ZICCPS810 could not be locked for an archiving session 
    Job cancelled after system exception ERROR_MESSAGE                  
    ==============================================================
    Please Help Me.
    Wawan S

    Hi Wawan,
    If the earlier archive session resulted in error, please try to invalidate the earlier session in archive management and try running archive job again.
    Hope this helps,
    Naveen

  • Query taking long time for EXTRACTING the data more than 24 hours

    Hi ,
    Query taking long time for EXTRACTING the data more than 24 hours please find the query and explain plan details below even indexes avilable on table's goe's to FULL TABLE SCAN. please suggest me.......
    SQL> explain plan for select a.account_id,round(a.account_balance,2) account_balance,
    2 nvl(ah.invoice_id,ah.adjustment_id) transaction_id,
    to_char(ah.effective_start_date,'DD-MON-YYYY') transaction_date,
    to_char(nvl(i.payment_due_date,
    to_date('30-12-9999','dd-mm-yyyy')),'DD-MON-YYYY')
    due_date, ah.current_balance-ah.previous_balance amount,
    decode(ah.invoice_id,null,'A','I') transaction_type
    3 4 5 6 7 8 from account a,account_history ah,invoice i_+
    where a.account_id=ah.account_id
    and a.account_type_id=1000002
    and round(a.account_balance,2) > 0
    and (ah.invoice_id is not null or ah.adjustment_id is not null)
    and ah.CURRENT_BALANCE > ah.previous_balance
    and ah.invoice_id=i.invoice_id(+)
    AND a.account_balance > 0
    order by a.account_id,ah.effective_start_date desc; 9 10 11 12 13 14 15 16
    Explained.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)|
    | 0 | SELECT STATEMENT | | 544K| 30M| | 693K (20)|
    | 1 | SORT ORDER BY | | 544K| 30M| 75M| 693K (20)|
    |* 2 | HASH JOIN | | 544K| 30M| | 689K (20)|
    |* 3 | TABLE ACCESS FULL | ACCOUNT | 20080 | 294K| | 6220 (18)|
    |* 4 | HASH JOIN OUTER | | 131M| 5532M| 5155M| 678K (20)|
    |* 5 | TABLE ACCESS FULL| ACCOUNT_HISTORY | 131M| 3646M| | 197K (25)|
    | 6 | TABLE ACCESS FULL| INVOICE | 262M| 3758M| | 306K (18)|
    Predicate Information (identified by operation id):
    2 - access("A"."ACCOUNT_ID"="AH"."ACCOUNT_ID")
    3 - filter("A"."ACCOUNT_TYPE_ID"=1000002 AND "A"."ACCOUNT_BALANCE">0 AND
    ROUND("A"."ACCOUNT_BALANCE",2)>0)
    4 - access("AH"."INVOICE_ID"="I"."INVOICE_ID"(+))
    5 - filter("AH"."CURRENT_BALANCE">"AH"."PREVIOUS_BALANCE" AND ("AH"."INVOICE_ID"
    IS NOT NULL OR "AH"."ADJUSTMENT_ID" IS NOT NULL))
    22 rows selected.
    Index Details:+_
    SQL> select INDEX_OWNER,INDEX_NAME,COLUMN_NAME,TABLE_NAME from dba_ind_columns where
    2 table_name in ('INVOICE','ACCOUNT','ACCOUNT_HISTORY') order by 4;
    INDEX_OWNER INDEX_NAME COLUMN_NAME TABLE_NAME
    OPS$SVM_SRV4 P_ACCOUNT ACCOUNT_ID ACCOUNT
    OPS$SVM_SRV4 U_ACCOUNT_NAME ACCOUNT_NAME ACCOUNT
    OPS$SVM_SRV4 U_ACCOUNT CUSTOMER_NODE_ID ACCOUNT
    OPS$SVM_SRV4 U_ACCOUNT ACCOUNT_TYPE_ID ACCOUNT
    OPS$SVM_SRV4 I_ACCOUNT_ACCOUNT_TYPE ACCOUNT_TYPE_ID ACCOUNT
    OPS$SVM_SRV4 I_ACCOUNT_INVOICE INVOICE_ID ACCOUNT
    OPS$SVM_SRV4 I_ACCOUNT_PREVIOUS_INVOICE PREVIOUS_INVOICE_ID ACCOUNT
    OPS$SVM_SRV4 U_ACCOUNT_NAME_ID ACCOUNT_NAME ACCOUNT
    OPS$SVM_SRV4 U_ACCOUNT_NAME_ID ACCOUNT_ID ACCOUNT
    OPS$SVM_SRV4 I_LAST_MODIFIED_ACCOUNT LAST_MODIFIED ACCOUNT
    OPS$SVM_SRV4 I_ACCOUNT_INVOICE_ACCOUNT INVOICE_ACCOUNT_ID ACCOUNT
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ACCOUNT ACCOUNT_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ACCOUNT SEQNR ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_INVOICE INVOICE_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ADINV INVOICE_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_CIA CURRENT_BALANCE ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_CIA INVOICE_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_CIA ADJUSTMENT_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_CIA ACCOUNT_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_LMOD LAST_MODIFIED ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ADINV ADJUSTMENT_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_PAYMENT PAYMENT_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ADJUSTMENT ADJUSTMENT_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_APPLIED_DT APPLIED_DATE ACCOUNT_HISTORY
    OPS$SVM_SRV4 P_INVOICE INVOICE_ID INVOICE
    OPS$SVM_SRV4 U_INVOICE CUSTOMER_INVOICE_STR INVOICE
    OPS$SVM_SRV4 I_LAST_MODIFIED_INVOICE LAST_MODIFIED INVOICE
    OPS$SVM_SRV4 U_INVOICE_ACCOUNT ACCOUNT_ID INVOICE
    OPS$SVM_SRV4 U_INVOICE_ACCOUNT BILL_RUN_ID INVOICE
    OPS$SVM_SRV4 I_INVOICE_BILL_RUN BILL_RUN_ID INVOICE
    OPS$SVM_SRV4 I_INVOICE_INVOICE_TYPE INVOICE_TYPE_ID INVOICE
    OPS$SVM_SRV4 I_INVOICE_CUSTOMER_NODE CUSTOMER_NODE_ID INVOICE
    32 rows selected.
    Regards,
    Bathula
    Oracle-DBA

    I have some suggestions. But first, you realize that you have some redundant indexes, right? You have an index on account(account_name) and also account(account_name, account_id), and also account_history(invoice_id) and account_history(invoice_id, adjustment_id). No matter, I will suggest some new composite indexes.
    Also, you do not need two lines for these conditions:
    and round(a.account_balance, 2) > 0
    AND a.account_balance > 0
    You can just use: and a.account_balance >= 0.005
    So the formatted query isselect a.account_id,
           round(a.account_balance, 2) account_balance,
           nvl(ah.invoice_id, ah.adjustment_id) transaction_id,
           to_char(ah.effective_start_date, 'DD-MON-YYYY') transaction_date,
           to_char(nvl(i.payment_due_date, to_date('30-12-9999', 'dd-mm-yyyy')),
                   'DD-MON-YYYY') due_date,
           ah.current_balance - ah.previous_balance amount,
           decode(ah.invoice_id, null, 'A', 'I') transaction_type
      from account a, account_history ah, invoice i
    where a.account_id = ah.account_id
       and a.account_type_id = 1000002
       and (ah.invoice_id is not null or ah.adjustment_id is not null)
       and ah.CURRENT_BALANCE > ah.previous_balance
       and ah.invoice_id = i.invoice_id(+)
       AND a.account_balance >= .005
    order by a.account_id, ah.effective_start_date desc;You will probably want to select:
    1. From ACCOUNT first (your smaller table), for which you supply a literal on account_type_id. That should limit the accounts retrieved from ACCOUNT_HISTORY
    2. From ACCOUNT_HISTORY. We want to limit the records as much as possible on this table because of the outer join.
    3. INVOICE we want to access last because it seems to be least restricted, it is the biggest, and it has the outer join condition so it will manufacture rows to match as many rows as come back from account_history.
    Try the query above after creating the following composite indexes. The order of the columns is important:create index account_composite_i on account(account_type_id, account_balance, account_id);
    create index acct_history_comp_i on account_history(account_id, invoice_id, adjustment_id, current_balance, previous_balance, effective_start_date);
    create index invoice_composite_i on invoice(invoice_id, payment_due_date);All the columns used in the where clause will be indexed, in a logical order suited to the needs of the query. Plus each selected column is indexed as well so that we should not need to touch the tables at all to satisfy the query.
    Try the query after creating these indexes.
    A final suggestion is to try larger sort and hash area sizes and a manual workarea policy.alter session set workarea_size_policy = manual;
    alter session set sort_area_size = 2147483647;
    alter session set hash_area_size = 2147483647;

  • What are the steps for using the backup files to reload data to my blackberry curve (8310, i think)?

    What are the steps for using the backup files to reload data to my blackberry curve (8310, i think)?

    Connect BB to PC. On 'Desktop Manager'>Backup & Restore tab>Click Restore. Double click .ipd file (backup file created from Desktop Manager).

Maybe you are looking for

  • Error while validating a BPF

    Hi Everyone, I am trying to create BPF as per the How to Guide given on SDN. While I am validating the BPF, it gives me below error - BPF: Error reading master data Invalid attribute name (P_Owner) in dimension (P_ACCT) When I check for the dimension

  • Include the Content Released status flag in default WC data control

    Hi, We have integrated custom webcenter portal application with UCM for documents integration. The integration was done using default data control.When we change the document which is getting displayed in the portal from UCM and check it into the sys

  • Cant get rid of download error message in garage band learn to play

    I had trouble downloading lessons 5 and 7 in the Blues Guitar learn to play.  I found a discussion addressing this, and was able to complete the down load by logging into the guest account.  I have all the lessons, but now I can't get rid of the erro

  • How to modify column width in sql output

    hi when i display phone number in the output in sql plus it is displaying as follows: SQL> select mobile_no from purchase_history; MOBILE_NO 9.1971E+11 how to correct it.....i tried with column format..but its still not working....

  • Logic error in for loop

    I have a JSP form which list modules that student can take. Some of these modules have prerequisite and some do not. In order to successfully register a student, I have a number of requirements e.g. must not be already register; the registration date