Wrong number of hard links -

I have rebuilt the directory using DiskWarrior from another drive and changed out a damaged USB2 circuit board.  I have mulitple boots and when I look at the drive from another booted drive, the Disk Utility says everything is fine. An earlier recommendation was to look for directory or hardware problems.  The SMART check on the drive says everything is fine.  The problem is when I check using the Disk Utility on the drive in question, it fails to verify and gives me the reason as wrong number of hard links AND the folders take up to 8 seconds to list what is inside.  Shouldn't DiskWarrior have taken care of this?

I may have fixed the problem.  I booted into Single User mode and ran fsck -fy.  It found the mismatch in the volume directory and the hard links and corrected them.  It took quite awhile and the screen was zipping by with all of the file names as it re-catalogued. Had to be patient.  It then stated the volume was repaired successfully.  I ran fsck -fy twice more and both times it found everything to be good, the volume looked correct. 
I then rebooted and the desktop came up fine.  I ran Disk Utility from the Drive (1) and it successfully verified the disk and said the volume was fine.  So, it all seems right now with one exception: 
It still takes awhile for a folder to display what is within it.  After finally making the display, it then opens easily and quickly next time I open it.  This was the original problem that got me looking for the cause. 
I was booted to a different drive, Disk (2), when I ran Disk Utility to inspect Disk (1) and to run DiskWarrior.  So, with Disk Utility on Disk (2) saying all is well and fsck saying all is well, and the SMART eval saying the drive itself is well, then I don't know why the folders take so long to display their content.  Could it be an affect of the new OS 10.5.8 on an older Power Mac G4 and there is no real problem?

Similar Messages

  • Find: WARNING: Hard link count is wrong for /proc/1: this may be a bug

    hi all,
    when i 'find / -name abc' , it say:
    find: WARNING: Hard link count is wrong for /proc/1: this may be a bug in your
    filesystem driver.Automatically turning on find's -noleaf option. Earlier
    results may have failed to include directories that should have been
    searched.
    my kernel is 2.6.25, filesytem is ext2/boot ext3/other
    thank you!
    Last edited by wonglaye (2008-05-30 14:34:21)

    I'll highlight the important parts from that link for you:
    Question wrote:I routinely use "find / -name ......", so how do I eliminate /proc from the search path?
    Answer wrote:
    I almost always use the "-xdev" option to prevent 'find' from descending
    into file systems other than the ones I explcitly specified, e.g.,
         find -xdev / /usr /var ...
    It's pretty rare that I actually want to search my entire system, which
    would include a news spool, a seldom used MS-Windows file system,
    possibly a mounted CD or DVD, ..., and of course /proc.
    why_no_proc wrote:The problem with the link count in /proc is that it changes every time a
    process is created or terminates, so the number of directories that
    'find' sees during processing might not agree with the link count that
    it read at the start. I admit that doesn't seem terribly likely unless
    the system is quite busy, but it can certainly happen.
    Last edited by dyscoria (2008-05-31 11:11:19)

  • 2009 macbook pro incorrect number of file hard links. repaired and still slow. I replaced the hard drive within the year and it's 1 tb not full. help!

    I have a 2009 macbook pro and I keep it up to date. I replaced the hard drive with a new 1 tb hard drive within the last year. It is not even close to full. The other night I was doing a time machine backup and the spinning color wheel appeared. It would not go away and the only thing I could do was restart the computer. The Grey apple screen appeared and nothing else happens. I restarted in disk utility and verified the drive. It said "incorrect number of file hard links". I repaired it successfully and check the drive as well as the startup drive. All was ok. I restarted my computer and it took forever to come on. It is now one but I can not do anything. The desktop and all appropriate dock items are there but I can not do anything. What should I do?

    It's likely that the startup drive, or some other hardware component, is failing. Back up all data immediately, then run Apple Diagnostics or the Apple Hardware Test.
    Even if the test is negative, you should make a "Genius" appointment at an Apple Store to have the machine tested more thoroughly.

  • HT1420 I have a number of devices linked to a single iTunes account. Of these devices, two of the originals were computers whose hard drives failed and I was unable to die authorise them before the failure occurred. Is there a way of deauthorising them on

    I have a number of devices linked to a single iTunes account. Of these devices, one was a laptop whose hard drive failed, and one was an iPad which died. My question is if it is possible to remotely deauthorise these devices or is it necessary to deauthorise all devices on the account and then reauthorise those devices which are still current.
    Thanks
    Tan Anu

    iPads don't count in the number of authorisations, only computers count. Individual computers can only be deauthorised directly on them, but if you have 2 or more computers authorised then you can 'deauthorise all' (which you can only do once every 12 months) and you can then reauthorise the computers that you still have and need (deauthorising a computer doesn't remove any content from it).

  • Find: hard link count is wrong for /:

    I am facing this problem.
    I just installed arch linux on one of my box and I have got this error message if I do find on the root:
    find: WARNING: Hard link count is wrong for /: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
    I have searched through the forums and I found threads which discuss the same problem happened on /proc. But in my case it is /.
    After checking the link count for /, I didn't find anything strange.
    "ls /" shows 16 subdir in /.
    "ls -ld /" shows that / has 18 hard links.
    Is this a bug with find?

    Thanks cactus.
    You always reply fast don't you? 8)
    I seem to have find the reason from the findutils bug report mailing list.
    And this is a quote from the mail.
    Although find made me aware of the issue, the message it prints could be more useful: it doesn't show an accurate location of where the incorrect count exists (instead, it seems to use the path that you gave to find on the command line),...
    The original mail is here:
    http://lists.gnu.org/archive/html/bug-f … 00005.html

  • Can't repair Macintosh HD - incorrect number of file hard links

    Hi,
    Under Maverick, my computer started to become slow.  I see the spinning wheel frequently.  I upgraded to Yosemite telling myself that the new OS X installation process would clean anything not working properly under Maverick.  However, my computer is still slow.
    I tried to verify the Macintosh HD using disk utility and an error prompted me to repair my hard drive because of an error. 
    My Yosemite is in French : Nombre de liens physiques du fichier incorrect. 
    I think it would translate to incorrect number of file hard links.
    When rebooting using Command - R and verifying my Macintosh HD with the disk utility, it found no error and consequently, the repair function did not help.
    When rebooting and running disk utility, I still have the incorrect number of file hard links error.  I have a MacBook Pro 2012
    1.  Is the error incorrect number of file hard links causing my computer to be slow?  What is this error?
    2.  What should I do to correct this if the disk utility does not find an error when rebooting using command - R?
    3.  I have back-up using time machine, but I'm unsure that I should be restoring these back-up : not sure exactly when the error started and if I restaure a back-up "pre-error", would it correct the error?
    Thanks for your help

    Thank you for the reply! I can't remember what it said after the repair except for the big green letters telling me that the volume appears to be working. I just ran a verify from the install disc again and the message read " the volume appears to be working ok". After that I ran another verify from the hard drive and got the incorrect # of file hard links, volume header needs minor repair, the volume HD was found corrupt and needs to be repaired, Error this disc needs to be repaired. Start up your computer with another disc and use disc utility to repair this disc.
         The computer seems to be running great, I am fully backed up but not sure how concerned I should be.

  • Error message "incorrect number of file hard links" after Lion installation. Please could you advised to solve this problem; my iMac (mid 2010) is working well

    After installation of OSX Lion I have ran the disk utility program and the following error message appears: "incorrect number of file hard links". The program advises to fix the disk by reinstalling the Mac OSX install dvd (Snow Leopard). Please could you advise? Additonal information: the iMac was up-to-date before installing Lion. Thx!

    Martha Mcsherry1 wrote:
    I feel like I'm on a scavenger hunt and it's getting very dark!  You are absolutely correct.  My computer doesn't show my HD in the finder window.  That's been the case for a long time.  At one point, I found a solution and fixed it but then it reverted.
    From a Finder menubar, select Finder > Preferences, then either General (controls what appears on your desktop) or Sidebar (your Finder windows's sidebar) and check the box with your Computer's name, hard drive, etc. 
    I read to hold 'option' and press 'go'.
    On Lion, that allows you to see the Library folder inside your home folder (it's only hidden in Lion).
    I have found the right file and deleted it.  It keeps reintroducing itself so I guess I'll need to delete it from the trash as well?
    No, you've deleted the one that may have been damaged.   As with most preferences files, OSX will create a new one, with default values, when needed, which is what we want.  (Sooner or later, you should empty the trash, but it's not a problem.)
    As mentioned in #A4, you'll have to re-select your Time Machine drive, re-select any of the things that were checked on the Options panel, and re-enter any exclusions.

  • Something's wrong with my hard drive, and disk utility can't repair it...

    Lately my MacBook Pro has been running really slow, so I ran Disk Utilities to see if it could fix it. However, when I ran it, the following is what I see. Would someone help me interpret what's going on? Thanks.
    Verify permissions for "HD”
    Warning: SUID file "usr/libexec/load_hdi" has been modified and will not be repaired.
    Warning: SUID file "System/Library/PrivateFrameworks/DiskManagement.framework/Versions/A/Resources /DiskManagementTool" has been modified and will not be repaired.
    Warning: SUID file "System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Reso urces/Locum" has been modified and will not be repaired.
    Warning: SUID file "System/Library/PrivateFrameworks/Install.framework/Versions/A/Resources/runner " has been modified and will not be repaired.
    Warning: SUID file "System/Library/PrivateFrameworks/Admin.framework/Versions/A/Resources/readconf ig" has been modified and will not be repaired.
    Warning: SUID file "System/Library/PrivateFrameworks/Admin.framework/Versions/A/Resources/writecon fig" has been modified and will not be repaired.
    Warning: SUID file "usr/libexec/authopen" has been modified and will not be repaired.
    Warning: SUID file "System/Library/CoreServices/Finder.app/Contents/Resources/OwnerGroupTool" has been modified and will not be repaired.
    Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.
    Warning: SUID file "usr/bin/at" has been modified and will not be repaired.
    Warning: SUID file "usr/bin/atq" has been modified and will not be repaired.
    Warning: SUID file "usr/bin/atrm" has been modified and will not be repaired.
    Warning: SUID file "usr/bin/batch" has been modified and will not be repaired.
    Warning: SUID file "usr/bin/chfn" has been modified and will not be repaired.
    Warning: SUID file "usr/bin/chpass" has been modified and will not be repaired.
    Warning: SUID file "usr/bin/chsh" has been modified and will not be repaired.
    Permissions verification complete
    Verifying volume “HD”
    Performing live verification.
    Checking Journaled HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Checking multi-linked files.
    Incorrect number of file hard links
    Checking Catalog hierarchy.
    Checking Extended Attributes file.
    Checking volume bitmap.
    Checking volume information.
    The volume HD needs to be repaired.
    Error: Filesystem verify or repair failed.

    Two things. First for the permissions check, reinstall the 10.5.2 COMBO update and repair permissions. That should fix things. Alternatively, search these forums for ACL, sort by date, and read the responses and the article Apple posted three months ago: http://docs.info.apple.com/article.html?artnum=306925
    Second, for the *Incorrect number of file hard links* error, follow smithrj's advice. If DU can't repair the disk, you'll need something stronger, such as DiskWarrior.
    BTW, please update your *My Settings* profile info. It still shows that you're running Tiger.

  • Java Applet in a HTML page: failing with PLS-00306: wrong number of args

    We are trying to use a Java Applet in a HTML page. as our system needs to be able to retrieve a predefined set of data from a third party system that uses Dynamic Data Exchange Protocol (DDE) and are encountering errors from APEX and in IE itself.
    We are using JavaDde from www.nevaobject.com that enables our Java applet to interact with Windows applications (Third Party System) using DDE.
    This functionality is currently used in our Web Form 6i application and we are trying to use the same in the new ApEx application.
    We are using ApEx version : 2.1 and actually aer encountering 2 problems:
    Problem 1: ApEx failing with PLS-00306: wrong number or types of arguments in call to 'ACCEPT'
    Problem 2: IE crashes if Applet used in a complex page with several regions (1 Context, 4 Report Regions, 2 level Tabs, Links)
    This problem does not occur in the page where there is only applet and one region. In the case of complex page the IE crashes if the page is reloaded
    Test scenario:
    1- Create a simple page with the HTML region.
    2- Define the Source of the above region as follows
    <OBJECT CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    CODEBASE="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#version=1,4,0,0"
    WIDTH="1"
    HEIGHT="1"
    ID="simpleApplet"
    NAME="simpleApplet">
    <PARAM NAME="code" VALUE="simpleApplet.class" >
    <PARAM NAME="archive" VALUE="simpleApplet.jar" />
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">
    </OBJECT>
    3- Create a simple Java applet "simpleApplet" - for the test its enough if the applet will have just the init method printing out the mesage to the console
    4- Create a Submit Button (not redirect) in Region Header and create unconditional (do not set When Button Pressed property) Page Branch to navigate to another page (the page without the applet)
    6- Run the page and Submit -
    The error below is returned by the engine:
    In our case our applet is called ddeApplet - I do not know why is ApEx passing the Applet's ID down to the wwv_flow.accept method as a parameter
    Tue, 24 Jul 2007 08:15:39 GMT
    ORA-06550: line 7, column 2:
    PLS-00306: wrong number or types of arguments in call to 'ACCEPT'
    ORA-06550: line 7, column 2:
    PL/SQL: Statement ignored
    DAD name: rbdev2_ax
    PROCEDURE : wwv_flow.accept
    URL : http://castor:7778/pls/rbdev2_ax/wwv_flow.accept
    PARAMETERS :
    ============
    P_FLOW_ID:
    147
    P_FLOW_STEP_ID:
    500
    P_INSTANCE:
    6986070096861669560
    P_PAGE_SUBMISSION_ID:
    1005758
    P_REQUEST:
    CRASH
    P_ARG_NAMES:
    100380029717786501
    P_T01:
    147
    P_T02:
    101
    P_T03:
    5000044
    P_T04:
    1
    P_T05:
    S
    DDEAPPLET:
    Ddeapplet[panel0,0,0,1x1,layout=java.awt.BorderLayout,rootPane=javax.swing.JRootPane[,0,0,1x1,layout=javax.swing.JRootPane$RootLayout,alignmentX=null,alignmentY=null,border=,flags=385,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
    P_MD5_CHECKSUM:
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Oracle HTTP Server Powered by Apache/1.3.19 (Unix) mod_fastcgi/2.2.10 mod_perl/1.25 mod_oprocmgr/1.0
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=7778
    SERVER_NAME=castor
    REQUEST_METHOD=POST
    QUERY_STRING=
    PATH_INFO=/pls/rbdev2_ax/wwv_flow.accept
    SCRIPT_NAME=/pls
    REMOTE_HOST=
    REMOTE_ADDR=192.168.66.169
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTP
    REMOTE_USER=
    HTTP_CONTENT_LENGTH=661
    HTTP_CONTENT_TYPE=application/x-www-form-urlencoded
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
    HTTP_HOST=castor:7778
    HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
    HTTP_ACCEPT_ENCODING=gzip, deflate
    HTTP_ACCEPT_LANGUAGE=en-us
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=ISCOOKIE=true; LOGIN_USERNAME_COOKIE=rdanko; ORACLE_PLATFORM_REMEMBER_UN=RDANKO:ngrb; WWV_FLOW_USER2=70FBB00945FE46B9; V6_AUTHENTICATION_COOKIE=70FBB00945FE46B9
    Authorization=
    HTTP_IF_MODIFIED_SINCE=
    HTTP_REFERER=http://castor:7778/pls/rbdev2_ax/f?p=147:500:6986070096861669560:::::
    HTTP_SOAPACTION=

    "theArrow",
    It looks like whatever HTML you're including on your page is creating HTML input form elements inside the HTML form "wwv_flow". This form is posted to wwv_flow.accept, and of course, the PL/SQL procedure wwv_flow.accept doesn't know anything these additional arguments/form elements you're attempting to POST.
    Joel

  • Why can't I tell Siri "No" to stop dialing a wrong number? It's embarrassing to keep telling the same people over and over that I mistakenly dialed their number. Even if I yell "stop" or "no" it keeps dialing. Very frustrating.

    Why can't I tell Siri "No" to stop dialing a wrong number? It's embarrassing to keep telling the same people over and over that I mistakenly dialed their number. Even if I yell "stop" or "no" it keeps dialing. Very frustrating. Even very simple names. And I talk on the phone for a living. Which is why I need to use Siri to save me time. I speak very clearly. Because of this problem, I've had to even add special code letters before people's names to increase the chances of Siri getting it right, which is only about 70% of the time.

    That is not a feature of Siri. Submit your feedback requesting such a feature directly to Apple using the appropriate link on the Feedback page:
    http://www.apple.com/feedback
    Note that yelling at the phone does not improve the chances that Siri will understand you.

  • Wrong number or types of arguments in call to 'P_RETRIEVE_OPPTY_ORDER_STATU

    I have been strucK at a point in invoking the procedure which has a boolean parameter which when called from java program get error saying that "wrong number or types of arguments in call to 'P_RETRIEVE_OPPTY_ORDER_STATUS'". the procedure is given below along with the calling java code , and the Errors.
    If i change the parameter data type to VARCHAR2 (the parameter hilighted in red) in the in the procedure and invoke it with the same method it works fine, even if i change the "callableStatement.setBoolean(1, true); to callableStatement.setInt(1, 1); it works fine.When i call it with setting the boolean to the procedure from my java i get a error. Im really confused whether is this a issue with oracle? or with java code.
    Please can any body suggest me any kind of solution! to over come this scenario.
    ///// java code
    public void testThePackage() throws ClassNotFoundException { Connection connection = null; connection = (Connection) getConnection(); CallableStatement callableStatement = null; try { callableStatement = connection .prepareCall("{call L_test.p_retrieve_oppty_order_status(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}"); callableStatement.setBoolean(1, true); // callableStatement.setString(1, "YES"); // callableStatement.setInt(1, 1); // callableStatement.setLong(1, 1L); callableStatement.setString(2, "SFA"); callableStatement.setString(3, "123421"); callableStatement.setLong(4, 1L); callableStatement.setLong(5, 123L); callableStatement.setLong(6, 345L); callableStatement.setInt(7, 10); callableStatement.setInt(8, 2435); callableStatement.setInt(9, 5675); callableStatement.registerOutParameter(10, Types.NUMERIC); // on_return_status callableStatement.registerOutParameter(11, Types.VARCHAR); // os_duns_no callableStatement.registerOutParameter(12, Types.VARCHAR); // os_hq_duns_no callableStatement.registerOutParameter(13, Types.NUMERIC); // on_approval_id callableStatement.registerOutParameter(14, Types.NUMERIC); // on_approval_amt callableStatement.registerOutParameter(15, Types.VARCHAR); // os_message callableStatement.registerOutParameter(16, Types.VARCHAR); // os_approval_cd callableStatement.registerOutParameter(17, Types.VARCHAR); // os_security_term_cd callableStatement.registerOutParameter(18, Types.VARCHAR); // action // code callableStatement.registerOutParameter(19, Types.VARCHAR); // action // message // txt callableStatement.execute(); connection.commit(); } catch (SQLException e) { System.out.println(e.getMessage()); } } [/code] /////procedure  CREATE OR REPLACE PACKAGE BODY cust.L_test IS  PROCEDURE p_retrieve_oppty_order_status          (isNonAttilaAttempt boolean          , is_system_cd VARCHAR2          , is_order_id VARCHAR2          , in_oppty_id NUMBER          , in_company_id VARCHAR2          , in_acct_id NUMBER          ,in_local_rev NUMBER          ,in_switched_rev NUMBER          ,in_dedicated_rev NUMBER          , on_return_status  OUT NUMBER          , os_duns_no OUT VARCHAR2          , os_hq_duns_no OUT VARCHAR2          , on_approval_id OUT NUMBER          , on_credit_balance OUT NUMBER            , os_message OUT VARCHAR2      , os_approval_cd OUT VARCHAR2      , os_security_term_cd OUT VARCHAR2      ,os_action_cd  OUT VARCHAR2      ,os_action_txt_msg OUT VARCHAR2) IS      io_return l_cdt_util.return_data_t;            action_cd VARCHAR2(20):= NULL;      flag boolean:=false;  BEGIN  if isNonAttilaAttempt =[color=red]true[/color]  then --'YES'  true  flag:=true;  end if;  insert into example (id,data,deleted) values(1,'Test','YES');        END p_retrieve_oppty_order_status;    END cust.L_test;      CREATE OR REPLACE PACKAGE BODY cust.L_test IS PROCEDURE p_retrieve_oppty_order_status         (isNonAttilaAttempt boolean         , is_system_cd VARCHAR2         , is_order_id VARCHAR2         , in_oppty_id NUMBER         , in_company_id VARCHAR2         , in_acct_id NUMBER         ,in_local_rev NUMBER         ,in_switched_rev NUMBER         ,in_dedicated_rev NUMBER         , on_return_status  OUT NUMBER         , os_duns_no OUT VARCHAR2         , os_hq_duns_no OUT VARCHAR2         , on_approval_id OUT NUMBER         , on_credit_balance OUT NUMBER         , os_message OUT VARCHAR2     , os_approval_cd OUT VARCHAR2     , os_security_term_cd OUT VARCHAR2     ,os_action_cd  OUT VARCHAR2     ,os_action_txt_msg OUT VARCHAR2) IS     io_return l_cdt_util.return_data_t;        action_cd VARCHAR2(20):= NULL;     flag boolean:=false; BEGIN if isNonAttilaAttempt =[color=red]true[/color]  then --'YES'  true flag:=true; end if; insert into example (id,data,deleted) values(1,'Test','YES');       END p_retrieve_oppty_order_status; END cust.L_test;    /////error ORA-06550: line 1, column 7:  wrong number or types of arguments in call to 'P_RETRIEVE_OPPTY_ORDER_STATUS'  line 1, column 7:  PL/SQL: Statement ignored                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi YoungWinston,
    I realy appriciate your comments on the standard of the code , i also accept procedure and code may not be readable,
    but the problem is not because of bloated call its just beacause of the Boolean parameter being passed throught the java code, and where as the SQL/PL does not allow BOOLEAN as paramater, please refer the below link for justification.
    what am expecting is , is there any solution to this problem (not a work arround solution).
    Please provide me with some sort of solution/hints or suggestions in achieving this solution,
    I would realy your effort
    Thanks
    ud
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/datatypes.htm#CJACJGBG
    Predefined PL/SQL BOOLEAN Data Type
    The BOOLEAN data type stores logical values, which you can use in logical operations. The logical values are the Boolean values TRUE and FALSE and the value NULL.
    The syntax for specifying an BOOLEAN data item is:
    BOOLEAN
    SQL has no data type equivalent to BOOLEAN; therefore you cannot use BOOLEAN variables or parameters in the following:
    SQL statements
    Built-in SQL functions (such as TO_CHAR)
    PL/SQL functions invoked from SQL statements
    You cannot insert the value TRUE or FALSE into a database column. You cannot retrieve the value of a database column into a BOOLEAN variable.
    To represent BOOLEAN values in output, use IF-THEN or CASE constructs to translate BOOLEAN values into another type (for example, 0 or 1, 'Y' or 'N', 'true' or 'false').

  • PLS-00306: wrong number or types of arguments in call to 'SHOW'

    Statement : declare
    rc__ number;
    begin
    owa.init_cgi_env(:n__,:nm__,:v__);
    htp.HTBUF_LEN := 255;
    null;
    null;
    wwv_flow.show(p_request=>:p_request,p_instance=>:p_instance,p_flow_id=>:p_flow_id,p_flow_step_id=>:p_flow_step_id,p_arg_names=>:p_arg_names,p_arg_values=>:p_arg_values);
    if (wpg_docload.is_file_download) then
    rc__ := 1;
    wpg_docload.get_download_file(:doc_info);
    null;
    null;
    commit;
    else
    rc__ := 0;
    null;
    null;
    commit;
    owa.get_page(:data__,:ndata__);
    end if;
    :rc__ := rc__;
    end;
    Did someone ever see this ?
    My database throws it every time i use an ajax validation with javascript. The application is NOT affected in any way, means the validation is done correct:
    function validate(pNumber,i){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=validate_number',100);
    get.add('F500_VALID_NUMBER', pNumber);
    gReturn = get.get();
    html_GetElement('err'+i).innerHTML=gReturn;
    The validate_number Application Process then uses a Stored Function for the "real" validation.
    Thanks for help,
    Jochen

    Jochen,
    yes when you trace modplsql, I can see this and I also have an error I don't know why.
    <360294694 ms>(wppr.c,497) Pl/sql block parsed...
    <360294694 ms>(wpdenv.c,1531) CGI Environment has 31 vars. Max name len 128, Max Value Len 128
    <360294694 ms> PLSQL_GATEWAY(14)=(6)WebDb
    <360294694 ms> GATEWAY_IVERSION(17)=(2)2
    <360294694 ms> SERVER_SOFTWARE(16)=(60)Oracle-Application-Server-10g/10.1.2.2.0 Oracle-HTTP-Server
    <360294694 ms> GATEWAY_INTERFACE(18)=(8)CGI/1.1
    <360294694 ms> SERVER_PORT(12)=(5)7779
    <360294694 ms> SERVER_NAME(12)=(10)net-srv05
    <360294694 ms> REQUEST_METHOD(15)=(5)POST
    <360294694 ms> PATH_INFO(10)=(15)/wwv_flow.show
    <360294694 ms> SCRIPT_NAME(12)=(10)/pls/apex
    <360294694 ms> REMOTE_ADDR(12)=(14)172.20.100.77
    <360294694 ms> SERVER_PROTOCOL(16)=(9)HTTP/1.1
    <360294694 ms> REQUEST_PROTOCOL(17)=(5)HTTP
    <360294694 ms> REMOTE_USER(12)=(17)APEX_PUBLIC_USER
    <360294694 ms> HTTP_CONTENT_LENGTH(20)=(4)149
    <360294694 ms> HTTP_CONTENT_TYPE(18)=(34)application/x-www-form-urlencoded
    <360294694 ms> HTTP_USER_AGENT(16)=(51)Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
    <360294694 ms> HTTP_HOST(10)=(11)172.18.2.5
    <360294694 ms> HTTP_ACCEPT(12)=(4)*/*
    <360294694 ms> HTTP_ACCEPT_LANGUAGE(21)=(18)en-us,ar-lb;q=0.5
    <360294694 ms> HTTP_COOKIE(12)=(105)LOGIN_USERNAME_COOKIE=usr1234; WWV_CUSTOM-F_941322186522444_101=725E6950E8DF04E5; oracle.uix=0^^GMT+2:00
    <360294694 ms> HTTP_REFERER(13)=(53)http://172.18.2.5/pls/apex/f?p=101:1:950664913516045
    <360294694 ms> HTTP_ORACLE_ECID(17)=(14)89781163291,1
    <360294694 ms> HTTP_ORACLE_CACHE_VERSION(26)=(7)10.1.2
    <360294694 ms> WEB_AUTHENT_PREFIX(19)=(1)
    <360294694 ms> DAD_NAME(9)=(5)apex
    <360294694 ms> DOC_ACCESS_PATH(16)=(5)docs
    <360294694 ms> DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
    <360294694 ms> PATH_ALIAS(11)=(1)
    <360294694 ms> REQUEST_CHARSET(16)=(9)AL32UTF8
    <360294694 ms> REQUEST_IANA_CHARSET(21)=(6)UTF-8
    <360294694 ms> SCRIPT_PREFIX(14)=(5)/pls
    <360294694 ms>StrArrPosBind pos 2 Charset Id : 873
    <360294694 ms>StrArrPosBind pos 3 Charset Id : 873
    <360294694 ms>StrArrPosBind pos 11 Charset Id : 873
    <360294704 ms>Execute: ORA-06550: line 33, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 33, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 33, column 3:
    PL/SQL: Statement ignored
    apex team comments are highly appreciated.
    one more thing I can see for each ajax request I have in my page a hard parse is happening .
    Omar

  • Wrong number or types to call put_line.

    I feel like I should know this but for some reason I am having a hard time putting something together to work. The initial SELECT statement:
    SELECT dept, AVG(end_dt-start_dt) AS new_date FROM dept_dates GROUP BY dept;
    ran outside the PL/SQL block returns the following:
    DEPT NEW_DATE
    Marketing 4.56
    Adminis 5.43
    Purch 2.33
    When I run it inside a PL/SQL block and I try to use DBMS_OUTPUT.PUT_LINE, such as:
    DECLARE
    v_dept VARCHAR2(50);
    v_new_date NUMBER;
    BEGIN
    SELECT dept, AVG(end_dt-start_dt) AS new_date
    INTO v_dept, v_new_date
    FROM dept_dates
    GROUP BY dept;
    DBMS_OUTPUT.ENABLE(100000);
    DBMS_OUTPUT.PUT_LINE(v_dept,v_new_date);
    END;
    I get the error msg PLS-00306 wrong number or types of arguments in call to 'PUT_LINE'. Can someone please give me a quick rundown in how I can use the group by function and still us the put_line (or similar) function. It would be a great help. Thanks-Adam

    Thanks for the help but I tried both methods and return the following:
    Error report:
    ORA-01422: exact fetch returns more then requested number of rows
    ORA-06512: at line 5
    01422. 00000 - "exact fetch returns more than requested number of rows"
    *Cause:    The number specified in exact fetch is less than the rows returned
    *Action:    Rewrite the query or change number of rows requested.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Hard link redundancy system

    This is my random thought of the day.
    What if, after a fresh install, you created a /mnt/backup dir, and hard linked _every_ file on the system in there in the same hierarchical order. Then you take a snapshot of the system, by... i dunno... backing up the 'locate' db, and then set a cron job that every hour takes a new snapshot, compares this with the old snapshot, adds/removes hard links to the /mnt/backup sub-hierarchy accordingly, and then stores the new snapshot in the old one's place for comparison next time the job runs. Or better still, have a daemon that continually monitors for file system changes and modifies the backup system as needed.
    Though incredibly clunky, can anyone give me any reason why this system would be ineffective?
    A couple of things I'd be interested to know are
    a.    Is traversal of the directory tree affected only by the distance travelled through it, or by its total size?
    b.    Does it seem likely that there's _any_ way this could be made to work with ext3, by backing up the current inode table along with each snapshot for example? Am I remembering correctly when I think that ext3 zeros out the block pointers of inodes for deleted files, but the blocks themselves are unaffected, yes?

    Maybe you want to add .1 to the end of the file name, and if that hard link already exists add .2 instead? Each time you increment the number, first compare the content to the actual file, and if it's identical you already have a backup so you don't have to do anything.
    ~$ uname > foo.txt (hard link foo.txt.1)
    ~$ rm foo.txt (nothing happens)
    ~$ pacman -Q > foo.txt (hard link foo.txt.2)
    ~$ rm foo.txt (nothing happens)
    ~$ pacman -Q > foo.txt (nothing happens)
    ~$ rm foo.txt (nothing happens)
    ~$ ps ax > foo.txt (hard link foo.txt.3)
    ~$ rm foo.txt (nothing happens)
    ~$ touch foo.txt (hard link foo.txt.4)
    ~$ rm foo.txt (nothing happens)
    ~$ uname > foo.txt (nothing happens)

  • PLS-00306: wrong number or types of arguments in call to 'ENQUEUE'

    Hi All,
    I am trying to create a Queue and En-queue a message but I am getting error while en-queue a message as,
    "*ERROR at line 10:*
    *ORA-06550: line 10, column 3:*
    *PLS-00306: wrong number or types of arguments in call to 'ENQUEUE'*
    *ORA-06550: line 10, column 3:*
    *PL/SQL: Statement ignored*"
    I am using oracle 11g R2. Below is the script, user mthiiora1 has AQ ADMIN privilege,
    CREATE TYPE mthiiora1.mt_ora1_q_type1 AS OBJECT (message_id NUMBER,
    message_text VARCHAR2(4000));
    BEGIN
    -- Creating Queue Table
    DBMS_AQADM.CREATE_QUEUE_TABLE (queue_table => 'mt_ora1_q_type1_t1',
    queue_payload_type => 'mthiiora1.mt_ora1_q_type1');
    -- Creating Queue
    DBMS_AQADM.create_queue (queue_name => 'mt_ora1_que1',
    queue_table => 'mt_ora1_q_type1_t1');
    -- Starting Queue
    DBMS_AQADM.start_queue (queue_name => 'mt_ora1_que1',
    enqueue    => TRUE);
    END;
    DECLARE
    laq_queue_options         DBMS_AQ.ENQUEUE_OPTIONS_T;
    laq_message_properties    DBMS_AQ.MESSAGE_PROPERTIES_T;
    laq_message_id            RAW(32);
    laq_message               mthiiora1.mt_ora1_q_type1;
    BEGIN
    laq_message := mthiiora1.mt_ora1_q_type1(1, 'Message 1');
    DBMS_AQ.enqueue ( queue_name          => 'mt_ora1_que1',
    enqueue_options     => laq_queue_options,
    message_properties  => laq_message_properties,
    pay_load            => laq_message,
    msgid               => laq_message_id);
    COMMIT;
    END;
    Could you anyone please help me to resolve this issue?

    hi orawiss,
    Thank you. I went through this link before i post the question in this fourm. But the parameters of DBMS_AQ.enqueue is same as my code. But why am I still getting the error message?

Maybe you are looking for