What is the query block?

Hi guys,.

I searched a lot on the "query block" on google, but dosent find any satisfactory article that will explain basic concept to me.

I would like to know about the parameter query block that we specified when using indicators of query optimization in oracle.


How can they be used? where we can find them?


any suggestions?


Thanks and greetings
VD

Vkrant,
You did exactly the same thing that is asked of me all the time. What is the purpose of this indication in a simple query that I have to show you all the time. The answer is nothing, makes complex things however. But but but, in a very complex query, where there is a cross reference of the sections of different query is required, this trick will be useful to give a name to the underlying query.
>
Select / * + dept_id full (@qb d) QB_NAME (qb)
of db.dept d;

can we say its just alias?
>
Yes, any. Give an official name to the query. In this query, Department table will be available with FTS.
HTH
Aman...

Tags: Database

Similar Questions

  • What is the query to find the name of all applications for all EBS R12.1.3 modules?

    What is the query to find the name of all applications for all EBS R12.1.3 modules?

    With regard to:

    Mr. Shahzad Saleem

    Try:

    SELECT * FROM fnd_concurrent_programs_vl;

  • What is the best practice to block through several layers sizes: hardware and hypervisor VM OS?

    The example below is not a real Setup, I work with, but should get the message. Here's my example of what I'm doing as a reference layer:

    (LAYER1) Hardware: The hardware RAID controller

    • -1 TB Volume configured in the 4K block size. (RAW)?


    (Layer2) Hypervisor: Data store ESXi

    • -1 TB of Raid Controller formatted with VMFS5 @ block size of 1 MB.


    Layer (3) the VM OS: Server 2008 R2 w/SQL

    • -100 GB virtual HD using NTFS @ 4 K for the OS block size.
    • -900 GB virtual HD set up using NTFS @ 64 K block size to store the SQL database.

    It seems that vmfs5 is limited to only having a block size of 1 MB. It would be preferable that all or part of the size of the blocks matched on different layers and why or why not? What are the different block sizes on other layers and performance? Could you suggest better alternative or best practices for the sample configuration above?

    If a San participated instead of a hardware on the host computer RAID controller, it would be better to store the vmdk of OS on the VMFS5 data store and create an iSCSI separated THAT LUN formatted to a block size of 64 K, then fix it with the initiator iSCSI in the operating system and which size to 64 K. The corresponding block sizes through layers increase performance or is it advisable? Any help answer and/or explaining best practices is greatly appreciated.

    itsolution,

    Thanks for the helpful response points.  I wrote a blog about this which I hope will help:

    Alignment of partition and blocks of size VMware 5 | blog.jgriffiths.org

    To answer your questions here, will:

    I have 1 TB of space (around) and create two Virutal Drives.

    Virtual Drive 1-10GB - to use for OS Hyper-visiere files

    Virtual Drive 2 - 990 GB - used for the storage of data/VM VMFS store

    The element size of default allocation on the Perc6 / i is 64 KB, but can be 8,16,32,64,128,256,512 or 1024 KB.

    What size block would you use table 1, which is where the real hyper-visiere will be installed?

    -> If you have two tables I would set the size of the block on the table of the hypervisor to 8 KB

    What block size that you use in table 2, which will be used as the VM data store in ESXi?

    ->, I'd go with 1024KO on VMFS 5 size

    -Do you want 1024KO to match the VMFS size which will be finally formatted on top he block?

    -> Yes

    * Consider that this database would eventually contain several virtual hard drives for each OS, database SQL, SQL logs formatted to NTFS to the recommended block, 4K, 8K, 64K size.

    -> The problem here is THAT VMFS will go with 1 MB, no matter what you're doing so sculpture located lower in the RAID will cause no problems but does not help either.  You have 4 k sectors on the disk.  RAID 1 MB, 1 MB invited VMFS, 4 k, 8K, 64 K.   Really, 64K gains are lost a little when the back-end storage is 1 MB.

    If the RAID stripe element size is set to 1 024 Ko so that it matches the VMFS 1 MB size of block, which would be better practice or is it indifferent?

    -> So that's 1024KB, or 4 KB chucks it doesn't really matter.

    What effect this has on the OS/Virtual HD and their sizes respective block installed on top of the tape and the size of block VMFS element?

    -> The effect is minimal on the performance but that exists.   It would be a lie to say that he didn't.

    I could be completely on the overall situation of the thought, but for me it seems that this must be some kind of correlation between the three different "layers" as I call it and a best practice in service.

    Hope that helps.  I'll tell you I ran block size SQL and Exchange time virtualized without any problem and without changing the operating system.  I just stuck with the standard size of microsoft.  I'd be much more concerned by the performance of the raid on your server controller.  They continue to do these things cheaper and cheaper with cache less and less.  If performance is the primary concern then I would consider a matrix or a RAID5/6 solution, or at least look at the amount of cache on your raid controller (reading is normally essential to the database)

    Just my two cents.

    Let me know if you have any additional questions.

    Thank you

    J

  • Multi query block

    Dear all

    I have a form with a primary block and two child block (Multi Record), three blocks have the common field MPC. My query is, in one child block, I have two color fields & Qty color can be repeated in this block. Same color can therefore n several times in the block and Qty.

    In another child block I have qty & color when I get color then my qty must be completed involving the amount of the first block that is having the same color. How can I do it. I didn't save the block. So I have the query block.

    I know that we cannot write a query like this
    Select colour, sum (tot_qty) of: Block1 where: block1.colour =:block2.colour. Please tell me the best possible solution in detail because I'm not a very technical savvy. Waiting for your answer.

    Thanks in advance

    Name of the table - MPC_WORKING
    Detail_block1
    Detail_block2

    Detail_block1 has the color and quantity
    Detail_block2 has the color, but the amount I have to summarize the amount of detail_block1) so I need a query something like this

    In fact, it is true that POST to write data to the database but does not commit. So, if we can write data to the database we can run the query to retrieve data from database according to our crieteria. But as I said above POST use in when-validate-item, so we cannot use it at WHEN-VALIDATE-POINT because it is a process restricted to use WHEN-VALIDATE-ITEM trigger.

    What you have to do is. Suppose you have 3 blocks in your form. Block1 and Block2, Block3.
    1. create a trigger in BLOCK2 asked A TIMES-NEWS-BLOCK-INSTANCE on at the block level and triggering just use post built like that...

    POST;
    

    2. now you BLOCK3 you can create a trigger on the color field to remove the table from the block2 amount. Integrated by POST because its already in the database.
    So, simply create a trigger on the color of the BLOCK3 called WHEN-VALIDATE-ITEM field, and then you can write your query in this trigger like this...

    Suppose the table name you used for block2 is my_table.
    -- Replace the table and field name from you actual structure.
    SELECT NVL(SUM(QTY,0))
    INTO :BLOCK3.QTY
    FROM MY_TABLE
    WHERE COLOUR_FIELD_NAME =:BLOCK3.COLOUR_FIELD_NAME
    -- Any more condition if there is requirement.
    

    Thus, by this query it will show you the amount that you entered in BLOCK2 which not engaged. I hope it is clear now.

    -Clément

  • Please someone help me on the query.

    I'm using oracle 11g. The column has many numbers. few are positive numbers, negative numbers are few, and few are zero.

    the table structure is as this:

    Col1

    9

    -5

    3

    60

    10

    -15

    -45

    0

    87

    Now, I have to count the number of positive, negative and all number the number zero of the column and display three columns like this:

    Nega_value

    Posi_value

    Zero_value

    3

    5

    1

    What would the query?

    Select sum (case when col1< 0="" then="" 1="" end)="">

    sum (case when col1 > 0 then 1 end) posi_value,.

    sum (case when col1 = 0 then 1 end) zero_value

    from your_table

    John

  • Data not to see the detail block on running the query

    I have a dev - 6i form. It contains two revenge joined database. The form was working properly but now all of a sudden, as I F8 run query it gives two error messages and do not run the block of detail data.

    FRM-40819: System Variable is not editable.
    FRM-40735: trigger YOU POPULATE DETAILS raised unhandled exception ORA-06502.
    What is the reason how to get rid of him?

    Hello

    Unless changes occurred, you will not get error, maybe it occurred without your knowledge.

    Cases - open your source fmb file, rename and delete the link and create the link - compiles now.

    Run the form, and then paste the result here.

    -------------

    Gul says:
    I have a dev - 6i form. It contains two revenge joined database. The form was working properly but now all of a sudden, as I F8 run query it gives two error messages and do not run the block of detail data.

    FRM-40819: System Variable is not editable.
    FRM-40735: trigger YOU POPULATE DETAILS raised unhandled exception ORA-06502.
    What is the reason how to get rid of him?

  • Query on block child pulls documents regardless of the header block

    We have a scenario with
    (1) header block a single H1
    (2) and blocks of 3 children - b1, b2 b3, whose tabs 3 regions are formed.
    (3) b1 and b2 are child of h1 and
    (4) b3 is a child of b1

    All blocks have apply the set primary key to yes and those identified as primary key columns. At the database level, it existrs primary key and foreign key constraints are maintained

    -------------------
    Question
    -------------------
    If I take my cursor in child block b1 and the interview (F11 and Ctril + F 11), all records, regardless of the header block appear.
    (All fields and blocks are built manually, and then established relationships).

    ------------------------------------
    What has been done...
    ------------------------------------

    I tried to disable this feature with the following portion of the code first to KEY-ENTQRY and then to KEY-EXEQRY of B1 raising form trigger failure if all the H1 element fields are null. (used independently the two triggers.. .didnt use both together)


    IF (all fields in th H1 are null)
    then
    message ("cannot query here '");
    raise form_trigger_failure;
    end if;

    ----------------------
    Results
    ----------------------

    Am able to disable queries and refresh (Ctrl + F11) in the child block completely (which is not what is expected)
    If I go to the block request header on a block header field and then refresh back... It works (header and record blocks are coming)...
    Now if I go to B1 and back request, the child block not pull the relevant records of the header block

    Any thoughts on how this feature reached - so that parity between the master and the child can be maintained.

    Thank you
    SR

    This for a property in the relationship setting. Try this...
    Select your relationship in the form of the relationship nodes (data block > relationship)
    Navigate to the property or press F4, and set the following property Yes

    Prevent Masterless Operations = Yes
    

    compilation and control...

    I hope it will be work... ;)

    Hamid

    Mark correct/good to help others to get the right answers. *

  • Satellite Pro U400 BIOS update failed - what is the BIOS Boot-block access

    Hello

    My last update of the BIOS has failed and my laptop PSU45E PrU400 Satellite is now out of use.
    I want to use the recovery disk of crisis with a USB floppy drive, but I don't know the key combination to run the boot block.
    Is that someone can help me?

    Best regards

    Hello

    I was wondering what crisis recovery disk you have?  :|
    In my experience the special drive is required, which is available only for ASP technician
    That's why it of necessary to contact the ASP in your country to reflash BIOS.

    In my opinion you shouldn't t try recovery disks of the crisis who loves you in the net, it can drive to the mobo damage

  • It is possible to run Adobe Bridge CS6 on my Toshiba 32 bit?, I don't know why, but when I try to run this program, then the DEP blocks Adobe Bridge, what's the problem?

    Adobe Bridge CS6 on my Toshiba 32 bit?, I don't know why, but when I try to run this program, then the DEP blocks Adobe Bridge, what's the problem?

    This means that the program will use the incorrect memory or he is attacked by hackers or virus. See if there is an updated version.

    To allow the program to function in any case type DEP in the Start menu - Help and Support.

    Help

    Change Data Execution Prevention settings

    Data Execution Prevention (DEP) is a security feature that protects against viruses and other security threats by analyzing your programs to make sure that they use the system safely memory.

    If you choose to protect all programs, you can always turn off DEP for individual programs. If you think that a program does not run correctly when DEP is enabled, check for a compatible version of the DEP program or an update from the software publisher before you change your DEP settings.

    1. Click to open the system.

    2. Click Advanced system settings.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    3. Under performance, click settings.

    4. Click the Data Execution Prevention tab, and then click turn on DEP for all programs and services except those I select.

      To turn off DEP for an individual program

      • Select the check box next to the program that you want to turn off DEP for and then click OK.

        If the program is not in the list, click Add. Navigate to the Program files, search for the executable file of the program (it will have the .exe extension) and then click Open.

      To turn on DEP for an individual program

      • Clear the check box next to the program that you want to turn on DEP for and then click OK.

  • What does the blocking P2P 'really? '

    Hello

    We are planning to implement the blocking of BitTorrent/Peer2Peer traffic on our network wireless infrastructure and found "Blocking P2P" box on our Cisco WLC 8500 series.

    I have done some research, but does not know exactly what to this medium. What are the protocols/ports only it crashes (or does it block or filter traffic)? More technical information on what is happening behind the scenes, when this option is enabled, would be extremely useful.

    TIA

    See you soon,.

    Cam

    This blocks the direct communication between wireless network wlan clients and a single controller, it does not block specific protocols or ports, it is not really P2P but client2client

  • Startup Repair has worked 9 hours from WAU to go home 7-7 pro running. System is not blocked because I have control of the mouse and HD shows activity. What is the problem?

    Startup Repair has worked 9 hours from WAU to go home 7-7 pro running. System is not blocked because I have control of the mouse and HD shows activity. What is the problem?

    I would be out of system repair and safe boot mode:

    Start your PC, just before the system loads the Windows operating system; Press the [F8] key function 8 on your keyboard which will launch the menu Advanced Boot Options. Select Safe Mode.

    Click Start
    Type: CMD, according to the results, right-click CMD
    Click on "Run as Administrator"
    At the command prompt, type: sfc/scannow

    This will check for any breach of integrity

    Restart your system

  • When I apply the criteria to view it doesn't work, but when I apply it through query it works. What is the problem with my approach?

    Mr President

    If I ask a condition through my option of criteria of view vo it doesn't.

    vc.png

    The result is that it doesn't.

    vc1.png

    And if I apply a condition through my query vo option it works.

    vc2.png

    The result is ok as follows when I apply vc in query

    vc3.png

    What is the right way to create a vc.

    Concerning

    The first thing that seems unfair, is that I don't know what version of jdev you use.

    If I ask a condition through my option of criteria of view vo it doesn't.

    and the image below, I do not understand. I see a view Definition of criteria dialog box but not when you apply the criteria.

    the third image shows the definition of criteria, but I don't see where you apply it to or source of dialogue.

    Timo

  • Eloqua reporting: what is the difference between 'Link clicks' and 'interactive generated query string value "?

    clicks.png

    Sometimes, I need to look at the link clicks in order to determine what link they clicked and sometimes the value of query string. What is the difference?

    Redirect link is the actual URL that redirects to a specific Web site location.

    Value of query string of clicks is what follows after the "?" in the link. These query strings do not change the location where the user is directed to but is for information purposes.

    If you were to combine interactive generated link and the value of clicks query string, you will get the full link following the user.

    Example: In your screenshot, for the first row in the report, the user would have followed this link:

    https://play.Google.com/store/apps/details?ID=no.osloby.app

    The report broke it into 2 parts: clicks link (https://play.google.com/store/apps/details) and the value of query string of clicks (? id = no.osloby.app).

    You can create custom query strings under configuration > site: query strings. This can be useful if you want to create your own way to mark up and view metrics on clicks for links. When you define a query string parameter, you can add this setting with different values at the end of the links to follow only those (ex: "?") QueryStringParam = value1'). I used this is to differentiate between separate instances of identical links in the same email (ex: a link is a banner image and text) to see who is the most useful and results in the most traffic. You can then view a breakdown of clicks by each query string under Insight > reports and dashboards > site > overview of Query String parameters.

    Hope this helps... Let me know if you have any other questions.

  • What is the unit of EXTENT_SIZE in v$ sort_usage, isn't this. blocks or bytes?

    Hi all

    What is the unit of EXTENT_SIZE in v$ sort_usage, isn't this. blocks or bytes? for 11.2.0.4

    Thank you

    You mean v$ sort_segment, no v$ sort_usage. The size of the measure is levied on one size of storage space, in the blocks.

  • What is the difference btw: block.item and $item.block.item.value in State of form customization


    Hello

    What is the difference btw: block.item and $item.block.item.value in the customization of the form State section

    I've seen this condition as

    triggering event

    the point at which instance

    : PRESS RELEASE. PICKING_RULE not in the ('US_CB_1', 'US_CC_1', 'US_CA_1', 'US_CU_1')

    and

    When the point instacne

    ${item.release.picking_rule.value} not in ('US_CB_1', 'US_CC_1', 'US_CA_1', 'US_CU_1')

    the two are the same or different

    Thanks in advance

    In the particular example that you use, no difference, you are getting the value and comparing it with a set of values.

    The second form of the syntax, however, take into account what follows, while the first only retrieves the value of the field:

    Conditions can refer to properties of objects using a SPEL (simplest Possible Expression Language) syntax. For example, allows you to create a Condition that tests whether a field is displayed or not. These expressions take the following general form:

    ${objectType.objectName.Property}

    Internally, the expression of SPEL is a cover for Oracle Forms builtins like GET_ITEM_PROPERTY, GET_BLOCK_PROPERTY, etc. In addition, expressions of SPEL are supported recovery values of profile, the dictionary of text messages and local Variables (described later).

Maybe you are looking for

  • 41.0 Firefox is a beta version, I'm told of Norton. Toolbar does not work

    I've upgraded to firefox ver. 41.0 Norton Toolbar does not work with it and it's a program that I use extensively. Norton tells their toolbar does not work because the worm 41.0 is a beta version. When you release the full version, toolbar works. I d

  • I want my bookmark back tabs

    I used to be able to open a new tab and I got pinned bookmarks that I could easily go to. I got a popup asking me to upgrade my browser and it updated the browser and added a toolbar aol I didn't want (I managed to uninstall that successfully), but I

  • MBP Pro early 2011 starts after reset of the SCM

    So for the last two days my MBP early 2011 has abnormally slow fonctionnee. I use it mainly for music production with logic. For the last few days it has been slow and the sound was clipping out of my mbox in the smallest size of buffer when it the v

  • System user name and password recovery options

    Hi, looking for help to find my user name and password recovery system, I'm trying to factory reset my laptop, any information will be greatly appreciated, thanks siiinky

  • How can I save icloud photolibrary on an external hard drive

    I'm operating an iMac and 20.5 "mid-2010. I'm on OSX El Capitan, 10.11.2 My pictures version is Version 1.3 (350.23.0) The hard drive on my computer space is now filled and I need make arrangements to save a lot of my files off the computer. One opti