Determine the column name involved in functional index

I write this query for existing indexes for all tables refers to a schema. My problem is when index is functional, column name is not descriptive, it's like SYS_NC00047$,... as long as yet I could not find a way to know the exact column name in the out put of this query. your help is needed...
 SELECT index_owner,
         index_name,
         table_owner,
         table_name,
         column_name,
         column_position,
         column_length
    FROM dba_ind_columns
   WHERE index_owner = 'CORE_BUSINESS'
ORDER BY table_name               ;

Use DBA_IND_EXPRESSIONS or USER_IND_EXPRESSIONS.

See this example:

SQL> drop table X_1 purge;

Table dropped.

SQL>  create table X_1 (col_1  varchar2(5), col_2 number);

Table created.

SQL> create index X_1_UPPER_COL_1 on X_1(upper(col_1));

Index created.

SQL> set long 20000
SQL> select column_expression from user_ind_expressions
  2  where index_name = 'X_1_UPPER_COL_1';

COLUMN_EXPRESSION
--------------------------------------------------------------------------------
UPPER("COL_1")

SQL>

Note: COLUMN_EXPRESSION is a type of data LONG and LONG default MIS to 80 in SQLPlus, so it will show only the first 80 characters of the expression, unless you SET a higher value for a long TIME.

Hemant K Collette

Tags: Database

Similar Questions

  • use a (selection list) element as the column name in the select?

    I have a popup LOV key based on a select (dynamic list of values)
    I want to display and return - select columns in the select statement to be determined by another list.

    I tried:

    Select distinct: P133_COLUMN d: P133_COLUMN r
    FROM MyTable

    but then I don't you the value of: P133_COLUMN... so if: P133_COLUMN is 'EMPNO' LOV popup displays the text "EMPNO" and referred the text 'EMPNO', not the empno column values...

    If I change

    Select distinct P133_COLUMN d & P133_COLUMN r
    FROM MyTable

    I get the standard
    "LOV query is not valid, a display and a return value is needed, the column names must be different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online. »

    Anyone?

    Also, I was wondering if it is possible to set the textfield object in the item popup LOV to accept the input text directly as well as the selected value, but the first part of the question is the important part.

    Concerning

    Andreas

    Hello Andy,

    Change your LOV to something like this:
    'select' return. : P133_COLUMN |' d, ' | : P133_COLUMN | "as r from myTable";

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

  • Display the name of the tag as the column name and the value in the tag as a row of data from the input string.

    Hi Forum members,

    I am looking for a query display the name of the tag as the column name and the value in the tag as a row of data.

    I have to print the values within the tag to a file by choosing the value of the flags. the sequence of the tags will vary each time, as the tag name will change dynamically.

    So here is the example of input data and the expected output. The string in the text column must be separated as the column names and values.

    Input data
    Select 1 as seqno,' < > 0210A 50 4f < / 4f > < 5f20 > TEST CARD 16 < / 5f20 > < 5f2a > < / 5f2a > < 82 > 1 c 00 < / 82 > ' double text


    Output:

    Seqno 4f 5f20 5f2a 82
    0210A 50 16 1 00 TEST CARD 1

    Please help me by providing your entries on this.

    We use the version of Oracle 11.2.

    Note: This is not the XML string

    Thank you

    Shree

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    )

    Select d.seqno, x.*

    d the data,

    XMLTable ('/ root')

    by the way xmltransform (xmltype ('': replace (replace (text,'<><>'),)))

    XmlType (q'~http://www.w3.org/1999/XSL/Transform "version ="1.0"> ")

                                                     

                                                       

                                                         

                                                       

                                                     

                                                     

                                                       

                                                         

                                                       

                                                     

    ~'

    )

    )

    path of columns '4f' varchar2 (10) "tag4f."

    path of "5f20' varchar2 (30)"tag5f20. "

    path of '5f2a' varchar2 (10) "tag5f2a."

    path of varchar2 (10) "82" "tag82.

    ) x


    SEQNO 4f 5f20 5f2a 82
    1 0210A 50 16 TEST CARD - 1 00
    2 0210A 50 16 TEST CARD - 1 00
    3 0210A 50 16 TEST CARD - 1 00
    4 0210A 50 16 TEST CARD - 1 00

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    ),

    Chopper (seqno, Key, value, String) as

    (select seqno,

    regexp_substr (text,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (Text,'>(.*?))

    regexp_substr (text,'<.+?>. *? ) (.*) $', 1, 1, null, 1). » <>'

    from the data

    Union of all the

    Select seqno,

    regexp_substr (String,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (String,'>(.*?))

    regexp_substr (String,'<.+?>. *? ) (.*) $', 1, 1, null, 1)

    Chopper

    where regexp_substr (string,'<(.*?)>', 1, 1, null, 1) is not null

    )

    Select '4f', seqno, '5f2a', '82', '5f20.

    of (seqno, lower (key) select key, value)

    Chopper

    )

    Pivot (max (value) for key in ('4f' as '4f', '5f20' as '5f20', '5f2a' as '5f2a', "82" as "82"))

    Concerning

    Etbin

  • Necessary emergency with a request: fill date of prior art on the column name

    Hello

    Can you please help me with the query. I would be grateful for your time and your help.

    I have the query and the following output. Basically, the query selects a date, a table and counties received documents based on the current date, day-1, - 2 days-, 3 days-4 days-5 days and especially 5 days. It's the query I wrote. Now the requirement has slightly changed and described below.

    Current query:

    SELECT SUM (CASE WHEN TRUNC (SYSDATE) TRUNC ( )File_Date() = 0 PUIS 1 AUTRE 0 FIN) Zéro ,

    SUM (CASE WHEN TRUNC (SYSDATE) TRUNC ( )File_Date() = 1 PUIS 1 AUTRE 0 FIN)   One ,

    SUM (CASE WHEN TRUNC (SYSDATE) TRUNC ( )File_Date() = 2 PUIS 1 AUTRE 0 FIN) Two ,

    SUM (CASE WHEN TRUNC (SYSDATE) TRUNC ( )File_Date() = 3 ALORS 1 SINON 0 FIN) Trois ,

    SUM (CASE WHEN TRUNC (SYSDATE) TRUNC ( )File_Date() = 4 PUIS 1 AUTRE 0 FIN) Quatre ,

    SUM (BOX WHEN TRUNC (SYSDATE) TRUNC (File_Date) = 5 THEN 1 ELSE 0 END) Five ,

    SUM (CASE WHEN TRUNC (SYSDATE) TRUNC ( )File_Date() > 5 PUIS 1 AUTRE 0 FIN) OverFive ,

    COUNTY (*) Total

    DE DOCUMENT_TABLE

    OUTPUT:

    Zero

    One

    Two

    Three

    Four

    Five

    More than five

    Total

    3

    6

    3

    6

    10

    50

    100

    178

    Now the desired output:

    The column name must be the date, for example the column name, we're Sysdate, two column name is Sysdate-1 day and the result would look like:

    OUTPUT:

    17/12/2014

    16/12/2014

    15/12/2014

    14/12/2014

    13/12/2014

    12/12/2014

    More than five

    Total

    3

    6

    3

    6

    10

    50

    100

    178

    Hi, just try below as you say it's urgent

    Select sysdate, sysdate-1, sysdate-2, sysdate-3,-4, etc of daul sysdate

    Union

    your query

    (you must ensure for the same type of data)

    are you using oracle report or just in the sql query. If the reports, then you can manage very easily with the introduction of a formula column.

  • Select the column name when the value = something

    Is there a way to select the column name when there is a specific value in it?

    As follows:

    create table (abc123)

    COLUMN1 VARCHAR2 (50).

    COLUMN2 VARCHAR2 (50).

    Column3 varchar2 (50)

    );

    insert into abc123 values ('yes', 'Yes', 'No');

    insert into abc123 values ('no', 'Yes', 'No');

    INSERT INTO ABC123 VALUES ('no ',' no', 'No');

    insert into abc123 values ('yes', 'Yes', 'Yes');

    SELECT CASE WHEN COLUMN1 = 'Yes' THEN - the name of the column would be here somehow?

    WHEN COLUMN2 = 'Yes' THEN - the name of the column would be here somehow?

    WHERE Column3 = 'Yes' THEN - the name of the column would be here somehow?

    Another null

    finish as abc123 columnname

    final results for the just Column1 would be:

    COLUMN1

    NULL VALUE

    NULL VALUE

    COLUMN1

    I'm not sure what I use to get the name of column in there

    Thank you.

    Hello

    708631 wrote:

    Is there a way to select the column name when there is a specific value in it?

    As follows:

    create table (abc123)

    COLUMN1 VARCHAR2 (50).

    COLUMN2 VARCHAR2 (50).

    Column3 varchar2 (50)

    );

    insert into abc123 values ('yes', 'Yes', 'No');

    insert into abc123 values ('no', 'Yes', 'No');

    INSERT INTO ABC123 VALUES ('no ',' no', 'No');

    insert into abc123 values ('yes', 'Yes', 'Yes');

    SELECT CASE WHEN COLUMN1 = 'Yes' THEN - the name of the column would be here somehow?

    WHEN COLUMN2 = 'Yes' THEN - the name of the column would be here somehow?

    WHERE Column3 = 'Yes' THEN - the name of the column would be here somehow?

    Another null

    finish as abc123 columnname

    final results for the just Column1 would be:

    COLUMN1

    NULL VALUE

    NULL VALUE

    COLUMN1

    I'm not sure what I use to get the name of column in there

    Thank you.

    Thanks for posting the CREATE TABLE and INSERT for the sample data.

    Don't forget to post the exact results you want from these sample data.  If the results depend on the parameters you want to pass a run time, then give a few different examples, with the the desired results of each.

    You can hardcode the values you want, such as the column names in a query.  For example:

    SELECT CASE WHEN column1 = 'Yes' THEN 'Column1' END like y1

    CASE WHEN column2 = 'Yes' THEN 'Column2' END like y2

    CASE WHEN Column3 = 'Yes' THEN 'Column2' END like y3

    , a. *-If wanted

    Of abc123 one

    ;

  • Can I use * and the list of the column names in a select query

    PLSQL again.  Can I use * and the list of the column names in a select query, i.e. Select *, col1, col2 from Mytable.  When I do that my questions tend to the bomb.  Can do in other databases.

    Thank you

    Mike

    Hi, Mike,.

    If there is something else in the more SELECT clause *, then * must be qualified with a table name or alias.

    For example:

    SELECT Mytable. *, col1, col2

    FROM MyTable;

  • Display the column name of the column more recently updated

    I wonder if it is possible to display the name of the column in the column most recently updated in a table.

    Example:

    Emp table

    Name

    Height

    Weight

    Age

    Update_Date

    Update_Column

    Original record (03/20/14)

    Name size weight Age Update_date Update_Column

    John                                                 03/20/14          Name

    Then someone comes and update the height on 22/03/14:

    Name size weight Age Update_date Update_Column

    John 5'9 03/22/14 height

    And the Update_date and the Update_column would change again if someone came and put a value for the age. And so on.

    Is this possible?

    Also, if the above is possible, would it be possible to display the name of extreme right column if a user updated several columns at the same time?

    Example:

    User updates the sub-folder:

    Name size weight Age Update_date Update_Column

    John 5'9 03/22/14 height

    And adds weight and age at the same time on 24-03-14:

    Name size weight Age Update_date Update_Column

    John 5'9 150 31 03/24 / 14

    The Update_Column would display age because it is the furthest to the right. (Think by reading from left to right, the column that has been updated if the extreme right)

    So to sum things, I need to be able to display Updated_date (which will be the date of the day when the record is the last updated) and Updated_Col (which is the column name of the column was last updated, and if multiple columns are updated then display that value has been updated last in)

    I hope that the examples help to clarify things.

    Thank you

    Steven

    I think I found a solution.

    delimiter //
    create table a (
      id int (10) unsigned auto_increment,
      a int(10),
      b int(10),
      update_date datetime NULL,
      update_column varchar(16) NULL,
      primary key (id)
    )//

    create trigger bu_a before update on a for each row begin
      set NEW.update_date = NOW();
      set NEW.update_column = NULL;
      -- you need to start with the rightmost column if you want
      -- that matched with the highest priority
      if OLD.b != NEW.b then
       set NEW.update_column = "b";
      elseif OLD.a != NEW.a then
       set NEW.update_column = "a";
      end if;
    end //

    TEST

    insert into a (id,a,b) values (1,1,1), (2,1,1), (3,1,1), (4,1,1)[
    update a set b = 2 where id = 2;
    update a set a = 2 where id = 3;
    update a set a = 2 where id = 4;
    update a set b = 2 where id = 4;
    select * from a;

    DISPLAY

    ID  A   B   UPDATE_DATE                    UPDATE_COLUMN
    1   1   1   (null)                          (null)
    2   1   2   March, 24 2014 23:22:33+0000      b
    3   2   1   March, 24 2014 23:22:33+0000      a
    4   2   2   March, 24 2014 23:22:33+0000      b

  • How to move the column label to the right of the column name in the project Panel

    How does a gesture the column label in the project panel to the left of the name to the right of the column name column... machines windows can do this while the macbook pro (3 of 3) this is impossible...

    I still want the opportunity to bring him here where he was.

  • How to export data to excel that has 2 tables with the same number of columns and the column names?

    Hi everyone, yet once landed upward with a problem.

    After trying many things to myself, finally decided to post here...

    I created a form in form builder 6i in which clicking on a button, the data gets exported to the excel sheet.

    It works very well with a single table. The problem now is that I cannot do the same with 2 tables.

    Because the tables have the same number of columns and the columns names.

    Here are the 2 tables with column names:

    Table-1 (MONTHLY_PART_1) Table-2 (MONTHLY_PART_2)
    SL_NOSL_NO
    MODELMODEL
    END_DATEEND_DATE
    U-1U-1
    U-2U-2
    U-4U-4
    ..................
    ..................
    U-20U-20
    U-25U-25

    Given that the tables have the same column names, I get the following error :

    402 error at line 103, column 4

    required aliases in the SELECT list of the slider to avoid duplicate column names.

    So how to export data to excel that has 2 tables with the same number of columns and the column names?

    Should I paste the code? Should I publish this query in 'SQL and PL/SQL ' Forum?

    Help me with this please.

    Thank you.

    Wait a second... is this a kind of House of partitioning? Shouldn't it is a union of two tables instead a join?

    see you soon

  • Rename the column name of the view

    Suppose I have an employee of the table with the column name. Now, I want to make a view of the employee to the table with the name of the First_name and Last_name column. Is this possible?

    You can also use aliases in the view definition:

    CREATE VIEW employee_view (
      first_name,
      last_name
    ) AS
      SELECT first,
             last
      FROM   employee;
    

    However, you can rename a column in a view. You would have to DROP and CREATE or to CREATE or REPLACE.

    Concerning
    Peter

  • Anyway, to remove the column names in the result of the query of SQLPLUS

    Hello

    I am using sqlplus to run a script that returns results with the column names.

    Anyway is to omit the names of columns in the result of the sqlplus query?

    I would like to have only results with their column names in the output.

    Thanks in advance!

    Hello

    Maybe your LINES (IZE) is not defined?

    SCOTT>set lines 130
    SCOTT>select status, machine, module
      2    from v$session
      3   where upper(username) = 'SCOTT';
    
    STATUS   MACHINE                                                          MODULE
    -------- ---------------------------------------------------------------- ------------------------------------------------
    INACTIVE PFAE3\VPC4894-03                                                 TOAD 9.7.2.5
    ACTIVE   PFAE3\VPC4894-03                                                 SQL*Plus
    
    2 rows selected.
    
    SCOTT>
    

    As an alternative to the linesize parameter, you can format the columns:

    SCOTT>set lines 80
    SCOTT>col status for a8
    SCOTT>col machine for a30
    SCOTT>col module for a30
    SCOTT>select status, machine, module
      2    from v$session
      3   where upper(username) = 'SCOTT';
    
    STATUS   MACHINE                        MODULE
    -------- ------------------------------ ------------------------------
    INACTIVE PFAE3\VPC4894-03               TOAD 9.7.2.5
    ACTIVE   PFAE3\VPC4894-03               SQL*Plus
    
    2 rows selected.
    
    SCOTT>
    

    Concerning
    Peter

  • Why cannot avoid the sort ORDER BY STOPKEY function index

     
    
    SQL> alter session set nls_language=american;
    
    Session altered.
    
    SQL> create table test_sort(name,object_name) as select 'select',object_name from 
      2  dba_objects;
    
    Table created.
    
    SQL> create index i_test_sort_1 on test_sort(substr(name,0,3),object_name);
    
    Index created.
    
    SQL> exec dbms_stats.gather_table_stats(user,'TEST_SORT');
    
    PL/SQL procedure successfully completed.
    
    SQL> set autot trace
    SQL> select * from (select * from test_sort where substr(name,0,3)='sel' order by 
      2  object_name) where rownum<11;
    
    10 rows selected.
    
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 4202652051
    
    --------------------------------------------------------------------------------
    -------------
    
    | Id  | Operation               | Name      | Rows  | Bytes |TempSpc| Cost (%CPU
    )| Time     |
    
    --------------------------------------------------------------------------------
    -------------
    
    |   0 | SELECT STATEMENT        |           |    10 |   740 |       |   504   (3
    )| 00:00:07 |
    
    |*  1 |  COUNT STOPKEY          |           |       |       |       |
     |          |
    
    |   2 |   VIEW                  |           | 49902 |  3606K|       |   504   (3
    )| 00:00:07 |
    
    |*  3 |    SORT ORDER BY STOPKEY|           | 49902 |  1559K|  3928K|   504   (3
    )| 00:00:07 |
    
    |*  4 |     TABLE ACCESS FULL   | TEST_SORT | 49902 |  1559K|       |    60   (5
    )| 00:00:01 |
    
    --------------------------------------------------------------------------------
    -------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter(ROWNUM<11)
       3 - filter(ROWNUM<11)
       4 - filter(SUBSTR("NAME",0,3)='sel')
    
    
    Statistics
    ----------------------------------------------------------
            139  recursive calls
              0  db block gets
            279  consistent gets
              0  physical reads
              0  redo size
            695  bytes sent via SQL*Net to client
            400  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              5  sorts (memory)
              0  sorts (disk)
             10  rows processed 
    
    sql doesn't choose index ,so I use hint to force oracle choose index
    
    SQL> select * from (select /*+ index(test_sort) */ * from test_sort where substr(name,0,3)='sel'
      2  order by object_name) where rownum<11;
    
    10 rows selected.
    
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 1978014138
    
    --------------------------------------------------------------------------------
    ------------------------
    
    | Id  | Operation                      | Name          | Rows  | Bytes |TempSpc|
     Cost (%CPU)| Time     |
    
    --------------------------------------------------------------------------------
    ------------------------
    
    |   0 | SELECT STATEMENT               |               |    10 |   740 |       |
     22869   (1)| 00:04:35 |
    
    |*  1 |  COUNT STOPKEY                 |               |       |       |       |
                |          |
    
    |   2 |   VIEW                         |               | 49902 |  3606K|       |
     22869   (1)| 00:04:35 |
    
    |*  3 |    SORT ORDER BY STOPKEY       |               | 49902 |  1559K|  3928K|
     22869   (1)| 00:04:35 |
    
    |   4 |     TABLE ACCESS BY INDEX ROWID| TEST_SORT     | 49902 |  1559K|       |
     22424   (1)| 00:04:30 |
    
    |*  5 |      INDEX RANGE SCAN          | I_TEST_SORT_1 | 49902 |       |       |
       278   (1)| 00:00:04 |
    
    --------------------------------------------------------------------------------
    ------------------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter(ROWNUM<11)
       3 - filter(ROWNUM<11)
       5 - access(SUBSTR("NAME",0,3)='sel')
    
    
    Statistics
    ----------------------------------------------------------
              1  recursive calls
              0  db block gets
          22393  consistent gets
              0  physical reads
              0  redo size
            695  bytes sent via SQL*Net to client
            400  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
             10  rows processed
    
    From the explain ,the sql chooses the index,but SORT ORDER BY STOPKEY  doesn't avoid,so oracle
    must read all rows satisfy substr(name,0,3)='sel' ,the I rewrite the sql as the following,we can see 
    that sort ORDER BY STOPKEY does't happen,so oracle return 10 rows fast. 
    
    SQL> select * from (select /*+ index(test_sort) */ * from test_sort where substr(name,0,3)='sel'
      2  order by substr(name,0,3),object_name) where rownum<11;
    
    10 rows selected.
    
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 4154852915
    
    --------------------------------------------------------------------------------
    ---------------
    
    | Id  | Operation                     | Name          | Rows  | Bytes | Cost (%C
    PU)| Time     |
    
    --------------------------------------------------------------------------------
    ---------------
    
    |   0 | SELECT STATEMENT              |               |    10 |   740 |     8
    (0)| 00:00:01 |
    
    |*  1 |  COUNT STOPKEY                |               |       |       |
       |          |
    
    |   2 |   VIEW                        |               |    10 |   740 |     8
    (0)| 00:00:01 |
    
    |   3 |    TABLE ACCESS BY INDEX ROWID| TEST_SORT     | 49902 |  1559K|     8
    (0)| 00:00:01 |
    
    |*  4 |     INDEX RANGE SCAN          | I_TEST_SORT_1 |    10 |       |     3
    (0)| 00:00:01 |
    
    --------------------------------------------------------------------------------
    ---------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter(ROWNUM<11)
       4 - access(SUBSTR("NAME",0,3)='sel')
           filter(SUBSTR("NAME",0,3)='sel')
    
    
    Statistics
    ----------------------------------------------------------
              1  recursive calls
              0  db block gets
             11  consistent gets
              0  physical reads
              0  redo size
            695  bytes sent via SQL*Net to client
            400  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
             10  rows processed

    Jinyu wrote:
    Hi, I think that this may be an optimizer bug 10g or flaw optimizer 10 g, although substr (name, 0, 3) = 'salt' is not selective, but oracle can also use indexes to find the top 10 by object_name result order

    Jinyu,

    Indeed, it seems to be a gap in the mode of optimization 10.2 FIRST_ROWS_n. I could reproduce your problem in 10.2.0.4 and watching the 10053 trace, it looks like that the optimizer does not consider the option "Recost for ORDER (with the HELP of indexes)" where you have a composite index based function. It does when using a 'normal' composite index, and it does - as you mentioned - when using the main column in the ORDER BY expression as well. You don't need to use INDEX indicator in this case, moreover, the recosting for ORDER BY then works very well and chooses the index without specified indicators.

    11 g the "recalculate for ORDER BY" appears again in the first place it looks like an obvious limitation / bug of 10.2.0.3/4 at least.

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676 /.
    http://sourceforge.NET/projects/SQLT-pp/

  • Determine the file name lengths

    Is this possible in Windows 7 to determine the length of the file names in an old and its subfolders?

    I tried some freeware programs that are supposed to do, but with not much luck.

    Thank you

    Sounds like pretty simple job for someone who knows how to write scripts that run in Windows, in something like Visual Basic.  Until this person comes to help here, I will mention that a method I've found is to go to the desired folder, copy the filepaths of the elements there, paste into an Excel sheet and use formulas to deal with the results.

    More details: when opening the file (or do a search in this folder), click on organize, click Select all, press on and hold down the SHIFT key and right-click on any file name, click Copy as path, go to an Excel spreadsheet and paste it into cell A2 to display a column to fill with paths.  Because we want to count the characters in the names of files and no paths together, we have a few delicate manufacturing formula Excel.

    I did the labels column for cells A1 to E1: entirepath filename extension namelength pathlength.  B2 E2 to cells contain these formulas:

    B2

    = IF (ISERROR (FIND("\",A2)), A2, RIGHT (A2, LEN (A2) - FIND ("|", SUBSTITUTE (A2, "-","|", LEN (A2) - LEN (SUBSTITUTE(A2,"\",""))))))

    C2

    (= IF (ISERROR (FIND(".",B2)),"", RIGHT (B2, LEN (B2) - FIND ("|", SUBSTITUTE (B2, ".","|", LEN (B2) - LEN (SUBSTITUTE(B2,".",)))) "" ")))

    D2

    = LEN (A2)

    E2

    = LEN (B2)

    Note that the namelength will include characters from file extension, or at least it did for me: I always keep the setting to display the file extension in Windows.

    For all information from production lines according to the formulas, select cells B2 to E2, copy, select the cells on the lower lines of the C2 at the last line with a filepath showing and paste.

  • How to determine the RTD name generated by sdo_geor.init ()?

    I did the following in a stored procedure:

    insert into... values (sdo_geor.init ()) return newcol in gr.

    Now, before you do anything with gr, I create the RTD whose name was generated by sdo_geor.init. How can I get this name? It doesn't seem to be a sdo_geor.get* procedure or function for this return.

    What I'm trying to do is to implement this example of sdo_geor.copy, but without specifying a RTD in sdo_geor.init ():

    DECLARE
    GR1 sdo_georaster;
    Sdo_georaster GR2;
    BEGIN
    INSERT INTO georaster_table VALUES (11, sdo_geor.init ('RDT_11', 1))
    RETURN georaster INTO gr2;
    Georaster SELECT INTO gr1 from georaster_table WHERE georid = 1;
    sdo_geor. Copy (gr1, gr2);
    UPDATE georaster_table SET georaster is gr2 WHERE georid = 11;.
    COMMIT;
    END;
    /


    If not, is there a way to generate a unique name for the RTD myself so that I can specify in the call to sdo_geor.init?

    Thank you very much
    Mike

    Mike,

    the name of table RTD is in the object georaster (gr), that you just created. It is an attribute of the sdo_georaster object, that is, gr. RASTERDATATABLE in your case.

    in general, automatically generate the RTD name through sdo_geor.init is not recommended because that would generate a RTD for each object GeoRaster. A table of RTD should be used to contain many smaller GeoRaster objects raster blocks while you spend on a single table RTD for a huge object GeoRaster (an image with a size over tens of GB to several terabytes for example). Even if the RTD arrays are internal GeoRaster, creating the table RTD is made by users, which is intentional, so that you can take full advantage of the configuration and power setting of oracle database (for example, if the DSO is not used, the tables of RTD can be created on different tablespaces so that the raster blocks are distributed to different disks to improve performance).

    to generate unique names for RTD, you can leverage the SEQUENCE object to create sequence numbers and then attach them to a special table name you have picked up.

    Kind regards
    Jeffrey

  • Change the column names in the Table of snapshot?

    Now when you create a snapshot - a table is created using names of columns like C_PRODUCT_MEMBER_CAPTION or C_MEASURES_MEASURE_NAME

    Is it possible to format these column names when creating the table?
    As a measure named "Expéditions" would create a name of column 'Deliveries' and not 'C_MEASURES_SHIPMENTS '.

    I am aware that MDX can Member alias names such as:

    WITH MEMBER [Measures]. [New name] [MEASURES]. [Really long name that I want to change]

    But it would not always remove the prefix "C_MEASURES_".

    Thank you
    John

    John,

    Don't believe it's possible - tables snapshot always end with the crazy column names. I my experience, the raw snapshot tables (almost) always need to be post-processed, which is where you'd of beautiful readable columns.

Maybe you are looking for

  • Qosmio F60-136: Impossible to disable the USB sleep-and-Charge in hibernation mode

    USB sleep-and-Charge function is marked as disabled in BIOS (v2.70).This can be checked with Sleep Utility (v1.4.1.5) where the function also seems to be disabled.During the stop of my laptop, smart phone or the stop MP3 player to charge.Everything i

  • Windows 3.1 to 3.11

    I want to write a book on the programs that led to the reputation of Windows 3.1 to 3.11

  • BlackBerry Smartphone App world icon is missing from my home screens and download

    I've upgraded to Blackberry App World version 4.0.0.63 on my Blackberry Bold 9780 yesterday. After re-booting the phone, my App World icon was suddenly missing from my home screen. It was not on my download screen. I could also find when you do a sea

  • Screen resolution reset after plugging in the tv

    A month ago, I plugged my Dell Inspiron N7110 with Core i5, on TV using HDMI cables, the computer prompted me to change the screen resolution of 1600 x 900. I think the original was 1280 x 720. Now, he won't let not get back together with making my s

  • Two monitors with x 200 and docking station

    Hello Is it possible to use two monitors with my x 200? I use a docking station that has 1 VGA out. When I plug a second monitor into the VGA output on the laptop, the screen adjusts a car but remains empty. Any help appreciated Concerning Andrew.