Which data persistence option to use given my current problem?

Hello

I would like to present my first goal. I need to replicate an application we built for the IPHONE. The app in the IPHONE using SqlLite as the DB. There are 8 tables in the DB. Each table has an average lines 400 and one of the table has 700 lines. Each table has 12 columns. Describing in detail the reason must support my deduction that I need a database full blown rather than, say, persistent object store. Or can I? That is the question.

I feel I should use SQL DB UltraLiteJ (and not SqlLite since I want to target OS 4.1). Is this a wise choice? If this isn't the case, then what other DBs I at my disposal?

Much obliged.

(a) possible, but not easy.

Table is Vector, line = element, then you must write the logic of handling loads.  Theoretically achievable and we have, but it's because we started when 4.0 was new...

(b) 75% more than our App World downloads are 4.6 or later.  All 4.6 + devices can be upgraded to OS 5.0.  If someone wants your app so bad, they will modernize.

'Port', I mean leave your SQL database such as a SQL database and develop primarily for OS 5.0.  As a last part of this evolution, change to another DB usage. Now you will have a better idea what facilities you really need (and thus the level of base OS that you want to return) and you will also have a better idea of the market.  It will also down 6 months on the line, the OS 5.0 will begin to look at some old hat because of the OS 6.0.

Tags: BlackBerry Developers

Similar Questions

  • Select this OPTION to generate XML data from the table using XMLELEMENT, XMLAGG gives error ORA-19011 string buffer too small

    My select statement fails with the error:


    The ORA-19011 string buffer too small


    The select statement looks like:


    SELECT TO_CLOB)

    XMLELEMENT ("accounts",

    XMLELEMENT ("count",

    XMLATTRIBUTES)

    rownum AS "recordId."

    To_date('20130520','YYYYMMDD') AS "datestarted."

    123456 AS "previousBatchId."

    56789 AS 'previousRecordId '.

    ),

    ....

    .... .

    .....

    XMLFOREST)

    SIG_ROLE AS "SignatoryRole."

    To_char(TRANSFER_DATE,'YYYY-mm-DD') AS "TransferDate."

    NVL(Reason,0) AS 'reason '.

    ) AS the 'transfer '.

    )

    ()) AS CRDTRPT

    OF ANY_TABLE;

    • It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)

    I'd use the XMLGEN package. But the environment team says no mounted drives in the future with the arrival of the EXADATA.

    NO HARD DRIVE MOUNTED, NO ACCESS TO THE DATABASE DIRECTORIES

    No UTL_FILE

    I need to use the REEL spool the resulting XML data of the SELECT query.

    SQL is a standard in my org, but I can do with a PL/SQL solution also to load data into a table (cannot use a COIL with PL/SQL)

    What I do is:

    1. a column of type CLOB to a xml_report of the loading of the above SELECT query table
    2. Then using SELECT * FROM xml_report to SPOOL the data to a file report.xml

    No need of XMLTYPE data behind. Xml data stream is fine for me.

    In addition, I need to validate the XML file, also using XSD.

    Problem is that the resulting lines of the select query are supposed to be from 15000 to 20000 bytes long.

    Oracle database version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    A Suggestion or a solution to this problem would be appreciated.

    (Sorry for the use of "BOLD", just to make it more readable and highlight the imp points)

    Bravo!

    Rahul

    It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)

    You use the right method.

    There is an implicit conversion from XMLType to the data type VARCHAR2 as expected by the function TO_CLOB, where the limitation, and the error.

    To serialize XMLType to CLOB, use the XMLSerialize function:

    SELECT XMLSerialize (DOCUMENT

    XMLELEMENT ("accounts",

    ...

    )

    )

    OF ANY_TABLE;

    For the rest of the requirement, I wish you good luck trying to spool the XML correctly.

    You may need to play around with the SET LONG and SET LONGCHUNKSIZE commands to operate.

  • Which account you want to use to run this program?

    A week ago, just after installation of Microsoft Update, when I start my computer, a box came who said: run as.  Which account you want to use to run this program? [x] current [of user\Owner] protect my computer and data from unauthorized program activity. This option can prevent computer viruses from harming your computer or personal data, BUT selecting it might cause the program to function properly. Current use is already checked, and my options are to check I want is not protected, or cancel. I tried all the options, or just close the box. What is the devil? Why should I see it every time I start my computer? And, more importantly, why would I want to when, "selecting risk the program work correctly?" How can I get rid of this annoying box, since I already have Kaspersky as a guard dog? Thanks, Tess

    No, you are not condemned.

    To make the warning "diagnostic mode" Begone, re - run msconfig and select the radio to "Normal startup" button (cela re - automatically checks the Java update box, as well as all the other boxes you might get UN-ticked).

    The way you described your original message is a bit confusing.  Messages request 'which account you want to use' - what are the choices presented to you?

    Run as.  Which account you want to use to run this program? [x] current [of user\Owner]

    Is the account that you sign normally called "owner"?

    You have an x in the box in front of "Current user" - If the current user IS 'Owner' what does the other box reference?  It may be a better representation of the pop - up:

    Run as
    Which account you want to use to run this program?
    [] Current user / owner
    [] Protect my computer and data from unauthorized program activity. This option can prevent computer
    viruses from harming your computer or personal data, BUT selecting it can cause the program to
    work correctly.

    That is, we really give you a choice of the accounts, but only the current account or anything.

    When you go to control panel > user accounts, is the account that you are connected to a "Computer administrator" or "limited account"?

    You need to do some detective work more:

    • In the Startup tab, run msconfig and uncheck ALL items.  If the "RunAs" message does not come to the top, you know that one of these elements is the culprit.  Selectively, double-check items (you can do as a group to save time re-boot) and re-start until you determine what startup item causes the error.  Once you have identified the startup item that is causing the problem, post back with his name and I will try to help you determine what to do about it.
    • The "RunAs" message continues even with all uncontrolled startup items, you going to dig deeper.  Reset things to normal by selecting the option "Normal startup" button and follow the steps.  I'll look at other things that start when Windows starts and see if I can suggest the next steps.
    1. Download Autoruns http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx --> here
    2. Extract the files (right click on the zip file downloaded file and choose "extract all")
    3. Run Autoruns by double clicking on autoruns.exe (not autorunsC.exe).
    4. When the scan is complete, click file > save and save AutoRuns.arn in a place where you can find it later
    5. Download AutoRuns.arn on your SkyDrive (go to https://skydrive.live.com/ and log in with the same name of user and password that allows you to connect to ask questions here)
    6. Right click on the file downloaded and select 'Sharing' then 'Get link' and 'display only '.  Copy the link and post it in your next reply here.  See http://windows.microsoft.com/en-us/skydrive/share-file-folder
  • It is possible to reinstall Windows 7 using the Windows 10 software, in which I would buy and use?

    Original title: problem of Installation of Windows 7.

    Hello

    Recently, my computer has not been doing any internet access and I thought to reinstall Windows 7.

    But I can't do that because I lost the disc and key product :( (shock)

    So I thought I would buy a new one, but with Windows 10.

    So I have two questions:

    It is possible to reinstall Windows 7 using the Windows 10 software, in which I would buy and use?

    If I decide to buy online, some say it's downloadable, how can I reinstall it without using a CD?

    Hello

    Recently, my computer has not been doing any internet access and I thought to reinstall Windows 7.

    But I can't do that because I lost the disc and key product :( (shock)

    So I thought I would buy a new one, but with Windows 10.

    So I have two questions:

    It is possible to reinstall Windows 7 using the Windows 10 software, in which I would buy and use?

    No, Windows 7 and Windows 10 require unique product keys and their respective installation files.

    If I decide to buy online, some say it's downloadable, how can I reinstall it without using a CD?

    Windows 10 is available as a digital download:

    Buy Windows 10 family/professional edition

    For 5 years, Microsoft made it fairly easy for users of the Windows 7 operating system to get reinstall media. If you have lost your support disc or installation retail collection; either it has been damaged or defective; You can download a copy of the edition that you have licensed from a membership site called Digital River. More recently, Microsoft ended the availability to reinstall media that you can download as a. File ISO in Digital River, which is a digital reproduction of an optical disc.

    It was particularly convenient for people who could not easily get the manufacturer's recovery media, did not want to pay the fees required to get or preferred a clean configuration without the software packaged manufacturers or even a recovery partition does not work. It's easy to use, all you had to do was reinstall and reactivate using the product key located on the certificate of authenticity and download all the drivers on the manufacturers website.

    Given that this option is no longer available, what are your options? See the article for more details:

    How to: What are my options for Windows 7 reinstall media?

    Make sure you scroll down and read the section:

    What to do if you cannot get your manufacturer recovery media, refuse to use or to buy it or the Microsoft Software Recovery Website does not work?

  • Why my game Center freezes when I go by parameters or directly by clicking on the center of games? Can I know which method is the best to use to solve this problem? Also, I use an iPhone 6 s, iOS 9.3.1

    Why my game Center freezes when I go by parameters or directly by clicking on the center of games? Can I know which method is the best to use to solve this problem? Also, I use an iPhone 6 s, iOS 9.3.1

    Have you ever tried to force reboot the phone by holding down the button sleep and home for 10 seconds, until the call logo comes back again?

    You won't lose data, but it can cure a few glitches.

    If this does not work, the initial Setup would be the next step:

    Use iTunes to restore your device to factory settings - Support Apple iOS

  • SQL Loader loading data into two Tables using a single CSV file

    Dear all,

    I have a requirement where in I need to load the data into 2 tables using a simple csv file.

    So I wrote the following control file. But it loads only the first table and also there nothing in the debug log file.

    Please suggest how to achieve this.

    Examples of data

    Source_system_code,Record_type,Source_System_Vendor_number,$vendor_name,Vendor_site_code,Address_line1,Address_line2,Address_line3

    Victor, New, Ven001, Vinay, Vin001, abc, def, xyz

    Control file script

    ================

    OPTIONS (errors = 0, skip = 1)
    load data
    replace
    in the table1 table:
    fields ended by ',' optionally surrounded "" "
    (
    Char Source_system_code (1) POSITION "ltrim (rtrim (:Source_system_code)),"
    Record_type tank "ltrim (rtrim (:Record_type)),"
    Source_System_Vendor_number tank "ltrim (rtrim (:Source_System_Vendor_number)),"
    $vendor_name tank "ltrim (rtrim (:Vendor_name)),"
    )
    in the Table2 table
    1 = 1
    fields ended by ',' optionally surrounded "" "
    (
    $vendor_name tank "ltrim (rtrim (:Vendor_name)),"
    Vendor_site_code tank "ltrim (rtrim (:Vendor_site_code)),"
    Address_line1 tank "ltrim (rtrim (:Address_line1)),"
    Address_line2 tank "ltrim (rtrim (:Address_line2)),"
    Address_line3 tank "ltrim (rtrim (:Address_line3)).
    )

    the problem here is loading into a table, only the first. (Table 1)

    Please guide me.

    Thank you

    Kumar

    When you do not provide a starting position for the first field in table2, it starts with the following after a last referenced in table1 field, then it starts with vendor_site_code, instead of $vendor_name.  So what you need to do instead, is specify position (1) to the first field in table2 and use the fields to fill.  In addition, he dislikes when 1 = 1, and he didn't need anyway.  See the example including the corrected below control file.

    Scott@orcl12c > test.dat TYPE of HOST

    Source_system_code, Record_type, Source_System_Vendor_number, $vendor_name, Vendor_site_code, Address_line1, Address_line2, Address_line3

    Victor, New, Ven001, Vinay, Vin001, abc, def, xyz

    Scott@orcl12c > test.ctl TYPE of HOST

    OPTIONS (errors = 0, skip = 1)

    load data

    replace

    in the table1 table:

    fields ended by ',' optionally surrounded "" "

    (

    Char Source_system_code (1) POSITION "ltrim (rtrim (:Source_system_code)),"

    Record_type tank "ltrim (rtrim (:Record_type)),"

    Source_System_Vendor_number tank "ltrim (rtrim (:Source_System_Vendor_number)),"

    $vendor_name tank "ltrim (rtrim (:Vendor_name)).

    )

    in the Table2 table

    fields ended by ',' optionally surrounded "" "

    (

    source_system_code FILL (1) POSITION.

    record_type FILLING,

    source_system_vendor_number FILLING,

    $vendor_name tank "ltrim (rtrim (:Vendor_name)),"

    Vendor_site_code tank "ltrim (rtrim (:Vendor_site_code)),"

    Address_line1 tank "ltrim (rtrim (:Address_line1)),"

    Address_line2 tank "ltrim (rtrim (:Address_line2)),"

    Address_line3 tank "ltrim (rtrim (:Address_line3)).

    )

    Scott@orcl12c > CREATE TABLE table1:

    2 (Source_system_code VARCHAR2 (13),)

    3 Record_type VARCHAR2 (11),

    4 Source_System_Vendor_number VARCHAR2 (27),

    5 $vendor_name VARCHAR2 (11))

    6.

    Table created.

    Scott@orcl12c > CREATE TABLE table2

    2 ($vendor_name VARCHAR2 (11),)

    3 Vendor_site_code VARCHAR2 (16).

    4 Address_line1 VARCHAR2 (13),

    5 Address_line2 VARCHAR2 (13),

    Address_line3 6 VARCHAR2 (13))

    7.

    Table created.

    Scott@orcl12c > HOST SQLLDR scott/tiger CONTROL = test.ctl DATA = test.dat LOG = test.log

    SQL * Loader: release 12.1.0.1.0 - Production on Thu Mar 26 01:43:30 2015

    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

    Path used: classics

    Commit the point reached - the number of logical records 1

    TABLE1 table:

    1 row loaded successfully.

    Table TABLE2:

    1 row loaded successfully.

    Check the log file:

    test.log

    For more information on the charge.

    Scott@orcl12c > SELECT * FROM table1

    2.

    RECORD_TYPE SOURCE_SYSTEM_VENDOR_NUMBER $VENDOR_NAME SOURCE_SYSTEM

    ------------- ----------- --------------------------- -----------

    Victor Ven001 new Vinay

    1 selected line.

    Scott@orcl12c > SELECT * FROM table2

    2.

    $VENDOR_NAME VENDOR_SITE_CODE ADDRESS_LINE1 ADDRESS_LINE2 ADDRESS_LINE3

    ----------- ---------------- ------------- ------------- -------------

    Vinay Vin001 abc def xyz

    1 selected line.

    Scott@orcl12c >

  • Update of the data in the Table using XMLTYPE DATA

    I did insertions using XMLTYPE data but have never done it and update. Can someone give me some advice?

    PROCEDURE ADD_LABORDER_CODES)

    IN_ORDERCODESXML IN CLOB DEFAULT NULL,

    Number of OUT OUT_AFFECTEDROWS

    )

    AS

    X SYS. XMLTYPE;

    BEGIN

    X: = SYS. XMLTYPE. CREATEXML (IN_ORDERCODESXML);

    INSERT INTO MAINT_LABORD_CODES)

    INSERT INTO MAINT_LABORD_CODES)

    LABORD_CODE_ID,

    COMPENDIUM_ID,

    ORDER_CODE,

    ORDER_DESC,

    ACTIVE,

    TIMESTAMP,

    MODIFIED_BY)

    SELECT MLOCDS_SEQ. NEXTVAL,

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/COMPENDIUM_ID') AS COMPENDIUM_ID,

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/ORDER_CODE') AS ORDER_CODE,

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/ORDER_DESC') AS ORDER_DESC,.

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/LOINC_CODE') AS LOINC_CODE,

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/ACTIVE') AS ACTIVE.

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/TIMESTAMP') AS TIMESTAMP.

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/MODIFIED_BY') AS MODIFIED_BY

    TABLE (XMLSEQUENCE (EXTRACT(X,'/ORDERCODES/ORDERCODE'))) NMCO;

    OUT_AFFECTEDROWS: = NUMBER OF ROWS SQL %;

    EXCEPTION

    WHILE OTHERS THEN

    dbms_output.put_line (SQLERRM);

    RAISE_APPLICATION_ERROR (-20001, SQLERRM);

    END;

    Example of use of the FUSION-

    If the line exists in the target table (based on the COMPENDIUM_ID and ORDER_CODE values), the UPDATE is, if not to INSERT:

    declare
    
      in_ordercodesxml  clob :=
      '
      
        500
        696231
        ABO Group & Rh Type
        NULL
        12345
        Y
        2014-08-13
        1
      
    ';
    
    begin
    
      merge into maint_labord_codes t
      using (
        select compendium_id
             , order_code
             , order_desc
             , loinc_code
             , active
             , timestamp
             , modified_by
        from xmltable('/ORDERCODES/ORDERCODE'
               passing xmltype(in_ordercodesxml)
               columns COMPENDIUM_ID    number(10)    path 'COMPENDIUM_ID'
                     , ORDER_CODE       varchar2(50)  path 'ORDER_CODE'
                     , ORDER_DESC       varchar2(250) path 'ORDER_DESC'
                     , LOINC_CODE       varchar2(10)  path 'LOINC_CODE'
                     , ACTIVE           varchar2(1)   path 'ACTIVE'
                     , TIMESTAMP        date          path 'TIMESTAMP'
                     , MODIFIED_BY      number(10)    path 'MODIFIED_BY'
             )
      ) x
      on (     t.compendium_id = x.compendium_id
           and t.order_code = x.order_code )
      when matched then update
        set t.order_desc = x.order_desc
          , t.loinc_code = x.loinc_code
          , t.active     = x.active
          , t.timestamp  = x.timestamp
          , t.modified_by = x.modified_by
      when not matched then insert
      (
        labord_code_id
      , compendium_id
      , order_code
      , order_desc
      , loinc_code
      , active
      , timestamp
      , modified_by
      )
      values (
        mlocds_seq.nextval
      , x.compendium_id
      , x.order_code
      , x.order_desc
      , x.loinc_code
      , x.active
      , x.timestamp
      , x.modified_by
      );
    
    end;
    /
    

    Also note that I used XMLTABLE instead of TABLE/XMLSEQUENCE, which is much easier to use (and not deprecated in the latest versions).

    You have not precisely the date format in the TIMESTAMP element so I assumed a conform to W3C.

    If you have a problem with this part, return to a projection of VARCHAR2 and use TO_DATE with actual size.

  • Which video setting should I use on first 13?... confused .so for me...

    Would appreciate your help to unravel the following problem:

    I have a Mac 24 "with OSX 10.11 El Capitan using iMovie for many years. Nnever had to worry about the video settings - there is no need for it, the app auto adjusts the parameters of.

    Just started using the first 13 because it offers many more options for editing.


    My problem starts when you try to burn DVDs with films edited by first using the mp4 format; After some time, the burner (tried iDVD and burner for it) fails with a "coding error".

    These edited at first files can be opened and viewed using QuickTime, but if I try to record using Quicktime, it refused displaying a message mentioning an incompatibility with timing.

    When movies first in iMove importing and exporting using the same mp4 format - new files can be burned, and the interesting thing is that the iMovie mp4 file is approximately 30% smaller than to the Prime Minister.

    In short, the two files have the same format of mp4, iMovie is approximately 30% smaller and can be engraved, first cannot.

    Thought about video settings since I used the default that comes with the first, but there are so many options and I'm not an expert.

    I record using SD cards with 2 devices:

    * Executives of Sony HDR-CX200 NTSC 1440 x 1080 60i

    * Nikon 5100 camera 1920 x 1080 30 fps NTSC

    Question: can I use a single video setting for cameras and which is recommended, or what I need to change the settings every time?

    (Not to mention phone mp4 movies that I get and have another size 568 x 320...)


    Gil

    Please continue to contact Apple as mentioned. The United States yesterday, it was a holiday, and I don't know if that was a factor in delay contact Apple.

    Back in office 21, you wrote about your daughter having a copy... supposed to program elements 14 Mac first.

    a. on what Mac operating system that runs the program - of El Capitan Yosemite?

    b. If El Capitan, what is the difference between his computer and yours?

    Also, there is a specific problem for first 14 Mac Elements, and it is called error Activation fee. Its impact on exports MPEG and DVD burns.

    At any time did you see an error message related to this? I am referring to the details for this found

    First Elements ATR troubleshooting: EP 14: first items 14 Mac Adobe Solutions only for three known issues

    Please consider. We will follow developments as your schedule allows.

    Thanks for staying with it. Appreciated.

    RTA

  • When using adjustment layers, I get the message "adobe could not rasterize because pixels for this layer data are not directly editable" what's the problem?

    When using adjustment layers, I get the message "adobe could not rasterize because pixels for this layer data are not directly editable" what's the problem?

    This happens because there is no mask on adjustment and you have selected the Brush tool. You cannot paint on an adjustment. If the masks are not be created by default when you create the adjustment and you want that they be created, select mask add default option in the context menu of adjustments of the

  • Question WebService data persistence data control

    Hello

    We use a Web Service data on two pages jspx for application control. The control of data attributes are added on the two pages as data binding.

    Scenario: we submit certain data from page 1 using the web service data and go to page 2. Fill in some data on page 2 and again to apply for the data Web Service and after successful response control back page 1. Same thing repeats again and again for this scenario.

    Now the question is, submit us data of page 1, move to Page2, submit some data of page 2 and return to page 1. If repeat us this process, while presenting data on page 1, the data that we presented earlier on Page2 also get submitted, should not. We want only to present data according to the link on this page. Page1 is unlimited taskflow and Page2 is in the stubborn taskflow.

    We tried setting values as: CacheResults: false on iterator, refresh condition: Ifneeded, UsePersistentStructure to false, the control data. Also tried to reset and turn off data using the API and resetInputState on the links. But nothing works. The only method that works is ClearForRecreate on iterator Page1. But since internal its method, it might not be good to use. Also, after the use of this tells us to receive intermittent error indicating AttributeList$ IRB cannot be cast to a string and exception argument is not an array a few times.

    Please let me know, how I can ensure that the correct data are sent to the data control for the web service.

    With the help of JDev 11.1.1.6.

    Thank you

    Solved by removing the option of data relating to the shares in taskflow control.

    Thank you

  • Former VM which is no longer in use

    It seems that we have several directories on our disks in VSphere that were simultaneously active virtual machine but which are no longer used.  Is there a mechanism that I can use which will display all active VM and physical location on the disk?

    Thank you
    Terry

    You can check the file date.

    Or use scripts.

    Or use some programs like RVTools.

    André

  • BLOB data in the directory using UTL_FILE

    Hi all

    "I wrote a procedure to store BLOB data in the directory using * UTL_FILE.



    Using the package UTL_FILE, I created procedure below. Procedure runs successfully without any error, but the file is not written to the directory. Pls find my procedure below.
    * CREATE OR REPLACE PROCEDURE Write_BLOB_To_File
    AS
    v_lob_loc BLOB;
    v_buffer RAW (32767).
    v_buffer_size directory.
    v_amount directory.
    v_offset Number (38): = 1;
    v_chunksize INTEGER.
    v_out_file UTL_FILE. TYPE_DE_FICHIER;
    BEGIN
    -- | SELECT THE LOB LOCATOR
    SELECT an attachment
    IN v_lob_loc
    ATTACHMENT
    WHERE attachment_id = 720;
    -- | DISCOVER THE CHUNKSIZE FOR THAT LOB COLUMN
    v_chunksize: = DBMS_LOB. GETCHUNKSIZE (v_lob_loc);
    IF (v_chunksize < 32767) CAN
    v_buffer_size: = v_chunksize;
    ON THE OTHER
    v_buffer_size: = 32767;
    END IF;
    v_amount: = v_buffer_size;
    -- | OPENING A LOB IS OPTIONAL
    DBMS_LOB. OPEN (v_lob_loc, DBMS_LOB. LOB_READONLY);
    -- | WRITE THE CONTENT OF A LOB IN A FILE
    v_out_file: = UTL_FILE. FOPEN)
    location = > "EXAMPLE_LOB_DIR"
    filename = > "Test.doc."
    OPEN_MODE = > 'w ',.
    max_linesize = > 32767);
    While v_amount > = v_buffer_size
    LOOP
    DBMS_LOB. READ)
    lob_loc = > v_lob_loc,
    amount = > v_amount,
    offset = > v_offset,
    buffer = > v_buffer);
    v_offset: = v_offset + v_amount;
    UTL_FILE. () PUT_RAW
    file = > v_out_file,
    buffer = > v_buffer,
    AutoFlush = > true);
    UTL_FILE. FFLUSH (file = > v_out_file);
    -UTL_FILE. NEW_LINE (file = > v_out_file);
    END LOOP;
    UTL_FILE. FFLUSH (file = > v_out_file);
    UTL_FILE. FCLOSE (v_out_file);
    -- | THE LOB OF CLOSING IS REQUIRED IF YOU OPENED IT
    DBMS_LOB. Close (v_lob_loc);
    END; *


    I have provided the necessary privileges for the schema and directory. But the file is not written to the directory. can you please advise me

    OPEN_MODE-online 'w' change to open_mode-online "wb."

  • "All the data Points" option missing on totals

    In a specific workbook (Discoverer Desktop 10.1.2.2), when I go to edit or create a total for one of the worksheets Table, 'All the data Points' option is not there. I can always create sums, counts, etc. on the individual columns. I forget something obvious? There are some sets of circumstances where "All the data Points" would not be an option?

    Hello

    You will have only the option "All the data Points" when you create a new total if there is a data point in the report. Unlike a crosstab report where you can drag an item in the crosstab table to a data point, in the report of the table there is no way to tell Scout that a calculation is a data point.

    Items (including the calculated items) in a folder can be changed to be a data point by changing the property to default to "Data point" position using the administrator of the Disco. If you add a data point in the report, then 'All the data Points' option will be available.

    Also you can cheat discoverer by using a calculation as a data point using an aggregate function for example sum (case where student_grade like 'A%' then ends 1 0 otherwise), but discoverer will then use a group by in the query, and this can give you a different result.

    Rod West

  • Date to determine functions using the % for the year ended

    I'm trying to figure out how I can use date functions to determine the percentage of my organizations exercise which was completed. For example, our fiscal year starts October 1 and ends on 31 November the following year. Based on the current date, I want to be able to determine what percentage of exercise has been completed. I guess I can set variables for the dates of beginning and end of the fiscal year, and then use the Now() date function to determine the current date. Can I use the DateDiff() function to accomplish this task?

    Calculate the number of days in the fiscal year and the number of days since the beginning of the year and divide:



    I guess your arrival dates are wrong, because there is no 31 November and your year is long 14 months.

  • Slow reads as follows: my data is meaningful to use with Berkeley DB?

    Hello

    My speed of insertion is wonderful, but I feel slow bed. It may be the way I use the sliders.

    My key is a double. My data looks like this: (int X, int dontcare, int dontcare1, dontcare2 byte [8]).

    I'm trying to do a 'select' statement that uses a slider to look through a RANGE of keys. In this range, the cursor looks like inside the data to find specific records which have a particular value of X (int). I ask if my data is logical to use with Berkeley DB because to find records in the beach is fast (VERY fast), but to iterate through all the records in the range, open the data and then analyze int X to see if X == someparticularvalue seems to be very slow. Because I go INTO the data to find particular values of X, this prevents me from using the getSearchBothRange() method.

    PSEUDOCODE:
    COUNTER = 0
    Open a cursor
    getSearchKeyRange to find the key value closest to you at the beginning of my range of keys
    WHILE the value of getnextnodup is still in the range I'm looking for & & COUNTER < LIMIT_NUM_OF_RECORDS
    get data
    IF data.x is particularValue
    memorize the current folder
    counter ++
    END IF
    END WHILE

    (because Berkeley DB forces the user to manage low level to research, I fear that I use one) not correctly b) do not effectively research the sliders. I could remove the "counter < limit_num_of_records" and put it in my IF statement and break when the condition is met, but I don't think it really makes a huge difference over time.

    Help would be greatly appreciated.

    Thank you
    Julian

    Julian,

    I hope that I don't mislead you. This only works if the values of k1 are sequential and known in advance.

    int k2 = ...
    for (double k1 = start; k1 <= end; k1 += 1) {
        // make a key {k1, k2}
        // call Database.get or Cursor.getSearchKey
    }
    

    If this is not possible, you will need to return to an analysis of the values of k1 and select by k2. Sorry if I'm wrong you.

    There is nothing magical about the queries I. The only mechanism underlying query is key or key range. You can add secondary keys for additional requests, but only if you have a unique primary key.

    The same is true for all databases in general. If you were using a language such as SQL query, the query would likely be implemented internally by scanning of a range of key for k1 and selecting by k2.

    -mark

Maybe you are looking for