Need some suggestions in writing the package...

Hello world

I just asking this question to know better than I do.
I have a patient with 2 million lines in it. Is it possible to extract the 2 million lines in a textfile using UTL_FILE?. I need to extract each related data patients from different (bigger than the patient table) tables in a file deleted by commas. For each patient id, I must query other tables and get the data associated with this patient (depending on condition). For this I need to call different functions on different tables.

Some people think like that...

Create or replace procedure XXXX

cursor-> to get the ID of the patient
variables-> declare all variables

Start

File Manager for the file of the utl to write to a file
Open the cursor
using bulk collect limited no of lines extraction

For each patient id
Data1: = function1
data2: = function2
Data3: = function3
--
--
--
--
--

string: = data1 | Data2. Data3. ....
UTL_FILE.put_line
redefine the chain
end loop;

end;

My questions are:

Is it possible to call different functions for each id of patients (2 million patients) are there? is there a better way to do it.
Please give me some suggestions if I need to change all the steps that I follow for best performance.

Thank you
Phani

Marella Phani wrote:
What happens if the function is a logic complex which can be done in SQL?

Then, I would say that you might be surprised at what can be achieved in SQL, and if you encounter any problems just post it here, I'm sure there will be someone who could fall for you ;)

Seriously, if you need to call a function of 2 million times, you code seriously slow, not to mention the processing power that would be involved. It's the difference between the treatment by SETs (SQL) and treatment by unique records.

Tags: Database

Similar Questions

  • I bought cs6 design web premium, I need some somware to open the file "7z".

    I bought cs6 design web premium, I need some somware to open the file "7z".

    You can view the applications download Creative Suite 6 to download the software. To open the 7z file, you can download WinRAR from WinRAR download and support: download

    Hope this will help you.

    Concerning

    Hervé Khare

  • Tecra M5 and Debian - need some suggest before you start

    I just bought a new Tecra M5.
    I need to use Debian on it.
    Use some suggest to give me before I start?
    Could I have some problems with comatibility?
    Thank you!

    Perhaps you will be not possible to run tools and look for some drivers.
    Create a backup of your important files before installing Linux. Create a second partition for Linux, then install Linux on that partition. In this case the Linux wouldn t have a bad influence on the first partition and windows OS.
    If something goes wrong, you can always delete the second partition Linux.

  • Need some tips to merge the two table-manipulation functions

    Hi guys!

    Thanks to Johnsold, Helmut O'Brian and Jcarmody, who helped me through a string function complicated (for me, the noob of LV), I got away with my project and I'm very close to its end.

    As I've described it here I wanted to explore an array of words combined with-, i.e. C1 - C10. Help, when I arrived, I was able to do. I also learned a few things and was able to do the following:

    Original array: new table:

    R1                                                       R1

    R2                                                       R2

    C1-C3                                                  C1

    K1                                                       C2

    C3

    K1

    I have this:

    Original array: new table:

    R1                                                       R1

    R2,R4,R7                                             R2

    C1                                                       R4

    K1                                                       R7

    C1

    K1

    I was also able to combine these two functions

    Now, back to my problem.

    Until now, it was just a 1 d array that I worked with. In fact, it's a 2D array, I read a. CSV file:

    As you can see there are a few places where things is combined with either - or by commas. I need to widen the first column as described above and as resolved in the thread I mentioned. Fact! No problem. I extracted the first column in table 1 d. Then expand it. Now, I need to replace in the original array and also expand all.

    It should then look like this:

    Then I only need to copy the position of the R6 line and paste it in the empty fields:

    I enclose below two screws. Start by opening the main.vi. Then copy.vi. I tried to describe the problem here too. You can see what I've accomplished and what is missing.

    Tasks:

    1. replace the column expanded in the original array and expand all.

    2 copy the needed lines.

    In the main.vi, I do the 1 d expansion, but I have the problem with the expansion of table 2D. In copy.vi, I managed to copy the lines. If this part is done.

    Basically, I need some advice on enlargement that I do and how do I get the 2D table also expanded. Because I have not much experience, I feel more comfortable working with 1 d arrays. But I can't seem to get any further with this 1 d-> expansion 2D.

    I also really can't seem to find a smart way to implement my function of copy-line-in the main.vi.

    P.S the joint screws are manufactured in LV2010.

    Fortunately, I can attend some courses of basic home OR here in Norway, but so far, I'm still learning and I think that sometimes, I try to do things that are way out of my League

    I don't know what I did but it works now

    Thanks for the help, same!

    You are even welcome!

    Have attached the file if anyone wants to see what I did.

  • Suggestion: functions to the package level assert at least grabbing FlexUnit 4

    AS3 is not as nice as Java 5 imports static method, but we can do the same thing with functions at the level of the package. We could use these to reduce the amount of typing required FlexUnit 4.

    I added this to my fork of AsUnit:

    http://github.com/robertpenner/AsUnit/commit/bdb293436491792625ddc1f637c81c723986b87d

    Example:

    package AsUnit . says {
    Import AsUnit . framework . Assert ;
    public const assertEquals : function = Assert . assertEquals ;
    }

    In the test case, this would be used as follows:

    Asunit.asserts import. *;
    ...
    in the test method
    assertEquals (...

    I totally agree with you. I wish we had static imports as well.

    We will talk more about your suggestion, I am certainly open to it.

  • looking to upgrade to the latest version need some suggestions

    Hello

    Have a 3.02 and the upgrade to the latest vsphere 4.1 I think?

    in any case, because my subscription ran out and through obtaining a another maintenance contract my business partner says, I may need to do a fresh install of vsphere (cheaper).

    That said I have some downtime on all my servers.  What is more effective the easiest way to solve this problem?

    If it is not painful 2 do it to the hours I would do it so I don't have to work a weekend.

    Thanks in advance.  I have ESX running on a blade with the virtual machine on the SAN

    Gotcha; HS21 8853

    I just do vCenter 4.1, then remove 1 blade both the previous approx. format and install 4.1 on it and add it to the new vCenter and then use the converter to upgrade the virtual machine.    BTW: After you convert make sure them you first update VMware tools and after that everything works for awhile, then upgrade to version 7 virtual hardware and check that you get a full backup vmdk virtual machine before you upgrade virtual hardware just in case.

  • Need some tips on using the field

    I'm a bit of a newbie in this aspect of RoboHelp and could use some advice.  We use RoboHelp 9.0.1.262 on Windows for a Microsoft HTML project.

    Help, I work with the Basic uses of the project sensitive context help (linked pages with pop-up windows), on each page of the interface of the software (Help button) and help on the fields and the other buttons field (click on the? mark). Developers have already added using software and sent me a text string and a value digital (or hex) pay-per-view to. I wrote the help and created the text file using the field. Everything works except the help of the field.

    The sheet of cheats, drafted by the previous writer explained that you need to create a text file called < tout_nom > .txt this help in the format text:

    .topic HIDC_OPTIONS_EXAMPLE

    Sample text for the field.

    Each entry is separated by a blank line imported into the project in the folder 'what is' in the project configuration module. I created a < tout_nom > .h file and imported into the map files folder. The format is:

    #define HID_OPTIONS_EXAMPLE 0x82bd0002

    #define HIDC_BROWSE_EXAMPLE 0x82bd1b5a

    Each entry is on a new line and the text string are separated hexadecimal number by a tab. The chain and the tab I have been given by development. Once compiled, I just get 'No help on this field' when I test it against the software. What Miss me? Processes only the doc of RoboHelp with a tool to create a separate project. Is this necessary? The writer who wrote the cheat sheet has not used one with RoboHelp 7.

    Thanks in advance. I worked on getting this past few days without success.

    To finish this thread, I found the problem. Something simple that I didn't know, as you can imagine. Amoungst all the context IDs (1084 of them), there were a couple that have not been mapped. There is no place for me to look like any other program I used is quite robust not not to break completely because of something as simple. Not robohelp, apparently. Even if the IDS not mapped had nothing to do with the areas in question, they broke the What's this? help so completely that nothing worked.  I am surprised and dismayed. What a waste of time.

  • Need a suggestion related to the BC

    Hello

    I have a knowledge of basic/intermediate SQL (cleared papar 1 review MySQL DEV last year), now, because of the obligation to work, I got an additional responsibility to Oracle related study and certification.

    I intend to go to Oracle 10 G BC - DBA track, and I think going to review IZ0-042 since my co. pays the costs for the oracle for this class.

    In order to practice and learn I thought to install oracle on my machine instead of immediately getting in the classroom with empty face.

    Let me know which are the best options available

    (1) install windows xp on vmware and then install oracle on vmware, although I don't know what version of oracle should I go for some other edition or Express Edition?

    OR

    (2) install oracle on i.e.directly xp on the physical computer rather than vmware.

    OR

    (3) install ubuntu (not sure about the ubuntu version was looking for you desktop or server), and then install oracle

    I bow to option 1 or option 2, because I'm not very good at linux stuff, and I don't want to spend a lot of time in linux right now, I would have preferred to focus on the portion of the oracle.

    Based on your exp. can you suggest me which is the best option and also what oracle version should I download?

    Oracle Express edition

    OR

    Standard Edition, Enterprise Edition and Standard Edition One

    Waiting for your response.

    Concerning

    Learner

    Oracle Database 10g Release 2 (10.2.0.1.0)
    Enterprise/Standard Edition for Microsoft Windows (32-bit)

    No doubt the right choice if you have windows XP PROFESSIONAL (not xp family) 32-bit and the wish to study 1z0 - 042

  • NEED SOME SUGGESTIONS FOR PERSONALIZED CORES

    I had a sony ericsson live with walkman earlier and I flashed custom kernel and rom for it... and it works beautifully so far... Currently I have a Xperia ray and I would do the same thing... Before I get started let me know the best custom kernels out there for this device?

    I guess you should look for XDA

    As far as I know kernel team free xperia (xperia free project) are the best

    DooMkernel etc. etc.

    http://Forum.xda-developers.com/showthread.php?t=1520654

    Verify signature

    http://Forum.xda-developers.com/member.php?u=2784807

  • Need some sample data for the practice of obiee

    Hi all
    I installed OBIEE 11.1.1.5 using SQL SERVER 2005.
    Can someone help me on some examples of data for purposes of that practice sampleapplite

    Thank you
    SatyaB

    Satya done!

    Rgds,
    DpKa

  • Need administrator rights to install the program, but I am the administrator. What am I doing here?

    I am trying to install a program, but I get the message that I need administrative rights to install sign out and then sign in as an administrator. But I am the administrator, so what do I do? Why do I get these messages when I am the administrator and I have administrative rights?

    I'm trying to install Pinnacle Studio 9. It ran fine under XP. Is it possible to install as XP application? I am at a loss and I need some suggestions.

    I am running Windows 7 Home Premium.

    Right click on the shortcut to install, then click "Run as Administrator".

  • I have creative cloud but I can't find in the package lead Edge and I need it for some exercises, how do I get it, thanks

    I have creative cloud but I can't find in the package lead Edge and I need it for some exercises, how do I get it, thanks

    You can also download it via the direct link:

    Direct download links of Adobe CC 2015: 2015 creative cloud release | ProDesignTools

  • I paid for the pack of adobe PDF and I in some weird screen which shows the different products to buy. I just want to use the pdf pack to do what I need. any suggestions?

    I paid for the pack of adobe PDF and I in some weird screen which shows the different products to buy. I just want to use the pdf pack to do what I need. any suggestions?

    Hi jerrir58650452,

    You can access your service pack pdf by using the following link: https://cloud.acrobat.com

    Kind regards
    Rahul

  • some pages to say I need a plug-in but the plugin finder never stops

    I use Firefox on Ubuntu Linux 13.04 21.0. Some pages come with a message at the top of the page, "this page requires plug-ins to display additional content.» It does not say what plugin or what type of content and the page looks normal - no obvious missing pieces. If I click on "Get plugin" a window appears indicating that it is looking for plug-ins. He succeeds forever and never stops. Usually after half an hour of so I click cancel to get rid of him. How can I find out what plug-ins, he thinks I need?

    I thought I posted this time. If it is a dual display, sorry about that.

    It's embarrassing. I thought that I had installed Flash. I watched YouTube videos and videos on other sites, so I really do not pay attention to my list of plug-ins. Last month, I have re-installed Ubuntu 12.04, who created a new installation of Firefox. Firefox is the browser by default for Ubuntu, but Flash has to be installed separately.

    In Ubuntu, the only way to install Flash is to install the package 'flash-plugin-install' maybe average of manually it install Adobe Flash Linux package, but I didn't get there. Just install "flash-plugine-install" either through the Ubuntu Software Center, Manager Synaptic package, or command line, 'sudo apt - get install flash-plugin-manager '.

    Thank you very much for the time you took to help me.

  • I have Adobe Reader XI with the package that allows me to send a PDF file and convert PDF files to Word. When I open a pdf file and you try to find the search shows no match, even if the word I'm looking for is in the document. Suggestions how to search?

    I have Adobe Reader XI with the package that allows me to send a PDF file and convert PDF files to Word. When I open a pdf file and you try to find the search shows no match, even if the word I'm looking for is in the document. Suggestions how to search?

    A scanned document is an image; You can't find a picture.

    If the image contains text, recognition of characters (OCR) will convert the 'text' in the image in real text (searchable, editable).

    OCR can be performed automatically when converting a PDF to Word, using the ExportPDF service.

    To run OCR inline in a PDF document, you will need Acrobat.

Maybe you are looking for