When should you update a package
I've been using arch for a couple of months now, and only did a full update the day I installed arch.
The reason I haven't done a update yet is because I am scared I'm gonna screw up my pc
So I got some newb questions:
1: Is it smart to do a full update?
2: When should you do an update?
3: Where can I find the source of an old package?
4: If I do an update, should I backup anything?
-- thanks in advance --
Last edited by disparv (2012-01-12 19:58:54)
disparv wrote:
I've been using arch for a couple of months now, and only did a full update the day I installed arch.
The reason I haven't done a update yet is because I am scared I'm gonna screw up my pc
So I got some newb questions:
1: Is it smart to do a full update?
2: When should you do an update?
3: Where can I find the source of an old package?
4: If I do an update, should I backup anything?
-- thanks in advance --
My very personal answers.
1. Yes ! (but read below)
2. Personal answer. If you need a feature present in the next version of a package for example.
3. If you need a precompiled old package read: https://wiki.archlinux.org/index.php/Do … g_Packages. If you want the source of an old package, you can get old build script by svn: http://www.archlinux.org/svn/ .
4. Many people will say no. But, especially if core packages will be updated, I backup the whole system on a hard disk before updating.
Bear also in mind that you cannot usually mix old and new packages (If you downgrade a particular package and that nothing depends on it and if the old version is still functioning, there is no problems; but if you completely mix old and new packages, including libraries you will have problems).
Similar Messages
-
Should i update required packages separately using yum ??
Hello Experts and Everyone !
Good NOON !
@ FYI
Sorry for posting almost related my previous questions. This is similar to my previous question but
NOT a duplicate question. so please don't lock this question. This thread having different doubts.
I think , this time i did successfully installing packages using yum.
I have to install 10g r2( 10.2.0.1) on OEL 5.5.
Before installing oracle , i need some confirmation from experts because i am preparing doc for practice.
DID I FINISH SUCCESSFULLY ??
# cd /etc/yum.repos.d
# vi cd.repo
[cd]
name=CD
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
[root@oracle yum.repos.d]# yum repolist
Loaded plugins: security
repo id repo name status
cd CD enabled: 2,334
repolist: 2,334
[root@oracle yum.repos.d]# yum install kernel-headers
Loaded plugins: security
Setting up Install Process
Package kernel-headers-2.6.18-194.el5.i386 already installed and latest version Nothing to do
[root@oracle yum.repos.d] # yum install oracle-validated
Loaded plugins: security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package oracle-validated.i386 0:1.0.0-22.el5 set to be updated
--> Processing Dependency: libXp for package: oracle-validated
--> Processing Dependency: libaio-devel for package: oracle-validated
--> Processing Dependency: unixODBC for package: oracle-validated
--> Processing Dependency: unixODBC-devel for package: oracle-validated
--> Processing Dependency: compat-db for package: oracle-validated
--> Running transaction check
---> Package compat-db.i386 0:4.2.52-5.1 set to be updated
---> Package libXp.i386 0:1.0.0-8.1.el5 set to be updated
---> Package libaio-devel.i386 0:0.3.106-5 set to be updated
---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated
---> Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================
Package Arch Version Repository Size
===============================================================================
Installing:
oracle-validated i386 1.0.0-22.el5 cd 15 k
Installing for dependencies:
compat-db i386 4.2.52-5.1 cd 1.7 M
libXp i386 1.0.0-8.1.el5 cd 22 k
libaio-devel i386 0.3.106-5 cd 12 k
unixODBC i386 2.2.11-7.1 cd 830 k
unixODBC-devel i386 2.2.11-7.1 cd 743 k
Transaction Summary
===============================================================================
Install 6 Package(s)
Upgrade 0 Package(s)
Total download size: 3.3 M
Is this ok [y/N]: y
Downloading Packages:
Total 165 MB/s | 3.3 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : unixODBC 1/6
Installing : unixODBC-devel 2/6
Installing : libaio-devel 3/6
Installing : libXp 4/6
Installing : compat-db 5/6
Installing : oracle-validated 6/6
Installed:
oracle-validated.i386 0:1.0.0-22.el5
Dependency Installed:
compat-db.i386 0:4.2.52-5.1 libXp.i386 0:1.0.0-8.1.el5
libaio-devel.i386 0:0.3.106-5 unixODBC.i386 0:2.2.11-7.1
unixODBC-devel.i386 0:2.2.11-7.1
Complete!
[root@oracle yum.repos.d]#
Questions:
Before going to install oracle 10g on OEL 5.5 ,
Should i update following packages separately using yum or leave it ??
Oracle 10.2 for OEL 5 32bits
binutils-2.17.50.0.6-2.el5
compat-libstdc++-33-3.2.3-61
elfutils-libelf-0.125-3.el5
elfutils-libelf-devel-0.125
gcc-4.1.1-52
gcc-c++-4.1.1-52
glibc-2.5-12
glibc-common-2.5-12
glibc-devel-2.5-12
glibc-headers-2.5-12
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.1-52
libstdc++-4.1.1
libstdc++-devel-4.1.1-52.e15
make-3.81-1.1
sysstat-7.0.0
unixODBC-2.2.11
unixODBC-devel-2.2.11
>> I tried to update above packages , but getting error >>
[root@oracle yum.repos.d]# yum update binutils-2.17.50.0.6-2.el5
Loaded plugins: security
Skipping security plugin, no data
Setting up Update Process
No Match for argument: binutils-2.17.50.0.6-2.el5
No package binutils-2.17.50.0.6-2.el5 available.
No Packages marked for Update
Thanks in advance ..@ Pradeepcmst
First my sorry for late reply. Still we did NOT start 10g r2 installation on OEL 5.5.
Please have a look ,if we missed anything , kindly forward it.
I have received some warning messages (when executing oracle-validated command ) and separately we did NOT use update command using yum.
Ex
# yum <package_name>
- Is this necessary before issue following command => # yum install oracle-validated.
>> What we did - I am pasting here >>
# cd /etc/yum.repos.d
# vi cd.repo
[cd]
name=CD
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
skip_if_unavailable=True
# wget http://public-yum.oracle.com/public-yum-el5.repo
--2013-10-15 13:04:22-- http://public-yum.oracle.com/public-yum-el5.repo
Resolving public-yum.oracle.com... 124.124.252.19, 124.124.252.16
Connecting to public-yum.oracle.com|124.124.252.19|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4307 (4.2K) [text/plain]
Saving to: `public-yum-el5.repo'
100%[==================================================>] 4,307 --.-K/s in 0s
2013-10-15 13:04:29 (134 MB/s) - `public-yum-el5.repo' saved [4307/4307]
[root@oel5 yum.repos.d]# yum install oracle-validated
Loaded plugins: security
el5_latest | 1.4 kB 00:00
el5_latest/primary | 14 MB 08:27
el5_latest 10433/10433
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package oracle-validated.i386 0:1.1.0-18.el5 set to be updated
--> Processing Dependency: util-linux >= 2.13-0.52.0.1.el5_4.1 for package: oracle-validated
--> Processing Dependency: irqbalance >= 2:0.55-16 for package: oracle-validated
--> Processing Dependency: kernel-uek >= 2.6.32 for package: oracle-validated
--> Processing Dependency: oraclelinux-release for package: oracle-validated
--> Processing Dependency: libaio-devel for package: oracle-validated
--> Processing Dependency: libXp for package: oracle-validated
--> Running transaction check
---> Package irqbalance.i386 2:0.55-17.el5 set to be updated
---> Package kernel-uek.i686 0:2.6.32-400.33.1.el5uek set to be updated
--> Processing Dependency: kernel-firmware = 2.6.32-400.33.1.el5uek for package: kernel-uek
--> Processing Dependency: device-mapper-multipath >= 0.4.9-23.0.1.el5 for package: kernel-uek
--> Processing Dependency: kexec-tools >= 1.102pre-96.1.1.el5_5.2 for package: kernel-uek
--> Processing Dependency: mkinitrd >= 5.1.19.6-75.0.5 for package: kernel-uek
--> Processing Dependency: ql2xxx-firmware for package: kernel-uek
---> Package libXp.i386 0:1.0.0-8.1.el5 set to be updated
---> Package libaio-devel.i386 0:0.3.106-5 set to be updated
---> Package oraclelinux-release.i386 0:5-10.0.2 set to be updated
---> Package util-linux.i386 0:2.13-0.59.0.2.el5_8 set to be updated
--> Running transaction check
---> Package device-mapper-multipath.i386 0:0.4.9-64.0.6.el5 set to be updated
--> Processing Dependency: kpartx = 0.4.9-64.0.6.el5 for package: device-mapper-multipath
--> Processing Dependency: device-mapper-multipath-libs = 0.4.9-64.0.6.el5 for package: device-mapper-multipath
--> Processing Dependency: libmpathpersist.so.0 for package: device-mapper-multipath
--> Processing Dependency: libmultipath.so for package: device-mapper-multipath
---> Package kernel-uek-firmware.noarch 0:2.6.32-400.33.1.el5uek set to be updated
---> Package kexec-tools.i386 0:2.0.3-4.0.4.el5 set to be updated
--> Processing Dependency: mkinitrd = 5.1.19.6-61.0.1 for package: libbdevid-python
---> Package mkinitrd.i386 0:5.1.19.6-81.0.2.el5_10 set to be updated
--> Processing Dependency: nash = 5.1.19.6-81.0.2.el5_10 for package: mkinitrd
--> Processing Dependency: e2fsprogs >= 1.39-36 for package: mkinitrd
--> Processing Dependency: iscsi-initiator-utils for package: mkinitrd
---> Package ql2xxx-firmware.noarch 0:1.01.01-0.5.el5 set to be updated
--> Running transaction check
---> Package device-mapper-multipath-libs.i386 0:0.4.9-64.0.6.el5 set to be updated
---> Package e2fsprogs.i386 0:1.39-36.0.1.el5_9 set to be updated
--> Processing Dependency: e2fsprogs-libs = 1.39-36.0.1.el5_9 for package: e2fsprogs
---> Package iscsi-initiator-utils.i386 0:6.2.0.872-16.0.1.el5 set to be updated
---> Package kpartx.i386 0:0.4.9-64.0.6.el5 set to be updated
---> Package libbdevid-python.i386 0:5.1.19.6-81.0.2.el5_10 set to be updated
---> Package nash.i386 0:5.1.19.6-81.0.2.el5_10 set to be updated
--> Running transaction check
--> Processing Dependency: e2fsprogs-libs = 1.39-23.el5 for package: e2fsprogs-devel
---> Package e2fsprogs-libs.i386 0:1.39-36.0.1.el5_9 set to be updated
--> Running transaction check
---> Package e2fsprogs-devel.i386 0:1.39-36.0.1.el5_9 set to be updated
--> Processing Conflict: kernel-uek conflicts udev < 095-14.27.0.1.el5_7.1
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package udev.i386 0:095-14.29.0.2.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Installing:
oracle-validated i386 1.1.0-18.el5 el5_latest 19 k
Updating:
udev i386 095-14.29.0.2.el5 el5_latest 2.4 M
Installing for dependencies:
device-mapper-multipath-libs i386 0.4.9-64.0.6.el5 el5_latest 197 k
iscsi-initiator-utils i386 6.2.0.872-16.0.1.el5 el5_latest 1.0 M
kernel-uek i686 2.6.32-400.33.1.el5uek el5_latest 24 M
kernel-uek-firmware noarch 2.6.32-400.33.1.el5uek el5_latest 3.8 M
libXp i386 1.0.0-8.1.el5 el5_latest 22 k
libaio-devel i386 0.3.106-5 el5_latest 12 k
oraclelinux-release i386 5-10.0.2 el5_latest 3.0 k
ql2xxx-firmware noarch 1.01.01-0.5.el5 el5_latest 459 k
Updating for dependencies:
device-mapper-multipath i386 0.4.9-64.0.6.el5 el5_latest 122 k
e2fsprogs i386 1.39-36.0.1.el5_9 el5_latest 832 k
e2fsprogs-devel i386 1.39-36.0.1.el5_9 el5_latest 576 k
e2fsprogs-libs i386 1.39-36.0.1.el5_9 el5_latest 120 k
irqbalance i386 2:0.55-17.el5 el5_latest 21 k
kexec-tools i386 2.0.3-4.0.4.el5 el5_latest 507 k
kpartx i386 0.4.9-64.0.6.el5 el5_latest 465 k
libbdevid-python i386 5.1.19.6-81.0.2.el5_10 el5_latest 69 k
mkinitrd i386 5.1.19.6-81.0.2.el5_10 el5_latest 488 k
nash i386 5.1.19.6-81.0.2.el5_10 el5_latest 1.4 M
util-linux i386 2.13-0.59.0.2.el5_8 el5_latest 1.9 M
Transaction Summary
==================================================================================================================
Install 9 Package(s)
Upgrade 12 Package(s)
Total download size: 38 M
Is this ok [y/N]:
Downloading Packages:
(1/21): oraclelinux-release-5-10.0.2.i386.rpm | 3.0 kB 00:00
(2/21): libaio-devel-0.3.106-5.i386.rpm | 12 kB 00:00
(3/21): oracle-validated-1.1.0-18.el5.i386.rpm | 19 kB 00:00
(4/21): irqbalance-0.55-17.el5.i386.rpm | 21 kB 00:00
(5/21): libXp-1.0.0-8.1.el5.i386.rpm | 22 kB 00:00
(6/21): libbdevid-python-5.1.19.6-81.0.2.el5_10.i386.rpm | 69 kB 00:00
(7/21): e2fsprogs-libs-1.39-36.0.1.el5_9.i386.rpm | 120 kB 00:05
(8/21): device-mapper-multipath-0.4.9-64.0.6.el5.i386.rpm | 122 kB 00:05
(9/21): device-mapper-multipath-libs-0.4.9-64.0.6.el5.i386.rpm | 197 kB 00:13
(10/21): ql2xxx-firmware-1.01.01-0.5.el5.noarch.rpm | 459 kB 00:30
(11/21): kpartx-0.4.9-64.0.6.el5.i386.rpm | 465 kB 00:39
(12/21): mkinitrd-5.1.19.6-81.0.2.el5_10.i386.rpm | 488 kB 00:26
(13/21): kexec-tools-2.0.3-4.0.4.el5.i386.rpm | 507 kB 00:14
(14/21): e2fsprogs-devel-1.39-36.0.1.el5_9.i386.rpm | 576 kB 00:16
(15/21): e2fsprogs-1.39-36.0.1.el5_9.i386.rpm | 832 kB 00:25
(16/21): iscsi-initiator-utils-6.2.0.872-16.0.1.el5.i386.rpm | 1.0 MB 00:30
(17/21): nash-5.1.19.6-81.0.2.el5_10.i386.rpm | 1.4 MB 00:42
(18/21): util-linux-2.13-0.59.0.2.el5_8.i386.rpm | 1.9 MB 02:10
(19/21): udev-095-14.29.0.2.el5.i386.rpm | 2.4 MB 02:43
(20/21): kernel-uek-firmware-2.6.32-400.33.1.el5uek.noarch.rpm | 3.8 MB 04:51
21/21): kernel-uek-2.6.32-400.33.1.el5 (97%) 96% [===========================- ] 13 kB/s | 23 MB 01:09 ETA
(21/21): kernel-uek-2.6.32-400.33.1.el5uek.i686.rpm | 24 MB 28:57
Total 15 kB/s | 38 MB 43:58
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1e5e0159
el5_latest/gpgkey | 1.4 kB 00:00
Importing GPG key 0x1E5E0159 "Oracle OSS group (Open Source Software group) <[email protected]>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : e2fsprogs-libs 1/33
error: failed to stat /mnt/hgfs: No such file or directory
Updating : e2fsprogs 2/33
Updating : udev 3/33
Updating : util-linux 4/33
warning: /etc/pam.d/login saved as /etc/pam.d/login.rpmsave
Updating : kpartx 5/33
Installing : libXp 6/33
Updating : kexec-tools 7/33
Installing : iscsi-initiator-utils 8/33
Updating : irqbalance 9/33
Installing : device-mapper-multipath-libs 10/33
Updating : device-mapper-multipath 11/33
Installing : oraclelinux-release 12/33
Installing : ql2xxx-firmware 13/33
Updating : nash 14/33
Installing : kernel-uek-firmware 15/33
Installing : libaio-devel 16/33
Updating : e2fsprogs-devel 17/33
Updating : mkinitrd 18/33
Installing : kernel-uek 19/33
Updating : libbdevid-python 20/33
Installing : oracle-validated 21/33
Cleanup : e2fsprogs 22/33
Cleanup : mkinitrd 23/33
Cleanup : irqbalance 24/33
Cleanup : e2fsprogs-libs 25/33
Cleanup : device-mapper-multipath 26/33
Cleanup : libbdevid-python 27/33
Cleanup : udev 28/33
Cleanup : e2fsprogs-devel 29/33
Cleanup : kpartx 30/33
Cleanup : nash 31/33
Cleanup : kexec-tools 32/33
Cleanup : util-linux 33/33
Installed:
oracle-validated.i386 0:1.1.0-18.el5
Dependency Installed:
device-mapper-multipath-libs.i386 0:0.4.9-64.0.6.el5 iscsi-initiator-utils.i386 0:6.2.0.872-16.0.1.el5
kernel-uek.i686 0:2.6.32-400.33.1.el5uek kernel-uek-firmware.noarch 0:2.6.32-400.33.1.el5uek
libXp.i386 0:1.0.0-8.1.el5 libaio-devel.i386 0:0.3.106-5
oraclelinux-release.i386 0:5-10.0.2 ql2xxx-firmware.noarch 0:1.01.01-0.5.el5
Updated:
udev.i386 0:095-14.29.0.2.el5
Dependency Updated:
device-mapper-multipath.i386 0:0.4.9-64.0.6.el5 e2fsprogs.i386 0:1.39-36.0.1.el5_9
e2fsprogs-devel.i386 0:1.39-36.0.1.el5_9 e2fsprogs-libs.i386 0:1.39-36.0.1.el5_9
irqbalance.i386 2:0.55-17.el5 kexec-tools.i386 0:2.0.3-4.0.4.el5
kpartx.i386 0:0.4.9-64.0.6.el5 libbdevid-python.i386 0:5.1.19.6-81.0.2.el5_10
mkinitrd.i386 0:5.1.19.6-81.0.2.el5_10 nash.i386 0:5.1.19.6-81.0.2.el5_10
util-linux.i386 0:2.13-0.59.0.2.el5_8
Complete!
[root@oel5 yum.repos.d]#
[root@oel5 yum.repos.d]# rpm -qa |grep oracle-valid
oracle-validated-1.1.0-18.el5
Thnaks .. -
When should I update to iOS4?
My iPod Touch (8GB 2 generation) crashed after upgrading to iOS4. Apple replaced it with an identical model (with an older version 2.2.1) for free and was instructed to not upgrade to iOS4 until they have fixed some of the bugs. The problem is that 28 of my Apps will not work with the older version of which ten of them I use on a daily basis. As of now, I find my replacement totally useless until I perform an upgrade. When should I update? Please advise. Thanks!
download a 3.1.3 version from: http://www.felixbruns.de/iPod/firmware/
Keep the file on your desktop for now.
Go on itunes, connect Device
PRESS SHIFT THEN PRESS THE UPDATE BUTTON ABOVE THE RESTORE
It will tell you to browse a file, a firmware file. Locate it to where you saved it. Wait till it says "Downloading" then "updating" Then you Device should turn off, and start updating.
Good Luck, hope it works. -
When should you use dmg vs copy or duplicate
When should you use dmg vs copy or duplicate
Your answers are very helpful. They encourage me to ask the more complete and complicated question: we have a web site that was developed using iWeb several years ago. iWeb support was dropped by Apple some years ago and we moved the site to GoDaddy, but still using the iWeb software. Now we have only 1 computer which can continue to edit, add to and support our web site. Our aim is to copy as much of our material as we can so that when this computer finally dies we can salvage as much of our material as we can to resurrect our site once more. GoDaddy says they cannot help us.
Here is my wife's web site:
www.adajillschneider.com
Thanks for all your time and help.
Ron Schneider -
What is the difference between saving to "Documents" and "Macintosh HD" and when should you use each one?
When you save to the folder with the little house icon, the file is placed at
/Users/your_user_name/
You would really have to go out of my way to save at:
(the shortcut for the Boot Drive, regardless of its name).
I am not sure how you decided that Time Machine is not saving your files. The default is for Time Machine to do incremental Backups of everything on all attached drives, except for certain temporary information in Cache files. If you have four Users, Time Machine will back them all up.
Looking at the raw Time Machine backups will tell you very little, because it does lots of its work with Hard Links, and because it does incremental backups, so only files that changed since the last Backup are saved at thet cycle. The way to determine whether Time Machine is saving things is to display the window you care about in the Finder, then invoke the "Star wars"/ "Back, back, back in time" Interface. -
When should you use widgets rather than advanced actions?
HI,
We have a few very complicated projects using lots of advanced actions and widgets that simulate laboratories.
1/ Should you always use advanced actions if it possible OR
2/ Should you use widgets when you reach a certain level of complexity ?
Are there any differences in the field in terms of reliability ?
regards RenovatorHi Renovator
I'll take on the last thing you asked about. Differences in terms of reliability.
Unfortunately the answer to that one is actually a question.
The question? How long is a piece of string?
Of course the answer to that is "it depends". Likewise, whether an Advanced Action or a Widget is more "reliable" depends on how the code was implemented. Folks can create Advanced Actions that don't work as they think they will. The same can be true of widgets. So I'd say that they are on equal playing ground when it comes to "reliability".
Cheers... Rick -
Switch 11 when will you update to 2015 version Adobe says is there?
Running Switch 11 with Core i3.When I load Adobe illustrator it tells me to update my video driver.It appears there is a new Intel Driver.. but Intell won't update over your customer driver version. SO.. when will you have an updated version based on the fixed Intel driver https://helpx.adobe.com/illustrator/kb/gpu-performance-preview-improvements.html#ts
Interesting:If I tried to have Windows update the driver, it would say I had the latest driver.If I tried to use Intel's Utility it said I needed to used the custom driver from the makerAcer support utility said I had the most recent driver However:Yesterday I removed the driver (toubleshooting screen brightness not working after sleep sometimes), but didn't delete it. However when I restarted the machine and in Device Mananager told Windows to UPDATE the driver in Device Manager it said "Downloading ...." vs just installing what was already on the machine. Guess What: Adobe Illustrator now uses the GPU for enhancements and doesn't pop the error. Feels like there may have been a update someplace, but the version number was not incremented right so Acer Tools etc. said I had the current driver but Windows found a newer one, only after I removed the old one and had the machine on the default Windows Display Driver when I asked for the updated. Problem is fixed Thanks
-
OWB trying to create merge when should be update statement
Hi there
Have a problem whereby when set target update type of table to update, OWB trying to create a merge and failing with message merge sttament cannot be generated because column <column_name> is used for both matching and update.
A matching column cannot be updated in a merge statement.
We are trying to only update certain rows in a target table.
What is the best way to do this in a mapping in normal sql we
would do
update table
set cola = 12, col b=14
where cola = 10
Many ThanksHi there
Thanks for this. I get your idea of doing filter on target at start.
However in our situation I'm not certain how to achieve what we require, being new to OWB.
We have a source staging table with various tranasctions (updates, inserts and deletes all flagged with a timestamp. We need to process these as follows:
1) Inserts become inserts on the target table
2) Deletes become updates on target table, expiration date set to timestamp of record on source table. Here we need to limit the update to only update open record thus not changing history for the code concerned. Open record identified as expiration date set to '31/12/4000'
3) Updates become Updates, setting expiration date on current record to timestamp of staging table record, again only updating currently open record which is identified by expiration date set to '31/12/4000'.
What I thought of doing would be mapping
starting with target table going into a filter to get open records '31/12/4000'. This with joiner operator to staging table and the results of joiner to target table load type set to update. This would handle deletes and the update part of updates.
However this wouldn't take care of the inserts and the second part of updates, i.e. the requirement to insert new record to cater for the update.
Thought about two mappings, one with target type of update as above and another for inserts, but problem would be need to process all records in staging table in right order, e.g in one day could have insert then update. Couldn't run insert mapping first as update mapping would then run and close off the inserted record.
Basically looking for advice on best way to achieve the above.
Many Thanks -
How often should you update your ipod?
How often is it recommended to update your ipod?
Well usually ipod touches will give you the option when itunes detects a new version and you plug it into your computer. its always nice to stay up to date
-
I just got Adobe and wondered if it updates itself or do I have to remember to do it?
You can set your update preferences [Edit | Preferences | Updates].
-
I recently installed Flash Pro CC a week ago and I cannot find the bone tool to animate the characters. Without the bone tool, this application will be useless to me. And it's really hard to install the extensions which let us use the bone tool, all the extensions I've tried is absolutely ineffective.
Can you "possibly" update the Flash Pro CC so there "will" be a bone tool to use and animate the character?
If you have anything to say, it must be relevant to this question, and I don't allow any irrelevant or useless comments which do not relate to the question I am trying to ask.The Flash developers have stated they will bring an improved bone system and motion graph editor back in an upcoming update for Flash. That was more than four months ago, though. Perhaps this year?
In the meantime you could animate your characters in Anime Studio Pro (which has an excellent bones system and full graph editor), and import back into Flash. -
When can you update your iPod 4 to the iOS 7
Please answer!!
It's a matter of hardware. The iPod 4 doesn't have it. ios 7 requires 512mg, only the iPod touch 5 has it. Sorry.
-
When should be package invalidated?
Hello guys,
I would need again some help...
My question is: When exactly should be package invalidated?
Consider following situation:
We have two packages, one contains constants (in its specification), the other is reading these constants. Package is reading these constants in package body and package spec as well. Now, when I add a new constant to the first package and recompile it, should this invalidate the other package??? The new added constant is not used in the other package.
In reality, we have a Constant package, containing all constants in its specification. One package (test_pkg) is reading some constant let say form line 100. Now we add new constant let say to line 50. When we recompile the constant package, planty of packages get invalidated because they are reading from it. We recompile all invalid packages. However test_pkg is not invalidated!!! Now if we run the code from test_pkg, it is still reading the constant from line 100, so it is reading it from wrong place and the constant has wrong value! The only thing what help is to recompile the test_pkg.
So it looks like the reference to Constant package wasn't updated.
Why isn't test_pkg invalidated???
Oracle version:
SELECT * FROM V$VERSION;
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
"CORE 11.2.0.1.0 Production"
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - ProductionFrom my standard library of responses...
Packages tend to fail because of their "package state". A package has a "state" when it contains package level variables/constants etc. and the package is called. Upon first calling the package, the "state" is created in memory to hold the values of those variables etc. If an object that the package depends upon e.g. a table is altered in some way e.g. dropped and recreated, then because of the database dependencies, the package takes on an INVALID status. When you next make a call to the package, Oracle looks at the status and sees that it is invalid, then determines that the package has a "state". Because something has altered that the package depended upon, the state is taken as being out of date and is discarded, thus causing the "Package state has been discarded" error message.
If a package does not have package level variables etc. i.e. the "state" then, taking the same example above, the package takes on an INVALID status, but when you next make a call to the package, Oracle sees it as Invalid, but knows that there is no "state" attached to it, and so is able to recompile the package automatically and then carry on execution without causing any error messages. The only exception here is if the thing that the package was dependant on has changes in such a way that the package cannot compile, in which case you'll get an Invalid package type of error.
And if you want to know how to prevent discarded package states....
Move all constants and variables into a stand-alone package spec and reference those from your initial package. Thus when the status of your original package is invlidated for whatever reason, it has no package state and can be recompiled automatically, however the package containing the vars/const will not become invalidated as it has no dependencies, so the state that is in memory for that package will remain and can continue to be used.
As for having package level cursors, you'll need to make these local to the procedures/functions using them as you won't be able to reference cursors across packages like that (not sure about using REF CURSORS though.... there's one for me to investigate!)
This first example shows the package state being invalided by the addition of a new column on the table, and causing it to give a "Package state discarded" error...
SQL> set serveroutput on
SQL>
SQL> create table dependonme (x number)
2 /
Table created.
SQL>
SQL> insert into dependonme values (5)
2 /
1 row created.
SQL>
SQL> create or replace package mypkg is
2 procedure myproc;
3 end mypkg;
4 /
Package created.
SQL>
SQL> create or replace package body mypkg is
2 v_statevar number := 5; -- this means my package has a state
3
4 procedure myproc is
5 myval number;
6 begin
7 select x
8 into myval
9 from dependonme;
10
11 myval := myval * v_statevar;
12 DBMS_OUTPUT.PUT_LINE('My Result is: '||myval);
13 end;
14 end mypkg;
15 /
Package body created.
SQL>
SQL> exec mypkg.myproc
My Result is: 25
PL/SQL procedure successfully completed.
SQL>
SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
2 /
OBJECT_NAME
OBJECT_TYPE STATUS
MYPKG
PACKAGE VALID
MYPKG
PACKAGE BODY VALID
SQL>
SQL>
SQL> alter table dependonme add (y number)
2 /
Table altered.
SQL>
SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
2 /
OBJECT_NAME
OBJECT_TYPE STATUS
MYPKG
PACKAGE VALID
MYPKG
PACKAGE BODY INVALID
SQL>
SQL> exec mypkg.myproc
BEGIN mypkg.myproc; END;
ERROR at line 1:
ORA-04068: existing state of packages has been discarded
ORA-04061: existing state of package body "SCOTT.MYPKG" has been invalidated
ORA-06508: PL/SQL: could not find program unit being called: "SCOTT.MYPKG"
ORA-06512: at line 1
SQL>
SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
2 /
OBJECT_NAME
OBJECT_TYPE STATUS
MYPKG
PACKAGE VALID
MYPKG
PACKAGE BODY INVALID
SQL>
SQL> exec mypkg.myproc
PL/SQL procedure successfully completed.
SQL>
SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
2 /
OBJECT_NAME
OBJECT_TYPE STATUS
MYPKG
PACKAGE VALID
MYPKG
PACKAGE BODY VALIDAnd this next example shows how having the package variables in their own package spec, allows the package to automatically recompile when it is called even though it became invalidated by the action of adding a column to the table.
SQL> drop table dependonme
2 /
Table dropped.
SQL>
SQL> drop package mypkg
2 /
Package dropped.
SQL>
SQL> set serveroutput on
SQL>
SQL> create table dependonme (x number)
2 /
Table created.
SQL>
SQL> insert into dependonme values (5)
2 /
1 row created.
SQL>
SQL> create or replace package mypkg is
2 procedure myproc;
3 end mypkg;
4 /
Package created.
SQL>
SQL> create or replace package mypkg_state is
2 v_statevar number := 5; -- package state in seperate package spec
3 end mypkg_state;
4 /
Package created.
SQL>
SQL> create or replace package body mypkg is
2 -- this package has no state area
3
4 procedure myproc is
5 myval number;
6 begin
7 select x
8 into myval
9 from dependonme;
10
11 myval := myval * mypkg_state.v_statevar; -- note: references the mypkg_state package
12 DBMS_OUTPUT.PUT_LINE('My Result is: '||myval);
13 end;
14 end mypkg;
15 /
Package body created.
SQL>
SQL> exec mypkg.myproc
My Result is: 25
PL/SQL procedure successfully completed.
SQL>
SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
2 /
OBJECT_NAME
OBJECT_TYPE STATUS
MYPKG
PACKAGE VALID
MYPKG
PACKAGE BODY VALID
SQL>
SQL> alter table dependonme add (y number)
2 /
Table altered.
SQL>
SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
2 /
OBJECT_NAME
OBJECT_TYPE STATUS
MYPKG
PACKAGE VALID
MYPKG
PACKAGE BODY INVALID
SQL>
SQL> exec mypkg.myproc
My Result is: 25
PL/SQL procedure successfully completed. -
Why do I often have to remove a foreign packages when it's updated?
Why do I often have to remove a foreign package when it's updated in order to make it work after an update?
So many questions in AUR that something is updated and it's not working - "well just rebuild it". Meaning that you should first "-Rdd" it and then "-S" it again. If you just "yaourt -Syu --aur" - some might not work after this. So why can't those programs work after an update without deleting them before?Trilby wrote:
Do you have an example?
https://aur.archlinux.org/packages.php?ID=37087 ("Just rebuild it.")
https://aur.archlinux.org/packages.php?ID=37779 ("recompiling perl-xml-fast fixes it")
https://aur.archlinux.org/packages.php?ID=24443 ("Same was happening to me, reinstalling perl-gtk2-imageview and perl-gtk2-unique solved the problem. Also had to reinstall perl-goo-canvas for the editing functionality.")
Works for me that same way.
Trilby wrote:Perhaps you are referring to development builds (git,cvs,bzr,etc).
Not from what I know.
Last edited by Mr. Alex (2012-06-10 21:00:22) -
iPod touch 4 gives message "Cannot Download" "there is not enough available storage to download...You can manage your storage in settings." when trying to update or install one of the apps, but not other apps. I have more space available than needed for the app. What do I need to do to fix this problem? Do I need to completely reset this device as new and, if so, how should I do that?
You need to delete some item (apps, music, photos etc) from the iPod,.However, sometime files get corrupt. To determine that connect the iPod to your computer and click on the iPod under Devices in iTunes. How much storage is used by the "other" category. If over 1 1/2 GB that indicates corrupted files.
To get the "other" down to normal value you need to restore your iPod usually restoring from backup works but sometimes restoring to factory settings.new iPod is required./
Maybe you are looking for
-
Freeze, freeze, freeze HELP
My cursor moves but doesn't affect anything. I click on the icons and nothing happens, i can't gtet anything to work. I've restarted a few times, but still nothing. Anybody???? Help??????
-
Feature ANSAL --> ASAL (10 country grp) --> CSAL (02 Switerzland) ANSAL is doing Indirect valuation. Problem is, If I check the emp. salary in PA20, IT0008. The annual salary is visible. But for the same record in PA0008 the a
-
Leopard Server on G4 XServe?
I run a lab of 31 Intel iMacs (plus a number of assorted machines around the school) using a G4 1.33 GHz XServe with 1.25 GB of RAM. The lab iMacs and the server are both currently running 10.4.11. I have purchased an unlimited license of Leopard ser
-
Just bought myself an apple TV 160Gb - very disapointed. Have not been able to make it work apart from downloading movie trailers and You Tube from the net. I continually get the "check any firewall software has been set to allow communication port 3
-
Alternative BOM in Production Order
Hi PP Experts, I have a small issue which is like this: I have two Alternative BOM for Material "A". When I create production order it displays both Alt Bom for selection. When I select the second Alt BOM, in production order it still reads the First