table problem (cast)

I have two variables collection v1_coll and v2_coll (both are the same type of table 'tt_coll' and 'rt_coll' is a record type)

tt_coll is the rt_coll table;

v1_coll tt_coll: = tt_coll();
v2_coll tt_coll: = tt_coll();

now I'm populating the v1_coll in a select clause...

SELECT... from table1, table2, table3 in v_coll1 where < many joins >;

now, I want to fill the second v_coll2 of the first collection collection.

I don't want to make a loop, assigning to each line of the first collection in the second...

then, I sank the first collection of table and do a select on that in a second...


SELECT... in table v2_coll (cast(v_coll1 as tt_coll));



but it's a failure... Please help me...

You will need to use types that are available for the SQL engine. If you are using types of records or derivatives of this then it do not work because the SQL engine is not aware of them.

Tags: Database

Similar Questions

  • Changing aid necessary table problem

    Hello. I hope someone can help me with this problem.

    I have two tables, an and mv. Create the following script:

    create table (mv)
    the moduleId Char (2) CONSTRAINT ck_moduleId CHECK (moduleId in ("M1", "M2", "M3", "M4', 'M5', 'M6', 'M7', 'M8'")).
    credit ck_credits Number (2) CONSTRAINT CHECK (credits (10, 20, 40));
    constraint pk_mv primary key (moduleId)
    );

    create table (its)
    stuId Char (2) CONSTRAINT ck_stuId CHECK (stuId ('S1', 'S2', 'S3', 'S4', 'S5')),
    moduleId tank (2),
    primary key constraint (stuId, moduleId) pk_sa,
    constraint fk_moduleid foreign key (moduleId) references (moduleId) mv
    );

    And the scripts below is to insert data into the two:

    insert into VALUES mv ("M1", 20)
    /
    insert into VALUES mv ("M2", 20)
    /
    insert into VALUES mv ("M3", 20)
    /
    insert into VALUES mv ("M4", 20)
    /
    Insert in mv VALUES ('M5', 40)
    /
    insert into VALUES mv ("M6", 10)
    /
    insert into VALUES mv ("M7", 10)
    /
    Insert in mv VALUES ('M8', 20)
    /


    insert into a VALUES ('S1', 'M1')
    /
    insert into a VALUES ('S1', 'M2')
    /
    insert into a VALUES ('S1', 'M3')
    /
    insert into a VALUES ('S2', 'M2')
    /
    insert into a VALUES ('S2', 'M4')
    /
    insert into a VALUES ('S2', 'M5')
    /
    insert into a VALUES ('S3', 'M1')
    /
    insert into a VALUES ('S3', 'M6')
    /

    Now for the real problems.

    First of all, I need to try to overcome the problem of table mutation ensure that stuid = S1 in table its can not take the two moduleId M5 and M6.

    Just one or the other. I created a single trigger, but runs aground because of the changing table problem.

    The second problem that I need to overcome is that none of the stuids can have the ModuleID where total value of more than 120 credit credits. Credit value is stored in the table of mv.

    Thank you very much in advance for any help.

    Use a statement-level trigger:

    First of all, I need to try to overcome the problem of table mutation ensure that stuid = S1 in table its can not take the two moduleId M5 and M6.

    SQL> create or replace trigger sa_trg
      2  after insert or update on sa
      3  declare
      4  c number;
      5  begin
      6    select count(distinct moduleId) into c
      7    from sa
      8    where stuid = 'S1'
      9    and moduleId in ('M5','M6');
     10    if c > 1 then
     11       raise_application_error(-20001,'S1 on both M5 and M6!!');
     12    end if;
     13  end;
     14  /
    
    Trigger created.
    
    SQL> select * from sa;
    
    ST MO
    -- --
    S1 M1
    S1 M2
    S1 M3
    S2 M2
    S2 M4
    S2 M5
    S3 M1
    S3 M6
    
    8 rows selected.
    
    SQL> insert into sa values ('S1','M5');
    
    1 row created.
    
    SQL> insert into sa values ('S1','M6');
    insert into sa values ('S1','M6')
    *
    ERROR at line 1:
    ORA-20001: S1 on both M5 and M6!!
    ORA-06512: at "SCOTT.SA_TRG", line 9
    ORA-04088: error during execution of trigger 'SCOTT.SA_TRG'
    

    The second problem that I need to overcome is that none of the stuids can have the ModuleID where total value of more than 120 credit credits. Credit value is stored in the table of mv

    SQL> create or replace trigger sa_trg
      2  after insert or update on sa
      3  declare
      4  c number;
      5  begin
      6    select count(distinct moduleId) into c
      7    from sa
      8    where stuid = 'S1'
      9    and moduleId in ('M5','M6');
     10    if c > 1 then
     11       raise_application_error(-20001,'S1 on both M5 and M6!!');
     12    end if;
     13
     14    select count(*) into c from (
     15    select stuid
     16    from mv, sa
     17    where sa.moduleid=mv.moduleid
     18    group by stuid
     19    having sum(credits)>120);
     20
     21    if c > 0 then
     22       raise_application_error(-20002,'A student cannot have more than 120 credits!!');
     23    end if;
     24
     25  end;
     26  /
    
    Trigger created.
    
    SQL>   select stuid, sum(credits)
      2  from mv, sa
      3  where sa.moduleid=mv.moduleid
      4  group by stuid;
    
    ST SUM(CREDITS)
    -- ------------
    S3           30
    S2           80
    S1          100
    
    SQL> insert into sa
      2  values ('S1','M4');
    
    1 row created.
    
    SQL>   select stuid, sum(credits)
      2  from mv, sa
      3  where sa.moduleid=mv.moduleid
      4  group by stuid;
    
    ST SUM(CREDITS)
    -- ------------
    S3           30
    S2           80
    S1          120
    
    SQL> insert into sa
      2  values ('S1','M7');
    insert into sa
    *
    ERROR at line 1:
    ORA-20002: A student cannot have more than 120 credits!!
    ORA-06512: at "SCOTT.SA_TRG", line 20
    ORA-04088: error during execution of trigger 'SCOTT.SA_TRG'
    

    Max
    http://oracleitalia.WordPress.com

  • Strange problem casting between the DATE and time STAMP

    Hello world

    I'm faced with a problem of strange casting between the DATE and time STAMP. Strange, because this happens in SQL-Developer and the Testdatabase, but not when called from inside SQL-Plus, even if all Session settings are set to the top completely equal.

    I work on the Oracle 11 g Enterprise Edition Release 11.2.0.1.0 Windows database and run the following script, taken from SQL-Developer script output:

    < pre >
    create table ts_test)
    time/date stamp,
    stamp_copy timestamp)
    table TS_TEST standing.

    create or replace view vw_test as
    Select cast (date stamp) buffer,
    Cast (stamp_copy as date) stamp_copy
    of ts_test
    view VW_TEST standing.

    insert into ts_test
    Select systimestamp, the double null
    1 eingefugt Zeilen.

    Commit
    festgeschrieben.

    create or replace trigger trg_ts_test_iu
    instead of update on vw_test
    Start
    Update ts_test
    Set stamp_copy =: new.stamp_copy;
    end;
    RELAXATION trg_ts_test_iu kompiliert

    Update vw_test
    Set stamp_copy = stamp
    1 Zeilen written on.

    Select the stamp, stamp_copy, dump (stamp_copy)
    of ts_test
    STAMP STAMP_COPY DUMP (STAMP_COPY)
    -----------------------------------------------------------------------------------------------------------------
    30.05.2012 19:08:49, 218000000 30.05.3192 20:09:50, 000000000 Typ = 180 Len = 7: 131,192,5,30,21,10,51

    Select *.
    of nls_session_parameters
    VALUE OF THE PARAMETER
    ----------------------------------------------------------------------
    NLS_LANGUAGE GERMAN
    NLS_TERRITORY GERMANY
    NLS_CURRENCY €
    NLS_ISO_CURRENCY GERMANY
    NLS_NUMERIC_CHARACTERS.
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT exact hh24:mi:ss
    NLS_DATE_LANGUAGE GERMAN
    NLS_SORT GERMAN
    NLS_TIME_FORMAT HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT JJ. MM YYYY HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT JJ. MM YYYY HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY €
    BINARY NLS_COMP
    NLS_LENGTH_SEMANTICS TANK
    NLS_NCHAR_CONV_EXCP FAKE

    17 Zeilen offiziell

    Rollback
    Rollback abgeschlossen.
    < / pre >

    Look at the strange data that stamp_copy was after the update.

    When run from SQL over, everything is fine. But when I run this code in our application, the same phenomenon occurs. I've even seen a data dating back to the year 11907 (!), giving an exception by selecting from the table.

    Someone at - it an idea on how to work around this bug?

    Best regards

    Jürgen

    Did you check metalink for bugs?

    There are a few listed in this blog, that may be useful for you.

    http://hoopercharles.WordPress.com/2011/02/17/strange-timestamp-behavior/

  • manipulation of the table problem

    I'm using Labview 2009 and I have a problem with windows... I have to implement the following code in Labview (X and digital input boards):

    for (i = 0 to MAX (X)) {}

    If (X [i] > (X [i-1] + 1)) {}

    X.Add (X [i], X [i-1] + 1) / / add the value X [i-1] + 1 x [i] position of the X table

    Y [i] = 0

    }

    on the other

    Y [i] = Y [i]

    }

    If I try to add items in the original array Y with the function 'Replace subset of table', the output array is not changed by the VI. If I try to initialize and to build a new table, I get a matrix of zeros. Can someone help me?

    If you want to just add 0 to the index that does not exist in X [] then try this.

  • MS Office report Express VI and table problem

    Hi all

    I have a strange problem with MS Office report VI, which is included with the report generation tool. I created an Excel template that I linked, according to the preference "Custom template for Excel" and all the named ranges. However, two of the named ranges that I entered are 1 d arrays of doubles. Now the problem:

    When I entered the berries to their specific name range (it's only 6 values), instead of simply enter the values in the table in the cells he entries like this:

    A value of 0

    1 value

    2 the value

    ...

    6 value

    He pushes the 'value' to the column next to the beach of name because of 0-6.

    He does it with two tables so it screws to the top of all formulas. Anyone know how to remove the 0-6 and simply enter the values?

    Thank you all

    The Express VI are easy and convenient, but some costs. Since the Express VI can also accept a waveform entry, you have to accept that it will add a channel name.

    With the tool report generation (who are also its limits), it's easy to add only the data you want:

    Ben64

  • simple table problem

    I have read some data from a text file and form a table according to my requirement (the illustrious photo attached).

    What my problem was when I used this table in an other vi through the connector components, all the lines in the resulting table the width of the line of maximum size, and are filled with zeros.

    How do I remove it? I need the lines ending with its own values, here in my case two first rows should have 5 items in the table, the elements of line 7 third and so on...

    Your VI makes no sense. Why not autoidenxing? Why "delete from table?

    Here's a simple possibility (just to write the resulting string in a file).

  • Table problems

    Hello OR Forums, I currently develping a VI to specify the tensions that will be send to the device that will run two mirrors. The idea and the configuration are pretty basic, but programming, it's a question. Matrices X and there are elements that correspond to a point located on a network of coordinates. For example, maybe my items in my grid for X [-2, - 1, 0, 1, 2] and my Y could be [-2, -2, -2, -2, -2]. However, the problem is that I need a larger value of X and Y for I could resign in the grid and reassemble in table X. For example, will be my next line of items [-2, - 1, 0, 1, 2] X and [-3, - 3, -3, -3, -3] for Y. However, how my program is written my last value of is less than the previous item. Thus, ideally I would form a table that would have an extra X element that corresponds to the step down in voltage on the axis Y. This would be ideal: [-2, - 1, 0, 1, 2, 2] x and [-3,-3,-3,-3,-3,-4] for y.

    Sorry for this question is a bit bad made. The application of this program is quite simple, but it seems to me a bit puzzled.

    If you want to start (start X, start) then continue to start X + step X, start. Continue (Start, X, Y). Then go to start X, Y + step start o and increment in X. Repeat for all the table again.

    Is that a correct understanding of what you want?

    If so, you can do this with a picture of the X values and an array of the values, or even with no tables at all.  Create a State with the States for Scan X machine, trace, and no matter what States are required for initialization and shutdown.  Have two shift registers to track the values X and Y or indexes. Whenever you increment X through the State X Scan. When X reaches the maximum value or the index reached the last X, change the State to trace. It increments Y and restores X X start or equivalent for the index. When you reach Max X and Y of Max, go to the State of clean shutdown or restart.

    No complicated manipulation table required.

    Lynn

  • Edge of metering size buffer/table problem (VC ++)

    Hello

    Accidentally, I posted this in the multifunction DAQ forum so forgive me for posting this again here.

    I'm trying to make an edge stamped with PCI-6115 of counting for the application that I'm developing.

    Ideally, I initialize a buffer array, then use a sample clock time and acquire the values of a counter which will then be stored in a buffer.  After a number of samples, I would then use the DAQmxReadCounterU32 function to extract this data and perform calculations.

    However, windows gives me an error when I try to initialize the size of the stamp of table is larger than 255001, I need 264000 +.

    Essentially, it seems that only this part of the code to execute:

    error int = 0;

    TaskHandle taskHandle = 0;

    TaskHandle taskHandleCtr = 0;

    given uInt32 [260000];

    After trying initialize the array of uInt32 my program crashes saying there was an error with my exe with a popup asking me if I want to send an error report to Microsoft.

    That would be a problem of windows not afford to allocated more 255000 32bits samples for this table?  If so how can I put the table on the memory embedded amount?

    Sorry guys, it actually had nothing to do with the DAQ card.

    He was apparently C++ that limits the size of the array that I called him, which was the traditional "int a [size]".

    I used this rather to solve my problem:

    int * a = NULL;
    a = new int [10000000];

    Problem solved.

    Sorry for posting in the wrong forum and thanks to all who read this.

    Howard

  • Windows xp routing table problem

    I'm having a problem with windows routing tables on the pc at my workplace.
    These computers are running windows xp sp3 and the problem occurs when I change the default gateway

    the PCs are on subnet 10.181.1.0/24 with d/g 10.181.1.11.
    with this configuration, the routing on each pc table works as expected [for example, it stores a
    Directions to its own subnet [10.181.1.0/24] but no way to other subnets [for example, it will not store
    a road to 10.180.1.0/24, it will simply send this default network traffic
    gateway].

    However, due to a re-design network, I need to change the default gateway for this lan
    to 10.181.1.254. When I do cela something strange happens. the windows routing table on
    each pc begins to store routes to the entire 10.0.0.0/8 network, even if the current
    config on the pc is still a 24 network [for example, 10.181.1.21/24, d/g 10.181.1.254].
    its as if when I change default gateway from the computer, windows, pleasures of the routing table of the
    10.181.1.0/24 subnet as if it were a network 10.0.0.0/8 classful.

    While, right? I can still connect to other networks, the pc is just using a route
    stored in its routing table local instead of sending traffic to its default gateway.
    The problem is that we have a 10.181.1.12 default backup gateway that we switch to
    If the primary gateway goes down. When we test failover to 10.181.1.12 pcs are always
    Send non-local traffic to 10.181.1.11 [because they still have these routes stored locally in their]
    Windows routing tables]. I want to send traffic to 10.181.1.254 [switch a core of layer 3, which then]
    two lanes of traffic to 10.181.1.11 or. [12]

    I tried to change the default gateway to a range of ip addresses and the same problem occurs every time.
    I rebooted each pc after having changed its d/g and the problem remains the same. I tried
    delete all the information off the power the pc ip address, then re-enter with the new d/g, then restart
    the pc but the problem remains the same.

    so, to summarize, when I change the d/g from any pc on the 10.181.1.0/24 subnet, computers table routing begins to store routes
    in its local routing table to the classful, instead of just the classless 10.181.1.0/24 network 10.0.0.0/8 network.

    Has anyone encountered this before?

    Hi biglouie2010,

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows XP forum.

    http://social.technet.Microsoft.com/forums/en/itproxpsp/threads

  • Need help - multilevel nested table - create table problem

    Hello

    My version of oracle db: 11g

    I just created a table that contains a nested multi-level table.

    Here is the code:

    create or replace type sdef_t_nt_empNames21 is table of the varchar2 (50);

    create or replace type sdef_ot_SCmarks21 as an object (number of physics, chemistry number, number of Biology);

    create or replace type sdef_t_nt_SCmarks21 is table of the sdef_ot_SCmarks21;

    create or replace type sdef_ot_allsubmarks21 as an object (eid, eng, math, sc sdef_t_nt_SCmarks21 number number);

    create or replace type sdef_t_nt_dep_m_info21 is table of the sdef_ot_allsubmarks21;

    create the table nt_dep21

    (number of fact

    , dname varchar2 (50)

    c_sdef_t_nt_empNames21 sdef_t_nt_empNames21

    c_sdef_t_nt_dep_m_info21 sdef_t_nt_dep_m_info21)

    nested as NT_c_sdef_t_nt_empNames21 table c_sdef_t_nt_empNames21 store

    store table nested like NT_c_sdef_t_nt_dep_m_info21; c_sdef_t_nt_dep_m_info21  <-I know that the problem is here.

    TRACE OF THE ERROR:

    Error at startup on line: 13 in the command.

    create the table nt_dep21

    (number of fact

    , dname varchar2 (50)

    c_sdef_t_nt_empNames21 sdef_t_nt_empNames21

    c_sdef_t_nt_dep_m_info21 sdef_t_nt_dep_m_info21)

    nested as NT_c_sdef_t_nt_empNames21 table c_sdef_t_nt_empNames21 store

    Nested table c_sdef_t_nt_dep_m_info21 (sdef_t_nt_SCmarks21) store as NT_c_sdef_t_nt_dep_m_info21

    Error report-

    SQL error: ORA-00904: invalid identifier

    00904, 00000 - '% s: invalid identifier '.

    * Cause:

    * Action:

    PS: I'm just solve a problem given to me by some1, is not a practical implementation, I'm just trying to get through

    I'm sure that some1 could help me with this, I have searched a lot of this problem but could not find my answer, please help me.

    Concerning

    Rahul

    SQL > create table (nt_dep21)
    Did number 2,
    3 dname varchar2 (50).
    4 c_sdef_t_nt_empNames21 sdef_t_nt_empNames21,
    c_sdef_t_nt_dep_m_info21 5 sdef_t_nt_dep_m_info21
    6                       )
    store c_sdef_t_nt_empNames21 7 nested as NT_c_sdef_t_nt_empNames21 table
    store c_sdef_t_nt_dep_m_info21 8 table nested as NT_c_sdef_t_nt_dep_m_info21)
    9 table nested as NT_sc sc store
    10                                                                               )
    11.

    Table created.

    SQL >

    SY.

  • the cell's overflow to find table - problem with script

    Hello

    as a translation company, we often do some DTP on Framemaker documents. Documents often contain many tables and the translated text will always enters the cells, giving overflow. I'm looking by creating a script that detects the overflow in the table cells.

    I already tested a few scripts and met today with a problem that I can't find. I started detecting overflow from the cells in a selected table, that works very well and gives an alert when an overflow is detected. This script:

    // == WORKS ON SELECTED TABLE ==
    var doc = app.ActiveDoc;  
    var tbl = doc.SelectedTbl;  
    var row = tbl.FirstRowInTbl;  
    var cell;  
      
    while (row.ObjectValid () === 1) {  
        cell = row.FirstCellInRow;  
        while (cell.ObjectValid () === 1)  {  
         if (cell.Overflowed === 1) {  
      alert("cell overflow Will Robinson!");
      }
            cell = cell.NextCellInRow;  
        }  
        row = row.NextRowInTbl;  
    }  
    // == END OF WORKS ON SELECTED TABLE ==
    

    However, I thought it would be nice to browse tables in a document and find all the cells of overflows, instead of going to table by table. If this script runs successfully in tables, lines and cells in a document:

    // === LOOPS THROUGH TABLE, NO OVERFLOW ===
    var doc = app.ActiveDoc;
    var tbl = app.ActiveDoc.FirstTblInDoc;
    var row = tbl.FirstRowInTbl;
    var cell;
    
    
    while (tbl.ObjectValid()) {
      alert ("gimme a table");
      while (row.ObjectValid () === 1) {
      cell = row.FirstCellInRow;  
      while (cell.ObjectValid () === 1)  {  
      alert("gimme a cell");
      cell = cell.NextCellInRow;
      }
      row = row.NextRowInTbl;
      }
    tbl = tbl.NextTblInDoc;  
    }    
    // === END OF LOOPS THROUGH TABLE, NO OVERFLOW ===
    

    When I add the block

        while (cell.ObjectValid () === 1)  {  
         if (cell.Overflowed === 1) {  
      alert("cell overflow Will Robinson!");
    

    in this script, it does not work. According to the cell. Overwhelmed A requires the table to be selected? Does anyone know how to get around this problem - by selecting the table if the object is valid before performing a loop on the lines, or by the detection cell. A swamped in the above script?

    I also - why not :) - I tried overflow under the doc.flow rather than FirstTbl, but although it detects flowes/frameworks and subcol correctly, it is not always register the overflow.

    var doc = app.ActiveDoc
    var flow = doc.FirstFlowInDoc
    var frame = flow.FirstTextFrameInFlow
    var subcol =frame.FirstSubCol
    
    while (flow.ObjectValid()){        
                while (frame.ObjectValid()) {               
                        while (subcol.ObjectValid()){
                            if (subcol.OverFlowed === 1){
                            alert("colsies"); //doesn't work!
                            }
                            subcol = subcol.NextSubCol
                            }
                    frame = frame.NextTextFrameInFlow
                    }
                flow = flow.NextFlowInDoc
       }
    

    I'm clearly missing something, but I can't know what? Any help would be greatly appreciated...

    Kind regards

    Geert

    Your code in the second script isn't quite right. Try this:

    var doc, tbl, row, cell;
    
    doc = app.ActiveDoc;
    tbl = doc.FirstTblInDoc;
    while (tbl.ObjectValid ()) {
        row = tbl.FirstRowInTbl;
        while (row.ObjectValid ()) {
            cell = row.FirstCellInRow;
            while (cell.ObjectValid ()) {
                if (cell.Overflowed === 1) {
                    alert ("Cell overflowed");
                }
                cell = cell.NextCellInRow;
            }
            row = row.NextRowInTbl;
        }
        tbl = tbl.NextTblInDoc;
    }
    
  • Oracle 11G - access to the table problem

    Hello
    New on Oracle IAM... After you create a database, I created a connection and SYSDBA role...
    And then I create a table called Table1. And then I create a new USER and I Connect with the same SID of the database, but the role has the DEFAULT value for this new USER...

    01. but the problem is that I can't find the Table1 table for this new user... so how acess as Table1...?

    02. I came to know in Oracle, also we can design forms for the frontend and can generate EXE... Is this true?

    03. in SQL Server - Sql Port with static IP - we have access to the database for remote users... Is it possible for Oracle?


    Thanks for the directions...

    997497 wrote:
    Hello
    New on Oracle IAM... After you create a database, I created a connection and SYSDBA role...

    What the user did you use to connect? I'm guessing that you logged in as SYS

    And then I create a table called Table1. And then I create a new USER and I Connect with the same SID of the database, but the role has the DEFAULT value for this new USER...

    So I guess that you have created the table in the SYS schema. You should never, ever create user objects in the SYS schema. If you have created the table in the SYS schema, you really need to drop and create in a more appropriate scheme.

    You indicate that you come from SQL Server, so there may be a question of terminology. Which refers to SQL Server as a "database" is roughly equivalent to what Oracle designates as a "scheme." An Oracle database contains many schemas. A schema is the set of objects owned by a particular user.

    01. but the problem is that I can't find the Table1 table for this new user... so how acess as Table1...?

    As I said above, you really, really should not create objects in the SYS schema. If you really want, however, you need to log the SYS schema and grant access on the table to your new user

    GRANT SELECT ON sys.table1 TO your_new_user
    

    You will then need to fully qualify the table name in your SELECT (or create a synonym or the current_schema)

    SELECT *
      FROM sys.table1
    

    02. I came to know in Oracle, also we can design forms for the frontend and can generate EXE... Is this true?

    Older versions of Oracle Forms would create server executables. The modern versions are used to create three-tier applications. You can also use APEX to build web applications. Of course, you can also generate executables by writing code in another language (often .net).

    03. in SQL Server - Sql Port with static IP - we have access to the database for remote users... Is it possible for Oracle?

    Is this possible? Sure. Depending on what means "remote users", however, it may be poorly advised - you would never open a database to the internet directly, for example, you want to ensure that the remote users are connected to your network (via a virtual private network).

    Justin

  • Conditional text in Table - problems with setting the line height

    Hey there,

    I'm German, but I try to express my problem in English as I can. Not always easy with different menu names. Hope you get what I mean! :-)

    As you can see in my attached screenshot, I placed the text in a table.

    Text height is set: minimum 1.5... so it adapts to the amount of text.

    That's what I want - it should adjust the height of the conditional text marked/s.

    It always adjusts the height when I blind on the first line lines oder between (for example line 2 + 3 4).

    But if I want to blind on the last lines, there is a number at the end and an extra empty line with #.

    I know the # means hidden following text, but why it works with the red/green text.

    There are also some hidden text (green), but the brand # is just after the last word - not in a new line.

    Does anyone have a solution for this?

    Thanks in advance!

    Screenshot_conditional_text.png

    So far, it's ok. A sign of the end of a text paragraph forces a new line.

    To change, do the following:

    For each condition, you need another condition for the paragraph sign that comes immediately after the condition. Not after each paragraph of a condition, but at the end of each consecutive numbers of the paragraphs of the same condition.

    So in your third example you will need more of two conditions:

    1. one for the paragraph at the end of the condition «meaasurements» sign

    2. one for the sign of paragraph at the end of the condition 'price 2 '.

    Whenever you perform other invisible conditions, you must also disable the new conditions that sign a single control paragraph.

    See the following screenshots:

    Uwe

  • Global temporary Table problem in ADF

    Hello

    I have an application where I need to use a TWG (on the ranks of commit preserve) DB and try to insert data to TWG of screw ADF.
    But the table does not store data even after the Commit command. [Even I tried with permament DB table, and it worked.]

    Could someone help me find the problem with inserting data TWG.


    Kind regards
    Manju

    It is not a good idea to use a global temporary Table in an ADF application. The problem is that all web applications are really stateless. ADF maintains the State of a session data backup or reload it when necessary. Regarding the database, ADF can disconnect a session from the database at any time and connect to another session. This means that you do not necessarily have a continuous database session, then the lines you wrote to a TWG may well gone with the following query. There are ways to tell ADF not to do, but they have a considerable performance drop.

    Therefore, rethinking how you will save temporary information for the duration of a user session. You can do it in an object view ADF BC (VO) - interviewed by VO data carried session - if ADF needs to share a user session to load the data of another user (this is called "passivation") it will save these data. Then when ADF 'active' session, he'll find the saved data and reload it. Or you can use a permanent table with your name or session id - a little more complicated, but possible.

    If you want to tell us a little bit your use case - you need your application to do so, we may have other alternatives.

  • scope of the subquery table problem

    I am trying to run after update query:

    UPDATE of STG DAST
    SET TRAVEL_COUNTRY = (SELECT TRAVEL_COUNTRY_FULL
    FROM (SELECT TRAVEL_COUNTRY_FULL,
    RANK() AT GRADE (A.PERSON_ID ORDER BY A.LAST_UPDATE_DATE DESC, A.LOC_START_DATE DESC, ASC A.LOC_END_DATE PARTITION)
    FROM APPS. TCS_MIS_EIT_LOCATION_EX HAS
    WHERE A.PERSON_ID = DAST. PERSON_ID
    AND A.TRAVEL_TYPE = S"
    AND 1 November 2011 ' BETWEEN A.EFFECTIVE_START_DATE AND A.EFFECTIVE_END_DATE
    AND 1 November 2011 ' BETWEEN A.LOC_START_DATE AND A.LOC_END_DATE)
    WHERE = 1);


    This is in error as ' * DAST.» "PERSON_ID *: invalid identifier.
    But PERSON_ID column of table STG. AFAIK in the outer subquery table will be visible in the internal subquery in such a way that it is. But here it seems that issues. Kindly help me to solve this problem.
    UPDATE  STG DAST
       SET  TRAVEL_COUNTRY = (
                              SELECT  MAX(TRAVEL_COUNTRY_FULL) KEEP(DENSE_RANK FIRST ORDER BY A.LAST_UPDATE_DATE DESC,A.LOC_START_DATE DESC,A.LOC_END_DATE ASC)
                                FROM  APPS.TCS_MIS_EIT_LOCATION_EX A
                                WHERE A.PERSON_ID = DAST.PERSON_ID
                                  AND A.TRAVEL_TYPE = 'S'
                                  AND DATE '2011-11-01' BETWEEN A.EFFECTIVE_START_DATE AND A.EFFECTIVE_END_DATE
                                  AND DATE '2011-11-01' BETWEEN A.LOC_START_DATE AND A.LOC_END_DATE
                             );
    

    SY.

Maybe you are looking for