A selection of walls blocking Oracle

I have following INTERNALLY partitioned tables and local index by BUREAU_CODE:

CREATE TABLE fin_mea)
fin_mea_uid NUMBER NOT NULL,
fiscal_month_uid NUMBER NOT NULL,
fiscal_year_uid NUMBER NOT NULL,
bureau_code VARCHAR2 (3) NOT NULL,
main_acct_code VARCHAR2 (4).
sub_acct_code VARCHAR2 (3),
net_amt NUMBER (23.2))
PARTITION OF the LINE (fiscal_month_uid)
INTERVAL (1)
(PARTITION fmea_initial VALUES LESS THAN (200501));

CREATE INDEX fin_mea_bureau_idx ON fin_mea (bureau_code CAD) LOCAL;

When I try to select lines of partition does not exist with a condition that uses indexed column that oracle crashes with an error 'end of pipe ':

SELECT * fin_mea partition to (201301) where a.bureau_code = "ZZZ".

The following works even without selected lines:

Select * from (SELECT * FROM fin_mea partition to (201301)) a clause where a.bureau_code = "ZZZ";

If I remove index then first request works without a problem:

SELECT * fin_mea partition to (201301) where a.bureau_code = "ZZZ".

Is this a bug or I do something wrong?

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0

I've narrowed the problem to the syntax of the OP used to create the index.

According to the manual, the list of columns must come * before * the index properties, but there LOCAL before the columns.

If I change it, the whole scenario works without error.

Of course, this does not explain why the server process has crashed in the original scenario.  That should not happen.

But also note that the original syntax of the OP does NOT create a local partitioned index.

I wonder if this is really where the bug lies.  That should have been a syntax error.

SQL > CREATE TABLE fin_mea)

2 fin_mea_uid NUMBER NOT NULL,

NUMBER of field2 3 NOT NULL,.

4 fiscal_month_uid NUMBER NOT NULL,

Field4 NUMBER 5 NOT NULL,.

NUMBER 6 sphere5 NOT NULL,

7 case field6 NUMBER NOT NULL,

NUMBER 8 field7 NOT NULL,

9 field8 VARCHAR2 (24) NOT NULL,

NUMBER of field9 10 NOT NULL,

11 bureau_code VARCHAR2 (3) NOT NULL,

12 Champ11 VARCHAR2 (3),

13 field12 VARCHAR2 (3),

field13 14 number 4,

Domaine.14 15 number 4,

16 field15 VARCHAR2 (1).

17 field16 VARCHAR2 (4).

18 publique17 VARCHAR2 (3),

field18 19 number 4,

20 publique19 number 4,

21 field.20 NUMBER (5),

22 field21 VARCHAR2 (3),

23 matiere22 VARCHAR2 (2),

field23 24 number 4,

25 net_amt NUMBER (23.2))

26 PARTITION BY RANGE (fiscal_month_uid)

INTERVAL OF 27 (1)

28 (PARTITION fmea_initial VALUES LESS THAN (200501))

PCTFREE 29 10

30 INITRANS 1

31 255 MAXTRANS

NOCACHE 32

33 MONITORING

34 NOPARALLEL

35 LOGGING

36.

Table created.

SQL > CREATE INDEX fin_mea_org_idx ON fin_mea (bureau_code) LOCAL

2 PCTFREE 10

3 INITRANS 2

4 MAXTRANS 255

5 NOPARALLEL

6 LOGGING

7.

The index is created.

SQL > SELECT * fin_mea partition to (201301) where a.bureau_code = "ZZZ";  --< doesn't="" error="">

no selected line

SQL > select separated from user_indexes where index-name = "FIN_MEA_ORG_IDX";

NOMINAL

---

YES

SQL > drop index FIN_MEA_ORG_IDX;

The index is deleted.

SQL > CREATE INDEX fin_mea_org_idx ON fin_mea LOCAL.< should="" this="" be="" a="" syntax="">

2 (bureau_code CSA

3    )

4 PCTFREE 10

5 INITRANS 2

6 MAXTRANS 255

7 NOPARALLEL

8 LOGGING

9.

The index is created.

SQL > select separated from user_indexes where index-name = "FIN_MEA_ORG_IDX";

NOMINAL

---

NO.

Tags: Database

Similar Questions

  • How can I select text all blocks at once

    I tried different ways to do it, but in vain. If you have a large work surface with 30-40 + individual and any text that you want to do is to select all the blocks of text at once, then font change, or a variable of type, etc., how could you do this? A hard time understand this out, but it might be something obvious that I missed.

    ElegantScience,

    How about you select > object > text objects?

  • I need to select all the blocks of text in a document and align text blocks in the back pages left frame margin and the text in the pages front to the right margin.

    Hello

    Am new to Java script.

    Can someone help me out here, I need to select all the blocks of text in a document and align text blocks in the pages back to the left margin frames and text in pages recto at the right margin.

    Thank you
    Harish

    Hi Harish,

    Try this.

    var doc =app.activeDocument,
        _pages = doc.pages;
    doc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
    for(var i =0;i<_pages.length;i++)
    {
            txfms = _pages[i].textFrames.everyItem().getElements();
            for(var j =0;j
    

    Kind regards

    Cognet

  • by selecting all the blocks of text on all visible layers

    I want to select all the blocks of text on all visible layers.

    the script below will select all the blocks of text, even in groups, but if the layer with the text is invisible the script error. (target layer cannot be changed)

    If (app.documents.length > 0) {}

    var doc = app.activeDocument;

    var numTextFrames = 0;

    for (i = 0; i < doc.textFrames.length; i ++) {}

    textArtRange = doc.textFrames [i];

    textArtRange.selected = true;

    }

    }

    So I made this script to select blocks of text on only visible layers, but now missing text belonging to a group.

    var layerCount = activeDocument.layers.length;

    var docSelected = activeDocument.selection;

    for (i = 0; i < layerCount; i ++)

    {

    currentLayer = activeDocument.layers [i];

    If (currentLayer.visible == visible)

    {

    for (j = 0; j < currentLayer.textFrames.length; j ++) {}

    textArtRange = currentLayer.textFrames [j];

    textArtRange.selected = true;

    }

    }

    }

    can someone tell me why it is not some frames of text bound in a group when made this way and is it possible to get all managers of related texts selected on all visible layers?

    Thank you

    Duane

    Try this:

    if (app.documents.length > 0 ) {
        var doc = app.activeDocument;
        var numTextFrames = 0;
        for (  i = 0; i < doc.textFrames.length; i++ ) {
            try {
            textArtRange = doc.textFrames[i];
            textArtRange.selected = true;
            } catch (e) {}
            }
        }
    

    Have fun

  • ORA-01578: block ORACLE (corrupted file # 1, block # 53713) data

    When I tried to export data from the database (Oracle 11 g, 64-bit Linux)

    Following error message is im

    About to export specified users...
    . export of the actions and the patterns of objects procedures
    EXP-00008: ORACLE error 604
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-01578: block ORACLE (corrupted file # 1, block # 53713) data
    ORA-01110: data file 1: ' / u02/oradata/RSDB1/system01.dbf'
    EXP-00083: the previous problem occurred when calling EXFSYS. DBMS_EXPFIL_DEPASEX P.schema_info_exp
    EXP-00008: ORACLE error 604
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-01578: block ORACLE (corrupted file # 1, block # 55497) data
    ORA-01110: data file 1: ' / u02/oradata/RSDB1/system01.dbf'
    EXP-00083: the previous problem has occurred during the call to SYS. DBMS_CUBE_EXP.schema_i nfo_exp
    . exporting foreign function library names for the user WB_APP_MANAGER
    . export synonyms for PUBLIC types
    EXP-00008: ORACLE error 604
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-01578: block ORACLE (corrupted file # 1, block # 44638) data
    ORA-01110: data file 1: ' / u02/oradata/RSDB1/system01.dbf'
    EXP-00000: export completed unsuccessfully

    I do not understand how to solve this problem please help me solve this problem...


    Thank you

    OK, so you're not do backups at all.

    In other words, that your only option is to reload the database from the most recent export. This means that you going to LOSE data at the time of the last export, up to the current moment in time.

    As others have said, I'll say it again: export is NOT a backup strategy valid! You must run in archivelog, backup your database regularly mode (using the RMAN backup) and backup and Save (once again, with RMAN) all archivelogs generated between backups!

    But it is what it is. You have only export you took. So, you need to work with what you have. Given that corruption is file #1, which is the SYSTEM tablespace datafile, your only option is to drop and re-create the database, and then import your latest export.

    When you have done this, and you have a working database once again, go back and set ŒUVRE a REAL STRATEGY of BACKUP! Use RMAN, place the database in archivelog mode. Do not hesitate!

    Hope that helps,

    -Mark

  • Multiple selection on a block

    Hi experts,

    How can I do a multiple selection on a block of retail (in ascending order) and save the data selected from the database. ?

    can I have a code example please?

    Thank you
    Mr. baguhan

    baguhan,

    then replace it with this code.

    DECLARE
    Num_Total_Records NUMBER;
    Num_Loop_I NUMBER;
    BEGIN
    GO_BLOCK ();
    PREMIER_ENREGISTREMENT;
    LAST_RECORD;
    Num_Total_Records: = TO_NUMBER (NAME_IN('SYSTEM.) CURSOR_RECORD'));
    PREMIER_ENREGISTREMENT;
    FOR Num_Loop_I IN 1.Num_Total_Records LOOP
    IF = 1 THEN
    <................................................>
    END IF;
    NEXT_RECORD;
    END LOOP;
    <................................................>
    END;

    Kind regards

    Manu.

  • Block Oracle's PL/SQL by comparing the values to 4 decimal places

    Hello

    I use Oracle Database 11 g 2. I wrote a simple PL/SQL block that validates as false. Basically trying to ensure that the calculation of FX's 4 correct decimals.

    Example if,

    1,000 vs 1.0000 should have the value false

    1,0000 vs 1.0000 must be set to true

    To this end, I'm doing string comparison. I don't know why the following code evaluates to "false", or what is the right way to make this comparison in PL/SQL?

    declare
    l_fx_rate varchar2(100) := to_char(1, '9999.9999');
    l_aud_usd varchar2(100) := to_char((23/23),'999999.9999');
    
    
    BEGIN
    htp.p(l_fx_rate);
    htp.p(l_aud_usd);
      IF l_fx_rate = l_aud_usd
      THEN
    htp.p('true');
      else
    htp.p('false');
      END IF;
    END;
    

    Thank you.

    • l_fx_rate varchar2 (100): = to_char (1, '9999.9999');
    • l_aud_usd varchar2 (100): = to_char ((23/23), '999999.9999');

    The first STRING has 4 digits left of the decimal separator and the second CHANNEL has 6 digits to the left of the decimal separator.

    4 is NOT equal 6.

    You can EASILY see if you actually view the values that uses Oracle.

    with q as (select to_char (1, '9999.9999'), v1, v2 to_char ((23/23), '999999.9999') of double)
    Select the v1, v2, dump (v1), (v2) dump, case when v1 = v2 then "true" end if 'false' q v3

    V1 (V1), V2, DUMP DUMP (V2), V3

    1.0000, Typ = 1 Len = 10: 32,32,32,32,49,46,48,48,48,48, 1.0000, Typ = 1 Len = 12: 32,32,32,32,32,32,49,46,48,48,48,48, false

    See the 4 space characters (32,32,32,32) in the first value chain? See the 6 in the second value?

    Oracle compares "1.0000' to ' 1.0000' and the strings are NOT the same."

  • Ability to create a Message in response to the end user by selecting 'Cancel' or 'block' after clicking on a link to a URL?

    Hi all:

    When a user clicks on a link/button to connect to a URL, the Security dialog box appears automatically giving them options 'Allow', 'Block' or 'Cancel '.  Should they choose 'Block' or 'Cancel', can trigger us a message box informing them that they blocked or cancelled the connection?

    With traditional message boxes, we are making them, that is to say

    var rtnFromBox = xfa.host.messageBox ("Information is missing.\n\n are you sure you want to continue?", "Missing Information", 1, 2);

    If (rtnFromBox == 4) {}

    xfa.host.messageBox ("Let's keep DC.","", 1, 0);

    }

    But with the security of URL dialogue, we are not calling it a variable - it happens.

    I suppose a similar question could be applied to a Save"" button.  Where if the end user selects 'Cancel' in the dialog box "save under", a warning may pop up to remind them to register quickly.

    Thoughts?  Thank you!

    Brian

    I don't see a way to do what the Security dialog boxes are not executed by the JavaScript API and does not return all the values that you can use.

  • Select * in &lt; table_name &gt; in oracle

    Hello

    I would like to create a table in Oracle really liked the way I do in Sybase
    SELECT * INTO mytable FROM t WHERE 1 = 2
    go
    Thank you

    Ashok

    Try this (DEC)

    CREATE TABLE t AS SELECT * FROM mytable WHERE 1 = 2;
    

    Note that unlike Sybase where you need the option of database "SELECT INTO" enabled for SELECT INTO, wiil above work without problem in Oracle.

    As usual to ensure that you have enough free space in the Oracle database. ETG won't create any other DDL statement as constaint of primary key or index as they were on the original table (mytable).

    HTH,

    Mich

  • Blocking Oracle script

    Hello

    I'm using oracle 11g on windows 2003 server. I stimulated oracle lock, but I want a script that should show me if the lock is dead lock or normal etc...

    Please can someone tell me what all the tables I should use to get the information?


    Thanks in advance

    There is no query to check for blockages - given that blocks are handled (or resolved immediately) by core Oracle.

    For transactional locks, you can query V$ lock, v$ locked_object, dba_blockers.

  • Table not found, to: select * from EUL5_documents, using Oracle Developer

    Hello world

    Hope all is well,

    In a previous thread.
    Re: Can I export the query "database" to Excel?

    West of stem has provided the name of the discoverer table which contains the reports:
    EUL5_Documents.

    I went to Oracle Developer just to run a select statement on this table.
    (We use discoverer out of an ODS - data warehouse - like repository)

    So in Oracle developer, I signed in ODS and typed:
    Select * from EUL5_documents

    I typed EUL5_ a drop-down list of tables appear, so I chose EUL5_documents

    I get an error msg when I run the table is not found...

    All advice would be appreciated, tx, sandra

    Hi, Sandra
    You are probably using the SunGard ODS?

    If so, you must open a session as long as the owner of the EUL is not the owner of the ODS. In many cases, this account is ODSDISCO.

    You can tell by logging in to the administration tool. Any account that you use to connect there is one that you can use to query the underlying tables. EUL5_DOCUMENTS is definitely one you want to watch.

    Best wishes
    Michael

  • Selection of Multi block record values

    Hello
    Nice day!

    Senario:

    I have a block (age_file) that have A DB colum, colum b (point DB), X (not db) the box colum... I have 1000000 folders inside...

    Block (age_file)
    Colum (part of DB) colum b (point DB)
    ABC 123
    XYZ 456
    ERT 852

    The requirement is if I select records with the help of the box, the corresponding value in the column should be concatenated and value should present in colum X (not db) , IE, if I select registration 1 & 3, the value in the column X (not db) should be abcert

    Please help me in this as soon as possible.

    Thanks in advance

    Hai,

    Try this code.

    DECLARE
         Str_Result VARCHAR2(30000);
         Num_Total_Records NUMBER;
         Num_Loop_I NUMBER;
    BEGIN
         Str_Result := '';
         GO_BLOCK('');
         FIRST_RECORD;
         LAST_RECORD;
         Num_Total_Records := TO_NUMBER(NAME_IN('SYSTEM.CURSOR_RECORD'));
         FIRST_RECORD;
         FOR Num_Loop_I IN 1..Num_Total_Records LOOP
              IF :. = 1 THEN
                   Str_Result := Str_Result || '' || :. || '' || :.;
              END IF;
              NEXT_RECORD;
         END LOOP;
         FIRST_RECORD;
    
    END;
    

    Kind regards

    Manu.

    If this answer is useful or appropriate, please mark. Thank you.

  • Select the text block to get the content, save and close Windows - Java -.

    Hi guys!

    I made some scripts for Photoshop and now I'm doing something for InDesign, but this one is Kind ' more difficult.

    Let me explain it to you:

    I this 'model' document, it is a file where I have all positions and points for "merge data" do his work. And he does it perfectly, I can create all the fine merged documents, the solution that im working for is to get one of the fields that the "merge data" is completed to be the file name, and then save the file and close it.

    This text box is going to be the name of my file that has a special paragraph Style which is unique on the document, I don't know if it's useful.

    Oh sure, once the work is done by the fusion of data where the script should start now I have something like 15 (do not forget that it is a random number, depends on how many references I have in my Data Source) ready documents save and close.

    I have yet to get started, looked for examples, but nothing came to my mind, any help?

    Thanks guys and I ask you to apologize for grammar mistakes, I'm Brazilian.

    CyA!

    And he crashed right into the first record where I messed up it?

    I thought I was pretty clear when I said:

    I didn't notice you had wrapped all in a while loop. Who's going to make the problem worse. Which does not seem that this would cause a problem?

    Why did you do that? I told you to use:

    var i, name, doc;
    for (i=0; i   doc = app.documents[i];

    And you changed anything else that I not tell you to do:

    while (app.documents.length) {
      doc = app.documents[0];
      var i, Ref, doc;
      for (i=app.documents.length-1; i>=0; i--) {
        doc = app.documents[i];

    It is the cause of some, but not all of your problems. Why did you do that?

    In all cases, your entire script should look like this (decrement loop):

    var i, Ref, doc,
        Pasta = Folder.selectDialog("Selecione a pasta de destino dos arquivos.");
    if (Pasta == null) { exit(); }
    if (app.documents.length == 0) { exit(); }
    
    for (i=app.documents.length-1; i>=0; i--) {
        doc = app.documents[i];
        Ref = doc.textFrames.itemByName("Modelo").contents;
        app.activeDocument.save(new File(Pasta.fsName+"/"+Ref+".indd"));
        app.activeDocument.close();
    }
    

    Or, as this (operation on the active document):

    var i, Ref, doc,
        Pasta = Folder.selectDialog("Selecione a pasta de destino dos arquivos.");
    if (Pasta == null) { exit(); }
    if (app.documents.length == 0) { exit(); }
    
    while (app.documents.length) {
        doc = app.documents[0];
        Ref = doc.textFrames.itemByName("Modelo").contents;
        app.activeDocument.save(new File(Pasta.fsName+"/"+Ref+".indd"));
        app.activeDocument.close();
    }
    

    While we are here, please note that the use of "exit()" may be unreliable, especially as scripts get fat. You will probably find it best to use the "return", although it has different semantics.

  • Management of concurrency in Oracle Service Bus11g

    Hello

    I'm looking for how to manage concurrency in the OSB.

    Scenario: + I have a service proxy which listens to MQ and whenever a message is picked up, it is referred to the service READProxy and followed by the service of CREATEProxy or UPDATEProxy. +

    However, the message rate is ~ 1000 per hour. So there was a chance of two way or multiple messages can be picked up by the LISTENERProxy service to different servers managed at the same time.

    Could someone help me how to make sure that the service of READProxy reads good data taking into account the nature of the competition?

    Thank you

    Published by: 1002815 on May 2, 2013 10:50

    Could you please explain in more detail how we can achieve this with MS PL/SQL.

    Nothing special. Just set up your selection, update, insert the logic in an SP and that call SP of SOA using the DB adapter. "SELECT FOR UPDATE" blocking Oracle DB function in your SELECT statement allows to lock the lines.
    Make sure you do not use the controls of the transactions (commit and rollback) in your SP and XA datasource lets call him that all operations are performed in a single global transaction. Just trying to get help with someone who knows the PL/SQL in your org or go through some tutorials on the internet.

    If makes us SP, will have to make changes in calls DB already implemented, right?

    Yes, instead of having three calls DML to DB, you will eventually have a single call and that too to the stored procedure.

    Kind regards
    Anuj

  • OS and Oracle block size block size

    [Condition] If the size of the block of BONE [512 b - 64K] is greater than the size of block Oracle [2K - 16K]

    Assume: BONES Block Size: 32K and Oracle block size: 8K

    Quebec: One-to-many relationship will always be true? or block Oracle will use 8K to 32 K, and the rest will be unused? or it will return the error at the time of the creation of the data file?

    This will challenge the relationship "one to many".

    Leader: Oracle logical and physical storage diagram.svg - Wikimedia Commons

    Refer to the basis of the diagram.

    " --------------------< "="" show's="" one="" to="" many="" relation.="" one="" x="" can="" contain="" many="">

    ">-------------------<" show's="" many="" to="" many"="" i.e="" many="" x="" can="" contain="" many="">

    You don't seem to be read or understand what everyone says.

    There is NO such "one to many" relationship. Like I said above

    There is no 'validation of one to many '.

    1. the operating system uses a given block size

    2. you choose an Oracle block size

    All these "one to many" is just the result of the choices you made in #2 above. There isn't any 'validation' that occur.

    This likely diagram shows this relationship based on the recommendation of Oracle to select a block size that is a multiple of the block size of OS. If you do that this diagram will NOT reflect the case of NORMAL use.

    You can't believe everything you see on the internet. Articles/diagrams and others are often from unknown or reliable sources.

    2.

    'Validation' is not any process.

    I just wanted to write the Validation of the theory, the relationship.

    Re-read what I just said again above.

    There is NO validation. There is NO theory of validation.

    All there is is the reality of the block size, you choose and the reality of the OS block size you use. Any relationship between these two values is just a reflection of these two values.

    If you choose two different values, they have a completely different relationship to each other.

    Oracle works with blocks of the Oracle. The operating system works with the BONE blocks. Oracle does not care really what size a block of BONE is in connection with an Oracle block.

Maybe you are looking for

  • Satellite C660-108 - Windows XP Home Edition does not install

    I try to install Windows XP Home Edition on a Toshiba Satellite C660-108, without success. I changed the BIOS disk in "Compatibility" mode (what is the same thing as "Legacy IDE"?) by following the instructions on a Yahoo Answers question on the same

  • Does make sense to upgrade to improve CPU E4500?

    Just more curious than what anyone whether or not it makes sense to upgrade the E4500 processor to something better in my HP Compaq DC7800 minitour. I just noticed there are a lot of new processors socket 775 as my E4500 processor, which is 2.2 Ghz,

  • HP Laserjet 1022 and Win7

    Hi all - hope there's some feeling Win7 sharing experts here. HP have updated their drivers for Windows 7 (32 & 64-bit). I run the desktop computer with Windows 7 64 bit with the connected 1022. The laptop is running Windows 7 32 bit. Everything prin

  • Question of free Windows 7 upgrade program

    Hello Lenovo community, I need help for an old problem I have with the Windows 7 free upgrade program. I have not yet been issued my Windows 7 disc. Could someone please redirect me to a link where I can present my problem to the Department in charge

  • OptiPlex GX620 - Pentium D 945 question

    Okay, so I refurbish an OptiPlex GX620 and I did a lot research on a cheap bu effective video card, as well as a cheap processor replacement. Now, I know that the Pentium D 945 will work with the GX620. Is that what I'm trying to understand, if I had