Not able to use Procedure

Hello Experts
I’m trying to add a record into my table. I successfully created & complied a procedure (addnewrow). But I m not able to call this procedure. I used call addnewrow() and I had the following error.
Error starting at line 1 in command:
call addnewrow()
Error report:
SQL Error: ORA-06575: Package or function ADDNEWROW is in an invalid state
06575. 00000 - "Package or function %s is in an invalid state"
*Cause:    A SQL statement references a PL/SQL function that is in an
invalid state. Oracle attempted to compile the function, but
detected errors.
*Action:   Check the SQL statement and the PL/SQL function for syntax
errors or incorrectly assigned, or missing, privileges for a
referenced object.
Can please anybody show me how to call a procedure. Here is my procedure
--ADD NEW ROW WITH RECORD
create or replace PROCEDURE addnewrow as
v_isbn books.isbn%type := '72390';
v_category books.category%type := 'Advance Application Server';
v_title books.title%type := 'OCM Level I';
v_num_pg books.num_pages%TYPE := 340;
v_copy books.copyright% TYPE := 2008;
v_author1 books.author1%type := 2;
v_author2 books.author2%type := 3;
v_author3 books.author3%type := 4;
begin
insert into books
values(v_isbn, v_category, v_title, v_num_pg, v_copy, v_author1, v_author2, v_author3);
end;
Thanks a lot in advance

Thanks Frank & Peter for replies. Well I fixed the code as per your suggestion but still having the same problem. Infect I got a warning when i compile the procedure as follows
Warning: execution completed with warning
PROCEDURE addnewrow Compiled.
Here is the procedure
create or replace PROCEDURE addnewrow as
v_isbn books.isbn%type := '72390';
v_category books.category%type := 'Advance Application Server';
v_title books.title%type := 'OCM Level I';
v_num_pg books.num_pages%TYPE := 340;
v_copy books.copyright%TYPE := 2008;
v_author1 books.author1%type := 2;
v_author2 books.author2%type := 3;
v_author3 books.author3%type := 4;
begin
insert into books(ISBN, category, title, num_pages, price, copyright, author1, author2, author3)
values(v_isbn, v_category, v_title, v_num_pg, v_copy, v_author1, v_author2, v_author3);
end;
Once again when i say call addnewrow();
I got the following error;
Error starting at line 1 in command:
call addnewrow()
Error report:
SQL Error: ORA-06575: Package or function ADDNEWROW is in an invalid state
06575. 00000 - "Package or function %s is in an invalid state"
*Cause:    A SQL statement references a PL/SQL function that is in an
invalid state. Oracle attempted to compile the function, but
detected errors.
*Action:   Check the SQL statement and the PL/SQL function for syntax
errors or incorrectly assigned, or missing, privileges for a
referenced object.

Similar Messages

  • Not able to debug procedure using oracle 11g & toad 9.0.1.8

    hi..
    i m using oracle 11g & toad 9.0.1.8 ..i want to debug procedure , i set parameter, but not able to debug procedure , there is 'debug' option, but that option is disable..
    can u plz help me regarding this..
    can u suggest me another tool where i can debug my procedure..
    thanx..
    Edited by: user10502250 on Jun 22, 2009 4:15 AM

    "Help, About" should list the installed options, and "Debugger" should be in the list otherwise you'll need an expensive upgrade or a change of IDE.
    In TOAD you have to open the source code editor, at which point the debugging options should be accessible. You can either set a breakpoint and hit the 'Execute' lightening symbol, or place the cursor at a suitable point in the code and press F12.
    I'm not completely sure how you are supposed to pass runtime parameters but it may be to do with right-click, Action Console, Execute, which brings up a 'Set Parameters' dialog. However this won't run in debug mode, it just runs and remembers the arguments. I don't really get it. As you can probably tell I'm not a great fan of the product. Have you looked at PL/SQL Developer?

  • Not able to use SRW.USER_EXIT in oracle forms.

    Hi,
    Below is my requirement in oracle forms:
    I have a query form, which has Inventory Category Set field and Category 'From' and 'To' fields. Based on the values selected by the user for Category Set, possible combinations for Categories should be displayed in Cateogory 'From' and 'To' fields. Upon clicking the 'Find' button, only the items which belong to this category set and the range of Cateogies selected should be displayed.
    Note that 'Item Categories' Key flex field should be used here. Number of Segments for each Category set will differ. To acheive this, I have attached the Key flex field to the Cateogory 'From' and 'To' fields.
    In the PRE-QUERY trigger of the datablock, I have to use where condition to filter the items based on the category sets and categories. This where condition should be generated dynamically based on the search criteria.
    In oracle report, we have provision to use the below USER_EXIT to get the where condition to append to my PRE-QUERY statement.
    SRW.USER_EXIT('FND FLEXSQL CODE = "MCAT"
    OUTPUT = ":P_WHERE_CAT"
    APPL_SHORT_NAME= "INV"
    MODE = "WHERE"
    DISPLAY = "ALL"
    NUM = ":P_STRUCT_NUM"
    TABLEALIAS = "MCA"
    OPERATOR = "BETWEEN"
    OPERAND1 = ":P_CATEGORY_FROM"
    OPERAND2 = ":P_CATEGORY_TO"');
    But in forms, I am not able to use this USER_EXIT. Please let me know the alternate ways to get the where condition dynamically in forms.
    Thank you in advance.
    Regards,
    Kalyan

    RAISE APPLICATION_ERROR built-in is raised in a DB procedure/function or trigger.
    You can write an ON-error trigger that will trap any DB error messages
    or
    You can use Dbms_Error_Code & Dbms_Error_Text for trapping the Error.

  • I have an iMac 20 inch early 2009 software osx 10.8.1(12b19)...i am not able to use my internet, outlook, or any messenger. tried troubleshooting, reseting safari, disabling firewall, deleted intego...still no internet

    I have an iMac 20 inch early 2009 software osx 10.8.1(12b19)...i am not able to use my internet, outlook, or any messenger. tried troubleshooting, reseting safari, disabling norton firewall, deleted intego...still no internet. i did delete intego without uninstalling so im wondering if that caused the problem. everytime i try to open safari it displays this: Safari can't open the page: "http://www.yahoo.com/". the error is: "the operation couldn't be completed. Operation not permitted" (NSPOSIXErrorDomain:1)

    Like nearly all antivirus utilities for OS X, Norton a/k/a Symantec and Intego are worthless junk that will cripple your Mac. Remants of one or both are most likely preventing Safari from communicating.
    Search the forums for techniques to eradicate them - simply disabling them or dragging their apps to the Trash is not likely to be sufficient. Start by reading this procedure from Symantec:
    http://www.symantec.com/business/support/index?page=content&id=TECH103489
    For Intego: http://support2.intego.com/kb/index.php?x=&mod_id=2&id=214
    ... i did delete intego without uninstalling so im wondering if that caused the problem.
    I believe you are correct. Download and run its uninstaller.

  • 2nd Try: Please Help : UIX : Not able to use messageFileUpload along with m

    UIX : Not able to use messageFileUpload along with messageChoice
    I used messageFileUpload UIX element and associated upload button to fileupload servlet. This servlet just captures the file and put it in desired location. This works just fine.
    My client wanted me to add another choice filed on UI. I used messageChoice. I named the field as fileType. All the options have name and value populated but when I submit the form servlet is reading fileType as NULL.
    I am not sure what's happening. Please let me know how should I send file handle as well fileType ?
    Thanks,
    Linda

    What exactly are you expecting this to do for you?
    Forall is designed to process batches of DML to prevent context switching from PL/SQL to SQL.
    Has no relevance for what you are trying to do.
    If you don't want to call the procedure multiple times, you need to rewrite it to passs the cursor to the function, then have the function process all the records.
    Carl

  • I am getting a pop up on my iPhone 4S asking password of my iCloud even though I feed the password but still keep on asking the same thing every second so I am not able to use my iPhone.

    I am getting a pop up on my iPhone 4S asking password of my iCloud even though I feed the password but still keep on asking the same thing every second so I am not able to use my iPhone.at various times it asks different passwords.

    Curretly, there is an iCloud blackout.  It started this morning around 2AM California time (Pacific), 5AM New York (Eastern).  A lot of people have been having issues all day, including me.  No iCloud services are online.  Even Find My iPhone is down.

  • I bought new i phone 5 3 days back, after that asked for new update which is 6.1.4, after updating my iphone i am not able to use cellular data services. I called up data provider, they says its the problem with new software update. There is no option add

    I bought new i phone 5 3 days back, after that asked for new update which is 6.1.4, after updating my iphone i am not able to use cellular data services. I called up data provider, they says its the problem with new software update. There is no option add APN. Now when i switch to safari its showing you are not subscribed for cellular data. But I am able to use data on other phone.
    Will you please help me in this regard?
    Another issue, since i bought my new iphone there is dust inside back main camera.
    Your advises are highly appreciated.

    Hey Shaiju isac,
    I'd take a look at the following article, it'll guide you though steps to you troubleshoot cellular data issues on your iPhone:
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    Cheers,
    David

  • After upgrading to Lion, not able to use Quicken 2007.  Get the following message: PowerPC applications are no longer supported.  Anyone has a solution?

    After upgrading to Lion, not able to use a PowerPC Application (Quicken 2007).  Any solution?

    Quicken Essentials 2010 has less features than Quciken 2007.  Keeping track of investments is one feature I need and Quicken Essentials does not include that function.  I may have to consider others financial software, such as iBank4, Money4, iFinance, and Money Well.

  • TS1398 After upgrade to iOS 6 i am not able to use wifi.

    Connected, but no wifi traffic (at home).
    After upgrade to iOS 6 i am not able to use wifi. I am connected to my home wifi but no trafic is coming through (safari, skype, twitter, app store). I have even tried recovery of my iPhone 4S using iTunes as well as using iPhone. But without effect.
    Can not connect at all (at work).
    Thank you for helpfull advice.
    Vladimir
    Please do not give me advice like:
    switch proxy to auto
    turn the flight mode on and off
    turn the iphone on and off
    release the ip
    recovery the network settings
    recovery firmware
    I have tried all these, but did not work.
    PS to apple:
    I really did not expect this kind of trouble. If I would want to waste my time "repairing my device", I would buy an android phone!!!!!!

    This helped me solve the problem:
    I have changed the security from TKIP to AES and now my wifi works fine /sofar/.
    Targat

  • My mac's launchpad is working but i am not able to use the apps that are provided in the launchpad

    my mac's launchpad is working but i am not able to use the apps that are provided in the launchpad

    Well, everything that you have bought with her Apple ID prior to getting your own Apple ID is forever hers. Apple will not transfer content from one ID to another. But in the case of the Mac, contact iTunes Customer Service and request that they send your issue to the Account Security Team and ask that the Mac be released form your mother's account so you may register it with your account. Then you can accept the iLife apps into your account for any future updates.
    iTunes Support -
    http://www.apple.com/support/itunes/

  • Im not able to use facetime at all. Do some countries have restrictions. Can anyone help me out ? I use a Mac Book pro retina display with OSx Mountain lion

    Im not able to use facetime at all. Do some countries have restrictions. Can anyone help me out ? I use a Mac Book pro retina display with OSx Mountain lion.

    FaceTime for Mac: Troubleshooting FaceTime

  • HT1351 I have a apple ipod touch but recently I restored all the settings, as well as the applications. But now I am not able to add songs to it. There is blank screen that shows the symbol like to connect to itunes first. I'm not able to use that... Plea

    I have a apple ipod touch but recently I restored all the settings, as well as the applications. But now I am not able to add songs to it. There is blank screen that shows the symbol like to connect to itunes first. I'm not able to use that... Please help

    The iPod's firmware is corrupt. You'll need to restore it again in iTunes. If necessary, place the iPod in recovery mode for iTunes to recognize the device. Use the instructions in this Apple support document to walk you through the process of placing the iPod Touch into recovery mode.
    iOS: Unable to update or restore
    B-rock

  • Is anybody else still not able to use the App Store? I can't download nor update any apps. I have an IPhone 5 device not currently updated to iOS 7 as my partner also has an iPhone 5 running iOS 7 and it seems to have some issues at the moment.

    Is anybody else still not able to use the App Store? I can't download nor update any apps. I have an IPhone 5 device not currently updated to iOS 7 as my partner also has an iPhone 5 running iOS 7 and it seems to have some issues at the moment.

    Hi Tech5Apple,
    Thanks for visiting Apple Support Communities.
    If you continue to see unexpected behavior when accessing the iTunes Store, the troubleshooting steps in this article can help:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    All the best,
    Jeremy

  • Not able to use my money

    In iTunes I have an account balance that I am not able to use. I tried to buy different items and it wont allow it, but I can buy "FREE" ones. Is there a min amount that I am requaired to have in my account? OR is there some other reason why I am not able to spend out of my account. I used a 50 gift card and spent all but 6 bucks. Now its requiering a credit card or gift card code. But I still have a balance.

    I tried to buy different items and it wont allow it
    Are you attempting to purchase items from teh iTunes Apps store?
    If you ar ein Canada, you cannot use gift card balance to purchase apps.
    You can only purchase songs, videos or movies with a gift card.
    You need a CC to purchase apps in Canada.

  • Not able to use facebook on my blackberry 8520.

    Still no revert received regarding my earlier post. Not able to use facebook on my blackberry 8520.

    If you can access Facebook while on Wifi at home, but you are unable to access it while away running on your carrier's 2G network, I could phone your carrier.  You have already completed the Cellular Data troubleshooting for the iPhone, so any limitations keeping your from connecting to Facebook over cellular will have to be answered by your carrier.

Maybe you are looking for

  • Weblogic 9.1/10 not working on jsp:directive.include file="file.jspf"/

    Does anyone know how to get rid of this problem? I have a jsp page including a sun java studio creator created page fragment using the tag: <jsp:directive.include file="myHeader.jspf"/> here myHeader.jspf is a page fragment. after deployment, weblogi

  • Calling an actionListener in a method

    Im trying to call the method ticktack() Everytime startButtonHandler is performed it must go immediately to the ticktack() method my problem is it has an error "illegal start of expression" My question is: what's the proper way of calling or coding a

  • KE30 Report Painter did not same structure account balance

    Dear All, I generated a form from report painter KE30 (it was P/L report which for management) ...  and the report was shown ... My question is can I know which data was assign to the value ... Example : In P/L .. on Direct Overhead field ....when I

  • Is there a Session End function in Cold Fusion?

    In .net there's a session end function that allows you to perform functions when a users session ends, does Cold Fusion have anything like this? The reason I ask is I have a user who generates multiple xml files with data and stores them to the hard

  • Non-admin users and Time Machine

    We have a 1-1 laptop program with 7th and 8th grade students. The students are not admins of their own laptops. This year we gave each student an external hard drive and had them use Time Machine to back-up their accounts. The problem was when a stud