ALL_PART_KEY_COLUMNS shows a wrong result in the presence of two indices the

Applies to Oracle 11.2.0.3 64-bit running on Oracle Linux.

See the example below, the partitioned table T1 is created using two indices, which is used as PK.

CREATE TABLE T1

(

DATE DATETIME,

ORDERID NUMBER (12)

)

PARTITION BY RANGE (DATETIME)

INTERVAL (NUMTODSINTERVAL (1, 'DAY'))

(

PARTITION P1 VALUES LESS THAN (TO_DATE ('2015-01-01', 'YYYY-MM-DD'))

);

CREATE INDEXES ON T1 T1_IX1

(ORDERID)

LOCAL (PARTITION P1);

CREATE A UNIQUE T1_PK ON T1 INDEX

(DATETIME, ORDERID)

LOCAL (PARTITION P1);

ALTER TABLE T1 ADD)

CONSTRAINT T1_PK

KEY ELEMENTARY SCHOOL (DATETIME, ORDERID)

WITH THE HELP OF INDEX LOCAL ENABLE);

Now if ask us ALL_PART_KEY_COLUMNS to discover objects that use DATETIME as a partitioning column, both indexes appears:

Select NAME, OBJECT_TYPE, COLUMN_NAME from ALL_PART_KEY_COLUMNS where COLUMN_NAME = 'DATETIME' AND NAME LIKE '% T1;

NAMEOBJECT_TYPECOLUMN_NAME
T1TABLEDATETIME
T1_IX1INDEXDATETIME
T1_PKINDEXDATETIME

I think that T1_IX1 should not appear in a result of the above query. Is this a bug or feature?

Applies to Oracle 11.2.0.3 64-bit running on Oracle Linux.

See the example below, the partitioned table T1 is created using two indices, which is used as PK.

CREATE INDEXES ON T1 T1_IX1

(ORDERID)

LOCAL (PARTITION P1);

Now if ask us ALL_PART_KEY_COLUMNS to discover objects that use DATETIME as a partitioning column, both indexes appears:

Select NAME, OBJECT_TYPE, COLUMN_NAME from ALL_PART_KEY_COLUMNS where COLUMN_NAME = 'DATETIME' AND NAME LIKE '% T1;

NAME OBJECT_TYPE COLUMN_NAME
T1 TABLE DATETIME
T1_IX1 INDEX DATETIME
T1_PK INDEX DATETIME

I think that T1_IX1 should not appear in a result of the above query. Is this a bug or feature?

It is a REQUIREMENT!

You have specified a partitioned index ROOM (see code above). then the index will be partitioned on the same or the columns as the table.

What is this column? DATETIME, of course.

See the CREATE INDEX statement to local_partitioned_index API documentation

http://docs.Oracle.com/CD/B28359_01/server.111/b28286/statements_5011.htm#i2135151

local_partitioned_index

The local_partitioned_index clauses allow you to specify that the index is partitioned on the same columns, with the same number of partitions and delimits the same partition as table . Oracle database automatically maintains local index partitioning the underlying table is repartitionnée.

When you create a partitioned index, you must indicate to Oracle what columns you want to partition the index on.

You have chosen to partition of the index on the same columns that the table is partitioned on.

Which columns do you think index will be partitioned on? Post your answer.

Tags: Database

Similar Questions

  • Installation showing latest wrong version in the registry

    I installed the latested page of distribution of flash player install_flash_player_11_active_x.msi.  The version on the computer that I installed was reported as 11.3.300.270.  After installation, if I went to http://www.adobe.com/software/flash/about/ it shows I 11.4.402.278; however, reports the DisplayVersion in the registry under 11.4.402.267 - sounds to me like this entry is not updated during the last generation.

    It is on a Windows 7 pro 64-bit machine.

    You are right.  We missed this one and will be correct in our next release.

    http://forums.Adobe.com/message/4711264#4711264

  • Transform a slide with interaction of objects (hide/show) as a result of the quiz?

    I have a slide with some interactions.  The user will click Yes/No and will reveal an object.  This turns into a quiz - or at least be the subject of a follow-up?

    Thank you!

    Jay

    12-9-2013 11-49-03 AM.png

    Each interactive object can have a fixed score (see reports accordion). All marked objects will be visible in the Panel Advanced Interaction (F9) and the total score as well. I think that you will have to implement advanced certain actions to be sure to have the correct score. I've been blogging a lot about custom questions.

  • take the cos(pi/2) shows the wrong result in swift

    take the cos(pi/2) shows the wrong result in swift but when I take the sin(pi/2) it shows the correct result.

    I'm messing around with math to swift before that I use it in my application but I'm having a problem to calculate the correct results with cos at 90 degrees, pi/2 radians and 270 degrees, 3Pi/2 radians.

    the results I get for cos(pi/2) are 6.123233995736766e - 17 when I know that it must be equal to zero...

    the same thing happens as well with the seizure of the sin (pi), sin (0), the sin (2 pi) and so on.

    6th-17 is zero! After all, you didn't feed it pi, but an approximation.

    Welcome to floating point!

    "The floating-point operations is like moving a lot of sand. "Whenever you move one you lose a bit of sand and pick up a little dirt".

    Kernigham and Plauger

  • showing the result of the wrong exit

    Dear all,

    I'm just surprised when I run it under instruction using TOAD.
    The database version is 'Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production'

    Select employee_number
    of per_all_people_f
    where employee_number like '% _1 '.

    Shows the result of the output:
    Employee_number
    00040_1
    001
    00176_1
    01371

    I do not understand why the line '001' and '01371' also show. What bugs database for 11 g?
    Appreciate your help.

    Best regards

    Edwin

    Since the character model you used average

    % = Any pattern
    _ = any character

    the output is correct.

    You try to find lines with underscore in the data?

  • I am a beginner using Muse. Google shows all pages menu in the search results and all texts on these pages. How to just display the home page?

    I am a beginner using Muse. Google shows all pages menu in the search results and all texts on these pages. How to just display the home page?

    Thank you. I thought I created my Muse wrong site.

  • How can I get the TestStand splash screen to not show up when I call the results treatment Utility offline?

    So I call the Offline processing Utility (ORPU) a not executable call results in a plugin to perform a personalised treatment in another configuration.  Everything works fine, including having run reduced (mostly hidden) by using the option/tray.  When he called, the TestStand splash screen appears (certainly is not a show-stopper but it's confusing from the point of view of the user).

    Is it possible that I can get this start screen to not appear when calling the ORPU?  I noticed in the help, mention is made of the use of the callback file, and I wonder if someone has successfully used this to avoid the dialog box or other behaviors.  I would like more info on how it works, but it doesn't seem to be a vast detail on this in the help, and I'm not also find me useful examples.

    The source of the Offline utility treatment results is included with TestStand and can be changed.

    The ORPU source is located under "Components\Models\TestStandModels\Offline utility treatment results"

    From the source, you can see that there is no flag that allows you to hide the splash screen (except for / I leave, but that it will also close the ORPU!); However, you can easily change the ORPU so it does not show the start screen by removing the following lines in \Components\Models\TestStandModels\Offline Results Processing Utility\OfflineResultsProcessingUtility\MainForm.cs

    If (! data.) Quit smoking)
    splashScreenForm = new SplashScreen (mEngine, false);

    Regarding the flags without papers, there are not really many flags undocumented in the ORPU (even once, you can see them in the source), and undocumented flags have very specific use cases (open files from shell and NEITHER internal regression tests).

    A (non-official) complete list of indicators ORPU from 2014 TS:

    /?
    Shows help

    / tray
    Starts the ORPU in the status bar

    / exit-when-done
    Exits when all files are made

    / I'm leaving
    Leave immediately

    /process - files - Missing - Data
    Treats the files even if they lack of data

    / which-process-files-Missing-Data
    Do not process files that are missing data, show only a mistake (it is the default behavior).

    / Process-All-Profiles
    Start all profiles

    / Process-No.-Profiles
    Don't start any profile

    / Process-Profiles
    Treat the profiles specified in the following arguments

    / process-files
    Add the files specified for the specified profile

    / log - level

    Sets the logging level for the newspaper ORPU, all of the messages above, the specified log level is saved.

    /ShellOpen
    It is an internal indicator, it is used to treat applications for the shell (for example, after a double click on a tsr in Windows Explorer). Do not use this indicator.

    / non-interactive
    It is an internal indicator used for the test. Do not use this indicator.

    Please note that NEITHER does not support appellant flags undocumented and that NEITHER is not guaranteeing backward compatibility of these flags undocumented and they could change at any time, without warning.

    For a more detailed explanation of the working of each option, refer to the Arguments of the command line Utility using TestStand treatment results offline.

    Hope this helps,

    Francisco

  • icons not showing in the notification area. a disable the UnP and SSD without result. on the Properties tab to hide the icons inactive icon is grayed out

    My icons in the notification area continued to show. I disabled the UnP and SSDP nothing helps. The box to Hide inactive icons on the Properties tab is grayed out so I can't hide the first icon.  Any ideas?

    first of all, what is the brand and model of the pc?

    current antivirus?

    Operating system and service pack?

    Make sure that your system is clean:

    Download, install, update and scan with these full free malware detection programs:

    Malwarebytes (MMFA): http://www.malwarebytes.org/products/malwarebytes_free

    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

    http://WindowsXP.MVPs.org/TrayNotify.htm

    Read more top

    Finally, after back with the results of the analyses and the answers to the above questions, please.

  • ? Adobe digital editions4.5:check:activation error; Book downloaded from kobo creates a link url of ASMC. try to open it in dig.edit. results in the activation error; List IDS allowed adobe to dig. Edit shows the same email that you used for download Kobo

    ? Adobe digital editions4.5:check:activation error; Book downloaded from kobo creates a link url of ASMC. try to open it in dig.edit. results in the activation error; List IDS allowed adobe to dig. Edit shows the same email that you used for download Kobo.

    The operating system that you used?

  • How to return results to the job application?

    Hello

    The application that I must be able to perform procedures and works asynchronously (run a stored procedure and do not wait the results.) A different thread will show the results at a later date).

    What I came up with is a mechanism that distributes the jobs by running the desired procedures and signals the application thread waiting on a performance of the work by using dbms_alert.signal. The application in his spare time reads the results of the table and then employment has created and he falls when it is done.

    The problem is I have many different methods, each do very different logic and you end up with another result/slider/record-set (different columns, different values), I need to be able to read the application after receiving the signal.

    I expect a statement as if by magic 'create table from sys_refcursor', but there seems to be no such thing (disappointment).
    I have read many things on the table and features in the pipeline, but the problem is that for each procedure, I set a different type for the return clause, and I was expecting something more 'generic '. I don't want the procedures to make the table of results to create themselves (unless it's my only option)

    You have a way to turn a sys_refcursor in a table?
    I am that face the wrong way?

    Any help would be appreciated!
    Thank you.
    -Mor

    Pyrocks wrote:

    I have to move the cursor to return - I need to return the result.

    How to get to this result? With the help of a select SQL statement.

    What does Oracle with this SQL statement? Analyze and store them as a cursor.

    All SQLs are analyzed as cursors.

    Why not create a table (temporary use), called "temp_result_n" where n is a number.

    Not a good idea to dynamically create tables - that need to use dynamic SQL. And code management and control to clean later.

    It's ugly. The process will fail and temporary tables created not get cleaned. Dynamic SQL can hit any runtime errors. Etc.

    This is a much more robust approach to use a static data model - one that does not punish dynamic to use code.

    Can you please explain why your way is better than using tables?

    I'm all for the use of the tables. The basic concept I've tried to explain, is that the background process must happen something to the process parent to tell him how and where to get the results, he has created.

    The more flexible method would be to pass a SQL statement - as the background process will know exactly what the parent needs to access these results run SQL.

    The parent gets this SQL statement (with bind variable), run it (which creates a slider) and process the results.

    Another approach is more static - have the parent tell the background process in which table to create its results. But it is less flexible.

    Another approach, you can use use the primary key of the data entity dealing with the background has to process. For example, the caller can give the background process an invoice number and when you said it's done, the appellant knows what Bill has been processed.

    So, there are a number of ways that the parent process and the child process of background can pass data between them. The most generic of these would be for the child to pass a SQL Select to the parent of the parent to use to access the result set created by the child.

    But it will be a too complex approach if the parent simply needs to create children for an invoice and save the invoice number with the id of child's work. When the parent is the signal that the child is done, it looks simply invoice number that has now been addressed by the child.

    There is no single best approach for this. It depends on your needs and what parents and children must do and how this approach to parallel processing is to increase the performance and scalability to provide.

    BTW,
    I would be very grateful if you could tell me how to translate DBMS_SQL. Column col_type DESC_REC in actual data types (1 = varchar2, 12 = date - where can I find the rest?)

    Take a look at the table in Pro * PL/1 to the precompilateurs Oracle® supplement Guide guide. The same table is probably repeated n other pre-compiler and OIC guides too.

  • I perform a search, results, find the message I was looking for. How can I find this message in my folder structure and subfolder (relatively) complex?

    Hello
    I use structured system subfolder to keep my organized emails (hundreds and hundreds of folders).
    When I do a search, get the list of results and in this list, I found the email I was after, HOW can I find the message? In other words, how can I open the folder that contains this particular email?
    Thank you in advance for your time and effort.

    Right click on a folder, search for Messages, and then click 'Search subfolders', then enter the selection criteria, search, search for a result in the lower pane, then 'open folder '. The message is opened in the Message pane and the containing folder is highlighted in the folders pane.

    It isn't a global search and location does not show the full folder path, but it is another option. Note that the location column can also be displayed in the message search window.

  • Why google search results show me useless result. Is this problem of cookies?

    When I search on google every time for the exact keyword to enter a site which I am looking for there show me on the first page of google, but the site is totally new and how google can show me the site that has no rank. Is this problem of cookies? I delete cookies several times of Mozilla, but steel search results are the same. And do not find in the search engine page ranking. What should do?

    Can anyone give me the solution how to clean and fix this research?
    Thank you
    Hihi

    [Link Spam deleted by the moderator. Please read the guidelines and rules of the Forum, thank you.]

    Google sets several cookies, however, if you delete and you are not signed in, then you get results for your browser, language, geographic location, etc. and not for you personally.

    Google has a tool that shows you where your page comes up in a search? I remember seeing some thing like that in the webmaster tools some time ago, at least I think that's where he was, or perhaps analytical.

  • Google search results on the page with "(function(){}) (;(function(){})()');"

    Installed FF9.0.1. I type a word in the google search bar and results. When I select 'shopping' from the left navigation, it flashes the results and then refreshes instantly to a white page with this in mind: (function() {}) ();(function(){})();

    The same thing happens if I click on 'News' and 'Videos' of the NAV. However, if I click on 'Images' and 'Maps' it works fine and load the corresponding Google search results. The url below is a search for 'test '.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • When you use the search bar, it is possible to get results of the search in a new tab?

    In the old Google toolbar, it was possible to display the search results in a new tab, Google toolbar is compatible with Firefox 7, so I have to use the Firefox search bar. However, he always gets results the research in the current tab. Can this be changed?

    Yes. Open a new tab and type or paste Subject: config in the address bar, press enter and press ENTER again to override the warning. Then stick browser.search.openintab in the filter area that shows, and then double-click the browser.search.openintab to activate (it will switch to "BOLD").

    If you had rather an add-on simply do the above for you and add a menu option for it, try this:
    https://addons.Mozilla.org/firefox/addon/searchOnTab/

    You can also type a search in the search bar and press on alt + enter in instead of just enter to open your search in a new tab.

  • On Google, Ffox 3.6.12 shows only 10 results even when I specify 100; Mac G4 10.4.11. other browsers show 100 without problem.

    On my Mac G4 two-way to 1.25 GHz Power PC with OS X 10.4.11 and Firefox 3.6.12, when I opened Google and specify 100 results like this...

    http://www.Google.com/advanced_search?hl=en & num = 100

    .. .it always shows just 10 results. While Opera and Safari (I don't use Internet Extorter) show 100 results no problem to use this URL.

    Problem was occurring at least since Firefox 3.6.9 if I remember correctly. Not sure if it was going on before that.

    Google has recently made a few changes on the site to Google search with the addition of instant search and who made the adjustment of the number of results in the settings of Google to stop working.

    If Instant Search is enabled in the settings of Google search page (link at the top right) then you get only 10 results.

    You must disable Instant Search and reload the result page, and then set the number of results to your preferred choice.

    It may not work if you change both at the same time.

    There is a link directly to the right of the Google search box on the Google results page.

    It's a button with a drop-down list: moment is On / Off.

    There is also a radio check box in the page settings of Google, which has replaced the previously used Suggestions.

Maybe you are looking for

  • Path of the most recent added file using applescript

    I use appleScript Automator to download new pictures on my Instagram. The script trigger when the new file is added to a folder "updates". Open the app (work) activate an application "Uploader HD for Instagram" delay 0.5 Tell application "system even

  • Re: Satellite 2455-S3001 - LCD no longer lights

    I have a Satellite 2455-S3001 part #PS245U-074966. The lcd screen no longer lights upward. I can look at the screen and see the screen works (with a flashlight, I can see images on the screen). I want to solve this problem, but have never worked on d

  • inialization vi produces scalar and 1 d vector input

    I'm currently building a suppressor of adaptive noise (LMS type 11) as stated in a document of OR. I have a problem with the dot product vi. An input vector is an empty array, and of course the result is NaN. Its in a feedback loop, so I think that t

  • Touchpad tapping does not

    Synaptic Lux pad V7.4 on PS/2 Port. Cursor works but listen and L.H click does not work. Everything works ok with an external USB mouse. Program of re-installed driver for above but same problem.  Restore points considered minor at the earliest witho

  • How to transfer music from my PC to my flash drive in windows 10

    How to transfer music from my PC to my flash drive?