How to detect packages whether it can be replaced?

Hi,
Sometimes when writing my own application patch to update packages, but somehow discovered the package cannot be overwritten when my patch is already running half way.
Is there anyway to detect or force replace to my packages? or other best practices are welcome.
Thanks.

Why can't the package be overwritten? What is the error?
I'm guessing that you are getiting an ORA-00054 error indicating that the package is locked because another session is using it, but you may be referring to a few other errors. If that's the case, the simplest option would be to ensure that other users are not using your application while you're trying to patch it.
Justin

Similar Messages

  • I currently run the Design and Web Premium CS6 on a first generation MacBook Air and want to buy a new MacBook Pro. How do I know whether I can install my Adobe programs onto the new computer? Because I know there is some kind of limit.

    I currently run the Design and Web Premium CS6 on a first generation MacBook Air and want to buy a new MacBook Pro. How do I know whether I can install my Adobe programs onto the new computer? Because I know there is some kind of limit.
    Also, I had to install the software twice on my same computer before because I had to reboot the computer. I don't know if this affects the limit.

    You are allowed to have two activated installations so there should not be a problem having working installations on the two machines.  If by chance you have somehow tied up two activations for the one machine you can have Adobe support help resolve that thru chat.
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • The battery of my Ipod doesnt charge, so how much it cost and where can I replace it??

    the battery of my Ipod doesnt charge, so how much it cost and where can I replace it???

    You can take it to an Apple store...I think its costly though, I was told maybe a 100 bucks...not sure though. How long have you had the iTouch before the battery showed signs of failure, what Generation?
    This is something that has been having me wonder about battery life.

  • How big a internal hard drive can I replace in my macbook pro 160/sd. I had a 750 in but it died. Can I put a 1TB?

    I have a MacBook Pro 13.3 inch from 2010. It came with 160/SD. I replaced it 3 years ago with a 750GB Seagate which just died per Apple genius. BUt, need to replace it now. Can I replace with a 1TB or only another 750GB?

    it will hold even a 12.5mm thick 1.5TB HD
    most 1TB drives are 9.5mm thick
    It will NOT however hold a 15.2mm HD.
      Typical bare 2.5" hard drives. 7mm left (250-500gig), 9.5mm right (500gig-1TB), and 15.2mm 4 platter drive at back (2TB)

  • How can i add videos,movies and tv shows episodes to my ipod nano?I want to know whether i can directly add them through my pc or not without downloading them from i tunes store?

    how can i add videos,movies and tv shows episodes to my ipod nano?I want to know whether i can directly add them through my pc or not without downloading them from i tunes store?

    Yes, you can add your own videos to iTunes, then sync them to your nano, subject to supported max resolution limit and file type.  The specs for the 7th gen nano says (I don't know which nano model you have), Video Format Support
    "H.264 video: 720 by 576 pixels, 30 frames per second; Baseline, Main, and High-Profile level 3.0 with AAC-LC audio up to 256 Kbps; 48kHz; stereo audio in .m4v, .mp4, and .mov file formats
    MPEG-4 video: up to 2.5 Mbps, 720 by 576 pixels, 30 frames per second; Simple Profile with AAC-LC audio up to 256 Kbps; 48kHz; stereo audio in .m4v, .mp4, and .mov file formats"
    http://www.apple.com/ipod-nano/specs.html
    (earlier nanos have lower max resolution limits)
    So, "HD" video is too high resolution, so iTunes will not sync such videos to the iPod (although they play in iTunes).  If you are asking how to set up iTunes to sync videos in general (regardless of source), please post back.

  • How to detect whether browser's java script  disabled or not from server

    How to detect whether browser's java script disabled or not from server side

    I would use a hidden parameter created by a javascript. if this is null, javascript is disabled...

  • How to find out whether my Iphone 3Gs is officlially unlocked ( factory unlocked ) or "made" unlocked ? Can I upgrade its OS to OS 5 even if my phone is "made" unlocked ? how to up gared its OS ? are there any better ways to do it ?

    How to find out whether my Iphone 3Gs (OS version 3.1.3) is officlially unlocked ( factory unlocked ) or "made" unlocked ? Can I upgrade its current OS 3.1.3 to OS 5 even if my phone is not officlially unlocked ? how to up grade its OS ? what are there any better ways to do it ?
    Thanks,
    PRANAJ

    Depends wher you obtained the iPhone from and it's original supplier
    If the iPhone is an authorised unlock ( approved by the carrier) or was
    purchased from Apple as an unlocked iPhone  updating the iOS
    will have no effect on the iPhone and it's lock status
    HOWEVER if the software has been tampered with to remove the lock,
    updating the iOs will lock the iPhone back to the original carrier who holds the lock
    To find out the status of your iPhone  you could call Apple support
    and they may tell you if the iPhone is locked or not and if it is which carrier

  • HT4061 I have iphone3GS and its unable to connect to cellular network. I am not sure whether it can be resolved? If so how much it would cost me?

    One of my friend purchased Apple Iphone 3GS an year back. But due to various reasons, he did not use the phone. But when he recently tried using it, Its unable to detect the cellular network.
    I see that the  product warranty period is over and now not sure whether it can be resolved? If it can be, guess, it would cost me more. Is there any help someone can provide me in this issue to have it resolved?

    Is the phone activated?  Tell your friend to contact the cell provider.

  • How to find out whether a program is running in Hyper-V virtual machine or not?

    If I want to make a program which only running in Hyper-V virtual machine, how can I find out whether
    the program is running in Hyper-V  virtual machine or not?

    https://gallery.technet.microsoft.com/scriptcenter/Determine-if-a-computer-is-cdd20473
    http://social.technet.microsoft.com/wiki/contents/articles/942.hyper-v-how-to-detect-if-a-computer-is-a-vm-using-script.aspx
    http://www.grouppolicy.biz/2014/01/how-to-target-group-policy-to-virtual-computers/
    Mike Crowley | MVP
    My Blog --
    Baseline Technologies

  • How to detect color pages in a PDF?

    I am using a C++ Acrobat plug-in do read/edit a PDF file.
    I need to get the total number of pages in the PDF as well as the page numbers of color pages.
    So far I have been able to get the total number of pages using PDDocGetNumPages() without any trouble.
    However, I cant seem to find an API that lets me know whether a particular page is color or not. Is there a way to do this?
    Thanks in advance!

    But what if there is RGB data that means black or gray (R == G == B), does that mean black or RGB?
    There is some sample code in the SDK for iterating over the content in the PDF, and then you can get the colorspace and the color of each object.
    But you really need to do some background research on colors & colorspaces to properly achieve this goal.
    From: Sachintha81 <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 8 Feb 2012 16:57:10 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How to detect color pages in a PDF?
    Re: How to detect color pages in a PDF?
    created by Sachintha81<http://forums.adobe.com/people/Sachintha81> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4194889#4194889

  • ANSWER: HOW TO DETECT Java Plugin from JavaScript

    I created a new topic because the questions about
    how to detect Java Plugin in browsers are scattered
    thoughout this forum.
    Basically you need to employ two approaches for IE and NS.
    In IE you need to try to instantiate a small applet
    (not your production applet) in order to see if browser
    can do it. if the browser can do it, you can make a
    call applet from JavaScript in order to find version of
    JRE (as well as a host of other things).
    In NS you can write a simple JavaScript which will
    interrogate the browser for all plugins installed. Then
    ypu can make a desicion whether to pass execution to
    the next(or generated) page which hosts your applet,
    or ask the user to download/install a plugin.
    I ecourage everybody to host a plugin on your site
    rather leave default link to it which is generated by
    html converter.
    In order to run sample,
    Prerequisites:
    Java Plugin 1.3.
    If you have a different version of plugin,
    substitute hardcoded plugin version in JavaScript for
    value that you have.
    1. compile java file
    2. put class file in the same directory with html file
    3. load html file into the browser.
    4. press "Check Java Plugin.." button
    5. see it work
    6. examine code
    7. uninstall plugin
    8. repeat steps 1 - 4
    9. see it work
    10. install plugin.
    Sample code follows:
    **********************HTML FILE BEGIN***********
    <HTML>
    <HEAD>
    <!-- Generated by Kawa IDE -->
    <TITLE>Detect Java Runtime</TITLE>
    </HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    var browsername;
    function doNetscape()
    for (i=0; i < navigator.plugins.length; i++)
    for (j = 0; j < navigator.plugins.length; j++)
    if(navigator.plugins[i][j].type == "application/x-java-applet;version=1.3")
    alert("You are running Netscape with Java Plugin 1.3.0 - OK");
    return;
    alert("You are running Netscape\nPlease, install Java Runtime Environment 1.3.0");
    function doMicrosoft()
    var applet = document.myApplet;
    if(applet == null)
    alert("You are running Microsoft Browser.\nPlease, install Java Runtime Environment 1.3.0");
    return;
    var version = applet.getJavaVersion();
    if(version == "1.3.0")
    alert("You are running IE, Java Plugin 1.3.0 installed - OK");
    else
    alert("You are running IE, other plugin installed - mybe OK if later that 1.3.0\nYour version: " + version);
    function getJava()
    var applet = document.myApplet;
    if(applet == null)
    alert("Please, install Java Runtime Environment");
    return;
         alert("JRE Version: " + document.myApplet.getJavaVersion());
    function checkJavaPlugin()
         browsername = navigator.appName;
         if(browsername.indexOf("Netscape")!= -1)
              browsername="NS";
              doNetscape();
         else
              if(browsername.indexOf("Microsoft")!=-1)
                   browsername="MSIE";
                   doMicrosoft();
              else
                   browsername="N/A";
                   alert("Unknown browser: " + browsername);
    </SCRIPT>
    <body>
    <Strong>Check Java Plugin</strong>
    <OBJECT id="myApplet" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
         WIDTH = 1
         HEIGHT = 1 >
         <PARAM NAME = CODE VALUE = "DetectPluginApplet.class" >
         <PARAM NAME="scriptable" VALUE="true" >
         <embed type="application/x-java-applet;version=1.3"
              code = DetectPluginApplet width = 2 height = 2 MAYSCRIPT = "true" >
         </embed>
         </EMBED>
    </object>
    <FORM>
         <INPUT TYPE="button" value="Get Plugin Version in IE" onClick="getJava()">
         <INPUT TYPE="button" value="Check Java Plugin in NS and IE" onClick="javascript:checkJavaPlugin()">
    </FORM>
    </BODY>
    </HTML>
    **********************HTML FILE END***********
    ***************APPLET FILE BEGIN***********
    import java.awt.*;
    public class DetectPluginApplet extends java.applet.Applet
         public void init()
              add(new Label("DetectPluginApplet"));
    public String getJavaVersion()
    return System.getProperty("java.version");
    **************APPLLET FILE END************

    Try following java script, it works on new browsers (NS 4+, IE5+). For IE you have to enable 'ActiveX objects creation' in security options.
    var agt=navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
    && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
    && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    var is_nav4up = (is_nav && (is_major >= 4));
    var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5_5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
    var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.0") !=-1));
    var is_ie5up = (is_ie && (is_major == 4)
    && ( (agt.indexOf("msie 5.0")!=-1)
    || (agt.indexOf("msie 5.5")!=-1)
    || (agt.indexOf("msie 6.0")!=-1) ) );
    var pluginDetected = false;
    var activeXDisabled = false;
    // we can check for plugin existence only when browser is 'is_ie5up' or 'is_nav4up'
    if(is_nav4up) {
    // Refresh 'navigator.plugins' to get newly installed plugins.
    // Use 'navigator.plugins.refresh(false)' to refresh plugins
    // without refreshing open documents (browser windows)
    if(navigator.plugins) {
    navigator.plugins.refresh(false);
    // check for Java plugin in installed plugins
    if(navigator.mimeTypes) {
    for (i=0; i < navigator.mimeTypes.length; i++) {
    if( (navigator.mimeTypes[ i].type != null)
    && (navigator.mimeTypes[ i].type.indexOf(
    "application/x-java-applet;jpi-version=1.3") != -1) ) {
    pluginDetected = true;
    break;
    } else if (is_ie5up) {
    var javaVersion;
    var shell;
    try {
    // Create WSH(WindowsScriptHost) shell, available on Windows only
    shell = new ActiveXObject("WScript.Shell");
    if (shell != null) {
    // Read JRE version from Window Registry
    try {
    javaVersion = shell.regRead("HKEY_LOCAL_MACHINE\\Software\\JavaSoft\\Java Runtime Environment\\CurrentVersion");
    } catch(e) {
    // handle exceptions raised by 'shell.regRead(...)' here
    // so that the outer try-catch block would receive only
    // exceptions raised by 'shell = new ActiveXObject(...)'
    } catch(e) {
    // Creating ActiveX controls thru script is disabled
    // in InternetExplorer security options
    // To enable it:
    // a. Go to the 'Tools --> Internet Options' menu
    // b. Select the 'Security' tab
    // c. Select zone (Internet/Intranet)
    // d. Click the 'Custom Level..' button which will display the
    // 'Security Settings' window.
    // e. Enable the option 'Initialize and script ActiveX controls
    // not marked as safe'
    activeXDisabled = true;
    // Check whether we got required (1.3+) Java Plugin
    if ( (javaVersion != null) && (javaVersion.indexOf("1.3") != -1) ) {
    pluginDetected = true;
    if (pluginDetected) {
    // show applet page
    } else if (confirm("Java Plugin 1.3+ not found, Do you want to download it?")) {
    // show install page
    } else {
    // show error page
    }

  • How No.of packages in delivery updated?

    hi,
    How No.of packages( Field in Header LIKP-ANZPK.) in delivery item overview screen gets updated?
    Based on which calculation its calculating no of packages?
    Everytime its giving rendom figure for nuber of packages.

    Hi,
    This depends on how you pack your delivery items. This field will be updated only when packing functionality is enabled and the items are packed.
    During packing, you can decide whether all your items can be packed under one pack or how many of your items should be packed in each pack. Based on how you do the packing in the delivery, that many equivalent packages will be created. These packages are also called as Handling Units.
    For example, lets say you have 20 delivery items and you do the packing in such a way that 4 items should get into one pack. This will result in 5 packs. This value will be updated in the field you mentioned.
    Also there are complications to this for multilevel packing. For ex as in previous case, you will have 5packs. But if you again mention that 5such packs should be packed in a bigger carton once again, the values will be updated accordingly.
    Hope this helps you to understand the functionality

  • How do i know whether JAVA  is installed or not in my virtual machine .

    Good Morning everyone !
    I am installing oracle 11.2.0.1.0  on oracle Enterprise Linux 5.5
    While trying to create database through tool (dbca), I am getting following error.
    $ dbca
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0x9fcc43e4, pid=9242, tid=3086391504
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_17-b02 mixed mode)
    # Problematic frame:
    # C [libnnz11.so+0x3c3e4]
    # An error report file with more information is saved as hs_err_pid9242.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    Aborted
    I suspect JAVA may be not compatible for my machine.
    How Do I check whether java is installe or not.
    Vmware machine Version is : 9
    $ uname -ir
    2.6.18-194.el5 i386
    $ echo $ORACLE_HOME
    /u01/app/oracle/product/11.2.0/db_1
    $ echo $LD_LIBRARY_PATH
    /u01/app/oracle/product/11.2.0/db_1/lib:/lib:/usr/lib

    @ Srini ,  AsifMuhammad
    My host system is 64  bit
    My guest system is 32 bit
    MY HOST SYSTEM INFORMATION  (
    System Information
    Time of this report: 10/16/2013, 20:44:07
           Machine name: ORACLE-LINUX-PC
       Operating System: Windows 7 Ultimate 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.130801-1533)
               Language: English (Regional Setting: English)
    System Manufacturer: System manufacturer
           System Model: System Product Name
                   BIOS: BIOS Date: 07/05/11 19:20:42 Ver: 08.00.14
              Processor: AMD Phenom(tm) II X4 B60 Processor (3 CPUs), ~3.3GHz
                 Memory: 8192MB RAM
    Available OS Memory: 7936MB RAM
              Page File: 4064MB used, 11803MB available
            Windows Dir: C:\Windows
        DirectX Version: DirectX 11
    DX Setup Parameters: Not found
       User DPI Setting: Using System DPI
    System DPI Setting: 96 DPI (100 percent)
        DWM DPI Scaling: Disabled
         DxDiag Version: 6.01.7601.17514 32bit Unicode
    MY GUEST  ( vmware version 9)  details
    # uname -a
    Linux oel5.linuxserver 2.6.18-194.el5 #1 SMP Mon Mar 29 20:06:41 EDT 2010 i686 athlon i386 GNU/Linux
    Installed package details : For RHEL 5 (32-bit): 
    rpm -Uvih binutils-2*
    rpm -Uvih compat-libstdc++-33*
    rpm -Uvih elfutils-libelf-0*
    rpm -Uvih elfutils-libelf-devel-0*
    rpm -Uvih elfutils-libelf-devel-static-0*
    rpm -Uvih gcc-4*
    rpm -Uvih gcc-c++-4*
    rpm -Uvih glibc-2*`uname -p`*         ---------------------------->  I cannot install this package.
    rpm -Uvih glibc-common-2*
    rpm -Uvih glibc-devel-2*
    rpm -Uvih glibc-headers-2*
    rpm -Uvih kernel-headers-2*
    rpm -Uvih ksh-20*
    rpm -Uvih libaio-0*
    rpm -Uvih libaio-devel-0*
    rpm -Uvih libgcc-4*
    rpm -Uvih libgomp-4*
    rpm -Uvih libstdc++-4*
    rpm -Uvih libstdc++-devel-4*
    rpm -Uvih make-3*
    rpm -Uvih numactl-devel-0*
    rpm -Uvih sysstat-7*
    rpm -Uvih unixODBC-2*
    rpm -Uvih unixODBC-devel-2*
    kernal settings
    # Controls the maximum number of shared memory segments, in pages
    kernel.shmall = 268435456
    net.ipv4.ip_forward = 0
    net.ipv4.conf.default.rp_filter = 1
    net.ipv4.conf.default.accept_source_route = 0
    kernel.sysrq = 1
    kernel.core_uses_pid = 1
    net.ipv4.tcp_syncookies = 1
    kernel.msgmnb = 65536
    kernel.msgmax = 8192
    kernel.shmmax = 4294967295
    kernel.shmall = 1073741824
    fs.file-max = 6815744
    kernel.msgmni = 2878
    kernel.sem = 250 32000 100 142
    kernel.shmmni = 4096
    net.core.rmem_default = 4194304
    net.core.rmem_max = 4194304
    net.core.wmem_default = 262144
    net.core.wmem_max = 1048576
    fs.aio-max-nr = 3145728
    net.ipv4.ip_local_port_range = 9000 65000
    I have followed :  A quick step by step guide for oracle 11g R2 installation on Red Hat Enterprise Linux 5.
    Please have a look and  relply me  , any changes needed.
    Thanks ..

  • How to detect back browser event in javascript?

    How to detect browser event in javascript?
    Not working for me. Since i love mozilla to use.
    Working in IE.
    function HandleBackFunctionality(event)
    if(window.event)
    alert("Browser1");
    if(window.event.clientX < 40 && window.event.clientY < 0)
    alert("Browser back button is clicked...");
    else
    alert("Browser refresh button is clicked...");
    else
    alert("Browser2");
    if(event.currentTarget.performance.navigation.type == 1)
    alert("Browser refresh button is clicked...");
    if(event.currentTarget.performance.navigation.type == 2)
    alert("Browser back button is clicked...");
    }

    Firefox doesn't have a catch-all event object (window.event), but you can create event listeners for the objects of interest. I don't know whether the toolbar is one of those; probably not, since why should web pages be able to see what you are doing on the toolbar??
    If we discard the idea of looking for events outside of the page and focus on what is happening inside the page, have you looked at this:
    https://developer.mozilla.org/en-US/docs/Web/API/Window.onbeforeunload

  • How to detect the number of logical processors?

    Hi,
    How to detect Hyper-Thread Technology, the number of processor cores on a single package, and the number of logical processor?
    What java api can do this?
    Thanks for help!

    Who can help me?

Maybe you are looking for