WITH or CONNECT BY on several tables and function call

Hi all

I saw several post, documentation and several tutorials and cant' wrap your head around the query. I am creating a hierarchy of hosts in a model parent child and for each parent, I need to generate html code. I now have the id of the top most parent but has difficulty to get the logic to generate the output I need.

In short, I have 1 parent with children and some of these children may be parents themselves and the parent over the top of the PAGE is always-1

I need to call the pl/sql function to generate the code (only and only if it is a parent)

I've been at this for awhile and only have the basics but are struggling to try to get what I need. I'im so confused at this point I don't know even how to explain it.

So bear with me, I have included the test data for all who can help:

-STEP 1-> OK

-STEP 2-> DON'T know what I'm doing, but I'm generating an output of hierarchy

-STEP 3-> paths are a bit inaccurate. DB1 and DB2 are repeated and their correct path is/LOCALHOST/RT1/SVR-DEV-01/DB1

-STEP 4-> I'm so confused, I could not explain other then I have to call my function in reverse order of STEP2 so that more "host_object" really is a child and therefore function should not be called.

-- Heis my query my base query

SELECT DISTINCT h.id,
                h.host_object_id,
                h.display_name,
                COALESCE(h3.host_object_id, -1) AS parent_id,

FROM hosts h
LEFT JOIN host_parenthosts h4 ON (h.id = h4.host_id)
LEFT JOIN hosts h3 ON h3.host_object_id = h4.parent_host_object_id;

It may be easier to do using PL/SQL. Here is an example that you may be able to take as a starting point. It uses recursion to write lines in a simple table, then writes the table at the end.

SET SERVEROUTPUT ON
DECLARE

  g_lines_list SYS.ODCIVarchar2List := SYS.ODCIVarchar2List();
  CURSOR c_top IS
  SELECT hst.id, hst.host_object_id, hst.display_name
    FROM hosts hst
   WHERE NOT EXISTS (SELECT 1
                       FROM host_parenthosts par
                      WHERE par.host_id     = hst.id
              );
  l_id     PLS_INTEGER;

  FUNCTION Write_Log (p_line VARCHAR2, p_level PLS_INTEGER) RETURN PLS_INTEGER IS
  BEGIN

    g_lines_list.EXTEND;
    g_lines_list (g_lines_list.count) := LPad ('.', 2*(p_level+1), '.') || p_line;
    RETURN g_lines_list.count;

  END Write_Log;

  FUNCTION JSON_Expand (p_level PLS_INTEGER, p_parent_id PLS_INTEGER) RETURN VARCHAR2 IS
    l_chi_str          VARCHAR2(30);
    l_id             PLS_INTEGER;
    CURSOR c_chi IS
    SELECT hst.id, hst.host_object_id, hst.display_name
      FROM host_parenthosts          par
      JOIN hosts               hst
        ON hst.id               = par.host_id
     WHERE par.parent_host_object_id     = p_parent_id;

  BEGIN

    FOR r_chi IN c_chi LOOP

      IF l_chi_str IS NOT NULL THEN
        g_lines_list(g_lines_list.COUNT) := g_lines_list(g_lines_list.COUNT) || ',';
      END IF;
      l_id := Write_Log ('{Id: ' || r_chi.id || ', Name: ' || r_chi.display_name, p_level);
      g_lines_list(l_id) := g_lines_list(l_id) || JSON_Expand (p_level + 1, r_chi.host_object_id);
      l_chi_str := ', Children: [';

    END LOOP;

    IF l_chi_str IS NOT NULL THEN

      l_id := Write_Log (']}', p_level - 1);

    ELSE

        g_lines_list(g_lines_list.COUNT) := g_lines_list(g_lines_list.COUNT) || '}';

    END IF;
    RETURN l_chi_str;

  END JSON_Expand;
BEGIN

  FOR r_top IN c_top LOOP
    l_id := Write_Log ('{Id: ' || r_top.id || ', Name: ' || r_top.display_name, -1);
    g_lines_list(l_id) := g_lines_list(l_id) || JSON_Expand (0, r_top.host_object_id);
  END LOOP;

  DBMS_Output.Put_Line ('Stored lines...');
  FOR i IN 1..g_lines_list.COUNT LOOP
    DBMS_Output.Put_Line (g_lines_list(i));
  END LOOP;

END;
/

Strategic outcome on your data:

Stored lines...
{Id: 2604, Name: LOCALHOST, Children: [
..{Id: 2580, Name: VRT-42, Children: [
....{Id: 2597, Name: solaris},
....{Id: 2598, Name: dell-2},
....{Id: 2600, Name: acer-3}
..]},
..{Id: 2581, Name: RT1, Children: [
....{Id: 2591, Name: SVR-DEV-01, Children: [
......{Id: 2577, Name: DB1},
......{Id: 2578, Name: DB2}
....]}
..]},
..{Id: 2590, Name: VMHOST-01},
..{Id: 2591, Name: SVR-DEV-01, Children: [
....{Id: 2577, Name: DB1},
....{Id: 2578, Name: DB2}
..]},
..{Id: 2592, Name: VMHOST-02},
..{Id: 2594, Name: SRV-ORA-77},
..{Id: 2594, Name: SRV-ORA-77},
..{Id: 2607, Name: winserver2008}
]}

PL/SQL procedure successfully completed.

Tags: Database

Similar Questions

  • Digital limit - several tables and 1 table limit test

    Hello!

    I am quite new to Teststand and I'm stuck with a problem whose solution should not be otherwise complex... (I think...).

    I would use a "limit test digital"vi (LabVIEW module). " This vi returns 3 paintings and I would define 1 "min/max" for each table.

    that is to say:

    Array1 => each element compared to min - 1 & max1

    Array2 => each element compared to min2 & max2

    ARRAY3 => each element compared to min3 & max3

    For 1 table, I found this solution: I write Locals.ARRAY1 [RunState.LoopIndex] 'DataSource' and all the elements of the array are compared to the limits that I chose. Of course, when I add 2 tables, the same limits are compared to these new windows but I would allocate 1 limits given in table 1.

    Does anyone have an idea of an easy solution?

    My code Teststand and the small vi are here below if this might help.

    Thank you in advance!

    Consider this example.  The trick is to repeat a measurement on the Data Source tab.

  • Retriving data by joining several tables and total general

    Hello PL/SQL gurus and experts.

    I use Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64-bit Production version
    I have table-

    I have the following three tables
    DROP TABLE Person_Tb;
    create table Person_Tb(Person_ID,Person_FName,Person_LName) as select
    1001, 'Nikki','Carlos' from dual union all select
    1002, 'Nina', 'Harrison' from DUAL union all select
    1003, 'Mike', 'Carwely' from dual union all select
    1004, 'Michael', 'Robinson' from DUAL union all select
    1005, 'Hendi', 'Klum' from dual union all select
    1006, 'Robert', 'Regan' from dual union all select
    1007, 'Maria', 'Washington' from dual union all select
    1008, 'Kistrien', 'Obama' from dual union all select
    1009, 'Andrew', 'Regan' from dual union all select
    1010, 'Emma', 'Thomsan' from dual union all select
    1011, 'Andy', 'Grant' from dual union all select
    1012, 'Brandy', 'Decosta' from dual;
    DROP TABLE Teacher;
    create table Teacher(Teacher_ID,Fee_Date,Account_ID) as select
    1001, '04/04/2013',3004 from dual union all select
    1002, '04/06/2013',3006 from DUAL union all select
    1003, '04/08/2013',3014 from dual union all select
    1004, '04/08/2013',3017 from DUAL union all select
    1005, '04/09/2013',3019 from dual union all select
    1011, '04/12/2013',3025 from dual union all select
    1012, '04/12/2013',3046 from DUAL;
    DROP TABLE Student;
    create table Student(Student_ID,Subaccount_ID) as select
    1006,3004 from dual union all select
    1007,3006 from DUAL union all select
    1008,3004 from dual union all select
    1009,3017 from DUAL union all select
    1010,3017 from dual;
    I am able to recover the data individually Tracher and student as -.
    Select distinct pt.Person_LName || ',' ||
                                           pt.Person_FName Trdr_NM
                                      from Student st, person_Tb pt
                                     where st.Student_id = pt.PERSON_ID
    Select distinct pt.Person_LName || ',' ||
                                           pt.Person_FName SubAct_Invst
                                      from Teacher  tc, person_Tb pt
                                     where tc.teacher_id = pt.PERSON_ID
    I need to get the records for all teachers who are associated with students-
    SubAct_Invst     Trdr_NM
    ----------------------------------------------------
    Carlos,Nikki 
              Regan,Robert
              Obama,Kistrien
    Harrison,Nina
              Washington,Maria
    Carwely,Mike
    Robinson,Michael
              Regan,Andrew
              Thomsan,Emma
    Klum,Hendi
    Grant,Andy
    Decosta,Brandy
    ------------------------------------------------------
    Grand Total
    7                                5
    But how to retrieve the data above format, many want to help. Thanks in advance and I really appericate your time and efforts.

    Ideally, your condition must be handled by a front-end tool...

    If you need specifically using SQL, you can check my previous post...

  • How to connect two ESXi hosts with a connection to 1Gbps via ADJUSTABLE and the transfer of files between them?

    Dear community,

    Like many of you, I am facing the problem of executing an effective backup of VMs. unfortunately I can't use standard methods: my servers are rented from the root servers and therefore haver some limits. Their main NIC is connected to the Internet on the speed of 100 MB. It's very slow, if I try to VM backup via this connection images. In addition, backup sessions running through the shared management interface are affecting the production of virtual machine performance.

    To resolve this problem, I ordered an additional network card to each server and asked the data center to connect my themwith a physical link (crossover cable). OK, between my servers 1Gbit link is established, but how do you use now?

    -I can not move the management interface of these cards, because they have no connection to the internet.

    -I can't use among the guest computers because the guest computer is unable to access the files on disk on the host computer.

    So, I've exhausted all my ideas. Maybe someone knows the trick that will let me use 1 GB link between two machines of ESXi to mutually backup disks of virtual machines from one host to another.

    Thanks in advance for your ideas.

    Who is King

    Anton

    Create a vSwitch on each host and set the NETWORK adapter that you will use with the x-over cable.

    Create a portgroup Console of service on each vSwitch and assign it an IP address on the same subnet for each server (router/gateway address does not necessary) for example 192.168.0.1 and 192.168.0.2 on each host.

    Connect the cables between the server network cards.

    You should have a link between two service consoles. I now download and deploy the device of the vMA, on the two hosts for the fault tolerance. Write a script on the VMAs on each host to a-i vmkfstools from one host to another and vice versa.

    If you have virtual machines registered pointing these VMDK on both hosts, then have your scripts remove the VMDK and re - the clone using vmfkstools whenever you back up, you should have a backup solution of rudimentary virtual machine (full copy) in place.

    Now you do not miss the service console?

    Good luck

    Alex

    www.phdvirtual.com

  • problems with IE7 in the use of tables and onLoad

    Thank you in advance for any help. I have a table that is used to store the names of. Files to load into another SWF. SWF video. When I call the "onLoad" method, it works in all browsers except IE7? See the example below:

    prod_a = new Array;
    prod_a [0] = 12; number of products in the table. Currently, this feature is not used...
    prod_a [1] = "product1.swf";
    prod_a [2] = "product2.swf";
    prod_a [3] = "product3.swf";
    prod_a [4] = "product4.swf";
    prod_a [5] = "product5.swf";

    onLoad = Function)
    {
    Description();
    moveScroller();
    loader_mc.loadMovie(prod_a[1]);
    }

    When the file opens, it loads the '2' slot flash file in the table in the "loader_mc" EXCEPT IT DO WORKS NOT IN IE 7? any ideas or help would be great! IE7 handles the different "onLoad"? I made a mistake?

    Thank you Sly one, but that's not the problem I currentl having a Java work around for this. I tried a few different solutions to the problem "click to activate". I found that none of them made a difference.

    I resorted to a solution of 'disorder' but effective. -items I've been hainvg problems with were dynamically loading the text and images. I had the problem by placing the images and the text which was to load 'onLoad', in the boxes as _mc objects. in this way the images were already there and didn't need to be loaded.

    The only two problems with this is
    (A) Firefox and Safari users (including other) screen "Refresh" the image loading. and
    (B) the size of the file was more than 35 KB.

    Thanks for the help everyone, the final is good enough for Government work...
    -DIG

  • Charger xml with sql loader in an xmltype table and show that contain it this XML table

    Hello

    I have a xml document and I want to load in an xmltype table.

    create table foo as xmltype;


    the control file is:


    LOAD DATA
    INFILE
    *
    INTO TABLE foo
    TRUNCATE
    XMLType(XMLDATA)(
    lobfn FILLER CHAR TERMINATED BY
    ',',
    XMLDATA LOBFILE
    (lobfn) TERMINATED BY EOF
    )
    BEGINDATA
    C
    :\Users\xxx\Desktop\file.xml


    now, I want to show the content of the xml file that is loaded at the time of table. How do you?


    select * from foo;   ??


    but this does not show the content of this xml file, but only total, this xml code.



    Thank you

    Hello

    Try to take a look at the Oracle XML SQL functions:

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28369/xdb04cre.htm

  • arrangment table and function:

    I have a virtual world who send a picture of the game info in a certain format. Receive it games and game according to the table sent import assets.

    I have a function that must be a table in a certain format. Basically, because I'm a beginner and the function was made for me. I believe in its present form, BUT I don't know how to change it to receive the picture as I have.

    The function (as I say did for me) as current needs simple strings passed in which is awesome, BUT I like 20 games and a virtual world set in place to receive data as the first table. I know I'm a little behind but things are based on my abilities, NOT on best practices. The step-by-step approach. I need to find a way to one loop each that accesses the first string as my rope from Apple that can use the same function. OR if I can separate the two strings as mc Apple and its AppleSound.

    Y at - it nokind of the function as follows:

    for each (var className:String (is the key mc) in rslClasses)

    I would like to that data sent in my service: I can't change it at the moment. In the future, I'll definitely.

    * This.definitionsArray = new Array();
    this.definitionsArray.push ({mc: "Apple", sound: "AppleSound"});
    this.definitionsArray.push ({mc: 'Banana', sound: "BananaSound"});
    this.definitionsArray.push ({mc: «Pain», sound: "BreadSound"});
    this.definitionsArray.push ({mc: "Cake" sound: "CakeSound"});
    this.definitionsArray.push ({mc: 'Water', sound: "WaterSound"});
    this.definitionsArray.push ({mc: "Tomato", sound: "TomatoSound"});
    this.definitionsArray.push ({mc: "Sandwich", sound: "SandwichSound"});
    this.definitionsArray.push ({mc: "Pizza", sound: "PizzaSound"});
    this.definitionsArray.push ({mc: "Pear", sound: "PearSound"});
    this.definitionsArray.push ({mc: "Orange", sound: "OrangeSound"}) ;*/

    However, it is how the current function wants the data to be organized.
    this.definitionsArray = new Array();
    this.definitionsArray.push ("Apple");
    this.definitionsArray.push ("banana");
    this.definitionsArray.push ("bread");
    this.definitionsArray.push ('cake');
    this.definitionsArray.push ('water');
    this.definitionsArray.push ("tomato");
    this.definitionsArray.push ('Sandwich');
    this.definitionsArray.push ('Pizza');
    this.definitionsArray.push ("pear");
    this.definitionsArray.push ("Orange");

    The function is as follows:

    private void onAssetsLoaded(e:Event):void
    {
    LoaderInfo (e.target) .removeEventListener (Event.COMPLETE, onAssetsLoaded);
    var rslClasses:Array = ['Apple', 'Banana', 'Bread', 'Cake', 'Water', 'Tomato', 'Sandwich', 'Pizza', 'Pear', 'Orange'];
    var rslClasses:Array;
    rslClasses = definitionsArray;
    bubbles = [];
    for each (var className:String in rslClasses)
    {
    Bubbles.push (new bubble (className, className + "Sound")); This is more effective but my V.World happening in one below
    Bubbles.push (new bubble (className, className));
    }
    placeBubbles();
    trace ("BUBBLES =" + bubbles [0] [icon]); trace error - then who do we trace objects
    }

    They are actually objects - look at the line:

    this.definitionsArray.push ({mc: "Apple", sound: "AppleSound"});

    You use a shortcut to make an object (with brackets):

    {mc: "Apple", sound: "AppleSound"}

    This creates a new object with the properties 'mc' and 'his', with 'Apple' and 'AppleSound' values respectively.

    Thus, definitionsArray is an array of these objects. To access what is in them, you can use the dot operator (o.mc) or the syntax of dictionary (o ["mc"]).

  • Creating a unique index frame on a one-to-many table and search

    Hello

    I was properly put in place of the full text index on multiple columns on the same table (using the MULTI_COLUMN_DATASTORE preferences), but now I have a situation with a table of one-to-many data collection (with a CF of a lookup table), and I need to get columns through two of these tables. Code example below, several of my chatter after the code block:
    CREATE TABLE SUBMISSION
    ( SUBMISSION_ID             NUMBER(10)          NOT NULL,
      SUBMISSION_NAME           VARCHAR2(100)       NOT NULL
    );
     
    CREATE TABLE ADVISOR_TYPE
    ( ADVISOR_TYPE_ID           NUMBER(10)          NOT NULL,
      ADVISOR_TYPE_NAME         VARCHAR2(50)        NOT NULL
    );
      
    CREATE TABLE SUBMISSION_ADVISORS
    ( SUBMISSION_ADVISORS_ID    NUMBER(10)          NOT NULL,
      SUBMISSION_ID             NUMBER(10)          NOT NULL,
      ADVISOR_TYPE_ID           NUMBER(10)          NOT NULL,
      FIRST_NAME                VARCHAR(50)         NULL,
      LAST_NAME                 VARCHAR(50)         NULL,
      SUFFIX                    VARCHAR(20)         NULL
    );
    
    INSERT INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME) VALUES (1, 'Some Research Paper');
    INSERT INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME) VALUES (2, 'Thesis on 17th Century Weather Patterns');
    INSERT INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME) VALUES (3, 'Statistical Analysis on Sunny Days in March');
    
    INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (1, 'Department Chair');
    INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (2, 'Department Co-Chair');
    INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (3, 'Professor');
    INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (4, 'Associate Professor');
    INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (5, 'Scientist');
    
    INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (1,1,2,'John', 'Doe', 'PhD');
    INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (2,1,2,'Jane', 'Doe', 'PhD');
    INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (3,2,3,'Johan', 'Smith', NULL);
    INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (4,2,4,'Magnus', 'Jackson', 'MS');
    INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (5,3,5,'Williard', 'Forsberg', 'AMS');
     
    COMMIT;
    I want to be able to create a text index to group these fields:

    SUBMISSION_ADVISORS. FIRST NAME
    SUBMISSION_ADVISORS. LAST_NAME
    SUBMISSION_ADVISORS. SUFFIX
    ADVISOR_TYPE. ADVISOR_TYPE_NAME

    I looked at DETAIL_DATASTORE and USER_DATASTORE, but examples of Oracle Docs for DETAIL_DATASTORE leave me a little confused. It seems that this should be fairly simple.

    Ideally, I try to avoid creating new columns and keeping a minimum shutter adjustments. But I'm open to any suggestion. Thanks for your time and your thoughts.

    -Jamie

    I would create a procedure that creates a virtual with labels document, what is the multi_column_datatstore behind the scenes. Then I would like to use this procedure in a user_datastore, so the result is the same for several tables as a multi_column_datastore for a table. I would use auto_section_group or another type of Group of sections, so that you can search from WITHIN as with the multi_column_datastore. Please see the demo below.

    SCOTT@orcl_11gR2> -- tables and data that you provided:
    SCOTT@orcl_11gR2> CREATE TABLE SUBMISSION
      2  ( SUBMISSION_ID           NUMBER(10)          NOT NULL,
      3    SUBMISSION_NAME           VARCHAR2(100)          NOT NULL
      4  )
      5  /
    
    Table created.
    
    SCOTT@orcl_11gR2> CREATE TABLE ADVISOR_TYPE
      2  ( ADVISOR_TYPE_ID           NUMBER(10)          NOT NULL,
      3    ADVISOR_TYPE_NAME      VARCHAR2(50)          NOT NULL
      4  )
      5  /
    
    Table created.
    
    SCOTT@orcl_11gR2> CREATE TABLE SUBMISSION_ADVISORS
      2  ( SUBMISSION_ADVISORS_ID      NUMBER(10)          NOT NULL,
      3    SUBMISSION_ID           NUMBER(10)          NOT NULL,
      4    ADVISOR_TYPE_ID           NUMBER(10)          NOT NULL,
      5    FIRST_NAME           VARCHAR(50)          NULL,
      6    LAST_NAME           VARCHAR(50)          NULL,
      7    SUFFIX                VARCHAR(20)          NULL
      8  )
      9  /
    
    Table created.
    
    SCOTT@orcl_11gR2> INSERT ALL
      2  INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME)
      3    VALUES (1, 'Some Research Paper')
      4  INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME)
      5    VALUES (2, 'Thesis on 17th Century Weather Patterns')
      6  INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME)
      7    VALUES (3, 'Statistical Analysis on Sunny Days in March')
      8  SELECT * FROM DUAL
      9  /
    
    3 rows created.
    
    SCOTT@orcl_11gR2> INSERT ALL
      2  INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME)
      3    VALUES (1, 'Department Chair')
      4  INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME)
      5    VALUES (2, 'Department Co-Chair')
      6  INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME)
      7    VALUES (3, 'Professor')
      8  INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME)
      9    VALUES (4, 'Associate Professor')
     10  INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME)
     11    VALUES (5, 'Scientist')
     12  SELECT * FROM DUAL
     13  /
    
    5 rows created.
    
    SCOTT@orcl_11gR2> INSERT ALL
      2  INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX)
      3    VALUES (1,1,2,'John', 'Doe', 'PhD')
      4  INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX)
      5    VALUES (2,1,2,'Jane', 'Doe', 'PhD')
      6  INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX)
      7    VALUES (3,2,3,'Johan', 'Smith', NULL)
      8  INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX)
      9    VALUES (4,2,4,'Magnus', 'Jackson', 'MS')
     10  INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX)
     11    VALUES (5,3,5,'Williard', 'Forsberg', 'AMS')
     12  SELECT * FROM DUAL
     13  /
    
    5 rows created.
    
    SCOTT@orcl_11gR2> -- constraints presumed based on your description:
    SCOTT@orcl_11gR2> ALTER TABLE submission ADD CONSTRAINT submission_id_pk
      2    PRIMARY KEY (submission_id)
      3  /
    
    Table altered.
    
    SCOTT@orcl_11gR2> ALTER TABLE advisor_type ADD CONSTRAINT advisor_type_id_pk
      2    PRIMARY KEY (advisor_type_id)
      3  /
    
    Table altered.
    
    SCOTT@orcl_11gR2> ALTER TABLE submission_advisors ADD CONSTRAINT submission_advisors_id_pk
      2    PRIMARY KEY (submission_advisors_id)
      3  /
    
    Table altered.
    
    SCOTT@orcl_11gR2> ALTER TABLE submission_advisors ADD CONSTRAINT submission_id_fk
      2    FOREIGN KEY (submission_id) REFERENCES submission (submission_id)
      3  /
    
    Table altered.
    
    SCOTT@orcl_11gR2> ALTER TABLE submission_advisors ADD CONSTRAINT advisor_type_id_fk
      2    FOREIGN KEY (advisor_type_id) REFERENCES advisor_type (advisor_type_id)
      3  /
    
    Table altered.
    
    SCOTT@orcl_11gR2> -- resulting data:
    SCOTT@orcl_11gR2> COLUMN submission_name FORMAT A45
    SCOTT@orcl_11gR2> COLUMN advisor      FORMAT A40
    SCOTT@orcl_11gR2> SELECT s.submission_name,
      2           a.advisor_type_name || ' ' ||
      3           sa.first_name || ' ' ||
      4           sa.last_name || ' ' ||
      5           sa.suffix AS advisor
      6  FROM   submission_advisors sa,
      7           submission s,
      8           advisor_type a
      9  WHERE  sa.advisor_type_id = a.advisor_type_id
     10  AND    sa.submission_id = s.submission_id
     11  /
    
    SUBMISSION_NAME                               ADVISOR
    --------------------------------------------- ----------------------------------------
    Some Research Paper                           Department Co-Chair John Doe PhD
    Some Research Paper                           Department Co-Chair Jane Doe PhD
    Thesis on 17th Century Weather Patterns       Professor Johan Smith
    Thesis on 17th Century Weather Patterns       Associate Professor Magnus Jackson MS
    Statistical Analysis on Sunny Days in March   Scientist Williard Forsberg AMS
    
    5 rows selected.
    
    SCOTT@orcl_11gR2> -- procedure to create virtual documents:
    SCOTT@orcl_11gR2> CREATE OR REPLACE PROCEDURE submission_advisors_proc
      2    (p_rowid IN           ROWID,
      3       p_clob     IN OUT NOCOPY CLOB)
      4  AS
      5  BEGIN
      6    FOR r1 IN
      7        (SELECT *
      8         FROM      submission_advisors
      9         WHERE  ROWID = p_rowid)
     10    LOOP
     11        IF r1.first_name IS NOT NULL THEN
     12          DBMS_LOB.WRITEAPPEND (p_clob, 12, '');
     13          DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r1.first_name), r1.first_name);
     14          DBMS_LOB.WRITEAPPEND (p_clob, 13, '');
     15        END IF;
     16        IF r1.last_name IS NOT NULL THEN
     17          DBMS_LOB.WRITEAPPEND (p_clob, 11, '');
     18          DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r1.last_name), r1.last_name);
     19          DBMS_LOB.WRITEAPPEND (p_clob, 12, '');
     20        END IF;
     21        IF r1.suffix IS NOT NULL THEN
     22          DBMS_LOB.WRITEAPPEND (p_clob, 8, '');
     23          DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r1.suffix), r1.suffix);
     24          DBMS_LOB.WRITEAPPEND (p_clob, 9, '');
     25        END IF;
     26        FOR r2 IN
     27          (SELECT *
     28           FROM   submission
     29           WHERE  submission_id = r1.submission_id)
     30        LOOP
     31          DBMS_LOB.WRITEAPPEND (p_clob, 17, '');
     32          DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r2.submission_name), r2.submission_name);
     33          DBMS_LOB.WRITEAPPEND (p_clob, 18, '');
     34        END LOOP;
     35        FOR r3 IN
     36          (SELECT *
     37           FROM   advisor_type
     38           WHERE  advisor_type_id = r1.advisor_type_id)
     39        LOOP
     40          DBMS_LOB.WRITEAPPEND (p_clob, 19, '');
     41          DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r3.advisor_type_name), r3.advisor_type_name);
     42          DBMS_LOB.WRITEAPPEND (p_clob, 20, '');
     43        END LOOP;
     44    END LOOP;
     45  END submission_advisors_proc;
     46  /
    
    Procedure created.
    
    SCOTT@orcl_11gR2> SHOW ERRORS
    No errors.
    SCOTT@orcl_11gR2> -- examples of virtual documents that procedure creates:
    SCOTT@orcl_11gR2> DECLARE
      2    v_clob  CLOB := EMPTY_CLOB();
      3  BEGIN
      4    FOR r IN
      5        (SELECT ROWID rid FROM submission_advisors)
      6    LOOP
      7        DBMS_LOB.CREATETEMPORARY (v_clob, TRUE);
      8        submission_advisors_proc (r.rid, v_clob);
      9        DBMS_OUTPUT.PUT_LINE (v_clob);
     10        DBMS_LOB.FREETEMPORARY (v_clob);
     11    END LOOP;
     12  END;
     13  /
    JohnDoePhDSome
    Research PaperDepartment Co-Chair
    JaneDoePhDSome
    Research PaperDepartment Co-Chair
    JohanSmithThesis on 17th Century
    Weather PatternsProfessor
    MagnusJacksonMSThe
    sis on 17th Century Weather PatternsAssociate
    Professor
    WilliardForsbergAMS
    

    Statistical Analysis on Sunny Days in

    MarchScientist
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> -- user_datastore that uses procedure:
    SCOTT@orcl_11gR2> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('sa_datastore', 'USER_DATASTORE');
      3    CTX_DDL.SET_ATTRIBUTE ('sa_datastore', 'PROCEDURE', 'submission_advisors_proc');
      4  END;
      5  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> -- index (on optional extra column) that uses user_datastore and section group:
    SCOTT@orcl_11gR2> ALTER TABLE submission_advisors ADD (any_column VARCHAR2(1))
      2  /
    
    Table altered.
    
    SCOTT@orcl_11gR2> CREATE INDEX submission_advisors_idx
      2  ON submission_advisors (any_column)
      3  INDEXTYPE IS CTXSYS.CONTEXT
      4  PARAMETERS
      5    ('DATASTORE     sa_datastore
      6        SECTION GROUP     CTXSYS.AUTO_SECTION_GROUP')
      7  /
    
    Index created.
    
    SCOTT@orcl_11gR2> -- what is tokenized, indexed, and searchable:
    SCOTT@orcl_11gR2> SELECT token_text FROM dr$submission_advisors_idx$i
      2  /
    
    TOKEN_TEXT
    ----------------------------------------------------------------
    17TH
    ADVISOR_TYPE_NAME
    AMS
    ANALYSIS
    ASSOCIATE
    CENTURY
    CHAIR
    CO
    DAYS
    DEPARTMENT
    DOE
    FIRST_NAME
    FORSBERG
    JACKSON
    JANE
    JOHAN
    JOHN
    LAST_NAME
    MAGNUS
    MARCH
    PAPER
    PATTERNS
    PHD
    PROFESSOR
    RESEARCH
    SCIENTIST
    SMITH
    STATISTICAL
    SUBMISSION_NAME
    SUFFIX
    SUNNY
    THESIS
    WEATHER
    WILLIARD
    
    34 rows selected.
    
    SCOTT@orcl_11gR2> -- sample searches across all data:
    SCOTT@orcl_11gR2> VARIABLE search_string VARCHAR2(100)
    SCOTT@orcl_11gR2> EXEC :search_string := 'professor'
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> SELECT s.submission_name,
      2           a.advisor_type_name || ' ' ||
      3           sa.first_name || ' ' ||
      4           sa.last_name || ' ' ||
      5           sa.suffix AS advisor
      6  FROM   submission_advisors sa,
      7           submission s,
      8           advisor_type a
      9  WHERE  CONTAINS (sa.any_column, :search_string) > 0
     10  AND    sa.advisor_type_id = a.advisor_type_id
     11  AND    sa.submission_id = s.submission_id
     12  /
    
    SUBMISSION_NAME                               ADVISOR
    --------------------------------------------- ----------------------------------------
    Thesis on 17th Century Weather Patterns       Professor Johan Smith
    Thesis on 17th Century Weather Patterns       Associate Professor Magnus Jackson MS
    
    2 rows selected.
    
    SCOTT@orcl_11gR2> EXEC :search_string := 'doe'
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> /
    
    SUBMISSION_NAME                               ADVISOR
    --------------------------------------------- ----------------------------------------
    Some Research Paper                           Department Co-Chair John Doe PhD
    Some Research Paper                           Department Co-Chair Jane Doe PhD
    
    2 rows selected.
    
    SCOTT@orcl_11gR2> EXEC :search_string := 'paper'
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> /
    
    SUBMISSION_NAME                               ADVISOR
    --------------------------------------------- ----------------------------------------
    Some Research Paper                           Department Co-Chair John Doe PhD
    Some Research Paper                           Department Co-Chair Jane Doe PhD
    
    2 rows selected.
    
    SCOTT@orcl_11gR2> -- sample searches within specific columns:
    SCOTT@orcl_11gR2> EXEC :search_string := 'chair'
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> SELECT s.submission_name,
      2           a.advisor_type_name || ' ' ||
      3           sa.first_name || ' ' ||
      4           sa.last_name || ' ' ||
      5           sa.suffix AS advisor
      6  FROM   submission_advisors sa,
      7           submission s,
      8           advisor_type a
      9  WHERE  CONTAINS (sa.any_column, :search_string || ' WITHIN advisor_type_name') > 0
     10  AND    sa.advisor_type_id = a.advisor_type_id
     11  AND    sa.submission_id = s.submission_id
     12  /
    
    SUBMISSION_NAME                               ADVISOR
    --------------------------------------------- ----------------------------------------
    Some Research Paper                           Department Co-Chair John Doe PhD
    Some Research Paper                           Department Co-Chair Jane Doe PhD
    
    2 rows selected.
    
    SCOTT@orcl_11gR2> EXEC :search_string := 'phd'
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> SELECT s.submission_name,
      2           a.advisor_type_name || ' ' ||
      3           sa.first_name || ' ' ||
      4           sa.last_name || ' ' ||
      5           sa.suffix AS advisor
      6  FROM   submission_advisors sa,
      7           submission s,
      8           advisor_type a
      9  WHERE  CONTAINS (sa.any_column, :search_string || ' WITHIN suffix') > 0
     10  AND    sa.advisor_type_id = a.advisor_type_id
     11  AND    sa.submission_id = s.submission_id
     12  /
    
    SUBMISSION_NAME                               ADVISOR
    --------------------------------------------- ----------------------------------------
    Some Research Paper                           Department Co-Chair John Doe PhD
    Some Research Paper                           Department Co-Chair Jane Doe PhD
    
    2 rows selected.
    
    SCOTT@orcl_11gR2> EXEC :search_string := 'weather'
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> SELECT s.submission_name,
      2           a.advisor_type_name || ' ' ||
      3           sa.first_name || ' ' ||
      4           sa.last_name || ' ' ||
      5           sa.suffix AS advisor
      6  FROM   submission_advisors sa,
      7           submission s,
      8           advisor_type a
      9  WHERE  CONTAINS (sa.any_column, :search_string || ' WITHIN submission_name') > 0
     10  AND    sa.advisor_type_id = a.advisor_type_id
     11  AND    sa.submission_id = s.submission_id
     12  /
    
    SUBMISSION_NAME                               ADVISOR
    --------------------------------------------- ----------------------------------------
    Thesis on 17th Century Weather Patterns       Professor Johan Smith
    Thesis on 17th Century Weather Patterns       Associate Professor Magnus Jackson MS
    
    2 rows selected.
    
  • Popup do not insert in the table and not refreshing called page...

    Greetings



    Environment: APEX 3.1.1.00.09 on AIX 5.3 with 10 gr 2



    I read a lot of threads about my question and I think I'm getting closer to the answer but in some sort have combined a too big number of suggestions and am tripping over my own code.



    Please look at my sample application on apex.oracle.com:



    Workspace: galway

    User: gwicke

    Password: gwicke



    Please start by Page3, select any agency and then click on "add a new contract."

    There are currently a label "BOLD" < facilities > < strong > 'Add new Builder' which is a link that should open a popup window. Type a name in the field, and then click 'Create Builder'. This should INSERT the row into the table builder, close the pop-up window, assign the new name of the generator to the item page calling "Name Builder" and fill the screen element.



    In current state, the application will open the pop-up, allow entry and close by clicking on the button "create Builder." However, the new constructor is NOT inserted into the table and the calling page element is not met.



    Looking at the Page elements and Session State, I can see the correct values assigned to the elements "Pn_BULDER_NAME" on the popup page (4) and the calling page (2), but the value does not appear on the screen.



    I read here where there really two parallel universes, not forgiveness, Articles of two versions of the screen, a State of Session and the other which is displayed in the browser and there are measures to be taken to be sure that is displayed is updated to state of Session I want in this case.



    I entered the Javascript code on Page4 - header to set the 'passBack2()' function and the code in the section "Option URL Redirect" to the button "Add Builder" if all goes well perform protocol ARP for the INSERT, assign items to page 2 and close the pop-up window. He gets not quite everything.



    Any helpp is greatly appreciated. Thanks to Dene for most of the suggestions I have followed by code.



    -gary

    Hi Gary,.

    I think that there is a very simple solution to this topic - is not this spot really last night.

    First, Yes, you could use a "button" to manage the call for the popup - make sure that the button is a type of URL 'button', which is actually an A tag with the appeal under target URL. Otherwise, you could take you existing a tag and use the same class for one of your buttons attribute because this should make it look like a button.

    More importantly, however, I think we could do as:

    1. on your call popup page 2, clear cache for page 4 (the popup page) - I already did in your application by updating the url

    2. on page popup, allow the user to enter their desired P4_BUILDER_NAME value (not sure if you want to do something to make it unique?)

    3 let the user click on create on the shortcut menu. He will submit the page, that will make your P4_BUILDER_RANK (pk) value and insert a new record in the table (you might consider the creation of a sequence and a trigger to handle the creation of new value PK?).

    4 - assuming that the P4_BUILDER_RANK then exist (it would not if there is a mistake somewhere), then conditionally display a region that had a piece of javascript submit page 2 and closes then itself - we don't need to move everything back to page 2 (see below)

    5. as the P4_BUILDER_NAME and the P4_BUILDER_RANK exist in the session, to which page 2 be reloaded, (A) the selection list should be updated with the new generator (still not sure why all my entries appeared downstairs instead of in alphabetical?) and (B) the P2_BUILDER_NAME and the P2_BUILDER_RANK can have Post calculation calculations together (NVL) ((: P4_BUILDER_NAME,: P2_BUILDER_NAME) and NVL (: P4_BUILDER_RANK,: P2_BUILDER_RANK) respectively)-l' effect is, if there are the values stored in the page P4 elements, we use them, otherwise, we use whatever values were in the elements of page P2

    6 - Finally, to stop (5) that happens in all the loading of page 2, you would need to clear the cache of page 4 in as many places as possible - for example, branches for a 2 page or buttons on page 2

    The reason why we cannot pass values back to page 2, it is one of the elements is a list of selection. The value we want to select will appear not on the selection list until the page has been sent. So, we can set the value and submit because the value is not there. We can introduce and define the value, because the javascript don't know when the page has been updated (or, at least, you need an independent mechanism to identify, which can get complicated).

    So, in other words, as long as we know that if the values are in the session, we can use Post calculation calculations to set our fields to these values. The only thing to keep in mind is that we must ensure that these session values only exist when in need - so we empty the cache. This principle should work for any type of terrain - but as you have no doubt seen, simple text fields can be updated by the popup directly as the field must accept any value that we give.

    My only recommendation would be to completely remove the MRU of the page process because they are not necessary (they simply confuse the issue) and you could make your fetch PK and record insert into a single process - just to keep things clean and tidy, you understand!

    When I finished last night with your app, I will leave so that javascript can create an option on the select list, and then set the value. But the method described above seems to be much simpler.

    Andy

  • Need help with the data storage store, local array and network connections

    Need help with my ESXi 4.1 installation

    My hardware:

    I built a server with an Asus P6T whitebox, i7 920, 12 Gig RAM, NIC, Intel Pro1000 PT Quad, 3ware 9650SE-12ML with 8 1.5 TB SATA green in a raid 6 array gives me about 8 + TB with a spare drive all housed within a NORCO RPC-4220 4U Rackmount Server chassis.  I also have a 500 GB SATA drive which will hold the ESXi and virtual machines.

    The network includes a firewall, Netgear Prosafe FVS336G, GS724Tv of Netgear ProSafe 24 port Gigabit Managed Switch on a dhcp cable modem internet service provider.

    I also have 2 old NetGear SC101T NAS disks (4to) I want to connect to the system how some - at a later date have... data on them and want to transfer to the new storage array. I always looking into the question of whether they will work with ESXi 4.1, or I might have to only access it through Windows XP.

    My Situation:

    I have already installed ESXi 4.1 and vsphere client with no problems and it is connected to a dhcp cable internet service.  I've set up host via a dynamic DNS service name give me a static hostname on the internet.  I installed three machines to virtual OS successfully at the moment and now want to first start by creating a multimedia storage server which will use some of this new 8 TB array, then separate data storage for use with a web server small overhead storage and a backup.  It is a domestic installation.

    Help with the data store and network:

    I was doing some reading, because I'm new to this, and it looks like I'll probably want to set up my table via ESXi as a nfs disk format.  Now, the data store is usually in another physical box from what I understand, but I put my readers and ESXi all in the same box.  I'm not sure that the best way to put in place with grouped network cards, but I want to make this work.

    I understand that in ESXi 4.1 using iSCSi LUN must be less than 2 TB, but nfs - I should be able to add a bigger partition then 2 TB (for my multimedia) in nfs, right? or should I still add it separately as a separate 2 TB drives and then extend them to get the biggest space.

    Any suggestions or direct resources showing examples on how to actually add some parts of the table as data warehouses separate nfs.  I know that to go to the configuration tab, and then select Add to storage, and then select nfs. I have not my picture, but it's here that I don't know what to do because ESXi 4.1 system already has an address, should I put the same thing to the new data store array also (will it work?), and what should I use for the name of the folder and the store of data... just do something to the top.  I thought to later install Openfiler (for a multimedia storage using this table server) as a virtual machine, use the table with esxi so that I can access the same storage space with widows and linux-based systems.

    I also know I have to find a way to better use my quad nic card... put in place of virtual switches, grouping, etc HELP?

    Any direction, assistance, similar facilities to sample, suggestions or resources that would help would be great. I did a lot of hunting, but still a little confused on how to best to put in place.

    You must think of VMDK files of large databases with records of random size guest go read some data (a DLL or an INI file), maybe write some data back, then go read other data. Some files are tiny, but certain DLLs are several megabytes. It's random i/o all and heavy on the search time. IO Opsys is small random operations that are often sequential (go read data, write data, go read other data,...) so that deadlines are critical to the overall performance. That's why people say OPS are / s of reference and forget the MBs flow. The only time where you bulk transfers are when you read media (ISO files).

    Well, now forget all this. Actually the disk activity will depend on the specific applications (database? mail server? machines compiler?), but the above is true for boots, and whenever applications are idle. You should see the profile to know.

    RAID 10 is faster (and often more reliable) than RAID 5 or RAID-6 except in certain specific cases. In General RAID 10 is ideal for many random writes, since the calculation of parity for RAID-5 and - 6 adds to the overall latency between command and response - latency is cumulative if a little slow here and a little slow it adds up to a lot of overall slow synchronous especially with e/s on a network. OTOH RAID-5 and -6 can produce faster readings due to the number of heads, so you can use it for virtual machines that transfer bulk. Test. You may find that you need several different types subdashboards for best results.

    You said 3ware, they have some good grades on their site, but don't believe it. With my 9650 that I found myself with only a couple of their recommendations-, I put the (simple) table for allocation size 256 k, nr_requests at 2 x the queue_depth and use the planner date limit. I had the habit for the Ext4 file system formatted with stride and stripe-width synced to the table and used the options large_files with fewer inodes (do not use the huge_files option unless you plan to have single VMDK files in the terabyte range). Use a cache of great reading in advance.

    Virtual machines use VMDK files in all cases except raw iSCSI LUN that they treat native disks. VMDK is easier to manage - you can make a backup by copying the file, you can move it to a PC and load it into another flavour of VMware, etc. There could be some features iSCSI to your San as a transparent migration but nothing for me. NFS has less chatter of Protocol if latency lower times to complete an operation. NFS is good to read and write a block of data, that's all it boils down to.

    UPS is good, but it won't help if something inside the machine explodes (UPS does nothing if the PC power supply goes down). If the RAID card has an option for a battery backup module, so it can contain some writings in memory and may end up the disk i/o after replacing the power supply. 3ware also limits the types of caching available if help is not installed, and you get just the right numbers with the module.

  • Problem with table/table and past data capture

    Hi all

    Newbie is back and I have a problem with my program.

    A brief introduction of what I'm trying to do.

    I'll show you a failure to a system event.

    Based on each event, I will need to connect the error description, the tag, the fault start time and duration.

    All the event information will be displayed on the front table and this table will increase when new event occurred.

    For descriptions and tags - this is fixed based on what fault affects, respectively.

    The issue I'm having is to capture time.

    What I have in mind is to use the time to enter the start time and duration also.

    Departure time is not question because once I press boolean = true, it gives the start time.

    For the duration, when I press boolean = false, it wil give the total duration.

    However, I have a problem as follows:

    (1) to capture what a comprehensive data set (for example / / Desc: fault 1, Tag: one, start time: 2008-12-16 11:15:06 duration: 0 00:00:05) and it passed inside the trap fault Table.

    (2) if the same failure has occurred, it will overwrite the latest information. However, I need to keep the display of old and new events.

    Please notify.

    Opinions and suggestions are welcome mosssssst.

    Million thanks in advance.

    Hi Roziela,

    Thanks for the post and I hope that your well today.

    You must add logic to detect the change of the event (no fault to fault) and produce a Boolean result by 'raising' edge.

    I have a code to do this,

    Let me know what you think,

  • Sometimes, I connect to other unsecured wireless and do not want to. My wireless 802.11 was swept away in several times, what causes this and is at - it a hotfix?

    I have an old toshiba phone that has msn phone dial inside program I use wire and that you don't have a phone number to put in what should be iI or is there a ms download

    I have xp home edition Service att tech and and when I take the computer to reinstall says the same thing > I have also a gateway that has the same problem, I sometimes connect to other unsecured wireless and do not want.  My wireless 802.11 was swept away in several times, what causes this and is at - it a hotfix.

    Hello

     

    I suggest you send your query to the solution Center MSN for better support for this topic:

    http://answers.MSN.com/

     

    Also suggest checking with you ISP provider

    http://www.att.com/eSupport/

  • When Windows starts it is always a dialogue box that flashes on the screen and the CPU usage high (above 50%), after I connect sometimes for several minutes.

    Original title: at the start of Windows there is always a dialogue box that flashes on the screen, but I've known idea what it is.

    How can I determine which program is using this dialog box? I also don't expect high utilization of the processor (over 50%) after that I connect sometimes for several minutes. I see not all applications running in the Task Manager. The amount of CPU utilization in the services tab doesn't match what I see compared to what the gadget is read in my sidebar. Any ideas?

    Thanks in advance

    Hi Soan,

    1. What is exactly mentioned in the dialog box?

    2. when the problem started?

    3. did you of recent changes on the system?

    Method 1:

    Step 1:

    You can check if the problem occurs in safe mode.

    Start your computer in safe mode

    Step 2:

    If you are not faced with the question in safe mode, you can perform a clean boot and check.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    After the troubleshooting steps, please refer to clean the boot link to put the computer to normal startup mode.

    Method 2:

    You can read the following article and perform a full scan of security on your computer.

    Microsoft safety scanner

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss. You can take a backup of important data before performing analysis.

    Method 3:

    You can also read the following article and try to optimize the performance of Windows Vista.

    Optimize the performance of Microsoft Windows Vista

    Hope this information is useful.

  • If I have the two LOV in the same table then how to connect when I select first and second LOV value also change?

    Mr President

    If I have the two LOV in the same table then how to connect when I select first and second LOV value also change?

    My two fields are FLOW AND DR_NAME

    FLOW = ACCT_ID

    DR_NAME = ACCT_NAME

    I created with success of LOV for these fields.

    First LOV gives acct_id in the debit field and second LOV gives the value of acct_name to dr_name.

    How can I report these lov, it's that when I change my acct_id then acct_name also change

    I have these two tables

    CREATE TABLE "NOM"  (
      "ACCT_ID" VARCHAR2(7) NOT NULL ENABLE, 
      "ACCT_NAME" VARCHAR2(50) NOT NULL ENABLE, 
      "O_BAL" NUMBER(13,2),
      CONSTRAINT NOM_PK PRIMARY KEY ("ACCT_ID")ENABLE
       
       );
    CREATE TABLE "VOUCHERDET" (
      "V_ID" VARCHAR2(9) NOT NULL ENABLE,
      "LINEITEM" NUMBER ,
      "DEBIT" VARCHAR2(7) , 
      "DR_NAME" VARCHAR2(50), 
      "CREDIT" VARCHAR2(7) , 
      "CR_NAME" VARCHAR2(50), 
      "PARTICULARS" VARCHAR2(100), 
      "AMOUNT" NUMBER(21,2),
    CONSTRAINT VOUCHERDET_PK PRIMARY KEY ("V_ID","LINEITEM")ENABLE, 
    CONSTRAINT PUR_SAL_LINE_POD_FK FOREIGN KEY(PROD_ID)
      REFERENCES PRODUCTS (PROD_ID)ENABLE,  
    CONSTRAINT VOUCHERDET_DEBIT_FK FOREIGN KEY ("DEBIT")
       REFERENCES "NOM" ("ACCT_ID") ENABLE, 
    CONSTRAINT VOUCHERDET_CREDIT_FK FOREIGN KEY ("CREDIT")
       REFERENCES "NOM" ("ACCT_ID") ENABLE,  
    CONSTRAINT VOUCHERDET_V_FK FOREIGN KEY ("V_ID")
       REFERENCES "VOUCHER" ("V_ID") ON DELETE CASCADE ENABLE
      );
    
    

    Concerning

    so, instead of this second ActId, choose ACCT_NAME:

  • Removal of several tables with only loop FORALL

    I need to remove the data from several tables with unique FORALL. It seems that FORALL does not support. Please let me know the alternatives to achieve this goal.

    DB version: 11 GR 2

    Write switchis for all instructions, one for each deletion. There is no reason why it should not work.

    Compare:

    PLSQL 101 :

    Here are some things to know about FORALL:

    Each FORALL statement can contain only a single DML statement. If your loop contains two updates and a deletion, then you will need to write three statements FORALL

Maybe you are looking for