ORA-0 1033 Error- Immediate Help Needed!

Hello I am a student have little knowledge abt oracle. My Oracle failed to startup showing ORA-0 1033 error. and its just 3 days before my project submission. Please Help immediately. Here is what I tried ---
C:\>sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Dec 18 11:23:47 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> shu immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup force mount;
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 1248600 bytes
Variable Size 109052584 bytes
Database Buffers 176160768 bytes
Redo Buffers 7139328 bytes
Database mounted.
SQL> recover database;
ORA-00283: recovery session canceled due to errors
ORA-01122: database file 3 failed verification check
ORA-01110: data file 3: 'K:\ORACLE\PRODUCT\10.2.0\ORADATA\INDRA\SYSAUX01.DBF'
ORA-01207: file is more recent than control file - old control file
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01122: database file 3 failed verification check
ORA-01110: data file 3: 'K:\ORACLE\PRODUCT\10.2.0\ORADATA\INDRA\SYSAUX01.DBF'
ORA-01207: file is more recent than control file - old control file
If it can be restored anyhow do help. I dont have a backup of the database!

as i said i hv little knowledge abt oracle. I dont know if it was in archive log mode. how to find that out ! ... i think my oracle stopped working after an abnormal shutdown of the computer.
and, the file as you can see have the error --
ORA-01122: database file 3 failed verification check
ORA-01110: data file 3: 'K:\ORACLE\PRODUCT\10.2.0\ORADATA\INDRA\SYSAUX01.DBF'
any way to get this file restored??

Similar Messages

  • Error messages help need asap!!!!

    hi this is my code and I need help with what i need to do and how to do it to get rid of the error messages
    CREATE OR REPLACE FUNCTION
    no_of_task_types (x NUMBER)
    RETURN NUMBER IS
    my_val NUMBER;
    BEGIN
    SELECT COUNT(distinct t.task_type_no)
    INTO my_val
    FROM employee e, assignment a, task t
    WHERE e.employee_id = x
    AND e.employee_no = a.employee_no
    AND t.task_id = a.task_id
    RETURN tasktotal;
    END;
    SHOW ERRORS
    these are the error messages:
    Warning: Function created with compilation errors.
    Errors for FUNCTION NO_OF_TASK_TYPES:
    8/1     PL/SQL: SQL Statement ignored
    13/27     PL/SQL: ORA-00933: SQL command not properly ended

    Hi,
    Welcome to the forum!
    Don't say things like "urgent" or "asap" (as in your title, "error messages help need asap!!!!"). It's rude.
    971848 wrote:
    hi this is my code and I need help with what i need to do and how to do it to get rid of the error messages
    CREATE OR REPLACE FUNCTION
    no_of_task_types (x NUMBER)
    RETURN NUMBER IS
    my_val NUMBER;
    BEGIN
    SELECT COUNT(distinct t.task_type_no)
    INTO my_val
    FROM employee e, assignment a, task t
    WHERE e.employee_id = x
    AND e.employee_no = a.employee_no
    AND t.task_id = a.task_id
    RETURN tasktotal;
    END;
    SHOW ERRORS
    these are the error messages:
    Warning: Function created with compilation errors.
    Errors for FUNCTION NO_OF_TASK_TYPES:
    8/1     PL/SQL: SQL Statement ignored
    13/27     PL/SQL: ORA-00933: SQL command not properly endedIt looks like you're missing a semicolon at the end of line 13; that's why the statement beginning at line 8 can't be understood.
    Also, you store a number in my_val, but never use that number, and you have a variable called tasktotal that's never defined. Should my_val and tasktotal be the same variable?
    Perhaps this is what you want:
    CREATE OR REPLACE FUNCTION
           no_of_task_types (x NUMBER)
    RETURN NUMBER IS
        tasktotal   NUMBER;
    BEGIN
        SELECT  COUNT(distinct t.task_type_no)
        INTO    tasktotal
        FROM    employee e, assignment a, task t
        WHERE   e.employee_id = x
        AND     e.employee_no = a.employee_no
        AND     t.task_id        = a.task_id;          -- ; at end is important
        RETURN tasktotal;
    END;
    /This question doesn't have anything to do with SQL*Plus, so maybe the SQL*Plus forum isn't the best place for it. This is strictly a PL/SQL problem; in the future, post questions like this in the PL/SQL. The FAQ page for that forum, {message:id=9360002} , can really help you.

  • Messaging:System Error(-10)HELP NEEDED!NEED BEFORE...

    Messaging: System Error(-10) [Nokia N70] URGENT HELP NEEDED! - NEEDE BEFORE WED 21ST MAY '08 - BUT HELP OTHERWISE APPRECIATED!______________________________
    Hey,
    I need this help before Wednesday 21st May 2008 as I am going abroad and urgently need my phone. I have had my phone for just over a year now and I have never had any problems with it up until now.... Think you can help...?
    This is the scenario. My messages are saved under my nokia N70's MMC memory card and when I get a message there are a number of problems.
    1) My phone does not vibrate or alert me when a message comes in. I have checked my profile settings and they are all up to volume.
    2) When the messages come through they are not displayed on the main window of the phone as "1 New Message Received" but in the top corner with a little envelope icon. I know the icon normally comes up but the "1 New messge received part doesn't come up.
    3)When "1 New Message Reveived" is not displayed on the main window I go into the "INBOX". When I click inbox on "Messaging" the phone displays an error saying: Messaging: System Error(-10) with a red exclamaion mark. The I can not write any messages, view sent, or drafts.
    I have tried to change me message settings by going on "Messaging"> Left Click "Settings" > "Other" > "Memory in use" and selected "Phone Memory". This works but then my I looses all my previous messages.
    4)My phone is also dead slow. I click menu and it takes at least five minutes to load menu.
    IF YOU COULD HELP ME ON ANY OF THESE ISSUES I WOULD BE MAJORLY GREATFUL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Thanks Soo Much,
    Robert__________

    U said in another post u've tried all my solutions = =?
    On that post its for Nokia N95 u kno? Although the problem is similar, but different phone model can lead to quite different solutions.
    Are u sure u tried all my solutions?
    have u tried this?:
    /discussions/board/message?board.id=messaging&message.id=7926#M7926
    Also format ur memory card, do not use content copier! dont install too much softwares, as ur phone model is old and doesnt have much space.
    This is from NOkia, sometimes does work depending on ur situation:
    Memory low
    Q: What can I do if my device memory is low?
    A: You can delete the following items regularly to avoid
    memory getting low:
    • Messages from Inbox, Drafts, and Sent folders in Messaging
    • Retrieved e-mail messages from the device memory
    • Saved browser pages
    • Images and photos in Gallery
    To delete contact information, calendar notes, call timers, call cost timers, game scores, or any other data, go to the respective application to remove the data. If you are deleting multiple items and any of the following notes are shown: Not enough memory to perform operation. Delete some data first. or Memory low. Delete some data., try deleting items one by one (starting from the smallest item).
    use device status http://handheld.softpedia.com/get/Desktop-and-Shell/Windows/Nokia-Device-Status-57673.shtml
    to maybe let me see what u got on ur phone (by saving/exporting report).
    Make sure u have the latest firmware! Updating firmware is like a hard reset but also upgrade.
    Message Edited by goldnebula on 20-May-2008 02:05 PM

  • Runtime Error in File Preview of RH7 - Immediate help needed!

    Dear all,
    we're working on a RoboHelp 7 project under version control.
    Today we encountered a major issue with ur project/database. When opening files in the preview window, they are displayed without error. As soon you click on a link within this file that leads to another HTML file, you get a pop-up with a runtime error message. You're asked either to debug or not. Selecting no displays a second runtime error with the same question. After also declining, you get to the selected HTML file.
    We have two major sorts of files: Chapter overview pages and topic files. Both are based on the same Style Sheet (CSS) and template. For the overview files the layout is just changed a bit when you create the file. Further there are some extra files don't use the template.
    Now I recognized some kind of logic:
    - When you open an overview-file, the two pop-ups always refer to runtime errors in line 46 and 49.
    - When you open a topic file, the two pop-ups always refer to runtime errors in line 50 and 53.
    - When you open a file that is blank and not based on the template, there's no error.
    Until now, the error never occured. But since today (or maybe last week und we didn't recognize), this error comes up even for files that were created months ago and never had an error before. They were changed today automatically when a renamed a chapter. Even within our "clean and working" backups we now encounter this error.
    Questions:
    - Can anyone explain, what a runtime error is at all?
    - My assumption is, that it has something to do with the CSS or template, but I'm not sure. What can be wrong there?
    - To what lines do the specifications in the pop-up refer to? Where can I find those lines?
    As we are in a very critical project phase, I really need your assistance for a quick and effective solution. Please help me as soon as possible!! Thanks!!

    Hi Tom
    Here is my own educated guess.
    When you have links of any type in a HTML document, a calculation has to occur at the time they are created. The application has to calculate where the linked item is in relation to the existing page. Then HTML shorthand is created to navigate. Up a folder level is ../ and up two folder levels is ../../. Stuff like that.
    Popups are a different story. While you are still creating links, these beasties are actually handled using JavaScript. So the path is supplied in the call to the JavaScript.
    As if that weren't complex enough, we now toss Headers and Footers into the mix. Headers and Footers are tied to the Master Page. The Master Page is always in the root level of the project. Links in a Header and Footers often break because of the assorted locations of HTML pages if you are using folders to organize your project. So when you create the link initially as part of the Master Page, things are dandy and as long as the topic is in the project root folder (same as the Master Page) things would likely work fine. But if that Master Page is associated with a topic inside a folder level or two down, things can go to pot in a hurry! (Where are we all headed? And what's with the handbasket?)
    Hopefully this helps shed some possible explanation... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Error ORA-02070:  while creating view - Help Needed.

    ISSUE:
    ~~~~~
    When i am creating the view for the below SQL script I am getting the error as
    ==>ORA-02070:DATABASE DOES NOT SUPPORT OPERATOR NLS_CHARSET_DECL_LEN in this context <==
    Sql script
    ~~~~~~~
    create or replace view test11 as
    WITH x AS
    (SELECT column_name,
    DECODE (column_id, 7,to_char(eff_to_dt,'MMDDRRRR'),
                                       8,active_flg,
                                       9,nm_long,
                                       10,nm_short,
                                       11,rplcmnt_bu_id,
                                       12,pc_cc_cd,
                                       13,tax_cd,
                                       14,bu_type_cd,
                                       15,ledger_cd) COL_VAL_NEW,
    '' COL_VAL_OLD,
                                       fre_id,
                                       bu_id,
    eff_from_dt,
    rec_eff_from_dt,
                                       rec_type
    FROM BUSINESS m, all_tab_columns u
    WHERE table_name = 'BUSINESS'
    AND column_name in ('EFF_TO_DT'
    ,'ACTIVE_FLG'
    ,'NM_LONG'
    ,'NM_SHORT'
    ,'RPLCMNT_BU_ID'
    ,'PC_CC_CD'
    ,'TAX_CD'
    ,'BU_TYPE_CD'
    ,'LEDGER_CD')
    AND rec_type ='A'
    ORDER BY rec_eff_from_dt
    y as
    (SELECT column_name,
    DECODE (column_id, 7,to_char(eff_to_dt,'MMDDRRRR'),
                                       8,active_flg,
                                       9,nm_long,
                                       10,nm_short,
                                       11,rplcmnt_bu_id,
                                       12,pc_cc_cd,
                                       13,tax_cd,
                                       14,bu_type_cd,
                                       15,ledger_cd) COL_VAL_NEW,
    '' COL_VAL_OLD,
                                       fre_id,
                                       bu_id,
    eff_from_dt,
    rec_eff_from_dt,
                                       rec_type
    FROM BUSINESS m, all_tab_columns u
    WHERE table_name = 'BUSINESS'
    AND column_name in ('EFF_TO_DT'
    ,'ACTIVE_FLG'
    ,'NM_LONG'
    ,'NM_SHORT'
    ,'RPLCMNT_BU_ID'
    ,'PC_CC_CD'
    ,'TAX_CD'
    ,'BU_TYPE_CD'
    ,'LEDGER_CD')
    AND rec_type <> 'A'
    ORDER BY rec_eff_from_dt
    a as (select y.column_name,
    y.col_val_new,
    x.col_val_new col_val_old,
    y.fre_id,
    y.bu_id,
    y.eff_from_dt,
    min(y.rec_eff_from_dt),
    y.rec_type
    from y, x
    where (y.fre_id = x.fre_id and y.bu_id = x.bu_id and y.eff_from_dt = x.eff_from_dt and y.column_name = x.column_name
    and nvl(y.col_val_new,'^') <> nvl(x.col_val_new,'~') and y.rec_type ='C')
    group by y.column_name,
    y.col_val_new,
    x.col_val_new,
    y.fre_id,
    y.bu_id,
    y.eff_from_dt,
    y.rec_type)
    select * from a
    union all
    select y.column_name,
    y.col_val_new,
    x.col_val_new,
    y.fre_id,
    y.bu_id,
    y.eff_from_dt,
    min(y.rec_eff_from_dt),
    y.rec_type
    from y, x
    where (y.fre_id = x.fre_id and y.bu_id = x.bu_id and y.eff_from_dt = x.eff_from_dt and y.column_name = x.column_name
    and y.col_val_new = x.col_val_new and y.rec_type ='D')
    group by y.column_name,
    y.col_val_new,
    x.col_val_new,
    y.fre_id,
    y.bu_id,
    y.eff_from_dt,
    y.rec_type
    union all
    SELECT column_name,
    DECODE (column_id, 7,to_char(eff_to_dt,'MMDDRRRR'),
                                       8,active_flg,
                                       9,nm_long,
                                       10,nm_short,
                                       11,rplcmnt_bu_id,
                                       12,pc_cc_cd,
                                       13,tax_cd,
                                       14,bu_type_cd,
                                       15,ledger_cd) COL_VAL_NEW,
    '' COL_VAL_OLD,
                                       fre_id,
                                       bu_id,
    eff_from_dt,
    rec_eff_from_dt,
                                       rec_type
    FROM BUSINESS m, all_tab_columns u
    WHERE table_name = 'BUSINESS'
    AND column_name in ('EFF_TO_DT'
    ,'ACTIVE_FLG'
    ,'NM_LONG'
    ,'NM_SHORT'
    ,'RPLCMNT_BU_ID'
    ,'PC_CC_CD'
    ,'TAX_CD'
    ,'BU_TYPE_CD'
    ,'LEDGER_CD')
    AND rec_type ='A'
    The sql script is nothing but to compare the record to get the attribute level changes.
    Please help me out why the error is being caused.
    Thanks in advance.

    Is one of the used table/view referencing a non-Oracle database with a database link ?
    ORA-02070: database [i]stringstring does not support string in this context
    Cause: The remote database does not support the named capability in the context in which it is used.
    Action: Simplify the SQL statement.

  • Ipod wont restore says uknown error 1418 [[HELP NEEDED]]

    my ipod use to work then it stopped working one day
    then i got it to work again somehow.
    now it wont work again
    i need help please. i have tried everything and done everything to try to fix my problem.
    I'm in need of a genious

    Yesterday I was getting the blinking green/amber lights with my shuffle (512Mb).
    After I couldn't get it to reset (with 5 sec. on/off) I plugged it into the computer. Saw that iTunes 6.x wouldn't see it and tried to run the updater. No luck.
    Figured it was as good a time as any to update to iTunes 7. Still no luck. It sees the iPod but says it needs to be restored. When I try, I get the error 1418.
    So, I figured I'd attempt to see if I can find out what's going on. I boot up a Linux live CD and take a look at the drive partition tables. (Figuring I may just reformat the thing and either fix it, or at least end up with a 512Mb flash drive).
    gParted sees the device (interestingly as 1019.75Mb - wondering if they all were the same, but just partitioned differently).
    When I try to repartition, it fails when attempting to assign a drive label.
    I then plugged an old 128Mb flash drive into another usb port and attempted to do a brute force copy:
    dd if=/dev/sda of=/dev/sdb
    where /dev/sda was the 128Mb drive and /dev/sdb was the shuffle.
    It failed with an Input/Output error at 0 bytes.
    I found some others who seem to have had the same problem (drive just going bad out of nowhere) when I googled for "repartition ipod shuffle" (no quotes). Seems the flash drive can just go bad just sitting there. I'll keep trying, but I don't have my hopes up.
    The new shuffle looks nice, but I can't say this leaves me very impressed. Mine was only about 15 months old (of course past warranty) and pretty gently used.
    Shuffle 512   Windows XP Pro  

  • Jacob.jar Help/Webutil Error-Urgent Help Needed

    We are not using any OLE object in forms.But after implementation on WEBUTIL the browser starts giving below error:
    java.lang.NoClassDefFoundError:com/jacob/com/ComFailException
    Can anyone help ?
    Is jacob.jar is required to download even if we don't need it.
    Thanks
    Mandeep Singh

    Thanks for quick response.
    But my question is do we need to config jacob lib even we dn't need it.I am asking this because with this release of WEBUTIL,jacob is a seperate lic. product and its not a part of WEBUTIL pack.
    Thanks

  • ABAP Error. Help needed ASAP

    Hi Gurus,
    I am trying to write an ABAP statement for the below requirement.
    Function has two import parameters. 1. key and 2. date.
                                Export parameter: export_rec like TAB.
    Req:  I need to select a record from a table where key = input parameter and input date lies between the from and to date fields in the table. (since table is time dependent).
    EXPORT_REC like TAB,
    I_T_TAB like TAB OCCURS 0 WITH HEADER LINE.
    SELECT  SINGLE * FROM I_T_TAB INTO EXPORT_REC WHERE KEY = IMPORT_ PARAMETER AND IMPORT_PARAM_DATE BETWEEN FROM_DATE AND TO_DATE.
    But, I am getting errors. It says the I_T_TAB is not defined in the Abap dictionary as table, view or projection.
    I defined it as an internal table. But, even then I am getting this error.
    Can anyone please help me out with this issue,
    Thanks,
    Regards,
    aarthi
    [email protected]

    Hi
    From you code i understand that I_T_TAB is the internal table that fetch data from the SAP table TAB.
    So, the reason for the error statement is because of the Select statement.
    The select statement is used to fetch data from SAP table TAB.
    So your select statement should look like this...
    SELECT SINGLE * FROM TAB INTO I_T_TAB
    WHERE key = import_ PARAMETER
    AND import_param_date BETWEEN from_date AND to_date.
    IF sy-subrc = 0.
      MOVE-CORRESPONDING i_t_tab TO export_rec.
    ENDIF.
    If you are trying to fetch data from the internal table I_T_TAB &
    append the export parameter EXPORT_REC then you should use the READ statement.
    READ TABLE i_t_tab WITH KEY key = import_ parameter
    and import_param_date between from_date and to_date.
    IF sy-subrc = 0.
      MOVE-CORRESPONDING i_t_tab TO export_rec.
      APPEND export_rec.
    ENDIF.
    Hope this helps!
    best regards,
    Thangesh

  • DiskSpace Report Alert Error - Urgently Help Needed

    Hell All
    I have been take the scripts from https://gallery.technet.microsoft.com/scriptcenter/Disk-Space-Report-Reports-98e64d65
    Which is working fine , but my end of scripts out Auto Disclaimer is added and the output has little bit collapsed
    Disclaimer HAS BEEN added to the waring and critical Table which is mentioned on this script which is underlined now. and how avoid this 
    Urgent help is needed
    #  Check disk space and send an HTML report as the body of an email.        #
    #  Reports only disks on computers that have low disk space.                #
    #  Author: Mike Carmody                                                     #
    #  Some ideas extracted from Thiyagu's Exchange DiskspaceHTMLReport module. #
    #  Date: 8/10/2011                                                          #
    #  I have not added any error checking into this script yet.                #
    # Continue even if there are errors
    $ErrorActionPreference = "Continue";
    # Items to change to make it work for you.
    # EMAIL PROPERTIES
    #  - the $users that this report will be sent to.
    #  - near the end of the script the smtpserver, From and Subject.
    # REPORT PROPERTIES
    #  - you can edit the report path and report name of the html file that is the report. 
    # Set your warning and critical thresholds
    $percentWarning = 15;
    $percentCritcal = 10;
    # EMAIL PROPERTIES
    # Set the recipients of the report.
    $users = "[email protected]"
      #$users = "[email protected]" # I use this for testing by uing my email address.
    #$users = "[email protected]", "[email protected]", "[email protected]";  # can be sent to individuals.
    # REPORT PROPERTIES
    # Path to the report
    $reportPath = "D:\Jobs\DiskSpaceQuery\Reports\";
    # Report name
    $reportName = "DiskSpaceRpt_$(get-date -format ddMMyyyy).html";
    # Path and Report name together
    $diskReport = $reportPath + $reportName
    #Set colors for table cell backgrounds
    $redColor = "#FF0000"
    $orangeColor = "#FBB917"
    $whiteColor = "#FFFFFF"
    # Count if any computers have low disk space.  Do not send report if less than 1.
    $i = 0;
    # Get computer list to check disk space
    $computers = Get-Content "servers_c.txt";
    $datetime = Get-Date -Format "MM-dd-yyyy_HHmmss";
    # Remove the report if it has already been run today so it does not append to the existing report
    If (Test-Path $diskReport)
            Remove-Item $diskReport
    # Cleanup old files..
    $Daysback = "-7"
    $CurrentDate = Get-Date;
    $DateToDelete = $CurrentDate.AddDays($Daysback);
    Get-ChildItem $reportPath | Where-Object { $_.LastWriteTime -lt $DatetoDelete } | Remove-Item;
    # Create and write HTML Header of report
    $titleDate = get-date -uformat "%m-%d-%Y - %A"
    $header = "
    <html>
    <head>
    <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
    <title>DiskSpace Report</title>
    <STYLE TYPE='text/css'>
    <!--
    td {
    font-family: Tahoma;
    font-size: 11px;
    border-
    border-right: 1px solid #999999;
    border-bottom: 1px solid #999999;
    border-
    padding-
    padding-right: 0px;
    padding-bottom: 0px;
    padding-
    body {
    margin-
    margin-
    margin-right: 0px;
    margin-bottom: 10px;
    table {
    border: thin solid #000000;
    -->
    </style>
    </head>
    <body>
    <table width='100%'>
    <tr bgcolor='#CCCCCC'>
    <td colspan='7' height='25' align='center'>
    <font face='tahoma' color='#003399' size='4'><strong>AEM Environment DiskSpace Report for $titledate</strong></font>
    </td>
    </tr>
    </table>
     Add-Content $diskReport $header
    # Create and write Table header for report
     $tableHeader = "
     <table width='100%'><tbody>
    <tr bgcolor=#CCCCCC>
        <td width='10%' align='center'>Server</td>
    <td width='5%' align='center'>Drive</td>
    <td width='15%' align='center'>Drive Label</td>
    <td width='10%' align='center'>Total Capacity(GB)</td>
    <td width='10%' align='center'>Used Capacity(GB)</td>
    <td width='10%' align='center'>Free Space(GB)</td>
    <td width='5%' align='center'>Freespace %</td>
    </tr>
    Add-Content $diskReport $tableHeader
    # Start processing disk space reports against a list of servers
      foreach($computer in $computers)
    $disks = Get-WmiObject -ComputerName $computer -Class Win32_LogicalDisk -Filter "DriveType = 3"
    $computer = $computer.toupper()
    foreach($disk in $disks)
    $deviceID = $disk.DeviceID;
            $volName = $disk.VolumeName;
    [float]$size = $disk.Size;
    [float]$freespace = $disk.FreeSpace; 
    $percentFree = [Math]::Round(($freespace / $size) * 100, 2);
    $sizeGB = [Math]::Round($size / 1073741824, 2);
    $freeSpaceGB = [Math]::Round($freespace / 1073741824, 2);
            $usedSpaceGB = $sizeGB - $freeSpaceGB;
            $color = $whiteColor;
    # Set background color to Orange if just a warning
    if($percentFree -lt $percentWarning)      
      $color = $orangeColor
    # Set background color to Orange if space is Critical
          if($percentFree -lt $percentCritcal)
            $color = $redColor
     # Create table data rows 
        $dataRow = "
    <tr>
            <td width='10%'>$computer</td>
    <td width='5%' align='center'>$deviceID</td>
    <td width='15%' >$volName</td>
    <td width='10%' align='center'>$sizeGB</td>
    <td width='10%' align='center'>$usedSpaceGB</td>
    <td width='10%' align='center'>$freeSpaceGB</td>
    <td width='5%' bgcolor=`'$color`' align='center'>$percentFree</td>
    </tr>
    Add-Content $diskReport $dataRow;
    Write-Host -ForegroundColor DarkYellow "$computer $deviceID percentage free space = $percentFree";
        $i++
    # Create table at end of report showing legend of colors for the critical and warning
     $tableDescription = "
     </table><br><table width='20%'>
    <tr bgcolor='White'>
        <td width='10%' align='center' bgcolor='#FBB917'>Warning less than 15% free space</td>
    <td width='10%' align='center' bgcolor='#FF0000'>Critical less than 10% free space</td>
    </tr>
      Add-Content $diskReport $tableDescription
    Add-Content $diskReport "</body></html>"
    # Send Notification if alert $i is greater then 0
    if ($i -gt 0)
        foreach ($user in $users)
            Write-Host "Sending Email notification to $user"
    $smtpServer = "MySMTPServer"
    $smtp = New-Object Net.Mail.SmtpClient($smtpServer)
    $msg = New-Object Net.Mail.MailMessage
    $msg.To.Add($user)
            $msg.From = "[email protected]"
    $msg.Subject = "Environment DiskSpace Report for $titledate"
            $msg.IsBodyHTML = $true
            $msg.Body = get-content $diskReport
    $smtp.Send($msg)
            $body = ""
    https://gallery.technet.microsoft.com/scriptcenter/Disk-Space-Report-Reports-98e64d65

    Hi,
    I want to double confirm which version are you used, please also refer to scripting center for the similar scripts:
    Disk Space Monitoring - HTML EMAIL Report
    http://gallery.technet.microsoft.com/scriptcenter/6e935887-6b30-4654-b977-6f5d289f3a63
    Monitor Free Disk Space Information on a Computer
    http://gallery.technet.microsoft.com/scriptcenter/04c29c84-5ecc-4bf6-8dd4-2940db63d9f3
    List Available Disk Space
    http://gallery.technet.microsoft.com/scriptcenter/7fa38863-ad6f-4f46-ac91-9b7d4a30f52b
    Disk Space monitoring
    http://gallery.technet.microsoft.com/scriptcenter/fd4f5235-1a80-41ed-87e2-189278fd376c
    If you encounter any difficulties when customizing the scripts, you may submit a new question in
    The Official Scripting Guys Forum! which is a best resource for scripting related issues.
    Best Regards,
    Allen Wang

  • Please - immediate help needed parsing csv values into multiple rows

    Hello, we have a very immediate need to be able to parse out a field of comma separated values into individual rows. The following is an example written in SQL Server syntax which does not work in Oracle.
    The tricky part is that each ROUTES can be a different length, and each CSV can have a different number of routes in it.
    Here is an example of the table ("Quotes") of CSV values I want to normalize:
    TPNUMBER ROUTES
    1001 1, 56W, 18
    1002 2, 16, 186, 28
    Here is an example of what I need it to look like:
    TPNUMBER ROUTES
    1001 1
    1001 56W
    1001 18
    1002 2
    1002 16
    1002 186
    1002 28
    Here is the "Tally" table for the query below:
    ID
    1
    2
    3
    4
    5
    6
    7
    And finally, here is the query which parses CSV values into multiple rows but which does not work in Oralce:
    SELECT TPNUMBER,
    NullIf(SubString(',' + ROUTES + ',' , ID , CharIndex(',' , ',' + ROUTES + ',' , ID) - ID) , '') AS ONEROUTE
    FROM Tally, Quotes
    WHERE ID <= Len(',' + ROUTES + ',') AND SubString(',' + Phrase + ',' , ID - 1, 1) = ','
    AND CharIndex(',' , ',' + ROUTES + ',' , ID) - ID > 0
    It may be necessary to use a cursor to loop through the CSV table and process each row (a loop within another loop...) but this is beyond my comprehesion of PL/SQL.
    Many thanks in advance for your advice/help.
    apk

    Not sure what you are trying to do with the last step, but this should work for the first part. I assume you would use sqlldr but I just did inserts instead. You might need more than 5 "routes" in the csv. You could put some reasonable max on that number of columns:
    SQL>create table t_csv
    2 (TPNUMBER varchar2(20),
    3 ROUTE_1 VARCHAR2(5),
    4 ROUTE_2 VARCHAR2(5),
    5 ROUTE_3 VARCHAR2(5),
    6 ROUTE_4 VARCHAR2(5),
    7 ROUTE_5 VARCHAR2(5),
    8 ROUTE_6 VARCHAR2(5) );
    Table created.
    SQL>INSERT INTO t_csv (TPNUMBER,ROUTE_1,ROUTE_2) values( '1001 1', '56W', '18' );
    1 row created.
    SQL>INSERT INTO t_csv (TPNUMBER,ROUTE_1,ROUTE_2,ROUTE_3) values( '1002 2', '16', '186', '28');
    1 row created.
    SQL>create table t_quotes(
    2 tpnumber NUMBER,
    3 routes VARCHAR2(5));
    Table created.
    SQL>DECLARE
    2 L_tpnumber NUMBER;
    3 L_route VARCHAR2(5);
    4 begin
    5 for rec in (select * from t_csv) loop
    6 L_tpnumber := SUBSTR(rec.tpnumber,1,INSTR(rec.tpnumber,' ')-1);
    7 L_route := SUBSTR(rec.tpnumber,INSTR(rec.tpnumber,' ')+1);
    8 insert into t_quotes values( L_tpnumber, l_route );
    9 if rec.route_1 is not null then
    10 insert into t_quotes values( L_tpnumber, rec.route_1 );
    11 end if;
    12 if rec.route_2 is not null then
    13 insert into t_quotes values( L_tpnumber, rec.route_2 );
    14 end if;
    15 if rec.route_3 is not null then
    16 insert into t_quotes values( L_tpnumber, rec.route_3 );
    17 end if;
    18 if rec.route_4 is not null then
    19 insert into t_quotes values( L_tpnumber, rec.route_4 );
    20 end if;
    21 if rec.route_5 is not null then
    22 insert into t_quotes values( L_tpnumber, rec.route_5 );
    23 end if;
    24 end loop;
    25 end;
    26 /
    PL/SQL procedure successfully completed.
    SQL> select tpnumber, routes from t_quotes;
    TPNUMBER ROUTE
    1001 1
    1001 56W
    1001 18
    1002 2
    1002 16
    1002 186
    1002 28
    7 rows selected.

  • MAC OS-X Lion and Error 51 - Help Needed ASAP Please

    Greetings,
    I have been using the Cisco VPN Client (4.9.01) for Mac under Snow Leopard (10.6.x) without any issues.
    Since upgrading to Lion earlier today I am now receiving an Error 51 - unable to communicate with the subsystem.
    I found a thread that suggested restarting the system while holding down Opt/3/2 keys to force a 32-Bit restart and the Client will indeed run. However, this is a bandaid patch.
    Has Cisco addressed this issue? Is there a better workaround at this time?
    Thank you,
    Lyman

    Hello Robert,
    In Windows 7 you would need to use the Cisco IPsec client which operates the same way as it does in XP with regards to the pcf.  So I am not sure why you are having trouble with Win7, if you are still having trouble with Win7 using the Cisco IPsec client please start a new thread for that specific issue as it is separate and distinct from Mac OS X and using the Mac OS X built in client.
    Did you follow this guide:
    http://anders.com/guides/native-cisco-vpn-on-mac-os-x/
    Thanks tomas.truchly.
    I have not heard of an issue with the Mac OS X Built-in client when properly configured and when the head-end has the security levels necessary.
    Also, since this thread has been Answered, to help ensure you get the help you need it might be best to open a new thread.
    -Craig

  • Undefined Error Preloader Help Needed

    My AS 1.0 preloader code was set to work just fine using
    Flash 6 in AS 1.0 and now I'm using the same code with a few slight
    updates I've added for AS 2.0 in Flash 8 and still having problems
    with an "undefined" error. I'm obviously missing something with
    variables.., yes?
    Thanks to anyone who can shed some light on this problem!

    Simon,
    Thanks for your help, but it looks like my code is working
    fine as I had it after some additional testing. Please note that
    while I appreciated your intention to help... I need to warn others
    that the link you've used in there has a sample display with
    inappropriate material.
    TO OTHERS: Please replace the following line: loadContent("
    http://www.designbyclouds.com/pics/banksy_paris.jpg");
    with your own link.

  • Capture error - Expert help needed

    Hi All,
    I am currently using Asynchronous HotLog Publishing and i am getting the following error under DBA_CAPTURE process
    ORA-01291: missing logfile
    ORA-06512: at "SYS.DBMS_CAPTURE_ADM_INTERNAL", line 842
    ORA-06512: at "SYS.DBMS_CAPTURE_PROCESS", line 397
    ORA-06512: at line 1
    When i do few sql queries like
    SELECT capture_name, queue_name, queue_owner, status FROM all_capture;
    ==status for the queue is "ABORTED"
    SELECT * FROM v$logmnr_logs
    ===This returns no rows.....
    Any help would be appreciated.
    Thanks,
    Sam.

    In what version?
    Did it ever run correctly? Or did it fail during creation?
    This is the AQ forum not the Streams forum. Are you asking about Change Data Capture or something else? Either way it is not AQ.
    If CDC then look here:
    http://www.psoug.org/reference/cdc_demo2.html
    If you are still having issue post to the correct "Streams" thread for help.

  • Error #2099 - Help Needed

    Hello All,
    This is my first post here at Adobe.com and I hope that I am posting in the right place.
    I have been attending college and have been working out of a book "Adobe Flash CS5: The Professional Portfolio" by Against the Clock amd I seem to be running into trouble. Im on Project 8, which has a main "website" page and a "UILoader" that calls swf files from a directory within the project.
    ALSO I am using CS5.5 Web Premium Programs.
    Well this is the error:
    Error: Error #2099: The loading object is not sufficiently loaded to provide this information.
        at flash.display::LoaderInfo/get loader()
        at fl.display::ProLoader/get realLoader()
        at fl.display::ProLoaderInfo()
        at fl.display::ProLoader()
        at fl.containers::UILoader/initLoader()
        at fl.containers::UILoader/load()
        at fl.containers::UILoader/set source()
        at seabreeze_fla::MainTimeline/__setProp_homeContent_Scene1_PageContents_0()
        at seabreeze_fla::MainTimeline/frame1()
    and this is the main page UILoader Pointing to the Directory
    import flash.events.MouseEvent;
    stop();
    home_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    passes_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    plan_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    attractions_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    group_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    about_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    guests_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    join_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    contact_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    new_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    specials_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    calendar_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    group2_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    passes2_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    function browse(event:MouseEvent):void {
        switch (event.target.name) {
            case "home_btn" : gotoAndStop("home");
            break;
            case "passes_btn" : gotoAndStop("passes");
            PageHead.text = "Buy Passes Online";
            break;
            case "plan_btn" : gotoAndStop("plan");
            PageHead.text = "Plan Your Visit";
            break;
            case "attractions_btn" : gotoAndStop("attractions");
            PageHead.text = "Attractions";
            break;
            case "group_btn" : gotoAndStop("group");
            PageHead.text = "Group Sales";
            break;
            case "about_btn" : gotoAndStop("about");
            PageHead.text = "About the Park";
            break;
            case "guests_btn" : gotoAndStop("guests");
            PageHead.text = "Our Guests Say...";
            break;
            case "join_btn" : gotoAndStop("join");
            PageHead.text = "Join Club Seabreeze";
            break;
            case "contact_btn" : gotoAndStop("contact");
            PageHead.text = "Contact Us";
            break;
            case "new_btn" : gotoAndStop("new");
            PageHead.text = "What's New";
            break;
            case "specials_btn" : gotoAndStop("specials");
            PageHead.text = "Special Offers";
            break;
            case "calendar_btn" : gotoAndStop("calendar");
            PageHead.text = "Park Calendar";
            break;
            case "group2_btn" : gotoAndStop("group");
            PageHead.text = "Group Sales";
            break;
            case "passes2_btn" : gotoAndStop("passes");
            PageHead.text = "Buy Passes Online";
            break;
    The Main Code^ was working and still is, but the UILoader seems to not be gathering the nessesary files.
    --->>>>
    This is where the main "seabreeze" file is located and the Children Folder that I am Calling files from.
    I hope that I am not going over board with this, and I have recieved a good grade for this even with this error, but I would like to actully "understand" what is going on here.
    Thanks in advance,
    Aaron W.

    Ned Murphy wrote:
    I don't normally use components so I haven't much to offer in the way of helping when they seem to go bad.  What you might try instead of using the UILoader is to use the Loader class and have your content added via using code.
    // frame 1 code
    var ldr:Loader = new Loader();   // used "ldr", but could have named it whatever
    ldr.x = ?;                             // use the x location of the current UILoader for the ?
    ldr.y = ?;                             // use the y location of the current UILoader for the ?
    addChild(ldr);
    ldr.load(new URLRequest("Children/home.swf"));
    next section...
    // frame 5 code
    ldr.load(new URLRequest("Children/passes.swf"));
    etc...
    Wow, what a BIG help Mr. Murphy! I was thrilled to at least see the content on the Home page of the website. The only problem that I am having now is that the new Loader is not defined by a Width or a Height in AS3, so the flash file gathered is not resized down to the content area. I am guessing that I will just need to resize the *.swf files in the Children folder, BUT is there a way to define the .w and .h of the Loader? I have tried ldr.w and ldr.h but was not successful.
    Although this is not the solution for the UILoader, the Loader AS3 is a great alternative to display content from a local directory. Thanks for the very Helpful Awnser and the code works like a charm, just need legenth and width parameters.

  • Problem with utl_smtp.write_data - immediate help needed

    Hi,
    I have a sql code that generates a .csv file and sends it as an attachment through utl_smtp.
    Everything works fine but the .csv file's header gets broken after certain characters..wondering why this is happening..pls help.
    Please find my code below:
    SET define off;
    DECLARE
    --CURSOR VARIABLES
    v_meter_count NUMBER := 0;
    v_meter_max_count NUMBER := 0;
    v_sysdate DATE := TRUNC (SYSDATE);
    --MAIL VARIABLES
    v_run_date DATE := TRUNC (SYSDATE);
    crlf CONSTANT VARCHAR2 (10) := UTL_TCP.crlf;
    boundary CONSTANT VARCHAR2 (256)
    := '-----7D81B75CCC90D2974F7A1CBD';
    first_boundary CONSTANT VARCHAR2 (256) := '--' || boundary || crlf;
    last_boundary CONSTANT VARCHAR2 (256)
    := '--' || boundary || '--' || crlf;
    multipart_mime_type CONSTANT VARCHAR2 (256)
    := 'multipart/mixed; boundary="' || boundary || '"';
    conn UTL_SMTP.connection;
    from_name VARCHAR2 (255) := 'Nielsen Online';
    from_address VARCHAR2 (255)
    := '[email protected]';
    to_address VARCHAR2 (255)
    := '[email protected]';
    subject VARCHAR2 (255) := '';
    mime_type VARCHAR2 (255) := 'text/plain';
    attachment_file_name VARCHAR2 (255) := NULL;
    mailhost VARCHAR2 (255) := '127.0.0.1';
    --PANELISTS' DETAILS CURSOR
    CURSOR tam_panelists
    IS
    SELECT a.panel_sys_id, a.panel_site_id, a.login_id,
    b.recruit_start_date, c.meter_id, d.affiliate_id,
    d.afflt_member_id,
    (CASE
    WHEN b.last_active_date >= TRUNC (SYSDATE) - 30
    THEN 'Active'
    ELSE 'Inactive'
    END
    ) hh_status,
    (SELECT e.affiliate_description
    FROM pfshared3.lkp_affiliates e
    WHERE e.partner_id =
    NVL (d.affiliate_id, 0)
    AND e.pnl_sys_id = a.panel_sys_id) affiliate_description
    FROM mgtw.dat_ps_login_info a,
    mgtw.dat_ps_install_info b,
    mgtw.dat_ps_info c,
    mgtw.dat_ps_recruit_info d
    WHERE a.login_id LIKE 'tam%@tam%.com'
    AND a.panel_site_id = b.panel_site_id
    AND a.panel_sys_id = b.panel_sys_id
    AND a.panel_site_id = c.panel_site_id
    AND a.panel_sys_id = c.panel_sys_id
    AND a.panel_site_id = d.panel_site_id
    AND a.panel_sys_id = d.panel_sys_id
    AND a.active_flag = 1
    AND b.first_mtr_install_date IS NOT NULL
    AND b.last_active_date IS NOT NULL;
    --PANELISTS' PC DETAILS CURSOR
    CURSOR pc_activity (p_meter_id IN VARCHAR2)
    IS
    SELECT cpt_guid, first_active_date, last_active_date,
    TO_CHAR(first_install_date,'MM/DD/YYYY HH:MI') first_install_dt,
    (TRUNC (SYSDATE) - last_active_date) inactive_days,
    (CASE
    WHEN last_active_date >= TRUNC (SYSDATE) - 30
    THEN 'Active'
    ELSE 'Inactive'
    END
    ) status
    FROM pfshared3.dat_pnl_computers
    WHERE meter_id = p_meter_id
    ORDER BY last_active_date DESC;
    --RECORD TYPE FOR PANELISTS' DETAILS
    TYPE t_panelist_set IS TABLE OF tam_panelists%ROWTYPE;
    v_panelist_data t_panelist_set;
    --RECORD TYPE FOR PANELISTS' PC DETAILS
    TYPE t_pc_set IS TABLE OF pc_activity%ROWTYPE;
    v_pc_data t_pc_set;
    PROCEDURE send_header (NAME IN VARCHAR2, header IN VARCHAR2)
    IS
    BEGIN
    UTL_SMTP.write_data (conn, NAME || ': ' || header || crlf);
    END;
    BEGIN
    --MAX METER COUNT
    BEGIN
    SELECT MAX(COUNT (meter_id))
    INTO v_meter_max_count
    FROM pfshared3.dat_pnl_computers
    WHERE last_active_date IS NOT NULL
    GROUP BY meter_id;
    EXCEPTION
    WHEN OTHERS
    THEN
    v_meter_max_count := 0;
    END;
    DBMS_OUTPUT.put_line ( 'STARTED - '
    || TO_CHAR (SYSDATE, 'DD-MON-YYYY HH:MI:SS')
    conn := UTL_SMTP.open_connection (mailhost);
    UTL_SMTP.helo (conn, mailhost);
    UTL_SMTP.mail (conn, '< ' || from_address || ' >');
    UTL_SMTP.rcpt (conn, '< ' || to_address || ' >');
    UTL_SMTP.open_data (conn);
    send_header ('From', '"' || from_name || '" <' || from_address || '>');
    send_header ('To', '' || to_address || '');
    send_header ('Date', TO_CHAR (SYSDATE, 'dd Mon yy hh24:mi:ss'));
    subject := 'TW Daily Activity Report' || ' - ' || v_run_date;
    send_header ('Subject', subject);
    send_header ('Content-Type', multipart_mime_type);
    -- Close header section by a crlf on its own
    UTL_SMTP.write_data (conn, crlf);
    -- mime header
    UTL_SMTP.write_data (conn, first_boundary);
    send_header ('Content-Type', mime_type);
    UTL_SMTP.write_data (conn, crlf);
    UTL_SMTP.write_data (conn, crlf);
    -- add the attachment
    attachment_file_name := 'TW_Daily_Activity_Report_' || v_run_date || '.txt';
    UTL_SMTP.write_data (conn, first_boundary);
    send_header ('Content-Type', mime_type);
    send_header ('Content-Disposition',
    'attachment; filename= ' || attachment_file_name
    UTL_SMTP.write_data (conn, crlf);
    --CREATING HEADERS
    UTL_SMTP.write_data (conn,
    'Date of Reporting'
    || ','
    || 'Panelist ID'
    || ','
    || 'Meter ID'
    || ','
    || 'Panelist Email(Username)'
    || ','
    || 'Vendor'
    || ','
    || 'Affiliate ID'
    || ','
    || 'UID'
    || ','
    || 'Enrollment Date'
    || ','
    || 'HH Status'
    || ','
    || 'Registered PC in the HH'
    || ','
    FOR k IN 1 .. v_meter_max_count
    LOOP
    UTL_SMTP.write_data (conn,
    'Installation Date/Time MM/DD/YYYY HH:MI PC' || k || ',' || 'PC '|| k ||': Status' || ',' || 'PC '|| k ||': Date of First log' || ',' || 'PC '|| k ||': Date of Last log' || ',' || 'PC '|| k ||': Days since Last Activity' || ',' || 'PC '|| k ||': Computer ID' || ','
    END LOOP;
    UTL_SMTP.write_data (conn, crlf);
    --OPENING PANELISTS' DETAILS CURSOR
    OPEN tam_panelists;
    --FETCHING PANELISTS' DETAILS CURSOR
    FETCH tam_panelists
    BULK COLLECT INTO v_panelist_data;
    FOR i IN v_panelist_data.FIRST .. v_panelist_data.LAST
    LOOP
    --METER COUNT
    BEGIN
    SELECT COUNT (meter_id)
    INTO v_meter_count
    FROM pfshared3.dat_pnl_computers
    WHERE meter_id = v_panelist_data (i).meter_id
    GROUP BY meter_id;
    EXCEPTION
    WHEN OTHERS THEN
    v_meter_count := 0;
    END;
    --OPENING PANELISTS' PC DETAILS CURSOR
    OPEN pc_activity (v_panelist_data (i).meter_id);
    --FETCHING PANELISTS' PC DETAILS CURSOR
    FETCH pc_activity
    BULK COLLECT INTO v_pc_data;
    UTL_SMTP.write_data (conn,
    v_sysdate
    || ','
    || v_panelist_data (i).panel_site_id
    || ','
    || v_panelist_data (i).meter_id
    || ','
    || v_panelist_data (i).login_id
    || ','
    || v_panelist_data (i).affiliate_description
    || ','
    || v_panelist_data (i).affiliate_id
    || ','
    || v_panelist_data (i).afflt_member_id
    || ','
    || v_panelist_data (i).recruit_start_date
    || ','
    || v_panelist_data (i).hh_status
    || ','
    || v_meter_count
    || ','
    FOR j IN v_pc_data.FIRST .. v_pc_data.LAST
    LOOP
    UTL_SMTP.write_data (conn,
    v_pc_data (j).first_install_dt
    || ','
    || v_pc_data (j).status
    || ','
    || v_pc_data (j).first_active_date
    || ','
    || v_pc_data (j).last_active_date
    || ','
    || v_pc_data (j).inactive_days
    || ','
    || v_pc_data (j).cpt_guid
    || ','
    END LOOP;
    UTL_SMTP.write_data (conn, crlf);
    CLOSE pc_activity;
    END LOOP;
    CLOSE tam_panelists;
    -- CLOSE THE MESSAGE
    UTL_SMTP.write_data (conn, last_boundary);
    -- CLOSE CONNECTION
    UTL_SMTP.close_data (conn);
    UTL_SMTP.quit (conn);
    DBMS_OUTPUT.put_line ( 'ENDED - '
    || TO_CHAR (SYSDATE, 'DD-MON-YYYY HH:MI:SS')
    RETURN;
    EXCEPTION
    WHEN UTL_SMTP.transient_error OR UTL_SMTP.permanent_error
    THEN
    UTL_SMTP.quit (conn);
    raise_application_error
    (-20000,
    'Failed to send mail due to the following error: '
    || SQLERRM
    WHEN OTHERS
    THEN
    raise_application_error
    (-20000,
    'Script failed due to the following error: '
    || SQLERRM
    RETURN;
    END;
    Please find below the header of the .csv file generated:
    Date of Reporting     Panelist ID     Meter ID     Panelist Email(Username)     Vendor     Affiliate ID     UID     Enrollment Date     HH Status     Registered PC in the HH     Installation Date/Time MM/DD/YYYY HH:MI PC1     PC 1: Status     PC 1: Date of First log     PC 1: Date of Last log     PC 1: Days since Last Activity     PC 1: Computer ID     Installation Date/Time MM/DD/YYYY HH:MI PC2     PC 2: Status     PC 2: Date of First log     PC 2: Date of Last log     PC 2: Days since Last Activity     PC 2: Computer ID     Installation Date/Time MM/DD/YYYY HH:MI PC3     PC 3: Status     PC 3: Date of First log     PC 3: Date of Last log     PC 3: Days since Last Activity     PC 3: Computer ID     Installation Date/Time MM/DD/YYYY HH:MI PC4     PC 4: Status     PC 4: Date of First log     PC 4: Date of Last log     PC 4: Days since Last Activity     PC 4: Computer ID     Installation Date/Time MM/DD/YYYY HH:MI PC5     PC 5: Status     PC 5: Date of First log     PC 5: Date of Last log     PC 5: Days since Last Activity     PC 5: Computer ID     Installation Date/Time MM/DD/YYYY HH:MI PC6     PC 6: Status     PC 6: Date of First log     PC 6: Date of Last log     PC 6: Days since Last Activity     PC 6: Computer ID     Installation Date/Time MM/DD/YYYY HH:MI PC7     PC 7: Status     PC 7: Date of First log     PC 7: Date of Last log     PC 7: Days since Last Activity     PC 7: Computer ID     Installation Date/Time MM/DD/YYYY HH:MI PC8     PC 8: Status     PC 8: Date of First log     PC 8: Date of Last log     PC 8: Days since Last Activity     PC 8: Computer ID     Installation Date/Time MM/DD/YYYY HH:MI PC9     PC 9: Status     PC 9: Date of First log     PC 9: Date of Last log     PC 9: Days since Last Activity     PC 9: Computer ID     Installation Date/Time MM/DD/YYYY HH:MI PC10     PC 10: Status     PC 10: Date of First log     PC 10: Date of Last log     PC 10: Days since Last Activity     PC 10: Computer ID     Installation Date/Time MM/DD/YYYY HH:MI PC11     PC 11: Status     PC 11: Date of First log     PC 11: Date of Last log     PC 11: Days since Last Activity     PC 11: Computer ID     Installation Date/Time MM/DD/YYYY HH:MI PC12     PC 12: Status     PC 12: Date of First log     PC 12: Date of Last log     PC 12: Days since Last Activity     PC 12: Computer ID     Installation Date/Time MM/DD/YYYY HH:MI PC13     PC!
    *13: Sta                                                                                                                                                                                                                                                                                                                                                                                                                               *
    tus     PC 13: Date of First log     PC 13: Date of Last log     PC 13: Days since Last Activity     PC 13: Computer ID                                                                                                                                                                     
    The one highlighted in bold is the broken header.
    Please provide a solution to this.
    Thanks
    Monika
    Edited by: 953348 on Aug 18, 2012 8:00 AM

    I can't provide a solution but maybe a little help. With the header line you posted here it seems to me that a new line starts after 2048 = 2^11 characters. This might be a limitation or a length of any variable in the package.
    Maybe you can change this value or shorten the texts in the header to stay below this limit.
    A few more things:
    - the code, that you posted here became destroyed in lines like UTL_SMTP.mail (conn, '< ' .... because the forum software tried to find html-code between the "<" and ">" signs.
    - you can mark code in your postings with (see FAQ). It makes code better readable but it does not help with the "<" and ">" signs.
    - you left your e-mail-address in the header of the code. I guess this was not your intention. You can edit it and remove the address even after posting a message.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for