Quesion about dbms_advanced_rewrite ???

SCOTT@oracle10g>alter session set nls_language=american;
Session altered.
SCOTT@oracle10g>create table tt1 as select * from user_objects;
Table created.
SCOTT@oracle10g>create table tt2 as select * from dba_objects where owner='SYSTEM';
Table created.
SCOTT@oracle10g>exec dbms_stats.gather_table_stats(user,'TT1');
PL/SQL procedure successfully completed.
SCOTT@oracle10g>exec dbms_stats.gather_table_stats(user,'TT2');
PL/SQL procedure successfully completed.
SCOTT@oracle10g>select * from tt1 where object_id not in (select object_id from tt2);
Execution Plan
Plan hash value: 720405399
| Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT   |      |    20 |  1600 |    45   (0)| 00:00:01 |
|*  1 |  FILTER            |      |       |       |            |          |
|   2 |   TABLE ACCESS FULL| TT1  |    21 |  1680 |     3   (0)| 00:00:01 |
|*  3 |   TABLE ACCESS FULL| TT2  |     1 |     5 |     4   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   1 - filter( NOT EXISTS (SELECT /*+ */ 0 FROM "TT2" "TT2" WHERE
              LNNVL("OBJECT_ID"<>:B1)))
   3 - filter(LNNVL("OBJECT_ID"<>:B1))
SCOTT@oracle10g>select * from tt1 where object_id not in (select object_id from tt2
  2  where object_id is not null) and object_id is not null;
Execution Plan
Plan hash value: 2268948225
| Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT   |      |     2 |   170 |     8  (13)| 00:00:01 |
|*  1 |  HASH JOIN ANTI    |      |     2 |   170 |     8  (13)| 00:00:01 |
|*  2 |   TABLE ACCESS FULL| TT1  |    21 |  1680 |     3   (0)| 00:00:01 |
|*  3 |   TABLE ACCESS FULL| TT2  |   469 |  2345 |     4   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   1 - access("OBJECT_ID"="OBJECT_ID")
   2 - filter("OBJECT_ID" IS NOT NULL)
   3 - filter("OBJECT_ID" IS NOT NULL)
SCOTT@oracle10g>begin
  2    sys.dbms_advanced_rewrite.DECLARE_REWRITE_EQUIVALENCE('TEST','select * from tt1 where object_
id not in (select object_id from tt2)','select * from tt1 where object_id not in (select object_id f
rom tt2 where object_id is not null) and object_id is not null',false,'text_match');
  3  end;
  4  /
PL/SQL procedure successfully completed.
SCOTT@oracle10g>alter session set query_rewrite_integrity=trusted;
Session altered.
SCOTT@oracle10g>set autot trace exp
SCOTT@oracle10g>alter session set sql_trace=true;
Session altered.
SCOTT@oracle10g>select * from tt1 where object_id not in (select object_id from tt2);
Execution Plan
Plan hash value: 2268948225
| Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT   |      |     2 |   170 |     8  (13)| 00:00:01 |
|*  1 |  HASH JOIN ANTI    |      |     2 |   170 |     8  (13)| 00:00:01 |
|*  2 |   TABLE ACCESS FULL| TT1  |    21 |  1680 |     3   (0)| 00:00:01 |
|*  3 |   TABLE ACCESS FULL| TT2  |   469 |  2345 |     4   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   1 - access("OBJECT_ID"="OBJECT_ID")
   2 - filter("OBJECT_ID" IS NOT NULL)
   3 - filter("OBJECT_ID" IS NOT NULL)
SCOTT@oracle10g>insert into tt1(object_id) select object_id from tt2;
469 rows created.
SCOTT@oracle10g>exec dbms_stats.gather_table_stats(user,'TT1');
PL/SQL procedure successfully completed.
SCOTT@oracle10g>set autot trace exp
SCOTT@oracle10g>select * from tt1 where object_id not in (select object_id from tt2);
Execution Plan
Plan hash value: 720405399
| Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT   |      |   489 |  7824 |   991   (1)| 00:00:12 |
|*  1 |  FILTER            |      |       |       |            |          |
|   2 |   TABLE ACCESS FULL| TT1  |   490 |  7840 |     3   (0)| 00:00:01 |
|*  3 |   TABLE ACCESS FULL| TT2  |     1 |     5 |     4   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   1 - filter( NOT EXISTS (SELECT /*+ */ 0 FROM "TT2" "TT2" WHERE
              LNNVL("OBJECT_ID"<>:B1)))
   3 - filter(LNNVL("OBJECT_ID"<>:B1))
SCOTT@oracle10g>set autot off
SCOTT@oracle10g>select sql_id,child_number from v$sql where sql_text='select * from tt1 where object
_id not in (select object_id from tt2)';
SQL_ID        CHILD_NUMBER
dwag5726g0j91            1
SCOTT@oracle10g>select * from table(dbms_xplan.display_cursor('dwag5726g0j91',1));
PLAN_TABLE_OUTPUT
SQL_ID  dwag5726g0j91, child number 1
select * from tt1 where object_id not in (select object_id from tt2)
Plan hash value: 720405399
| Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT   |      |       |       |   991 (100)|          |
|*  1 |  FILTER            |      |       |       |            |          |
PLAN_TABLE_OUTPUT
|   2 |   TABLE ACCESS FULL| TT1  |   490 |  7840 |     3   (0)| 00:00:01 |
|*  3 |   TABLE ACCESS FULL| TT2  |     1 |     5 |     4   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   1 - filter( IS NULL)
   3 - filter(LNNVL("OBJECT_ID"<>:B1))
21 rows selected.
SCOTT@oracle10g>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE    10.2.0.3.0      Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Productionwhen I modify tt1,query rewrite don't take effect ??

hi sir,
it take effects,but there are some problems.
SCOTT@oracle10g>insert into tt1(object_id) select object_id from tt2;
469 rows created.
Execution Plan
Plan hash value: 1248358058
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | INSERT STATEMENT  |      |   469 |  2345 |     4   (0)| 00:00:01 |
|   1 |  TABLE ACCESS FULL| TT2  |   469 |  2345 |     4   (0)| 00:00:01 |
SCOTT@oracle10g>select * from tt1 where object_id not in (select object_id from tt2); 
Execution Plan
Plan hash value: 720405399
| Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT   |      |   506 |  9614 |  1026   (1)| 00:00:13 |
|*  1 |  FILTER            |      |       |       |            |          |
|   2 |   TABLE ACCESS FULL| TT1  |   507 |  9633 |     3   (0)| 00:00:01 |
|*  3 |   TABLE ACCESS FULL| TT2  |     1 |     5 |     4   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   1 - filter( NOT EXISTS (SELECT /*+ */ 0 FROM "TT2" "TT2" WHERE
              LNNVL("OBJECT_ID"<>:B1)))
   3 - filter(LNNVL("OBJECT_ID"<>:B1))
SCOTT@oracle10g>commit;
Commit complete.
SCOTT@oracle10g>select * from tt1 where object_id not in (select object_id from tt2);
Execution Plan
Plan hash value: 2314021845
| Id  | Operation            | Name | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT     |      |    38 |   912 |     8  (13)| 00:00:01 |
|*  1 |  HASH JOIN RIGHT ANTI|      |    38 |   912 |     8  (13)| 00:00:01 |
|*  2 |   TABLE ACCESS FULL  | TT2  |   469 |  2345 |     4   (0)| 00:00:01 |
|*  3 |   TABLE ACCESS FULL  | TT1  |   507 |  9633 |     3   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   1 - access("OBJECT_ID"="OBJECT_ID")
   2 - filter("OBJECT_ID" IS NOT NULL)
   3 - filter("OBJECT_ID" IS NOT NULL)
   when I declare a new rewrite,enq: RW - MV metadata contention happens,and the blocking_session and blocked session are same session .
SYS@oracle10g>col event for a50
SYS@oracle10g>set linesize 300
SYS@oracle10g>select sid,serial#,event,blocking_session from v$session where username='SCOTT';
       SID    SERIAL# EVENT                                              BLOCKING_SESSION
       157          7 enq: RW - MV metadata contention                                157

Similar Messages

  • Quesions about Disco admin

    Can some one clarify these doubts?
    1. I read in documentation that Discoverer Admin is only used on Windows platform. Cant this be used on UNIX or other operating systems?
    2. We had a table called PAYABLE_FACT which is having 3 columns like order_dt_id, received_dt_id, pay_dt_id and some other non date id columns.
    There is another table called DATE_DIM which had date_dim_id, full_date.... PAYABLE_FACT had references to DATE_DIM.data_dim_id to order_dt_id, received_dt_id, pay_dt_id.
    In TOAD, While writing queries to find amount ordered, i use join condition like
    ...where payable_fact.order_dt_id = date_dim.order_dt_id
    and date_dim.full_date between :dt1 and :dt2
    Similarly to find received amount i join on received_date_id to date_dim_id.
    In Disco Admin, when i create folders from database, I noticed that folder for PAYABLE_FACT contains 3 joins(on each id) to folder for DATE_DIM (on date_dim_id).
    When i use these folders in Admin, and want to filter on order_date for example, I created condtion like date.dt_full_dt >= :startdate and date.dt_full_dt <= :enddate.
    But, this is not returning correct data.
    How do i solve this problem? Do, i need to remove the joins on received_Date_id and pay_date_id in admin?
    If so, if another user user want to filter data on pay_date, do i need to create another PAYABLE_FACT and have join only on received_date_id to date_dim_id and similiarly for pay_date_id?
    Thank you.

    Yup.
    1. At this point - and all previous versions - the Discoverer Administrator client / server version is only on a PC. That's no biggie as pretty well every company - ok, except Apple? - has a PC somewhere.
    This PC is where you create the EUL - but the EUL is a schema in an Oracle database, so if your Oracle is on Unix, your EUL is stored in the database on Unix.
    There have always been command line options for Disco Admin where you could perform quite alot of what you'd be doing in the client / server version. Recently though, Oracle has added more powerful commands that could be called by a Java interface. So it's only a matter of time IMO until Oracle releases a Java version of Disco Admin - and therefore could run on multiple platforms.
    2. As for the query, one other popular option would be to just create a view in the database with the SQL code, joins, etc. you mention that you did in TOAD.
    Then just create a folder in the EUL to that database view. Badda bing ... badda boom ... no worries about complicated joins between multiple folders.
    Just an option you might want to consider.
    Russ

  • A quesion about FOREIGN KEY

    Hi,
    I know how to add one foreign key on a table,but don't know how to add two foreign keys at a time.
    The following codes have errors,somebody cound tell me how to amend it ?
    Many thanks
    ALTER TABLE A ADD CONSTRAINT a_fk
    FOREIGN KEY (b) REFERENCES B(b),
    FOREIGN KEY (c) REFERENCES C(c);

    Hi,
    about foreign keys
    http://www.techonthenet.com/oracle/foreign_keys/foreign_keys.php
    http://www.psoug.org/reference/constraints.html
    Regards,
    Max.

  • Quesion about BasicToggleButtonUI's paint() method

    hi,everybody,
    I read the source code of BasicToggleButtonUI today and confused about it.
    As what you see,a JToggleButton has two states.When you pressed the button,
    the background color will changed.It remain the background unless you press the
    button again.
    However, I found that the paint() method and painticon() method are quite similar to
    these of BasicButtonUI which is the super class of BasicToggleButtonUI.I could not found
    the snippet to keep the background color. Can anybody who is mastered in this to tell me
    why?
    thx in advancd.

    My question is, is there any way to ensure that a repaint() is completed before the program will move on?If you are not running multiple threads, then the answer is Yes...it already does. Chances are you are using the AWTEventQueue thread to do all of your work. When you click on a button, it creates an Event and puts it on the EventQueue. When repaint is called, an event is created and placed on the queue. Each event in the queue is processed by one thread, ONE AT A TIME, in the order that they were put into the queue.
    If you have multi-threaded your application, you will have to learn more about how to handle multi-threading in GUI's. Typically synchronized(getTreeLock()) will help...sometimes.
    If you don't know if you have multi-threaded or not....then you haven't done it.
    Usually this type of issue is a coding error. If you post some code maybe someone else can spot the problem.

  • Quesion about the Basic concept of RMAN incremental backup

    I have a problem in understanding the basic concept of two types RMAN Incremental backup ie. Differential and Cumulative. I just don't understand how cumulative incremental backup consumes more space than Differential backup.
    Have a look at the scenario in which Differential backup is used.
    1. On Sunday midnight, a LEVEL0 backup is taken.
    2. On Monday midnight all the blocks that was changed since Sunday midnight are stored in the backup media (tape or disk)
    3. On Tuesday midnight all the blocks that was changed since monday midnight are stored in the backup media.
    4. On Wednesday midnight, all the blocks that was changed since tuesday midnight are stored in the backup media.
    At this point, in the backup media, you have all the changed blocks from sunday midnight to wednesday midnight eventhough it was stored in a daily basis. If you had taken a cumulative backup at wednesday midnight the backup media would have contained the same changed blocks from sunday midnight(LEVEL0) to wednesday midnight, but all at one go instead of daily basis. I don't understand how cumulative backup consumes more space when the backup media contains the same amount of changed blocks as it were in the case of the Differential backup.

    Considering the Scenario you given:
    Sunday : Level 0 backup.
    Monday : You have taken an incremental backup then there will not be any difference in size of backup set for differential or cumulative as the changes from last Level0 backup are considered.
    Tuesday : A cumulative backup (n-1) will have changed blocks since Sunday's Level0 backup but a differential backup(n) will only have changed blocks since Monday. So definitely there will be more space consumed by cumulative backups compared to differentials.
    Hope it helps ...
    Bhupinder

  • Quesion about preview printing in safari

    is there a way to get the print preview to automatically show up when i click the print icon in safari...im using 10.5.2...it seems to do it on my dads admin. account but not on mine

    I've been having this same problem with saving pdf files File - Save As from the top Toolbar on my laptop.
    I would constantly get messages - There was an error opening this document. The file is damaged and could not be repaired.
    I also downloaded the lateset version of Adobe Reader XI
    But at last I have managed to find a simple way to access pdf files from the internet.
    Firstly, without downloading the pdf, I printed the pdf file direct from the Safari page by using the Print icon on the grey lozenge that appears centrally three quarters down the screen.
    Then I discovered that if I save the pdf using the Save icon from this same grey lozenge on the Safari page I can open and print this pdf version from my desktop.
    I've tested it with a couple of different pdf files and these methods work using the grey lozenge icons but the same pdfs files don't work using File - Save As on the Tool Bar.

  • Quesion about BCEL

    Hi,
    I am trying to write a program that will do line coverage (Showing that lines of code are executed). I was looking through the BCEL API and it wasn't much help as there was not much description behind the methods and classes.
    My question is, is there a way of telling whether a line of bytecode has been executed and then relate it back to the original java code?
    Any help would be greatly appreciated,
    Regards,
    Andy

    I haven't used BCEL ( ended up writing my own instead ), but your requirement is a little unusual.
    What do you mean by "telling whether a line of bytecode has been executed and then relate it back to the original java code?"
    Do you want to execute a class and print out the classname and method being executed ? What exactly to do expect to see at the end of your process ?
    A code coverage tool will tell you is there are any methods in your java classes which are not exercised in any unit tests a developer writes.
    A debugger will let you step through the classes so that you can trace the execution path.
    regards,
    Owen

  • Quick quesion about C-Media drivers for Linux

    Ok, I have Linux Mandrake 9.1 working fine on my 865PE board, except for sound. Since I want my Mic port and line in to be used so I can have my 5.1 sound, which set of drivers do I install from C-Media's site, I notice they have two different sets of drivers for mainboards, or, if there is a link on MSI, link me to it, didn't see it on msicomputer.com
    This is the C-Media link
    here
    Thanks.

    6 channels software audio codec C-Media 9739A
    is what is says on the boards page

  • Quick quesion about installing newer versions of Java

    I've got Windows XP Home and I had a quick check in Add or Remove (in Control Panel) and realised that I've got: -
    J2SE Runtime Environment 5.0 Update 5 and
    J2SE Runtime Environment 5.0 Update 6
    I've read that Java Runtime Environment 1.5.0.7 is available.
    I also heard that some older versions of Java may have security holes so should I install Java Runtime Environment 1.5.0.7 and if yes, should I delete the older versions that I've already got?
    Any help would be greatly appreciated.

    Generally the most current version (excluding an initial family release that introduces new features, like 1.5.0) is the most bug-free, since the changes incorporated are bug fixes only.
    None of the versions 1.5.0_05, _06, or _07 have any known security problems.
    Since Java versions are independent, unless you have a specific reason otherwise, only one version is required. Uninstall in reverse install order before installing a new version to minimize potential problems.

  • Quesion about battery warrenty.

    i bought my 5th generation ipod back a little before christmas of 05'. meaning that i no longer have a warrenty for my ipod. (i did not purchase the protection care plan) now i can tell that my ipod battery no longer is holding its charge and i must send it to apple and get a replacement for a fee. now my question is a while back i dropped my iopd and i got a small crack on the screen in the upper left hand corner. my ipod works fine and i can still see most of the screen. will apple replace my ipod because of bettery issues and the crack wont matter. or because i have a crack on my screen will they not do anything at all.

    Hi,
    You can find more information on your notebooks battery on the following links.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00821429&tmp_task=solveCategory&cc=us&dlc=en&la...
    http://h20565.www2.hp.com/hpsc/doc/public/display?DocLang=en&ac.admitted=1414242422543.876444892.492...
    http://h20239.www2.hp.com/techcenter/battery/battery_ts.htm
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Some questions about building  a plug in

    Hello,
    1.I'm trying to build a plug in ( for EM12c release 2 ) for my standalone java application - which exposes mbeans whom i want to collect some metrics with.
    It's been a while since i started to build it - and I asked quite a lot of quesions about it - because the documnets supplied with the EDK and
    the books ( ProgrammersGuide, ProgrammersReferece and the README file ) are not very clear to me ( I'm a newbie with EM in general .. )
    So far some of the questions got answered and were very halpfull with this long process. BUT, there are some questions that nobody answered yet.
    I'm quite "stuck" with it. I'm talking about the questions in : Re: A question about updating metadata files in plug in
    I have a deadline for this plug in ( which is very close ..) so this the reason I post this new message.
    I will appriciate any help about those questions .
    2. Regarding the above, ( hoping to have an answered soon ..) I'm trying another way to buils this plug in:
    In the README file there is this section( 3.6 : using MPCUI ) . I read the programmersReference ( chapter 8 ) and followed the instructions both in the README file and the ProgrammersReference .
    For a begining, I just wanted to modify a small thing in the example supplied ( Demo Host System ) just to get started with something .
    So i modify the file which contains the label ' Select member ... ' ( i don't remember the name of the file since the project is in my office , and I can't copy/paste ..- I think the the file icontians the name ' ConfirmationTarget .xml - it's one of the pages seen while adding a target ) .
    I i changed it , i build the project ( using FlexBuilder) but did not use ANT as it's says in the README - the eclipse IDE build this file automatically
    ( HostSystem.swf  in bin-debug dir as it says in the README ) . I copied this file to stage_dir/oms/metadata/mpcui .
    i build a new plug in ( i incremented the version of it ) - no errors, everty thing was fine .I also copied this file to the oms server ( it wasn't there before )
    and than run the commad ' emctl register oms ...' as it says in section 3.6 - and o got 'Success' eventually .
    Now, when i opened the EM console , hoping to see tge change i made ( again , it's just a change of the title of the step while adding the target , and adding another menuitem to the 3 item that were alreay there ( CPU, FS, etc ) .
    I believe wad i did is right- i mean changing in the right file and place ( there is no title like like this in any oter source file in the whole project )
    but still, I didn't see any change! it seems execatly as it was befoer the change ..
    Any idea?
    Thanks.

    Regarding your question #2. Please read my response here carefully as it covers a number of different issues.
    1. Ant is not required to build the SWF file in your plug-in. It is an OPTION. Section 8.27 describes the different development options using either Ant or FlexBuilder.
    2. You do NOT need to ever copy a SWF file to any location under the OMS runtime. You need to include it in the stage area and then either build an OPAR or use emctl to incrementally update the deployed plug-in. It has to either be deployed as part of the plug-in deployment or updated incrementally using emctl register oms metadata. Section 8.27.2.6 describes the specific steps to do this incremental update.
    Steps to update the SWF associated with demo_hostsample. These are covered in the README and in chapter 8.
    1. deploy the demo_hostsample plug-in as described in the README
    2. create an instance of the Host Sample target type through manually discovery (Add Targets->Add Non-Host Target Specifying Properties)
    3. using the demo_hostsample.zip project in Flex Builder, modify some part of the code, for example, modify the line containing label="Current Status" to label="My New Label"
    4. rebuild the SWF, to be sure you can to a Clean build of the demo_hostsample project
    5. ensure there is an updated copy of the HostSample.swf under demo_hostsample\mpcui\bin-debug (NOT bin-release, unless you Exported A Release Build)
    6. copy that updated HostSample.swf file to the location on the OMS machine where you unzipped and built the OPAR for the demo_hostsample plug-in
    7. cd to the stage/oms/metadata/mpcui directory and replace the current HostSample.swf with the one you just built (BE SURE ITS THE UPDATED FILE)
    8. execute the command "emctl register oms metadata -sysman_pwd sysman -pluginId oracle.sysman.ohs -service mpcui -file demo_hostsample_uimd_swf.xml (BE SURE TO USE THE CORRECT sysman_pwd)
    At this point you should be able to go to the homepage for the Host Sample target you created and see the changes.

  • Questions about job scheduling

    i am a newbie in oracle, and i have several quesions about the scheduler.
    1 If I just have one job class, and there are many concurrent jobs inside. Then, how does oracle exactly schedule those jobs with the same priority?(Will they run for several time slices each time or be executed until completed one by one?)
    2 How does oracle exactly schedule those jobs with different priorities?
    3 If I have two job classes, how will oracle schedule those jobs in these two classes?(each of them is assigned some time slices based on the cpu allocation?)
    I have checked many turorials from oracle, but I have not got any detailed explanations or examples to show how oracle will exactly do it. I am currently doing some QoS management in an application based on oracle, so I am in great need of those information and details inside the scheduler.
    Thanks a lot.

    Hi,
    We have a situation here. We have a Info Warehouse, against which Batch Jobs are scheduled (around 200) using a 3rd party scheduling tool. The window for these jobs is 9pm-8am EST. All the batch jobs were completed withing the SLA window of 11 hours everyday until recently. The data has been growing in the database and the batch jobs have started taking longer time to complete and hence missing out on the SLA.
    We are thinking of using Database Resource Manager inorder to put the Batch Jobs in a Resource Group and bind it to Highest priotiy during the SLA window. Points to Ponder over are :
    Let's assume that we have put the Bacth Jobs in Hight Priority resource group with 80% CPU allocation and it comes into effect at 9pm everyday (that's when the jobs start executing). And, we have put all other users in a different resource group with Low priority (say 10%).
    The situation here is : - What if a user logs into the system at, say 8:45pm. and initiates execution of a huge reporting query against dataset. Assuming that the quesry takes about 60 minutes (during idle database condition), initially it would acquire all the CPU which it needs (as there is no load on the db at this time), and the jobs are scheduled to start at 9pm.
    Q: Will the priority for jobs set per the resource directives to the resource group for jobs take preceedence over the CPU already held by the low priority User?
    -- If Yes, what happens to the User session?
    -- If No, what are the possible scenarios?
    Q: Also, is it feasible to issue a KILL ALL SESSIONS just before the scheduled batch jobs, so that the jobs have a clear path for execution (taking into account that we have already prioritized the Jobs into High Priority Resouce group). So, that we are sure that there is no user connection right before the batch jobs start. and once they start, the resource allocation is going to be done based on the Resource Group priority and CPU assigned to respective group.?
    Q: Or, if it is more feasibile/beneficial to have all other user sessions switch to lower priority after a defined interval, so that it gives the CPU for the jobs.
    Q: Is there a difference between the Database Resource Manager in 9i/10g/11i.
    Any detailed explanation would be appreciated.
    Thanks
    Gaurav

  • Audigy 4 Pro Low Recording Levels/Master Knob/OSD probl

    I purchased a second-hand Audigy 4 Pro. I was not given the software disk but managed to install the latest drivers and get it to play MP3s. I use Adobe Audition to record my old tapes to MP3 and record my attempts at guitar. With my SBLi've I had no problem. I bought the Pro because of the ease of using the breakout box. However I have some quesions about some problems I am having. ) Since I have no Creative software, just Win XP Mixer I don't seem to be able to control the input levels from either the mixer or the box. I have a tape deck using RCA to Line In 3 and an electric and acoustic guitar to Line In 2. The mixer record levels seem to have no effect. I can record but nothing seems to be much more than -20db or so at most. Could this be because Adobe Audition only shows Line In 3 L (ie one channel only)? Could this be because of the much greater dynamic range of the Audigy 4 compared to the SBLi've Value? Do I need additional Creative software and if so what and how to get it please?2) The Master knob on the breakout box just spins round and round without sto
    ps.
    In other words you can rotate it in either direction ad infinitum. Is this correct? Pushing it in and out does cause the mute to work fine. 3) The help file talks about an On Screen Display associated with the remote. I don't have one when I use the remote, even when I press the Display button. Again, do I need Creative software for the remote? I have a yellow question mark against Multimedia Audio Control in my device list. ThanksMessage Edited by Dunkelmann on 2-23-200607:22 PM
    Message Edited by Dunkelmann on 2-23-200607:43 PM
    Message Edited by Dunkelmann on 2-23-200608: PM
    Message Edited by Dunkelmann on 2-23-200608:5 PM

    Wow these forums still suck. You have easy questions and no one bothered to help you out. I registered jsut to answer them for you although you probably already figured it all out. . It seems that loudness is optomized by creatives own drivers. What you described was also true back when you could use the e-mu driver hacks before creative bought e-mu. 2. The master knob indeed spins for infinity, obviously with no effect once you get to either end. This sucks becasue i have OCD and constanly spin this thing all kinds of ways. THey should have used the same system as the line-/mic knob. Only God and the engineer will ever know why they did this. 3 Yes. The on screen display is pat of the creative media player app.
    So to solve all your problems, you can get the full software package from creative.com under the support menu. Just follow the menu options for your device. The software requires that you have the hardware which you do so the software is free. One more problem you WILL have. The software doesnt install under XP. You have to enter windows safe mode and install it from there otherwise the whole thing freezes up during the start of the install process. Fun times!

  • Loosing catalog during rug bin

    Hi everyone,
    i created a catalog with 70 rpm-bundles (Name: Unifa_Basis_Katalog). These bundles have to be installed in a specific order ( bad coding ;-( ).
    I made a script to perform 'rug bin bundle'-commands in the order i need.
    These script is part of a file-bundle and will be activated during postinstall-process.
    After performing an number of 'rug bin'-commands the script freezes.
    The script is still active:
    X5193152:/tmp # date
    Fri Jan 22 14:32:38 CET 2010
    X5193152:/tmp # ps -ef | grep rug
    root 11055 11054 0 12:21 ? 00:00:00 /bin/ksh /tmp/rug_install.x
    root 12346 11055 0 12:24 ? 00:00:02 /opt/novell/zenworks/bin/mono /opt/novell/zenworks/lib/rug/rug.exe bin -y perl-XML-NamespaceSupport
    The 'rug bl'-command shows, that there is no catalog (Unifa_Basis_Katalog) anymore:
    X5193152:/tmp # rug bl
    S | Catalog | Name | Version | Type
    --+-------------------+---------------------+---------+-----
    i | Mandatory Bundles | Unifa_Basis_install | 13 | file
    X5193152:/tmp #
    Here is a part of my logfile with the last correct installation (green):
    22/01/10 12:24:24 : Installationsversuch von perl-libwww-perl
    The following bundles will be installed:
    perl-libwww-perl (version 1)
    The following packages will be installed:
    perl-libwww-perl 5.76-30.1 (Unifa_Basis_Katalog)
    Bundle transaction was successful
    22/01/10 12:24:30 : Versuche Installationsstatus fuer perl-libwww-perl zu ermitteln
    22/01/10 12:24:31 :perl-libwww-perl ist installiert
    22/01/10 12:24:31 : Installationsversuch von perl-XML-NamespaceSupport
    The following bundles will be installed:
    perl-XML-NamespaceSupport (version 1)
    The following packages will be installed:
    perl-XML-NamespaceSupport 1.09-128 (Unifa_Basis_Katalog)
    In the zmd-message.log i found the following entries:
    22 Jan 2010 12:24:25 INFO BundleManager Executing preprepare scripts for perl-libwww-perl-1
    22 Jan 2010 12:24:25 INFO WebCache Attempting to retrieve 'https://130.11.6.10/zenworks-pkgmgt/repo/getBundleFile/c120bafeab609adb154c72f71a9b650b/1/sles-9-i586/perl-libwww-perl-5.76-30.1.i586.rpm' (try 1)
    22 Jan 2010 12:24:26 INFO WebCache Successfully retrieved https://130.11.6.10/zenworks-pkgmgt/...-30.1.i586.rpm
    22 Jan 2010 12:24:26 INFO BundleManager Executing postprepare scripts for perl-libwww-perl-1
    22 Jan 2010 12:24:26 INFO BundleManager Successfully prepared bundles
    22 Jan 2010 12:24:26 INFO BundleManager Beginning bundle transaction
    22 Jan 2010 12:24:26 INFO BundleTransaction Beginning bundle transaction: 1 installs, 0 removals.
    22 Jan 2010 12:24:26 INFO BundleTransaction Executing preinstall scripts for perl-libwww-perl-1
    22 Jan 2010 12:24:26 INFO BundleTransaction Installing perl-libwww-perl-1
    22 Jan 2010 12:24:26 INFO RPMBackend Transaction start, 2 steps
    22 Jan 2010 12:24:26 INFO RPMBackend Transaction start, 2 steps
    22 Jan 2010 12:24:26 INFO RPMBackend Loading installed packages
    22 Jan 2010 12:24:30 INFO HelperProgress ** Message: Added 1 new packages, deleted 0 old
    22 Jan 2010 12:24:30 INFO RPMBackend Finished loading installed packages
    22 Jan 2010 12:24:30 INFO SoftwareInventoryCapability Software changed on system, triggering inventory scan.
    22 Jan 2010 12:24:30 INFO SoftwareInventoryCapability Software changed on system, triggering inventory scan.
    22 Jan 2010 12:24:30 INFO SystemCatalog Added bundle 'perl-libwww-perl-1' to system catalog.
    22 Jan 2010 12:24:30 INFO SystemCatalog Saving system catalog containing 29 bundles
    22 Jan 2010 12:24:30 INFO BundleTransaction Executing postinstall scripts for perl-libwww-perl-1
    22 Jan 2010 12:24:30 INFO BundleTransaction Installed 'perl-libwww-perl-1'
    22 Jan 2010 12:24:30 INFO SystemCatalog Saving system catalog containing 29 bundles
    22 Jan 2010 12:24:30 INFO WebCache Expiring cached files...
    22 Jan 2010 12:24:30 INFO BundleTransaction Novell.Zenworks.Zmd.BUNDLES_INSTALLED: Novell.Zenworks.Zmd.BUNDLES_INSTALLED
    22 Jan 2010 12:24:30 INFO BundleTransaction Updating the log writing into the Database
    22 Jan 2010 12:24:30 INFO Transaction Transaction finished
    22 Jan 2010 12:24:30 INFO BundleTransaction Bundle transaction ended.
    22 Jan 2010 12:24:32 INFO BundleManager Executing preprepare scripts for perl-XML-NamespaceSupport-1
    22 Jan 2010 12:24:32 INFO WebCache Attempting to retrieve 'https://130.11.6.10/zenworks-pkgmgt/repo/getBundleFile/9f646e24e95a202b28ce498b09fa41bb/1/sles-9-i586/perl-XML-NamespaceSupport-1.09-128.i586.rpm' (try 1)
    22 Jan 2010 12:24:33 INFO WebCache Successfully retrieved https://130.11.6.10/zenworks-pkgmgt/...9-128.i586.rpm
    22 Jan 2010 12:24:33 INFO BundleManager Executing postprepare scripts for perl-XML-NamespaceSupport-1
    22 Jan 2010 12:24:33 INFO BundleManager Successfully prepared bundles
    22 Jan 2010 12:24:33 INFO BundleManager Beginning bundle transaction
    22 Jan 2010 12:24:33 INFO BundleTransaction Beginning bundle transaction: 1 installs, 0 removals.
    22 Jan 2010 12:24:33 INFO BundleTransaction Executing preinstall scripts for perl-XML-NamespaceSupport-1
    22 Jan 2010 12:24:33 INFO BundleTransaction Installing perl-XML-NamespaceSupport-1
    22 Jan 2010 12:24:33 INFO RPMBackend Transaction start, 2 steps
    22 Jan 2010 12:24:33 INFO RPMBackend Transaction start, 2 steps
    22 Jan 2010 12:26:18 INFO InventoryRefresh Refreshing Software Inventory
    22 Jan 2010 12:26:22 INFO InventoryRefresh Software Inventory sent successfully
    22 Jan 2010 12:31:48 INFO ServiceManager Scheduled refresh triggered, next refresh at 01/22/2010 12:41:48
    I would be thankfull for any idea.
    Greetings
    Dirk

    Hi Rainer,
    thanks for your ideas.
    Here are some answers to your questions:
    Q: I don't know enough about the software you need to install (just 70 rpm packages or also some files outside from packages ?).
    A:At this moment only packages
    Q:You need to install them just in a specific order and the rpms do not have dependencies configured correctly to allow a automatic resolution ?
    A:Yes
    Q: Do you have a single bundle for each rpm package or do you have a bundle including all 70 packages ?
    A: Yes. I also have a bundle-group and every single bundle is a member of it. Every singel bundle is also a part of the catalog.
    Q: What zlm version are you running ?
    7.3 IR1
    I gave your second idea a try.
    I made a filebundle for the installationscript.
    Here is a part of this Script:
    # MAIN
    date "+%d/%m/%y %H:%M:%S : Start des rug_install"
    date "+%d/%m/%y %H:%M:%S : Katalog abonieren ueber subscription"
    rug sub Unifa_Basis_Katalog
    for bundle in `cat /tmp/$quelldat`
    do
    bundle_name=${bundle}
    date "+%d/%m/%y %H:%M:%S : Installationsversuch von $bundle_name"
    rug in -N -y -c Unifa_Basis_Katalog $bundle_name
    #rug bin -y -N $bundle_name
    done
    For testing i started the script within a console.
    Part of logfile:
    26/01/10 09:57:18 : Start des rug_install
    26/01/10 09:57:18 : Katalog abonieren ueber subscription
    Subscribed to 'Unifa_Basis_Katalog'
    26/01/10 09:57:19 : Installationsversuch von sycfunc
    Resolving Dependencies...
    The following packages will be installed:
    sycfunc 1.02.14-1 (Unifa_Basis_Katalog)
    Transaction Finished
    26/01/10 09:57:19 : Installationsversuch von symbase
    Resolving Dependencies...
    The following packages will be installed:
    sycfunc 1.02.14-1 (Unifa_Basis_Katalog)
    sycfunc-1.02.14-1.noarch: needed by symbase-2.1.13-1.i586
    symbase 2.1.13-1 (Unifa_Basis_Katalog)
    Transaction Finished
    26/01/10 09:57:21 : Installationsversuch von symlicen
    Resolving Dependencies...
    The following packages will be installed:
    symlicen 1.3.02-1 (Unifa_Basis_Katalog)
    Transaction Finished
    26/01/10 09:57:33 : Installationsversuch von update-alternatives
    Resolving Dependencies...
    The following packages will be installed:
    update-alternatives 1.8.3-4 (Unifa_Basis_Katalog)
    Transaction Finished
    26/01/10 09:57:35 : Installationsversuch von zip
    Resolving Dependencies...
    Terminated At 11:00 am i killed the 'rug in...' for the zip installation
    26/01/10 11:00:38 : Installationsversuch von sysstat
    ERROR: 'Unifa_Basis_Katalog' is not a valid catalog.
    26/01/10 11:00:38 : Installationsversuch von swccobrt
    ERROR: 'Unifa_Basis_Katalog' is not a valid catalog.
    Here is the part of the zlm-messages.log:
    26 Jan 2010 09:57:34 INFO WebCache Attempting to retrieve 'https://130.11.6.10/zenworks-pkgmgt/repo/getBundleFile/5af2b69f99bc14f32f346d6d059ee8bb/1/sles-9-i586/update-alternatives-1.8.3-4.noarch.rpm' (try 1)
    26 Jan 2010 09:57:34 INFO WebCache Using cached content for https://130.11.6.10/zenworks-pkgmgt/...3-4.noarch.rpm
    26 Jan 2010 09:57:34 INFO RPMBackend Transaction start, 2 steps
    26 Jan 2010 09:57:35 INFO WebCache Expiring cached files...
    26 Jan 2010 09:57:35 INFO Transaction Transaction finished
    26 Jan 2010 09:57:38 INFO ServiceManager Scheduled refresh triggered, next refresh at 01/26/2010 10:07:38
    26 Jan 2010 09:57:38 INFO ZenService Collecting registration information...
    26 Jan 2010 09:57:51 INFO ZenService Registering device
    26 Jan 2010 09:57:51 INFO ZenService Registration successful, response was 'X5193151'
    26 Jan 2010 09:57:51 INFO ZenService Refreshing capability 'settings'
    26 Jan 2010 09:57:51 INFO ZenService Successfully refreshed capability 'settings'
    26 Jan 2010 09:57:51 INFO ZenService Refreshing capability 'Log'
    26 Jan 2010 09:57:51 INFO ZenService Successfully refreshed capability 'Log'
    26 Jan 2010 09:57:51 INFO ZenService Refreshing capability 'policymanager'
    26 Jan 2010 09:57:51 INFO ZenService Successfully refreshed capability 'policymanager'
    26 Jan 2010 09:57:51 INFO ZenService Refreshing capability 'Hardware Inventory'
    26 Jan 2010 09:57:51 INFO InventoryCapability Hardware Inventory does nothing on refresh.
    26 Jan 2010 09:57:51 INFO ZenService Successfully refreshed capability 'Hardware Inventory'
    26 Jan 2010 09:57:51 INFO ZenService Refreshing capability 'System Inventory'
    26 Jan 2010 09:57:51 INFO InventoryCapability System Inventory does nothing on refresh.
    26 Jan 2010 09:57:51 INFO ZenService Successfully refreshed capability 'System Inventory'
    26 Jan 2010 09:57:51 INFO ZenService Refreshing capability 'Software Inventory'
    26 Jan 2010 09:57:51 INFO InventoryCapability Software Inventory does nothing on refresh.
    26 Jan 2010 09:57:51 INFO ZenService Successfully refreshed capability 'Software Inventory'
    26 Jan 2010 09:57:51 INFO ZenService Refreshing capability 'pkgmgt-repo'
    26 Jan 2010 09:57:51 INFO WebCache Attempting to retrieve 'https://130.11.6.10/zenworks-pkgmgt/repo/getBundleInfo/sles-9-i586' (try 1)
    26 Jan 2010 09:57:52 INFO WebCache Using cached content for https://130.11.6.10/zenworks-pkgmgt/...fo/sles-9-i586
    26 Jan 2010 09:57:52 INFO BundleCapability Bundle metadata download completed
    26 Jan 2010 09:57:52 INFO BundleCapability Loaded 73 bundles
    26 Jan 2010 09:57:52 INFO WebCache Attempting to retrieve 'https://130.11.6.10/zenworks-pkgmgt/repo/getCatalogInfo' (try 1)
    26 Jan 2010 09:57:52 INFO WebCache Using cached content for https://130.11.6.10/zenworks-pkgmgt/repo/getCatalogInfo
    26 Jan 2010 09:57:52 INFO BundleCapability Clearing catalogs
    26 Jan 2010 10:01:26 INFO InventoryRefresh Refreshing Software Inventory
    26 Jan 2010 10:01:27 INFO InventoryRefresh Software Inventory sent successfully
    26 Jan 2010 10:07:38 INFO ServiceManager Scheduled refresh triggered, next refresh at 01/26/2010 10:17:38
    26 Jan 2010 10:07:38 INFO Progress Progress.Stop Message: A Refresh request already Running. This Refresh is Ignored. Please Try After Sometime.
    26 Jan 2010 10:07:38 INFO DaemonHealth Current RSS size is 32156 KB
    26 Jan 2010 10:17:38 INFO ServiceManager Scheduled refresh triggered, next refresh at 01/26/2010 10:27:38
    26 Jan 2010 10:17:38 INFO Progress Progress.Stop Message: A Refresh request already Running. This Refresh is Ignored. Please Try After Sometime.
    26 Jan 2010 10:27:38 INFO ServiceManager Scheduled refresh triggered, next refresh at 01/26/2010 10:37:38
    26 Jan 2010 10:27:38 INFO Progress Progress.Stop Message: A Refresh request already Running. This Refresh is Ignored. Please Try After Sometime.
    26 Jan 2010 10:57:38 INFO ServiceManager Scheduled refresh triggered, next refresh at 01/26/2010 11:07:38
    26 Jan 2010 10:57:38 INFO Progress Progress.Stop Message: A Refresh request already Running. This Refresh is Ignored. Please Try After Sometime.
    26 Jan 2010 11:07:38 INFO ServiceManager Scheduled refresh triggered, next refresh at 01/26/2010 11:17:38
    26 Jan 2010 11:07:38 INFO Progress Progress.Stop Message: A Refresh request already Running. This Refresh is Ignored. Please Try After Sometime.
    Maybe there is a problem with the sheduled refresh hitting the installation?
    I have a quesion about your third suggestion.
    The dependencies in the empty package will not be used in a random order?
    Sorry if this is a dump question. I am new to rpm.
    Greetings
    Dirk

  • Flex 3: Update SQLite Table Structure?

    I don't have any issues with creating my table when it doesn't exist but I have a quesion about updating the table structure.  For instance I want to add two new fields if they don't exist.
    Does anyone have an example of updating table structure?  Process flow would have to first check for table, if it doesn't exits then create it. If it does exist then check it has all the correct fields.  If it doesn't then update table structure. 
    Is there a built in way to do this with SQLite?
    Here is my current code...
    private function getRecords():void
    var sqlQuery:String = "CREATE TABLE IF NOT EXISTS Roster (" +
                            "selected TEXT DEFAULT 'false' NOT NULL,"+
                            "name    TEXT        NOT NULL," +
                            "time     TEXT        NOT NULL," +
                            "gender     TEXT        NOT NULL" +
    dbStatement = new SQLStatement();
    dbStatement.itemClass = Roster;
    dbStatement.sqlConnection = exampleDB;
    dbStatement.text = sqlQuery;
    dbStatement.addEventListener(SQLEvent.RESULT, onDBStatementSelectResult);
    dbStatement.execute();
    sqlQuery= "select * from Roster";
    dbStatement.text = sqlQuery;
    dbStatement.addEventListener(SQLEvent.RESULT, onDBStatementSelectResult);
    dbStatement.execute();
    I want to add in two new fields is possible without asking user to delete the table first.
                            "wins TEXT DEFAULT '0' NOT NULL," +
                            "loses TEXT DEFAULT '0' NOT NULL" +
    Thanks in advance.

    Looks like you need a single column to identify the type of user (M,C or A) Much better this scenario described here
    http://vyaskn.tripod.com/row_level_security_in_sql_server_databases.htm
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for

  • How can I get the Airplay to appear on my iPhone 4S and iPad 2?

    I have an iPad 2 and an iPhone 4S, and I have never seen the Airplay button that should appear on each device. I have checked wifi and it seems to works fine for printer and e-readers. Also, I have updated to the latest OS version as of this week. Is

  • WCM Work Operation tab  is disappearing in Maintenance Order

    HI All, I am facing problem in WCM. In the Maintenance Order,Work Operation tab  is disappear after seleting Task list. After saving the maintenance order and open in change mode,The WCM operation tab appears again. Can anybody help me on this Thnaks

  • Ipod Classic 120g - How to make it work again? Was formatted by windows.

    My ipod classic shows as "removable device" in the finder, but does not appear on itunes. The iPod was formatted as a mobile device on windows. How to make it work again?

  • AdvancedDataGrid as a itemRenderer

    I am trying to make a list menu using advanceddatagrid. What I would like is a 1 column item with a tree control. I have created that. Then when you pull it down it pulls in a data grid below it. I have this mxml code: <mx:Canvas width="300" height="

  • Airport express/extreme weirdness

    Hey, all. I have an AirPort Extreme as my main router. I have an airport express in a building next door that I am using to extend my wireless network. Has worked pretty well for a while now. Just switched internet providers, and my AirPort Extreme s