Patchadd stuck in infinite loop -HELP!!

Hi all,
Iam trying to install some OS patches in SunOS 5.8 machine[sun4u sparc SUNW,Sun-Fire-280R]
But after the process starts, it seems to get stuck in an endless loop. I get the following messages.
Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...
After the second line, the process of installing patch does not seem to end.
I did the install in single mode.
Rebootted the machine and did an fsck. But didnt help. Tried downloading a patch to patch 'patchadd' , but could not install it as well.
I tried debugging the patchadd. Here is a debugging trace.
required utlsa are available
Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...
+ exit_code=0
+ pkgInst=
+ pkgDispList=
+ dryrunFailure=
+ ReqArrCount=0
+ firstTimeThru=yes
+ cd /var/spool/patch/112396-02
+ + pwd
curdir=/var/spool/patch/112396-02
+ typeset -i pkgInsCtr=0
+ newpkglist= SUNWcsr
+ pkgInst= SUNWcsr
+ newpkglist= SUNWcsr SUNWcsu
+ pkgInst= SUNWcsr SUNWcsu
+ pkglist= SUNWcsr SUNWcsu
+ [[ -f SUNWcsr/pkginfo ]]
+ echo inside. . . .
inside. . . .
+ /usr/bin/cp /tmp/patchadd-127541250/response.1250 /tmp/patchadd-127541250/response.1250.1
+ [[ yes == no ]]
+ [[ yes == yes ]]
+ echo first time thru
first time thru
+ [[ no == yes ]]
+ pkgadd -D /tmp/patchadd-127541250/112396-02.1250 -S -n -a /tmp/patchadd-127541250/admin.tmp.1250 -r /tmp/patchadd-127541250/
response.1250.1 -R / -d . SUNWcsr SUNWcsu
+ 1>> /tmp/patchadd-127541250/pkgaddlog.1250 0< /dev/null 2>& 1
It seems like it is getting stuck in the pkgadd command .
Any help on this would be highly appreciated.
Thanks,
Vimalnath. A

HI,
Make sure the patch doesn't exists in the system.
Ski

Similar Messages

  • Iphone stuck in infinite loop, HELP!

    my iphone after resetting all settings through settings>general>reset, is stuck in an infinite loop.
    it turns on, shows the apple logo, then about a minute later the loading symbol appears, after 10mins it quickly flashs black and then starts the loop again, i have left it for over 12 hours, to see if it will fix itself, but it wont.
    i cant get it into dfu or recovery mode, it wont even turn off until it runs out of battery and then repeats its loop. when i charge it it just starts the loop again!
    please i really need help, if i cant resolve this problem, im not going to buy the ipad and the iphone 4g as i planned to do so.
    please could anyone help!

    If you can't get your iPhone into DFU or recovery mode, there is a major problem. You can make an appointment at an Apple store if there is one nearby.
    This is a user to user help forum only, so doubtful if any fellow users will lose any sleep over your threat not to purchase an iPad or the next generation iPhone when released if this problem cannot be resolved. If not, more than likely there is a hardware problem or failure. If a problem arises with your PC that you cannot resolve, are you not going to purchase another PC either?

  • SQL stored procedure Staging.GroomDwStagingData stuck in infinite loop, consuming excessive CPU

    Hello
    I'm hoping that someone here might be able to help or point me in the right direction. Apologies for the long post.
    Just to set the scene, I am a SQL Server DBA and have very limited experience with System Centre so please go easy on me.
    At the company I am currently working they are complaining about very poor performance when running reports (any).
    Quick look at the database server and CPU utilisation being a constant 90-95%, meant that you dont have to be Sherlock Holmes to realise there is a problem. The instance consuming the majority of the CPU is the instance hosting the datawarehouse and in particular
    a stored procedure in the DWStagingAndConfig database called Staging.GroomDwStagingData.
    This stored procedure executes continually for 2 hours performing 500,000,000 reads per execution before "timing out". It is then executed again for another 2 hours etc etc.
    After a bit of diagnosis it seems that the issue is either a bug or that there is something wrong with our data in that a stored procedure is stuck in an infinite loop
    System Center 2012 SP1 CU2 (5.0.7804.1300)
    Diagnosis details
    SQL connection details
    program name = SC DAL--GroomingWriteModule
    set quoted_identifier on
    set arithabort off
    set numeric_roundabort off
    set ansi_warnings on
    set ansi_padding on
    set ansi_nulls on
    set concat_null_yields_null on
    set cursor_close_on_commit off
    set implicit_transactions off
    set language us_english
    set dateformat mdy
    set datefirst 7
    set transaction isolation level read committed
    Store procedures executed
    1. dbo.p_GetDwStagingGroomingConfig (executes immediately)
    2. Staging.GroomDwStagingData (this is the procedure that executes in 2 hours before being cancelled)
    The 1st stored procedure seems to return a table with the "xml" / required parameters to execute Staging.GroomDwStagingData
    Sample xml below (cut right down)
    <Config>
    <Target>
    <ModuleName>TransformActivityDim</ModuleName>
    <WarehouseEntityName>ActivityDim</WarehouseEntityName>
    <RequiredWarehouseEntityName>MTV_System$WorkItem$Activity</RequiredWarehouseEntityName>
    <Watermark>2015-01-30T08:59:14.397</Watermark>
    </Target>
    <Target>
    <ModuleName>TransformActivityDim</ModuleName>
    <WarehouseEntityName>ActivityDim</WarehouseEntityName>
    <RequiredWarehouseEntityName>MTV_System$WorkItem$Activity</RequiredWarehouseEntityName>
    <ManagedTypeViewName>MTV_Microsoft$SystemCenter$Orchestrator$RunbookAutomationActivity</ManagedTypeViewName>
    <Watermark>2015-01-30T08:59:14.397</Watermark>
    </Target>
    </Config>
    If you look carefully you will see that the 1st <target> is missing the ManagedTypeViewName, which when "shredded" by the Staging.GroomDwStagingData returns the following result set
    Example
    DECLARE @Config xml
    DECLARE @GroomingCriteria NVARCHAR(MAX)
    SET @GroomingCriteria = '<Config><Target><ModuleName>TransformActivityDim</ModuleName><WarehouseEntityName>ActivityDim</WarehouseEntityName><RequiredWarehouseEntityName>MTV_System$WorkItem$Activity</RequiredWarehouseEntityName><Watermark>2015-01-30T08:59:14.397</Watermark></Target><Target><ModuleName>TransformActivityDim</ModuleName><WarehouseEntityName>ActivityDim</WarehouseEntityName><RequiredWarehouseEntityName>MTV_System$WorkItem$Activity</RequiredWarehouseEntityName><ManagedTypeViewName>MTV_Microsoft$SystemCenter$Orchestrator$RunbookAutomationActivity</ManagedTypeViewName><Watermark>2015-01-30T08:59:14.397</Watermark></Target></Config>'
    SET @Config = CONVERT(xml, @GroomingCriteria)
    SELECT
    ModuleName = p.value(N'child::ModuleName[1]', N'nvarchar(255)')
    ,WarehouseEntityName = p.value(N'child::WarehouseEntityName[1]', N'nvarchar(255)')
    ,RequiredWarehouseEntityName =p.value(N'child::RequiredWarehouseEntityName[1]', N'nvarchar(255)')
    ,ManagedTypeViewName = p.value(N'child::ManagedTypeViewName[1]', N'nvarchar(255)')
    ,Watermark = p.value(N'child::Watermark[1]', N'datetime')
    FROM @Config.nodes(N'/Config/*') Elem(p)
    /* RESULTS - NOTE THE NULL VALUE FOR ManagedTypeViewName
    ModuleName WarehouseEntityName RequiredWarehouseEntityName ManagedTypeViewName Watermark
    TransformActivityDim ActivityDim MTV_System$WorkItem$Activity NULL 2015-01-30 08:59:14.397
    TransformActivityDim ActivityDim MTV_System$WorkItem$Activity MTV_Microsoft$SystemCenter$Orchestrator$RunbookAutomationActivity 2015-01-30 08:59:14.397
    When the procedure enters the loop to build its dynamic SQL to delete relevant rows from the inbound schema tables it concatenates various options / variables into an executable string. However when adding a NULL value to a string the entire string becomes
    NULL which then gets executed.
    Whilst executing "EXEC(NULL)" would cause SQL to throw an error and be caught, executing the following doesnt
    DECLARE @null_string VARCHAR(100)
    SET @null_string = 'hello world ' + NULL
    EXEC(@null_string)
    SELECT @null_string
    So as it hasnt caused an error the next part of the procedure is to move to the next record and this is why its caught in an infinite loop
    DELETE @items WHERE ManagedTypeViewName = @View
    The value for the variable @View is the ManagedTypeViewName which is NULL, as ANSI_NULLS are set to ON in the connection and not overridded in the procedure then the above statement wont delete anything as it needs to handle NULL values differently (IS NULL),
    so we are now stuck in an infinite loop executing NULL for 2 hours until cancelled.
    I amended the stored procedure and added the following line before the loop statement which had the desired effect and "fixed" the performance issue for the time being
    DELETE @items WHERE ManagedTypeViewName IS NULL
    I also noticed that the following line in dbo.p_GetDwStagingGroomingConfig is commented out (no idea why as no notes in the procedure)
    --AND COALESCE(i.ManagedTypeViewName, j.RelationshipTypeViewName) IS NOT NULL
    There are obviously other ways to mitigate the dynamic SQL string being NULL, there's more than one way to skin a cat and thats not why I am asking this question, but what I am concerned about is that is there a reason that the xml / @GroomingCriteria is incomplete
    and / or that the procedures dont handle potential NULL values.
    I cant find any documentation, KBs, forum posts of anyone else having this issue which somewhat surprises me.
    Would be grateful of any help / advice that anyone can provide or if someone can look at their 2 stored procedures on a later version to see if it has already been fixed. Or is it simply that we have orphaned data, this is the bit that concerns most as I dont
    really want to be deleting / updating data when I have no idea what the knock on effect might be
    Many many thanks
    Andy

    First thing I would do is upgrade to 2012 R2 UR5. If you are running non-US dates you need the UR5 hotfix also.
    Rob Ford scsmnz.net
    Cireson www.cireson.com
    For a free SCSM 2012 Notify Analyst app click
    here

  • Apple TV 1st gen stuck in infinite loop

    Hi
    This has probably been covered a few times but the only answers I could find was from an archived discussion.
    The other day I was given an Apple TV 1st gen, it had not been used for quite some time, and decided to upgrade the software, when I noticed it still had old pictures and music on from the previous user, not wanting to keep these pictures, I decided to reset the machine to factory settings, which it did, but on the restart it was stuck at a loop giving me a code to enter into iTunes, and then resetting and giving me a different code.
    i've tried several resets of the settings, holding menu and - together, but still having no joy.
    Its never been tampered with, but its really annoying me.
    Can anyone help? this is a very old product so figure something might have been done during this time
    Cheers
    Dave

    sounddave,
    I have been in the middle of the same problem for months.
    I think the problem is with the software version that the older 40GB Apple TV's revert to after the factory restore.  Mine reverted to version 1.0, and that is when the loop started happening.  Since when did a factory restore become a factory paper weight creator!
    I read somewhere that the Apple TV looks at an Apple server and the older software doesn't play well with the updated server causing it to keep rebooting.  I'll try to find a link about this if I can find it again.  I remember reading that it happened to a bunch of people with older Apple TV software on a particular day that Apple upgraded their server.
    If you don't let your Apple TV connect to the internet, it will stop the infinite loop, but it also means you can't upgrade your software.  I haven't tried it yet, but it also might be an issue with newer versions of iTunes.
    I tested this by unplugging my router, and the Apple TV stopped looping.
    I tried to fix this before without success, but I am really determined this time.

  • Device Driver stuck in infinite loop

    This propblem maybe only happed 2 times in the frist 6 months of my computer purchase, but the past few months it's been happening more and more untill it happens every day, or just about anytime I play a video game.
    The exact error message is "The device driver got stuck in and infinite loop, this usually indicates a problem with the device itself or the device driver programming the hardware incorrectly"
    The specs of my computer are
    Windows Vista(Home Premium)
    Gateway Fx6800-01e
    Intel(R) Core(TM) i7 CPU  920 @ 2.67GHz   2.67GHz
    3.00 GB Memory
    64-bit Operating System

    Kindly try to boot the system into Safe mode and then uninstall the display driver.
    After this you should able too boot the system into normal mode. Download the latest driver from lenovo website
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/7ld152ww.exe
    Best Regards,
    Tanuj
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution".! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How to install firefox, when trying says previous version detected must reboot. Stuck in infinite loop

    Trying to install newly downloaded firefox (had previously removed about a month ago through programs uninstall), however when I try to run the install, it says a previous version is detected, and the system must reboot. System reboots, but install never happens, I go to run the download again, and it appears I'm stuck in an infinite loop. I can't get latest version firefox to install

    I succeeded in installing Firefox after getting this message.
    I went to add/remove programs to verify that Firefox wasn't on the list, then I went to the program files directory and deleted the Mozilla/Firefox directory that was left over from the uninstall.
    I attempted to reinstall Firefox and, voila, it installed with no issues.
    I know it can be dangerous to delete a program directory, but if you have properly uninstalled the program itself and it isn't in the add/remove list (but still exists in the program directory), deleting the parent directory for the program should affect system performance.
    I have done this dozens of times over the years and never had a problem (I have NEVER deleted a system directory though. That would be a BAD idea).
    I hope this helps.
    /CDNVIKING

  • UDP client stuck in infinite loop

    public static void main(String args[]) throws Exception
          BufferedReader inFromUser= new BufferedReader(new   InputStreamReader(System.in));
          DatagramSocket clientSocket= new DatagramSocket();
          InetAddress IPAddress = InetAddress.getLocalHost();
          byte[] sendData = new byte[1024];
          byte[] receiveData = new byte[1024];
          String sentence = "";
          boolean quit = true;
               while(quit == true);
               String initiateConntact = "hi there";
               sendData= initiateConntact.getBytes();
               DatagramPacket sendPacket= new DatagramPacket(sendData, sendData.length, IPAddress, 9876);
               clientSocket.send(sendPacket);
               DatagramPacket receivePacket= new DatagramPacket(receiveData, receiveData.length);
               clientSocket.receive(receivePacket);
               String modifiedSentence= new String(receivePacket.getData());
               InetAddress getIPFromServer = receivePacket.getAddress();
               System.out.println("The server is located at : " + getIPFromServer);
               sentence = inFromUser.readLine();
               System.out.println("From Server:" + modifiedSentence);
                  if(sentence.equals("bye"));
                     quit = false;
                             clientSocket.close();
          }I am just courious why this pice of code gets stuck in an infinite loop.
    (it seems anyway). It doesnt even make it into the while statement. If i replace the while with an if statement, everything works smoothly. Does anyone know what is actually happening here and why?
    Thanks for your time.

    Why didnt the java compiler report the ;? or the
    missing =?Because they're both syntactically valid.
    You might want to code a loop with no body:
    while ((ch = readChar()) != 0);
    (same as)
    while ((ch = readChar()) != 0)
    // do nothing
    And you might want to assign a boolean variable and compare it at the same time:
    while (flag = callSomeMethod())
    (as opposed to)
    while ((flag = callSomeMethod()) == true)
    Although in both cases I'd write them differently rather than making a statement which has 'side-effects' and makes for slightly less-readable code.

  • Empty trash stuck in infinite loop....

    I just upgraded to Mtn Lion and I have a hard drive with time machine back up from a leopard machine, I wanted to delete that, and use the drive with Mtn lion, I put the backups folder into trash and tried to empty it, it is stuck in an infinite loop, the items to delete is in -ve......anybody else seen this? how to recover, if I stop the process, the files are still there...any solutions?

    Stop the process. Remove the files from Trash and put them back on the disk they came from.
    Next, open Disk Utility (Applications/Utilities/Disk Utility.app), choose the hard disk that you were trying to delete the files from. Click the 'Erase' tab and then 'Erase...'.

  • Java Pattern Matcher (Pattern.class bug? Stuck in Infinite Loop)

    Hi,
    I'm using the java pattern matcher and it appears to be stuck in an infinite loop and will not return from Pattern.class.
    It stays stuck in the following two code sequences...
    I'm using the following regex...
    java.util.regex.Matcher[pattern=[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|biz|info) region=0,353648 lastmatch=
    MAIN BLOCK STUCK IN LOOP:
    boolean study(TreeInfo info) {
    if (type != INDEPENDENT) {
    int minL = info.minLength;
    atom.study(info);
    info.minLength = minL;
    info.deterministic = false;
    return next.study(info);
    } else {
    atom.study(info);
    return next.study(info);
    SECOND BLOCK STUCK IN LOOP:
    boolean match(Matcher matcher, int i, CharSequence seq) {
    // Check for zero length group
    if (i > matcher.locals[beginIndex]) {
    int count = matcher.locals[countIndex];
    if (count < cmin) {
    matcher.locals[countIndex] = count + 1;
    boolean result = body.match(matcher, i, seq);
    // If match failed we must backtrack, so
    // the loop count should NOT be incremented
    if (!result)
    matcher.locals[countIndex] = count;
    return result;
    if (next.match(matcher, i, seq))
    return true;
    if (count < cmax) {
    matcher.locals[countIndex] = count + 1;
    boolean result = body.match(matcher, i, seq);
    // If match failed we must backtrack, so
    // the loop count should NOT be incremented
    if (!result)
    matcher.locals[countIndex] = count;
    return result;
    return false;
    return next.match(matcher, i, seq);
    Is this a bug with the Java 1.6 Pattern Matcher?
    Thanks
    V$h3r

    The Java Pattern Matcher is getting stuck in the following code...
    boolean study(TreeInfo info) {
    if (type != INDEPENDENT) {
    int minL = info.minLength;
    atom.study(info);
    info.minLength = minL;
    info.deterministic = false;
    return next.study(info);
    } else {
    atom.study(info);
    return next.study(info);
    boolean match(Matcher matcher, int i, CharSequence seq) {
    // Check for zero length group
    if (i > matcher.locals[beginIndex]) {
    int count = matcher.locals[countIndex];
    if (count < cmin) {
    matcher.locals[countIndex] = count 1;
    boolean result = body.match(matcher, i, seq);
    // If match failed we must backtrack, so
    // the loop count should NOT be incremented
    if (!result)
    matcher.locals[countIndex] = count;
    return result;
    if (next.match(matcher, i, seq))
    return true;
    if (count < cmax) {
    matcher.locals[countIndex] = count + 1;
    boolean result = body.match(matcher, i, seq);
    // If match failed we must backtrack, so
    // the loop count should NOT be incremented
    if (!result)
    matcher.locals[countIndex] = count;
    return result;
    return false;
    return next.match(matcher, i, seq);
    }Here is a copy of the REGEX that I'm using...
    It works on most of the other STRINGS but when I do a REGEX on the the html source for http://www.exponent.com it will get stuck...
    Pattern p = Pattern.compile("[a-zA-Z0-9+_~-]+(?:\\.[a-zA-Z0-9+_~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+(?:com|org|net|biz|info|[a-zA-Z]{2})");Thanks,
    V$h3r

  • PowerShell 3.0 stuck in infinite loop resolving members internally (is this a PS bug??)

    Sorry for long post... I have this scenario:
    - Issue is on PS3, PS2 works fine
    - I create a new object via "$myObj = New-Object PSObject"
    - I append a number of PSMembers to it via something similar to:
    "if (-not (Get-Member -InputObject $myObj -Name MyProperty))
     Add-Member -InputObject $myObj -MemberType ScriptProperty -Name MyProperty -Value { return MyFunction }
    I am seeing situations where what I believe is the call to "Get-Member" causes a huge number of invocations that appear to be calling the equivalent of the "MyFunction" in the above sample. I have debug statements in the MyFunction
    function and nested functions and can see they are called by what appears to be the PS framework itself. Even running a "Get-PSCallstack" call from one of these functions seems to also trigger the debug statements to be hit (midway through the callstack
    output??!) - bit confused by that but it's like PS is invoking the member in order to reflect it or something.
    I used Trace-Command and could see that the "MemberResolution" trace source is repeatedly/infinitely called with the output:
    MemberResolution Information: 0 :         Matching "*"
    MemberResolution Information: 0 :             Generating the total list of members
    MemberResolution Information: 0 :                 Type table members: 0.
    MemberResolution Information: 0 :                 Adapted members: 0.
    MemberResolution Information: 0 :             21 total matches.
    This appears to be in an infinite loop. Therefore I added "-ListenerOption Callstack" to the Trace-Command call and captured the following and more (notice the call to PSObject.ToStringEmptyBaseObject()):
    at System.Management.Automation.PSObject.AdapterGetMembersDelegate[T](PSObject msjObj)
       at System.Management.Automation.PSMemberInfoIntegratingCollection`1.GetIntegratedMembers(MshMemberMatchOptions matchOptions)
       at System.Management.Automation.PSMemberInfoIntegratingCollection`1.Match(String name, PSMemberTypes memberTypes, MshMemberMatchOptions matchOptions)
       at System.Management.Automation.PSObject.ToStringEmptyBaseObject(ExecutionContext context, PSObject mshObj, String separator, String format, IFormatProvider formatProvider)
       at System.Management.Automation.PSObject.ToString(ExecutionContext context, Object obj, String separator, String format, IFormatProvider formatProvider, Boolean recurse, Boolean unravelEnumeratorOnRecurse)
       at System.Management.Automation.PSObject.ToString()
       at System.String.Join(String separator, Object[] values)
       at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter, CompiledCommandParameter parameterMetadata, ParameterBindingFlags flags)
    I then disassembled the relevant code in Reflector and could see that the ToString() method of PSObject has a check for "if obj.immediateBaseObjectIsEmpty" then to call the ToStringEmptyBaseObject() function. I could also see that the immediateBaseObjectIsEmpty
    field is set in the CommonInitialization internal method if "obj is PSCustomObject" (which is the actual object type you get when you New-Object PSObject).
    I then updated my code to create "$myObj = New-Object Object" (i.e. System.Object instead) and the issue goes away.
    Can anyone explain what I may have done wrong here or is this looking like a bug in PowerShell?
    Cheers!

    Hi Matt,
    I'm not sure if we are on the same page? Getting the list of (i.e. metadata of) the members shouldn't invoke the member.  I have used this technique in many places and it's never been an issue whereby you "wrap" a utility function with
    a ScriptProperty or ScriptMethod to provide OO semantics on a PS object. The member isn't invoked by Get-Member, only when it's called explicitly.
    Here's a small example:
    function TestFunction
     Write-Host "TestFunction called"
     return "TestFunction return value"
    $myObj = New-Object PSObject
    Add-Member -InputObject $myObj -MemberType ScriptProperty -Name TestScriptProperty -Value `
     Write-Host "TestScriptProperty called"
     return TestFunction
    Write-Host "Getting members"
    Get-Member -InputObject $myObj -Name TestScriptProperty | Select *
    Write-Host "Invoking property"
    $myObj.TestScriptProperty
    Here's the output (Get-Member output a bit mangled due to the text wrapping):
    Getting members
    TypeName                                   Name                                                                      
    MemberType Definition                               
    System.Management.Automation.PSCustomOb... TestScriptProperty                                                    
    ScriptProperty System.Object TestScriptProperty {get=...
    Invoking property
    TestScriptProperty called
    TestFunction called
    TestFunction return value
    Yup I see your point, but when you run your original code with this example object you can see there is no loop. There must either be a loop in the function or in the body of the script itself. This is very tough to troubleshoot without seeing the code you
    are actually running.
    You said you are adding several members to the custom object. Is this done in a loop?

  • PLSQL in Infinite Loop -- Help!

    The PLSQL procedure below seems to go into an infinite loop. I am hoping that someone out there can tell me why? Many thanks in advance!
    create or replace procedure GF_POC_Migration is
    v_subdo_data varchar2(180); /* email address */
    v_subdo_type varchar2(180); /* email, rss, my yahoo, etc */
    v_subdo_created date;
    v_subdo_modified date;
    v_subdo_subs_id number(20); /* POC subscritpion set id */
    v_subs_identifier varchar2(80); /* POC System cookie identifier */
    v_subs_id number(19); /* POC Subscription SET Id */
    v_sub_id number(19); /* POC Subscription Id*/
    v_subs_created date;
    v_subs_modified date;
    v_sub_created date;
    v_sub_modified date;
    v_consumer_id number(19);
    v_client_shopper_id number(19);
    v_client_id number(19);
    v_sequence_nxtval number(19);
    v_als_id number(19); /* Alert Selector Id */
    v_product_name varchar2(100);
    v_category_name varchar2(254);
    /* Sub Delivery Options from the POC System contains all the information for
    the consumers email address. Using this to drive the process of migration -
    consumer by consumer*/
    Cursor SUBDO_CURSOR IS
    select SUBDO_SUBS_ID, SUBDO_DATA, SUBDO_TYPE, t.SUBS_CREATED, t.SUBS_MODIFIED
    from rm_sub_delivery_options s, rm_subscription_sets t
    where s.subdo_data not in (select t.ooe_email from rm_optout_emails t)
    and t.subs_id = s.subdo_subs_id;
    /* Subscription Sets in the POC system relates to RM_CLIENT_SHOPPER in v1.5 */
    Cursor SUBSCRIPTION_SETS_CURSOR IS
    select subs_identifier, subs_created, subs_modified, subs_id
    from rm_subscription_sets t
    where t.subs_id = v_subdo_subs_id;
    Cursor CLIENTS_CURSOR IS
    select client_id from rm_client t
    where identifier='GUESSFACTORY';
    Cursor NXTVAL_GLOBAL_SEQ IS /* Rainmaker's one and only seq # generator in v1.5 */
    Select rm_global_sequence.nextval
    from dual;
    Cursor SUBSCRIPTIONS_CURSOR IS
    select t.sub_id, t.sub_created, t.sub_modified
    from rm_subscriptions t
    where t.sub_subs_id = v_subs_id;
    CURSOR POC_CAT_AND_PRODS_CURSOR IS /* Get the selector via two view joins to POC & v1.5 */
    select als_id, tier3, full_cat_name
    from poc_catsprodssubs poc, v15_categories_mig v15
    where upper(poc.prd_name)=upper(v15.tier3)
    and upper(poc.prd_identifier)=upper(v15.full_cat_name)
    and poc.sub_id = v_sub_id;
    begin
    /*DBMS_OUTPUT.ENABLE(100000000);*/
    OPEN CLIENTS_CURSOR; /* Get the Guess Factory ID the one time */
    FETCH CLIENTS_CURSOR INTO v_client_id;
    CLOSE CLIENTS_CURSOR;
    OPEN SUBDO_CURSOR;
    LOOP
    FETCH SUBDO_CURSOR /* Get the Signup Email, RSS, etc Info */
    INTO v_subdo_subs_id, v_subdo_data, v_subdo_type, v_subdo_created, v_subdo_modified;
    EXIT WHEN SUBDO_CURSOR%NOTFOUND;
    /*dbms_output.put_line('v_subdo_subs_id = ' || v_subdo_subs_id || ' + ' || v_subdo_data);*/
    LOOP /* Each line of RM_SUBSCRIPTION_SETS - need to create a new row in RM_CLIENT_SHOPPER */
    OPEN NXTVAL_GLOBAL_SEQ; /* Get the next seq value */
    FETCH NXTVAL_GLOBAL_SEQ INTO v_sequence_nxtval;
    v_client_shopper_id := v_sequence_nxtval; /* Capture client_shopper_id */
    CLOSE NXTVAL_GLOBAL_SEQ;
    /*dbms_output.put_line('v_clientshopper_id = ' || v_client_shopper_id || ' + ' || v_sequence_nxtval);*/
    /* Get corresponding records from RM_SUBSCRIPTION_OPTIONS */
    OPEN SUBSCRIPTION_SETS_CURSOR;
    FETCH SUBSCRIPTION_SETS_CURSOR
    INTO v_subs_identifier, v_subs_created, v_subs_modified, v_subs_id;
    EXIT WHEN SUBSCRIPTION_SETS_CURSOR%NOTFOUND;
    /*dbms_output.put_line('poc cookie = ' || v_subs_identifier || ' + ' || v_subs_id);*/
    /* Get the Consumer Id */
    OPEN NXTVAL_GLOBAL_SEQ;
    FETCH NXTVAL_GLOBAL_SEQ INTO v_sequence_nxtval;
    v_consumer_id := v_sequence_nxtval;
    /*dbms_output.put_line('v_consumer_id = ' || v_consumer_id || ' + ' || v_sequence_nxtval);*/
    CLOSE NXTVAL_GLOBAL_SEQ;
    /* Start the Client Inserts */
    INSERT INTO RM_CONSUMER (CONSUMER_ID, CHANGE_NUMBER, STATUS, CREATED, MODIFIED)
    VALUES(v_consumer_id, 0,0, v_subs_created, v_subs_modified);
    /* dbms_output.put_line('Insert to Client Shopper' || v_client_shopper_id || ' + ' ||'Consumer Id:' ||v_consumer_id);
    dbms_output.put_line('Also..Client Id' || v_client_id );*/
    INSERT INTO RM_CLIENT_SHOPPER (CLIENT_SHOPPER_ID, CONSUMER_ID, CHANGE_NUMBER, COOKIE_IDENTIFIER,
    CLIENT_ID, STATUS, LAST_KNOWN_CRS_PROD_IDX, SIGNUP_SUCCESS_STEP, SIGNUP_FAILURE_STEP,
    CREATED, MODIFIED)
    VALUES (v_client_shopper_id, v_consumer_id, 5, v_subs_identifier, v_client_id, 2,0,1,0,v_subs_created, v_subs_modified);
    CLOSE SUBSCRIPTION_SETS_CURSOR;
    /* Start handing the SUBSCRIPTIONS: move POC --> v1.5 */
    OPEN SUBSCRIPTIONS_CURSOR;
    OPEN POC_CAT_AND_PRODS_CURSOR; /* I know I shouldn't be opening/closing this but ... */
    LOOP
    FETCH SUBSCRIPTIONS_CURSOR
    INTO v_sub_id, v_sub_created, v_sub_modified; /* Get subscription info from the POC tables */
    EXIT WHEN SUBSCRIPTIONS_CURSOR%NOTFOUND;
    /*dbms_output.put_line('v_sub_id = ' || v_sub_id || ' + ' || v_sub_created);*/
    INSERT INTO RM_SUBSCRIPTION (SUBSCRIPTION_ID, CHANGE_NUMBER, CREATED, MODIFIED)
    VALUES (rm_global_sequence.nextval, 0, v_sub_created, v_sub_modified);
    FETCH POC_CAT_AND_PRODS_CURSOR
    INTO v_als_id, v_product_name, v_category_name; /* Get correct Alert Selector, Product & Category by matching to the v1.5 tables */
    EXIT WHEN POC_CAT_AND_PRODS_CURSOR%NOTFOUND;
    INSERT INTO RM_NEW_ARRIVALS_SUBSCRIPTION (SUBSCRIPTION_ID,ALERT_SELECTOR_ID,
    CLIENT_SHOPPER_ID, IS_PRIMARY, STATUS) /* Populate the v1.5 Alert Selector selections */
    VALUES(rm_global_sequence.currval, v_als_id, v_client_shopper_id, 0, 1 );
    END LOOP; /* Subsrciption */
    CLOSE POC_CAT_AND_PRODS_CURSOR;
    CLOSE SUBSCRIPTIONS_CURSOR;
    END LOOP; /*Sub Scription Sets */
    /* Populate the v1.5 RM_DELIVERY_OPTIONS table */
    INSERT INTO RM_DELIVERY_OPTION (DELIVERY_OPTION_ID, CHANGE_NUMBER, TYPE, DATA, CLIENT_SHOPPER_ID,CREATED, MODIFIED)
    VALUES (RM_GLOBAL_SEQUENCE.NEXTVAL, 0, v_subdo_type, v_subdo_data, v_client_shopper_id, v_subdo_created, v_subdo_modified);
    /*COMMIT;*/
    END LOOP; /* Main Control Loop */
    CLOSE SUBDO_CURSOR;
    END GF_POC_Migration;

    If you cut out all the things that are obviously open/closed etc. and look at your loops...
    BEGIN
       OPEN subdo_cursor;
       LOOP
          FETCH subdo_cursor INTO v_subdo_subs_id, v_subdo_data, v_subdo_type, v_subdo_created, v_subdo_modified;
          EXIT WHEN subdo_cursor%NOTFOUND;
          LOOP
             OPEN subscriptions_cursor;
             OPEN poc_cat_and_prods_cursor;
             LOOP
                FETCH subscriptions_cursor INTO v_sub_id, v_sub_created, v_sub_modified;
                EXIT WHEN subscriptions_cursor%NOTFOUND;
                FETCH poc_cat_and_prods_cursor INTO v_als_id, v_product_name, v_category_name;
                EXIT WHEN poc_cat_and_prods_cursor%NOTFOUND;
             END LOOP;                                          /* Subsrciption */
             CLOSE poc_cat_and_prods_cursor;
             CLOSE subscriptions_cursor;
          END LOOP;  << THERE IS NOTHING TO EXIT THIS LOOP
       END LOOP;
       CLOSE subdo_cursor;
    END gf_poc_migration;

  • Iphone 4 factory unlocked stuck in infinite loop

    I have a factory unlocked Iphone 4 that is stuck in loop. I thought this only happened to jailbroken phones. Please help.

    Do you have receipt that you bought your previous phone in Canada? If so, go back to apple store in Michigan, and perhaps they will replace it. Otherwise, you pro ably should have returned it to the store in Canada. You best bet is to call apple and see if they can come up with a solution.

  • M100 stuck in infinite loop

    Someone just brought their m100 to me and I am unable to help them so I am turning to you to try to help me out here.
    The palm keeps blinking on and off from the logo to a blank screen. I cannot get it to respond. I tried a soft reset but it wont respond.
    I am also unable to sync the palm because it is in the "keyboard mode." Anyway, it wont respond so there is NO way to get it to sync.
    I cannot do a hard reset before I sync this palm because I am trying to retrieve all the information. All I need is to get it onto the computer - so a hard reset is not the solution!
    Any suggestions as to how to get it to respond?
    Post relates to: Tungsten E2

    CW-
    Sounds like you are stuck in a reset loop.  The only want that I have been able to break out of it is with a hard reset.  Knowing that you can't perform a hard reset because you will lose your data, have you tried a warm reset yet?  A warm reset is like booting your PC in "safe mode".  Under a warm reset some features are disabled like IR beaming and networking.  You might be able to HotSync to back up your data and then perform the hard reset.
     Check out this page for details on how to perform a warm reset.
    Alan G
    Post relates to: Treo 755p (Sprint)

  • E75 Stuck in a loop HELP!

    All the sudden my E75 got stuck in some sort of loop this morning. The main screen keeps flashing over and over like its refreshing in a loop and won't stop. I restarted the phone, pulled the battery, and it keeps doing it.
    I do not want to do ANOTHER FREAKING RESET ON THIS PHONE! I have had it a week and needed to wipe it TWICE now *Once after the number ported cause it wouldnt take data anymore even after a power cycle and once cause of graphical glitches all over the title bar*.
    I just want my phone to be useable. Someone please help. 

    Only solution for now is by typing *#7370# (clear all data in phone memory, restore defaults).
    Second thing, after restet- change "active" profile to "basic", and wait for phone soft update (not 100% sure, that is solution, but no loop for now after I changed profile).

  • Treo 755p stuck in infinite loop.

    My 755p (Verizon) is stuck between the Access Powered screen then Palm screen then blank screen then Access Powered screen then Palm screen then blank screen then Access Powered screen then Palm screen then blank screen then Access Powered screen then Palm screen then blank screen then.
    Please help!
    Post relates to: Treo 755p (Verizon)

    To fix this what we need to do is hard reset your device. The instructions to do that is here http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=887 this tells you how to do all types of resets. Also, what we need to do is rename your backup folder. What this folder is, it hold all your programs from the last time you synced your PC. On your computer go here My Computer--> C drive --> Program files --> Palm/PalmOne--> your hotsync user name --> and right click on your backup folder and rename it to "backup.old" Resync your device to the same user name and you will get all your contacts, calendar, tasks, and memos.
    You can install the programs again but make sure they are compatible with the device. Also try one program again and wait 24 hours to see if the same thing happens again. This way you know what program is causing the issue.

Maybe you are looking for

  • How do I sync iPhoto Library between 2 computers?

    Forgive me if this has been asked and answered already. I have an iMac and a MacBook Air and want to sync the iPhoto library between the two. I have upgraded both the desktop and laptop to OSX 10.9 and iPhoto '11 (9.5). I always had an iPhoto Library

  • Message output systems

    Hi Gurus, I am a Functional Consultant and do not know much about the ABAP. I am making a Functional specification for the change Message out put which is for Remittance advise for the Vendors. I read few of the  Threads an I am sure now I can get so

  • For cheque issued to settle on outstanding invoice

    Hi, The relization status of a cheque in the vendor module (for cheque issued to settle an outstanding invoice)? Regards, Murthy

  • Not able to access 'Service Registry' in VC 7.1

    Hi Swapnil You can try out the following steps mentioned in this blog. /people/robin.schroeder/blog/2007/08/08/publish-your-services-to-es-registry Regards Deepak

  • Inter company billing, client and company code

    Hello, In inter co billing, the selling sales org and the delivery plant both belong to different company codes. my questions are :- 1) Assuming my sap  production  system id is XBI, do  both the company codes need to exist in the same production sys