Create one or more files using PL - SQL

Hi Experts,

I have a table that contains records of 360 and want to create several files each containing 12 archive file.

I tried to use the code below, however has been missed...

Help, please!

DECLARE

NUMBER NUM: = 1;

f_file UTL_FILE.file_type;

row_sm NUMBER: = 0.00;

CURSOR c_cur

IS

SELECT customer_key, all_columns_concat

DEMONSTRATION;

c_rec c_cur % ROWTYPE;

BEGIN

OPEN c_cur;

LOOP

EXTRACTION c_cur

IN c_rec;

OUTPUT WHEN c_cur % NOTFOUND;

While num = c_rec.file_num

LOOP

f_file: = UTL_FILE.fopen ("DM_DIR", "FILE_" | num, 'w', 3267);

NUM: = num + 1;

END LOOP;


UTL_FILE.put_line (f_file, c_rec.all_columns_concat);

row_sm: = c_rec.sum_row + row_sm;

END LOOP;


UTL_FILE.fclose (f_file);

NARROW C_cur;

END;

Kind regards

Delight.

-Created the 29.10.2013 by RAMIN. H

declare

cursor cur_select is

Select f, f_num, lag (f_num) on prev_f_num (control f) -! Watch

from (SELECT level f, ntile (9) on f_num (level control) FROM dual connect by level)<=>

rec_cur_select cur_select % ROWTYPE;

n number;

f utl_file.file_type;

Start

n: = 12;

Open cur_select;

loop

extraction cur_select

in rec_cur_select;

When the output cur_select % NOTFOUND;

If (rec_cur_select.prev_f_num is not null and rec_cur_select.prev_f_num! = rec_cur_select.f_num) then

UTL_FILE.fclose (f);

end if;

If (rec_cur_select.prev_f_num is null or rec_cur_select.prev_f_num! = rec_cur_select.f_num) then

f: = utl_file.fopen ('GL_OUT', 'file': rec_cur_select.f_num, 'W', 3267);

end if;

UTL_FILE.put_line (f, rec_cur_select.f);

end loop;

close cur_select;

UTL_FILE.fclose (f);

end;

----

Ramin Hashimzade

Tags: Database

Similar Questions

  • How to convert one or more files LVM of large file TDMS (500 MB, 32 M samples - 2 channels)

    I would like to be able to read at least 4 million lines of data total 32 million lines at a time. The TDMS file has given for 2 channels and no time data. If I can convert TDMS files in one or more files LVM, I can read large files of LVM using the JMP software.  I'm using Labview 2009. Please provide suggestions.

    Thanks in advance. Best regards, Manish (Univ of a to z)

    Hi Manish,

    For your problem with is .tdms to .lvm, take a look at this forum and This example of community.  I checked out, and in my opinion, he should be able to work well for you in regards to creating multiple files .lvm from single .tdms file.  The only thing that could be a problem is the time requirement to enter all in LV, and saves data to several files, but you will encounter when you work with large consumed data.

    I would also suggest that you take a look at tiara if you are searching by analyzing large data sets.  The program is designed to manage large sets of data and make the analyzation on the data.

  • I have windows 7 and that you have not knowingly changed parameters. When I try to download something or play sims # I get a message that says your internet security setting preventing one or more files being opened.

    I have windows 7 and that you have not knowingly changed parameters. When I try to download something or play sims # I get a message that says your internet security setting preventing one or more files being opened.

    Hi facions.

    What browser do you use?

    If you use Internet Explorer, you can optimize Internet Explorer and check if the problem persists. For more information, follow this link: How to optimize Internet Explorer

    Hope the helps of information. Please post back and we do know.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I have a new PC with Windows 10 Pro and I leave iTunes every time I gt the flollowing message. "One or more applications use scriping of iTunes interface. Are you sure you want to exit? "All help to stop this would be appreciated.

    I have a new PC running Windows Pro 10 and everytime I close iTunes I get the following message.

    "One or more applications use iTunes script interface. Are you sure you to quit smoking? -If you have nothing will close the application using the script interface and a 20 20 second timer starts. "

    I was wondering if someone can help me with a solution to this?

    What third-party software is running on your computer? Last.FM is one that comes to mind.

    TT2

  • Error message when you try to download files - WINDOWS SECURITY, these files cannot be opened. Your internet security settings prevented one or more files being opened.

    Original title: C:\windows\system32\icacls.exe
    For the last few days I tried to download the different elements as well as download Trend Micro security/antivirus protection.  Whenever I do; try to download something or download something, I get the following error:

    WINDOWS SECURITY, these files cannot be opened.  Your internet security settings prevented one or more files being opened.
    C:\windows\system32\icacls\exe

    I have not found anything within windows security who would do this and when I get this error C:\... it just on my screen flashes, then disappears.

    Any suggestions?  I really need to download Trend Micro.

    Thank you
    Amy

    See the article below:

    ID of the KB Article: 2588679.
    Error message when you try to open some files in Windows 7: "your Internet security settings prevented one or more files being opened."

    Check the following settings:

    Right-click on the downloaded file. Select Properties.
    Click the Unlock button.

    Check the suggestions the following threads:
    http://social.technet.Microsoft.com/forums/en/w7itprosecurity/thread/ab6de772-CE20-4621-88ce-5ae568369826

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/these-files-cant-be-opened-your-Internet-Security/7bbe6bc9-d89f-4407-81fa-ea4c24b39aaf

    Let us know if that helps.

  • "These files can not be opened","your internet security setting prevented one or more files being opened.

    I followed aid guidelines that provided me by windows, but it does not solve my problem,

    I'll click on Device Manager and I get this error message which is "Can't open these files", "your internet security setting prevented one or more files being opened.

    I have tried everything that windows told me to do but without success!

    I click on options internet and changed levels of security around but yet once, without success! Does anyone have an idea?

    Thank you very much for the support, I thought of a solution, I bought Windows 7, I installed it on a partition again and fortunately I no longer receive errors

  • "Media player is unable to extract one or more files to a CD." when extracting files

    original title: message said that media player is unable to extract one or more files to the cd. I pulled forward, what can be the reason

    I ripped some cd before. While he was trying to rip some more lately I get the message that media player is unable to extract one or more files to the cd in the drive. I have no idea why this has happened. Someone at - he a clue.

    Hello

    You receive the error that Windows Media Player is unable to extract one or more tracks from the CD. The error is often caused when you try to copy the CD to a poor quality.

    Follow the steps and make sure you have an audio recording of best quality.

     (a) open Windows Media Player.

    (b) in Windows Media Player, click Tools in the menu file . If you don't see the file menu, press the ALT key .

    (c) in Tools , click on Options.

    (d) in the Options window, click the Rip music tab, and drag the Audio quality slider to the right where it is, either the best quality, or the second highest quality.

    You can also follow this thread and refer to the suggestions posted by Zpete and Divya R who helped solve a similar question.
    http://social.answers.Microsoft.com/forums/en-us/w7music/thread/93c279f7-89ae-4a7c-B7EA-fdc7785ed335

  • Convert .xls in .csv file using pl/sql or any other method (oracle 9i)

    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64 bit Production

    With partitioning, OLAP and Oracle Data Mining options

    Release 9.2.0.8.0 - Production jserver

    10.1.2.0.2 generator

    ORACLE Server Release 10.1.0.4.2

    Oracle 10.1.2.0.2 procedure generator

    Oracle ORACLE PL/SQL V10.1.0.4.2 - Production

    Oracle 10.1.0.4.0 Production CORE

    Integration Services 10.1.2.0.2 tools Oracle

    Space common tools Oracle 10.1.2.0.2

    Oracle Toolkit 2 for 32-bit Windows, 10.1.2.0.2 platforms

    Resource object 10.1.2.0.2 store

    Oracle Help 10.1.2.0.2

    Oracle Sqlmgr 10.1.2.0.2

    Query Oracle 10.1.2.0.2 - Production Designer

    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)

    Oracle ZRC 10.1.2.0.2

    Oracle XML Developers Kit 10.1.0.4.2 - Production

    Virtual graphics system Oracle 10.1.2.0.2

    Image of Oracle 10.1.2.0.2

    Widget media Oracle 10.1.2.0.2

    The GUI utility 10.1.2.0.2 tools Oracle

    I had seen a very old post of 2009.

    Convert .xls in .csv file using pl/sql

    I know that it s a long time but just wanted to know if there is a way to convert excel .csv.

    I have a directory say 'F:\purple_top\ '. I'll get the .xls file in this directory. I need to change to .csv and tables load external oracle. Any ideas or advance coding on it since 2009 so far?

    A few other options might be:

    • Java code, which can be used from within Oracle, which makes use of utility libraries (e.g. Aspose.Cells) open source (for example Apache POI) or "save under" CSV, or read the source cells and their output to a CSV file.
    • COM Automation, using available open source (for example, JACOB or j-interop) or commercial libraries, which can automate Excel to open a XLS file and "Save as" a CSV file. In addition, Oracle has a feature of COM Automation (available since version 8 but abandoned after Oracle 11g). I have successfully used this read (non-macro-enabled) Excel files in PL/SQL.
    • Other approaches using Perl or PHP can be found by googling 'convert xls to csv.

    Gerard

  • I get this error message on photoshop cs6 "one or more files in the Adobe Application Support folder necessary to the operation of photoshop are missing. ' Run the photoshop Installer and re-install photoshop. Could not help people talk to adobe. Does Any

    I get the following error message when I open photoshop cs6 "one or more files in the Adobe Application Support folder necessary to the operation of photoshop are missing. ' Run the photoshop Installer and re-install photoshop. Chat room Adobe could not help. I don't have a disc - it has been downloaded online. Does anyone have a suggestion?

    Hello

    Try re-download Photoshop CS6 license with your serial key and the link below:

    https://helpx.Adobe.com/x-productkb/policy-pricing/CS6-product-downloads.html

  • one or more files were not imported because he had problems reading of their

    How to import a video to Flash Professional CC 2014? It's already a .flv file but I still get the "one or more files were not imported because he had problems reading of their" pop up

    @

    Flash Professional CC 2014 support FLV videos but make sure you import your videos into Flash AS3 or AIR doc-types only. WebGL and Canvas of HTML5 doctypes do not support videos and therefore import video option is disabled in these types of doc.

  • Just had help installation cc 2014. get this dialog box when I open the app. One or more files in the folder required for the operation of photoshop adobe are missing. Help

    Just had help installation cc 2014. get this dialog box when I open the app. One or more files in the folder required for the operation of photoshop adobe are missing. Help

    Run the cleanup tool to remove Ps CC 2014:http://www.adobe.com/support/contact/cscleanertool.html .

    Restart the computer and then try to reinstall Ps CC 2014.

    Kind regards

    Ashutosh

  • I constantly get the error 'could not get new comments. One or more files are missing on the server.

    I constantly get the error 'could not get new comments. One or more files are missing on the server.

    It gets a little old. I know that the files are there. There is some ongoing compatibility issue?

    Hi kuntzmd

    Please visit: http://forums.adobe.com/thread/533034

    http://forums.Adobe.com/thread/33586

  • Unable to open these files. Your Internet security settings prevented one or more files being opened.

    OS: Windows 7 Ultimate 32 bit with UAC disabled

    Hello

    I turned on my computer this morning and all of a sudden all _ broke loose. Everytime I try and open an exe file I get a security alert box Windows telling me that:

    "Unable to open these files. Your Internet security settings prevented one or more current files opening. »

    I read through every thread I can find on the subject, and none of the "answers" worked for me.

    I tried the common next 'solutions' with no luck:

    (1) right click on the exe, click Properties
    Click the Unlock button
    Click OK

    (2) adding exe to the control panel > Windows Defender > Tools > Options > excluded file types

    (3) start / Control Panel / Internet Options.
    (Displays control panel Internet Options)
    Click the security"" tab.
    Click "Local Intranet".
    Drag the slider to "Low".
    Click the 'Sites '.
    Click on the button "Advanced".
    Enter the IP address of the NAS / SMB / CIFS / some server and click "add".
    Click "close".

    (4) delete the registry key - HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{EF87B4CB-F2CE-4785-8658-4CA6C63E38C6}\TopViews\{00000000-0000-0000-0000-000000000000}

    (5) create a profile admin completely. -This one was interesting, when I logged on the account there was no aero theme - he went immediately to the essential.

    So any ideas?

    I had not mentioned in my HKCU registry entry. I solved the problem by resetting all my settings IE. If something in Internet Explorer is the cause.  In fact, which fixed the problem for every user profile on the machine.

  • Reinstall Application support folder - missing one or more files - Adobe really desirable?

    Have PS CS5 for Mac. My current operating system is OS X El Capitan 10.11.4.

    After a failure of the drive I had to take a backup of a previous OS Photoshop.

    At the beginning of PS, I get the message "the Adobe Application Support folder is missing one or more of the files that are required for Photoshop. Run the PS setup and reinstall PS. »

    But who has lost all my settings. I use some plug-ins. It is possible that it is no longer can be rebuilt.

    A test shows that the PS is working, but I can not try.

    In the case of resettlement really desirable? If so, I have the existing installation before uninstalling (Mac Trash or uninstaller PS?)

    Habe PS CS5 as Mac. Mein derzeitiges Betriessystem ist OS X El Capitan 10.11.4.

    Nach Plattendefekt ich aus einer safety eines altern operating system more Photoshop would.

    Beim die message "Im Adobe Application Support there eine several Dateien oder Ordner, die as Photoshop required Sindh of the PS kommt starten von. Führen Sie das Installationsprogramm von PS aus und installieren Sie PS Rubis. »

    Damit aber alle meine Einstellungen verloren go. ICH use some Plug - ins are possible, dass nicht mehr rekonstruierbar sind sharp ist.

    Ein Test shows, dass PS works, aber ich kann nicht alles taste.

    Ist eine Neu-Installation really highly recommended? Wenn ja, muss ich die Aufenthaltsraume.man Installation erst deinstallieren (Mac Papierkorb oder by PS-new)?

    Check out the thread here, with a lot of info to get CS working on 10.11.3 and 10.11.4 5.5 (Java JDK 6, install, how do I get updates of work, etc.): Re: Illustrator CS5 + Mac El Capitan = blockages!

  • One or more files missing shockwave...

    Shockwave has stopped working on my computer. I can't find in my files program or the list of Control Panel programs. When I go to the download page on this site a box pops up saying

    "One or more Shockwave files are missing. Would you rather go to the Adobe site to repair? »

    When I click on Yes, I stay on the same page but nothing happens. The only thing I remember doing recently has been change some things when I went on ' Turn Windows features on or off "in option programs and features in Control Panel. Problem is I don't remember what I've done and that you do not have the "know how" to understand if that caused the problem in the first place. "

    I use IE with Vista Home Basic. It has really affected my internet experience as Shockwave is an integral part of many things I do on the internet, any help would be really appreciated.

    Thanks in advance,
    Shane.

    There is an uninstall program to
    <>http://www.Adobe.com/shockwave/download/alternates/#SP >
    While you're there, you might as well enter the full installer and run it
    Once you have run the uninstall program

Maybe you are looking for

  • Troubled Publshers of Clearing house

    a site stops working after hitting submit / beat box to reload the page because of the error. also, it will freezes and PCH slots site / did everything what they suggest and no results. RELOADED Adobe and worked for awhile and bent without making any

  • How to restore a single application?

    Is there any way to restore a single application from my old to my new iPad? Everything except this one game out my windows7 PC okay, but a game with three levels empty load on the new ipad. Any help is appreciated.

  • KB2360131 problem

    I received an alert to update to install this update cumulative security IE7 today. I went to the Windows Update site and installed after high priority updates. After installation, my computer started crashing. In Add/Remove, I noticed that this upda

  • Why are all the drivers for systems dated only for 2006? microsoft updates?

    I noticed on all devices systems the only date of 2006 on most, why microsoft did not create new drivers updated now?owner of the frustrated computer!

  • password BIOS on HP mini

    Please can you help me. I have a hp mini and I'm lockt outside, he is asked for a password. not used for a bit and I forgot the code Returns a code of CNU94922QF after as I did try three times hope you can help. Thank you, Manson.