compilation in the given script error

Hi all

I tried to create the store following with exception proc. It gives a compile error, and I'm trying to debug. Any guidance is very helpful.

Thank you

Uday




CREATE or REPLACE procedure Fact_1 as



Declare
Number of V_Code;
V_Errm Varchar2 (64);
Number of V_Code1;
V_Errm1 Varchar2 (64);
Number of V_Code2;
V_Errm2 Varchar2 (64);
Number of V_Code3;
V_Errm3 Varchar2 (64);






Remove the Fact_1;
sequence of fall SEQ_FACT;
CREATE SEQUENCES SEQ_FACT
MINVALUE 1
MAXVALUE 999999999999999999
START WITH 1
INCREMENT BY 1
NoCache
;


Start

-1 begin... end of block
Begin
Insert into Fact_1
Select Seq_Fact.Nextval,
DAR3_ID,
EXERCISE,
AMOUNT of the 13_VIEW;
EXCEPTION
While others then
V_Code: = Sqlcode;
V_Errm: = Substr (Sqlerrm, 1, 64);
Dbms_Output.put_line ("Error Code" |) V_Code | ': ' || V_Errm);
Insert Into Fact_Loading_Errors Values (V_Code, V_Errm, Systimestamp);
end;

-2nd begin... end of block
Start

Insert into Fact_1
Select Seq_Fact.Nextval,
DAR3_ID,
EXERCISE,
AMOUNT
AMOUNT of the 14_VIEW;
EXCEPTION
While other then V_Code1: = Sqlcode;
V_Errm1: = Substr (Sqlerrm, 1, 64);
Dbms_Output.put_line ("Error Code" |) V_Code1 | ': ' || V_Errm1);
INSERT INTO Fact_Loading_Errors VALUES (v_code1, v_errm1, SYSTIMESTAMP);
End;
-3rd begin... end of block
Start

Insert into Fact_1
Select Seq_Fact.Nextval,
DAR3_ID,
EXERCISE,
AMOUNT
AMOUNT of the 15_VIEW;
Exception
While other then V_Code2: = Sqlcode;
V_Errm2: = Substr (Sqlerrm, 1, 64);
Dbms_Output.put_line ("Error Code" |) V_Code2 | ': ' || V_Errm2);
INSERT INTO Fact_Loading_Errors VALUES (v_code2, v_errm2, SYSTIMESTAMP);
End;
-4th begin... end of block
Start

Insert into Fact_1
Select Seq_Fact.Nextval,
DAR3_ID,
EXERCISE,
AMOUNT
AMOUNT of the 16_VIEW;
Exception
While other then V_Code3: = Sqlcode;
V_Errm3: = Substr (Sqlerrm, 1, 64);
Dbms_Output.put_line ("Error Code" |) V_Code3 | ': ' || V_Errm3);
INSERT INTO Fact_Loading_Errors VALUES (v_code3, v_errm3, SYSTIMESTAMP);
end;

Commit;
Fact_1 end;

929521 wrote:
Thank you for all the generous response. I am bit new to pl sql.

If you are new to PL/SQL the first thing you need to be familiar with is textbooks.

http://Tahiti.Oracle.com/

Choose a version

http://www.Oracle.com/pls/db112/homepage

There are guides for beginners

2 day Developer's Guide
http://docs.Oracle.com/CD/E11882_01/AppDev.112/e10766/TOC.htm

More in depth

Concepts
http://docs.Oracle.com/CD/E11882_01/server.112/e25789/TOC.htm

SQL
http://docs.Oracle.com/CD/E11882_01/server.112/e26088/TOC.htm

in pl sql it seems that we must create the sequence and drop every time.

No, you don't.

Is there a way I can generate the primary key in the table with the insert statement.

Once you have created the sequence, once only, use it like this

insert into my_table (my_key, col1)
select my_seq.next_val, some_data
from my_source;

But right now you have things so much back and forth, I suggest you read before you type any more.

Tags: Database

Similar Questions

  • In Windows Mail, I get the following script error: unexpected call to method or property access - URL: res://ieframe.dll/preview.js

    Original title: HELP

    {Moderator note: version of Windows has not been confirmed}

    In microsoft mail I get the following script error and cannot print emails, then the error lock the computer.

    Script error

    An error has occurred in the script on this page

    Line 215

    1 tank

    Unexpected call to method or property access

    Code 0

    URL: res://ieframe.dll/preview.js

    Do you want to continue running scripts on this page

    Yes No

    I can print other documents.

    Please help I need to be able to print my emails.

    Thank you

    Windows Mail uses the Internet Explorer print engine to print.  You can print from Internet Explorer?  It is possible that your antivirus software might be the cause.  You can try to turn off and then restart and see if it will print.  Otherwise, you will need to provide more detailed information depending on your version of Windows, what e-mail program, you are using and what version of Internet Explorer you are using.

    Steve

  • RTF model error: compilation in the hidden module error.

    I use MS Word 2007 to change my rtf models.
    After installing the patch PS2 for MS Office I can't edit the rtf models more.
    When I try to edit any field in the model I get a message box with the 'Microsoft Visual Basic' header and the message "compilation in the hidden module error: Module_editFF.
    I noticed that the BI Publisher tab is no longer visible in the toolbar. I uninstalled the add-on and reinstalled again, the question remains.
    Any help will be appreciated.
    Thank you.

    If you do not see the BI Publisher tab, then go to MS Word-> Word Options-> Add - ins-> manage-> select Add-ins Word and make so that the "Templatebuilder.dot", TBCrosstab.dot etc. are checked.

    Thank you
    Bipuser

  • 16.0.2 does not correctly load due to the AVG script error

    I upgraded 16.0.2 about half an hour ago (had no internet access for 3 weeks, so end update of Firefox) and found I get a script error: "a script on this page error is busy..." Chrome://AVG/content/js:532'). I guess that this refers to the installation of taskbar and search for AVG SafeSearch. The only way I can use Firefox is with the default settings, which disables the AVG SafeSearch. Can I get the taskbar of the AVG and 16.0.2 to work together? Any help, greatly appreciated.

    I got the below info earlier with Firefox default setting as the tab would not load with the taskbar enabled.

    http://forums.Avg.com/ww-en/AVG-forums?sec=thread & Act = Show & ID = 206731

    We regret to inform you that the AVG Safe Search add-on will not be available for Mozilla Firefox 13 (and newer) browser.
    
    So verdict icons rating websites will no longer be available in Firefox 13 and newer.
    
    AVG Surf-shield and AVG Secure Search (isearch.avg.com) component's support for Firefox Browser will continue. Security level of Firefox user will not decrease.
    
  • the Explorer script error

    I used the browser Microsoft Web (IWebBrowser2) to extract data from a list of internet sites.  I ran my program every day for six months without any problem.  Now all of a sudden, I get a pop-up window saying "Internet Explorer Script error".  He asks me if I want to continue to run scripts.  I went to Internet Explorer and check that script debugging is disabled.  But when you use a LabView, I keep getting the same error message.  I looked for a node or an option on the (IWebBrowser2) to solve this problem, but have failed.

    Does anyone know how can I disable debugging the scripts in IWebBrowser2?  Have already disabled the debugging in Internet Explorer, I still get the same error messages.

    Thanks for the link.  He helped.  Set the "Silent" true property for this problem.









    IWebBrowser2: silencer

    Read/write

    Sets or gets a value that indicates whether the object can display dialog boxes.

  • Get the Internet script error when Internet Explorer is closed

    get internet script error, even when internet Explorer is closed. its Web site also comes in my speakers when no one is around the computer? Everyone please help my os is xp home edition

    First thing I would do is to restart the system and download MSE and install if you don't the have not already installed. Update and run. Download of Malware bytes and install and run this update from.

    Then, you can run chkdsk from the command prompt. Type chkdsk /f at the prompt and press on enter then type y to run check disk on the next reboot. Exit command prompt and restart the system to allow running chkdsk.

    Let us know if that fixes it or what the results were.

    Hope this helps,

    JB

  • my computer windows vista cannot install Mcafee because of the Java script error, code 0x80004005. How to solve this problem?

    When I install Mcafee, the error come out, can not install... Make sure you only if your PC has JAVA script. error code: 0x80004005, HOW t ofix it?

    Which version of Java should I download for my system to Windows 64-bit operating?
    http://www.Java.com/en/download/FAQ/java_win64bit.XML

    Installation of Java
    http://Java.com/en/download/help/index_installing.XML?user_os=Windows%207

    If you are using:

    * 32 - bit Internet Explore (IE), you need to download Java 32 bits (check the browser)
    * 64 - bit IE, you need to download Java 64 bit (check the browser)
    * 32-bit and 64-bit, IE you have to download 32-bit and 64-bit Java respectively

    64-bit operating system Windows comes with browsers Internet Explorer (IE) 32-bit and 64-bit. 32-bit IE comes by default. There are different versions of Java software available for download depending on whether you are using THE 32-bit or 64-bit browsers.

    Please note that the 64-bit Java is presented as a download option automatically for users of Internet Explorer 64-bit, as this is the only officially available for Windows 64-bit browser.

    Note: Java is updated on a frequent basis, you can expect to see a Java update notification in the bar from time to time.

    J W Stuart: http://www.pagestart.com

  • The installation script error

    On the installation of Flash Player (n.n.n.179) on Windows XP, I got the following error twice during the installation:Flash_Player_install_error.PNG

    Installation in fact ended, but I got numbers different for the ActiveX version and versions of browser plugin.  I have uninstalled both versions of Flash Player and tried to re - install.  However, the script error is displayed once again, even when it is properly installed (and it does not re - install the ActiveX version at all).  I wonder if it has successfully installed the plugin version, and I know that he has not to install the ActiveX version - I looked in the control panel to verify this.  What is happening and how to fix it?

    I don't know, I've never seen this error.  Try the install (s) offline:

  • compilation of the java file error

    Dear

    Us on r12 12.1.3 and jdevloper 12 Downalod aron Patch 9879989

    When compile the java file on recovery server an error

    javac HelloAMImpl.java

    HelloAMImpl.java:3: cannot accessoracle.apps.fnd.framework.server.OAApplicationModuleImpl

    bad class file: /apps/applmgr/ebs/apps/apps_st/comn/java/classes/oracle/apps/fnd/framework/server/OAApplicationModuleImpl.class

    class file has wrong version 49.0, should be 48.0

    If please remove or make sure it appears in the correct subdirectory of the classpath variable.

    Import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;

    ^

    1 error

    any idea.

    Run following command to confirm javac is located here # ls.../apps/tech_st/10.1.3/appsutil/jdk/bin/javac

    Expect to see javac.

    Now add this directory in the path environment setting at the beginning

    export PATH=.../apps/tech_st/10.1.3/appsutil/jdk/bin:$PATH

    When you call javac, explicitly states its full path slot under... / apps/tech_st/10.1.3/appsutil/jdk/bin/javac.

  • Successful compilation of the package causing errors

    Hello

    We just compiled a plan of production during break time so there are no users on the system, since then they get an error in the Application Express by which they want a package that then calls a function within this package which has been recompiled. This error does not occur every time they try and record a record, but maybe 50% of the time. The system is used by about 500 users on 4 sites.

    The error is

    ORA-04065: not executed, altered or deleted ORA-04065: not run, altered, or removed the stored procedure 'OWNER. DATE_TIME_PKG' ORA-06508: PL/SQL: called program unit is not found: 'OWNER. DATE_TIME_PKG ".

    We run 11g RAC Cluster.

    Hello

    When changing a database object do you need to recompile all it's dependancies?
    

    I always recompile (if they become invalid) objects that depend on the object I have change and not the base objects (IE my evolution package depends on).

    Concerning
    Anurag Tibrewal.

  • script error comes up after the opening of a game

    I have the following script error that appears whenever I open or download a game: URL http:/pagead2.googlesyndication.com/pagead/js/adsby google.js

    How can I get rid of him for good. It happened on the enemy about 4 months. I answer that yes I run with the error, but it is ridiculous that I have to do anything. I was on the net, trying to find a solution, but all I can find is the use of this announcement, development tool. Help, please.

    First, open internet, advanced options, disable "script debugging" disable

    others just debugging, make sure that the window is not checked to notify

    Script errors, close. Also, the script of xp is v5.7 try this link for the update.

    http://blogs.msdn.com/b/JScript/archive/2007/08/12/Windows-Script-5-7-released-for-Windows-2000-Windows-XP-and-Windows-2003-server.aspx

  • Java script error

    Can I receive e-meil but cannot send. Eerytime the java script error nassage appear.

    I install java in my computer. Help, please

    Hello

    Using any email client or its site on the Internet? Please post the full error message... Reference: http://support.microsoft.com/kb/555375

  • Model Active Script error: do not initialize the script.

    Hello

    Running RoboHelp HTML 2002 R2, Build 1150

    W2K3 MS

    When generating, we get the following error:

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

    From compilation...
    WebHelp preprocessor 10.00.1150

    Compilation of D:\temp\ron\vfpapps9\WinCap\ROBOHELP\WinCapWH\WebHelp\WinCapWH.htm...

    Preparation create WebHelp...
    Compensation output folder...
    Preparation of files for WebHelp...
    Copying files...
    Updating files...
    Finish the preparation in 13 seconds

    Initializing the compiler...
    Generation of WebHelp 5.00 (10.00.1150)...

    Model Active Script error: do not initialize the script.
    Model error: cannot resolve macro: RegisterResolvers

    Fatal error: cannot run macro: RegisterResolvers in the build script.
    Model error: cannot resolve macro: PostCompile

    Fatal error: cannot run macro: PostCompile in the build script.
    Compilation of WebHelp finished 13 seconds

    Compilation is complete.

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

    Reminder: This program is in place for YEARS.   Then, a week before, this error started happening.

    I uninstalled RoboHelp Office 2002, MS Office and reinstalled MSoffice, and RoboHelp.

    (Installed as a local administrator, the domain administrator).

    The error still occurs.

    I installed in on another server, and it works absolutely fine.

    I can't understand what is wrong.

    Any ideas?

    Thank you!

    ROn

    HR must be installed on your desktop PC, a server, and that can give you problems. But you say he's not working, so I'm not clear what type of assistance you are looking for. Do you want to run from the original PC?

    Generally, the problem you are reporting is because RH was installed without the necessary rights. The user needs the local administrator rights when installing and using it (with this version). You say it worked for years without this problem, which suggests the rights were removed, intentionally or not. Whatever the reason, reinstall it to do with these rights. See http://kb2.adobe.com/cps/597/rb_597984.html

    I wonder if you have installed with a system admin logon and try to use the product with a personal login. Your version of HR must be installed with the connection of the user.

    See www.grainge.org for creating tips and RoboHelp

  • I get script error java application "too much recursion" and they come in 4. This happened after the upgrade to firefox

    Hello

    I've recently upgraded to firefox 35, after this upgrade, whenever I log on tumblr, I get this "java script application error too much recursion" and they come in 4 (I have to click on each one on top of the other). I am able to connect and do my normal stuff, but whenever I move to another page inside of tumblr, the same java script error appears and I have to click again to make them disappear.
    This seems to happen only on this website (tumblr).

    any help will be appreciated.
    Thank you

    for anyone else having this problem... Fixed it got...
    Xensemble app for tumblrto tumblr users, if the application that is causing the prob ' java script application error too much recursion ".
    Xensemble has finally solved the extension of the application and all what you need to do is to download the fixed xensemble extension on their site.

    Thank you

  • script error < button id = "abp-notification-Yes" label = "" & notification.button.yes; "/ > appear at the bottom of my browser Firefox." How can I get rid of this?

    When I open Firefox, I get a script error in the bottom of the browser (not in the status bar or of the 'frame', but in the current window. He cut my pages right there and just reads

    <button id="abp-notification-yes" label="&notification.button.yes;"/>
     _ _ _ _ _ _ ^
    

    My Firefox is updated (according to the site). I even deleted and reinstalled just to reappear after re installation. I tried 3 times with 'fresh' facilities (Nothing saved from the previous installation. Please help me get rid of this problem. Thank you

    It was in fact TrueBlock 2.0.2. I disabled it and my problem is now gone. I re-enabled it and it pops up. Thanks for the reply. He started me in the right direction.

Maybe you are looking for