Issue with sequence.currval in INSERT ALL...

Hi Gurus,
I am having an issue with using sequence.currval in INSERT ALL with WHEN clause.Please check following example
Let say I have 4 tables
1) SOURCE_PARENT
PARENT_ID
========
10
20
2) SOURCE_CHILD
PARENT_ID CHILD_ID
========= ========
10     1
10     2
20     1
20     2
Now i have another 2 tables same as above definition(DEST_PARENT, DEST_CHILD),which i want to populate with above source data with new parent_id's from a sequence.
So I have used INSERT ALL as follows.
=====================================================
INSERT ALL
WHEN (prev_parent_id = 0)THEN
INTO dest_parent
values(test_s.nextval)
when 1 = 1 then
INTO dest_child
values(test_s.currval,child_id)
select
p.parent_id
,c.child_id
,LAG(c.parent_id, 1, 0) OVER (PARTITION BY c.parent_id ORDER BY c.child_id) prev_parent_id
from
source_parent p
,source_child c
where
p.parent_id = c.parent_id
order by p.parent_id
========================================================
Above INSERT ALL created following rows in DEST tables
1) DEST_PARENT
PARENT_ID
=========
75
77
2)DEST_CHILD
PARENT_ID CHILD_ID
========= =======
75     1
76     2 --- this should be same as above record
77     1
78     2 --this should be same as above record
As you can see test_s.nextval is executed 4 times even we do have WHEN Clause in INSERT ALL
Can you please check what's wrong in this INSERT ALL statement?
(or)
Any otherway of doing these INSERTS in a single SQL statement?
Any help would be appreciated!!
Thanks
srinivas.L

Sorry, but this solution does not work. I had to remove the constraints on the two tables dest_parent and dest_child just to show you, how bad your solution is
SQL> select * from source_parent;
PARENT_ID
        10
        20
2 rows selected.
SQL> select * from source_child;
PARENT_ID   CHILD_ID
        10          1
        10          2
        20          1
        20          2
        20          3
5 rows selected.
SQL> select * from dest_parent;
no rows selected
SQL> select * from dest_child;
no rows selected
SQL> insert all when
  2       (PREV_PARENT_ID = 0) then into DEST_PARENT
  3  values
  4       (TEST_S.nextval) when 1 = 1 then into DEST_CHILD
  5  values
  6       (case when PREV_PARENT_ID != 0 then TEST_S.currval - 1 else TEST_S.currval end,
  7        CHILD_ID)
  8       select P.PARENT_ID,
  9              C.CHILD_ID,
10              LAG(C.PARENT_ID, 1, 0) OVER(partition by C.PARENT_ID order by C.CHILD_ID) PREV_PARENT_ID
11       from SOURCE_PARENT P, SOURCE_CHILD C
12       where P.PARENT_ID = C.PARENT_ID
13       order by P.PARENT_ID
14  /
7 rows created.
SQL> select * from dest_parent;
PARENT_ID
        23
        26
2 rows selected.
SQL> select * from dest_child;
PARENT_ID   CHILD_ID
        21          2   -- ??? !!!
        23          1
        23          2
        24          3   -- !!!
        26          1
5 rows selected.
SQL>

Similar Messages

  • HT1937 the SIM card that you currently have installed in this iPhone is form a carrier that is not supported under the activation policy that is currently assigned by the activation server.this is not a hardware issue with the iphon. please insert another

    the SIM card that you currently have installed in this iPhone is form a carrier that is not supported under the activation policy that is currently assigned by the activation server.this is not a hardware issue with the iphon. please insert another SIM card from supported carrier or request that this iPhone be unlocked by your carrier.

    Similar issue
    here is the description
    I have similar message but for me the Verizon guys said they unlocked it and when I actually connected to iTunes using Verizon sim card and then did the restore as new iphone then everything worked well and at the end i saw the message "Congrats, your iphone is now unlocked" and then I did the set up as new iphone for my kid.
    Once new apple ID was set up, then I removed the verizon SIM and then inserted prepaid t-mobile sim card and after the phone booted up then I got the same message like  above...."not supported"
    What do i do now? I think the phone is unlocked right?
    Also do I need to insert Verizon SIM card and do restore as NEW and this time do not set up the iphone but change the SIM card and then set up or ?
    I am confused and other threads were talking that if you get congrats message then u shd be good to use other SIM cards....please help!!!

  • HT1414 The Sim card that you currently have installed in this iphone is from a carrier that is not supprotedunder the activation policy that is currently assigned by the activation server. this is not a hardware issue with the iphone. please insert anothe

    The Sim card that you currently have installed in this iphone is from a carrier that is not supprotedunder the activation policy that is currently assigned by the activation server. this is not a hardware issue with the iphone. please insert another sim card from a supported carrier or request that this iphone be unlocked by your carrier.please contact apple for more information.

    I have similar message but for me the Verizon guys said they unlocked it and when I actually connected to iTunes using Verizon sim card and then did the restore as new iphone then everything worked well and at the end i saw the message "Congrats, your iphone is now unlocked" and then I did the set up as new iphone for my kid.
    Once new apple ID was set up, then I removed the verizon SIM and then inserted prepaid t-mobile sim card and after the phone booted up then I got the same message like  above...."not supported"
    What do i do now? I think the phone is unlocked right?
    Also do I need to insert Verizon SIM card and do restore as NEW and this time do not set up the iphone but change the SIM card and then set up or ?
    I am confused and other threads were talking that if you get congrats message then u shd be good to use other SIM cards....please help!!!

  • LR5.3 Export issue with Sequence Renumbering

    I just discovered an issue with the LR5.3 Export module on my Windows 7 system when exporting JPEG image files with 'Sequence' File renaming and 'Original' File Settings to a subfolder. When exporting approximately 100 JPEG image files LR shows a file count in the subfolder of ~1/2 the actual file count and the ability to 'Synchronize Folder' disappears. The correct number of files appear in the subfolder using Windows Explorer, so they all were successfully exported and renamed properly. LR must be closed and reopened to restore the ability to 'Synchronize Folders' and/or 'Import' images using the Import module. I've never encountered this problem before since I normally process raw image files, which do not exhibit this issue.
    Here are screenshots:

    Posted to the Photoshop Family site as a problem:
    http://feedback.photoshop.com/photoshop_family/topics/lr5_3_export_sequence_numbering_issu e

  • Issue with trigger, multi-table insert and error logging

    I find that if I try to perform a multi-table insert with error logging on a table that has a trigger, then some constraint violations result in an exception being raised as well as logged:
    <pre>
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE     11.2.0.1.0     Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL> create table t1 (id integer primary key);
    Table created.
    SQL> create table t2 (id integer primary key, t1_id integer,
    2           constraint t2_t1_fk foreign key (t1_id) references t1);
    Table created.
    SQL> exec dbms_errlog.create_error_log ('T2');
    PL/SQL procedure successfully completed.
    SQL> insert all
    2 into t2 (id, t1_id)
    3 values (x, y)
    4 log errors into err$_t2 reject limit unlimited
    5 select 1 x, 2 y from dual;
    0 rows created.
    SQL> create or replace trigger t2_trg
    2 before insert or update on t2
    3 for each row
    4 begin
    5 null;
    6 end;
    7 /
    Trigger created.
    SQL> insert all
    2 into t2 (id, t1_id)
    3 values (x, y)
    4 log errors into err$_t2 reject limit unlimited
    5 select 1 x, 2 y from dual;
    insert all
    ERROR at line 1:
    ORA-02291: integrity constraint (EOR.T2_T1_FK) violated - parent key not found
    </code>
    This doesn't appear to be a documented restriction. Does anyone know if it is a bug?

    Tony Andrews wrote:
    This doesn't appear to be a documented restriction. Does anyone know if it is a bug?Check The Execution Model for Triggers and Integrity Constraint Checking.
    SY.

  • Issues with Sequence Generator

    I'm having trouble with Sequence generator not generating continuous numbers starting from 1, each time I run the mapping.
    I want the Sequence to start from 1, each time the mapping is run. For this to happen, I'm using a pre-mapping operator which uses an oracle procedure to reset the sequence.
    But, the sequence generates the numbers from some weird number, say 3508 and then jumps to 5006 and so on. I'm not able to track what's wrong with the sequence. I have stopped the caching in Sequence but still it hasn't helped. I'm sure and have verified that the procedure being used to reset the sequence is running fine.
    Please suggest some additional parameters/properties at OWB level to be checked for the sequence, if any OR any thoughts on why the sequence is not starting from 1. Thanks in advance.
    Thanks,
    Sachin
    Edited by: 850549 on Apr 23, 2011 11:43 AM
    Edited by: 850549 on Apr 23, 2011 11:44 AM

    Could you check whether the sequence you use has a cache value greater than 1 defined in the database. This way if your database regularly should be stoped, e.g for offline backup, you'll loose the sequence values that were unused in memory at that time. That way the gaps in your surrogate ids would be explainable.

  • 9.2 issue with  Sequence Numbers

    We are using OWB 9.2 and RDBMS 9.2 on windows NT.
    When using set based functionality i.e. Merge Statement, or Row Based, we have noticed that our sequence object gets incremented during updates even though it is only associated with the insert and not the update.
    Is this normal behaviour or an issue ???

    Jagadish,
    You will not get updates because you by default match on the keys on the table. In other words you emp_id and the seq.nextval are matched to what you have in the table and they will never match (because of the nextval).
    Two things you can do:
    - Change the composite key (e.g. change the design)
    - Change the configuration in OWB
    Let's look at the second one, what you must do is the following:
    1) On the target table, select operator properties and find "Match by Constraint". Highlight that and change this setting to No Constraints.
    You now are not using the constraint, so you must tell OWB what to match on. You do this by:
    2) Highlight the EMPID column and select attribute properties
    3) In the loading properties node set the following for EMPID:
    Load column when inserting row => Yes
    Load column when updating row => No
    Match column when updating row => Yes
    4) Highlight the other columns, for example ATTEMPT_COUNT and select attribute properties
    5) In the loading properties node set the following for ATTEMTP_COUNT:
    Load column when inserting row => Yes
    Load column when updating row => Yes
    Match column when updating row => No
    This should allow you to update based on the EMPID alone.
    Hope this helps,
    Jean-Pierre

  • JBoss Clustering | Issue with sequence generator

    Hi all,
    I am facing a strange issue. I have 2 instances of jboss on the same machine and we have a number of stateless session beans used in our application. Now, I have written a Stateless session bean for sequence generator. I am able to run it on one instance but it is failing on another instance (even if I am only this running this one instance).
    It gives the following error:
    com.proximities.common.utils.SequenceIdGeneratorUtil: Method: getSequence(): Message: TableKey : VENUE
    2005-08-02 11:19:58,406 DEBUG [com.proximities] Class: utils.SequenceIdGeneratorUtil: Method: getSequence(): Message: Fetching from sequence proxy factory: VENUE
    2005-08-02 11:19:58,406 DEBUG [com.proximities] Class: ejb.EJBLookupUtil: Method: getInitialContext: Message: Using JNDI initial context: org.jnp.interfaces.NamingContextFactory
    2005-08-02 11:19:58,406 DEBUG [com.proximities] Class: ejb.EJBLookupUtil: Method: getInitialContext: Message: Using JNDI URL: jnp://localhost:11099
    2005-08-02 11:19:58,406 DEBUG [com.proximities] Class: ejb.EJBLookupUtil: Method: getInitialContext: Message: Using JNDI initial context prefix: org.jboss.naming:org.jnp.interfaces
    2005-08-02 11:19:58,421 DEBUG [com.proximities] Class: ejb.EJBLookupUtil: Method: getSequenceFacade: Message: SequenceStoreFacadeHome - Sequence store facade home returned from ejbHomeFactory isnull
    2005-08-02 11:19:58,421 FATAL [com.proximities] Class: ejb.EJBLookupUtil: Method: getSequenceFacade: Message: Exception during the invoking the remote interface
    2005-08-02 11:19:58,421 INFO [STDOUT] java.lang.NullPointerException
    2005-08-02 11:19:58,421 INFO [STDOUT] ejb.EJBLookupUtil.getSequenceFacade(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] sequence.SequenceProxyFactory.getSequenceStore(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] sequence.SequenceProxyFactory.reserveBlock(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] sequence.SequenceProxyFactory.<init>(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] sequence.SequenceProxyFactory.getSequence(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at common.utils.SequenceIdGeneratorUtil.getSequence(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at dataaccess.VenueDAO.add(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at dataaccess.VenueDAO.update(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at dataaccess.common.GenericDataAccessManager.executeModify(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at business.mediator.ManageVenueMediator.insertIntoVenues(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at business.sessionfacade.VenueManagementFacadeEJBean.insertIntoVenues(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2005-08-02 11:19:58,421 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2005-08-02 11:19:58,421 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2005-08-02 11:19:58,421 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:264)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java:873)
    2005-08-02 11:19:58,421 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2005-08-02 11:19:58,421 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2005-08-02 11:19:58,421 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2005-08-02 11:19:58,421 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
    2005-08-02 11:19:58,421 INFO [STDOUT] at $Proxy92.insertIntoVenues(Unknown Source)
    Now within the server logs, I can see that it has loaded and cached the home interface of that bean, but dont know why its not picking it up.
    Here are the logs for the same:
    [org.jboss.ejb.EjbModule] startService, starting container: SequenceStoreFacade
    [org.jboss.system.ServiceController] starting service jboss.j2ee:jndiName=ejb.SequenceStoreFacadeHome,service=EJB
    [org.jboss.ejb.StatelessSessionContainer] Starting jboss.j2ee:jndiName=ejb.SequenceStoreFacadeHome,service=EJB
    [org.jboss.ejb.StatelessSessionContainer] Begin java:comp/env for EJB: SequenceStoreFacade
    [org.jboss.ejb.StatelessSessionContainer] TCL: org.jboss.util.loading.DelegatingClassLoader@188d92e
    [org.jboss.ejb.StatelessSessionContainer] Bound java:comp/ORB for EJB: SequenceStoreFacade
    [org.jboss.ejb.StatelessSessionContainer] Bound java:comp:/HandleDelegate for EJB: SequenceStoreFacade
    [org.jboss.ejb.StatelessSessionContainer] End java:comp/env for EJB: SequenceStoreFacade
    [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] SequenceStoreFacade cannot be Bound, doesn't have local and local home interfaces
    [org.jboss.proxy.ejb.ProxyFactory] (re-)Binding Home ejb.SequenceStoreFacadeHome
    [org.jboss.proxy.ejb.ProxyFactory] Bound SequenceStoreFacade to ejb.SequenceStoreFacadeHome
    [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb.SequenceStoreFacadeHome
    [org.jboss.ejb.plugins.StatelessSessionInstancePool] Starting jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb.SequenceStoreFacadeHome
    [org.jboss.ejb.plugins.StatelessSessionInstancePool] Started jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb.SequenceStoreFacadeHome
    [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb.SequenceStoreFacadeHome dependent components: []
    [org.jboss.resource.connectionmanager.CachedConnectionInterceptor] start called in CachedConnectionInterceptor
    [org.jboss.ejb.StatelessSessionContainer] Started jboss.j2ee:jndiName=ejb.SequenceStoreFacadeHome,service=EJB
    [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:jndiName=ejb.SequenceStoreFacadeHome,service=EJB dependent components: []
    BTW, I am using JCS for caching and JBoss 4.0. Any pointers will be most appreciated?
    Thanks,
    Vikrant Verma

    You'll get a lot more help with this by posting this to the JBoss forums. This forum is about the J2EE SDK which uses the Sun Java System Application Server.
    -Ian Evans

  • Had many issues with phone, decided to erase all data and now it won't finish

    Okay here's the rundown of my problem on my iPhone 5 32GB. I can't check currently (you'll understand why later) but I believe it was on iOS 7.1.1 as I know it wasn't the absolute most recent version. First off, my lock button is sometimes unresponsive, a hardware issue and I haven't gotten around to getting that fixed yet. Anyways.
    Today I wanted to open up my twitter app. The instant it opens, everything freezes. I mean everything: screen, lock button, home button, everything. The screen usually shuts off after 90s if I don't do anything, so the screen went black after this time as everything I did didn't register. Now with the screen being black, still no response from most things. The only thing I can do is activate Siri, though the screen still doesn't turn on, just the sound. She couldn't usually hear me, and if she did it would take her about a minute or so to respond. I can still connect to iTunes (windows 8) though so I did that, but I stopped the initial sync. I tried doing the hold both buttons for 10s thing but that didn't work (might be because the lock button is iffy) so I couldn't start recovery mode.
    At this point, I decide the only thing I could do (because no where on Google anyone had a similar problem) is to restore the phone, either to factory or to a backup. When I tried these options in iTunes, it told me that it could not do this while Find my iPhone is active, and to go to settings on my phone to turn it off. I can't open settings with the screen black. I tried going to icloud.com in order to see if I could turn it off from there. The site could find my phone just fine, could make the sound just fine. I could however not remove the device from iCloud unless the phone was turned off (which I again can't do with a black screen).
    At this point, I went to the directory with the backup on my computer and copied it to another location. Then in iTunes I did a sync to create a new backup. Now the only thing that was available for me to do was on the web site to erase all data from the phone as it did not require Find my iPhone to be turned off. Feeling out of options, I went through with it and clicked erase. For some reason, this is the time that the screen decides to turn on. The phone showed the apple logo and a progress bar. The bar progressed quickly at first but then slowed as it neared the end. At this current point, it's been at what appears to be 100% for around an hour with nothing happening. The buttons do nothing, my computer can't see the device so iTunes won't do anything.
    Is there anything else I could try to do or should I just wait it out. My city does have an apple store which I could go to tomorrow but if I could get my phone running tonight that would be great. Also, if I can't do anything and it doesn't budge, if I take it to the store would it cost a lot to fix or (if necessary) replace? It was a birthday gift two years ago, bought without a plan, and I don't think it's still under warranty.

    Hi..thanks for your advice!
    Ok, I am student so buying a new phone is not possible ;( This experience has turned me off Apple anyway! All I did was click yes to their iTunes upgrade prompt asking me if I want to update....and now I don't have a phone and can't access all my backup etc on my iTunes because it seems the only way to get to it is with another iPhone!?
    I can't believe that through the Apple recycling program I could possibly get $50 for this phone because the hardware is perfect but there is no support for this issue...feels like Apple is just trying to force everyone with hacked phone to buy new ones!

  • Issue with sequence

    Hi!
    I created a sequence:
    CREATE SEQUENCE "XXX"."FLIGHT_LEG_SEQ"
    MINVALUE 0 MAXVALUE 100000 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER CYCLE ;
    Sequence after inserting a row into table:
    CREATE SEQUENCE "XXX"."FLIGHT_LEG_SEQ"
    MINVALUE 0 MAXVALUE 100000 INCREMENT BY 1 START WITH 24 CACHE 20 NOORDER CYCLE ;
    Here is the trigger that uses this sequence:
    create or replace TRIGGER NEW_LEG_ID
    BEFORE INSERT ON FLIGHT_LEGS
    FOR EACH ROW
    BEGIN
    SELECT flight_leg_seq.NEXTVAL INTO :new.leg_id
    FROM dual;
    END;
    The sequence is set to increment by 1, however the next value is 24? What could be the reason for this?
    Thanks!

    > Let's don't waste each other's time with my first post.
    Correctly said. If you yourself are not sure about what you have typed, I should really retire from this thread. By the way, am not wasting your time, was trying to help you out. Oracle never does anything wrong. Its a computer program. So there should be something wrong with your code only.
    Cheers
    Sarma.

  • I have a editing issue with (sequence) rating system in Bridge.

    So I am editing in Bridge staring each keeper photo and as I do so the newly rated or 1 star photo I just  marked skips ahead in front of the  next photo. So in other words lets say I rated or stared photo number 1278 and the next one is 1279 and after marking 1278 it goes in front of 1279 reversing the sequence? What is causing this to happen. Also yesterday a whole batch of photos from a shoot (3500 of them) lost all time sequence ( I am viewing as "Date created" reverted to one time rather than when they were actually shot much later. I had two hardrives of the same photos and on my backup folder on the other hard drive this did not occur. Unfort I had edited almost the whole corrupted folder so going back to the clean back up HD was not what I wanted to do. Any ideas on this. the files that converted to the wrong date created also have a  out of focus quality as if the file is opening but never clears up.

    DOes tha make sense? Before you had me reset it I could
    scroll thru in bridge and use just single key grading actions  and now I must
    use command Action.
    Your Bridge set up must have been really messed because the normal behavior
    to set rate and label has always been with the two key combination when in a
    workspace with content window set up. When in content panel pressing a key
    without command brings you straight to the file (or first in series) with
    the first character that equals the key you pressed. If you have a filename
    starting with 3 pressing the key 3 for 3 star rating would move the focus
    from your selected file and bring you straight to that other file with a
    name starting with 3.
    However you could also use other options. Not only slideshow allows you to
    use one key, also the full screen (hit space bar to get there) or the Review
    mode (hit cmd+B to get there) in both mode you can move the files with arrow
    key and use one key for rate or label.
    two key  action such as COMMAND 1 to make it a 1 star or COMMAND 6 to make it
    this makes for allot more work and more carpal tunnel 
    nightmare lol!
    It is also not more work to hit one ore two keys at the same time and using
    the cmd + . (dot) and Cmd+ , (comma) also increases or decreases your rating
    with one star.
    Carpal tunnel syndrome is nothing to laugh about but highly unlikely to get
    from using a key board.
    There must be a fucntion to make thsi change?
    No, there is not.

  • Performance issue with select query and for all entries.

    hi,
    i have a report to be performance tuned.
    the database table has around 20 million entries and 25 fields.
    so, the report fetches the distinct values of two fields using one select query.
    so, the first select query fetches around 150 entries from the table for 2 fields.
    then it applies some logic and eliminates some entries and makes entries around 80-90...
    and then it again applies the select query on the same table using for all entries applied on the internal table with 80-90 entries...
    in short,
    it accesses the same database table twice.
    so, i tried to get the database table in internal table and apply the logic on internal table and delete the unwanted entries.. but it gave me memory dump, and it wont take that huge amount of data into abap memory...
    is around 80-90 entries too much for using "for all entries"?
    the logic that is applied to eliminate the entries from internal table is too long, and hence cannot be converted into where clause to convert it into single select..
    i really cant find the way out...
    please help.

    chinmay kulkarni wrote:Chinmay,
    Even though you tried to ask the question with detailed explanation, unfortunately it is still not clear.
    It is perfectly fine to access the same database twice. If that is working for you, I don't think there is any need to change the logic. As Rob mentioned, 80 or 8000 records is not a problem in "for all entries" clause.
    >
    > so, i tried to get the database table in internal table and apply the logic on internal table and delete the unwanted entries.. but it gave me memory dump, and it wont take that huge amount of data into abap memory...
    >
    It is not clear what you tried to do here. Did you try to bring all 20 million records into an internal table? That will certainly cause the program to short dump with memory shortage.
    > the logic that is applied to eliminate the entries from internal table is too long, and hence cannot be converted into where clause to convert it into single select..
    >
    That is fine. Actually, it is better (performance wise) to do much of the work in ABAP than writing a complex WHERE clause that might bog down the database.

  • Printer issue with 10.6 and Dell All in One 968W

    The Dell All in One 968W is basically a Lexmark 9500 series with a Dell badge. Dell do not support OSX but Lexmark have previously supplied a driver that works and allows me to print on the Dell printer.
    However with 10.6 OSX will no longer support the Dell printer. I have tried using the supplied Lexamrk 9500 series dirvers with no luck, and I have tried going to back to the older Lexamrk dirver. The error message suggests that I need to get an updated driver from Lexmark. Lexamark do no yet provide this.
    Has anyone found a solution to this problem?

    Hi
    Have you find any solution????
    Lexmark has a lastest driver the 9500SeriesWebInstaller1.0.1.dmg released the 09/15/09 but it doesn't detects the printer
    if we delete the default snow leopard driver for lexmark and install this new????

  • HT4623 My iPad 1 keeps freezing when I try to set up an account with the apple store .Insert all details including payment details. The screen turns grey colour and then freezes. Help,,,,,,

    My iPad 1keeps freezing every time I try to access apple store. I complete all the information including payment account details lithe screen turns grey colour and then freezes . Help please.

    App store or Apple store

  • IPhoto/viewing issues with size on some, not all, photos.

    HELP!
    When creating an iPhoto slideshow, I have found certain photos appear too large when "played".  The photo is seen as a part and  cut short to the viewer.  So far my unsuccessful attempts have been:
    Cropped  (slide is cut down but returns to original dimensions and becomes blurry).
    Exported to apps. PhotoShop and Preview and "Resized".  Remains in the original dimensions with a smaller version in the middle with a large border of white.
    Imported as a different size.
    Reduced printing size.
    The problem is how do I reduce the size of the photo without loosing the quality and is viewed in its' entirety?Mac Pro, Mac OS X (10.6.8)

    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

Maybe you are looking for

  • MDX Error in Reporting Services/Sharepoint

    Hi, I'm using SQL Server 2008 R2 SP1 CU5. I have a reporting that executes a DataSet with a MDX query. That report was executing very well before (in SQL Server 2008 R2 SP1), but after we updated SQL to SP1 Cumulative 5, the report returns an error. 

  • Ejb 3.0 and JDeveloper

    If I drag and drop tables with One to one mapping in an ejb diagram in JDeveloper (one table have having the foreign key as the primary key). If I create ejb 2.1 beans it makes makes a One To One mapping between the entity beans created and if I drop

  • I just loaded OS Lion now Photo CS2 no longer works its pants and i want to go back to lepod how the **** do i do this

    Why do we do this to our selves? Having thought that this was a great move this has now made me wish i never heard of OS Lion. Its pants taking away CS2 photo shop and now all i want to do is revert back to how i was how the **** do i do this? And if

  • MBP 10.5.8 won't see wifi network but iphone & ipad ok

    not only that, but the pc's in the house runing xp, vist and 7 all see the network. i have access to the modem but am really reluctant to change anything for fear of disturbing everyone else's access. i've never encountered this with my macbook pro b

  • Thunderbolt to Gigabit Ethernet Adapter or Thunderbolt port stopped working

    Hey problem if anyone can help: I use a Thunderbolt to Gigabit Ethernet Adapter, and all of a sudden it stopped working to connect to the internet on my Macbook Air (MacBook Air (11-inch, Early 2014 with OS X Yosemite 10.10.1 (14B25)).  In my system