Need advice on tuning about a query?

Hi experts,
I want to tune this query
Before effect
SELECT   NVL (MAX (a.actual_to_date + 1),
                    b.date_of_joining
                   ) AS start_date
          FROM HR_JUDGE_MONTH_SALARY a, HR_JUDGE_MASTER b
         WHERE a.judge_code(+) = b.judge_code AND b.judge_code = :b1
      GROUP BY b.judge_code, b.date_of_joining
call     count       cpu    elapsed       disk      query    current        rows
Parse        0      0.00       0.00          0          0          0           0
Execute    261      0.00       0.00          0          0          0           0
Fetch      261      2.01     133.50      28045     194499          0         261
total      522      2.01     133.51      28045     194499          0         261There are 2 tables involved in this query.
1. tables are not have proper statistics
2. indexes are not analyzed,
so i did the following changes.
select count(*) from HR_JUDGE_MASTER;
select * from user_tables where table_name = 'HR_JUDGE_MASTER';
eXEC DBMS_STATS.gather_table_stats('MOJ_PRD','HR_JUDGE_MASTER');
EXEC DBMS_STATS.GATHER_INDEX_STATS('MOJ_PRD','SYS_C004215')
select count(*) from HR_JUDGE_MONTH_SALARY;
select * from user_tables where table_name = 'HR_JUDGE_MONTH_SALARY';
eXEC DBMS_STATS.gather_table_stats('MOJ_PRD','HR_JUDGE_MONTH_SALARY');
EXEC DBMS_STATS.GATHER_INDEX_STATS('MOJ_PRD','SYS_C004268')after effect
SELECT   NVL (MAX (a.actual_to_date + 1),
                    b.date_of_joining
                   ) AS start_date
          FROM HR_JUDGE_MONTH_SALARY a, HR_JUDGE_MASTER b
         WHERE a.judge_code(+) = b.judge_code AND b.judge_code = :b1
      GROUP BY b.judge_code, b.date_of_joining
call     count       cpu    elapsed       disk      query    current        rows
Parse        1      0.00       0.00          0          0          0           0
Execute    261      0.01       0.00          0          0          0           0
Fetch      261     15.76     153.03     797959    1151271          0         261
total      523     15.78     153.03     797959    1151271          0         261
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 63  (MOJ_PRD)   (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not existPlease guide me in this regards.
Thanks in advance
kanish

i have the whole trace file even though i am not able to identify the "wait".
The whole file i am not able to attach here, it said the beyond the maximum limit.
anyway i am attaching the partial one
TKPROF: Release 9.2.0.1.0 - Production on Tue Oct 9 13:06:20 2012
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
Trace file: c:\orcl_ora_4040_kamaltrc.trc
Sort options: default
count    = number of times OCI procedure was executed
cpu      = cpu time in seconds executing
elapsed  = elapsed time in seconds executing
disk     = number of physical reads of buffers from disk
query    = number of buffers gotten for consistent read
current  = number of buffers gotten in current mode (usually for update)
rows     = number of rows processed by the fetch or execute call
DECLARE
  P_MONTH VARCHAR2(32767);
  P_YEAR VARCHAR2(32767);
BEGIN
  P_MONTH := '11';
  P_YEAR := '2012';
  MOJ_PRD.CALC_PAYROLL ( P_MONTH, P_YEAR );
  COMMIT;
END;
call     count       cpu    elapsed       disk      query    current        rows
Parse        1      0.01       0.00          0          0          0           0
Execute      2      0.76       1.05          0          0          0           1
Fetch        0      0.00       0.00          0          0          0           0
total        3      0.78       1.06          0          0          0           1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 63  (MOJ_PRD)
DELETE FROM HR_JUDGE_PRE_MONTH_SALARY_TEMP
         WHERE 1 = 1
call     count       cpu    elapsed       disk      query    current        rows
Parse        0      0.00       0.00          0          0          0           0
Execute      1      0.03       0.09         27         72       6438        1231
Fetch        0      0.00       0.00          0          0          0           0
total        1      0.03       0.09         27         72       6438        1231
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63  (MOJ_PRD)   (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 80
DELETE FROM HR_JUDGE_ALW_DED_STD_TEMP
         WHERE 1 = 1
call     count       cpu    elapsed       disk      query    current        rows
Parse        0      0.00       0.00          0          0          0           0
Execute      1      0.00       0.02         20         37        969         861
Fetch        0      0.00       0.00          0          0          0           0
total        1      0.00       0.02         20         37        969         861
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63  (MOJ_PRD)   (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 80
SELECT judge_code, date_of_joining, date_of_relieving,CONTRACT_TYPE_CODE
        FROM HR_JUDGE_MASTER
       WHERE enabled_flag = 'Y'
       -- AND judge_code = '114899'
         AND workflow_completion_status = 'Y'
         AND include_pay = 'Y'
         AND judge_status NOT IN ('000003', '000004', '000007')
-- AND date_of_relieving IS NULL
         AND (   (date_of_relieving IS NULL)
              OR (TO_DATE (TO_CHAR (date_of_relieving, 'MM/YYYY'), 'MM/YYYY') >=
                             TO_DATE (TO_CHAR (SYSDATE, 'MM/YYYY'), 'MM/YYYY')
         AND judge_code IN (SELECT judge_code
                              FROM JUDGE_TEMP)
call     count       cpu    elapsed       disk      query    current        rows
Parse        0      0.00       0.00          0          0          0           0
Execute      2      0.00       0.00          0          0          0           0
Fetch      524      0.04       0.98        288        568          0         522
total      526      0.04       0.98        288        568          0         522
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63  (MOJ_PRD)   (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 154
INSERT INTO HR_JUDGE_ALW_DED_STD_TEMP
         SELECT *
           FROM HR_JUDGE_ALW_DED
          WHERE percent_value_tag = 'S' AND judge_code = :b1
call     count       cpu    elapsed       disk      query    current        rows
Parse        0      0.00       0.00          0          0          0           0
Execute    261      0.07       3.02        464       2926        269         861
Fetch        0      0.00       0.00          0          0          0           0
total      261      0.07       3.02        464       2926        269         861
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63  (MOJ_PRD)   (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 140
SELECT   NVL (MAX (a.actual_to_date + 1),
                    b.date_of_joining
                   ) AS start_date
          FROM HR_JUDGE_MONTH_SALARY a, HR_JUDGE_MASTER b
         WHERE a.judge_code(+) = b.judge_code AND b.judge_code = :b1
      GROUP BY b.judge_code, b.date_of_joining
call     count       cpu    elapsed       disk      query    current        rows
Parse        0      0.00       0.00          0          0          0           0
Execute    261      0.00       0.00          0          0          0           0
Fetch      261      2.01     133.50      28045     194499          0         261
total      522      2.01     133.51      28045     194499          0         261
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63  (MOJ_PRD)   (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 223
SELECT MIN (a.applied_to_date) AS d1
       FROM HR_JUDGE_LEAVE_ATTEN a
      WHERE a.applied_to_date >= :b3
        AND a.applied_from_date <=
                                  ((TO_DATE (:b2, 'dd/MM/rrrr')) + 20
        AND a.judge_code = :b1
        --AND a.leave_code = 'ORDINARY'
        AND a.salary_advance_req = 'Y'
        AND a.enabled_flag = 'Y'
        AND a.workflow_completion_status = 'Y'
call     count       cpu    elapsed       disk      query    current        rows
Parse        0      0.00       0.00          0          0          0           0
Execute    261      0.03       0.00          0          0          0           0
Fetch      261      0.00       0.74        103       3547          0         261
total      522      0.03       0.75        103       3547          0         261
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63  (MOJ_PRD)   (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 117
SELECT  COUNT(*) FROM HR_JUDGE_LEAVE_ATTEN WHERE judge_code = :b2   
    AND TO_NUMBER(TO_CHAR(applied_from_Date, 'mm')) <= TO_NUMBER(:b1)
    AND salary_advance_req='N'
      AND NVL(IS_RESUMPTION_REQ,'Invalid')='Y' -- 11-Oct-2011  modified to handle cancelled ordinary leave where advaces taked
    AND flag!='T'
    AND Req_Ext_No IS NULL
    AND resumed_date IS NULL
call     count       cpu    elapsed       disk      query    current        rows
Parse        0      0.00       0.00          0          0          0           0
Execute    261      0.00       0.00          0          0          0           0
Fetch      261      0.03       0.00          0       3547          0         261
total      522      0.03       0.01          0       3547          0         261
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63  (MOJ_PRD)   (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 90
SELECT  COUNT(*) FROM HR_JUDGE_LEAVE_ATTEN WHERE judge_code = :b2
    AND TO_NUMBER(TO_CHAR(applied_to_Date, 'mm')) <= TO_NUMBER(:b1)
    AND salary_advance_req='Y'
      AND NVL(IS_RESUMPTION_REQ,'Invalid')='Y' -- 11-Oct-2011  modified to handle cancelled ordinary leave where advaces taked
    AND flag!='T'
    AND Req_Ext_No IS NULL
    AND resumed_date IS NULL
call     count       cpu    elapsed       disk      query    current        rows
Parse        0      0.00       0.00          0          0          0           0
Execute    195      0.00       0.00          0          0          0           0
Fetch      195      0.00       0.00          0       2475          0         195
total      390      0.00       0.00          0       2475          0         195
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63  (MOJ_PRD)   (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 90
SELECT a.alw_ded_code, a.alw_ded_tag, a.percent_value_tag,
             CASE
                WHEN a.percent_value_tag = 'V'
                   THEN a.alw_ded_amount
               -- OLD COD REMOVED BY KAMAL   
--                WHEN a.percent_value_tag = 'S'
--                   THEN a.inst_amount
               -- NEW CODE ADDED BY KAMAL              
               WHEN a.percent_value_tag = 'S' AND a.inst_amount > a.total_amount
                THEN
                      a.total_amount                                 
                WHEN a.percent_value_tag = 'S' AND a.inst_amount < a.total_amount
                   THEN
                      a.inst_amount 
                -- END OF NEW CODE     
                WHEN a.percent_value_tag = '%'
                   THEN   (SELECT aa.alw_ded_amount
                             FROM HR_JUDGE_ALW_DED aa
                            WHERE aa.alw_ded_code =
                                                 a.parent_alw_ded_code
                              AND aa.judge_code = :b3)
                        * (alw_ded_percent / 100)
             END AS amt,
             a.effective_from, a.effective_till, a.is_pay_monthly,
             a.is_pay_print,a.total_amount
        FROM HR_JUDGE_ALW_DED a
       WHERE a.judge_code = :b3
         AND a.effective_from <= :b2
         AND a.effective_till >= :b1
         AND a.enabled_flag = 'Y'
call     count       cpu    elapsed       disk      query    current        rows
Parse        0      0.00       0.00          0          0          0           0
Execute    184      0.00       0.00          0          0          0           0
Fetch     2590      0.06       0.02          0       7542          0        2406
total     2774      0.06       0.02          0       7542          0        2406
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63  (MOJ_PRD)   (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 1315
INSERT INTO HR_JUDGE_PRE_MONTH_SALARY_TEMP
                        (judge_code, alw_ded_tag, alw_ded_code,
                         alw_ded_amount, from_period,
                         to_period, is_pay_monthly, is_include_payslip,
                         ccid,
                         language_code, org_unit_code, enabled_flag,
                         workflow_completion_status, created_by,
                         created_date, actual_from_date, actual_to_date
                 VALUES (:b6, :b7, :b5,
                         0, TO_DATE (:b4, 'dd/MM/rrrr'),
                         TO_DATE (:b3, 'dd/MM/rrrr'), 'Y', 'Y',
                            :b6
                         || :b5
                         || :b4
                         || :b3,
                         'AR', 'MOJ', 'Y',
                         'Y', 'admin',
                         SYSDATE, :b2, :b1
call     count       cpu    elapsed       disk      query    current        rows
Parse        0      0.00       0.00          0          0          0           0
Execute   1203      0.06       1.31        213         22       6252        1203
Fetch        0      0.00       0.00          0          0          0           0
total     1203      0.06       1.31        213         22       6252        1203
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63  (MOJ_PRD)   (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist

Similar Messages

  • Need some advice in tuning paging search query

    version:11.1.0.7
    SQL
    select count(*) from  TRANS_DETAILS
    where accounting_date <= to_date('06/21/2011', 'mm/dd/yyyy') and accounting_date >= to_date('06/01/2011', 'mm/dd/yyyy')
    and id = '1' and distributor_id in ( 'BUAP9' ,'DBLD9' ,'IGMI9','IMA','IMCAD', 'IMCAQ', 'IMCSD', 'IMILD' ,'IMPAD' ,'IMTND'  ,'IMTXD' ,
    'INGB8','INGB9' ,'INGBO','INGC9' ,'INGEN' ,'INIH7' ,'MIDXJ' )
    group by authorized_id,  accounting_date, currency_code_unit_refund,   distributor_id, return_id,  warehouse_id;
    Plan hash value: 668952704
    | Id  | Operation               | Name                      | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |    TQ  |IN-OUT| PQ Distrib |
    |   0 | SELECT STATEMENT        |                           |  1553 | 62120 |  1479   (1)| 00:00:18 |       |       |        |      |            |
    |   1 |  PX COORDINATOR         |                           |       |       |            |          |       |       |        |      |            |
    |   2 |   PX SEND QC (RANDOM)   | :TQ10001                  |  1553 | 62120 |  1479   (1)| 00:00:18 |       |       |  Q1,01 | P->S | QC (RAND)  |
    |   3 |    HASH GROUP BY        |                           |  1553 | 62120 |  1479   (1)| 00:00:18 |       |       |  Q1,01 | PCWP |            |
    |   4 |     PX RECEIVE          |                           |  1553 | 62120 |  1478   (1)| 00:00:18 |       |       |  Q1,01 | PCWP |            |
    |   5 |      PX SEND HASH       | :TQ10000                  |  1553 | 62120 |  1478   (1)| 00:00:18 |       |       |  Q1,00 | P->P | HASH       |
    |   6 |       PX BLOCK ITERATOR |                           |  1553 | 62120 |  1478   (1)| 00:00:18 |     1 |     1 |  Q1,00 | PCWC |            |
    |*  7 |        TABLE ACCESS FULL| TRANS_DETAILS             |  1553 | 62120 |  1478   (1)| 00:00:18 |    81 |    81 |  Q1,00 | PCWP |            |
    Predicate Information (identified by operation id):
       7 - filter(("DISTRIBUTOR_ID"='BUAP9' OR "DISTRIBUTOR_ID"='DBLD9' OR "DISTRIBUTOR_ID"='IGMI9' OR "DISTRIBUTOR_ID"='IMA' OR
                  "DISTRIBUTOR_ID"='IMCAD' OR "DISTRIBUTOR_ID"='IMCAQ' OR "DISTRIBUTOR_ID"='IMCSD' OR "DISTRIBUTOR_ID"='IMILD' OR "DISTRIBUTOR_ID"='IMPAD'
                  OR "DISTRIBUTOR_ID"='IMTND' OR "DISTRIBUTOR_ID"='IMTXD' OR "DISTRIBUTOR_ID"='INGB8' OR "DISTRIBUTOR_ID"='INGB9' OR
                  "DISTRIBUTOR_ID"='INGBO' OR "DISTRIBUTOR_ID"='INGC9' OR "DISTRIBUTOR_ID"='INGEN' OR "DISTRIBUTOR_ID"='INIH7' OR "DISTRIBUTOR_ID"='MIDXJ')
                  AND "ACCOUNTING_DATE"<=TO_DATE(' 2011-06-21 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "ACCOUNTING_DATE">=TO_DATE(' 2011-06-01 00:00:00',
                  'syyyy-mm-dd hh24:mi:ss'))Date filter is going to be 2 to 3 weeks date range. Underlying table is a 5 GB range partitioned table on accounting_date. Current elapsed time is 10 sec which is kind of little long and i am experiencing frequent time-outs.
    I tried to play around with converting global non partitioned index on distributor_id into Local partitioned index with DOP=8 but it did not help in bringing the query elapsed time.
    Application is truly a core OLTP system and data its retrieving is very much volatile in nature.
    Above select is retrieving around 1k records and its records are going to be make visible in web-browser around 20 records one by one in each sub-sequent page.
    I believe, the GROUP BY clause needs entire dataset to be processed first before sending resultset to the web-browser (client). Am i correct in understanding that ?
    Is there any options to tune the query further ?
    Object statistics:
    select count(*) from TRANS_DETAILS where
    id = '1' and distributor_id in ( 'BUAP9' ,'DBLD9' ,'IGMI9','IMA','IMCAD', 'IMCAQ', 'IMCSD', 'IMILD' ,'IMPAD' ,'IMTND'  ,'IMTXD' ,
    'INGB8','INGB9' ,'INGBO','INGC9' ,'INGEN' ,'INIH7' ,'MIDXJ' );
      COUNT(*)
        742722
    Enter value for column_name: DISTRIBUTOR_ID
    COLUMN_NAME             NUM_DISTINCT  NUM_NULLS LAST_ANALYZED      SAMPLE_SIZE AVG_COL_LEN HISTOGRAM
    DISTRIBUTOR_ID                 29970          0 20.Mar.11/10:06:33        5594           6 HEIGHT BALANCED
    TABLE_NAME                     PAR   NUM_ROWS     BLOCKS TO_CHAR(LAST_ANAL SAMPLE_SIZE
    O_DIST_RETURN_TXN_DETAILS      YES   36925109    1874557 01-06-11:22:10:17    36925109

    OraDBA02 wrote:
    version:11.1.0.7
    SQL
    select count(*) from  TRANS_DETAILS
    where accounting_date <= to_date('06/21/2011', 'mm/dd/yyyy') and accounting_date >= to_date('06/01/2011', 'mm/dd/yyyy')
    and id = '1' and distributor_id in ( 'BUAP9' ,'DBLD9' ,'IGMI9','IMA','IMCAD', 'IMCAQ', 'IMCSD', 'IMILD' ,'IMPAD' ,'IMTND'  ,'IMTXD' ,
    'INGB8','INGB9' ,'INGBO','INGC9' ,'INGEN' ,'INIH7' ,'MIDXJ' )
    group by authorized_id,  accounting_date, currency_code_unit_refund,   distributor_id, return_id,  warehouse_id;
    Plan hash value: 668952704
    | Id  | Operation               | Name                      | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |    TQ  |IN-OUT| PQ Distrib |
    |   0 | SELECT STATEMENT        |                           |  1553 | 62120 |  1479   (1)| 00:00:18 |       |       |        |      |            |
    |   1 |  PX COORDINATOR         |                           |       |       |            |          |       |       |        |      |            |
    |   2 |   PX SEND QC (RANDOM)   | :TQ10001                  |  1553 | 62120 |  1479   (1)| 00:00:18 |       |       |  Q1,01 | P->S | QC (RAND)  |
    |   3 |    HASH GROUP BY        |                           |  1553 | 62120 |  1479   (1)| 00:00:18 |       |       |  Q1,01 | PCWP |            |
    |   4 |     PX RECEIVE          |                           |  1553 | 62120 |  1478   (1)| 00:00:18 |       |       |  Q1,01 | PCWP |            |
    |   5 |      PX SEND HASH       | :TQ10000                  |  1553 | 62120 |  1478   (1)| 00:00:18 |       |       |  Q1,00 | P->P | HASH       |
    |   6 |       PX BLOCK ITERATOR |                           |  1553 | 62120 |  1478   (1)| 00:00:18 |     1 |     1 |  Q1,00 | PCWC |            |
    |*  7 |        TABLE ACCESS FULL| TRANS_DETAILS             |  1553 | 62120 |  1478   (1)| 00:00:18 |    81 |    81 |  Q1,00 | PCWP |            |
    Predicate Information (identified by operation id):
    7 - filter(("DISTRIBUTOR_ID"='BUAP9' OR "DISTRIBUTOR_ID"='DBLD9' OR "DISTRIBUTOR_ID"='IGMI9' OR "DISTRIBUTOR_ID"='IMA' OR
    "DISTRIBUTOR_ID"='IMCAD' OR "DISTRIBUTOR_ID"='IMCAQ' OR "DISTRIBUTOR_ID"='IMCSD' OR "DISTRIBUTOR_ID"='IMILD' OR "DISTRIBUTOR_ID"='IMPAD'
    OR "DISTRIBUTOR_ID"='IMTND' OR "DISTRIBUTOR_ID"='IMTXD' OR "DISTRIBUTOR_ID"='INGB8' OR "DISTRIBUTOR_ID"='INGB9' OR
    "DISTRIBUTOR_ID"='INGBO' OR "DISTRIBUTOR_ID"='INGC9' OR "DISTRIBUTOR_ID"='INGEN' OR "DISTRIBUTOR_ID"='INIH7' OR "DISTRIBUTOR_ID"='MIDXJ')
    AND "ACCOUNTING_DATE"<=TO_DATE(' 2011-06-21 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "ACCOUNTING_DATE">=TO_DATE(' 2011-06-01 00:00:00',
    'syyyy-mm-dd hh24:mi:ss'))
    Please post the same as above, but with NO parallel processing enabled?

  • Need Help in tuning of the query

    Hi all,
    Can any body help me how we can rewrite this query in
    optimized way.
    SELECT A.C1 AS COLUMN_1, B.C2 AS COLUMN_2
    FROM A,B
    WHERE A.C1 IN (
    SELECT COLUMN_1 FROM(
    (SELECT A.C1 AS COLUMN_1,
    COUNT(C1) AS COUNT,
    RANK() OVER (ORDER BY COUNT(C1) DESC) AS RANK
    FROM A, B, C
    WHERE A.C1 = B.C3
    AND B.C2 = C.C1
    AND <other conditions>
    GROUP BY A.C1)
    WHERE RANK <= 10)
    AND A.C1 = B.C3
    AND <other conditions>
    ORDER BY A.C1
    I am using <other conditions> are same in outer query and inner query also.
    Thanks in Advance,

    Hi,
    Yes exactly I am looking TOP-10 results the query is like this
    SELECT A.C1 AS COLUMN_1, B.C2 AS COLUMN_2
    FROM A,B
    WHERE B.C2 IN (
    SELECT COLUMN_1 FROM(
    (SELECT B.C2 AS COLUMN_1,
    COUNT(A.C1) AS COUNT,
    RANK() OVER (ORDER BY COUNT(C1) DESC) AS RANK
    FROM A, B, C
    WHERE A.C1 = B.C3
    AND B.C2 = C.C1
    AND <other conditions>
    GROUP BY B.C2)
    WHERE RANK <= 10)
    AND A.C1 = B.C3
    AND <other conditions>
    ORDER BY B.C2
    Thanks

  • I need a detailed explanation about this query!

    Hey Guys,
    I'm doing a course on distributed databases at uni. I have got this query but I am not 100% sure what is being executed first, the queries between brackets or outter ones.
    What is the difference between semi-join and join queries?
    what's meant by "WHERE EXISTS" clause?
    what's the union do with the results?
    SELECT C.COUNTRYNAME, C.CODE FROM "USER_HP_FULL"."COUNTRY" C
    WHERE EXISTS(
    SELECT 1 FROM (SELECT * FROM "USER1_HP_FULL"."ATHLETE1_REPLICA1"
    UNION SELECT * FROM "USER2_HP_FULL"."ATHLETE2_REPLICA1"
    UNION SELECT * FROM "USER3_HP_FULL"."ATHLETE3_REPLICA1") A
    WHERE A.CCODE = C.CODE)
    ORDER BY C.COUNTRYNAME;
    Thank you!

    >
    I'm doing a course on distributed databases at uni. I have got this query but I am not 100% sure what is being executed first, the queries between brackets or outter ones.
    >
    Then you should
    1. open a sql*plus command window
    2. log on as a user with the correct privileges
    3. set serveroutput on
    4. set autotrace traceonly
    5. execute the query
    Examine the execution plan - it will show you what is being executed first. If you have questions post the plan using \ tags.
    {quote}
    What is the difference between semi-join and join queries?
    {quote}
    The documentation is your friend.
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/queries006.htm
    {quote}
    what's meant by "WHERE EXISTS" clause?
    {quote}
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/conditions012.htm#sthref2960
    {quote}
    EXISTS Condition An EXISTS condition tests for existence of rows in a subquery.
    {quote}
    {quote}
    what's the union do with the results?
    {quote}
    Eliminates duplicates in multiple query results
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/queries004.htm
    See 'The UNION [ALL], INTERSECT, MINUS Operators' in the SQL Language doc
    {quote}
    UNION Example The following statement combines the results of two queries with the UNION operator, which eliminates duplicate selected rows.
    {quote}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Need advice about H.264 and Apple ProRes 422.

    When exporting a "master file" I can encode the video as H.264 or Apple ProRes 422 (etc). The H.264 is more compressed but still in 1080p? Does this mean that I do not have to compress the file with "Compressor"? What is the advantage of using ProRes and what is the advantage of using H.264? I want of course the files to be as small as possible but still at the best quality. Any advice?
    Thanks.

    ProRes is an editing format. If you are archiving a finished project, you can create an extremely high quality "print" with H.264. ProRes 422 will use approximately three times as much memory. ProRes 422(HQ) roughly four times and ProRes 4444 up to 10 times (compared to the size of the file FCPX will export as H.264). 
    FCPX exports (shares) H.264 in highest quality (over 45Mbits/sec [if needed] for 1080p), you have no options to adjust for smaller files (or lesser quality from FCPX.)
    To get "as small as possible," you'll need to learn more about compressing video. As a comparison (to FCPX), YouTube limits a maximum bandwidth of 8Mbps (used to be 5Mbps -- I *still* compress to 5Mbps before uploading.) Even compressed this highly, H.264 provides excellent results. [Compressing in ProRes is going from 4444 down to 422 Proxy (not to be confused with proxy media used in FCPX which is 1/4 resolution, i.e. 960x540 for 1080, ProRes 422.) You cannot compress each of the different ProRes flavors individually.]
    You'll need other software to compress further than FCPX.  I use Quicktime 7 Pro. Compressor is another way to go (Compressor will let you set "compression markers" so you can vary the bitrates through various sections of your work).  The way to figure out your compression level is to find a section (less than a minute) with the highest motion high contrast (and/or changing gradients) and export at different bitrates. Watch for "jpeg artifacts" (blocking) and once you've gotten past that, that's the bitrate you should compress to. (I've had some clips that required at least 20Mbps.) It just takes a little practice to get a feel for it.

  • Need help th tuning query or re write the query--

    Hi,
    Need help to tune the below query or rewrite th query for reducing the execution time Please find the query and explain plan.
    QUERY
    explain plan FOR SELECT consumer_key,product_key,days_in_product,20100201 period_key FROM
    (SELECT consumer_key,
      product_key,
      days_in_product,
      row_number() over ( Partition BY consumer_key order by Days_in_product DESC) row_num
    FROM
      (SELECT consumer_key,
        product_key,
        SUM(no_ofdays) days_in_product
      FROM
        (SELECT pcv.consumer_key,
          pcv.product_key,
          pcv.product_consumer_valid_from,
          pcv.product_consumer_valid_to,
          DECODE (SIGN(20100201000000-product_consumer_valid_from),1,20100201000000,product_consumer_valid_from) period_start,
          DECODE (SIGN(20100228235959-product_consumer_valid_to),1,product_consumer_valid_to,20100228235959) period_end,
          CASE
            WHEN to_number(TO_CHAR(cd.activation_date,'YYYYMMDDHH24MISS')) BETWEEN 20100201000000 AND 20100228235959
            AND activation_date > to_Date(product_consumer_valid_to,'YYYYMMDDHH24MISS')
            THEN 0
            WHEN to_number(TO_CHAR(cd.activation_date,'YYYYMMDDHH24MISS')) BETWEEN 20100201000000 AND 20100228235959
            AND activation_date BETWEEN to_Date(product_consumer_valid_from,'YYYYMMDDHH24MISS') AND to_Date(product_consumer_valid_to,'YYYYMMDDHH24MISS')
            THEN
              --to_char(activation_date,'MON-YYYY')='PERIOD_ACTIVE'  and activation_date >= to_Date(product_consumer_valid_from,'YYYYMMDDHH24MISS') then
              (to_date(DECODE (SIGN(20100228235959-product_consumer_valid_to),1,product_consumer_valid_to,20100228235959),'YYYYMMDDHH24MISS') - to_date(TO_CHAR(activation_date,'YYYYMMDDHH24MISS'),'YYYYMMDDHH24MISS') )
            WHEN to_number(TO_CHAR(cd.activation_date,'YYYYMMDDHH24MISS')) < 20100201000000
            THEN (to_date(DECODE (SIGN(20100228235959-product_consumer_valid_to),1,product_consumer_valid_to,20100228235959),'YYYYMMDDHH24MISS') - to_Date(DECODE (SIGN(20100201000000-product_consumer_valid_from),1,20100201000000,product_consumer_valid_from),'YYYYMMDDHH24MISS') )
            WHEN to_number(TO_CHAR(cd.activation_date,'YYYYMMDDHH24MISS')) > 20100228235959
            THEN 0
            ELSE
              --unusual situation
              (to_date(DECODE (SIGN(20100228235959-product_consumer_valid_to),1,product_consumer_valid_to,20100228235959),'YYYYMMDDHH24MISS') - to_Date(DECODE (SIGN(20100201000000-product_consumer_valid_from),1,20100201000000,product_consumer_valid_from),'YYYYMMDDHH24MISS') )
          END No_ofDays
        FROM cimtran.product_consumer_validity pcv,
          consumer_dimension cd
        WHERE pcv.consumer_key           =cd.consumer_key
        AND product_consumer_valid_to   >= 20100201000000
        AND product_consumer_valid_from <= 20100228235959
          --and product_consumer_valid_from > '20090801000000'
        ORDER BY consumer_key,
          product_key,
          product_consumer_valid_from
        ) a
      GROUP BY consumer_key,
        product_key
      ORDER BY consumer_key,
        product_key
    ) WHERE row_num=1 ;EXPLAIN PLAN
    "PLAN_TABLE_OUTPUT"
    "Plan hash value: 3823907703"
    "| Id  | Operation                | Name                      | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |"
    "|   0 | SELECT STATEMENT         |                           |  4665K|   231M|       |   133K  (1)| 00:31:08 |"
    "|*  1 |  VIEW                    |                           |  4665K|   231M|       |   133K  (1)| 00:31:08 |"
    "|*  2 |   WINDOW SORT PUSHED RANK|                           |  4665K|   173M|   232M|   133K  (1)| 00:31:08 |"
    "|   3 |    VIEW                  |                           |  4665K|   173M|       |   104K  (1)| 00:24:18 |"
    "|   4 |     SORT GROUP BY        |                           |  4665K|   182M|   729M|   104K  (1)| 00:24:18 |"
    "|*  5 |      HASH JOIN           |                           |    13M|   533M|    65M| 44241   (1)| 00:10:20 |"
    "|   6 |       TABLE ACCESS FULL  | CONSUMER_DIMENSION        |  2657K|    35M|       |  4337   (1)| 00:01:01 |"
    "|*  7 |       TABLE ACCESS FULL  | PRODUCT_CONSUMER_VALIDITY |    13M|   351M|       | 15340   (2)| 00:03:35 |"
    "Predicate Information (identified by operation id):"
    "   1 - filter(""ROW_NUM""=1)"
    "   2 - filter(ROW_NUMBER() OVER ( PARTITION BY ""CONSUMER_KEY"" ORDER BY "
    "              INTERNAL_FUNCTION(""DAYS_IN_PRODUCT"") DESC )<=1)"
    "   5 - access(""PCV"".""CONSUMER_KEY""=""CD"".""CONSUMER_KEY"")"
    "   7 - filter(""PRODUCT_CONSUMER_VALID_FROM""<=20100228235959 AND "
    "              ""PRODUCT_CONSUMER_VALID_TO"">=20100201000000)"

    I doubt that this query can be tuned without using indexes. There is a lot of unnecessary work specified in your query, like unnecessary intermediate sorting and selecting unused columns. The cost based optimizer recognized it and skips some of that unnecessary work, it seems. For clarity's sake, I would rewrite your query like below. Note that the query is untested:
    select consumer_key
         , max(product_key) keep (dense_rank last order by days_in_product) product_key
         , max(days_in_product) days_in_product
         , 20100201 period_key
      from ( select pcv.consumer_key
                  , pcv.product_key
                  , sum
                    ( case
                      when to_number(to_char(cd.activation_date,'yyyymmddhh24miss')) between 20100201000000 and 20100228235959
                      then
                        case
                        when cd.activation_date > to_date(pcv.product_consumer_valid_to,'yyyymmddhh24miss')
                        then
                          0
                        when cd.activation_date between to_date(pcv.product_consumer_valid_from,'yyyymmddhh24miss') and to_date(product_consumer_valid_to,'yyyymmddhh24miss')
                        then
                          to_date(to_char(pcv.product_consumer_valid_to),'yyyymmddhh24miss'))
                          - to_date(to_char(activation_date,'yyyymmddhh24miss'),'yyyymmddhh24miss')
                        end
                      when to_number(to_char(cd.activation_date,'yyyymmddhh24miss')) < 20100201000000
                      then
                        to_date(to_char(pcv.product_consumer_valid_to),'yyyymmddhh24miss'))
                        - to_date(to_char(pcv.product_consumer_valid_from),'yyyymmddhh24miss'))
                      when to_number(to_char(cd.activation_date,'yyyymmddhh24miss')) > 20100228235959
                      then
                        0
                      end
                    ) days_in_product
               from cimtran.product_consumer_validity pcv
                  , consumer_dimension cd
              where pcv.consumer_key             = cd.consumer_key
                and product_consumer_valid_to   >= 20100201000000
                and product_consumer_valid_from <= 20100228235959
              group by consumer_key
                  , product_key
    group by consumer_keyRegards,
    Rob.

  • Need advice about certification: do J2SE 1.4 or wait for 1.5 to go out?

    I need advice here! I am studing for Java Programmer certification (310-035) and I know now that the certification does not have any expiration date, instead it's version based. So, if I get now a J2SE 1.4 certification, soon it will be outdated... I guess!
    Does anyone know or have any ideia of WHEN java 1.5 sdk will be avaliable, and anyone can tell me how long it will take for a new 1.5 programmer certification be avaliable for general public?

    Do both. 1.5 is far enough away that you do not want to wait for it.
    And besides, 1.5 has enough new stuff in it that you'll want to recertify anyway.

  • Some question about the query designer

    hello, dear all,
    I am a new comer of here, and I am intersting in BI, but I have no basic knowledge about it.
    so I just want someone could give me some advice about it.
    our boss need I do the developer about the query designer,  I just have searched in this forum. but nothing founded for I am a new comer here,
    I heard there are some training document of the query designer, could someone give me the URL, thanks.

    Hi,
    Query desinger is used to develop a Query, Query can be created on following data targets
    -Info Cube
    -DSO
    Virtual data target
    -MultiCube
    -Infoset
    -Multiprovider
    We have 5 section in query designer
    - Infoprovider : where we select the data target , on which report to be created
    -Filter : to restrict value at infoprovider level ( if you want data for year 2008, for example)
    -Free Characterstic : this allow you to drill down
    -Columns : char/keyfigs to be display in columns can be added here
    Row: key/char to be display in Rows can be added here
    gv me ur mailid i will let u have Bex manual,
    I would suggest , if you have any IDES ( training ) system , where you can log in and then go to RRMX,
    and try to create new query and add any data target ( which is already created ) and then drag and drop the char/key fig to the required section ,
    save it and execute it .....
    if you play arround and see the output , that would help u to understand how to work with query designer.
    Hope this helps
    Sukhi
    Edited by: Sukhvidner Singh on Nov 4, 2009 5:36 PM

  • Doc Project with format confusion- need advice

    I have a documentary project with a plethora of footage formats because the doc spans a long length of time and different project collaborators. We just shot more footage and I don't want to move forward converting the new footage until I know the best path to take form here on out. please advise.
    Here is the info.
    Below i'm listing the descritption of footage, the format, and the % I'm predicting it will be used in the final edit of the documentary I'm working on.
    Archival Footage: DV NTSC 720x480 (10%)
    Original footage shot: DV NTSC 720x480 anamorphic (40%)
    Additional Footage shot in Summer 2010 with Panasonic HVX200: DVCPRO HD 720p60 29.97 (35% shared with canon 7D footage listed below)
    Additional Footage shot in Summer 2010 with Canon 7D: shot 1920x1080 23.98 Apple Pro Res 422, pixel aspect square. I converted this footage to 720p60 29.97 to match the Panasonic footage but I still have the original files saved. (35% shared with hvx200 footage listed above)
    New Footage shot with Canon 7D: 1920x1080 23.98 Apple Pro Res 422, pixel aspect square (15%)
    Timelines:
    - I edit the SD footage in timelines with SD sequence settings matching the format of the footage
    - I edit the HD footage in timelines with DVCPRO HD sequence settings matching the format of the footage
    - when footage of both formats ends up in one 'scene' the timeline is DV NTSC 720x480
    - when I output a rough cut, I nested sequences and output DV NTSC 720x480
    I have not converted the new footage yet and before I do convert it and then transform continue editing, I feel I need to re-evauluate how I'm approaching the multi-format situation.  I need advice about the best path to take from here on out. WHAT WOULD YOU DO?
    Should I upconvert the SD footage and do everything HD from now on? The final cut will probably be 50% SD and 50% HD with possibly more HD than SD.
    If I do upconvert and go HD, is 720p60 29.97 the best format for me to use considering my footage sources? If you have any ideas, please also explain how you might go about carrying them out.
    Thank you!

    krgarty wrote:
    Exactly, whic is why I'm seeking advice. the final delivery will be film festival screenings and hopefully broadcast, and considering the channels today that = HD.
    That's not a final decision at all, that's a series of delivery options. You must produce your project in the highest resolution for which you have space, codecs and techniucal competency.You will save that as the "final" but I'd not call it that since nothing is ever finalized. Jsut keep naming the versions. Then you will open the full rez version and use any of several conversion or compresiona apps to satisfy all other distribution needs.
    The omst flexible will be a 1080/60 format but that decision will cost you tons of conversion time, lots of space, and will require many stylistic decisions along the way.
    That's what I would do but I'm not you and I'm not your client. 

  • Scanning Pictures for HD Project I Need Advice

    I am about to *Scan Pictures for HD Project* I Need Advice. The scanner is a HP Scanjet G4050 my questions are:
    1: At what resolution do I scan these pictures _+(300 or highest dpi available)+_
    2: What color choice is necessary *(RGB vs CMYK)*
    3: Can you please suggest points for creating a backdrop for the pictures (various sizes) in the Timeline
    Thanks in advance

    Scan the picture like you normally would. If the vertical resolution is 1080, you are fine. Don't worry about the 1280 width as black will be in that area not taken up with the photo. That part won't matter if it isn't 1280 if it is a vertical picture. If you don't have at least 1080 high, you might want to re-scan at a higher resolution. If you have it say, 2000 pixels high really no big deal except you don't need it that high and all that extra size slows down your system. If you want it at a lower resolution after you scan go into Photoshop->Image->Image size. Be sure and check "Constrain Proportions" before you change the dimensions in the top box for the height (where you are best using the units as pixels) That way the picture will stay in proportion. Don't use this second method to 'add' more pixels as the quality suffers when you go up this way. Rescan if you want MORE pixels.
    All the above is talking about vertical pictures. If you have a really wide photo that is not very tall, use the same principle but keep the width constant. For example let's say you have a 2x6 inch photo. Make sure the width is at least 1280 pixels. Don't worry that the height will be less than 1080 because black will take up that space.
    If you are going to do any zoom in and/or panning across a picture, you'll need to make sure it has more than the minimum pixels. For me a little goes a long way, so I zoom in slowly maybe 10-15%.
    Sharon

  • Syncing iPod to new user account-need advice

    Hey All! I set up a new user account for my friend on my imac, so he will want to sync his iPod Touch to iTunes, iPhoto, iCal, etc. in his new user account. I know there are plenty of freeware and shareware apps to get his music from the iPod into iTunes, but need advice concerning everything else oh his iPod.
    I know I'll first get that pop up window that says his iPod is synced to another computer, and that I use "cancel" rather than "sync and erase". After doing that, I guess I use one of the shareware apps to get the music transferred over.
    Now, after that, if I do a regular sync, will iTunes transfer his apps that are on the iPod?
    Do I need to open iPhoto and download the photos on his iPod into iPhotot before doing a sync?
    What about text messages? Will they remain in tact?
    I don't think he uses the calendar on his iPod so no worries there....
    What about Playlists that he has on the iPod? Will just the music transfer with the shareware apps or playlists also?
    Will Notes be saved?
    Thanks for your help. Don't wanna screw up his iPod by setting up this user account for him.

    Apps are tied to the ID I assume the new account is just on the iMac and not a new iTunes account?
    Yes, you can import photos into iPhoto the same as you would off any camera.
    You would need to transfer purchased content (like apps). You can't do that via sync as it's a new computer and all content will be erased as you are aware.
    http://support.apple.com/kb/ht1848
    What happened to your friends computer? Was there no backup?

  • New user of G4 - need advice on selection of printer, DV and digital camera

    I am a recent convert to mac and need advice from experts on the following:
    I plan to use my G4 MDD primarily for home computing, experimenting with digital photography, create DVDs and explore multimedia primarily as a hobby. Please advice me on selection of a decent digital camera and or a DV camera. I am not sure if I have a decent DV camera - whether this will be good enough for still photos as well. My G4 has firewire ports.
    Also I am interested in buying a printer that I can use with my mac as well as connect to a two other windows systems. My printing needs are primarily documents and maybe photos.. I think that going in for a laser printer makes sense in terms of reliability .
    I am not looking for the highend equipment - willing to spend upto 750 $ on all items. Thanks in advance.

    raja,
    welcome to discussions.
    Digital Camera, DV camera and colour Laser Printer all for $750 ??
    I'm afraid you'll have to go for an inkjet printer if you want colour photos. Expensive doesn't even begin to describe Colour Laser Printers. HP make good printers, but tend to be a bit more expensive to run, Epson make excellent photo printers, are are a bit more economical to run, take a look at the iP4000 and iP5000. I still use my old HP DeskJet 1200 (does A3), and a DeskJet 970Cxi (everyday), both use the same cartidges. These are about 7 years old, there are modern versions retailing now at about half of what I paid for these then(always the case).
    Digital cameras can be decided by what purpose you intend to use them for. I have an 18 month old Nikon D100 digital SLR. 6M pixel (which was a lot then) but that might not matter, it takes Nikon lenses (and other manufacturer lenses to the same spec), so I can shoot with a 300mm, 400mm, 600mm lens. Nikon has a D50 out now, a cheaper, newer version of my camera. I can print A3 photo real from 6M pixels and with the right lens I don't need to crop my pictures too much. If you want to print photo real A4 (and that's a LOT of ink) a 3-4M pixel camera would be fine. Most cameras now are 5-8 M pixel, this is because the pictures they take have to be cropped drastically because they have an inadequate lens. On top of that my Nikon takes really great pictures, better than any of my other digi cameras (but not as good as my ancient Olympus 35mm muji-zoom compact with 200 film).
    So if you're going to take a lot of close ups in well lit areas, product shots, interior shots with flash, ie. "snaps" rather than photography, any cheap digi camera will do. Good points are
    - USB / Firewire connectivity,
    - non-proprietry battery technology, ie. it uses 4 x recharable AAs instead of a battery that only fits that camera, and it comes with a AA recharger.
    - non-proprietry storage technology, ie. it uses Compact Flash or some other that is used by a large portion of cameras, rather than just be that manufacturer.
    - digital zoom is worthless.
    If you're doing outdoor photography, wildlife, landscapes, etc, you may want something with a changeable lens and SLR technology, a digital SLR. Not all digital SLR cameras have changeable lenses. Same good points as above, but be prepared to sacrifice one of the points for a good camera. Heavy cameras are easier to hold steady with a big lens, so try for a metal case (it'll be coated in plastic anyway).
    For outdoors the most important thing is the amount of light entering the camera (indoors you can control the lighting with flash / fitted lighting), digital SLRs can have enormous lenses (my 28mm hyperzoom lens has a 72mm diameter), compare this to a compact digital camera with a 12mm diameter lens, I take 36x the light of a compact. And it shows in the picture quality.
    I'm a complete duffer with DV cameras so I won't lead you astray with this, but be aware some do offer the option to take digital pictures. Indeed some digital cameras can take low quality short movies.
    Let us know if you have any more questions.

  • Need advice on a proof printer

    Hello. So glad I found this site!
    I'm currently a print graphic designer and starting a home based business integrating my print design knowledge with newly acquired web design skills to offer a complete package.
    I am working on an HP computer, as I cannot afford the Mac I want now. I have all of the Adobe software for PC already, but need advice for a printer.
    The machines I work on now are like $18k - 25k color lasers, and clearly that is not in my budget. I'm a little lost as to what to look for in a printer that can handle color proofs of my artwork. I create a lot of raster images in PS, but logo design is one of my focuses, so vector output is essential. I almost always create outlines of fonts for the final press ready file, so I'm not so worried about fonts, but color matching is important.
    I've been reading about Postscript and PCL, but am still very confused.  I'm also a little confused as to what a rip does or if I need one.  We use one at my shop, and I know how to use it, but it lives on the server and was explained that it was only necessary for networking the printers.
    I am planning to outsource all of my final printing, but I need a printer for proofing. I've been looking at inkjets for affordability reasons, but now I'm not sure if I need a color laser.
    Help!!

    Dear VectorGirly,  I currently have an OKI Postscript c9800 printer. I use postscript printers because I calibrate and use color profiles to get the closest colour match to the outsourced commercial print that I can. I know this is more than you budgeted for, but it really depends what you end up focusing on. (ie web or print). I focus more on print, hence my printer has to proof postscript correctly for me. I am PC based but my files print to both PC and Mac platforms.
    Regarding logos and colors ... firstly, my monitor is calibrated with a Pantone Huey. I use matching color profiles in all my design programs: Indesign, Illustrator, Photoshop. My print PDFs include the color profiles. When I email or post proofs of logos or corporate stationery to clients I make sure they understand that colors will look different on various monitors because they are not calibrated for print and are RGB or color prism based rather than CMYK for print. Even if you choose a Pantone color, unless everything is calibrated and with color profiles, it's unlikely that you will get the same color on your screen, let alone on the client's screen. And if the client is wanting a color that looks good on their screen, it's even harder. I always recommend they look at the proof colours on various screens including friends so they can understand how it changes according to monitors.
    Regarding PCL and Postscript: When I purchased my OKI (and my former Fuji Xerox pscript), I sent an existing print PDF (that had gone to commercial print previously) to the head office and asked them to do printouts of all the printers I was interested in. All the printers based as PCL were very inaccurate color. The two with postscript took my PDF and printed correctly and were very close to the final printed output. As I am pedantic on colour (colour in Australian spelling), I had to choose the high end postcript laser. Having said that, I am also very interested in the Fuji Xerox Phaser 8500 which is postscript and solid ink (great for the environment and people with allergies and low running costs - much better than laser) - but I need the A3 and banner printing option and they haven't made one for that size yet. I am hoping the new release may offer a bigger size paper. I have a very high allergy level and have to have the window open and a mask on when changing toners and printing, hence my interest in the solid ink for the future.
    I always download my fonts through the print PDF to the printer - I never use printer inbuilt fonts. This is so I know that WYSIWYG (what you see is what you get) when I print commercially as they also download/use the embedded PDF fonts.
    Also, somewhere down the line you may find yourself forced to choose between focusing on web and print.
    I recommend you choose what you love best.

  • Need Advice: Re-Ripping ALL of my CDs using ALAC/Apple Lossless

    I need advice from some experienced users (having searched for answers for a couple of days and not finding a comprehensive solution).  I want to "upgrade" my iTunes library (95% of which is from my CD collection) from ACC (the default iTunes file format) to ALAC (lossless format). I realize that music purchased from the iTunes store will remain in ACC format, but I am using this opportunity to "archive" or "digitize" my CD collection.  I have some, but not a lot, of non-critical tags, album art, etc. set up with my current library.  I will be saving all of the music files in a new folder on a single hard disc on my network (with backup).  I use iTunes Match.  I have Windows PCs, Macbook Pro (OSX), iPhone, iPad, iPod.  Given these factors, I am seeking recommendations:
    Does it make sense to "start over" and create a brand new iTunes library?
    (this would certainly give me time to complete my project while still using my current iTunes library)
    If yes, what do I need to do in order to "activate" the new library once it is complete in order to reset iTunes Match and all of the other devices using my iTunes library?  What complications can I anticipate?
    If no, what is the best way to replace the existing albums in my iTunes library with the new ALAC files?  Do I simply insert the CD and import it with my new settings?  Will iTunes take care of the rest (saving the new file, deleting the old format, matching tags, etc.)?  What complications can I anticipate?
    What are the advantages/disadvantages of allowing iTunes to "Keep iTunes Media folder organized" and "Copy files to iTunes Media folder when adding to library?"
    Any other suggestions, warning, smart alec remarks?
    I know there are a lot of questions bound up in this post, but if you have converted your iTunes music collection to one of the lossless or uncompressed formats, I would love to learn from your experience (and am guessing others will as well).  Thanks!

    In most cases you should be able to re-import your CDs to the existing library - iTunes will automatically replace your media files and retain all previously added metadata.  This does depend on the library being the same one as you originally imported the CDs in AAC format (i.e., the same computer or the result of a complete library migration).  You should experiment with a couple of CDs to verify this behavior - I've done this successfully to "update" some of the older content of my library which had been imported as 128kbps AAC to 256kbps..
    Obviously this approach will put your media into the existing library media folders, which is going to be the simplest approach.  If you subsequently want to move the library to a different drive, see turingtest2's user tip on Make a split library portable.  If you're concerned about running out of disc space on the drive that currently hosts your library, you could follow these guidelines to move the library to a second, larger drive before starting to re-import using ALAC.
    This is the approach I'd recommend, though there are a couple of other possibilities:
    Create a new, empty library on the second drive by holding down SHIFT as you start iTunes; when you see this prompt:
    click on Create Library..., navigate to the second drive and create the library there (best approach is to create this in a new iTunes folder in the root of the drive.  This will guarantee "clean" imports but you'll not be able to re-use any metadata, artwork, playlists, etc. contained in your current library.  To switch between libraries, SHIFT-start and use the Choose Library... option to select the library you want to be active.
    On the second drive, create a folder called iTunes in the root and a folder called iTunes Media inside this.  Then, with iTunes running against your current library, select Edit > Preferences > Advanced, change the iTunes Media folder location to the one you've just created (i.e., X:\iTunes\iTunes Media, if the second drive is "X:".  Also make sure that the Keep iTunes Media folder organized and Copy files to iTunes Media folder... options are checked.  When you re-import your CDs the media files should be placed on the second drive ... note, though, that I've not verified that this approach will work - in theory it should do but you should definitely test with one or two CDs before going any further.  This approach will result in a "split" library where your library database is on the C: drive and the media divided between drives (since your iTunes Store purchases will still be on C:).  This is generally not a good idea (if for no other reason than making creation and maintenance of a backup of your library more difficult).  Again, tt2's notes on Make a split library portable describe how to bring the library into a consistent, well-formed layout.

  • Firmware v2.1 bricks my camera - Need advice

    I need advice. I bought the FS7 a month ago and it came with Firmware 2.0. I have been getting used to the camera and I think it's a great machine, still has some bugs, but manageable. The huge issue I have found it that I cannot upgrade to V2.1 without the camera stopping to function. I do the upgrade procedure as stated by Sony http://bit.ly/1E4o32D  Using a 32 GB Class 10 Sony SD card. The .md5 is correct. No lenses or adapters installed, no battery, no cards, not even the grip remote. I have tried several times, even after an ALL RESET. The procedure takes the normal amount of time in step one. When step one gets to 100% it restarts the camera and starts step 2. When step 2 ends, ussually after 9m45s, it pops a screen saying "Software Upgraded" with only one option to click on "Done". Then, I cannot push the "Done" because all buttons in the camere have ceased to respond. Nothing electronic in the body works. The on/off button does not turn off the camera, so I ended up taking the power cord out. After that the camera starts out normally but the buttons will not work. I finnally found out (I was thinking the camera was a brick by this point) that I could use the remote grip buttons. So I have ended up installing V2.0... five times I have tried it. It does not work. Any help please? 

    Hi Daniel, Thank you for the comments about my training video, but I'm afraid I don't have an answer about your firmware update problem if it's not the HOLD button.  To be honest, I have not even bothered to update to 2.1 myself yet.  Normally I try to keep my firmware updated, but in this case, I'm too busy and  I just don't care enough to bother with it.  None of the "improvements" interest me and I'm happy with the camera is running right now.   Yes, I am guilty of not following my own advice about keeping the firmware up to date. I guess you can either reach out to Sony or just keep using 2.0 until another update is released.  I know what I would do, but I don't want to offer any advice one way or the other. The scene files that can be downloaded from my website were created with v1.1 and I have not seen any reason to update them.  They sitll work fine for me and nobody has reported any issues. Good luck. 

Maybe you are looking for