procedure

Hello

What is wrong with procedure below

I'm working on the 11g standard edition

create or replace procedure read_text_file
(pfile varchar2)
is
cnt        number:=0;
ddl                varchar2(4000);
   begin
                   select count(*)
                   into cnt
                   from user_tables
                   where table_name = 'ACH_LOAD';
                           if ( cnt = 1 ) then
                                   ddl := 'drop table ACH_LOAD';
                                   execute immediate ddl;
                           end if;
ddl:=q'{
   cREATE TABLE ach_load (
   col1 varchar2(11),
   col2 varchar2(20),
   col3 varchar2(56),
   col4 varchar2(33),
   amt  varchar2(13),
   col6 varchar2(27),
   ifc  varchar2(11),
   acno varchar2(15),
   col7 varchar2(100)
   )
     ORGANIZATION EXTERNAL
     (
   TYPE ORACLE_LOADER
     DEFAULT DIRECTORY hrk_new
     ACCESS PARAMETERS (
     RECORDS DELIMITED BY NEWLINE
     FIELDS (
   col1 char(11),
   col2 char(20),
   col3 char(56),
   col4 char(33),
   amt  char(13),
   col6 char(27),
   ifc  char(11),
   acno char(15),
   col7 char(100)
     )
     )
                            LOCATION (pfile)
     )
reject limit unlimited}';
execute immediate ddl;
end;

error is

ORA-00905: lack of keyword

ORA-06512: at "RECORD. READ_TEXT_FILE', line 48

ORA-06512: at line 2

Help, please

Yes,

Just saw that... also the following code must use OP...

NOT TESTED!

CREATE OR REPLACE PROCEDURE read_text_file (pfile VARCHAR2)
IS
   cnt   NUMBER := 0;
   ddl   VARCHAR2 (4000);
BEGIN
   SELECT COUNT (*)
     INTO cnt
     FROM user_tables
    WHERE table_name = 'ACH_LOAD';
   IF (cnt = 1)
   THEN
      ddl := 'drop table ACH_LOAD';
      EXECUTE IMMEDIATE ddl;
   END IF;
   ddl :=
         '
   cREATE TABLE ach_load (
   col1 varchar2(11),
   col2 varchar2(20),
   col3 varchar2(56),
   col4 varchar2(33),
   amt  varchar2(13),
   col6 varchar2(27),
   ifc  varchar2(11),
   acno varchar2(15),
   col7 varchar2(100)
   )
    ORGANIZATION EXTERNAL
     (
   TYPE ORACLE_LOADER
     DEFAULT DIRECTORY hrk_new
     ACCESS PARAMETERS (
     RECORDS DELIMITED BY NEWLINE
     FIELDS (
   col1 char(11),
   col2 char(20),
   col3 char(56),
   col4 char(33),
   amt  char(13),
   col6 char(27),
   ifc  char(11),
   acno char(15),
   col7 char(100)
     )
     )
                            LOCATION ('''
      || pfile
      || ''')
     )
reject limit unlimited';
   logger.info (ddl);
   EXECUTE IMMEDIATE ddl;
END;

See you soon,.

Manik.

Tags: Database

Similar Questions

  • I can not pair my Apple Watch with my iphone 6 s so true the automatic procedure freezes the app on my iphone. If manually matching the 6 digit code will appear on the Apple Watch. I have the current ios 10.0.1

    I can not pair my Apple Watch with my iphone 6 s so true the automatic procedure freezes the app on my iphone. If manually matching the 6 digit code will appear on the Apple Watch. I have the current ios 10.0.1

    does anyone have a solution to this?

    Hello

    The following steps can help (try again after each):

    • On your iPhone, in the application of the watch, go to: Watch My > general > use > software update - remove any file update, if one is displayed.
    • Delete all profiles beta (on your iPhone and/or the watch), then restart both devices (this applies only if you have already participated in a program of Apple Beta software).
  • This procedure is a diagnostic test.

    The question how to delete this file EtreCheck found:

    ~/Library/LaunchAgents/com. [email protected]-SharedServices.Agent.plist

    /System/Library/frameworks/CoreServices.framework/frameworks/OSServices.framewo rk/Versions/A/support/CSConfigDotMacCert - /Users/GeoffreyMcCabe/Library/Logs/[email protected]- SharedServices.log u l @me.com SharedServices s t

    Search me has led to an older discussion-"this procedure is a diagnostic test"...

    I ran the test recommended in the Terminal, but this window says there are invalid characters...

    Are there any alternatives to the procedure or updates?

    Thank you...

    Open your library folder of the user by holding down the Option key and selecting the library from the menu go to the Finder.

    Find the LaunchAgents folder and open it.

    Search for the file with the same name as on the Etrecheck and delete it.

  • My googlemail is blocked due to a forgotten password, but google for the recovery procedure continues to send me round in circles.

    My frozen Googlemail account a few days ago, and I had to use the procedure of recovery to thaw, which included a series of new passwords, provided by Google, which I was told that I would not need to memorize or note down. After a few hours of work successfully, the program froze again and so I am unable to receive or forward all e-mail messages. Google asks me to use the procedure "forgotten password", but I don't know what password is the system, and I continue to be sent in a circle to the same pages.
    I would be grateful for any positive suggestions and thank you in advance.

    Hi frederickwilliams, I'm sorry, but I don't think that we have no way to help you with a recovery procedure for a service of third party, unfortunately...

  • How to fix the error, "the procedure entry point PK11_PubDerive could not be found in the dynamic link library nss3.dll

    I use windows 7 and Firefox 39.0. Recently, when I open Firefox it gives this error, 'the entrance of procedure point PK11_PubDerive could not be located in the dynamic link library nss3.dll'. I click on the OK button, and then Firefox load without any other side effects. But this becomes quite annoying and I would not get an error message to me. I tried to uninstall Firefox (all the same when I search for it, nothing comes up) and re-install. But the message is still there. I'm lost for what to do to get rid of him. Any help would be great!

    Thank you!

    BlindingFog said

    I use windows 7 and Firefox 39.0. Recently, when I open Firefox it gives this error, 'the entrance of procedure point PK11_PubDerive could not be located in the dynamic link library nss3.dll'. I click on the OK button, and then Firefox load without any other side effects. But this becomes quite annoying and I would not get an error message to me. I tried to uninstall Firefox (all the same when I search for it, nothing comes up) and re-install. But the message is still there. I'm lost for what to do to get rid of him. Any help would be great!

    Thank you!

    I thought about it. I had Cyrstal Reports XI on my machine and when I uninstalled it the error disappeared.

  • Purchase and installation of Logic Pro procedure?

    Hi, am about to buy Logic Pro X.

    What is the procedure please? I'm new on this!

    I want it on my main computer and my laptop also.

    "My main computer: Macbook Pro15" 2015, 2.8 ghz. 1.7 image, 16gbRAM, memory Flash 512 El Capitan 10.11.3

    Laptop: Macbook Air 13 ", 2015, 2, dual-core 2 GHz 1.7, 8 GB of RAM, 256 El capitan 10.11.3 Flash memory

    Thanks in advance

    Hello

    1) connect to the AppStore with your AppleID

    (2) buy Logic Pro X

    (3) download the main application

    (4) when you run the first LPX he will insist on downloading some "core".

    (5) within the LPX, go to the menu of Logic Pro X > Sound Library. ' Either ' Download All Available sounds ' or 'Open sound libraries Manager' to manually select which is downloaded (about 50 GB total) and installed.

    If it is possible to enter the installation programs before be unpacked, it is probably easier to simply repeat the process from step 3 on your second Mac.

    TDC

  • What is the procedure for upgrading Thunderbird ESR 17.0.7 at 31.6 on Mac OSX 10.10.2?

    What is the procedure for upgrading from Thunderbird ESR 17.0.7 at 31.6 (last public version) on Mac OSX 10.10.2?

    Is it as simple as install new version and then run to see all local folders and my email and its folders from IMAP to my company as before the upgrade?

    Thank you

    Create a full backup of your Thunderbird profiles folder.
    Uninstall the old version of ESR.
    Download the latest version from https://www.mozilla.org/en-US/thunderbird/all.html and install it.

  • Do ypu have a procedure to move the Thunderbird addresses & saved emails to Windows 8.1?

    I would like to know how can I migrate emails stored in folders and email addresses of Thunderbird Windows XP to another computer running Windows 8.1. If someone can provide a URL describing the procedure that would help me. I can't find it in this section of help.

    http://KB.mozillazine.org/Move_to_a_new_PC

  • The help procedure to remove a bookmark does not work.

    I follow the procedure, click on the bookmark you want to delete. Click on bookmarks and it's still there.

    grayghost2,
    Thank you very much, who fixed it!
    Best regards, DKPL

  • the procedure entry point NSSUTIL_EscapeSize could not be located in the dynamic link library nssutil3.dll

    Windows XP with Firefox 18.0.1 does not open when upgraded to the latest version.
    Error messages have been
    (1) the procedure entry that point pr_setcurrentthreadname could not be located in the dynamic library (2) ndpr4.dll the procedure entry point NSSUTIL_EscapeSize could not be located in the dynamic links (3) library nssutil3.dll was not able to load XPCOM

    A ran malware & anti-virus software then deleted Firefox via Control Panel, then residual file file C:\Documents & Folders\ApplicationData\Mozilla Director and program folder.
    Local & installed products ndpr4.dl and nssutil3.dll - fresh reinstall firefox several times - he got rid of the error message 1 but not 2 or 3 always cannot open Firefox.
    All solutions?

    I have this problem and I use Zone Alarm Extreme Security with Force active field. I found that by turning off the virtual Cache in Zone Alarm that this problem has disappeared and has been able to restart firefox.

    Here is a post I found that addresses the issue in some way. http://KB.mozillazine.org/Browser_will_not_start_up#Firefox_does_not_start_after_updating_with_ZoneAlarm_ForceField_enabled

  • NO RESPONSE TO REPEATED, NORMAL SHUT DOWN PROCEDURE: HAVE TO SWITH IT.

    FOR TWO DAYS NOW, AT THE END OF THE DAY, MY PC NOT STOP WHEN REPEATEDLY USING THE NORMAL PROCEDURE. I HAVE TO THROW THE SWITCH ON MY TOWER TO THE TAP.
    LATER COMMISSIONING IS NORMAL.

    See:

    Use ' Firefox/file > output "(Mac: ' Firefox > quit smoking";) Linux: "file > exit ') to close Firefox if you're doing that by clicking on the X close in the title bar.

  • get this message at the startup of Firefox 5.0: entry procedure CERT_FindSubjectKeyIDExtension point could not be located in the dynamic link library nss3.dll

    get this message at the startup of Firefox 5.0: entry procedure CERT_FindSubjectKeyIDExtension point could not be located in the dynamic link library nss3.dll

    Hello

    You can try to install the latest version on the current: https://www.mozilla.org/en-US/firefox/new/

  • Update will not work because of missing files or procedure entry point NSS_InitializePRErrorTable could not be located in nssutil3.dll

    After update mozcpp19.dll and mozcrt19.dll files are not in the Firefox directory, and start conversation said that he needs them.
    If I put them in the boot of the not required files but gives an error
    Procedure entry point NSS_InitializePRErrorTable could not be located in nssutil3.dll

    I've just updated to Firefox 10.0.2 and exhibit the same problem of missing dll (Mozcrt19.dll and sqlite3.dll)

    I'm also using ZoneAlarm (but not a version with the virtualization of the browser) and find a comment about ZoneAlarm, I decided to stop ZA and try again Firefox: it starts without a problem.

    So my quick fix (very) is to stop ZA, launch Firefox and restart ZA....

  • Delayed start, shutdown procedure

    I recently discovered that my beautiful satellite pro has developed a resistance to be shutdwn or restarted. Through the usual procedure is very slow. Start at the stop is ok, but to get the final options (box with restart, shutdown, is slow). No info on Google.

    Explorer is faster than ever. I defragged, cleaned, checked for viruses, checked with systemworks, and everything is ok.

    Windows 2000 and I am on the network with the XP computer.

    The only other issue, since the definition to the network, is a tendency to lose the settings of the printer (against printer, references on not installed, although exclamation points that it works.) Printer is local and not on the network).

    Any ideas would be welcome. It's a little scary, because he had control with Toshiba upward only a few weeks ago. The flaw with the stop developed after that. They recommend a complete reinstallation, of course.

    Hi ellen,.

    like the guys from toshiba, I suggest you reinstall, too. After a while, an operating system becomes slower and slower due to misconfigured setting (no matter what settings) and the
    Register to become more complete, and the system can make really weird things.

    Thus, it would be good to backup you important data and reinstall windows with the recovery cd. After that, you should have somewhere clean and sober (from 3rd party software) system.
    Would appreciate feedback if you do reinstall.

    Welcome them

  • Satellite A210-171 bios update procedure?

    Good afternoon.

    First post for me and it's like the title says, really.

    The procedure on the support pages ([http://aps2.toshiba-tro.de/kb0/HTD9502M10000R01.htm]) does not appear to cover my case. I downloaded the package to update the bios twice now, but although method 1 seems closest to you, there is that there is no file "BIOS" (Windows batch file) (BIOS.bat). in the package. I'm a little confused and reluctant to move forward without knowing exactly what to do, only too aware of the consequences of being wrong!

    All boards who are authorities on what to do would be welcome.

    Thank you.

    You try to install this update the BIOS?

  • On Satellite A60 Pro BIOS recovery procedure?

    Hello after updating of the procedure of flash, computer power not on. (only 3 seconds)
    Bios recovery how?
    Sorry for my English.
    Thank you for your help.

    + English only! +

    + The message was edited by: ADMIN +.

    Sorry to hear that. Unfortunately I m afraid BIOS is screwed up, and you will not be able to recover.

    On this forum I found an interesting thread - http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=54395

    Check it out. Maybe this will help. If not I'm afraid you need professional m help with it.

Maybe you are looking for

  • Problem when I drag pictures from browser in a windows folder

    When I drag and drop a photo of Firefox in a windows folder, it doesn't drop, and the download box never disappears and does not close, this does not happen with chrome.

  • Re: Satellite A100-803 - CPU Upgrade question

    I have a laptop Toshiba Satellite A100-803 at the moment. There is an Intel Core 2 Duo T5200 inside and it is a bit slow. Also, it does not support VT - x extensions. My idea is to build a simple hobby-server which should run Gentoo with Xen on it. I

  • Windows Update error number: 0 x 80248015

    I have problems to download/install updates to Windows.  I tried every fix I can think of and nothing works.  This is the story of what I did. It is a new installation of Windows XP SP2 virtual machine.  Here are the steps I've done (the first 3 are

  • Missing file

    Lack d3drm.dll file when upgrading from windows 2000 to Vista years now requires the software again and is unusable because of missing file which Vista was supposed to support.  When the spokesperson for MS and the male then was sent to the provider

  • Problem starting SL510

    I have a recently purchased sl510 which seems to have a weird problem. Lately after starting it will hang and then the Boot Manager appears prompting me to choose win 7 at startup. Any ideas would be appreciated, thanks.