Gurus of PL/SQL you are listening: >)

I have the 'fct_Set_Starts_On_Date' function, which calculates the start date for the two years prior to Sysdate. This fails in leap years, so the following statement inside the function must be modified to calculate the start date for that leap years is also welcomed.

Here are the current select statement that needs to be changed:

SELECT TO_CHAR (BIGGER (TRUNC (SYSDATE - INTERVAL '2' YEAR, 'YYYY'),

TO_DATE (: P10_STARTS_ON, ' MM/DD/YYYY')), ' MM/DD/YYYY')

IN: P10_STARTS_ON

FROM DUAL;

ADD_MONTHS - 24

Concerning

Etbin

Tags: Database

Similar Questions

  • You have reached the maximum of pages in this set of results of content. If you are looking for something specific, try applying a filter of content type or enter a search term.

    I get error frequently below.  In General, when you navigate on old posts on the forum SQL and PL/SQL, after reading a post, I click on the left arrow in my Firefox browser, which I expect to take me to the page of the posts that I had.  Instead, I get a page with no messages.  I then click on a forum page numbers in the upper right corner.  Sometimes brings back me to the page that displays the list of the posts that I had.  However, more often I get the below error.  So try to navigate from one position to another is desperately slow.  You can fix this?  Everybody brings a work around to be able to get from one station to another, or at least back to old messages without the error page?  This is a problem that happened before and after the upgrade.

    "You have reached the maximum of pages in this set of results of content. If you are looking for something specific, try applying a filter of content type or enter a search term. »

    Have you tried right-click (ctrl-click on Mac) and choose 'Open link in a new tab' instead? With all the dynamic html today browser back and before options are often dead still. If you open links in a new tab or window, you can simply close the window instead of using the back button. It may take awhile to get used to it, but there are some benefits, such as the loading of the pages in the background, and you do not lose the focus of the page where you. You can disable "when I open a link in a new tab, swtich it immediately." If I understand your problem, maybe it works better.

  • you are looking for an account in a query

    Hi gurus!

    Please help me out here.

    IAM having these two tables that follow, listed with sample data here:

    I have a request to check in the table of the word where there is no Term_id to a particulat mer_id. (as the '0' term_id)
    and country_id mer_id not in (120)


    Sea:

    mer_idCountry_ID
    1037045484
    1037046484
    1037048484
    1037049124
    1037051484
    1037052484

    Term

    Term_idmer_id
    2669401037045
    45387941037045
    10075501037045
    2361171037045
    10075531037045
    10075521037045
    45387951037046
    45387971037048
    45387981037049
    45388001037051
    45388011037052

    table structures:

    Mer :                        

    mer_id number (8) Pk constraint
    Country_ID number (3)

    Term of office:

    term_id varchar2 (9) pk constraint

    mer_id number (8) not null constraint

    Hello

    This looks like a job for an outer join.  Maybe something like:

    SELECT m.mer_id

    M of the sea

    T ON Tt.mer_id = m.mer_id LEFT OUTER JOIN boundary

    WHERE m.country_id NOT IN (120) - assuming that m.country_id cannot be NULL

    GROUP BY m.mer_id

    GIVEN the NUMBER (t.term_id) = 0

    ;

    Whenever you have a questioon, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.

    Explain, using specific examples, how you get these results from these data.

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

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

  • ORA-20009: you are not allowed to connect to this database

    Hello

    We have the 11.2.0.1.0 Oracle database.

    The DB automatically stops as well as the service stops.

    Verification of the alert log, here are the errors... These are continually producing the newspaper and new .trc and .trm files are created every minute.

    Errors in the d:\oracle\admin\fw4dev\bdump\diag\rdbms\fw4dev\fw4dev\trace\fw4dev_j000_7424.trc file:
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-20009: you are not allowed to connect to this database
    ORA-06512: at line 4 level
    Fri Jul 01 13:14:32 2011
    Errors in the d:\oracle\admin\fw4dev\bdump\diag\rdbms\fw4dev\fw4dev\trace\fw4dev_ora_8672.trc file:
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-20009: you are not allowed to connect to this database
    ORA-06512: at line 4 level
    Fri Jul 01 13:15:19 2011
    Errors in the d:\oracle\admin\fw4dev\bdump\diag\rdbms\fw4dev\fw4dev\trace\fw4dev_j000_4916.trc file:
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-20009: you are not allowed to connect to this database
    ORA-06512: at line 4 level
    Fri Jul 01 13:15:41 2011
    Errors in the d:\oracle\admin\fw4dev\bdump\diag\rdbms\fw4dev\fw4dev\trace\fw4dev_ora_3952.trc file:
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-20009: you are not allowed to connect to this database
    ORA-06512: at line 4 level
    Fri Jul 01 13:16:19 2011
    Errors in the d:\oracle\admin\fw4dev\bdump\diag\rdbms\fw4dev\fw4dev\trace\fw4dev_j000_832.trc file:
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-20009: you are not allowed to connect to this database
    ORA-06512: at line 4 level
    Fri Jul 01 13:17:16 2011
    Errors in the d:\oracle\admin\fw4dev\bdump\diag\rdbms\fw4dev\fw4dev\trace\fw4dev_ora_3988.trc file:
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-20009: you are not allowed to connect to this database
    ORA-06512: at line 4 level
    Fri Jul 01 13:17:19 2011
    Errors in the d:\oracle\admin\fw4dev\bdump\diag\rdbms\fw4dev\fw4dev\trace\fw4dev_j000_4352.trc file:
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-20009: you are not allowed to connect to this database
    ORA-06512: at line 4 level
    Fri Jul 01 13:18:19 2011
    Errors in the d:\oracle\admin\fw4dev\bdump\diag\rdbms\fw4dev\fw4dev\trace\fw4dev_j000_2892.trc file:
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-20009: you are not allowed to connect to this database
    ORA-06512: at line 4 level
    Fri Jul 01 13:19:19 2011
    Errors in the d:\oracle\admin\fw4dev\bdump\diag\rdbms\fw4dev\fw4dev\trace\fw4dev_j000_2416.trc file:
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-20009: you are not allowed to connect to this database
    ORA-06512: at line 4 level
    ......
    ..
    .

    Please go back, in case anyone has the solution for the same thing.

    Kind regards
    Jinisha

    Hello
    It is a 'feature' really annoying a logon trigger event is 'CONNECTION' not 'LOGON' that is to say there is a space after the opening of SESSION

    Change your query to

    Select * from dba_triggers, where triggering_event like 'LOGON '.

    And you will find it.

    See you soon,.
    Harry

  • Several components are listening to the same custom event?

    I tried to make the transition from Flash to Flex and I've been struggling with this one for the last two days. I used to do a lot of SEO _root.moviecontainer.mylable.text, but I'm trying to get the idea of demonstrations, dispatchevents, etc. down and get SEO for Flex to manage. The simple explanation of what I'm trying to do is to have a component triggers an event and either dynamic broadcast to all components that subscribes to this event (the number of components listen to will change during execution and so I don't want to directly refer to these objects). I would like to be able to generate other objects during execution and to associate them with this event dynamically. I tried to add an addListener (customEvent) to listen to the dispatchevent(), but I had no luck with this method until now. Raises the event, but I can't understand how to associate other components with it. I guess that having only three parts to it: the component that triggers the event, the event itself (custom) and the component that is listening for the event. And none of the components know anything of the any of the other components that exist. The trigger could be raising an event 3, 10, or 100, other components are listening, but he doesn't know how many elements are tuned, nor she cares & maybe even wait for one component which is capable of raising the event, he is listening the listening component, or there could be a total of 10 components capable of triggering this event. If you did it at the end of the present, thank you. This has been a headache for me, and I'd appreciate any help offered. Thank you.

    iTextArea is a brother of iButton and isn't in its parent chain, so it will not be a propagated event.

    Perhaps you could put a Manager in the Application that redistributes events and listen for them in iTextArea.

    Tracy

  • These SQL clauses are equivalent?

    Hi, previously I was working in a SQL statement that returns potentially 1 million rows. The 'order by' clause contributes significantly the cost when I checked its plan to explain.
    select ...
    from ...
    order by field1, field2, field3;
    Then I found another way to make the order of who has much lower costs to explain the plan.
    select ...
    , dense_rank() over (order by field1, field2, field3) overall_order 
    from ...
    order by overall_order;
    Both queries took a long time to run if I didn't not wait until this one is over. The question I have is the above two methods will return the same result in the same order? I know dense_rank() returns the same number of ranking if two values are the same, but do not know what 'order by' will do in the same situation.

    I found that when the result set is small (say, a few hundred lines), the analytic function actually result in a higher cost to explain plan. Please let know us if it is OK to use the second method to achieve the effect of "order by" for the large result set.

    If you have better alternatives, please suggest as well. Thank you.

    Hello

    Two of these methods do the same thing.

    Both are for an indefinite period as to what happens when two or more rows have the same values for the three variables.
    Say the lines A, B and C all have exactly the same values for field1, field2, and field3.
    Say, you are running the version with ' ORDER BY Field1, Field2, formees3 ' and the output, in order, is A, B, C.
    If you run one version, then there is no guarantee that you will again get the same order (A, B, C). You can get the same order, or you might not.

    I'd be surprised if "ORDER BY overall_order" was faster than ' ORDER BY Field1, firld2, field3.

  • is it possible to let the Embedded PL/SQL gateway to listen on port 80?

    I installed 3.1.2 on XE apex. I tried to let it listen on 80, but it doesn't work. Is it possible to listen on 80? If Yes, what additional step I have to do?

    I tried this command
    EXEC DBMS_XDB. SETHTTPPORT (80);

    but http does not start,

    but it works if I use default 8080.

    EXEC DBMS_XDB. SETHTTPPORT (8080);

    Thank you

    Robin

    Any comments to http://daust.blogspot.com/2006/01/xe-changing-default-http-port.html:

    It seems that you are working under Linux (os root user). It is not easy to use a port below 1024 for Oracle because it takes the oracle process runs as root. It is not advisable.

    The bottom line:
    -You can easily change the port on Linux, but not below 1024!
    -You can configure a plain Apache as proxy in the 10th, it is advisable anyway.

    For the configuration of Apache as proxy to the XE, you can find more information here:
    Re: Existing http server
    HTTPS with Oracle XE?

    Kind regards
    ~ Dietmar.

  • How the process in two steps of authentication does not work if you are not in an area of cellular service

    Outside cellular service areas, IS those who know how the two step aunthicatuon process works in an iPhone 6, using the operating system iOS 9.3.4?  Would a being completely locked out of their iphone and apple services until they could find themselves in a cell service area? Or can it be accessed by a public wifi? Who beg to differ on whether or not it is beneficial to use when you travel?

    I did a little research to see if all Apple items shed light...

    See "How it works" in the Apple ID - Apple Support for two-factor authentication - a time that a device is approved, he'll never ask again unless you perform one or more of several things to "break the connection.

    If I were you, I would spend it TURNED off if you fear that one of these things could happen while you might not be able to obtain the code by SMS

    Frequently asked questions about the audit in two steps for Apple ID - Apple Support

    I'm confused as to why Apple would use two different expressions for what seems to be the same:

    • "Two -authentication"- and
    • "Two -step".

    The above two articles begin with a statement like: [underlining is unique, "BOLD" is synonymous with]

    "Two-factor authentication is just an extra layer of security of your ID Apple aiming to sure you are the only person who can access to your account, even if someone knows your password."

    «The two-step verification is an additional security feature for your Apple which designed to prevent anyone to access or use your account, same ID is they know your password.»

    Maybe someone with more experience can shed some light on your question and MY confusion?

  • You are not allowed to create or update this content

    I am trying to create a new post, but when I click on 'Post' I get the error message "you are not allowed to create or update this content.

    Is this a bug or is it user error?

    Try again in a little, it's a known bug. Also try to refresh the page or signing in.

  • Why this message: you are not allowed to view or update this topic

    Why this message: you are not allowed to publish or comment on it.

    It's a legitimate question.

    You encounter a bug in the Jive Software that runs this forum. Most of the time simply try again or refresh the page will fix the problem. There is one caveat with respect to time. You can't post more than once every 30 seconds, and it's to discourage spamming.

  • "sent" messages and those being edited are both blue. Easy to forget what mode you are, and sprays to remove a file sent, what should not be so easy.

    The background is blue for the mails in the "sent" folder and for a letter that is being edited (with "write", or "response"). The problem: it's really, really easy to forget which mode you are, to start to edit, remove a character and zzzp! "sent" all mail went into the record and cannot be found in the trash or anywhere else, unless I'm going with Outlook (webmail) and send it carefully for it again myself, and even do it once I lost it completely.
    Obvious solution: "pay attention to what you're doing." Of course, but I had this problem so often, I know that I am of course not alone.
    My point of view: CHANGE background BLUE in the folder 'sent' AS WELL as 'Inbox' and all THE OTHER FOLDERS, so that we KNOW (from the colour) what mode we are (read-only or change) no matter where our brain is. I see no benefit for the blue in the "sent" folder The functions are identical to those in other folders.
    Another solution: change the impact of a 'delete' when, in the body of an email in the folder "sent". Surely a more complex solution.

    If you see a 3 bar menu icon in the toolbar of e-mail.
    menu icon > Options > Options it will show you the corresponding window.

  • Unreadable when printing you are using Firefox, readable when using Crome. Why?

    The Mozilla Web pages, the print breaks when I scroll. The impression becomes difficult to decipher. This does not happen in Chrome or Explorer. Still, I downloaded Mozilla, but continue to have this problem.

    Start Firefox in Safe Mode {web link}
    While you are in safe mode;
    Press Alt or F10 to bring up the toolbar.
    Followed;

    Windows; Tools > Options
    Linux; Edit > Preferences
    Mac; name of the application > Preferences

    Then Advanced > General.
    Find and stop using hardware acceleration.

    Dig safe web sites and see if there is still a problem. Then restart.

  • Firefox MAC v30 with proxy must authenticate "Cache Access Denied" sorry, you are not allowed to ask: this cover until you have authenticated

    Firefox functioned perfectly until we have updated to version 30.0. It seems that the new version does not like our Proxy Configuration that requires users to auth with their AD accounts.

    In the latest version, Firefox will appear a box that allow you to type the user name and password that works perfectly. However, this is not pop up anymore and gives me this error message.

    The following error was encountered:
    
       Cache Access Denied.
    

    Sorry, you are not allowed to ask:

       http://www.google.com.au/url?
    

    This cache until you have yourself authenticated.

    I try to configure the username into a key ring and allow firefox to access manually, but Firefox seems does not access this key chain at all.

    Is that someone has a problem with the proxy server that needs to authenticate in Firefox30.0? Does anyone know the possible solutions?

    Thank you very much!

    Shuopan

    Trouble Shooting - update

    Interestingly enough, Firefox works for 1 minute after I use Safari with proxy Auth. However, if I get Safari for 1 or 2 minutes, Firefox will be stop working and displays similar error message.

    tried network.http.use - cache = false but does not work

    Thank you

    We find the solution of Philipp is useful.

    "Hello, this is perhaps due to the deactivation of some insecure authentication protocols in firefox 30: https://www.mozilla.org/en-US/firefox/30.0/releasenotes/#whatsnew .

    You can try to enter: config in the firefox address bar (confirm the message information where it appears) and search for the preference named network.negotiate - auth.allow - insecurity-ntlm-v1. Double-click it and change its value to true. »

    https://www.Mozilla.org/en-us/Firefox/30.0/releasenotes/#whatsnew

  • Suite pretty shady and very disappointed that you are associated with this kind of practice.

    I don't have a question about my computer, but I don't want to report something. Yesterday, I had a question about why my download of Firefox don't are not remained loaded when I rebooted. I clicked on support and attached to a man such a strong accent, I had to ask her to repeat things 2 or 3 times. That's what was wrong: after I explained my problem, it took a very long time and finally said: I can help you with that, but need to access my computer remotely. He then proceeds to criticize what I had on my desk, which was of some science lab equipment that I put in a spreadsheet for my science class, but was not his business and had nothing to do with why I couldn't get Firefox to download correctly. Then he put me on hold to check something, came back and explained that I had to have my computer checked every four months and they could do that for a small fee. I said, ' what? No! I already have Apple Care Extended." He said he could help to solve my problem, I said 'OK?' but then, he said, it would be for a small fee. Quickly, I didn't say thank you. Come to find out, all I had to do was do drag the Firefox icon in the folder of the Aps. So, it's not cool. And I am very disappointed to see that you all would tolerate this practice. This is NOT supported, this is a scam!

    Where did you find the so-called Mozilla or Firefox Support?

    Mozilla does not connect to the computer of anyone, nor especially require anything for such person on a support. Like most open source companies, Mozilla doesn't do phone or send a mail.

    Hmm you are looking for Firefox Support through Google? because they have Google ads above the actual search results, and many of them, I found fits your description. None of these Google Ad links are affiliated with Mozilla.org somehow.

  • How to block the popup "you are the lucky visitor" each time I open Firefox. I can't find any information in the box add on lists et al. thank you!

    Recently, my v25.0 of Firefox is faced with a problem of popup. A popup message saying ' you're visotor of luck today, please click Ok to opportunities. " I have to click Ok then I can continue to use the browser. What is a popular problem? Please tell us how to block this popup. Thank you!

    Hello

    First of all apologize for suggesting tools of Windows malware. I have noticed that you are using a Mac. Thanks to Cor - El for this note.

    On your machine, you have the following extensions. Is it possible to uninstall / disable these extensions and then try if the popup appears

    1. PIN button 1.1
    2. ShareThis Toolbar 1.300.436
    3. Shop.com Community Toolbar 3.20.0.4
    4. ShopBuddy 1.0.24
    5. Convenience store 1.1

    You can follow the below mentioned instructions [1] uninstall/disable extensions.

    In regards to Safe Mode, removing bookmarks, without this can't. That said, it is always advisable to make a backup of your bookmarks (and your profile in general) [2] so that you are able to restore from backup.

    1. Disable or remove modules
    2. Backup and restore Firefox profiles information

Maybe you are looking for

  • Satellite Pro M10 - location of the mini-pci slot?

    Hello I have a M10 Pro of the Satellite with a mini-PCI Intel Pro 2100. Now, I wanted to put in a new card, but I can't find the mini-pci slot? I opened all the way down, but there nothing. Where is it located and what is the best way to open the lap

  • Question about file names and organization

    Background I connected my camera to my iMac and downloaded my photos directly into iPhoto without ever thinking about it. I just thought it was the way to do it.  Now that I began to rethink the organization / structure of how I want to drop my photo

  • Number pages correctly for books.

    I need an update to Windows 2000. I want the update that contains 'folds of the book' and number the pages of the book. Also, who has a "manual duplex. I got it to work, but not at home. Please help me step by step.  Your help would be greatly apprec

  • 2 products installed in the Oracle home

    Our security scanner indicates that our Oracle 10 g install has a vulnerability that should be address with the installation of CPUApr2011.  Our server is patched with each 10g CPU until end of life in August 2013, so I know that it is a false failur

  • ORA-00937: not a single group group function

    Hello worldI got an error above with followingcode... Please help meSELECTROW_NUMBER() OVER (PARTITION OF LANEDIRECTION, ORDER BY TIMEID COSIT) AS RN, DAYASNUMBER,.(to_date (timeid, 'YYYYMMDD hh24miss')) as cte.drive ((to_date (timeid, 'AAAAMMJJ hh24