Am i doing anything wrong here?

hi
below query works with where clause
select
cbldate,
SUM((CASE WHEN MODULE IN (11) THEN BAL ELSE 0 END)) SB,
SUM((CASE WHEN MODULE IN (12,700,701) THEN BAL ELSE 0 END)) CD,
SUM((CASE WHEN MODULE IN (20,47,201,972) THEN BAL ELSE 0 END)) TD,
SUM((CASE WHEN MODULE IN (13,14,30,801,802,803,901) THEN BAL ELSE 0 END)) LOANS,
SUM((CASE WHEN MODULE IN (300) THEN BAL ELSE 0 END)) CBLO,
SUM((CASE WHEN MODULE IN (500) THEN BAL ELSE 0 END)) SLR,
SUM((CASE WHEN MODULE IN (200) THEN BAL ELSE 0 END)) BNKFD,
SUM((CASE WHEN MODULE IN (600) THEN BAL ELSE 0 END)) NON_SLR,
SUM((CASE WHEN MODULE IN (400) THEN BAL ELSE 0 END)) NABARD
FROM
select lbrcode,prdacctid,cbldate,prdcd,
                                (case
                                when trim(PRDCD) IN ('T/BILL','SLRCG','SLRSG') then 500
                                WHEN trim(PRDCD) IN ('NSLRCORP','NSLRFI') then 600
                                WHEN trim(PRDCD) IN ('OBD') then 802
                                WHEN trim(PRDCD) IN ('BD') then 803
                                WHEN trim(PRDCD) IN ('STHLN') then 30
                                WHEN trim(PRDCD) IN ('CBLOL') then 300
                                WHEN trim(PRDCD) IN ('NHBR','NABARD') then 400
                                WHEN trim(PRDCD) IN ('VUD','CCD') then 20
                                WHEN trim(PRDCD) IN ('PGGEN','RIMBNP') then 201
                                WHEN trim(PRDCD) IN ('BNKFD') then 200
                                else MODULETYPE end )module,
                                (case when moduletype in (801,901) then (t_ost_new(lbrcode,prdacctid,fri_date(cbldate)))*-1 else t_ost_new(lbrcode,prdacctid,fri_date(cbldate)) end )  bal
from
                                                select a.lbrcode lbrcode,a.prdacctid prdacctid ,b.rbidate cbldate,a.moduletype moduletype,a.prdcd prdcd
                                from      (
                                                                select lbrcode,trim(prdcd) prdcd,
                                                (              case
                                                                when prdcd in ('CRCC','CRCDOD','CRDDPOD','CRSTOD') then 700
                                                                when prdcd in ('DRSB','TOD') then 701
                                                                else
                                                                moduletype
                                                                end
                                                ) moduletype,
                                                                (RPAD(PRDCD,8,' ')||LTRIM(RPAD('X',25,'0'),'X')) prdacctid
                                                                from prod_mast
                                union all
                                                                select lbrcode,trim(prdcd) prdcd, 801 moduletype,
                                                                (RPAD(PRDCD,8,' ')||LTRIM(RPAD('X',25,'0'),'X')) prdacctid
                                                                from prod_mast where trim(prdcd) in ('CRCC','CRCDOD','CRDDPOD','CRSTOD')
                                union all
                                                                select lbrcode,trim(prdcd) prdcd, 901 moduletype,
                                                                (RPAD(PRDCD,8,' ')||LTRIM(RPAD('X',25,'0'),'X')) prdacctid
                                                                from prod_mast where trim(prdcd) in ('DRSB','TOD')
                                                )a,
  select rbidate ,fiscalyear YY from rbi_cal
  where fiscalyear=to_char(yearend_date(trunc(sysdate)),'yyyy')||'-'||to_char(add_months(yearend_date(trunc(sysdate)),12),'yyyy')
  and REPORTINGFIDAY='Y' AND RBIDATE<=TRUNC(SYSDATE)
  )b
) where lbrcode=212
)GROUP BY cbldate
hi
when i remove where clause query do not fetch any data
is something is missing here?
oracle 11g

ok sir
mean while i wrote the below code
it executed but with wrong results
i am sure you can help me to implement correct logic especially with if ...end if
declare
mdate date;
xsb number(20,2):=0;
xcd number(20,2):=0;
xtd number(20,2):=0;
xloans number(20,2):=0;
xcblo number(20,2):=0;
xslr number(20,2):=0;
xbnkfd number(20,2):=0;
xnonslr number(20,2):=0;
xnabard number(20,2):=0;
xbal number(20,2):=0;
cnt number:=1;
--o
type x_friday is record
l_friday date,
SB NUMBER(20,2),
CD NUMBER(20,2),
TD NUMBER(20,2),
LOANS NUMBER(20,2),
CBLO NUMBER(20,2),
SLR NUMBER(20,2),
BNKFD NUMBER(20,2),
NON_SLR NUMBER(20,2),
NABARD NUMBER(20,2)
TYPE X_FRD1 IS TABLE OF X_FRIDAY INDEX BY BINARY_INTEGER;
X_FRD2 X_FRD1;
--0
---collecting balances
type frid is record
xdate date,
lbrcode number(8),
prdacctid varchar2(32),
moduletype number(5),
prdcd varchar2(8),
bal number(20,2)
type frd1 is  table of frid index by binary_integer;
frd2 frd1;
begin
  for x in
                                               select lbrcode,prdacctid,moduletype,prdcd
                                from      (
                                                                select lbrcode,trim(prdcd) prdcd,
                                                (              case
                                                                when prdcd in ('CRCC','CRCDOD','CRDDPOD','CRSTOD') then 700
                                                                when prdcd in ('DRSB','TOD') then 701
                                                                else
                                                                moduletype
                                                                end
                                                ) moduletype,
                                                                (RPAD(PRDCD,8,' ')||LTRIM(RPAD('X',25,'0'),'X')) prdacctid
                                                                from d009021
                                union all
                                                                select lbrcode,trim(prdcd) prdcd, 801 moduletype,
                                                                (RPAD(PRDCD,8,' ')||LTRIM(RPAD('X',25,'0'),'X')) prdacctid
                                                                from d009021 where trim(prdcd) in ('CRCC','CRCDOD','CRDDPOD','CRSTOD')
                                union all
                                                                select lbrcode,trim(prdcd) prdcd, 901 moduletype,
                                                                (RPAD(PRDCD,8,' ')||LTRIM(RPAD('X',25,'0'),'X')) prdacctid
                                                                from d009021 where trim(prdcd) in ('DRSB','TOD' )
  ))loop
  for y in
  select rbidate ,fiscalyear YY from rbi_cal
  where fiscalyear=to_char(yearend_date(trunc(sysdate)),'yyyy')||'-'||to_char(add_months(yearend_date(trunc(sysdate)),12),'yyyy')
  and REPORTINGFIDAY='Y' AND RBIDATE<=TRUNC(SYSDATE)
  )loop
--populating record
frd2(cnt).xdate:=y.rbidate;
frd2(cnt).lbrcode:=x.lbrcode;
frd2(cnt).prdacctid:=x.prdacctid;
frd2(cnt).moduletype:=                                (case
                                when trim(x.PRDCD) IN ('T/BILL','SLRCG','SLRSG') then 500
                                WHEN trim(x.PRDCD) IN ('NSLRCORP','NSLRFI') then 600
                                WHEN trim(x.PRDCD) IN ('OBD') then 802
                                WHEN trim(x.PRDCD) IN ('BD') then 803
                                WHEN trim(x.PRDCD) IN ('STHLN') then 30
                                WHEN trim(x.PRDCD) IN ('CBLOL') then 300
                                WHEN trim(x.PRDCD) IN ('NHBR','NABARD') then 400
                                WHEN trim(x.PRDCD) IN ('VUD','CCD') then 20
                                WHEN trim(x.PRDCD) IN ('PGGEN','RIMBNP') then 201
                                WHEN trim(x.PRDCD) IN ('BNKFD') then 200
                                else x.MODULETYPE end );
frd2(cnt).prdcd:=x.prdcd;
frd2(cnt).bal:=(case when x.moduletype in (801,901) then (t_ost_new(x.lbrcode,x.prdacctid,y.rbidate))*-1 else t_ost_new(x.lbrcode,x.prdacctid,y.rbidate) end );
CNT:=CNT+1;
end loop;
end loop;
cnt:=1;
FOR N IN 1..FRD2.COUNT LOOP
  x_frd2(cnt).l_friday:=frd2(cnt).xdate;
  mdate:=frd2(cnt).xdate;
  if frd2(cnt).xdate=mdate then
  if frd2(cnt).moduletype in (11) then
  xsb:=xsb+frd2(cnt).bal;
  elsif frd2(cnt).moduletype in (12,700,701) then
  xcd:=xcd+frd2(cnt).bal;
  elsif frd2(cnt).moduletype in (20,47,201,972) then
  xtd:=xtd+frd2(cnt).bal;
  elsif frd2(cnt).moduletype in (13,14,30,801,802,803,901) then
  xloans:=xloans+frd2(cnt).bal;
  elsif frd2(cnt).moduletype in (300) then
  xcblo:=xcblo+frd2(cnt).bal;
  elsif frd2(cnt).moduletype in (500) then
  xslr:=xslr+frd2(cnt).bal;
  elsif frd2(cnt).moduletype in (200) then
  xbnkfd:=xbnkfd+frd2(cnt).bal;
  elsif frd2(cnt).moduletype in (600) then
  xnonslr:=xnonslr+frd2(cnt).bal;
  elsif frd2(cnt).moduletype in (400) then
  xnabard:=xnabard+frd2(cnt).bal;
  else
  xbal:=xbal+frd2(cnt).bal;
  END IF;
  end if;
x_frd2(cnt).SB:=XSB;
x_frd2(cnt).CD:=XCD;
x_frd2(cnt).TD:=XTD;
x_frd2(cnt).LOANS:=XLOANS;
x_frd2(cnt).CBLO:=XCBLO;
x_frd2(cnt).SLR:=XSLR;
x_frd2(cnt).BNKFD:=XBNKFD;
x_frd2(cnt).NON_SLR:=XNONSLR;
x_frd2(cnt).NABARD:=XNABARD;
CNT:=CNT+1;
XSB:=0;
XCD:=0;
XTD:=0;
XLOANS:=0;
XCBLO:=0;
XSLR:=0;
XBNKFD:=0;
XNONSLR:=0;
XNABARD:=0;
END LOOP;
  FOR REC IN 1..X_FRD2.COUNT LOOP
  INSERT INTO friday_data values(x_frd2(rec).l_friday,x_frd2(rec).sb,x_frd2(rec).cd,x_frd2(rec).td,x_frd2(rec).loans,x_frd2(rec).cblo,
  x_frd2(rec).slr,x_frd2(rec).bnkfd,x_frd2(rec).non_slr,x_frd2(rec).nabard);
  end loop;
end;
this block executed and inserted 249860 records in a table  actually only 20 records should be inserted as are the dates query block b
this block executed and inserted 249860 records in a table  actually only 20 records should be inserted as are the dates query block b
Message was edited by: hemu

Similar Messages

  • Am I doing anything wrong here (site review or suggestions)

    Hi,
    I am a web developer in training.  I use Dreamweaver CS5.5.
    I have developed a website hosted here http://webtest.iu.edu/~iutreas/index.html.
    I am requesting suggestions or ideas on anything I might be doing wrong or need to improve on.  I am sure there are things that I missed.
    My box shadow on the nav divs seems to be working OK for FireFox, Chrome, and IE9+ (absent in IE8).
    Perhaps I need to do something for my footer or content div (min-height 690 px) because sometimes the footer looks really tall depending on screen resolution.
    thanks for any suggestions
    JTB

    I ran your site through the online validator here: http://validator.w3.org/
    You do have a couple small errors in your html that "could" cause issues.
    You are missing an alt attribute in your images on line 93 and 381. It's not a critical issue, but it's best if all images have an alt attribute set.
    On line 381 you also forgot to close your image, you should have ...height="28" /> rather than ...height="28">
    There are quite a few instances where you use the & symbol within html text. That should be changed to the short code &amp; within the source to avoid possible issues.
    That's all from a technical standpoint.

  • 2,900 songs, 23GB?? false advertising, or I'm doing something wrong here...

    Complete novice here. Just bought Ipod touch 16gb then upgraded to the 32 GB because I got about halfway through loading my CDs into iTunes when I noticed the GB showing in iTunes was exceeding the 16 GB Ipod... 16gb was advertised to hold ~3,500 songs along with hours and hours of video. So now I am up to 2,900 songs and it's 23GB - there's got to be something wrong here. If I go further, I won't be able to fit onto the new 32GB, nevermind even being able to put video, etc on it!! Talked to a guy at Best Buy and he was perplexed and felt that 2,000 songs should only be about 8GB..
    From spending hours on these boards looking for info, it appears that my import settings that were the default in iTunes (that I downloaded on 3/26/09) of AAC format and iTunes Plus, results in large file sizes....
    I have literally spent DAYS importing CDs and really don't want to redo it under different import settings... I noticed when I right click on my Itunes music folder>properties>general tab > click on advanced attributes, there is a checkbox that I can compress contents to save disk space.
    So question is
    1. is the above method appropriate to compress the files
    2. is there an easier way to 'convert' all my imported music (currently showing as MP4) to MP3 that would be smaller file size (if so, is there a downside to doing this?)
    3. could there be other reasons for this large file size or other ideas/suggestions??
    Thanks in advance!
    Tara

    Hey, now. This line scares me:
    "I guess I'll learn more over time about what material I want to carry around with me on the iPod vs. keeping stuff on the computer as I get used to it!"
    You should always keep it on the computer. If the only copy of a song is on your iPod, you are setting yourself up for a minor disaster. Sooner or later you will need to restore the iPod. There are any number of issues that can cause it to get wonky and unusable. When that happens, the troubleshooting always has the step "restore your iPod" somewhere in the order of repair.
    When you reach that step, *everything on the iPod is erased*. If you only had content on the iPod, not on your computer (or at least on a backup) you will lose the content. Period. No chance to recover it.
    Please, if you insist on deleting from the computer, ensure you backup. Heck, backup anyhow. It just makes good sense.

  • Record type - Am I doing something wrong here

    Hi,
    I am writing a package for testing and I am facing issue in compiling this package.
    I am getting error
    PLS-00302: component 'ID' must be declared.
    PLS-00302: component 'STEP_ID' must be declared.
    PLS-00302: component 'STTS' must be declared.
    I am using record type. Below is the test code.
    I am on 10.2.0.4.0
    create table T1
       (id number,
        dtl_desc varchar2(400)
    create table T2
       (step_id number,
        id number,
        stts varchar2(400)
    create package pkg_1
    as
    type g_typ_stup_rec is record
         id  t1.id%type,
         step_id t2.step_id%type,
         stts  t2.stts%type
    g_ty_stup_tab is table of g_typ_stup_rec;
    procedure pr_stup_rec
         i_id in t1.id%type := 1,
         i_step_id in t2.step_id%type := 1,
         i_stts in t2.stts%type := 'SUCS',
         o_rec out g_ty_stup_tab
    end ;
    create package body pkg_1
    as
    procedure pr_stup_rec
          i_id in t1.id%type := 1,
          i_step_id in t2.step_id%type := 1,
          i_stts in t2.stts%type := 'SUCS',
          o_rec out g_ty_stup_tab
       is
       l_v_id t1.id%type;
       l_v_step_id  t2.step_id%type;
       select
           s_id.nextval
       into
           l_v_id
       from
           dual;
       select
           s_step_id.nextval
       into
           l_v_step_id
       from
           dual;
       o_rec.id      := l_v_id;
       o_rec.step_id := l_v_step_id;
       o_rec.stts    := i_stts ;
    end pr_stup_rec;
    procedure g_sp_ins_rec
          i_ins_rec in g_ty_stup_tab
       is
       insert into t1
        (id,
         desc
        values
         i_ins_rec.id,
         'TEST'
        insert into t2
           step_id,
           id.
           stts
          values
           i_ins_rec.step_id,
           i_ins_rec.id,
           i_ins_rec.stts
       commit;
    end g_sp_ins_rec;
    end pkg_1 ;
    Appreciate if you can point out what I am doing wrong here.
    Thanks in advance
    TA
    Edited by: user572194 on Feb 1, 2012 1:22 PM
    Edited by: user572194 on Feb 1, 2012 1:34 PM

    Surely, though, you have the ability to actually create these objects in your system (or in some local development environment) in order to verify that the code you're posting compiles and shows the problem you're trying to demonstrate, right?
    Your package definition, for example, fails to compile because you're missing the TYPE in your declaration of G_TY_STUP_TAB
    SQL> ed
    Wrote file afiedt.buf
      1  create or replace package pkg_1
      2  as
      3  type g_typ_stup_rec is record
      4     (
      5       id  t1.id%type,
      6       step_id t2.step_id%type,
      7       stts  t2.stts%type
      8     );
      9   type g_ty_stup_tab is table of g_typ_stup_rec;
    10   procedure pr_stup_rec
    11     (
    12       i_id in t1.id%type := 1,
    13       i_step_id in t2.step_id%type := 1,
    14       i_stts in t2.stts%type := 'SUCS',
    15       o_rec out g_ty_stup_tab
    16     );
    17*  end ;
    SQL> /
    Package created.Your package body is missing the BEGIN statements in both of the procedure definitions. Then it references the old DESC column from T1 which needs to be changed to DTL_DESC. Then, you're missing a couple of sequences. Once all those items are fixed, I think we're down to the compilation errors that you're originally talking about
    SQL> create or replace package body pkg_1
      2   as
      3   procedure pr_stup_rec
      4      (
      5        i_id in t1.id%type := 1,
      6        i_step_id in t2.step_id%type := 1,
      7        i_stts in t2.stts%type := 'SUCS',
      8        o_rec out g_ty_stup_tab
      9     )
    10  is
    11     l_v_id t1.id%type;
    12     l_v_step_id  t2.step_id%type;
    13  begin
    14     select
    15         s_id.nextval
    16     into
    17         l_v_id
    18     from
    19         dual;
    20     select
    21         s_step_id.nextval
    22     into
    23         l_v_step_id
    24     from
    25         dual;
    26     o_rec.id      := l_v_id;
    27     o_rec.step_id := l_v_step_id;
    28     o_rec.stts    := i_stts ;
    29  end pr_stup_rec;
    30  procedure g_sp_ins_rec
    31     (
    32        i_ins_rec in g_ty_stup_tab
    33     )
    34     is
    35  begin
    36     insert into t1
    37      (id,
    38       dtl_desc
    39      )
    40      values
    41      (
    42       i_ins_rec.id,
    43       'TEST'
    44      );
    45      insert into t2
    46        (
    47         step_id,
    48         id.
    49         stts
    50        )
    51        values
    52        (
    53         i_ins_rec.step_id,
    54         i_ins_rec.id,
    55         i_ins_rec.stts
    56        );
    57     commit;
    58   end g_sp_ins_rec;
    59   end pkg_1 ;
    60  /
    Warning: Package Body created with compilation errors.
    SQL> sho err
    Errors for PACKAGE BODY PKG_1:
    LINE/COL ERROR
    26/4     PL/SQL: Statement ignored
    26/10    PLS-00302: component 'ID' must be declared
    27/4     PL/SQL: Statement ignored
    27/10    PLS-00302: component 'STEP_ID' must be declared
    28/4     PL/SQL: Statement ignored
    28/10    PLS-00302: component 'STTS' must be declared
    36/4     PL/SQL: SQL Statement ignored
    42/16    PL/SQL: ORA-00984: column not allowed here
    42/16    PLS-00302: component 'ID' must be declared
    45/5     PL/SQL: SQL Statement ignored
    45/17    PL/SQL: ORA-00913: too many valuesThose errors are the result of treating a nested table of records as if it was a single record. pr_stup_rec is defined to return a collection of records. If you're using a collection of records, you'd have to initialize the collection and you'd have to reference a particular element of the collection when you wanted to assign values. Something like this, for example, will declare a local variable of type pkg_1.g_ty_stup_tab, initialize the collection, add an element to the collection, and assign the values to the individual components of the record that is the first element in the collection
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    l_collection pkg_1.g_ty_stup_tab := new pkg_1.g_ty_stup_tab();
      3  begin
      4    l_collection.extend;
      5    l_collection(1).id := 1;
      6    l_collection(1).step_id := 10;
      7    l_collection(1).stts := 'Foo';
      8* end;
    SQL> /
    PL/SQL procedure successfully completed.Alternately, you could create a record type and add that as an element in your collection
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    l_collection pkg_1.g_ty_stup_tab := new pkg_1.g_ty_stup_tab();
      3    l_record     pkg_1.g_typ_stup_rec;
      4  begin
      5    l_collection.extend;
      6    l_record.id := 1;
      7    l_record.step_id := 10;
      8    l_record.stts := 'Foo';
      9    l_collection(1) := l_record;
    10* end;
    SQL> /
    PL/SQL procedure successfully completed.But it's not obvious to me that you actually want to use a collection here. Perhaps you want your procedures to simply return a single record.
    Justin

  • Using Pages for e-books - am I doing something wrong here?

    Hi!
    I wrote 5 e-books with a total of around 1.500 pages in Pages. Great program
    Now I wanted to apply a template but in a mix og horror and frustration, I'm not sure if I got all this wrong.
    Can't I apply a template on a document already written? I bought a template with 10-12 different page setups, looking really nice.
    It's like I can only add new pages and move my text to them, page by page and I'm NOT going to do that with 1.500+ pages :s
    Am I doing this wrong? Is Pages the wrong choise for this?
    If not, what program would be the one to use for setting up my books?
    Thanks in advance for any feedback

    Pages templates do not work in this way, they have fairly poor templating and styling methods.
    If it is simply a matter of styling a lot of word processing you could open the previous work in Pages *Word Processing mode* and replace each style with an edited version of itself. Replacing colors is not so easy and layout extremely difficult.
    Pages does not have the efficient keyboard methods of applying styles, that more capable DTP packages have. So applying the styles is tedious.
    Even with styling unless you had been extremely careful dividing your paragraph, character and list styles you will likely have a lot of manual work to do. Pages does not have a method that I know of to show unstyled text that would drop through the cracks of any changes.
    If you did the previous work in *Layout mode*, you may as well start from scratch, there would be too much manual adjustments etc to make it worthwhile.
    To get the sophisticated updating of firstly styled text, you would need a DTP program that allows direct exchange of styles. To have the ability to change layout you really would need Adobe InDesign.
    Peter

  • Am I doing anything wrong?

    hello people, i´m new to this forum, and also to oracle =D, and i have this little problem
    i´m cleaning some tables, cause the tablespace is at 98%, so i started erasing records from last month from two tables, i erased +3 million records just for tha last month, that would at least free some % right?, the problem is that it didn´t, i´m using toad, and when I check the tablespaces, it´s at 98% no change at all, even, when I check the tablespace map, I don´t see any free spaces O_X, am i doing something wrong, or missed something
    i wrote the code i used to delete al those records
    delete from QUEST.QUEST_IX_SEQ_SNAP
    where SNAPSHOT_TIME > to_date ('24-08-2005', 'DD-MM-YYYY')
    and SNAPSHOT_TIME < to_date (01-09-2005', 'DD-MM-YYYY');
    commit;
    delete from QUEST.QUEST_IX_RUN_OBS_TABLE_ITEM
    where COLUMN_NO >= ' 1 '
    and COLUMN_NO <= ' 3 ' ;
    commit;
    from the first code, that erased million something records, and from the other it erased 1.7 million records, I didn´t get any error messages, the whole operation took like about 45 minutes, and toad reported that it deleted those records, so that´s my question, if i didn´t get any errors why is it that when i check the tablespace it´s still at 98%? O_O?
    thanx in advance for any opinions, or help =D

    Deleting data from a table will generally put blocks from the table onto the free list, meaning that subsequent INSERT and UPDATE operations on that table can reuse the empty space. Deleting data from a table will not cause the tablespace to have more free space, however, because the individual tables still own segements and extents, even if they are empty.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • With the upgrade to 10.5 I cannot see the option to share apps under preferences sharing. Am I doing anything wrong?

    I upgraded to itunes 10.5 on my Windows Vista Desktop and my wife's Windows 7 laptop as well.
    On my desktop I use my login/account information.
    On my wife's laptop used her login/account information.
    Enabled home sharing on both the computers and authorized both the computers.
    On my desktop when I open itunes and go to preferences screen and in there under sharing I don't see Apps listed anymore.
    So I cannot share the apps I bought using my account/desktop with my wife's account/laptop.
    By the way I am able to see music and movies across both the computers and can even share it. Just not the apps since the options is now not available under preferences >> sharing tos hare apps.
    I am using iphone 4S and my wife uses iphone 4.
    Any help will be appreciated.

    Regarding the .dmg problem see this thread:
    http://discussions.apple.com/thread.jspa?messageID=5522469&#5522469
    As to the external, does the drive appear in Disk Utility? If so, can you see how it is formatted?

  • TransactionScope has no effect - am I doing something wrong here ?

    I've so far been unable to get TransactionScope working with the Oracle 10g express database I'm using for development (have yet to try with other versions of Oracle).
    I suspect the problem is simple that the 2.0 ODP beta still doesn't have support for it.
    I'm looking at potentially switching to SQL-Server for our current project if I won't be able to use TransactionScope with Oracle in the near future (a month or two tops.).
    I've been redirected here by John Balogh from Oracle support who tells me that a member of the ODP development team should be able to answer my questions here.
    I've included the version details and a piece of sample code below:
    .NET runtime: 2.0.50727
    ODP: 10.2.0.100
    Oracle db: 10g express (will be upgraded to a full 10g version when we start deploying to the test servers in the coming weeks)
    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Transactions;
    namespace OracleTransactionScope
    class Program
    static void Main(string[] args)
    //create table for testing
    string connectionString = "Data Source=xxx;User Id=xxx;Password=xxx";
    Oracle.DataAccess.Client.OracleConnection conn = new Oracle.DataAccess.Client.OracleConnection(connectionString);
    conn.Open();
    Oracle.DataAccess.Client.OracleCommand com = new Oracle.DataAccess.Client.OracleCommand();
    com.CommandText = "drop table TBL_TEST";
    com.Connection = conn;
    try
    com.ExecuteNonQuery();
    catch (Oracle.DataAccess.Client.OracleException oe) { }
    com.CommandText = "create table TBL_TEST ( TEKST VARCHAR(4000 BYTE) )";
    com.Connection = conn;
    com.ExecuteNonQuery();
    com.CommandText = "insert into tbl_test values('initial value')";
    com.ExecuteNonQuery();
    conn.Close();
    //update table inside a transactionscope without completing it - should rollback any changes
    using (TransactionScope scope = new TransactionScope())
    conn = new Oracle.DataAccess.Client.OracleConnection();
    conn.ConnectionString = connectionString;
    conn.Open();
    com = new Oracle.DataAccess.Client.OracleCommand();
    com.Connection = conn;
    com.CommandText = "update tbl_test set TEKST = 'this should be rolled back'";
    com.ExecuteNonQuery();
    conn.Close();
    //at this point the contents of the TBL_TEST table should be "initial value" but are
    //in fact "this should be rolled back". This test setup works fine when run against a
    //MS SQL Server

    Again, all I am doing is :
    [TestFixture]
    public class TestClass
    private const string tam0ConStr =
    "Data Source=tam0; enlist=true;" +
    "User Id=A01IEE;Password=********" +
    "Min Pool Size=5;Max Pool Size=25;" +
    "Incr Pool Size=10;Decr Pool Size=5;";
    private const string conStr =
    "Data Source=dbc3; enlist=true;" +
    "User Id=cjb6268;Password=********;" +
    "Min Pool Size=5;Max Pool Size=25;" +
    "Incr Pool Size=10;Decr Pool Size=5;";
    private readonly string sql = string.Format(
    "Insert Into CBCSupport.TestTable" +
    "(TestText)Values('{0:HH:mm:ss}')",
    DateTime.Now);
    [Test]
    public void TestTxScope()
    using (var scop = new TransactionScope(TransactionScopeOption.RequiresNew))
    var con = new OracleConnection(conStr);
    var cmd = new OracleCommand(sql, con)
    {   CommandType = CommandType.Text,  CommandTimeout = 20};
    cmd.Connection.Open();
    cmd.ExecuteNonQuery();
    //scop.COmplete();
    And even though the scop.complete is commented out, the insert is committed, and is visible frm SQL Plus... Indeed, if I stop the code immediately after the cmd.ExecuteNonQuery(); , before the transactionScope dispose executes, I still can see the new row in the table...
    How do you get this to work ??

  • HT204088 I purchased a gift, (album from itunes), but I have not received any confirmation email. It doesn't even show up on purchase history. Is there a way of double checking that I did tried to purchase it? I am I doing anything wrong.

    The person I sent the gift to has said they have not recieved anything. Any suggestions?

    Sorry for the large title / subject box. This is my first time on ASC

  • Time to rebuild, see anything wrong here

    I've decided to upgrade and picked out the items below, can anyone see any obvious incompitability with these components and if so any alternatives would be appreciated before I unpack the components, TIA, Hazzo
    MOBO = MSI P7N diamond 780i sli + creative Xfi
    CPU = Core 2 quad pro q6600 2.4ghz 1066fsb
    Graphics = 1gb 9500gt BFG nvidia GEFORCE pcie 2.0 1400mhz
    HD = 160gb samgsung spinpoint sata2 8mb cache
    Memory =2gb corsair ddr2 xms2 dhx pc 6400 twin 2x 1 gig
    psu= Antec trupower trio 650w
    Obviously have other components but these are the majors I've picked out for this build, any foreseen problems etc etc greatly appreciated. Hazzo

    Instead of getting the 9500 , it is better to have the 9600 GPU's because they perform much better and the prices does not differ much though !Its even better if you can afford the 9800's. However it is way better for you to ATI 4850's if you plan to game to the max but at the same time not needing to dig deep into your wallet ! Get a crossfire-X mobo to pair the 4850 !
      Do not get fooled by the 9500's 1 GB memory as they are only at use if you are using a high resolution display.
    http://www.hardwarezone.com/articles/view.php?cid=3&id=2716 - 9600 GPU
    http://www.hardwarezone.com/articles/view.php?cid=3&id=2709 - 4850 GPU
    See the thread, those card looks good too !
    Cheers !

  • HT204406 When i turn off iTunes match and then turn it back on my computer my songs do not come back. am i doing anything wrong?

    Is there anything i'm missing? should i just wait? before i turned itunes match off i had a problem before where the icloud download button was greyed out so i couldn't download them to my computer.

    It came back on it's own.

  • HT5824 Merging all my contacts on my iphone and those in iCloud seems impossible, I'm i doing something wrong here?

    I am having difficulty merging all my contacts: some on my phone, and others in my iCloud account. is there a way to do this?

    Welcome to the Apple Community.
    Have you tried turning contact syncing off (settings > iCloud), choosing keep on phone when prompted then re-enabling cotact syncing and choosing merge when prompted.

  • So much rendering from motion, am i doing anything wrong?

    hi just wondering if there's a way to cut down on all the rendering from motion. whether i export to mov or embed in the project, any little tweak i make to motion files inside FCP causes me to need to re-render everything. Am i missing a sequence setting or render setting somewhere that'll help? it's killing my workflow.
    thanks

    Because you've bounced into Motion and then back again,, it needs to use the Motion engine and any effects to make the clip. Because you're not using native FCP plug-ins or effects you don't get the realtime previews you may be used to.
    My advice would be to build your edit, then go into motion right at the end and work on the effected clips, once your absolutely happy with them, render out and insert them into your edit.
    It really goes without saying that constant tweaking means constant re-rendering.
    The other thing to do would be to use the QUICK VIEW ram preview in FCP to get a feel for what changes you made, but this is of course limited by how much ram you have in your MAC.

  • I just got my battery replaced, but at full battery it still only reaches 2 hours. Am I doing anything wrong or do I have to go get another one again?

    I have a Macbook and its battery has been bad, so I brought it in to the apple store and got a new battery under my warranty. After fully charging the battery once, the maxium time I had left was 2:57, which is an hour longer than my old battery, but shouldn't my battery be lasting somewhere around 4 hours since it is brand new?

    tsiluk wrote:
    ... i am charging it but the battery indicator just shows 5% after about 4 hours of charging time.  ...
    Are you using the Supplied iPad Charger and Cable...
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414
    Try Each one in turn and if you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...

  • Perplexed as to what went wrong here

    ok so im writing this prog for school and im all but finished with it xcept im running into one small problem.
    i have 5 int objects each read individually by the program.
    what i need to to is to ad them all together which seems like it should be simple right.
    so i do it like this
    private int Total;
    public setTotal(int Total)
    Total = intA+intB+intC+intD+intF;
    all the int values are private as well
    but for some reason it wont total.
    am i doing something wrong here?
    i tested each value with
    ex:System.out.printline(intA);
    etc..etc... to make sure it was reading the values set and it prints them out fine (so i know each int is holding its value)
    any input would be greatly appreciated.

    i have 5 int objectsint is a primitive type. You have 5 int variables. Not objects.
    public setTotal (int Total) {
       Total = intA + intB + intC + intD + intF;
    }You are setting the value of the local variable Total (which is the parameter name) to the sum of the 5 int variables. To set the value of the instance field Total, usepublic setTotal (int Total) {
       this.Total = intA + intB + intC + intD + intF;
    }A note: by convention, variable names start with a lowercase letter. Your variable Total should be named total.
    Moreover, the setTotal method does not require a parameter.
    db

Maybe you are looking for

  • Unable to share album with another iPhone user

    Earlier today I was able to share an album with multiple users without any issues. I tried sharing the same album with my mom, also an iPhone user, and it shows no pictures are in the album. I unsubscribed her and resent the invitation and still noth

  • Which is better: XDCAM or ProRes for editing and upload?

    I am trying to determine if I'm better of staying with my native XDCAM files or instead converting them to one of the Pro Res codecs? One of my main issues is that the files that I upload to YouTube never look as good as I feel they ought to, nor as

  • Interactive sorting using java crystalReportViewer

    we are building a crystal report web project using eclipse gallieo. technologies used are Struts2 AND jsp. And our requirement is to show interactive sorting as well as to export as HTML as crystal report viewer toolbar option . we have done a lot se

  • Evernote: Can I delete the imported file???

    If you are a premium suscriber to Evernote, can you delete the original file (i.e., PDF, Excel, ...) that was imported into Evernote or do you need to keep it for future editing, sharing or such? It seems Evernote copies the imported file and puts it

  • FGA, module name and SET_MODULE

    RDBMS: Release 10.1.0.5.0 I would like to audit a table column using an audit condition on the module name. The code to do that is: begin    DBMS_FGA.DROP_POLICY(object_schema=>'XXXX', object_name=>'TAB', policy_name=>'FGA_SELECT_TAB' );    dbms_fga.