Dynamic disk group

Please explain me step by step to create the dynamic disk group and fill in the drop-down list box.

Thank you
Rupal

Published by: rupearlkaushal on June 13, 2012 21:39

Hi Virginia

/ * One TIME-NEW-FORM-BODY relaxation * /.

DECLARE

rg_countries RECORDGROUP; -- the dynamic record group declaration type

rg_name VARCHAR2(40) := 'country'; --  the name of record group

vTemp NUMBER;

BEGIN

-- Pls make sure Group doesn't already exist this is step is done as a check NOT for using the list for the first time but the second , and more.

rg_countries  := FIND_GROUP(rg_name);  --- Look for the RG is it  already exist in Memory ?

-- If it doesn't exist then create it and add ur query to it (First time running)

IF Id_Null (rg_countries) THEN  -- if it doesn't exist then create it

rg_countries:=CREATE_GROUP_FROM_QUERY(rg_name ,
'SELECT country_name NAME, COUNTRY_ID VALUE FROM COUNTRY ORDER BY 2');

--Populate the Record Group -- and display it pls in a variable for HOLDING it on hand First in the memory ---

vTemp:=POPULATE_GROUP(rg_countries);

-- Then Show it to me in Run time i wanna see it with my eyes cause i can't see it in a variable

POPULATE_LIST('BLOCK3.COUNTRIES', rg_name);

END;

 

It's she... :)

I hope this helps...

Kind regards

Tags: Oracle Development

Similar Questions

  • Dynamic record group works not when using apostrophes

    Hello world

    I developed a form most of the time, everything works as expected. However, there is a search feature that gives me problems. The problem is that when the user enters the search criteria for last_name with an apostrophe (O'brian) lov research get filled because the dynamic disk group is not created when the string contains an apostrophe (i.e. O'brian). I have a dynamic disk group that takes the user's search criteria and fills a LOV on the screen with the corresponding records to their criteria.

    Here is the code that is behind my search button where the dynamic RG is created. It works very well for any research that does not contain an apostrophe. BTW, the Oracle Forms version is 10g.

    DECLARE

    p_where_debtor varchar2 (2000);
    p_where_liab varchar2 (2000);
    RG_ID RecordGroup;
    v_query varchar2 (2000): = null;
    rg_name varchar2 (2000): = "RG_LIAB_LST";
    ERRCODE NUMBER;
    BEGIN

    IF: SEARCH.cd_nb is null and
    : SEARCH.cd_seq is null and
    : SEARCH.f_name is null and
    : SEARCH.l_name is null and
    : SEARCH.mi_name is null
    then
    display_message (' search criteria must be entered ");
    raise form_trigger_failure;
    END IF;

    v_query: = ' SELECT name, middle_name, c_no, c_seq
    FROM TABLE_VW2 WHERE 1 = 1';
    / * Search criteria entered by the user * /.

    IF: SEARCH.l_name_srch IS NOT NULL THEN
    v_query: = v_query | "AND UPPER (last_name) AS"' | Upper(:Search.L_Name) | » %''';
    END IF;

    IF: SEARCH.f_name_srch IS NOT NULL THEN
    v_query: = v_query | "AND UPPER (first_name) AS"' | Upper(:Search.F_NAME) | » %''';
    END IF;

    IF: SEARCH.mi_srch IS NOT NULL THEN
    v_query: = v_query | "AND UPPER (middle_name) AS"' | Upper(:Search.mi_name) | » %''';
    END IF;

    IF: SEARCH.cdcs_nbr_srch IS NOT NULL THEN
    v_query: = v_query | "AND UPPER (c_no) AS"' | Upper(:Search.cd_nb) | » %''';
    END IF;

    IF: SEARCH.cdcs_seq_srch IS NOT NULL THEN
    v_query: = v_query | "AND UPPER (c_seq) AS"' | Upper(:Search.cd_seq) | » %''';
    END IF;

    / * Make sure that the record group exists * /.

    RG_ID: = Find_Group (rg_name);

    / * If there are then create record group * /.

    IF id_null (rg_id) THEN
    RG_ID: = create_group_from_query (rg_name, v_query);
    END IF;

    IF this is id_null (rg_id) THEN
    delete_group (rg_id);

    RG_ID: = create_group_from_query (rg_name, v_query);
    END IF;

    Errcode: = Populate_Group (rg_id);

    Any help would be greatly appreciated.

    Thank you

    Adrian

    For each item where an apostroph may occur, make a

    REPLACE(:BLOCK.ITEM, '''', '''''');
    
  • Creating dynamically record group.

    Hello

    I have multi line block. My req is I create record group dynamically based on some fields of line level. This item then my card code - key.

    DECLARE
    group_id RecordGroup;
    v_lms_lov lov.
    BEGIN

    group_id: = Create_Group_From_Query ("RG_LMSID",
    ' SELECT lms_id
    OF sify_lms_header
    WHERE from_location =: lines.from_location
    AND to_location =: lines.to_location; »

    v_lms_lov: = find_lov ('LOV_LMSID');

    set_lov_property (v_lms_lov, group_name, 'RG_LMSID');

    Set_Item_Property('LINES.) LMS_ID', LOV_NAME, 'LOV_LMSID');

    END;

    It is said, no record in lov. Anything I've missed.
    Or any other way to do this.
    Pl help.

    Thank you
    Kouadio

    Kouadio,

    Why you need dynamic disk group for this?, you can give the control names in the query of the record group. Then the query of the record group will be

    SELECT LMS_ID FROM SIFY_LMS_HEADER WHERE FROM_LOCATION = :LINES.FROM_LOCATION AND TO_LOCATION = :LINES.TO_LOCATION
    

    If you still want to use dynamic disk group creation, then try

    DECLARE
         RG_Group_ID RECORDGROUP;
    BEGIN
         RG_Group_ID := FIND_GROUP('RG_LMSID');
      IF NOT Id_Null(RG_Group_ID) THEN
              DELETE_GROUP(RG_Group_ID);
      END IF;
         RG_Group_ID := CREATE_GROUP_FROM_QUERY('RG_LMSID', 'SELECT LMS_ID FROM SIFY_LMS_HEADER WHERE FROM_LOCATION = ''' || :LINES.FROM_LOCATION || ''' AND TO_LOCATION = ''' || :LINES.TO_LOCATION || '''');
         SET_LOV_PROPERTY('LOV_LMSID',     GROUP_NAME, 'RG_LMSID');
         SET_ITEM_PROPERTY('LINES.LMS_ID', LOV_NAME,   'LOV_LMSID');
    END;
    

    Kind regards

    Manu.

    If my response or response from another person was helpful, please mark accordingly

  • How to install the dynamic disk volume and base set

    I have 500 GB of HARD drive.

    How can I convert a 1 and 2 in basic and volume 3 in Dynamics.

    Please tell me something that is free of cost, and I don't want to use a software to do this.

    Hi Lynda,

    I'll be happy to help you with the problem you have with the computer.

    To create a dynamic disk volume, you must convert basic dynamic first of all disks. How to convert the basic dynamic disk?

    1. connect you as an administrator or as a member of the Administrators group.

    2. right click on my computer > manage > storage > disk management.

    3. in the lower pane, right-click the basic disk you want to convert, and then click on convert to dynamic disk. You must right-click the gray area that contains the title of the disk on the left side of the details pane.

    Warning: After you convert a disk from a dynamic disk basic, local access to the dynamic disk is limited to editions of Windows Windows 2000 at the latest. In addition, after you convert a disk from basic to dynamic disk, the dynamic volumes cannot be changed to partitions. You must first delete all dynamic volumes on the disk and then convert the dynamic disk to Basic.

    Thank you.

  • Difference between ADVM Volume and filesystem ACFS ASM disk group

    Q1. What is the difference between an ASM disk group and a Volume of ADVM?

    In my opinion, an ASM disk group is actually a logical volume to the database (including the FRA files) files.

    11 GR 2 appears to have introduced the notions of volumes ADVM and filesystems ACFS.

    11 GR 2 ASM disk group can contain:

    • ASM disks
    • Volumes ADVM
    • Filesystems ACFS

    Q2. ADVM volumes appear to be dynamic volumes.

    However is it therefore not effectively overlaying a logical volume (the volume ADVM) under ASM disk group (conceptually a logical volume as well)?

    Even worse, if you left the ASM disk group redundancy in hardware RAID / SAN level (as recommended Oracle), you actually have 3 layers of logical disk? (ASM on top of ADVM on top of RAID/SAN)?

    Q3. If it is 2 layers of logical disk (i.e. on top of ADVM ASM), what makes this better than 2 layers using a 3rd party volume manager (for example the DSO at the top of the 3rd party LVM) - something Oracle encourages against?

    Q4. ACFS file systems, seem to be file systems clustered for not including ORACLE_HOMEs database files, application exe etc (but NOT GRID_HOME, OS root, OCR or voting records)

    Can you create / modify filesystems ACFS using ASM.

    The diagram of topology of oracle for ASM in ASM 11 GR 2 administration guide, says ACF in ASM. I'm not sure about that if ACFS belongs to ASM or ASM is located at the top of the ACF?

    Q5. Connected to the 4th quarter. There seems to be a number of different ways, ACFS file systems can be created? Which of this is the valid methods?

    • Thanks to ASM?
    • through native OS file system creation?
    • through OEM?
    • through acfsutil?

    my head explodes

    Any help and clarification appreciated

    Jim


    Q1 - volume ADVM is a type of special file created at the DG of the DSO.  Once created, it creates a block device on the BONE itself which can be used as any other block device.  http://docs.Oracle.com/CD/E16655_01/server.121/e17612/asmfilesystem.htm#OSTMG30000

    Q2 - the asm disk group is a group of disks, not really a logical volume.  It combines the attributes of both when it is used for purposes of database as the database and some other applications know how to talk about Protocol 'ASM '.  However, you won't find all the versatile applications that can do.  In addition, some clients prefer to deal directly with files and devices of volume systems which ADVM is forced to make.  In your thinking, you have 3 layers of logical disk, but each of them provides features and different attributes.  This is not a bad thing, though, as each has a slightly different purpose - os file system\device, specific database and storage-centric.

    Q3 - ADVM is specifically developed to extend the features of the DSO for use by General applications of BONE.  It includes the performance of database features and is tuned to work well in this situation.  Because it is developed in-house, it benefits from the design of ASM model.  In addition, rather than having to communicate with several vendors for support, your support is limited to calling Oracle, a single window.

    Q4 - you can create and modify filesystems ACFS by using command line tools and the ASMCA.  Creation and modification of logical volumes coming through SQL (ASM), asmcmd and ASMCA.  EM can also be used for the two elements.  ACFS is located at the top of the ADVM, which is a file in an ASM disk group.  ACFS is aware of the characteristics of the ASM\ADVM volumes and tunes it's IO make best use of these features.

    Q5 - several ways:

    1) connect to ASM with SQL, use 'alter diskgroup add volume' as Mihael points out.  This creates an ADVM volume.  Then, put in shape volume using the "mkfs" (* nix) or acfsformat (windows).

    (2) use ASMCA - a GUI to create volume and a file system.  Probably the easiest if your head is explosion.

    (3) use "asmcmd" to create a volume and 'mkfs' to put in shape file ACFS system.

    Here is information on the ASMCA, with examples:

    http://docs.Oracle.com/CD/E16655_01/server.121/e17612/asmca_acfs.htm#OSTMG94348

    Information about the command line tools, with examples:

    Basic steps to manage systems Oracle ACFS

  • PowerEdge 2950 advanced settings recommended virtual disk group

    Hey guys, I was hoping that someone out there has had some information about the nature best practices or the best settings for these two configurations of a Dell 2950 with PERC 5 controller / i.

    Senario 1

    Reference Dell 2950 Windows Server 2003 Enterprise Edition 32-BIT

    RAID 5 (5 TB) hardware RAID & Windows dynamic disk Configuration

    PERC 5 / i with battery

    Group of virtual disk current avancΘs

    Virtual disk 0 - Adaptive Read Ahead and Write Back

    Virtual disk 1 - Adaptive Read Ahead and Write Back

    Senario 2

    Reference Dell 2950 Windows Server 2003 Enterprise Edition 32-BIT

    RAID 5 (5 TB) hardware RAID & Windows dynamic disk Configuration

    PERC 5 / i with battery

    Group of virtual disk current avancΘs

    Virtual disk 0 - Adaptive Read Ahead & direct writing

    Virtual disk 1 - Adaptive Read Ahead & direct writing

    The second server now has a battery that has failed and we are on the way. I want to add that I just found out that a bad or dead battery kills performance on the server reading and the writing speed. After replacing the battery on the first server, I saw performance increase by at least 300% if it is longer. So this lead me to read a lot of posts by others, but I couldn't find a solid peg that indicates what should be the best configuration. So my questions are... What is the best configuration for Virtual Disk Group advanced settings for MY servers above WITH a controller battery? Finally, what happens if I didn't use the battery which is recommended then? Is it better to use a battery or be without one? Bottom line is that I best performance of reading and writing, thank you to you all!

    300% is too much of a performance increase to attribute entirely to the write cache is enabled, even if it makes a significant difference.  When the battery goes bad, the controller disables the write cache, and it is the source of the performance difference.  Unless you have a specific reason to disable the cache (and I see no good reason), it must be enabled.  You can not force the controller to use memory cache without battery, not to mention that it's dangerous for your data to use the cache without battery.

    "Bottom line is that I the highest performance for reading and writing, thank you to you all!

    Bottom line... turn write cache (write back) and replace the batteries when needed (which should not be often).

  • Bootcamp converted to dynamic disk, now no windows without OS Macbook!

    Hello

    I converted accidentally Bootcamp (Windows 7 64 bit) the dynamic disk while I was inside Windows.

    Now, after the start of the only option I get is 'Windows', but 'Macbook' and 'Value' disappeared!

    When I choose Windows, it won't start. Windows Recovery stands up and says can not solve the problem.

    That's happened? What should I do now?

    I'm finished * off

    Thank you

    I forgot to add that no combination of keys doesn't work.

  • HP recovery partition and dynamic disk!

    Just got my new laptop and added a partition of my HP pavilion dv7 WIN 7 64 bit and noticed disc was dynamic. I don't know if it changed the dynamics or as it was delivered. I'll always be able to use the recovery on the dynamic disk partition? And if I create recovery discs, they will work on the dynamic disk or will it convert back to base?

    It can work with Easus software, but I'm sure that you need to remove this extra partition before conversion back is possible.

    If you need an extra partition, look HERE page on the use of the recovery partition or delete to free up hard disk to create a new partition without conversion by burning a resumption of course the value of dynamic_after.

  • How to convert a dynamic disk to a basic?

    How to convert a dynamic disk to a basic? I can't really deleat the C and readers of the system, and if so, how?

    Hi Brad,

    Welcome to Microsoft Community and thank you for the query display.

    According to the description, it seems that you want to convert a dynamic disk to Basic.

    However, we need more information about the issue to help you better.

    Please help me to answer these questions.

    1 how many partitions are on the hard drive?

    2 is installed Windows on drive C?

    3. you have any operating system installed on the hard drive?

    To convert the dynamic disk to basic, here are some steps that you can try.

    You can try to convert the dynamic disk drive basis (except your drive C :) using the Diskpart.exe in the command line. By following these steps, you can avoid reinstalling Windows XP. But if you want all the hard disk as a single partition, then proceed as follows.

    Note: Before formatting the hard drive or perform the steps, back up your data to an external storage device.

    Steps to convert dynamic disk to basic

    a. press Windows key + r on the keyboard and in the immediate window, type cmd.exe

    b. in the command prompt and type D iskpart .

    c. at the Diskpart prompt, type list disk . Note the number of the disk you want to convert to dynamic.

    d. at the Diskpart prompt, type select disk . (select the dynamic disk you want to convert.)

    e. at the Diskpart prompt, type clean to remove all volumes on the disk.

    (f) then, at the Diskpart prompt, type: convert base to begin to restore the disk to basic training.

    Respond us if you have any queries with hard drive problems and we will be happy to help you.

  • Y we can convert dynamic disk to basic again after having already converted to dynamic?

    We all know that the default value of the hard drive is (Basic) and some timed Let's convert in cuz our uses (dynamic), my question is how can we convert in new Basic or it's impossible?

    Thank you

    It could be the case that you cannot remove the active OS partition / volume.  If this is the case, try to create a "Hirens Boot CD" and the start of this CD.  In the first start screen, choose "Mini XP.  Once it starts, follow the instructions in the following article:

    "To change a dynamic disk to basic disk back.
      <>http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/dm_revert_disk.mspx?mfr=true >

    To create a Hirens Boot CD, download the ".zip" file extract in a folder and double-click the ".cmd" file within the archive extracted.

    You will need to re - install windows after you complete these steps.

    Hirens: <> http://www.hirensbootcd.org/download/ >

    HTH,
    JW

  • What is a dynamic disk

    I installed an extra internal hard drive. I've been asek the question I want to make this dynamic or basic disk. someone tell me what is a dynamic disk.

    Make a basic disk.

    http://www.Petri.co.il/difference_between_basic_and_dynamic_disks_in_windows_xp_2000_2003.htm

    http://support.Microsoft.com/kb/314343

  • Re-installed XP Pro. Now can not access data dynamic disk on the HD 2

    Hey all. Good here we will...

    My system has TWO SATA drives. A year ago I converted both Dyamic discs thinking I could use them in a RAID, but decided to do it. So, since that time I am using OS + critical data Disk1 and Disk2 as a backup (compressed image of Disk1).

    My question is now, I have re-installed XP Pro on disk 1 and my computer does not allow me to see the data in Disk2. XP Pro detects disc 2 as "base" and asks me to format it. However, my BART PE bootdisk shows 2 disk as dynamic and he can't read.

    This is where I am. I'm trying to understand how to read data from disk 2. Whether some use of software 3rd party or a way to get XP Pro to see the data.

    Check the knowledge base on best practices with dynamic disks.
    http://support.Microsoft.com/search/?adv=1
    For example.
    http://support.Microsoft.com/kb/329707

    "Dynamic disks use a private disk region to maintain a logical disk manager (LDM) database, which contains the types of volumes, offsets, memberships and the drive letters of each volume. The LDM database is also replicated, so that each dynamic disk knows about every other dynamic disk configuration. This feature makes dynamic disks more reliable and recoverable than basic disks. »

    You suggest that your second drive can still have a copy of his information LDM. In other words, as long as you did not "commit a sin" as defined in this article.

    See 'import records' here and see if 'Foreign' is displayed for the drive in disk management.
    Disk management is where you want to look for info on the disc.
    http://TechNet.Microsoft.com/en-us/library/bb457110.aspx#EEAA

    Another response of the community of Windows XP newsgroups

  • Non-destructive how to convert dynamic disks to basic disks

    I instaled vista today (wd70gbwd disk0) but my (hd500g wd disk 1 backup) is offline in the management of the computer, only that I have is to transfer to the BASE. Now disk is DYNAMIC cause I had win xp before, I know that I can do but there is problem, I have too many pictures and videos on my HARD drive that I keep wonna... .so is the solution for my online HARD drive without formatig my HARD drive?

    If the solution is to get out them and transfer them or copy my hard drive via the external enclosure then format then copy it again no thanks... causes I have no external box or another xp at the mercy House!

    Non-destructive how to convert dynamic disks to basic disks

    go here and follow step by step

    http://mypkb.WordPress.com/2007/03/28/how-to-non-destructively-convert-dynamic-disks-to-basic-disks/

  • Error "the dynamic disks are not supported by this operating system." what configuration Raid 0 (striped) readers.

    I have my operating system installed on a single disc, and I bought two additional discs I want to implement in a Raid 0 configuration. I'm going to administrative tools > computer management > disk management > right-click on a single disc and select the new striped volume > add the second drive and fill the dialog box until I get to the part where the formatting is supposed to start. Then I am stopped by an error that says "the dynamic disks are not supported on this operating system."

    Who says that hard drives, I bought are not compatible with vista interlacing or it says that vista can not the striped disks. What is the problem?

    You need to configure raid 0 before installation of win, you cannot "convert" s simple drive to the part of a matrix of blocks.

    In general this is not a good idea to use software raid, too a overload the CPU. If you want to raid, invest in a dedicated hardware raid card, which for a decent cost probably more than your motherboard

  • Pavilion DV6 3122sl: Notebook DV6 3122sl HDD dynamic disk can be cloned on SSD

    I want to change the drive HARD Samsung 320 GB with a SSD Samsung EVO 850 256 GB.

    My HDD + o - 170 GB and othe is free.

    My problem is: SSD cannot accept as dynamic disk configuration, then I have to copy (clone) system.

    How this is possible, I'm not able to do.

    Any answer to this request?

    Please, thank you.

    with the AOMEI tool, I made a backup of dynamic drive (internal hard drive for laptop DV6 3122sl) not enterily,

    only one backup.

    I made 2 backup:

    1 ^ system with C: operating system backup

    (System bring letter O or any 199 MB

    Windows 7 in C: which appear as 'LOGIC') 146 GB (80 GB used)

    2 ^ back-up Recovery Partition 19 GB D:

    Backup of G: HP_TOOLS 99 MB

    I cloned 1 ^ backup on EVO 850 and the result were:

    Drive C: status of operating system LOGIC

    Disc part O: primary system

    When laptop open it a message like "there is no Operating system.

    Windows 7 using "compmgmt.msc" in the drive section is not possible translating volume LOGIC of Partition primary and

    activate that, to my knowledge, the operation of CHANGE MEMORY SSD HARD drive is not possible.

    I hope that "HP" can help me to achieve this change, how, I don't know, but I am a user, not a graduate.

    Help me please!

Maybe you are looking for

  • How can I copy my camera Sony AVCHD files without having to use Quicktime?

    On my old iMac would be to hook up my Sony Hancam with a USB cable.  I would copy and paste from the camcorder to a file on my computer.  To view these files I would display them through VLC player.  If I used Quicktime I have no sound and video.  Af

  • To upgrade my Qosmio X 770 with a SSD

    Hi guys,. I ve got a P5BY5E X 770 laptop Qosmio, with a 500 GB SSH and 500 GB of HARD drive. I want to spend the drive system hard for a 160 GB SSD and now my Question. If I want to use the function of recovery there is an error. If I want to use the

  • HP Photosmart 1115: hp photosmart 1115

    Color cartridge is replaced with the new cartridge (bought today) authentic hp HP78XL. Get the following error: "the color cartridge is missing. "follow the cartridge completely in.  I noticed on the cartridge itself, the number is 23 (hp c1823d). Th

  • question K3 ideaCenter demo mode

    Hey guys, I just bought a K3 ideaCenter yesterday and love it, HOWEVER: I can not for the life of understand me how to disable "demo/draw" mode as the computer goes in when left alone for more than a minute or two. It's quite irratiting, because I'm

  • Pavilion DV5 power cord

    Hello I want to replace and resolder just the plug of metal and plastic that goes into the computer. If they are not sold only, 2nd choice is the card attached to a cord with wires at the end. Can someone tell me where to go and what inside and outsi