After a month of inactivity, pacman says there is nothing to update

Hi all,
I have a computer that I am using for a project here at university which has Arch x86 installed.  Because I myself run Arch on my laptop, I have not needed to use this other computer for a while (I have been writing code that will eventually be run on the other computer).  Anyway, after about a month of inactivity, I booted up this other computer and attempted to perform an update with pacman -Syu, and to my surprise pacman was unable to sync with the server (ibiblio).  After changing the mirror twice in my mirrorlist, I finally was able to sync with the package database, however pacman continued by stating "There is nothing to be done."  I know for a fact that this is incorrect since the computer has not been touched in at least a month.
Any idea why it would update the package database, but neglect to update any of the actual packages?  Trying additional mirrors did not help (although I was rather curious as to why half the mirrors that I selected were incapable of syncing) and I am currently out of other ideas.
Regards,
Andy

Mr.Elendig wrote:
Does -Q actually list packages?
Also, paste your pacman.conf and mirrorlist
-Q does list packages, in the case of wine it is the 1.3.16 version. 1.3.17 came out on the 2nd, so surely it would be up to date in all the mirrors by now?
pacman.conf:
# /etc/pacman.conf
# See the pacman.conf(5) manpage for option and repository directives
# GENERAL OPTIONS
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
HoldPkg = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl -C - %u > %o
#CleanMethod = KeepInstalled
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options (all disabled by default)
#UseSyslog
#ShowSize
#UseDelta
#TotalDownload
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
#[testing]
#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repository here.
[multilib]
Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs
mirrorlist:
# Mirror used during installation
Server = ftp://ftp.rez-gif.supelec.fr/Linux/archlinux/$repo/os/x86_64
## Arch Linux repository mirrorlist
## Generated on 2011-03-13
## Any
#Server = ftp://mirrors.kernel.org/archlinux/$repo/os/$arch
#Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
## Australia
#Server = ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch
#Server = http://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch
#Server = ftp://ftp.iinet.net.au/pub/archlinux/$repo/os/$arch
#Server = http://ftp.iinet.net.au/pub/archlinux/$repo/os/$arch
#Server = ftp://mirror.internode.on.net/pub/archlinux/$repo/os/$arch
#Server = http://mirror.internode.on.net/pub/archlinux/$repo/os/$arch
#Server = ftp://mirror.optus.net/archlinux/$repo/os/$arch
#Server = http://mirror.optus.net/archlinux/$repo/os/$arch
## Austria
#Server = ftp://gd.tuwien.ac.at/opsys/linux/archlinux/$repo/os/$arch
#Server = http://gd.tuwien.ac.at/opsys/linux/archlinux/$repo/os/$arch
## Belarus
#Server = ftp://ftp.byfly.by/pub/archlinux/$repo/os/$arch
#Server = http://ftp.byfly.by/pub/archlinux/$repo/os/$arch
#Server = ftp://mirror.datacenter.by/pub/archlinux/$repo/os/$arch
#Server = http://mirror.datacenter.by/pub/archlinux/$repo/os/$arch
## Belgium
#Server = ftp://archlinux.mirror.kangaroot.net/pub/archlinux/$repo/os/$arch
#Server = http://archlinux.mirror.kangaroot.net/$repo/os/$arch
## Brazil
#Server = ftp://archlinux.c3sl.ufpr.br/archlinux/$repo/os/$arch
#Server = http://archlinux.c3sl.ufpr.br/$repo/os/$arch
#Server = ftp://ftp.las.ic.unicamp.br/pub/archlinux/$repo/os/$arch
#Server = http://www.las.ic.unicamp.br/pub/archlinux/$repo/os/$arch
#Server = http://pet.inf.ufsc.br/mirrors/archlinux/$repo/os/$arch
## Canada
#Server = ftp://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch
#Server = http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch
#Server = ftp://mirror.its.dal.ca/archlinux/$repo/os/$arch
#Server = http://mirror.its.dal.ca/archlinux/$repo/os/$arch
## Chile
#Server = ftp://mirror.archlinux.cl/$repo/os/$arch
## China
#Server = http://mirrors.163.com/archlinux/$repo/os/$arch
#Server = http://mirror.bjtu.edu.cn/archlinux/$repo/os/$arch
#Server = http://mirror6.bjtu.edu.cn/archlinux/$repo/os/$arch
#Server = ftp://mirrors.sohu.com/archlinux/$repo/os/$arch
#Server = http://mirrors.sohu.com/archlinux/$repo/os/$arch
## Colombia
#Server = http://www.laqee.unal.edu.co/archlinux/$repo/os/$arch
## Czech Republic
#Server = http://mirror.vpsfree.cz/archlinux/$repo/os/$arch
## Denmark
#Server = ftp://mirrors.dotsrc.org/archlinux/$repo/os/$arch
#Server = http://mirrors.dotsrc.org/archlinux/$repo/os/$arch
#Server = ftp://ftp.klid.dk/archlinux/$repo/os/$arch
## Estonia
#Server = ftp://ftp.eenet.ee/pub/archlinux/$repo/os/$arch
#Server = http://ftp.eenet.ee/pub/archlinux/$repo/os/$arch
## Finland
#Server = ftp://mirror.academica.fi/archlinux/$repo/os/$arch
#Server = http://mirror.academica.fi/archlinux/$repo/os/$arch
#Server = ftp://mirror.archlinux.fi/archlinux/$repo/os/$arch
#Server = http://mirror.archlinux.fi/archlinux/$repo/os/$arch
## France
Server = http://mir.archlinux.fr/$repo/os/$arch
Server = ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/$arch
Server = http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/$arch
Server = ftp://mir1.archlinux.fr/archlinux/$repo/os/$arch
Server = http://mir1.archlinux.fr/archlinux/$repo/os/$arch
Server = ftp://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch
Server = http://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch
Server = ftp://ftp.rez-gif.supelec.fr/Linux/archlinux/$repo/os/$arch
## Germany
#Server = http://archlinux.limun.org/$repo/os/$arch
#Server = ftp://artfiles.org/archlinux/$repo/os/$arch
#Server = http://artfiles.org/archlinux/$repo/os/$arch
#Server = http://mirror.c9h.de/pub/linux/archlinux/$repo/os/$arch
#Server = ftp://archlinux.giantix-server.de/$repo/os/$arch
#Server = http://archlinux.giantix-server.de/$repo/os/$arch
#Server = ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch
#Server = http://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch
#Server = ftp://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
#Server = http://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
#Server = ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/$arch
#Server = http://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/$arch
#Server = ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/$arch
#Server = http://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/$arch
#Server = ftp://mirror.selfnet.de/archlinux/$repo/os/$arch
#Server = http://mirror.selfnet.de/archlinux/$repo/os/$arch
#Server = ftp://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/$arch
#Server = http://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/$arch
#Server = ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/$arch
#Server = http://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/$arch
#Server = ftp://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/$arch
#Server = http://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/$arch
## Great Britain
Server = ftp://mirror.lividpenguin.com/pub/archlinux/$repo/os/$arch
Server = http://mirror.lividpenguin.com/pub/archlinux/$repo/os/$arch
Server = ftp://mirrors.uk2.net/pub/archlinux/$repo/os/$arch
Server = http://archlinux.mirrors.uk2.net/$repo/os/$arch
## Greece
#Server = ftp://ftp.cc.uoc.gr/mirrors/linux/archlinux/$repo/os/$arch
#Server = http://ftp.cc.uoc.gr/mirrors/linux/archlinux/$repo/os/$arch
#Server = ftp://ftp.otenet.gr/pub/linux/archlinux/$repo/os/$arch
#Server = http://ftp.otenet.gr/linux/archlinux/$repo/os/$arch
## Hungary
#Server = ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.archlinux.org/$repo/os/$arch
## India
#Server = ftp://mirror.cse.iitk.ac.in/archlinux/$repo/os/$arch
#Server = http://mirror.cse.iitk.ac.in/archlinux/$repo/os/$arch
## Ireland
Server = ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/$arch
Server = http://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/$arch
## Israel
#Server = ftp://mirror.isoc.org.il/pub/archlinux/$repo/os/$arch
#Server = http://mirror.isoc.org.il/pub/archlinux/$repo/os/$arch
## Italy
#Server = http://mirrors.prometeus.net/archlinux/$repo/os/$arch
## Japan
#Server = ftp://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
#Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
## Kazakhstan
#Server = ftp://archlinux.kz/$repo/os/$arch
#Server = http://archlinux.kz/$repo/os/$arch
## Korea
#Server = ftp://mirror.yongbok.net/archlinux/$repo/os/$arch
#Server = http://mirror.yongbok.net/archlinux/$repo/os/$arch
## Latvia
#Server = http://archlinux.goodsoft.lv/$repo/os/$arch
## Netherlands
#Server = ftp://mirror.leaseweb.com/archlinux/$repo/os/$arch
#Server = http://mirror.leaseweb.com/archlinux/$repo/os/$arch
#Server = ftp://ftp.nluug.nl/pub/os/Linux/distr/archlinux/$repo/os/$arch
#Server = http://ftp.nluug.nl/pub/os/Linux/distr/archlinux/$repo/os/$arch
## New Caledonia
#Server = ftp://archlinux.nautile.nc/archlinux/$repo/os/$arch
#Server = http://archlinux.nautile.nc/archlinux/$repo/os/$arch
## New Zealand
#Server = ftp://mirror.ihug.co.nz/archlinux/$repo/os/$arch
#Server = http://mirror.ihug.co.nz/archlinux/$repo/os/$arch
## Norway
#Server = ftp://mirror.archlinux.no/$repo/os/$arch
#Server = http://mirror.archlinux.no/$repo/os/$arch
#Server = ftp://archlinux.uib.no/pub/Linux/Distributions/archlinux/$repo/os/$arch
#Server = http://archlinux.uib.no/$repo/os/$arch
## Poland
#Server = ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/$arch
#Server = http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/$arch
#Server = http://unix.net.pl/archlinux.org/$repo/os/$arch
## Portugal
#Server = http://darkstar.ist.utl.pt/archlinux/$repo/os/$arch
#Server = ftp://ftp.rnl.ist.utl.pt/pub/archlinux/$repo/os/$arch
#Server = http://ftp.rnl.ist.utl.pt/pub/archlinux/$repo/os/$arch
## Romania
#Server = ftp://mirrors.adnettelecom.ro/archlinux/$repo/os/$arch
#Server = http://mirrors.adnettelecom.ro/archlinux/$repo/os/$arch
#Server = ftp://mirror.archlinux.ro/archlinux/$repo/os/$arch
#Server = http://mirror.archlinux.ro/archlinux/$repo/os/$arch
#Server = ftp://ftp.roedu.net/mirrors/archlinux.org/$repo/os/$arch
#Server = http://ftp.roedu.net/mirrors/archlinux.org/$repo/os/$arch
## Russia
#Server = http://mirror.worldis.me/archlinux/$repo/os/$arch
#Server = ftp://mirror.yandex.ru/archlinux/$repo/os/$arch
#Server = http://mirror.yandex.ru/archlinux/$repo/os/$arch
## Slovakia
#Server = ftp://mirror.ynet.sk/pub/archlinux/$repo/os/$arch
#Server = http://mirror.ynet.sk/pub/archlinux/$repo/os/$arch
## Spain
#Server = ftp://ftp.rediris.es/mirror/archlinux/$repo/os/$arch
#Server = http://sunsite.rediris.es/mirror/archlinux/$repo/os/$arch
## Sweden
#Server = ftp://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/$arch
#Server = http://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/$arch
#Server = ftp://ftp.linuxmirror.org/arch/$repo/os/$arch
#Server = http://linuxmirror.org/arch/$repo/os/$arch
## Switzerland
#Server = ftp://archlinux.puzzle.ch/$repo/os/$arch
#Server = http://archlinux.puzzle.ch/$repo/os/$arch
## Taiwan
#Server = ftp://ftp.mirror.tw/pub/ArchLinux/$repo/os/$arch
#Server = http://ftp.mirror.tw/pub/ArchLinux/$repo/os/$arch
#Server = ftp://linux.cs.nctu.edu.tw/archlinux/$repo/os/$arch
#Server = http://linux.cs.nctu.edu.tw/archlinux/$repo/os/$arch
#Server = ftp://shadow.ind.ntou.edu.tw/archlinux/$repo/os/$arch
#Server = http://shadow.ind.ntou.edu.tw/archlinux/$repo/os/$arch
#Server = ftp://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/$arch
#Server = http://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/$arch
## Turkey
#Server = ftp://ftp.linux.org.tr/archlinux/$repo/os/$arch
#Server = http://ftp.linux.org.tr/archlinux/$repo/os/$arch
## Ukraine
#Server = http://distfiles.org.ua/archlinux/$repo/os/$arch
#Server = http://www2.distfiles.org.ua/archlinux/$repo/os/$arch
#Server = ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/$arch
#Server = http://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/$arch
## United States
#Server = http://mirrors.cat.pdx.edu/archlinux/$repo/os/$arch
#Server = http://mirror.ece.vt.edu/archlinux/$repo/os/$arch
#Server = ftp://ftp.archlinux.org/$repo/os/$arch
#Server = ftp://ftp.gtlib.gatech.edu/pub/archlinux/$repo/os/$arch
#Server = http://www.gtlib.gatech.edu/pub/archlinux/$repo/os/$arch
#Server = ftp://mirrors.hosef.org/archlinux/$repo/os/$arch
#Server = http://mirrors.hosef.org/archlinux/$repo/os/$arch
#Server = http://hpc.arc.georgetown.edu/mirror/archlinux/$repo/os/$arch
#Server = ftp://distro.ibiblio.org/archlinux/$repo/os/$arch
#Server = http://distro.ibiblio.org/archlinux/$repo/os/$arch
#Server = ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/$arch
#Server = ftp://lug.mtu.edu/archlinux/ftpfull/$repo/os/$arch
#Server = http://lug.mtu.edu/archlinux/ftpfull/$repo/os/$arch
#Server = ftp://mirrors.xmission.com/archlinux/$repo/os/$arch
#Server = http://mirrors.xmission.com/archlinux/$repo/os/$arch
#Server = http://mirror.mocker.org/archlinux/$repo/os/$arch
#Server = ftp://ftp.osuosl.org/pub/archlinux/$repo/os/$arch
#Server = http://ftp.osuosl.org/pub/archlinux/$repo/os/$arch
#Server = ftp://mirror.rit.edu/archlinux/$repo/os/$arch
#Server = http://mirror.rit.edu/archlinux/$repo/os/$arch
#Server = http://schlunix.org/archlinux/$repo/os/$arch
#Server = http://mirror.yellowfiber.net/archlinux/$repo/os/$arch
## Uzbekistan
#Server = ftp://mirrors.st.uz/archlinux/$repo/os/$arch
#Server = http://mirrors.st.uz/archlinux/$repo/os/$arch

Similar Messages

  • My Safari won't update, Software Update says there's nothing to update but gmail does

    According to my Mac all my applications are up to date. But when I go check my gmail it says safari is out of date and needs to be update, however my mac says that there is nothing to update. I have an older MacBook and I am not sure if that is the issue. I have "Mac OS X Version 10.6.8", its a MacBook, white body version. Any suggestions? It is not a big issue, Safari works for everything else except my gmail account now, but Mozilla works fine with it

    You need to upgrade the computer's OS or switch browsers; if desired, you can keep using Gmail as is, but many of its functions will eventually disappear.
    (117498)

  • My iphone 4 is dead after I updated to ios 6.1.3 it doesnt turn on and doesnt respond to itunes also. Visited Apptronix service desk but they say there is nothing they can do about it, and they have charged INR 10640 for a new one. Is there anybody same..

    My iphone 4 is dead after I updated to ios 6.1.3 it doesnt turn on and doesnt respond to itunes also. Visited Apptronix service desk but they say there is nothing they can do about it, and they have charged INR 10640 for a new one. Is there anybody with similar problem....

    Hm... Try this----> http://support.apple.com/kb/ht1808 or http://osxdaily.com/2010/12/04/ipad-dfu-mode/

  • After apple wiped my hard drive, my computer no longer recognizes my iphone 4.  It will charge, but doesn't show up in my sidebar or in itunes.  My computer says there are no software updates available.  I'm running OSX 10.5.8 and itunes is 10.3.1.

    After apple wiped my hard drive, my computer no longer recognizes my iphone 4.  It will charge, but doesn't show up in my sidebar or in itunes.  My computer says there are no software updates available.  I'm running OSX 10.5.8 and itunes is 10.3.1.

    After apple wiped my hard drive, my computer no longer recognizes my iphone 4.  It will charge, but doesn't show up in my sidebar or in itunes.  My computer says there are no software updates available.  I'm running OSX 10.5.8 and itunes is 10.3.1.

  • I'm unable to make payment for creative cloud monthly plan. It says there is some problem processing the payment. I tried with three different cards. Still not working

    I'm unable to make payment for creative cloud monthly plan. It says there is some problem processing the payment. I tried with three different cards. Still not working

    "Some problem" is really not much information
    Some links that may help
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -ID support http://helpx.adobe.com/x-productkb/global/service-c1.html
    -wrong email https://forums.adobe.com/thread/1446019

  • My A'Extreme sometimes won't connect to my MacBook Pro even if I have a green light on the device . I can unplug the ethernet cable and reconnect and it will work fine. all diagnostics say there is nothing wrong. Any ideas ?

    My A'Extreme sometimes won't connect to my MacBook Pro even if I have a green light on the device . I can unplug the ethernet cable and reconnect and it will work fine. all diagnostics say there is nothing wrong. Any ideas ?

    This is more about your modem then anything. Sometimes you'll need to unplug and plug back in your modem. Consider it a glitch from the ISP or just the modem in general.
    when I need to turn something off then on I try the modem first. This when I'm not doing any ware and tare to the device.

  • My problem is that, in update, it says, I have (2) updates on my iPad 4. But when I go to update, there is nothing to update in the App Store. Plz Help

    My problem is that, in update, it says, I have (2) updates on my iPad 4. But when I go to update, there is nothing to update in the App Store. Plz Help

    The update server is down; try this temporary workaround
    App Store>Purchased>Select "All"
    Note: Look out for apps that have the word "Update"
    http://i1224.photobucket.com/albums/ee374/Diavonex/9c256282736869f322d4b3071bbb2 a82_zps51a6f546.jpg

  • CD drive  not reading Audio or Photos intel core 2 duo Mac - says there is nothing on disc / Blank  - Is there a fix ??

    CD drive  not reading Audio or Photos
    intel core 2 duo Mac -
    says there is nothing on disc / Blank  - When there is
    Is there a fix ??

    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware>Disc Burning & report what it says, like ...
    Interconnect: ATAPI
    Burn Support: Yes (Apple Shipped/Supported)
    Cache: 2048 KB
    Reads DVD: Yes
    CD-Write: -R, -RW
    DVD-Write: -R, -RW, +R, +RW, +R DL
    Burn Underrun Protection CD: Yes
    Burn Underrun Protection DVD: Yes
    Write Strategies: CD-TAO, CD-SAO, CD-Raw, DVD
    Have you done a PRAM reset, CMD+Option+p+r...
    http://support.apple.com/kb/HT1379
    In fact, do 3 in a row, takes a bit of time.

  • I inserted a cd that a friend of mine made me, it says there is nothing on the CD but now I can't figure out how to eject it

    I inserted a CD that a friend made me, it says there is nothing on the CD but now I can't figure out how to eject it.....any help would be very appreciated.

    Restart while holding the trackpad or mouse button down.
    If that does not work, find Terminal in your Utilities folder and launch it.
    At the prompt type
    drutil eject
    and press Return.

  • There is nothing to update so what is wrong?

    I have tried different ways but there is nothing to update so
    what is wrong?
    1 CREATE OR REPLACE PROCEDURE Update_Enrollment
    2 (p_stuid IN NUMBER,
    3 P_sectionid IN NUMBER,
    4 p_grade IN CHAR)
    5 AS
    6 BEGIN
    7 UPDATE Update_Enrollment
    8 SET stuid = p_stuid
    9 WHERE sectionid = p_sectionid
    10 AND grade = p_grade;
    11 COMMIT;
    12 DBMS_OUTPUT.PUT_LINE ('Enrollment updated');
    13 EXCEPTION
    14 WHEN OTHERS THEN
    15 DBMS_OUTPUT.PUT_LINE ('An error occurred');
    16* END Update_Enrollment;
    SQL> /
    Warning: Procedure created with compilation errors.
    SQL> ed
    Wrote file afiedt.buf
    1 CREATE OR REPLACE PROCEDURE Update_Enrollment
    2 (p_stuid IN NUMBER,
    3 P_sectionid IN NUMBER,
    4 p_grade IN CHAR)
    5 AS
    6 BEGIN
    7 UPDATE enrollment
    8 SET stuid = p_stuid
    9 WHERE sectionid = p_sectionid
    10 AND grade = p_grade;
    11 COMMIT;
    12 DBMS_OUTPUT.PUT_LINE ('Enrollment updated');
    13 EXCEPTION
    14 WHEN OTHERS THEN
    15 DBMS_OUTPUT.PUT_LINE ('An error occurred');
    16* END Update_Enrollment;
    SQL> /
    Procedure created.
    SQL> EXEC Update_Enrollment ('1','11','B')
    PL/SQL procedure successfully completed.
    SQL> SELECT stuid, sectionid, grade
    2 FROM enrollment
    3 /
    STUID SECTIONID G
    3 1
    3 8
    3 11
    4 1
    4 8
    4 11
    6 1
    6 8
    6 11
    1 4
    1 14
    STUID SECTIONID G
    2 4
    2 14
    5 4
    5 14
    15 rows selected.
    SQL> EXEC Update_Enrollment (1, 11, 'B')
    PL/SQL procedure successfully completed.
    SQL> SELECT stuid, sectionid, grade
    2 FROM enrollment
    3 /
    STUID SECTIONID G
    3 1
    3 8
    3 11
    4 1
    4 8
    4 11
    6 1
    6 8
    6 11
    1 4
    1 14
    STUID SECTIONID G
    2 4
    2 14
    5 4
    5 14
    15 rows selected.

    Beau,
    Please read my latest response to your other post first before
    reading this one:
    http://forums.oracle.com/forums/message.jsp?id=644453
    You can use SQL%ROWCOUNT to tell you how many records (rows) in
    the table were updated by your procedure:
    Modifying the procedure from your other post to use SQL%ROWCOUNT:
    SQL> CREATE OR REPLACE PROCEDURE update_enrollment
      2    (p_stuid     IN NUMBER,
      3       p_sectionid IN NUMBER,
      4       p_grade     IN VARCHAR2)
      5  AS
      6  BEGIN
      7    UPDATE enrollment
      8    SET    grade = p_grade
      9    WHERE  stuid = p_stuid
    10    AND    sectionid = p_sectionid;
    11 
    12    DBMS_OUTPUT.PUT_LINE (SQL%ROWCOUNT || ' records
    updated.');
    13 
    14    COMMIT;
    15 
    16  EXCEPTION
    17    WHEN OTHERS THEN
    18        DBMS_OUTPUT.PUT_LINE ('An error occurred');
    19  END update_enrollment;
    20  /
    Procedure created.
    And, if this is your data:
    SQL> SELECT stuid, sectionid, grade
      2  FROM   enrollment
      3  /
         STUID  SECTIONID G                
             3          1                  
             3          8                  
             3         11                  
             4          1                  
             4          8                  
             4         11                  
             6          1                  
             6          8                  
             6         11                  
             1          4                  
             1         14                  
             2          4                  
             2         14                  
             5          4                  
             5         14                  
    15 rows selected.
    There is no existing record (row) where stuid = 1 and sectionid
    = 11:
    SQL> SELECT stuid, sectionid, grade
      2  FROM   enrollment
      3  WHERE  stuid = 1
      4  AND    sectionid = 11
      5  /
    no rows selected
    So, if you execute your procedure and tell it to set (change)
    the grade to 'B' in all existing records (rows) where the stuid
    is 1 and the sectionid is 11:
    Remembering to SET SERVEROUTPUT ON so that the messages
    displayed by DBMS_OUTPUT.PUT_LINE can be seen:
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC update_enrollment (1, 11, 'B')
    0 records updated.                     
    PL/SQL procedure successfully completed.
    The procedure executes successfully because it updated all such
    rows.  It just so happens that there aren't any such rows, so it
    successfully updated zero rows and tells you that.
    There does happen to be an existing record (row) in the table
    where the stuid is 1 and the sectionid is 4:
    SQL> SELECT stuid, sectionid, grade
      2  FROM   enrollment
      3  WHERE  stuid = 1
      4  AND    sectionid = 4
      5  /
         STUID  SECTIONID G                
             1          4                  
    So, if you tell your procedure to set (change) the grade to 'B'
    in all existing records (rows) where stuid = 1 and sectionid = 4:
    Remembering to SET SERVEROUTPUT ON so that the messages
    displayed by DBMS_OUTPUT.PUT_LINE can be seen:
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC update_enrollment (1, 4, 'B')
    1 records updated.                     
    PL/SQL procedure successfully completed.
    Then, the procedure executes successfully updating all such
    existing records (rows).  In this case there is one such row and
    the grade in that row has now been set (chaged) to 'B' and it
    tells you that 1 row was updated.
    SQL> SELECT stuid, sectionid, grade
      2  FROM   enrollment
      3  /
         STUID  SECTIONID G                
             3          1                  
             3          8                  
             3         11                  
             4          1                  
             4          8                  
             4         11                  
             6          1                  
             6          8                  
             6         11                  
             1          4 B                
             1         14                  
             2          4                  
             2         14                  
             5          4                  
             5         14                  
    15 rows selected.
    The above is only one very simple usage.  You could add
    additional code to display a certain message if the SQL%ROWCOUNT
    is 0.  As John said, you could raise a user-defined exception. 
    Modifying your procedure to do that:
    SQL> CREATE OR REPLACE PROCEDURE update_enrollment
      2    (p_stuid     IN NUMBER,
      3       p_sectionid IN NUMBER,
      4       p_grade     IN VARCHAR2)
      5  AS
      6    e_zero_rows     EXCEPTION;
      7  BEGIN
      8    UPDATE enrollment
      9    SET    grade = p_grade
    10    WHERE  stuid = p_stuid
    11    AND    sectionid = p_sectionid;
    12 
    13    DBMS_OUTPUT.PUT_LINE (SQL%ROWCOUNT || ' records
    updated.');
    14 
    15    IF SQL%ROWCOUNT = 0
    16    THEN
    17        RAISE e_zero_rows;
    18    ELSE
    19        COMMIT;
    20    END IF;
    21  EXCEPTION
    22    WHEN e_zero_rows THEN
    23        DBMS_OUTPUT.PUT_LINE ('No rows were updated.');
    24        DBMS_OUTPUT.PUT_LINE ('SQL%ROWCOUNT was 0');
    25    WHEN OTHERS THEN
    26        DBMS_OUTPUT.PUT_LINE ('An error occurred');
    27  END update_enrollment;
    28  /
    Procedure created.
    Then, if you execute your procedure and tell it to set (change)
    the grade to 'B' in all existing records (rows) where the stuid
    is 1 and the sectionid is 11:
    Remembering to SET SERVEROUTPUT ON so that the messages
    displayed by DBMS_OUTPUT.PUT_LINE can be seen:
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC update_enrollment (1, 11, 'B')
    0 records updated.                     
    No rows were updated.                  
    SQL%ROWCOUNT was 0                     
    PL/SQL procedure successfully completed.
    Then you get a more meaningful error message.  This gives you a
    better idea of what went wrong.  The user-defined exception is
    one method.
    There are other methods for handling exceptions.  Suppose, for
    example, that you don't have anything to handle exceptions in
    your procedure and you attempt to enter an invalid grade:
    SQL> CREATE OR REPLACE PROCEDURE update_enrollment
      2    (p_stuid     IN NUMBER,
      3       p_sectionid IN NUMBER,
      4       p_grade     IN VARCHAR2)
      5  AS
      6    e_zero_rows     EXCEPTION;
      7  BEGIN
      8    UPDATE enrollment
      9    SET    grade = p_grade
    10    WHERE  stuid = p_stuid
    11    AND    sectionid = p_sectionid;
    12 
    13    DBMS_OUTPUT.PUT_LINE (SQL%ROWCOUNT || ' records
    updated.');
    14 
    15    COMMIT;
    16  END update_enrollment;
    17  /
    Procedure created.
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC update_enrollment (1, 4, 'Z')
    BEGIN update_enrollment (1, 4, 'Z'); END;
    ERROR at line 1:
    ORA-02290: check constraint
    (SCOTT.CHECK_GRADE) violated
    ORA-06512: at
    "SCOTT.UPDATE_ENROLLMENT", line 8
    ORA-06512: at line 1
    The above message tells you that you violated a check constraint
    and your procedure was not completed.  However, if you did the
    same thing, with this sort of exception handling:
    SQL> CREATE OR REPLACE PROCEDURE update_enrollment
      2    (p_stuid     IN NUMBER,
      3       p_sectionid IN NUMBER,
      4       p_grade     IN VARCHAR2)
      5  AS
      6    e_zero_rows     EXCEPTION;
      7  BEGIN
      8    UPDATE enrollment
      9    SET    grade = p_grade
    10    WHERE  stuid = p_stuid
    11    AND    sectionid = p_sectionid;
    12 
    13    DBMS_OUTPUT.PUT_LINE (SQL%ROWCOUNT || ' records
    updated.');
    14 
    15    COMMIT;
    16  EXCEPTION
    17    WHEN OTHERS THEN
    18        DBMS_OUTPUT.PUT_LINE ('An error occurred.');
    19  END update_enrollment;
    20  /
    Procedure created.
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC update_enrollment (1, 4, 'Z')
    An error occurred.                     
    PL/SQL procedure successfully completed.
    Then, the only message you get is that an error occurred, with
    no clue as to what type of error.  This is what David was
    talking about in the other post.  You would probably be better
    off without any exception handling than leaving it this way. 
    You could however do something like this:
    SQL> CREATE OR REPLACE PROCEDURE update_enrollment
      2    (p_stuid     IN NUMBER,
      3       p_sectionid IN NUMBER,
      4       p_grade     IN VARCHAR2)
      5  AS
      6    e_zero_rows     EXCEPTION;
      7  BEGIN
      8    UPDATE enrollment
      9    SET    grade = p_grade
    10    WHERE  stuid = p_stuid
    11    AND    sectionid = p_sectionid;
    12 
    13    DBMS_OUTPUT.PUT_LINE (SQL%ROWCOUNT || ' records
    updated.');
    14 
    15    COMMIT;
    16  EXCEPTION
    17    WHEN OTHERS THEN
    18        DBMS_OUTPUT.PUT_LINE (sqlerrm (sqlcode));
    19  END update_enrollment;
    20  /
    Procedure created.
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC update_enrollment (1, 4, 'Z')
    ORA-02290: check constraint            
    (SCOTT.CHECK_GRADE) violated           
    PL/SQL procedure successfully completed.
    The above traps and displays the error message, but allows your
    procedure to complete.
    The exception handling may be a little beyond what is expected
    in your class at this time.  You might ask your instructor about
    it.  There are also other methods of handling exceptions.
    Barbara
    [/code]

  • HT1338 ok so i know that my computer needs to be updated but I do the software update and it say there are no current updates I have not updated my computer in a long time

    ok so I have not updated my computer in a long time and I go to the apple icon in the upper left hand corner of my computer and click on it and then click on softwear updates and it runs and says there are no updates.

    You have to buy the next OS X version. Free updates are only available for the version you have. Since you're posting here, assume you want to upgrade to at least OS X 10.6? Or further?
    Call the Apple online store, which in the US is at 800-MY-APPLE, or you can also order online from them too. OS X 10.6 is only available on DVD, not download. Get it, install, do Software Updates until no more are available. Done. You probably already have at least 1GB of memory, and some spare disk space to install it. Of course, backup first.
    If you want to upgrade to OS X 10.8, see these requirements to see if your system is able to. Note the minimum memory is 2GB, however, 4GB is recommended.  Assuming your system can run Mountain Lion, you can upgrade directly from OS X 10.6 to OS X 10.8. You don't need to upgrade to OS X 10.7 as an interim step. OS X 10.8 is downloadable from the App store.
    If you want to upgrade to OS X 10.7, after you upgrade to OS X 10.6, call the online Apple store again to purchase a download code, then download from the App store.

  • Problems transferring photos from iphone to mac, iphoto says there is nothing to download...

    Hi, I need to transfer photos from iphone to mac. My mac can 'see' my iphone with iphoto open, but the box says there are no photos to download. Could anyone help me please? This has never been a problem before (it was fine about 2 weeks ago). I've tried turning both devices off and have spent a couple of hours trying to search for this problem on the internet. I can't remember when I updated to OS 7.1 but I guess that was recently; could this be the problem? Thank you so much.

    This has nothing to do with iOS 7.1
    Is your phone unlock when it is connected to your Mac?

  • I keep getting a popup window saying there is an important update for FireFox but when I click on "More information about this update" it doesn't show anything. It seems suspicious so I have not downloaded or installed it.

    Any thoughts...?? Anyone have this issue and have an answer to it...???

    There is a security update for Firefox (Firefox 10.0.2) which you should apply. Unfortunately, it looks as if the updater on your Firefox is messing up somehow.
    The easiest way to work around this and get you secure is to go to [http://www.getfirefox.com www.getfirefox.com], and download the latest version of Firefox there. After it downloads, go ahead and run the installer over your current Firefox. None of your settings will be changed, but it will apply the security fix, and you will be all good to go!

  • IPod 160GB says there is nothing on it, but only has 148GB space

    I was putting music on my 160GB when my power surged and turned off the computer. My iPod had about 12GB of space used on it, but now it says there is no music or videos. When I look at it in iTunes, there is only 148GB of space available, so all of that music must be on there somewhere.
    What I want to do is, if possible, restore all the music. I tried doing the 5 R's, but that didn't work. If that isn't possible, I would like to completely wipe out the iPod, reverting it back to it's 160GB state. Any ideas?

    This process started in the early days when Hard Drives were really small and marketing departments thought it was a big deal to make a disk seem a little bigger than it really is. Also many folks from cutomers to salespeople found it difficult to calculate using binary numbers so it seemed simpler to just decimalize the GB numbers. No body felt ripped off because all the numbers were small anyway.
    Now that common disk sizes have grown huge the difference between 160 and 148 is significant and people do feel ripped off when they notice. Unfortunately the use of decimal GB sizes is entrenched in the industry. When Apple buys the HD to put in the iPod they are buying a 160 Gb drive and all 160GB drives from all manufacturers will have 160 printed on the exterior while still having only 148GB(binary) Nothing Apple can do to stop that.

  • HT201210 my phone wont update it says there was a problem updating

    my iphone wont update it says there has been a problem updating

    I imagine a ton of people are attempting to download it right now. Simple patience, maybe keep trying, and if possible, try a little later. Think of it as all those people lining up at Apple Stores + about a million more.

Maybe you are looking for

  • Determination of First Date in Sales Order

    Hello SAP Friends,  Below is the issue we realised during the testing. The issue is with First date in the Sales Order which is not updated as per Unloading Point Calendar . As per details I received, it should refer Unloading Point Calendar for Ship

  • Trouble connecting to external USB hard disk through PC

    I've had AirPort Extreme 802.11n for a few months which I use to connect to a printer and to share a USB hard disk between my eMac and my thinkpad. For a while everything was working beautifully. The disk showed up on my eMac desktop and in my Window

  • How to Write a CUstomer Exit for a variable in BEx

    Hi, How to write a customer exit variable in bex Query designer Do i need developers key for this (If so what type of key do i need so that i can ask basis tean to generate) Info Object: ZEXP_DTE (Expiry Date) Variable on ZEXP_DTE : ZEDTE Type: Custo

  • Calculated non-base table field in a tabular form

    I am struggling with creating a non-base table calculated field in a tabular form in ApEx 3.1 Can you point me in the right direction I thought this would be fairly easy to do, but I cant work out how to do it Requirements 1) Tabular Form based on a

  • HT1414 I cannot open my facetime in my ipad2

    i register My e-mail in apple already and I verify it but my FaceTime still not working