DB_SECONDARY_BAD instead of DB_KEYEXIST

Hello,
I am a bit new to Berkeley DB so please be indulgent.
I am using Berkeley DB 4.5.20. I am using the C++ interface, the configuration is DB_BTREE.
A primary db with DB_INIT_MPOOL | DB_CREATE | DB_THREAD | DB_INIT_LOCK as i don't need transactional feature.
A secondary db with DB_DUPSORT
I am doing an initial load with the following accessors :
put(0,&key,&value, DB_NOOVERWRITE );
this works fine : return 0 and if I work without secondary db i am able to get the content back.
however sometime I will call the :
put(0,&key,&value, DB_NOOVERWRITE);
with the same data, i was expecting to obtain a DB_KEYEXIST as the documentation explain, instead of i get a
a db exception : "DB_SECONDARY_BAD: Secondary index inconsistent with primary".
I also noticed that the callback methods is also called twice before the exception is raised.
Is it the normal behaviour ? is it because i do not used transactions ? I am doing something wrong ?
what would be the best practice to load data without overwriting the already existing records ?
I noticed that some months ago a post similar to this one "Secondary key problem(s) with Berkelley DB 4.5" but there is no answer yet.
Thanks for your advices.
Regards,
Steve

To be clear, when I run the code below, linked against Berkeley DB 4.5.20, it prints "Expected result". That is when the databases do not exist initially (I run "rm *.db" before running the test).
If you see something different, can you please spell out what error you get, what version of Berkeley DB you are using, the platform you are running on, and any other environmental issues required to reproduce the error.
Regards,
Michael Cahill, Oracle.
#include <iostream>
#include <fstream>
#include <string>
#include <db_cxx.h>
using namespace std;
struct rco
    string id;
    string name;
    string fname;
    string full;
} t_record;
void init_rco(rco &record)
    record.fname.clear();
    record.id.clear();
    record.name.clear();
    record.full.clear();
void handleError(int err_value)
    cout << "Error occured value : " << (err_value) << " exiting..." << endl;
    exit(-1);
size_t getNextTokenql(string &input_string, string &substring, const string& delimiter = "\t")
    size_t pos = input_string.find(delimiter);
    substring.assign(input_string, 0, pos);
    input_string.assign(input_string, pos + 1, input_string.size());
    return (pos);
void get_data_line(const string &orig_line, rco &ret)
    if (orig_line.size() < 1) {return ;}
    ret.full = string(orig_line);
    ret.full += '\0';
    string courant = string(orig_line);
    string t_res = "";
    getNextTokenql(courant, t_res);     ret.id = t_res;     // ID
    getNextTokenql(courant, t_res); ret.name = t_res;      // name
    getNextTokenql(courant, t_res); ret.fname = t_res;      //fname
    return;
int
get_fname_cb(Db *sdbp, // secondary db handle
             const Dbt *pkey, // primary db record's key
             const Dbt *pdata, // primary db record's data
             Dbt *skey) // secondary db record's key
    // First, extract the structure contained in the primary's data
    string record((char * )pdata->get_data());
    // Now set the secondary key's data to be the origin content
    rco rco_temp;
    init_rco(rco_temp);
    get_data_line(record, rco_temp);
    skey->set_data((void*)rco_temp.fname.c_str());
    skey->set_size((u_int32_t)rco_temp.fname.size());
    // Return 0 to indicate that the record can be created/updated.
    return (0);
int main()
    int test = 0;
    try
        rco cur_record;
        init_rco(cur_record);
        get_data_line("AA001\tNOEL\tJean",cur_record);
        Dbt key((void*)cur_record.id.c_str(), (u_int32_t) cur_record.id.size());
        Dbt value((void*)cur_record.full.c_str(), (u_int32_t) cur_record.full.size());
        //opening primary
        Db recDB(NULL,0);
     recDB.set_error_stream(&cerr);
        test = recDB.open(NULL, "./qrecords.db" , NULL, DB_BTREE, (DB_CREATE | DB_THREAD), 0);
        if( test != 0) {handleError (test);}
        //opening secondary
        Db dsgDB(NULL,0);
     dsgDB.set_error_stream(&cerr);
        dsgDB.set_flags(DB_DUPSORT);
        test = dsgDB.open(NULL, "./qfname.db" , NULL, DB_BTREE, (DB_CREATE | DB_THREAD), 0);
        if( test != 0) {handleError (test);}
        //associate
        test = recDB.associate(0,&dsgDB,get_fname_cb, 0);
        if( test != 0) {handleError (test);}
        test = recDB.put(0, &key, &value, DB_NOOVERWRITE);
        if(test != 0) {handleError (test);}
        test = recDB.put(0, &key, &value, DB_NOOVERWRITE);
        if(test == DB_KEYEXIST ) {cout << "Expected result" <<endl; } //handleError (test);}
        else if (test == 0) { cout << "Unexpected : no error !" <<endl;}
        else { handleError(test);}
        test = recDB.close(0);
        if(test != 0) {handleError (test);}
    }catch( DbException ex)
        cout << "DB: DB Exception : " << ex.what()<< endl;
        exit(-1);
    }catch( std::exception ex)
        cout << "DB: std exception : " << ex.what() << endl;
        exit(-1);
    }catch(...)
        cerr << "DB: last chance exception" << endl;
        exit(-1);
    return 0;
}

Similar Messages

  • Can I show a color bar instead of a color bullet in iCal Monthly view for all my events in all calendars?

    In the Monthly view of iCal the only events that show a color bar in the event is the Birthday Calendar. All other events in all my other calendars only show a color bullet next to the event (unless I click on that event which then shows as a color bar). I would like to know if it is possible for all the calendar events to have a color bar in the monthly view instead of just that tiny color bullet.

    Greetings Judith,
    Before making any attempts at deleting calendar data, backup what you have just in case:
    Click on each calendar on the left hand side of iCal one at a time highlighting it's name and then going to File Export > Export and saving the resulting calendar file to a logical location for safekeeping.
    iCal has an automated function located in iCal > Preferences > Advanced > Delete events "X" days after they have passed.  By typing in a value for days you can tell iCal to delete all events before that time frame.
    Example:
    Today is 4-16-2012.
    If I wanted to delete all events prior to 1 year ago (4-16-2011) I would type in "365" for the number of days.
    Once you type in the number of days you want kept in iCal, close the preferences and then quit iCal.
    Re-open iCal and check to see if the events are gone.  If not you may want to leave it open for several minutes and then quit again.
    Once the events are removed go back to  iCal > Preferences > Advanced > Delete events "X" days after they have passed and make sure the check mark is removed to prevent future deletion.
    Hope that helps.

  • CD imported to wrong folder organization Album/Artist instead of Artist/Alb

    I imported (ripped) a CD and the folder convention iTunes created in my music library was like this:
    AlbumName/ArtistName
    instead of
    ArtistName/AlbumName
    How could this happen. I have ripped hundreds of CD's and this is the first time it has happened. I am letting iTuned organize my files.
    Any clues?
    Thanks!

    Actually I know exactlty what bae77345 is referring to, because I am running into the same problem. Thus my search in the forums.
    Usually Ive had no problem in importing a song into iTunes, and changing the song IN iTunes to read as follows.
    Name of Song: DAYS `EUREKA OPENING MIX`
    Artist: Anime
    Album : Eureka seveN OST 1
    Album artist: FLOW
    And the Windown path would look like this
    C:\Documents and Settings\Varxtis\My Documents\My Music\iTunes\iTunes Music\Anime\Eureka seveN OST 1\1-01 DAYS `EUREKA OPENING MIX`.mp3
    Notice It goes Artist>Album>Song Title
    Album Artist would not even be part of the path, which is exactly what I want.
    but now it shows
    C:\Documents and Settings\Varxtis\My Documents\My Music\iTunes\iTunes Music\FLOW\Eureka seveN OST 1\1-01 DAYS `EUREKA OPENING MIX`.mp3
    Which goes AlbumArtist>Album>Song Title. it doesn't even include the artist as part of the path. How annoying.
    It makes a HUGE difference to me because I need everything in "iTunes Music" library in windows to be pathed as Artist>Album: Song Title. I use a different MP3 Player so, it's almost impossible to have half one way (those that have albumartist) and half another (those that don't) BTW, Sorry apple. . .no Offense. I've had and loved an iPod. . . but it died and I got this as a gift.
    I never changed any settings, and quite honestly it's been about a month since I had to update my MP3 player music (thus noticing the problem). So, there HAS to be a reason for it to change. And more importantly, a way to change it back.
    Windows XP
    Windows XP
      Windows XP  

  • How do I add URI web link with custom tooltip like "CLICK HERE TO UPDATE" instead of URI web link in tooltip.

    How do I add URI web link with custom tooltip like "CLICK HERE TO UPDATE" instead of URI web link in tooltip.

    You've probably found an answer to this by now, but I think this has been addressed in another forum -- The link below suggested using a button and adding the tooltip to the button. 
    https://forums.adobe.com/thread/304974?start=0&tstart=0
    Sounds like it would work but I haven't actually tried it. 
    Good luck~!

  • SSRS 2012: How to get a "Select All" that returns NULL instead of an actual list of all values from a multi-select parameter?

    I have a multi-select parameter that can have a list of thousands of entries. In general, the user will pick a few entries from the list or "Select All". If they check "Select All", I would much prefer that I get a NULL or an empty string
    instead of a list of all values. Is there any way to do that?
    In experimenting with a work-around, I tried putting an "All" label with a null value in the list, but it is ignored (does not display in the drop-down). If I use an empty string for the value, my "All" entry does get displayed, but so
    does "Select All", which is confusing. Is there a way to suppress "Select All"?
    - Mark

    I adapted the following from a workaround posted by JNeo on 4/16/2010 at 11:14 AM at
    http://connect.microsoft.com/SQLServer/feedback/details/249227/multi-value-select-all-parameter-in-reporting-services
    To get a null value instead of the full list of all values when "Select All" is chosen:
    1) Add a multi-value parameter "MyParam" that lists the values to choose.
    2) Add a DataSet "ParamCount" identical to the one used by "MyParam", except that it returns a single column named [Count] that is a COUNT(*) of the same data
    3) Add a parameter "MyParamCount", set it to hidden and internal, then set the default value to 'Get values from a query', choosing "ParamCount" for the Dataset and the one [Count] column for the Value field.
    4) Change the parameter for the main report DataSet so that instead of using [@MyParam], it uses this expression:
    =IIF(Parameters!MyParam.Count =
    Parameters!ParamCount.Value, Nothing, Join(Parameters!MyParam.Value, ","))

  • When I login to Horizon View, it shows me the list of desktops to connect to. If I'm entitled to only one desktop then can View auto connect me to that desktop instead of me clicking on Connect?

    When I login to Horizon View, it shows me the list of desktops to connect to. If I'm entitled to only one desktop then can View auto connect me to that desktop instead of me clicking on Connect.

    Yes you certainly can.
    Right click any desktop in the list > Settings > in the left pane select the desktop you want to auto connect to > check "Auto connect to this desktop".

  • Mini DVI to VGA incorrectly shipped with MBP instead of DVI to VGA

    Has anyone else had a mini DVI to VGA adapter shipped with their macbook pro (2008) instead of a DVI to VGA adapter? I just needed to use it today and was told at the apple store that I had an adapter included with the computer. I went home to check and the adapter that was with the computer was a mini DVI to VGA adapter and the computer has a regular DVI output. I understand that later in 2008 the mac book pros were made with the mini DVI so I am thinking that there may have been a packaging error.......unusual for Apple???

    Hi Tingrin,
    Most likely an error when the machine was packaged for distribution. The MacBook Pro has never shipped with Mini DVI, it was a dual link DVI port until they went to Mini DisplayPort. The MacBook, however featured the Mini DVI.
    I know Apple has ceased to ship the adapters with the MacBook Pro, to my knowledge they did around the time of the mid/late 2008 machines. I know with the first couple of generations (MBP) you actually got both a DVI and VGA adapter.
    I'd contact Apple, inform of the discrepancy and I'm sure they'll make it right.

  • I am going to get a replacement for my iphone 5C, for data connection issues. Can I get an 5S, instead of antother 5C as a replacement?

    Hello, I have been having issues with my iPhone 5C for about a month now. I have unlimited everything, including data, & so randomly, starting about 2 weeks ago, my data basically does not work for any apps, besides like iMessage & Safari. So like if I have full LTE signal, I can try to open the Instagram app, and it will tell me "no internet connection", & it tells me that with ANY app, besides iMessage & Safari. Which is super frustrating, especially when I try to use like Maps or something & it jut does not load, & tells me that "there is not an internet connection", so I have to use apps & stuff only on wifi, in order for them to work. I went to the Sprint store, and had them try and update the data profile, reset data network, soft reset, etc (they basically did everything that I did), & they could NOT figure out what was wrong with my phone. So, they looked into my warranty information, and told me to take my phone to the Apple Store, and just get a replacement & that it would cost me only $50, since it is still covered under warranty. I am not up for an upgrade until April of 2016, & as far as I know, when it comes to replacements, Apple will either give me a new/refurbished iPhone 5C as a replacement. I don't really mind having to pay a little extra if I have to, in order to get a 5S , & I also don't care if the 5S would be either new or refurbished. So, my question is, could I maybe get a 5S as a replacement, instead of another 5C?
    Green iPhone 5C 8GB Sprint
    Message was edited by: jalyn_taylor
    Message was edited by: jalyn_taylor

    No.
    As provided,  you will get the exact same model, storage, color, etc

  • Discoverer report showing null instead blank

    hi,
    I am running report from discoverer and it is showing null instead blank, do I need to check some thing in pref.txt file in oracle 9i
    regards
    kumar

    hi,
    I am running report from discoverer and it is showing null instead blank, do I need to check some thing in pref.txt file in oracle 9i
    regards
    kumar

  • ITunes 10.0.7.21 shows a white box instead of artwork for most of my albums.  Many of these are albums I purchased on itunes.  Also when I hit get album art it deleted the artwork it already had form many albums and says it cant find it.

    OS is Windows 7
    I updated iTunes the other day and I decided to run "get album art" and instead of finding artwork, it made some of the artwork I already had show up as white squares, or disapear entirely.  The ones that are white squares show up under the get info, but not in itunes.  I did click in view for show al artwork, no luck.  Many of these albums I bought from iTunes.  The ones that the artwork was deleted some albums I can buy on iTunes, but already owned, and iTunes found the artwork before, but now cannot.  Some are albums that I spent many hours finding and adding the artwork myself.  I am very frustrated.  I cannot find the time to manually install artwork for thousands of songs.
    My work computer is Windows 8, so I really don't want to hear windows vs OSX argument.  My company won't switch to mac because you like it better, so I just need a solution to my issue.  iTunes it has always worked better for me on my work PC than my macBook, I dont know why, but I don't take two laptops with me when I travel so I have my iTunes library on the PC that has to come with me.  This is the first time an update has screwed things up for me.

    Well my first guess was wrong. The line that failed is the one that writes out the image to disk. I've not revisited the code for that script for ages, but it seems I did add in an extra test for missing files a little while later, then forgot to upload the change. I can reproduce the error message if I deliberately rename a file to confuse iTunes so that seems the most likely reason for your problem with the script. I've uploaded a new build of CreateFolderArt which should work better.
    See FindTracks for a tool to repair broken links. You should probably get that issue fixed first.
    I know what SPSS stands for but that is all I know about it.
    tt2

  • How can I use the credit on my account instead of credit card to buy apps?

    I have a gift card credit on my account but when I want to buy an app it takes me to my credit card details. How can I use my credit on my account instead of credit card?

    You shouldn't have to put in a credit card, no, but from time to time the iTunes Store seems for some reason to try to insist on one. If just confirming your mailing address doesn't stop it from complaining, go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • Is there a way to selectively edit a conversation in iMessages instead of clearing the entire conversation? Like you can do on the iPhone for instance.

    Is there a way to selectively edit a conversation in iMessages instead of clearing the entire conversation? Like you can do on the iPhone for instance.

    Did you find an answer to your question?
    Would it also apply to Mountain Lion's Messages?
    Thanks

  • Can you open a report in Excel/Word desktop instead of the web pugin?

    using run_report_object( and web.show_document,
    how or can you get a report to open in the desktop/full version of MS Excel/Word instead of the web plugin versions?
    I can get the browser to open a report in pdf with my desktop adobe reader, but not with an rtf or xml/delimited desformat.
    Currently I don't pass a mimetype when opening as a pdf, but I do pass one in the url when i am destypes of xml, delimited and rtf,
    as this is the only way i have found out how to open the reports in word/excel.
    I'm in the process of upgrading from forms 6 client/server to 10g developer suite, so this is my try with a web based system.
    Does anyone have any suggestions, or where I should look.
    Below I listed my code from a procedure.
    the first part of the procedure is alot of converting, but if you skip down to the part between the 2 sets of double lines this fairly standard.
    PACKAGE BODY pmc_lib IS
    -- Procedure to run the report.
    procedure run_reports(v_report_name in varchar2, -- Report Name with or w/o a path.
    v_commode in number default synchronous, -- commode
    v_execmode in number default runtime, -- execute mode
    v_file_sys in number default filesystem, -- dummy
    v_param_list in paramlist, -- parameter list
    v_show_modes in varchar2 default null) is -- used for testing,
    -- if set to anthing but null, the report properties will display
    -- on the screen through an alert prior to printing.
    v_errorcode number;
    v_errortext varchar2(600);
    v_initialized boolean := false;
    v_prop_reportserver varchar2(200);
    v_report_path varchar2(200);
    v_user varchar2(100);
    v_user_sessionid number;
    v_forms_version varchar2(100);
    v_default_report_server varchar2(200);
    v_default_server_domain_path varchar2(200);
    v_connect_string varchar2(3) := get_application_property(connect_string);
    v_user_name varchar2(35) := get_application_property(username);
    report_id report_object;
    reportserverjob varchar2(100);
    v_jobid varchar2(100);
    rep_status varchar2(100);
    v_url varchar2(500);
    v_url2 varchar2(500);
    v_parameter_value varchar2(100);
    v_destype_param_value varchar2(100) := null;
    v_desformat_param_value varchar2(100) := null;
    v_desname_param_value varchar2(100) := null;
    v_value_n number := 0;
    v_param_type number := text_parameter;
    v_prop_execmode number;
    v_prop_commode number;
    v_prop_destype number;
    v_prop_filename varchar2(200);
    v_prop_source_block varchar2(200) := null;
    v_prop_query_name varchar2(200) := null;
    v_prop_desname varchar2(200) := null;
    v_prop_desformat varchar2(200) := null;
    v_prop_reportserver varchar2(200) := null;
    v_prop_other varchar2(200) := null;
    v_mimetype varchar2(200) := null;
    v_selected_mimetype varchar2(200) := null;
    report_not_generated exception;
    report_id_not_found exception;
    BEGIN
    v_forms_version := get_application_property(version);
    v_prop_reportserver := get_report_object_property('report1', report_server);
    v_report_path := null;
    v_user := v_user_name || '/' ||
    get_application_property(password) || '@' ||
    v_connect_string;
    if v_connect_string = 'NNN' then
    v_default_server_domain_path := 'pmcoracapp01.aapmc.com/reports/rwservlet';
    v_default_report_server := 'rep_pmcoracapp01_frhome1';
    else
    v_default_server_domain_path := 'oradevsrv.aapmc.com/reports/rwservlet';
    v_default_report_server := 'rep_oradevsrv_frhome1';
    end if;
    v_initialized := true;
    -- Check to see what version of forms is running.
    if substr(v_forms_version, 1, 1) <> '6' then
    -- Check to see if WEB version is running
    -- This may be an unnecessary check.
    if (get_application_property(user_interface) = 'WEB') then
    report_id := find_report_object('report1');
    -- id_null won't work on a report_id in Version 6, may put back in 10g once version 6 is gone completly
    -- if id_null(report_id) then
    -- raise report_id_not_found;
    -- end if;
    -- Because of Convertions from old system the following are needed.
    -- 1) If 'execmode' is runtime, then change it to batch.
    if v_execmode = runtime then
         v_prop_execmode := batch;
    else
         v_prop_execmode := v_execmode;
    end if;
    -- 2) If Report name has an attached path, then remove it.
    v_value_n := instr(lower(v_report_name), 'k:\pmc\new\');
    if v_value_n = 0 then
         v_prop_filename := v_report_name;
    else
         v_prop_filename := substr(v_report_name, v_value_n + 11);
    end if;
    -- From looking at the FORMS, 'destype' parameter is always passed in from the FORM.
    -- It is either 'preview' or 'file'.
    -- This is here for the converstion from Forms 6 to 10g.
    -- If for some reason destype has not been passed in as a parameter, you will get a FORM error,
    -- saying the parameter does not exists.
    begin
    -- 3) If 'destype' is one of the following, then change it to cache.
    get_parameter_attr(v_param_list, 'destype', v_param_type, v_destype_param_value);
    if lower(nvl(v_destype_param_value, 'null')) in ('preview', 'file', 'null') then
    v_prop_destype := cache;
    -- 3a) If 'destype' was = 'file' then check the 'desformat' and 'desname'.
    if lower(nvl(v_destype_param_value, 'null')) = 'file' then
    -- 3b) Get 'desformat' value
    get_parameter_attr(v_param_list, 'desformat', v_param_type, v_desformat_param_value);
    -- 'delimited' was not working, so change all 'delimited' to 'delimiteddata'.
    if lower(nvl(v_desformat_param_value, 'null')) = 'delimited' then
         v_desformat_param_value := 'delimiteddata';
    end if;
    -- 3c) If 'desformat' is NOT one of the following, then change it to pdf.
    if lower(nvl(v_desformat_param_value, 'null')) not in ('pdf', 'xml', 'rtf', 'delimiteddata') then
    v_prop_desformat := 'pdf';
    else
    v_prop_desformat := lower(v_desformat_param_value);
    end if;
    -- 4) Get 'desname' property.
    get_parameter_attr(v_param_list, 'desname', v_param_type, v_desname_param_value);
    v_prop_desname := lower(v_desname_param_value);
    end if;
    else
    v_prop_destype := lower(v_destype_param_value);
    end if;
    exception
    when others then
    null;
    end;
    -- If a desformat is rtf, xml, or delimited then get a mimetype to pass to the url
    if lower(v_prop_desformat) = 'rtf' then
    v_mimetype := '&mimetype=application/msword';
    elsif lower(v_prop_desformat) = 'xml' then
    v_mimetype := '&mimetype=application/vnd.ms-excel';
    elsif lower(v_prop_desformat) = 'delimiteddata' then
    v_mimetype := '&mimetype=application/vnd.ms-excel';
    end if;
    -- 6) If the Following are not set within the Report Object then
    -- set them to the following defaults.
    -- These are al required to be set for the Report Object to Function.
    -- These are the defaults for AAPMC.
    v_prop_execmode := nvl(v_prop_execmode, batch);
    v_prop_commode := nvl(v_prop_commode, synchronous);
    v_prop_destype := nvl(v_prop_destype, cache);
    v_prop_desformat := nvl(v_prop_desformat, 'pdf');
    v_prop_reportserver := nvl(v_prop_reportserver, v_default_report_server);
    -- Set All Report_Object Properties
    set_report_object_property(report_id, report_execution_mode, v_prop_execmode);
    set_report_object_property(report_id, report_comm_mode, v_commode);
    set_report_object_property(report_id, report_destype, v_prop_destype);
    set_report_object_property(report_id, report_filename, v_prop_filename);
    set_report_object_property(report_id, report_source_block, v_prop_source_block);
    set_report_object_property(report_id, report_query_name, v_prop_query_name);
    set_report_object_property(report_id, report_desname, v_prop_desname);
    set_report_object_property(report_id, report_desformat, v_prop_desformat);
    set_report_object_property(report_id, report_server, v_prop_reportserver);
    set_report_object_property(report_id, report_other, v_prop_other);
    -- Run Report_Object
    reportserverjob := run_report_object(report_id, v_param_list);
    v_jobid := substr(reportserverjob, length(v_prop_reportserver) + 2, length(reportserverjob));
    -- If Report Status is not 'FINISHED', then loop till it is.
    if reportserverjob is not null then
    rep_status := report_object_status(reportserverjob);
    while rep_status in ('RUNNING', 'OPENING_REPORT', 'ENQUEUED') loop
    rep_status := report_object_status(reportserverjob);
    end loop;
    if rep_status <> 'FINISHED' then
    raise report_not_generated;
    end if;
    -- Create 1st part of url.
    v_url := 'http://' || v_default_server_domain_path || '/getjobid' || v_jobid || '?server=' || v_prop_reportserver;
    -- Check for mimetype.
    if v_mimetype is not null then
    v_url := v_url || v_mimetype;
    end if;
    -- Final part of url.
    v_url2 := 'javascript:window.open("' || v_url || '", "", "fullscreen=no, titlebar=no, location=no, toolbar=no, menubar=no, status=no, resizable=yes"); self.close()';
    -- This is the built-in that calls a new browser window
    web.show_document(v_url2,'_blank');
    else
    raise report_not_generated;
    end if;
    end if;
    -- Destroy the parameter list.
    destroy_parameter_list(v_param_list);
    else
    -- This section if for Client Server, Version 6 of forms.
    -- It will do the same as before the conversion.
    -- It is only used before the complete conversion.
    if v_report_name is null then
    return;
    end if;
    v_value_n := instr(v_report_name, 'k:\pmc\new\');
    if v_value_n = 0 then
         v_prop_filename := 'k:\pmc\new\' || v_report_name;
    else
    v_prop_filename := v_report_name;
    end if;
    run_product(reports,
    v_prop_filename,
    v_commode,
    v_execmode,
    filesystem,
    v_param_list,
    null);
    end if;      
    -- create history record of the report being run
    insert into pmc_report_history values(
    s_pmc_report_history.nextval,
    v_prop_filename,
    v_user_name,
    sysdate,
    v_forms_version,
    v_jobid,
    v_destype_param_value,
    v_desformat_param_value,
    v_desname_param_value,
    v_prop_destype,
    v_prop_desformat,
    v_prop_desname,
    v_mimetype,
    v_window_open_params);
    commit;
    exception
    when report_id_not_found then
    show_user_alert('ERROR: Cannot Find Report Object!', null);
    when report_not_generated then
    show_user_alert('ERROR: Report Not Generated!', null);
    when others then
    v_errorcode := SQLCODE;
    v_errortext := SQLERRM;
    show_user_alert('ERROR : ' || v_errorcode || ' = ' || v_errortext, null);
    end;
    end;

    What you could try is downloading the report to the client pc using WEBUTIL_FILETRANSFER.URL_TO_CLIENT, then open the locally save file using something like:
    CLIENT_HOST('cmd /c rundll32.exe url.dll,FileProtocolHandler "localfilename"');

  • In iCal I have double October 2012 (one instead of November) and no have March in 2013. Why?

    In iCal I have 2 October 2012 (one instead of November) and no have March in 2013.
    Mac Ox 10.5.8, iCal 3.0.8 (1287), Russian locale
    So seems that other month's names moved
    So now in Ical ( month view) i have: October, October, November, December, January, February, April
    moreover( оr as result) in February ICal shows 30 days

    Hi Satish,
    In the css file, you should have a 'text-align' property set to 'center' for the BEx Table cell element. I'm not sure of the exact element name, maybe you can check. Also check if you can open the file in notepad if the MS VS format is not ok with you.
    --Priya

  • I randomly get black boxes instead of images when loading a webpage

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    Ever since I upgraded to the newest version of Firefox, I've been getting a lot of blacked out boxes instead of the actual images. When I right click "View Image", the image does show up, but I don't want to keep right clicking boxes just to see an image. I also checked to see if I might how blocked the image on AdBlock or on "Page Info", but nothing was marked.
    The blacking out of images seems to happen randomly at different times. From different tabs opened, not all images are blacked out. On the same page, some images will be blacked out while some show up. Also, I've for the same web page, one day I'll open it up and everything is fine, but the next day I open up the same URL and the images are blacked out. It just seems so random.
    I was thinking my internet speed could have something to do with it. The blacking out also happens more frequently when I have multiple tabs open or if the images are larger. However, I did not have this problem until I upgraded Firefox.
    == This happened
    ==
    A few times a week
    == I upgraded to the newest version of Firefox
    ==
    == Troubleshooting information
    ==
    Application Basics
    Name Firefox
    Version 3.6.6
    Profile Directory
    Open Containing Folder
    Installed Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Adblock Plus 1.2.1 true
    AVG Safe Search 9.0.0.825 true {3f963a5b-e555-4543-90e2-c3908898db71}
    AVG Security Toolbar 4.002.023.004 false avg@igeared
    Delicious Bookmarks 2.1.072 true {2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}
    Dictionary 2.1.10 true [email protected]
    FireShot 0.80 false {0b457cAA-602d-484a-8fe7-c1d894a011ba}
    FlashGot 1.2.1.27 true {19503e42-ca3c-4c27-b1e2-9cdb2170ee34}
    Java Console 6.0.14 true
    Java Console 6.0.15 true
    Java Console 6.0.17 true
    Java Quick Starter 1.0 true [email protected]
    Microsoft .NET Framework Assistant 1.2.1 true {20a82645-c095-46ed-80e3-08825760534b}
    Read It Later 2.0.6 true [email protected]
    SkipScreen 0.4.7amo true SkipScreen@SkipScreen
    StumbleUpon 3.64 true
    TVU Web Player 2,4,9,1 true [email protected]
    FastestFox 4.1.5 true [email protected]
    ColorfulTabs 4.6.1 false {0545b830-f0aa-4d7e-8820-50a4629a56fe}
    Morning Coffee 1.33 true morningCoffee@shaneliesegang
    Java Console 6.0.20 true
    Modified Preferences
    Name
    Value
    accessibility.typeaheadfind.flashBar 0
    browser.history_expire_days.mirror 180
    browser.history_expire_days_min 30
    browser.places.importBookmarksHTML false
    browser.places.importDefaults false
    browser.places.leftPaneFolderId -1
    browser.places.migratePostDataAnnotations false
    browser.places.smartBookmarksVersion 2
    browser.places.updateRecentTagsUri false
    browser.startup.homepage www.yahoo.com
    browser.startup.homepage_override.mstone rv:1.9.2.6
    dom.ipc.plugins.timeoutSecs 10
    extensions.lastAppVersion 3.6.6
    general.useragent.extra.microsoftdotnet ( .NET CLR 3.5.30729)
    javascript.options.showInConsole true
    keyword.URL http://us.yhs.search.yahoo.com/avg/search?fr=yhs-avg&type=yahoo_avg_hs2-tb-web_us&p=
    network.cookie.prefsMigrated true
    network.http.sendRefererHeader 0
    places.last_vacuum 1278934795
    print.print_printer Microsoft XPS Document Writer
    print.printer_Microsoft_XPS_Document_Writer.print_bgcolor false
    print.printer_Microsoft_XPS_Document_Writer.print_bgimages false
    print.printer_Microsoft_XPS_Document_Writer.print_command
    print.printer_Microsoft_XPS_Document_Writer.print_downloadfonts false
    print.printer_Microsoft_XPS_Document_Writer.print_edge_bottom 0
    print.printer_Microsoft_XPS_Document_Writer.print_edge_left 0
    print.printer_Microsoft_XPS_Document_Writer.print_edge_right 0
    print.printer_Microsoft_XPS_Document_Writer.print_edge_top 0
    print.printer_Microsoft_XPS_Document_Writer.print_evenpages true
    print.printer_Microsoft_XPS_Document_Writer.print_footercenter
    print.printer_Microsoft_XPS_Document_Writer.print_footerleft &PT
    print.printer_Microsoft_XPS_Document_Writer.print_footerright &D
    print.printer_Microsoft_XPS_Document_Writer.print_headercenter
    print.printer_Microsoft_XPS_Document_Writer.print_headerleft &T
    print.printer_Microsoft_XPS_Document_Writer.print_headerright &U
    print.printer_Microsoft_XPS_Document_Writer.print_in_color true
    print.printer_Microsoft_XPS_Document_Writer.print_margin_bottom 0.5
    print.printer_Microsoft_XPS_Document_Writer.print_margin_left 0.5
    print.printer_Microsoft_XPS_Document_Writer.print_margin_right 0.5
    print.printer_Microsoft_XPS_Document_Writer.print_margin_top 0.5
    print.printer_Microsoft_XPS_Document_Writer.print_oddpages true
    print.printer_Microsoft_XPS_Document_Writer.print_orientation 0
    print.printer_Microsoft_XPS_Document_Writer.print_pagedelay 500
    print.printer_Microsoft_XPS_Document_Writer.print_paper_data 1
    print.printer_Microsoft_XPS_Document_Writer.print_paper_height 11.00
    print.printer_Microsoft_XPS_Document_Writer.print_paper_size_type 0
    print.printer_Microsoft_XPS_Document_Writer.print_paper_size_unit 0
    print.printer_Microsoft_XPS_Document_Writer.print_paper_width 8.50
    print.printer_Microsoft_XPS_Document_Writer.print_reversed false
    print.printer_Microsoft_XPS_Document_Writer.print_scaling 1.00
    print.printer_Microsoft_XPS_Document_Writer.print_shrink_to_fit true
    print.printer_Microsoft_XPS_Document_Writer.print_to_file false
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_bottom 0
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_left 0
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_right 0
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_top 0
    privacy.clearOnShutdown.cookies false
    privacy.clearOnShutdown.formdata false
    privacy.clearOnShutdown.history false
    privacy.cpd.formdata false
    privacy.cpd.sessions false
    privacy.cpd.siteSettings true
    privacy.item.formdata false
    privacy.item.history false
    privacy.sanitize.migrateFx3Prefs true
    privacy.sanitize.sanitizeOnShutdown true
    privacy.sanitize.timeSpan 0
    security.warn_viewing_mixed false
    security.warn_viewing_mixed.show_once false
    == Firefox version
    ==
    3.6.6
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-Shockwave Flash 10.1 r53
    *2,4,9,1
    *6.0.12.69
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *npdivxplayerplugin
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *Default Plug-in
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *4.0.50524.0
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Npdsplay dll
    *DRM Store Netscape Plugin
    *DRM Netscape Network Object

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

Maybe you are looking for

  • DVD - VOB Files - The Lowdown

    We often see people trying to edit existing DVD-Videos. Some seem to be able to do this fine, while others struggle mightily. What’s the deal? Why can’t one just Import those VOB files and edit happily away? Let’s go back to the basics just a bit. A

  • Service Bus with WCF in IIS 8 with Application Initialization Issue

    I'm running service bus 1.1 on premise locally and have it hooked into a wcf service using netMessagingBinding.  I installed Application Initialization and set Start Mode to AlwaysRunning for the application pool, and set Preload Enabled to true for

  • Pages 5.2 multiple styles on the same line

    I am using Pages 5.2 on OSX Mavericks.  I would to use multiple styles on one line for research papers for school.  For instance, I would like to be able to do this: in Pages.  However, I have found that I need to create multiple styles to accomplish

  • Drilldown on Query not working for Transactions(SQ01--Report Assignments)

    Hi ! I created for deliveries and through SQ01 -- Report assignment I added two transactions VL03n And VA03. When I execute the query and double click on the delievery number it takes me to the particular delivery clicked on in VL03n, but when I clci

  • Add Document Information

    Hi, we have Adobe PDF Printer from Acrobat XI Pro. In settings from Printer Driver the function "Add document information" isn't set and we can convert Microsoft Word/Excel Documents in PDF w/o any Info. But many times after Update of Acrobat Reader