Meter of row/column for tables

Hello
I know this is very basic, but so far the examples here that I dug up doesn't really do anything remotely to what I want.
I have 3 databases. Although they are defined as 'connections' in SQLDeveloper, I hope it is the same, that I'm still not used to the abstractions of Oracle.
Each has several tables. All I want is loop in each of the 3 DBs and number of journal lines and County table.

Say DB1:
Rows: columns:
Table 1: x y
Table2: x y
....

I really don't like what is inside of them. I found an example that does but it listed some system tables that are not part of my db. Change the "owner" has not really helped.
The value of the variable "Owner" means a database, which is correct?
Oh and I also don't care if the code is "inefficient", tables are not that big.

Thanks in advance.

Published by: 940349 on June 14, 2012 06:22

If you mean you want only for specific schema / owner, you can add a where clause to interrogate or change the query and run it to scpecific user (schema). If you intend to run the specific user query the query would be something like below:

select table_name,count(*) over() count_table,column_name,count(*) over(partition by table_name) count_column from user_tab_columns

Tags: Database

Similar Questions

  • Serial number of PK column for table

    Hi Experts,

    I hung out and view object to the data control on the page jspx,.


    First VO1 as ADF, as master and primary key (PkMaster)

    Second VO2 as ADF Table, details and primary key(PkMaster,PkDetail)


    I want to add a column autoincrement PkDetail do serial for every PkMaster for the table,

    This autoincrements to the value with the number of rows in table

    When to insert a new line.


    Thanks in advance.


    JDeve 12 c

    You can call this method after calling createInsert to detail to generate new sno and place it in the column

        /**Method to generate Serial Number for Table     * ***/
    
        public void generateSerial(String voName, String columnNm) {
    
    
            ViewObjectImpl vo = (ViewObjectImpl) this.findViewObject(voName);
    
           Row curRow = vo.getCurrentRow();
    
            Integer Srno = 0;
    
           Integer max = 0;
    
           vo.setRangeSize(-1);
            Row row[] = vo.getAllRowsInRange();
    
            for (Row r : row) {
    
                try {
    
                    Srno = Integer.parseInt(r.getAttribute(columnNm).toString());
    
               } catch (NullPointerException e) {
    
                    Srno = 0;
                }
    
           if (Srno > max) {
    
                  max = Srno;
    
              }
    
           }
            max = max + 1;
    
           // System.out.println("Serial No is-" + max);
    
          curRow.setAttribute(columnNm, max);    }
    

    just pass vo name and name of the pk column detail

    Ashish

  • R12 - equivalent column for table AP_AE_HEADERS_ALL GL_TRANSFER_RUN_ID

    Hello

    GL_TRANSFER_RUN_ID is a column present in the table of 11i AP AP_AE_HEADERS_ALL.

    In R12 the equivalent table is XLA_AE_HEADERS. Can you please let me know if there is an equivalent column for the 11i GL_TRANSFER_RUN_ID column in tables of R12?

    Thank you
    Rumi

    xla_ae_headers.accounting_batch_id is for creating accountants.
    Think of xla_ae_headers.group_id to transfer the GL. Other columns to consider for transfer of GL are gl_transfer_status_code and gl_transfer_date

    By
    VAMSi

  • Hide columns in Table B, based on values LOV in another row of the table:

    Hello

    Jdev 12.2.1.0

    I have two tables A and B and I hide columns b based on the value of row of table A LOV. For example, I have a line in A table that has a column with the x, y, z values lov. Now, if I select the row in the table has and change the LOV to x, I had to hide some of the columns in the table (B) is there a way to get this feature? Any help would be appreciated.

    Thank you

    Assume:

    1 table a call "DepartmentId" column this column has LOV.

    B 2-table a column "ColumnInB" this column will be visible depending on the value of "DepartmentId".

    Try to do the following:

    1 - from data controls, drag "DepartmentId" attribute and drop it on the page as inputText then together make this inputText to false (you can remove it, but don't forget the corresponding binding in pageDef. not deleted).

    2. copy the value of the inputText which will be as "#{bindings." DepartmentId.inputValue}"and go to the"ColumnInB"column and visible property beyond the copied value.

    3 - the ColumnInB visible will be the condition as:

    4-set DepartmentId autoSubmit = 'true '.

    5-set table partialTriggers table B has id and id of DepartmentId LOV

  • I have a table of the adf, I added a column that contains a button that I created, when I click it must remove this row in the table, but it is not, please help

    I have a table of the adf, I added a column that contains a button that I created, when I click it must remove this row in the table, but it is not, please help

    I don't understand. You use vo and eo for you to use business components.

    Again, this kind of code call in trouble.

    You must post the changes to make them visible to the eo find vo. You must then run the query for the changes in the business layer strips then you must update the iterator he table is based on.

    In your code I see that happen, hooch maybe because it is more often than not formatted and undocumented.

    My advice is to do a small test case that you can manage with easy sql. Once you get it to run transfer you the results to the actual application.

    Timo

  • request to retrieve the value of the column and use in the other rows of the table

    Hi all

    I have a table where I maintain pairs name / value of a particular job.  Now, I would like to see some of the values of the rows passed to other rows in a table for example

    create job_name_value

    (

    VARCHAR2 (100) job_name,.

    name varchar2 (100),

    value varchar2 (100)

    );

    job_name name value
    TRGJOB% FPATH/ USR/LOCAL/TRGJOB
    TRGJOB% FDATECALDATE + 1
    TRGJOB$FNAME1%%FPATH.mywatchfile1.%FDATE
    TRGJOBFNAME2%%FPATH.mywathcfile2.%FDATE
    TRGJOB% FNAME3%FPATH.mywatchfile3.%FDATE

    can we write a sql query to produce output as below the objective is to use the value of fdate and fpath in the remaining lines. If there is no fdate and fpath then value should return such what or we need to use the stored procedure to achieve

    / usr/local/trgjob/mywatchfile1. CALDATE + 1

    / usr/local/trgjob/mywatchfile2. CALDATE + 1

    / usr/local/trgjob/mywatchfile3. CALDATE + 1

    Hello

    Since it cannot be '% FDATTE' or '% FPATH' (or both) then you need to replace each of them separately.  If the other does not, there 'replacement' will do nothing, but this will not affect the result of the other.

    Here's a way to do it:

    SELECT REPLACE (REPLACE (n.value

    '% FPATH.'

    p.value | '/'

    )

    , '% FDATE '.

    d.value

    ) AS output_value

    OF job_name_value n

    LEFT OUTER JOIN job_name_value p ON p.name = '% f '.

    LEFT OUTER JOIN job_name_value d ON p.name = '% FDATE '.

    WHERE n.name AS '\%FNAME%' ESCAPE ' \'

    ;

    I hope that answers your question.

    If this isn't the case, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.

    Report when the above query is to give erroneous results and explain, using specific examples, how to get the correct results of data provided in these places.  If you change the query at all, your postal code.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • Disable the call to the listener of selection for certain cells of a row in the table.

    Hi all


    I have a table with 5 columns. I applied a listener of custom for this table in the bean selection. Now, what is my requirement, an action should happen in some specific cells in this table not all cells. So, how can I get that cell was clicked while the user selects a row in the table? If I can get my problem is apparently solved.

    Help, please.

    You could do this by putting a client listener on the element inside the columns instead of a listener of the selection on the table. You will then get a server event that will tell you which column was clicked.

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/11-client-listener-169135.PDF

  • Name of tables listing the definitions of Web Forms row\column\POV

    All,

    We have some applications planning and a lot of Web forms to allow entry in varied combinations of row\column\POV. Users, it is difficult to locate the correct online with the combination of right row\column\POV form, to allow them to enter data and have to open\close a large number of Web forms before they find the right pair they need\want.

    I know that the relational component of a planning application includes many tables store the definitions of Web forms, etc.. I would like to know where I could find a list of the tables that contain the definitions row\column\POV of each Web forms for each planning application in order to quickly identify the correct webforms who could access their data entry of support staff.

    Thanks in advance.

    JBM

    I think the feature is available for a long time even since version 9

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Paragraph style by default when you add rows/columns of the table

    Hello

    I use InDesign CC and whenever I add a new row in the table or a column, that paragraph for these lines styles are in default in the styles I won't use. They are actually failed to really big styles title so I don't just add lines 3 and 4 and my table is out of the page. None of the surrounding cells, columns or lines contain the ID styles is emphasizing the use.


    How can I set the default style for a new row in the table or column?

    Thank you

    Paul.

    Hi, thanks for the help guys. I tried your suggestions but I always had the same problem. However I noticed that when the model documents have been opened there were styles by default selected in all the style panels. It seemed that it was these styles by default selected which were applied to new rows in the table.

    I opened the templates and all the panels style [none] or [standard paragraph], then saved the document.

    This solves the problem because no style is now applied when rows are added.

  • Determine the space used for each row in the table

    I am trying to determine how much disk space each row in the table will take place (data and indexes). I use sys_guids for my (PK_ID) primary key and foreign key columns (FK_xx), so who are on varchar2 (32).

    What is the best way to determine this?


    CREATE TABLE STU_ENROLLMENT
    (PK_ID VARCHAR2 (32), sys_guid() by default)
    CONSTRAINT pk_stu_enrollment
    KEY ELEMENTARY SCHOOL
    With the HELP of INDEX TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0),.
    FK_STU_SCHOOL VARCHAR2 (32)
    FK_SCHOOL_CALENDAR VARCHAR2 (32)
    FK_PCC_CODE VARCHAR2 (32),
    FK_GRADE_LEVEL VARCHAR2 (32),
    FK_VOTECH VARCHAR2 (32),
    FK_SPECIAL_ED VARCHAR2 (32),
    FK_TUITION_CODE VARCHAR2 (32),
    FK_HOME_INSTRUCTION VARCHAR2 (32),
    FK_DISTRICT VARCHAR2 (32),
    FK_PROGRAM_CODE VARCHAR2 (32),
    FK_SERVING_SCHL VARCHAR2 (32),
    FK_RESPONSIBLE_SCHL VARCHAR2 (32),
    FK_ADA_CODE VARCHAR2 (32),
    FK_ENROLL_TYPE VARCHAR2 (32),
    FK_PCC_REASON VARCHAR2 (32),
    STANDARD_DAY NUMBER (3).
    PCC_NOTES VARCHAR2 (1000).
    USER_FLD1 VARCHAR2 (100),
    USER_FLD2 VARCHAR2 (100),
    USER_FLD3 VARCHAR2 (100),
    USER_FLD4 VARCHAR2 (100),
    USER_FLD5 VARCHAR2 (100),
    PCC_TRANSACTION_ID VARCHAR2 (32),
    TRANSACTION_NUMBER DEFAULT NUMBER '1',
    TRANSACTION_TYPE VARCHAR2 (1) DEFAULT 'A,'
    DATE OF LAST_UPDATE_DATE,
    LAST_UPDATE_USER VARCHAR2 (100))
    TABLESPACE sis_express_base
    STORAGE (5120 INITIAL
    NEXT 5120
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I ON STU_ENROLLMENT (FK_STU_SCHOOL, FK_SCHOOL_CALENDAR, FK_PCC_CODE) SINGLE
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I2 ON STU_ENROLLMENT (FK_SCHOOL_CALENDAR)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I3 ON STU_ENROLLMENT (FK_PCC_CODE)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I4 ON STU_ENROLLMENT (FK_GRADE_LEVEL)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I5 ON STU_ENROLLMENT (FK_VOTECH)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I6 ON STU_ENROLLMENT (FK_SPECIAL_ED)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I7 ON STU_ENROLLMENT (FK_TUITION_CODE)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I8 ON STU_ENROLLMENT (FK_HOME_INSTRUCTION)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I9 ON STU_ENROLLMENT (FK_DISTRICT)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I10 ON STU_ENROLLMENT (FK_PROGRAM_CODE)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I11 ON STU_ENROLLMENT (FK_SERVING_SCHL)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I12 ON STU_ENROLLMENT (FK_RESPONSIBLE_SCHL)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I13 ON STU_ENROLLMENT (FK_ADA_CODE)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I14 ON STU_ENROLLMENT (FK_ENROLL_TYPE)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I15 ON STU_ENROLLMENT (FK_PCC_REASON)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I16 ON STU_ENROLLMENT (PCC_TRANSACTION_ID)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    CREATE INDEX STU_ENROLLMENT_I17 ON STU_ENROLLMENT (FK_STU_SCHOOL, PCC_TRANSACTION_ID, PK_ID)
    TABLESPACE sis_express_index
    STORAGE (4096 INITIAL
    NEXT 4096
    PCTINCREASE 0);

    Hello

    The maximum size of the row in the table

    Select table_name, ROUND (sum (data_length) / 1024,2) SIZE_IN_KB
    of user_tab_cols
    where table_name = 'STU_ENROLLMENT '.
    TABLE_NAME GROUP;

    +

    Select index_name table_name, ROUND (sum (CHAR_LENGTH) / 1024,2) SIZE_IN_KB
    of USER_IND_COLUMNS
    where table_name = 'STU_ENROLLMENT '.
    GROUP BY index_name table_name;

    See the size of the table - method with the average row size

    Concerning
    Hitgon

    Published by: hitgon on May 2, 2012 18:19

    Published by: hitgon on May 2, 2012 18:39

  • Scan of the columns in table for empty cells

    I have prepared a form that will do the following (Please bear with me for the description):

    The form opens with a table of 10 rows.  The user must enter sides (from 0 to 10) in one of the columns in the table.  Once the user enters all the ratings of ten, he or she must then click a button to turn on the rest of the form (which is hidden).  What I'm trying to do is, after the button is clicked, scan the table to ensure that the entire column was filled with a number.  If the column was made, then a second page.  If a cell in the column was left in white, then I want a prompt to appear and indicate to the user which cell is empty.  I was able to run by using the following code:

    This code is under the event 'click '.

    If (decisionMatrix.dMTable.Row4.rating.rawValue is nothing)
    {
    Poster a warning prompt that indicates the form is incomplete

    xfa.host.messageBox ("incomplete form.  Please fill in the background. ","warning ", 3);
    }
    on the other
    {
    Allow the user to save the current state of the form and activate the second part of the form.
    app.execMenuItem ("SaveAs");
    }

    The problem with the above method is that it checks only the Row4 cell.  I have to add more code for the other 9 rows in the table and for each message box, indicating to the user which field to fill.  Is there a better way to do it?  A switch-case perhaps statement?

    I have also considered the column full analysis at a time and just using a message box general for the table, using the following code:

    If (decisionMatrix.dMTable.Row [*].rating.rawValue is nothing)

    {
    Poster a warning prompt that indicates the form is incomplete

    xfa.host.messageBox ("incomplete form.  Please fill all of the scoring. ","warning ", 3);
    }

    ...

    But it doesn't seem to work.  Any help is appreciated.  Thank you.

    The seal contains a table with 10 rows and 3 columns (a_, b_ and c_). The calls button 'Continue' by clicking on the click event, which runs through the table looking for NULL values in each column per row. The "ratingMissing" flag controls the visibility of the page 2.

    Form1.Page1.Subform1.continueBtn::click - (JavaScript, client)

    var ratingMissing = false;

    for (var i = 0; i)< 10;="" i++)="">

    var line = i + 1;

    If (xfa.resolveNode("form1.page1.subform1.table.row["_+_i_+_"].a_").rawValue == null) {}

    xfa.host.messageBox ("A is missing in row"+ row);

    ratingMissing = true;

    }

    If (xfa.resolveNode("form1.page1.subform1.table.row["_+_i_+_"].b_").rawValue == null) {}

    xfa.host.messageBox ("B is not in the line" + row);

    ratingMissing = true;

    }

    If (xfa.resolveNode("form1.page1.subform1.table.row["_+_i_+_"].c_").rawValue == null) {}

    xfa.host.messageBox ("C is missing in the row" + row);

    ratingMissing = true;

    }

    }

    If (ratingMissing == false) {}

    Form1.Page2.presence = "visible";

    }

    else {}

    Form1.Page2.presence = 'hidden ';

    }

    Steve

  • Delete the row in the Table by using the report link column

    Hello

    I a report advocating the rows in a table - I would like to for users to be able to delete rows in the table by clicking on the link in the column "ID". I thought about trying to call a process by using a javascript URL (as mentioned in this thread - Re: how to call PL/SQL process when you press link column ) but I don't know how to write the process so that he knows what 'ID' to remove from the table.

    Any ideas would be greatly appreciated.

    Forrest

    Forrest:

    Follow these steps

    Create an item hidden on the page P_ID named who said
    In the column link definition set the goal URL as the URL as
    JavaScript:doDelete(#ID#);
    Add this JS ito header HTML of the page

     
    

    Create a process page ' on submit ' with the code to delete the record from the table. Subordinate this process by using a "pl/sql expression" type of condtion. Will be the expression of pl/sql

    :request='DELETE';
    

    Treat code

    delete from  where pk_column=:p_id; //adjust as needed 

    Add a branch that branches off to the page

    CITY

  • How can I write in a table cell (row, column appear) in a databae?

    How can I write in a table cell (row, column appear) in a database using LabVIEW Database Toolkit? I use Ms Access. Suppose I have three columns in a table, I write 1 row of the 1st column, then 1st rank of the 3rd column. The problem I have is after writing the 1st column of 1st row, the reference goes to the second row, and if I write in the 3rd column, he goes to the 2nd row 3rd column. Any suggestion?

    When you perform a SQL INSERT command, you create a new line. If you want to change an existing line, you must use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column = some_value). The some_column could be the unique ID of each line, date and time, etc.

    I don't know what is the function to use in the Toolbox to execute a SQL command, since I do not use the Toolbox. Also, I don't understand why you don't do a single INSERT. It would be much faster.

  • CRUD for tables with large number of columns

    Hello

    I work for a government agency in Colombia, and we do a poll with about 1200 variables. Our database model has few paintings, but they have a large number of columns. Our Oracle 11 g database is, and we do not use Oracle APEX. I've read about APEX and it seems to be useful to generate quick forms and reports. However, I would like to know if it is possible to generate CRUD for tables with many columns, and that would be the best way to do it.

    Thanks in advance.

    Carlos.

    With the help of 250 point on a single page is actually really bad for the user experience. I would probably be it cut into pieces and using several pages to guide the customer through it as a workflow.

    You could also add some pop-up windows which includes some elements of your table, just saved on other pages. But I probably don't like that.

    Tobias

  • Request to delete rows for table fa_mass_additions

    Helloo

    I need help to remove rows from the table fa_mass_additions Oracle EBS of assets fixed r12

    Each line is characterized by a unique recnum. However, there are duplicate for the Serial_number entries. I need to remove all but 1.

    For example

    Recnum 60341 Serial_number 1110007600100

    Recnum 60342 Serial_number 1110007600100

    Recnum 60343 Serial_number 1110007600100

    Recnum 60344 Serial_number 1110007600200

    Recnum 60345 Serial_number 1110007600200

    Recnum 60346 Serial_number 1110007600300

    Recnum 60347 Serial_number 1110007600300

    Note-see duplicates for serial numbers

    After the removal of table should be

    Recnum 60341 Serial_number 1110007600100

    Recnum 60344 Serial_number 1110007600200

    Recnum 60346 Serial_number 1110007600300

    Any query sql or pl/sql will be greatly appreciated

    Thank you

    A backup point might be something to consider, but that would be your business decision.

    An alternative workaround that might be used would be to go ahead and after some lines in the meantime, but it is accepted that this should not be an obligation, and the system should operate in a consistent way.

    Can I deduce that the number is not filled, that this value cannot reproduce? If these lines have a tag number, I think that you can check in the version of FATagNumberValidator.class (run a check of the Apps for assets and check for this version of the file). If the instance is not already have version 120.0.12010000.2, your site can be helped in this scenario, the application of Patch 18800958 - ADI WEB: NO DUPLICATE tag ERROR IN SPREADSHEET NUMBERS. There is more explanation of this issue of tag number in the Doc ID 1944256.1.

    In raising this question if, you made me realize that we cannot have similar validation for the serial number, or at least we do not have a named validator in a similar way. I have to do further research on this aspect, but if this is the case, I think that the best I could do would be to log an improvement to that request it.

  • Maybe you are looking for

    • can I get rid of 36? He installed an update and now firefox does not at all

      Firefox 36 is seriously broken He updated on my computer and now does not work. I tried all the suggestions and no help... don't come back to IE

    • Permissions problems after manual migration of the deleted user

      I am the admin of my iMac, although there are a couple of other users. After rising problems with accidents, which does not reinstall OS X, my user account has become so corrupted that Finder would launch is no longer and I was forced to do something

    • ww649aa

      Hello I need help please. I have a HP all-in-one model WW649AA #ABA. I installed Windows 7 Ultimate, but I'm not able to find the network adapter driver. I tried to install the following drivers: sp46349 sp49930 sp50861 And in desperation I tried Ath

    • Tecra A4 - upgrade the processor?

      Can someone tell me or link me to a site or a manual / video that will show me how to get to my CPU, I know that I can remove it and I also have a compatible processor for my motherboard. A Pentium M 2 GHz (currently a 1.5 Ghz Celeron). I want to imp

    • Re: Why is it so hard to find drivers for a Satellite L300D-11V

      I recently acquired a laptop Toshiba Satellite L300D-11V to my daughter when she was upgraded to a netbook. It had Vista on it and I tried to installed Windows 7. I've never owned a notebook pc before, only a desktop pc; and they have never been thro