Oracle Database 11 g: performance tuning

I would like to know, if this certification Oracle Database 11g: performance optimization is only for those who is employed by a specialist of the Oracle partner, or anyone who has spend the exame can have this certification

Best regards

Hello

For what is the CA Certified Specialist certification, who earn this certification? the company or the employee?

Please see these links.

CA launches new levels of partner Oracle, "OPN" specialized
http://blogs.Oracle.com/certification/2009/12/0127.html

OPN certified specialist railways
http://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=342

If I work in a company that is a member in the OPN, business certification, not me?

In my view, that deserves both. Here are the links mentioned above:

The Oracle Certification candidates who provide their OPN company identification number when you register for and successfully select Oracle Certification exams - in addition to winning the basic certification - also handed the Oracle Partner Network Certified Specialist designation for this area also.

And I need to be an OCP 11 g before I can earn this certification?

Is this correct?

OK, you should have a prior certification 'Oracle 11 g DBA OCP' before obtaining this certification.

Kind regards
Hussein

Tags: Oracle

Similar Questions

  • can I use "Oracle Database 12 c: performance management and Tuning" training for the certification "Oracle Database 11g: Performance Tuning 1Z0-054 '"»

    I took "Oracle Database 12 c: new performance management and Tuning" the oracle University training. Now I would like to get certified on "Oracle Database 11g: Performance Tuning 1Z0-054 ' exam. Is this possible?

    I guess you ask if you can use the course 12 c as long as the condition of course for the review of 11g.  Over 12 c is not listed as one of the options for the 11 g certification and course requirements are normally specific version - at least with DBA certifications.  If you are already an Oracle OCP DBA, of course, there is no requirement of course for the review of performance tuning.  From what I know the training requirements for other certifications, I do not that you will be able to use it. However, Brandye will provide a definitive answer to whether the course 12 c would be acceptable for 11g certification.

    That said, I'm with John - 12 c review is about a community of 85 to 90% in the review of the 11g and is currently about 20% of the price while it is in beta.  What is the point of trying to cross the releases?

  • Oracle Database 11 g: performance test 1Z0-054

    Hello

    I want to take the Oracle Database 11g certification: optimizing performance exam 1Z0-054 and you want to take the exam.
    To get the credentials of ECO, I know that we need to follow a training from Oracle University. I'm not an OCP.

    Can I take the exam now and later take the course to meet the certification requirements? I know that this is not the right way, but I can't pay $3000 for the course right now. I can take the exam through self-study. I want to check if I can take the exam now and later to take the course.

    Is it mandatory to follow the courses before the exam?

    Thank you
    Naveen.

    Naveen Kumar C wrote:
    Hello
    There
    I want to take the Oracle Database 11g certification: optimizing performance exam 1Z0-054 and you want to take the exam.
    To get the credentials of ECO, I know that we need to follow a training from Oracle University. I'm not an OCP.

    Can I take the exam now and later take the course to meet the certification requirements? I know that this is not the right way, but I can't pay $3000 for the course right now. I can take the exam through self-study. I want to check if I can take the exam now and later to take the course.

    Is it mandatory to follow the courses before the exam?

    Thank you
    Naveen.

    In fact, you can take the exam now and eventually win the 11g PERFTUNE ECO credentials when you either:
    (1) complete, submit and get verified UO allowed 11 courses of perftune g (possible, but seems a little plow in front).
    or
    (2) to become OCP DBA 11 g.

  • PDF files in the Oracle database

    First all the Hi and thanks to all the gurus of this forum to provide non-stop services to solve problems at the global level.

    I'm using Oracle Database 11 g - R1 with Oracle Application Express 4.1.

    My clients (end-users) can visit to download PDFs in the database via a built-in Oracle Application Express application.

    All of a sudden ".dmp" size increased rapidly from 360 MB to 2.7 GB and everything that happened due to downloading of PDF files.

    I want to know it's alarming for the Oracle database? Because I'm in doubt, users have a lot of files to download, Services of Oracle database that will / Performance will be disturbed by the increase in the size of the database or Oracle database server could be crushed?


    Please confirm. Thanks in advance.

    Looks: Mohammed Uzair Awan

    Performance may be affected.
    Backup time would increase.
    Backup space (disk / tape) would increase the requirements.

    There should not be a 'crash' of the database
    As you run 11 GR 1 material, I assume that you do not run the Express edition.

    Hemant K Collette

  • 1Z0-054: Oracle Database 11g Performance Tuning Expert

    I intend to give the exam 1z0-054 for the certification, "Oracle Database 11g Performance Tuning Expert".

    The path to Certification indicates that, if you are 'OCP DBA 11 g' then you can directly take this article and there is no requirement for training instructor. Therefore, I decided to prepare my own. Can someone guide me on study material and landfills?

    Kind regards

    Ahmer Mansoor

    Therefore, I decided to prepare my own. Can someone guide me on study material and landfills?

    First of all, the word "shock" has a precise meaning. It is short for "landfills of brain", which are illegal and can cost you this certification and all others you have taken.

    http://blogs.Oracle.com/certification/entry/0477

    Second - there is currently no study guide or a specific book to this certification at the moment. I write the study guides and this one is actually next on my list when I finished the current book to * 1Z0-117: Oracle Database 11 g Release 2: SQL Tuning *. I have a guide for 1Z0 - 054 before sometime in may more likely. That said, I have a few links for legal study on the companion Web site material for my series of guide to the subjects for this exam. It also has links to the Oracle documentation that contains the information you need. Once I have started writing the book review, links will develop quickly because I research for her themes and links to the documentation could extend as well.

    http://www.oraclecertificationprep.com/Apex/f?p=OCPSG:EXAM_DETAILS:0:no:P2_EXAM:1Z0 - 054

  • Dates for "Oracle Database 11g: Performance Tuning" exam

    Hello!

    Today Oracle posted the info on the new database Oracle 11 g Performance Tuning review required for new certification expertise:

    http://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=41 & p_exam_id = 1Z0_054 #2

    It is said that pre-registration for the beta version review starts today, however, it does not say when the phase beta begins and ends. Anyone know?

    Thank you
    Marcus

    March 31, 2009 is the current provisional end date for the exam in beta 1Z1-054. This date is subject to change.

    Kind regards
    Brandye Barrington
    Certification Forum Moderator
    Manager certification program

  • Oracle Application Performance Tuning

    Hi all
    Please forgive me if I'm asking this in the wrong section.

    I'm an engineer s/w with 2 years exp. I worked as a tuning performance for Oracle EBS resource in my company. Jobs in question especially SQL tuning and treating indices etc. At the moment I took interest in s/n things, and I finished my TRAY in Oracle 10 g. Now, my company gives me the opportunity to move to a team of DBA of the Application and I'm totally confused about this.

    Becoming a DBA Apps means that the effort that I put in the certification in 10g will be of no use. There are other Apps DBA certification documents. I should stay put in performance tuning & wait for a chance to base DBA or I will accept the opportunity to Apps DBA.

    Also, did my exp. in SQL tuning performance hold any value as such with exposure to activities of s/n?

    Please guide me in this matter I am very confused right now.

    Kind regards
    Lucette

    Lucette wrote:
    Hello bigdelboy, thank you very much for your answer.

    Yes, I meant by oracle Apps DBA Oracle EBS.

    1Z0-046 clearing, is an option. However, my question is will delete both reviews the Admin I and Admin II being of any help, bypassing the expericnce practice? The EBS DBA work involves support and patching, cloning and installation of the new node etc.

    Also, is my performance tuning experience will help me somehow on the way forward as a DBA / EBS DBA?

    Thank you for your valuable time.

    Kind regards
    Lucette Sarath

    The way I read it is that.

    People notice that you are able to understand and SQL performance. And you must have some knowledge of Oracle EBS. And in fact, you also have a DBA OCA.

    So, there are 98% + chance you can be transformed into a good Oracle Apps DBA (and the core s/n). If I was in their position I want you on my team. It's the way we used to bring on DBA in the old days before approval, and he still has a lot of merit. OK you can only do tasks limited at first... but the number of taks you can do will increase substantially in recent months.

    I imagine that the Oracle Apps DBA will be pleased to have a person on board who can tune SQL which sometimes can sometimes seem more like an art than a science of performance. The application of patches, etc. can be taught in small doses. If they are a good team, they're not trying to give you all at once, they'll get to learn one procedure at a time.

    And remember, if in doubt ask. and if you do not understand ask again. And be safe and not sorry on actions that could be serious.

    .................

    If your fear on liinux: recipes of Linux for Oracle DBA (Apress) might be a good book to read but can be expensive in India
    Same: (Oracle Applications Dba field Guide) can agree, and the same (Rman recipes for Oracle Database 11 g A problem-solution approach) can have some value if you need to get fast speed in these areas.
    They are not perfect, but they sometimes have to consolidate the information carefully; However only buy if you think they are pretty cheap. You can buy them well and feel disappointed (these all is found by Apress which have produced a number of good books... they also published some waste as well)

    And review the dba examples 2 days as well and install examples n OTN linux so... they are free from books I mentioned.

    Rgds - bigdelboy.

  • Procedure of ODI with slow performance (SOURCE and TARGET are different Oracle databases)

    Hi experts,

    I have an ODI procedure but its market with slow performance (SOURCE and TARGET are different Oracle databases), you can see below.

    My question is:

    It is possible write Oracle BULK COLLECT at the 'command on the target' (below)? or

    There is a KM of ODI that perform this task below in a quick way? If so, what KM can you guys suggest me?

    I found 'Oracle Append (DBLINK) control' but I try to avoid creating the dblink database.

    ===============================================================================

    * COMMAND ON the SOURCE (* technology: ORACLE * logic diagram: ORACLE_DB_SOURCE):

    SELECT NUM_AGENCIA, NUM_CPF_CNPJ, NOM_PESSOA

    < % = OdiRef.getSchemaName ("D") % >. < % = odiRef.getOption ("P_TABELA") % >

    ===============================================================================

    *ON the COMMAND TARGET (* technology: ORACLE * logic diagram: ORACLE_DB_TARGET):

    BEGIN

    INSERT INTO DISTSOB_OWNER. DISTSOB_PESSOA (NOM_PESSOA, NUM_CPF_CNPJ, FLG_ATIVO)

    VALUES ('#NOM_PESSOA', '#NUM_CPF_CNPJ', THE FROM ');

    EXCEPTION WHEN DUP_VAL_ON_INDEX THEN

    NULL;

    END;

    ===============================================================================


    Thank you guys!

    Please use SQL for SQL command Append KM... You can delete the unnecessary steps in the KM.E.g. fi you won't create I$ table, control flow etc, then you can remove related steps.

    Please try with that.

  • Improving the performance of OLAP in Oracle Database 11

    Hi all

    First of all sorry for a very generic question, lately I been faced with some problems of performance during the generation cubes

    for example we had a problem of low SGA_memory, now we have referred questions to Doc-ID 1464064.1

    to cut short-we have a list of things to look for in advance for OLAP can improve performance?

    similar to the one mentioned in a blog post (improving the performance of OLAP in Oracle Database 10 g Release 1) which is for 10 g

    we ORDM DW, which has the dimension of TIME based with about 10 k records sometimes, that it takes about 20 minutes to build recently its not not building at all throwing error mentioned Doc-ID 1464064.1 I have a wip SR to even SR 3-9620792761

    Similarly, we produced Sun with approximately 9million records sometimes he finished in 4 hours sometimes it ends quite

    I have twice fallen & recreated workspace that helps a little but does not appear inconsistent.

    Pointers would be really useful

    Thank you

    Prateek

    You can update following anonymous pl/sql block and change in your

    specific information for the name of the cube and measure names. You

    can add more steps as you like following the same convention of xml.

    DECLARE

    CLOB xmlCLOB;

    tmp varchar2 (4000);

    BEGIN

    DBMS_LOB.CREATETEMPORARY (xmlCLOB, true);

    DBMS_LOB. Open (xmlCLOB, DBMS_LOB. LOB_READWRITE);

    tmp: ='

    ';

    DBMS_LOB. WriteAppend (xmlCLOB, length (tmp), tmp);

    dbms_cube.import_xml (xmlClob);

    DBMS_LOB. Close (xmlClob);

    END;

  • 1Z0-117: Oracle Certified Expert, Oracle Database 11 g Release 2 SQL Tuning

    Hello

    I failed the exam 1Z0-047 Oracle database SQL Expert"x 3 and will pass the exam in January 2012. I'm sure I'll spend this time :-) to 95%

    Now my question: what's next 1Z0-047? I only know how to leave 1Z0-047. I am SQL scripts to my work, but no DBA work and not of PL/SQL. So I guess that the "Oracle Certified Expert, Oracle Database 11 g Release 2 SQL Tuning" would be the next logical step?

    Is 'Oracle Certified Expert, Oracle Database 11g Release 2 SQL Tuning' too complicated for me (only have knowledge of the exam 1Z0-047). Because I don't have experience with the topics listed in the objectives, for the most part never heard talk about.

    What study guide?

    So I guess that the "Oracle Certified Expert, Oracle Database 11 g Release 2 SQL Tuning" would be the next logical step?

    I agree with you.

    The Oracle 11 g Release 2 database: review SQL Tuning is still in beta at least until November 24, 2012. Beta versions have been known to be extended. Even if this isn't the case, the examination of the production is not available before mid-January 2013 about. I had one experience with a beta. I hated and will never be another. There is little reason to do so, and most importantly (reduced cost) is not important to me because my company reimburses the cost of my essay, so I don't really care about the savings. They take several times longer to complete and I was a mess at the time that I finished that I did with a headache roaring through a large part of the review.

    That said - answering your question:

    1Z0-047 is a really complicated test. The questions and answers are designed to mislead. There is a reason for that. SQL, by its very nature, is a fairly simple language. Part of its appeal, is that it is easy to understand and write. If the people who wrote the essay was not gone to their best to make the deliberately convoluted SQL code, then it would not have required skills 'experts' to pass. It is much more difficult to read and diagnose poorly written SQL as well written SQL.

    I also took the test Application Express Expert: 1Z0-450. The questions that it were not written in a deliberately confusing manner. However, they had need intimate knowledge of the interface of the Apex. Because it was possible to write questions 'hard' without having to make them deliberately more obscure, the questions were simpler. I did not review SQL Tuning (as I said... no more betas for me), but I suspect that it will be similar to 1Z0-450 has enough information "at the level of experts" to write questions on that test will not attempt to write "hard" questions

    Is 'Oracle Certified Expert, Oracle Database 11g Release 2 SQL Tuning' too complicated for me.
    Because I don't have experience with the topics listed in the objectives, for the most part never heard talk about.

    Not sure what is in the test. This is excellent news. Student for the test will teach you a lot of new things about writing and tuning SQL. In my posts, a concept is repeated again and again. The value of certification is not make a piece of paper to stick in a workbook. The value comes to what new skills you gain in is about to pass the test. If you do not know the information and that you are not studying for the test, Yes, you will not pass. If you prepare for the test until you do understand the objectives, then you should be able to pass the test.

    What study guide?

    None does not yet exist. There is no doubt that I will write a review study guide. It won't be until some time after the test is in production. I do not publish guides for which I hold the certification. Do not wait for good. You can use the same exact source, I will use in his creation - the Oracle documentation. I guarantee you that all topics on the unique OE page and every single question that is under review are answered somewhere in the documentation.

  • Oracle Database 10g managing Oracle on Linux (OCE) Recertification

    On https://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=769

    In the list:

    Renewal of certification required by March 1, 2016

    It seems that this certification will be inactive except for certification renewal.

    .....

    However, on the page of retirement: Oracle Certification Exam retirement

    We have:

    Certification Path who retiresDate of retirementNewer version of retirement Certification path
    Oracle Database 10 g managing Oracle on Linux Expert certifiedMarch 1, 2015None


    I.e. There is no version of Superceding to revalidate at:

    In truth I am bovvered? ... Well not really (although I'm concerned because I am the owner of the said ACTIVE certification).  The thing is more outdated than an old ram my uncle once sold... a real old firecracker.  However, the principle of the thing is a little interest...

    I almost added a question about this certification to your original on recert requirements thread.  Then I saw the following note in the page 'requirements and process ':

    https://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=768

    "You can keep all your types of database credentials (associate, professional, Expert and Master) in State ASSETS by winning a single credential OCA, OCP or CMO in the CURRENT version of Oracle Database certification."

    Based on this statement, you take a certification or 11g OCA/OCP/CMO 12 c will prevent any expert version-specific certifications being expired.

    It is worth noting that the reverse is not true, taking a current CEO of certification does * not * prevent anything either, but an earlier version of this same certification expires.  Really means a lot right now because he communicated there very little specific expert certificates (RAC, performance and Tuning SQL optimization are the only 11g those for example), but it's something to know.

  • Will there be any tools avialable to the on query performance tuning

    Hello

    How to tune a database query?
    Suppose that there are basic query "select * from emp where empid = '1101' ';"

    Y at - it all avilabale tools to suggest performance Tuning on a query?

    How can I resolve this application, and what is the best approach on this?

    Please share your ideas and thanks.

    Oracle provides tools such as SQL Trace and TKPROF. For the information on a SQL query.

    But basically, you should know how oracle works. You must be aware of the different access plans and know why they are being used.

    You need to know when to use an index and when not to use a.

    There are many more. Best thing for you would be to start reading the document.

  • Move to Oracle Database 11g Release 2 with Mike Dietrich

    Hi friend;

    Yesterday, I was in an Oracle in Istanbul.

    In the seminar; Author Mike Dietrich, who works in Germany-Oracle show us how to do the step of database Oracle 11 g Release 2. His presentation available on my blog.

    I highly suggest to check this pdf. It already has cover:

    -Support of politicians, patches, Documentation, upgrade paths
    -Database upgrade (DBUA, command line, after the upgrade, alternatives, Clusterware and ASM upgrade)
    -Diagnosis and Tuning
    -Performance evaluation

    You can find many useful tips, path of evolution, related notes metalink etc etc... in the pdf file.

    http://heliosguneserol.WordPress.com/2010/06/17/move-to-Oracle-database-11g-release-2-with-Mike-Dietrich/

    Respect of
    HELIOS

    Helios,

    Interesting paper! Thanks for sharing with us.

    Thank you
    Hussein

  • In passing the huge parameter to oracle procedure have a performance hit?

    I have a script attached, in which I am trying process/XML parsing in a table (STAGE_TBL) in the XMLTYPE column and insert the data analyzed in another table (PROCESSED_DATA_TBL). The XML file can be huge up to 2MB, which translates into approximately 2000 + lines of analyzed data. The issue I see is when I pass an XML object to a procedure (STAGE_TBL_PROCESS) to analyze its takes about 10 seconds per XML, but rather than from XML if I directly pick up table in the procedure (STAGE_TBL_PROCESS) passing the ID to be about 0.15 seconds. According to the document while params are passed by reference, so why is this variation of performance?

    Details of database Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64-bit version of PL/SQL Production 11.2.0.3.0 - Production "CORE 11.2.0.3.0 Production" TNS for Linux: Version 11.2.0.3.0 - Production NLSRTL Version 11.2.0.3.0 - Production

    Note: I could not perform SQL_TRACE or DBMS_STATS as I don't have access to them.

    /*
    This one is taking .15 seconds to process an XML with about 2000 rp_sendRow elements
    */

    DECLARE
     
    CURSOR NewStage IS
      
    SELECT *
      
    FROM STAGE_TBL
      
    WHERE  status = 'N'
      
    ORDER BY PUT_TIME ASC;
      SUBTYPE rt_NewStage
    IS NewStage % rowtype;

      ROW_COUNT INTEGER
    := 0;   -- Return value from calling the procedure
      READ_COUNT INTEGER
    := 0;   -- Number of rows read from the stage table
      INSERT_COUNT_TOTAL INTEGER
    := 0;   -- Number of Inserts Inven records
      ERROR_COUNT INTEGER
    := 0;   -- Number of Inven inserts that did inserted more then 1 row in Inven
      PROCESS_STATUS STATUS
    .MmsStatus;
      STATUS_DESCRIPTION STATUS
    .MmsStatusReason;
      ERRMSG VARCHAR2
    (500);

    PROCEDURE STAGE_TBL_PROCESS (IDDATA IN RAW, PROCESS_STATUS OUT VARCHAR2, STATUS_DESCRIPTION OUT VARCHAR2, ROW_COUNT OUT NUMBER) AS
    /*
      This procedure is to parse the XML from STAGE_TBL and populate the data from XML to PROCESSED_DATA_TBL table

      IN PARAMS
      ----------
      IDDATA - ID from STAGE_TBL
      xData - XMLType field from XML_DOCUMENT of STAGE_TBL

      OUT PARAMS
      -----------
      PROCESS_STATUS - The STATUS of parsing and populating PROCESSED_DATA_TBL
      STATUS_DESCRIPTION - The description of the STATUS of parsing and populating PROCESSED_DATA_TBL
      ROW_COUNT - Number of rows inserted into PROCESSED_DATA_TBL
    */

    BEGIN
      
    INSERT ALL INTO PROCESSED_DATA_TBL 
      
    (PD_ID, 
      STORE
    , 
      SALES_NBR
    , 
      UNIT_COST
    , 
      ST_FLAG
    , 
      ST_DATE
    , 
      ST
    , 
      START_QTY
    , 
      START_VALUE
    , 
      START_ON_ORDER
    , 
      HAND
    , 
      ORDERED
    , 
      COMMITED
    , 
      SALES
    , 
      RECEIVE
    , 
      VALUED
    , 
      ID_1
    , 
      ID_2
    , 
      ID_3
    , 
      UNIT_PRICE
    , 
      EFFECTIVE_DATE
    , 
      STATUS
    , 
      STATUS_DATE
    , 
      STATUS_REASON
    ) 
      
    VALUES (IDDATA 
      
    ,store 
      
    ,SalesNo 
      
    ,UnitCost 
      
    ,StWac 
      
    ,StDt 
      
    ,St 
      
    ,StartQty 
      
    ,StartValue 
      
    ,StartOnOrder 
      
    ,Hand 
      
    ,Ordered 
      
    ,COMMITED 
      
    ,Sales 
      
    ,Rec 
      
    ,Valued 
      
    ,Id1 
      
    ,Id2 
      
    ,Id3 
      
    ,UnitPrice 
      
    ,to_Date(EffectiveDate||' '||EffectiveTime, 'YYYY-MM-DD HH24:MI:SS') 
      
    ,'N'  
      
    ,SYSDATE 
      
    ,'XML PROCESS INSERT')  
      
    WITH T AS
      
    ( SELECT STG.XML_DOCUMENT FROM STAGE_TBL STG WHERE STG.ID = IDDATA)  
    -- This is to parse and fetch the data from XML 
      
    SELECT E.* FROM T, XMLTABLE('rp_send/rp_sendRow' PASSING T.XML_DOCUMENT COLUMNS
      store VARCHAR
    (20) PATH 'store'  
      
    ,SalesNo VARCHAR(20) PATH 'sales' 
      
    ,UnitCost NUMBER PATH 'cost' 
      
    ,StWac VARCHAR(20) PATH 'flag' 
      
    ,StDt DATE PATH 'st-dt' 
      
    ,St NUMBER PATH 'st' 
      
    ,StartQty NUMBER PATH 'qty' 
      
    ,StartValue NUMBER PATH 'value' 
      
    ,StartOnOrder NUMBER PATH 'start-on-order' 
      
    ,Hand NUMBER PATH 'hand' 
      
    ,Ordered NUMBER PATH 'order' 
      
    ,Commited NUMBER PATH 'commit' 
      
    ,Sales NUMBER PATH 'sales' 
      
    ,Rec NUMBER PATH 'rec' 
      
    ,Valued NUMBER PATH 'val' 
      
    ,Id1 VARCHAR(30) PATH 'id-1' 
      
    ,Id2 VARCHAR(30) PATH 'id-2' 
      
    ,Id3 VARCHAR(30) PATH 'id-3' 
      
    ,UnitPrice NUMBER PATH 'unit-pr' 
      
    ,EffectiveDate VARCHAR(30) PATH 'eff-dt' 
      
    ,EffectiveTime VARCHAR(30) PATH 'eff-tm' 
      
    ) E;  
      ROW_COUNT 
    := SQL%ROWCOUNT;  -- Not the # of all the rows inserted.
      PROCESS_STATUS 
    := STATUS.PROCESSED;
      
    IF ROW_COUNT < 1 THEN   -- The insert failed Row Count = 0 No exception thrown
      PROCESS_STATUS 
    := STATUS.ERROR;
      STATUS_DESCRIPTION 
    := 'ERROR Did not insert into Pos Inventory. Reason Unknown';
      
    END IF;
      EXCEPTION
      
    WHEN OTHERS THEN
      ROW_COUNT 
    := 0;
      PROCESS_STATUS 
    := STATUS.ERROR;
      STATUS_DESCRIPTION 
    := 'SqlCode:' || SQLCODE || ' SqlErrMsg:' || SQLERRM;
    END;


    BEGIN
      DBMS_OUTPUT
    .enable(NULL);
     
    FOR A_NewStage IN NewStage
      LOOP
      READ_COUNT
    := READ_COUNT + 1;
      STAGE_TBL_PROCESS
    (A_NewStage.ID, PROCESS_STATUS, STATUS_DESCRIPTION, ROW_COUNT);
      INSERT_COUNT_TOTAL
    := INSERT_COUNT_TOTAL + ROW_COUNT;
      
    IF(ROW_COUNT <= 0 OR PROCESS_STATUS = STATUS.ERROR) THEN
      ERROR_COUNT
    := ERROR_COUNT + 1;
      
    UPDATE STAGE_TBL
      
    SET status  = PROCESS_STATUS,
      status_DATE 
    = SYSDATE,
      status_DESCRIPTION 
    = STATUS_DESCRIPTION
      
    WHERE ID  = A_NewStage.ID;
      
    ELSE
      
    UPDATE STAGE_TBL
      
    SET status  = PROCESS_STATUS,
      status_DATE 
    = SYSDATE,
      status_DESCRIPTION 
    = STATUS_DESCRIPTION,
      SHRED_DT 
    = SYSDATE
      
    WHERE ID  = A_NewStage.ID;
      
    END IF;
      
    COMMIT;
     
    END LOOP;
     
    COMMIT;
     
    IF ERROR_COUNT > 0 THEN
      ERRMSG
    := '** ERROR: ' || ERROR_COUNT || ' Stage records did not insert in to the Processed table correctly';
      RAISE_APPLICATION_ERROR
    (-20001,ErrMsg); 
     
    END IF;
      EXCEPTION
      
    WHEN OTHERS THEN
      RAISE
    ;
    END ;

    /*
    This one is taking 10 seconds to process an XML with about 2000 rp_sendRow elements
    */

    DECLARE
     
    CURSOR NewStage IS
      
    SELECT *
      
    FROM STAGE_TBL
      
    WHERE  status = 'N'
      
    ORDER BY PUT_TIME ASC;
      SUBTYPE rt_NewStage
    IS NewStage % rowtype;

      ROW_COUNT INTEGER
    := 0;   -- Return value from calling the procedure
      READ_COUNT INTEGER
    := 0;   -- Number of rows read from the stage table
      INSERT_COUNT_TOTAL INTEGER
    := 0;   -- Number of Inserts Inven records
      ERROR_COUNT INTEGER
    := 0;   -- Number of Inven inserts that did inserted more then 1 row in Inven
      PROCESS_STATUS STATUS
    .MmsStatus;
      STATUS_DESCRIPTION STATUS
    .MmsStatusReason;
      ERRMSG VARCHAR2
    (500);

    PROCEDURE STAGE_TBL_PROCESS (IDDATA IN RAW, xData IN STAGE_TBL.XML_DOCUMENT%TYPE, PROCESS_STATUS OUT VARCHAR2, STATUS_DESCRIPTION OUT VARCHAR2, ROW_COUNT OUT NUMBER) AS
    /*
      This procedure is to parse the XML from STAGE_TBL and populate the data from XML to PROCESSED_DATA_TBL table

      IN PARAMS
      ----------
      IDDATA - ID from STAGE_TBL
      xData - XMLType field from XML_DOCUMENT of STAGE_TBL

      OUT PARAMS
      -----------
      PROCESS_STATUS - The STATUS of parsing and populating PROCESSED_DATA_TBL
      STATUS_DESCRIPTION - The description of the STATUS of parsing and populating PROCESSED_DATA_TBL
      ROW_COUNT - Number of rows inserted into PROCESSED_DATA_TBL
    */

    BEGIN
      
    INSERT ALL INTO PROCESSED_DATA_TBL 
      
    (PD_ID, 
      STORE
    , 
      SALES_NBR
    , 
      UNIT_COST
    , 
      ST_FLAG
    , 
      ST_DATE
    , 
      ST
    , 
      START_QTY
    , 
      START_VALUE
    , 
      START_ON_ORDER
    , 
      HAND
    , 
      ORDERED
    , 
      COMMITED
    , 
      SALES
    , 
      RECEIVE
    , 
      VALUED
    , 
      ID_1
    , 
      ID_2
    , 
      ID_3
    , 
      UNIT_PRICE
    , 
      EFFECTIVE_DATE
    , 
      STATUS
    , 
      STATUS_DATE
    , 
      STATUS_REASON
    ) 
      
    VALUES (IDDATA 
      
    ,store 
      
    ,SalesNo 
      
    ,UnitCost 
      
    ,StWac 
      
    ,StDt 
      
    ,St 
      
    ,StartQty 
      
    ,StartValue 
      
    ,StartOnOrder 
      
    ,Hand 
      
    ,Ordered 
      
    ,COMMITED 
      
    ,Sales 
      
    ,Rec 
      
    ,Valued 
      
    ,Id1 
      
    ,Id2 
      
    ,Id3 
      
    ,UnitPrice 
      
    ,to_Date(EffectiveDate||' '||EffectiveTime, 'YYYY-MM-DD HH24:MI:SS') 
      
    ,'N'  
      
    ,SYSDATE 
      
    ,'XML PROCESS INSERT')  
    -- This is to parse and fetch the data from XML 
      
    SELECT E.* FROM XMLTABLE('rp_send/rp_sendRow' PASSING xDATA COLUMNS
      store VARCHAR
    (20) PATH 'store'  
      
    ,SalesNo VARCHAR(20) PATH 'sales' 
      
    ,UnitCost NUMBER PATH 'cost' 
      
    ,StWac VARCHAR(20) PATH 'flag' 
      
    ,StDt DATE PATH 'st-dt' 
      
    ,St NUMBER PATH 'st' 
      
    ,StartQty NUMBER PATH 'qty' 
      
    ,StartValue NUMBER PATH 'value' 
      
    ,StartOnOrder NUMBER PATH 'start-on-order' 
      
    ,Hand NUMBER PATH 'hand' 
      
    ,Ordered NUMBER PATH 'order' 
      
    ,Commited NUMBER PATH 'commit' 
      
    ,Sales NUMBER PATH 'sales' 
      
    ,Rec NUMBER PATH 'rec' 
      
    ,Valued NUMBER PATH 'val' 
      
    ,Id1 VARCHAR(30) PATH 'id-1' 
      
    ,Id2 VARCHAR(30) PATH 'id-2' 
      
    ,Id3 VARCHAR(30) PATH 'id-3' 
      
    ,UnitPrice NUMBER PATH 'unit-pr' 
      
    ,EffectiveDate VARCHAR(30) PATH 'eff-dt' 
      
    ,EffectiveTime VARCHAR(30) PATH 'eff-tm' 
      
    ) E;  
      ROW_COUNT 
    := SQL%ROWCOUNT;  -- Not the # of all the rows inserted.
      PROCESS_STATUS 
    := STATUS.PROCESSED;
      
    IF ROW_COUNT < 1 THEN   -- The insert failed Row Count = 0 No exception thrown
      PROCESS_STATUS 
    := STATUS.ERROR;
      STATUS_DESCRIPTION 
    := 'ERROR Did not insert into Pos Inventory. Reason Unknown';
      
    END IF;
      EXCEPTION
      
    WHEN OTHERS THEN
      ROW_COUNT 
    := 0;
      PROCESS_STATUS 
    := STATUS.ERROR;
      STATUS_DESCRIPTION 
    := 'SqlCode:' || SQLCODE || ' SqlErrMsg:' || SQLERRM;
    END;


    BEGIN
      DBMS_OUTPUT
    .enable(NULL);
     
    FOR A_NewStage IN NewStage
      LOOP
      READ_COUNT
    := READ_COUNT + 1;
      STAGE_TBL_PROCESS
    (A_NewStage.ID, A_NewStage.XML_DOCUMENT, PROCESS_STATUS, STATUS_DESCRIPTION, ROW_COUNT);
      INSERT_COUNT_TOTAL
    := INSERT_COUNT_TOTAL + ROW_COUNT;
      
    IF(ROW_COUNT <= 0 OR PROCESS_STATUS = STATUS.ERROR) THEN
      ERROR_COUNT
    := ERROR_COUNT + 1;
      
    UPDATE STAGE_TBL
      
    SET status  = PROCESS_STATUS,
      status_DATE 
    = SYSDATE,
      status_DESCRIPTION 
    = STATUS_DESCRIPTION
      
    WHERE ID  = A_NewStage.ID;
      
    ELSE
      
    UPDATE STAGE_TBL
      
    SET status  = PROCESS_STATUS,
      status_DATE 
    = SYSDATE,
      status_DESCRIPTION 
    = STATUS_DESCRIPTION,
      SHRED_DT 
    = SYSDATE
      
    WHERE ID  = A_NewStage.ID;
      
    END IF;
      
    COMMIT;
     
    END LOOP;
     
    COMMIT;
     
    IF ERROR_COUNT > 0 THEN
      ERRMSG
    := '** ERROR: ' || ERROR_COUNT || ' Stage records did not insert in to the Processed table correctly';
      RAISE_APPLICATION_ERROR
    (-20001,ErrMsg); 
     
    END IF;
      EXCEPTION
      
    WHEN OTHERS THEN
      RAISE
    ;
    END ;

    My
    XML with just one rp_sendRow element, it can go upto 2000 rp_sendRow elements
    <?xml version = \"1.0\" encoding = \"UTF-8\"?> 
    <rp_send xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"> 
      
    <rp_sendRow> 
      
    <store>0123</store> 
      
    <sales>022399190</sales> 
      
    <cost>0.01</cost> 
      
    <flag>true</flag> 
      
    <st-dt>2013-04-19</st-dt> 
      
    <st>146.51</st> 
      
    <qty>13.0</qty> 
      
    <value>0.0</value> 
      
    <start-on-order>0.0</start-on-order> 
      
    <hand>0.0</hand> 
      
    <order>0.0</order> 
      
    <commit>0.0</commit> 
      
    <sales>0.0</sales> 
      
    <rec>0.0</rec> 
      
    <val>0.0</val> 
      
    <id-1/> 
      
    <id-2/> 
      
    <id-3/> 
      
    <unit-pr>13.0</unit-pr> 
      
    <eff-dt>2015-06-16</eff-dt> 
      
    <eff-tm>09:12:21</eff-tm> 
      
    </rp_sendRow> 
    </rp_send> 

    The issue I see is when I pass an XML object to a procedure (STAGE_TBL_PROCESS) to analyze its takes about 10 seconds per XML, but rather than from XML if I directly pick up table in the procedure (STAGE_TBL_PROCESS) passing the ID to be about 0.15 seconds.

    In version 11.1, Oracle introduced a new model of storage for the data type XMLType called XML binary.

    Binary XML become the default in 11.2.0.2, to disparage the old storage based on CLOB.

    Binary XML is a format optimized after analysis for the storage and treatment of the XQuery.

    When an XQuery expression is evaluated (through for example XMLTABLE) on an XMLType column stored as binary XML, Oracle can use an ongoing evaluation of XPath that surpasses the query even crushed a transitional XMLType of several order of magnitude.

    You can see that in the action plan of the explain command:

    SQL> SELECT E.*
      2  FROM stage_tbl t
      3     , XMLTABLE('rp_send/rp_sendRow' PASSING t.xml_document
      4         COLUMNS store VARCHAR(20) PATH 'store'
      5               , SalesNo VARCHAR(20) PATH 'sales'
      6               , UnitCost NUMBER PATH 'cost'
      7         ) E ;
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 1134903869
    
    --------------------------------------------------------------------------------
    | Id  | Operation          | Name      | Rows  | Bytes | Cost (%CPU)| Time     |
    --------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT   |           |     1 |  2008 |    32   (0)| 00:00:01 |
    |   1 |  NESTED LOOPS      |           |     1 |  2008 |    32   (0)| 00:00:01 |
    |   2 |   TABLE ACCESS FULL| STAGE_TBL |     1 |  2002 |     3   (0)| 00:00:01 |
    |   3 |   XPATH EVALUATION |           |       |       |            |          |
    --------------------------------------------------------------------------------
    

    When the query is executed on a passenger XMLType (for example, a parameter, or a PL/SQL variable), Oracle cannot run the binary model and use a functional assessment based on memory of the XML DOM-like representation.

    You can see that in the plan to explain it by spoting a 'COLLECTION ITERATOR PICKLER FETCH' operation.

    So what explains the difference (in your version) between treatment from a column of XMLType (stored in binary XML format) or a variable or a parameter.

    From 11.2.0.4 and beyond, things have changed a bit with Oracle, introducing a new transitional level of optimization on XMLType.

    The plan of the explain command will show a "XMLTABLE ASSESSMENT' in this case.

  • Oracle database won't start - Interview Question? How to answer Interview in short-

    Hello people

    I am Java programmer, trying to gear to Oracle DB, attended a few Interview.

    So far in the Interview they ask this question "How do troubleshoot you if Oracle database is not running / does not start?

    Since I have no experience in real time.

    I would say that I'll go and do a TNSPING, check the Listerner.ora entries. If Windows I will tell me that I'll check Services.

    but so far, it seems that they are not happy with my answer.

    So I ask each of you to tell me how I should answer.

    I know it's the open question but how should I tell them in a nuttshell.

    Thank you

    Matt

    I am Java programmer, trying to gear to Oracle DB, attended a few Interview.

    So far in the Interview they ask this question "How do troubleshoot you if Oracle database is not running / does not start?

    Since I have no experience in real time.

    I would say that I'll go and do a TNSPING, check the Listerner.ora entries. If Windows I will tell me that I'll check Services.

    but so far, it seems that they are not happy with my answer.

    So I ask each of you to tell me how I should answer.

    I know it's the open question but how should I tell them in a nuttshell.

    Well - until now I disagree with ALL of the other answers!

    IMHO the FIRST STEP in ANY troubleshooting task is to CONFIRM that the problem really exists.

    The KEY part of this confirmation is to get ALL the information available to the person reporting the issue. In an interview which is SIMPLE - the person reporting the issue is sitting right in front of you. So instead of running around like a chicken with its head cut off you should begin by asking a few key questions:

    1. you said that the data is not running

    a. IS IT supposed TO BE running - that would be my VERY FIRST question!

    b. How do you know this? A user did report it to you? Have you tried to use yourself?

    c. How do confirm you the DB was down? Have what measures you taken?

    d. What do you mean by DOWN? Stone cold dead? Running but not accessible to business users? Running but inaccessible to anyone including DBA?

    e. what other information you have about the problem? Have you checked the log of alerts? When was the last time it was running normally? What could have happened since then to bring it down? There were backups or scheduled maintenance tasks?

    2. you said that it does not start

    a. How do you know this?

    b. did you try to start it yourself?

    c. how the restart was attempted? how much? where (what machine)?

    d. what command they use? They use 'EM? Or a console?

    (e) what has been the result? What has been the response on the console (if the console has been used) what has been the result if EM has been used?

    Your answer to that seemingly simple question should have been to about a dozen questions of your own like I did just above. There is NOTHING to do, IMHO, before getting THE news AND ALL of the one who reports the problem - that includes interviewers.

    Disappoint my more great in interviews is when otherwise intelligent people are so reluctant to ask questions to get the information they need to understand and confirm the question/problem.

    The above is why I "disagreed" with the other responses made so far. Certainly, the alerts log is important and must be checked. But it's a lot easier knowing what the person concerned (interviewer) know asking them just before starting to run. As far as we know that the interviewer was ready to tell you what the alert log say if you just ask.

    My rule #1 in an interview: ASK QUESTIONS!

    Anyone who is not asking questions in my interviews gets demerits. I can train someone how to solve problems and perform DBA tasks. But I found it almost IMPOSSIBLE to tell when they don't know something if they don't ask questions or tell me "I don't know".

    If someone just asking these questions above this would indicate to me that they know how to FIND the information they need, even if they don't know yet how to use this information.

Maybe you are looking for

  • Wireless does not work on Satellite A40-151

    Hi I have a laptop Toshiba SA40-151 model no PSA40E-OCQ1E-EN.I just installed my new internet modem orange live box and am currently using the LAN connection cable. However, the box is cabable wireless and I want to get wireless laptop too. I followe

  • HP pavilion dv6t a1u60aar: wireless driver not found.

    Hey. I need to reinstall windows 7 on my laptop but I can not find a driver compatible wireless. I forgot to back up the recovery. I tried a lot of drivers that are in this web site. I also tried the hp support, but it cannot find a driver for the wi

  • can't turn on my virus protection

    Ive tried everything I can think Ford .the I made, it has been disabled, I was doing the system restore (witch did not work can also help with the restoration of the system a so tell me how to turn my virys protection, im with protection against the

  • Error - installation of programs: Please do not power off your computer. Installation close this window when you are finished.

    Original title: need help for reinstalling Windows XP. I am selling my computer, so I wanted to wipe and use my CD resource Dell 4 to put the computer back to factory settings. I got through the four discs and Windows XP starts (House) as usual, but

  • folders on removable drive

    From one day to the other, the files on my USB became shortcut and whenever I try to open them, it says: "Windows cannot find 'F:\Recycler\3ddb9016.exe'. Make sure you typed the name correctly and then try again. "Someone knows how to fix this?