Unlike 2 operations

Hi all


I'm trying to lead both to an explanation as to why the sqls give the same result?


1. SELECT TO_NUMBER (TO_CHAR (SYSDATE, "YYYY")) + 1

FROM DUAL;


This adds a 1 to the number and results in 2016


2. SELECT TO_NUMBER (TO_CHAR (SYSDATE, 'YYYY') + 1).

FROM DUAL;


Also, this gives the same result although it seems to add 1 to the character.

Why oracle does not allow to add the number of a data format character?


Thanks in advance



+ 1 in the second case does not add a 1. The operator of string concatenation in Oracle is |, not +.

Thus, Oracle performs an implicit data conversion and converts to_char (sysdate, 'YYYY') into a number implicitly added and then since to_number takes a character argument, implicitly converts this number back into a string and calls to_number on it.

In other words, the second option is terrible.

Tags: Database

Similar Questions

  • Portege R600 - 13 X - how to reinstall the operating system on the new HARD drive?

    Hello

    I inherited a Portege R600 - 13 X of my colleague, who hit and killed the hard drive. I installed a new hard drive, but you don't have operating system installation diskettes as he said that the computer has not come with any. To make things even more difficult, I believe that the optical drive may not work. My old R500 had a dead optical drive and after I replaced it (he has not yet worked) I was told it is perhaps something to do with the ribbon cable, which piggy back off the coast of the SD card reader, then to the motherboard.

    Anyway, is it possible for me to install Win 7 Professional (I have the original windows key) from a USB flash drive? Or y at - it a specific OS recovery/reinstallation disk that I can download Toshiba?

    Any advice would be very welcome
    Thank you
    NJ

    I have a Portege R600, and he has been a formidable workaholic, although now showing its age with newer software.

    I think these machines came with pre-installed Vista and your friend must have created a set of recovery discs when they got off the machine.

    Toshiba did release a drive to upgrade when Windows 7 is released which was available to the buyer within the free upgrade period you. You may be able to find a disk, but you will need the Win7 license to go with it.

    If not, your only option is likely to be to buy a disk and license. Of course, you can find the specific Toshiba drivers are missing. If you think about it, it's extremely unlikely that you will be able to locate what is essentially a free Windows 7 download install disc.

    Without an optical drive, you need to use an external USB drive and the BIOS to boot from that first force.

    I hope that you have succeeded.

    Andrew

  • Help to resume the operating system pre-installed with regard

    I lost my pre-installed operating system 'Windows 8 Pro' & now I have no way to recover it. My laptop is under warranty and I bought it in January 2014 to Saudi Arabia. What should I do to recover my operating system pre-installed? HP Saudi Arabia can provide me free recovery disk, if I managed to ship I have relatives there for the reception.

    You have a choice of where to get a set of recovery disks. The cost is usually about $30,00 USD

    Order a HP recovery disk

    It is unlikely that you will be able to get a recovery disk free of charge. A choice of methods to create recovery recovery disk series or usb media has been presented to you when you set up the laptop and unfortunately you chose to not use it.

  • First AID (10.11): "impossible to turn up the volume for the repair, the operation failed."

    Hello everyone

    I think I'm in trouble here...

    After I did a clean install of 10.11 two weeks ago, my Mac Pro 3.1 (2008) began to take a long time to boot up to the desktop. The actual load of the operating system (with the progress bar) is fast, but it takes a while (minutes) to enter my password until the computer is accessible at the level of the office. I have almost nothing the autostart value in Sys Prefs users.

    The startup disk is two SSDs over a Sonnet Tempo Pro and the folder of the user is on a separate HARD disk.

    Because the slow pace is the point where to enter the password, I thought that there could be a problem with the folder of the user HARD drive. I had my user folder on a HDD separated for the last several iterations OS X without problem, but in the fall, I needed more space and bought two new 3 TB drives (one for the clone SuperDuper). They ran very well in the Mavericks.

    When I run THE first AID on the volume that contains the folder of the user, I get the following error (it does not appear if I run first aid on the HARD drive itself):

    "First aid process has failed. Save if possible data on this volume. "The details section of the dialog box reads:

    "Update support partition for the volume to the need

    Impossible to disassemble for repair volume

    Operation failed... »

    Worrying, I get the same error if I run first aid on the volume of the other 3 TB drive that holds the user folder SuperDuper clone.

    I suppose that the two new 3 TB drives may be failing at the same time, but it seems a bit unlikely. Does anyone have an idea of what other causes, there could be for these errors?

    I would be very grateful for any help, as this is my main machine. Thank you in advance,

    EDIT: I realize I should have posted this in the OS X El Cap - my apologies for this forum. Also, I find this recent thread that seems to suggest that there is a bug in Dug, I get the same errors when I run first aid on my other two internal drives.

    Philippe

    BTW, I tried to start in safe mode, but that has not changed anything. Also, I created a test (with the record on the striped SSD) account. Representing loads very fast after that I entered the password.

    Thanks in advance again

    Philippe

  • What operating systems will support 32 GB or even 64 GB of RAM

    I am looking to upgrade my computer and going through the parts I noticed that my base and my motherboard has space for up to 64 GB of RAM, I know there are many answers to this but a lot of them I don't understand. I would like if possible a list of operating systems that support up to 64 GB of RAM.

    On Sunday, October 5, 2014 22:33:51 + 0000, sambulmer wrote:

    By core I mean cpu, I simply referring to it as the core.

    Okay, I understand, but let me warn to be careful; If you are using
    no standard nomenclature - names that others have not - you are likely to
    confuse those who try to help you. I didn't know you meant 'CPU '.
    (which, moreover, is synonymous of "* central * processing unit"; there are)
    No "core" of this expression).

    and the motherboard, I'm looking at is maufactured by asus and can be found here: http://m.novatech.co.uk/products/components/motherboards/intelsocket2011/x79chipset/

    Yes, I see that it does not support 64 GB.

    I know its bad unlikely hoghly never need 64 gb but I want the best and want to be equipped for any situation, it's in the game, but it's also for game design.

    Your choice of course, but even if at some point in the future, 64GB
    will be necessary, it is also likely that at that time, almost everything
    otherwise the computer will be obsolete and current versions of Windows
    you won't, either.

    If it were me, I wouldn't buy more 16GB now (even it's a lot, and)
    It is highly unlikely that you will need that much). You can always add
    later if you think you need.

  • This operation has been cancelled due to restrictions on your computer. Please contact your system administrator.

    Title: original operation canceled
    When I start right click then properties, this happens "this operation has been cancelled due to restrictions on your computer. Please contact your system administrator. "Same thing happens when I click on the taskbar and Start Menu. Also, there are very few programs listed in the start menu. Can someone find it?

    If you see things like this:

    You do not have sufficient security privileges to restore your system.
    The System Restore tab is missing from the my computer properties.
    System Restore has been disabled by group policy.  To turn on system restore, contact your domain administrator.
    The System Restore tab is available, but the turn off System Restore (disabled by Group Policy) box is grayed out.
    The task manager has been disabled by your system administrator.
    The registry editor has been disabled by your system administrator.
    The task manager has been disabled by group policy.
    The registry editor has been disabled by group policy.
    The command prompt has been disabled by your administrator.  Press a key to continue...
    The operation has been cancelled due to restrictions in effect on this computer.  Please contact your system administrator.
    The "Run" option is missing from the start menu.
    The option "Log off."... ' is missing from the Start Menu.

    The usual advice are something in the sense of "something has been disabled in the group policy...". ", and it is probably true that something has been disabled, but you know what something is and what it takes to do about it.

    If you are using XP Home Edition, you will get away with advice to use the Group Policy Editor, since it has no Group Policy Editor in XP Home and only
    really does not tell you where to look in group policy, even if you run the Group Policy Editor.

    You need a complete solution that works for all versions of XP and requires no hunting around in the Group Policy Editor or registry to find where things are that have been disabled.

    Unless you have disabled these things on purpose, chances are good that your system has a malware infection.  The malware knows what tools you use to try to find and remove, for the malware disables the things you are more likely to consume and prevents them from running if you can't find the malware and remove it.

    If your system has this kind of affliction, all malicious software tools you currently use or have used failed to protect your system so that you can expand your horizons malware detection and prevention to prevent these kinds of afflictions in the first place.

    The malware will be happy you trick into thinking that you need to so something drastic to fix your system - as a facility repair, system restore point or a total reinstallation of XP.  This is what it would be like you, but these measures are not necessary.

    You must solve the immediate problem of the tools does not, then scan your system for malware when you are finished.

    No matter what kind of malware you've used analytical tools, they are unlikely to solve this problem, because they cannot tell if the changes made to your system have been on purpose (you or an administrator who makes them) or some malware changed them, so the analysis tools will let these things alone (it's usually a good thing).

    If your system is afflicted in this way, there are probably other things that also do not work - like the registry editor, System Restore and the command prompt, so fix them all at once even if you have not discovered they are broken again.

    These commands from registry removes the registry entries that are stop opening programs.  Although the registry entries do not exist, these commands are safe to run and will work for all versions of XP.

    Before making any changes to your registry, back up the registry with this free and popular tool:

    http://www.SnapFiles.com/get/ERUNT.html

    Open Notepad to create a new text file:

    Click Start, run and enter in the box:

    notebook

    Click OK to open a new Notepad file.

    Copy and paste the following lines of text into the new Notepad file.

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
    "DisableTaskMgr" = -.
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
    "DisableRegistryTools" = -.
    [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System]
    "DisableCMD" = -.
    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem\\\]
    "DisableTaskMgr" = -.
    [HKEY_USERS\.default\Software\Microsoft\Windows\CurrentVersion\Policies\System]
    "DisableTaskMgr" = -.
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
    "DisableCAD" = DWORD: 00000000
    [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\SystemRestore]
    "DisableConfig" = -.
    [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\SystemRestore]
    "DisableSR" = -.
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoRun" = -.
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoRun" = -.
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoClose" = -.
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoClose" = -.
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoSetTaskbar" = -.

    Save the new text file with extension .reg on your desktop or somewhere you can remember with a name you can remember, something like:

    enableit.reg

    After you save the file, close Notepad.

    Locate the file enableit.reg on your desktop and double-click it.

    Alternatively, you can right-click on the enableit.reg file, choose open with... and select the registry editor.

    Answer in the affirmative to the question... Are you sure you want to add the information in the registry?

    You should then see a message that information has been registered in the register.

    Reboot your system and test.

    You can delete the enableit.reg file when you are finished.

    If the registry editor has also been disabled, we first fix (not a problem).

  • Computer cannot start an operating system STOP error message: 0 x 00000024

    Origianal title: computer can not boot the operating system

    Appeared in my computer: STOP: 0 x 00000024 (0 X 00190203, 0X82F4D5D0, 0x00000000

    What is happen?

    Unfortunately, we know absolutely nothing about your system.

    This is because the MS Answers forum does not prompt for any information system when a new question is asked.  Not knowing the basic information a problem prolongs the frustration and the agony of these issues.

    Method 1 - last good known Configuration will not help you (this is not what is LKGC for).
    Method 2 - a good start but only if you have already installed XP Recovery Console (extremely unlikely on this planet) or have a genuine XP installation CD bootable (most people don't).

    It makes sounds like you need to run chkdsk /r from the XP Recovery Console to repair your (NTFS) file system, but you will have to start on something for this.

    The question was preceded by a loss of power, aborted reboot or abnormal termination? (This includes the plug pulling, buttons power and removing the battery).

    These can cause corruption in the file system that must be fixed before you do anything else.

    If none of these events occurred (or even if they have not taken place), you must verify the integrity of your file system before anything else (especially "try" things).

    Not knowing anything about your system, I would say this:

    Use the XP Recovery Console to check the file system on your HARD drive and fix the problems and then try to start your system - this may be all you need to do.  Or, you are welcome to just start trying things that might work.

    Boot into the Recovery Console Windows using an XP bootable installation CD.

    If you have no XP bootable media (or aren't sure you have) create a bootable XP Recovery CD of Console and don't forget (no support for XP not necessary).

    This is not the same as recovery disks that might have come with the acquisition of the system store.

    You can make a bootable Recovery Console CD by downloading an ISO file and burn it to a CD.

    The ISO bootable image file you need to download is called:

    xp_rec_con. ISO

    Download the ISO from here:

    http://www.mediafire.com/?ueyyzfymmig

    Use a new CD and this simple and free program to burn your ISO file and create your bootable CD:

    http://www.ImgBurn.com/

    When you install ImgBurn, DO NOT install the Ask toolbar.

    Here are some instructions for ImgBurn:

    http://Forum.ImgBurn.com/index.php?showtopic=61

    It would be a good idea to test your bootable CD on a computer running.

    You may need to adjust the computer BIOS settings to use the CD-ROM drive as the first device to boot instead of the hard drive.  These adjustments are made before Windows tries to load.  If you miss it, you will need to restart the system again.

    When you start on the CD, follow the instructions:

    Press any key to boot from CD...

    Installing Windows... going to pronounce.

    Press 'R' to enter the Recovery Console.

    Select the installation that you want to access (usually 1: C:\WINDOWS)

    You may be asked to enter the password (usually empty).

    You should be in the folder C:\WINDOWS.  It's the same as the

    C:\Windows folder that you see in Solution Explorer.

    The Recovery Console allows base as file commands: copy, rename, replace, delete, chkdsk, fixboot, fixmbr, cd, etc.

    For a list of the commands in the Recovery Console, type help at the prompt of commands or read on here XP Recovery Console:

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/recovery_console_cmds.mspx?mfr=true

    A good idea before you start things must first verify the integrity of your file system by using the chkdsk command.

    In the command prompt window, run the chkdsk command on the drive where Windows is installed to try to fix any problems on the afflicted player.

    Running chkdsk is fine, even if he finds no problem.  It won't hurt anything to run it.

    Assuming your boot drive is C, run the following command:

    CHKDSK C: /r

    Let chkdsk finish to correct the problems, he could find.

    It may take a long time for chkdsk complete or they seem to be "stuck".  Be patient.  If the HARD drive led blinks always, chkdsk is something.  Keep an eye on the amount of the percentage to be sure that it is still making progress.  It may even seem to go back sometime.

    You must run chkdsk/r again until it finds no error to correct.

    Remove the CD, and then type "exit" to exit the RC and restart the computer.

    You have not to set the BIOS to boot the disk HARD since the CD won't be.

  • I get a message "Cannot perform this operation because the default mail client is not properly installed". What should I do?

    I get a message "Cannot perform this operation because the default mail client is not properly installed".  What should I do?

    Unlike Windows XP & Vista, Win7 does not have a default email Client. [What were thinking?]

    You will need to install a (e.g. MS Outlook;) Windows Live Mail; Thunderbird) , and then set it as a default for mail in CUSTOM (<>) article in Set Program Access and defaults of the computer , then restart your computer before any function send to or MailTo will become available.

    In this forum, you will find some support for Outlook: http://answers.microsoft.com/en-us/office/forum/outlook

    Note: Office 2010 Home and Student Edition is not include Outlook.

  • How can I access a journal or a report that lists the results of an operation of Disk Defragmenter?

    How can I access a journal or a report that lists the results of an operation of Disk Defragmenter?

    Windows Defrag is supposed to run silently in the background.
    Unlike XP, it does not offer a newspaper to the user, as far as I understand.

    If you schedule a defrag, you can let it run in the background and forget it.

    Schedule defragmentation
    Start button > Search box, type Task Scheduler > pressenter > invite uac, click on continue or enter the admin password >
    (click on the pointer before) to expand Task Scheduler Library >
    expnad Microsoft >
    Expand Windows >
    Click on Defrag > the middle column, click scheduled d.... >
    right column, click Properties > click triggers tab at the top > click on Edit > select / adjust how to defragment Appendix to be executed, select options >
    at the bottom of the box, place a check on " enable " >
    OK > OK yet > exit the Task Scheduler window.
  • A Windows Explorer copy operation check after copying?

    A Windows Explorer copy operation check after copying?  I know that this should be an easy question to answer and I should already know the answer, but I can't find any info that confirms or not copy files and folders with Windows Explorer checks the copy after copying.

    I want to copy the contents of my old memory stick in my new and I want to make sure that all files and folders have made the transfer before their deletion on the old stick.

    I guess I could use the command line COPY or XCOPY between devices with the /V to check the switch.  I don't see that ROBOCOPY has a switch to check.

    Suggestions?

    There is no real way to verify with certainty that copies has been made correctly and that the copied files are all accessible, guaranteed the same as original, uncorrupted and otherwise to work.  Here is information on the switch/v:http://support.microsoft.com/kb/126457/en-us.  The BACK FC command (from the command prompt) is a better way to comparehttp://www.easydos.com/fc.html (or even the model commandhttp://www.windowsvistauserguide.com/command_line/command_line_comp.htm which is not as good as the FC command but not yet a comparison, but is not yet perfect (and it makes the whole process much longer and requires much more effort).  It is very unlikely that all copied very well - but there is no real control procedures which will ENSURE everything worked properly and that all the files can be opened and worked with.  The only way to be absolutely sure is actually check each file individually (and again, the new stick could develop the corruption of its own and damage one or more of the files even after you have confirmed it - it doesn't happen often, but it happens).  It's the nature of computers and storage devices.  If you are concerned, and then also copy the old stick on your computer in a special folder (I do with mine, just in case and I also back up this folder so it is even more protected).  Copies of chances of two (or three) is damaged or having problems are even more remote, and you have a backup (or two) in case something happens on the key (as you drop down a sewer or it gets crushed by a car or is exposed to a strong magnetic field that he wipes clean you'll just lose it or any number of other possible problems).

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Two operating systems; Windows 7 Professional with an option of Windows 10

    Two operating systems;  Windows 7 Professional with an option of Windows 10.

    As a Neolithic Windows, I'm comfortable with Win 7 like all my old XP applications have continued to work with Win 7.  Now I want to try to get around the current Win 10 operating system through experience to see what Win 10 offers me in every sense of the use practable. I don't want to lose the existing installation of Win7 which works well, I think to a new PC.

    I need a route which can accommodate my learning needs.  I'm open to suggestions that might involve touchscreen options to win 10 OS while keeping the mouse driven navigation for Win 7 applications.  Clues on a postcard!

    10 dual-boot Windows, you will need to buy retail (it's only free if you use it to replace Windows 7, not to start the long side).

    So first, buy an installation Windows 10 CD/USB stick to your favorite tech store and install it as a dual-boot option.

    You will find that there is no dichotomy of the 'touch' vs 'mouse' use Windows 10.  You can use the mouse as you do today in Windows 7: there is literally not a single instance of a hidden mouse-gesture-operated menu, you need to know the secret movement to activate (unlike Windows 8, Windows 10 has been designed so that a user of Windows 7 could jump in without any training).

  • BlackBerry Smartphones AppWorld 'Search' cannot find Google Maps or Opera Mini?

    Think about a feature request, I guess. Currently when you are looking for some of the most common applications such as Google Maps and Opera Mini, you get completely insane results. I don't know if it's the ranking that is broken, or if the application does not only exist, but it is unacceptable.

    RIM - y address!

    And don't tell me "it's not our fault - developers must submit their applications to us." If this is the case currently, RIM should certainly complement these developer comments w / consumer applications.

    Does anyone else have the same experience with other mainstream applications?

    Hello and welcome to the Forums!

    With regard to your hope that RIM will see your message - these forums are a chain of support to users, not a conduct of user-to-RIM. Therefore, it is unlikely they will see what you wrote. However, if you have specific and constructive ideas for them, I heard they accept this by e-mail to [email protected].

    Good luck!

  • 6 of Lightroom on Win 7 32-bit operating system

    I am currently running 4.4 LR on Win 7. Having had a new camera (Panasonic FZ 330) I need to move to 6 LR. I have a 64-bit (Intel i3) processor but a 32-bit Windows 7 operating system. The system requirements on the Web site is ambiguous, so I paid the upgrade and downloaded the installation file. When I ran, I said that it is not compatible with my computer. Apparently I need a 64-bit (unlike LR 4.4) operating system. I seem to have No upgrade path. Does anyone know how I get my money back.

    Thanks for any help.

    I suggest you an upgrade OS, as well, but here's Adobe for information about the return of a product:

    Return, cancel or change an Adobe order

  • Ask the operation slow with large SGA and fast with little CMS

    Hello

    We have a situation where one of the insert is running slow and fast QA in PROD. Both are the same versions of database - Oracle 10.2.0.4 on HP Unix 11.31. To avoid the cause of databases running on another server, we copied from our Production database to the same server where the QA database is running and began with init.ora PROD that has 7 GB 6 GB SGA_TARGET and SGA_MAX_SIZE. For the QA database, SGA_MAX_SIZE is 700 MB and SGA_TARGET is 600 MB. Both are running on the same server, and with the same data. We have refreshed QA with data from PROD. If we start with PROD init.ora QA database, QA also behaves the same way PROD.

    This problem is only with the specific insert. Here is the result of this specific statement tkprof. Can someone please interpret this for me? I am poor in SQL tuning :-( Why the statement behaves ODD with the size of the SGA PROD? Generally, we would think THAT larger SGA should give better performance.

    call the query of disc elapsed to cpu count current lines
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.00       0.00          0          0          0           0
    Run 1 56710.39 56067,75 7343 311186373 0 0
    Fetch        0      0.00       0.00          0          0          0           0
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Total 2 56710.39 56067,76 7343 311186373 0 0

    Chess in the library during parsing cache: 1
    Optimizer mode: CHOOSE
    The analysis of the user id: 27 (TEST)

    Rows Row Source operation
    -------  ---------------------------------------------------
    0 CRDETAIL of SEQUENCE (cr = 0 pr = 0 pw = time 0 = 29 US)
    0 REVIEWS (cr = 0 pr = 0 pw = time 0 = 21 US)
    0 SORT GROUP BY (cr = 0 pr = 0 pw = time 0 = 20 US)
    401 HASH RIGHT SEMI JOIN (cr = 23299915 pr 7343 pw = time = 0 = 93982966 en)
    237 TABLE ACCESS BY INDEX ROWID CR_STRUCTURE_VALUES2 (cr = 96 pr = 0 pw = time 0 = 504 en)
    253 CR_STRUCTURE_VALUES2_PK INDEX RANGE SCAN (cr = 4 pr = 0 pw = time 0 = 278 en)(object id 1467582)
    TABLE ACCESS BY INDEX ROWID CR_COST_REPOSITORY 841 (cr = 23306003 pr 7343 pw = time = 0 = 94546465 en)
    1317368058 NESTED LOOPS (cr = 79721182 pr 7343 pw = time = 0 = 18565176955 en)
    VIEW 26912 (cr = pr 9874 7343 pw = time = 0 = 5269231 en)
    26912 MINUS (cr = pr 9874 7343 pw = time = 0 = 5242317 en)
    27462 SORT UNIQUE (cr = 9627 pr = 7329 pw = time 0 = 5040815 en)
    271564 CR_STRUCTURE_VALUES2 TABLE FULL ACCESS (cr = 9627 pr = 7329 pw = time 0 = 1357961 en)
    568 SORT UNIQUE (cr = 247 pr = 14 pw = time 0 = 43467 US)
    TABLE ACCESS BY INDEX ROWID CR_STRUCTURE_VALUES2 2357 (cr = 247 pr = 14 pw = time 0 = US 14751)
    2357 CR_STRUCTURE_VALUES2_PK INDEX RANGE SCAN (cr = pr 11 = 14 pw = time 0 = 10028)(object id 1467582) US
    INDEX RANGE SCAN CRCR_MN_IX 1317341146 (cr = 79711308 pr = 0 pw = time 0 = 50420511 US)(object id 1469401)


    Implementation plan of lines
    -------  ---------------------------------------------------
    0 THE INSERT STATEMENT MODE: CHOOSE
    SEQUENCE "CRDETAIL" 0 (SEQUENCE)
    0 REVIEWS
    0 TRI (GROUP BY)
    401 HASH JOIN (RIGHT HALF)
    HOW TO ACCESS THE TABLE 237: ANALYSES (BY INDEX ROWID) OF
    "CR_STRUCTURE_VALUES2" (TABLE)
    INDEX 253 MODE: SCANNED (SCAN INTERVAL) OF
    "CR_STRUCTURE_VALUES2_PK" ((UNIQUE) INDEX)
    ACCESS MODE TO THE 841 TABLE: ANALYSIS (BY INDEX ROWID) OF "CR_COST_REPOSITORY" (TABLE)
    1317368058 NESTED LOOPS
    VIEW 26912
    26912 LESS
    27462 SORT (SINGLE)
    TABLE 271564 ACCESS MODE: ANALYZED (FULL) OF
    "CR_STRUCTURE_VALUES2" (TABLE)
    568 (SINGLE) SORT
    HOW TO ACCESS THE TABLE 2357: ANALYSES (BY INDEX ROWID)
    OF "CR_STRUCTURE_VALUES2" (TABLE)
    INDEX 2357 MODE: SCANNED (SCAN INTERVAL) OF
    "CR_STRUCTURE_VALUES2_PK" ((UNIQUE) INDEX)
    MODE 1317341146 INDEX: ANALYSIS (SCAN INTERVAL) OF "CRCR_MN_IX".
    (INDEX)

    ********************************************************************************

    And here is the statement in question:

    INSERT
    INTO cr_allocations_stg
      (
        "ID",
        "COMPANY",
        "GL_ACCOUNT",
        "COST_CENTER",
        "COST_ELEMENT",
        "PROFIT_CENTER",
        "MASTER_ORDER",
        "ORDER_NUMBER",
        " FUNDING_PROJECT",
        "POSTING_ORDER",
        "POSTING_COST_CENTER",
        "ORIG_COST_ELEMENT",
        "ORIG_COST_CENTER",
        "ORIG_PROFIT_CENTER",
        "TRADING_PARTNER",
        "WORK_ORDER_NUMBER",
        "DR_CR_ID",
        "LEDGER_SIGN",
        "QUANTITY",
        "AMOUNT",
        "MONTH_NUMBER",
        "MONTH_PERIOD",
        "GL_JOURNAL_CATEGORY",
        "AMOUNT_TYPE",
        "ALLOCATION_ID",
        "TARGET_CREDIT",
        "CROSS_CHARGE_COMPANY"
      )
    SELECT crdetail.nextval,
      "COMPANY",
      "GL_ACCOUNT",
      "COST_CENTER",
      '5253000',
      "PROFIT_CENTER" ,
      "MASTER_ORDER",
      "ORDER_NUMBER",
      "FUNDING_PROJECT",
      ' ',
      "POSTING_COST_CENTER",
      "ORIG_COST_ELEMENT",
      "ORIG_COST_CENTER",
      "ORIG_PROFIT_CENTER",
      " TRADING_PARTNER",
      "WORK_ORDER_NUMBER",
      CASE
        WHEN amount > 0
        THEN 1
        ELSE -1
      END,
      1,0,
      ROUND(amount * 0.0574000000, 2),
      month_number,
      0,
      '593',
      1 ,
      7,
      'TARGET',
      ' '
    FROM
      (SELECT "COMPANY",
        "GL_ACCOUNT",
        "COST_CENTER",
        "PROFIT_CENTER",
        "MASTER_ORDER",
        "FUNDING_PROJECT",
        "POSTING_COST_CENTER",
        "ORDER_NUMBER",
        "ORIG_COST_ELEMENT",
        "ORIG_COST_CENTER",
        "ORIG_PROFIT_CENTER",
        "TRADING_PARTNER",
        "WORK_ORDER_NUMBER",
        month_n umber,
        0,
        SUM(amount) amount,
        SUM(quantity) quantity
      FROM CR_COST_REPOSITORY
      WHERE (amount_type    = 1 )
      AND (month_number     = 201404)
      AND ( "MASTER_ORDER" IN MASTER_ORDER
      AND EXISTS
        (SELECT 1
        FROM
          (SELECT SUBSTR(ELEMENT_VALUE, 1, DECODE(INSTR(ELEMENT_VALUE, ':'), 0, L ENGTH(ELEMENT_VALUE) + 1, INSTR(ELEMENT_VALUE, ':')) - 1) AS ELEMENT
          FROM CR_STRUCTURE_VALUES2
          WHERE STRUCTURE_ID       = 2
          AND DETAIL_BUDGET        = 1
          AND STATUS               = 1
          AND UPPER(PARENT_VALUE) IN ('ELECTRIC ALL OTHER','ELECTRIC COR')
          MINUS
          SELECT SUBSTR(ELEMENT_VALUE, 1, DECODE(INSTR(ELEMENT_VALUE, ':'), 0, LENGTH(ELEMENT_VALUE) + 1, INSTR(ELEMENT_VALUE, ':')) - 1) AS ELEME NT
          FROM CR_STRUCTURE_VALUES2
          WHERE STRUCTURE_ID      = 9
          AND DETAIL_BUDGET       = 1
          AND STATUS              = 1
          AND UPPER(PARENT_VALUE) = 'A&G OH ORDER EXCLUSION'
          ) Z
        WHERE Z.ELEMENT = MASTER_ORDER
        )
      AND "GL_ACCOUNT"   <> '91081001'
      AND "COST_ELEMENT" IN COST_ELEMENT
      AND EXISTS
        (SELECT 1
        FROM CR_ST RUCTURE_VALUES2 A
        WHERE A.STRUCTURE_ID = 5
        AND A.DETAIL_BUDGET  =1
        AND A.STATUS         = 1
        AND COST_ELEMENT     = A.ELEMENT_VALUE
        )
      AND "GL_ACCOUNT" NOT IN ('5100000','5325000','5327000')
      AND "SOURCE_ID"      <> '7' )
      GROUP BY "COMPANY",
        "GL_ACCOUNT",
        "COST_CENTER",
        "PROFIT_CENTER",
        "MASTER_ORDER",
        "FUNDING_PROJECT",
        "POSTING_COST_CENTER",
        "ORDER_NUMBER",
        "ORIG_COST_ELEMENT",
        "ORIG_COST_CENTER",
        "ORIG_PROFIT_CENTER",
        "TRADING_PARTNER",
        "WORK_ORDER_NUMBER",
        month_number
      )
    
    

    Enjoy your first answer on this.

    Thank you and best regards,

    Murali

    Option 1:

    You run with two different ORACLE_HOMEs - that is potentially two different copies of the Oracle executable to the patch different sets?

    Option 2:

    A change of size of SGA is unlikely to directly affect the execution plan, but it also has change the size of the PGA TOUR at the same time? A change in the pga_aggregate_target could affect the choice of the mechanism of the join optimizer. (But not to change an in a join; but hash semi-join to nested loop is possible).

    Possibility 3:

    The db_file_multiblock_read_count leaves then the size that oracle defines by default depends on the db_cache_size divided by process; so, if you have reduced the sga_target_size you (implicitly or explicitly, no doubt) reduced the db_cache_size, and if you don't reduce the process in the same way, then the default db_file_multiblock_read_count been reduced. What you did on your system stats, this could change the cost of (for example) full tablescans, which could lead to a change in execution plan.

    It would be useful to see the results of a call to explain the plan / dbms_xplan.display in both cases so that we can see the variation in estimates of Oracle.

    Concerning

    Jonathan Lewis

  • That I improve my operating system on my Mac.  Is it possible to upgrade my version of Dreamweaver (to 2005) so that I can always use it on my Mac?

    That I improve my operating system on my Mac.  Is it possible to upgrade my version of Dreamweaver (to 2005) so that I can always use it on my Mac?

    The 2005 version of Dreamweaver is highly unlikely work on a new system of Mac OS X. You must get a subscription to the creative cloud. Even if you decide to buy a "perpetual license" for Dreamweaver CS6, you can not install it on Mac OS X 10.8 or later.

Maybe you are looking for