issues related to the parameter in the procedure

Hi all

I have a procedure which the code is given below:

create or replace PROCEDURE seods01.get_cert_tx_lot_tmp (acct_alt_id_in in VARCHAR2

, acct_alt_id_cntx_cde_in IN VARCHAR2 default 'COLA account number.

,                                              ibd_id_in               IN  INTEGER

qry_rslt_out to sys_refcursor)

IS

BEGIN

OPEN FOR Qry_rslt_out

SELECT L.tx_lot_seq_nbr

L.hld_prd_dte

L.orig_purc_dte

L.tx_lot_amt

L.updt_tx_lot_amt

L.tran_desc_txt

OF v_acct_alt_id A

v_cd_tx_lot L

WHERE A.acct_alt_id = acct_alt_id_in

AND A.acct_alt_id_cntx_cde = acct_alt_id_cntx_cde_in

AND A.ibd_id = ibd_id_in

AND L.eods_acct_id = A.eods_acct_id;

EXCEPTION

WHILE OTHERS THEN

dbms_output.put_line(SQLCODE||) SQLERRM);

END get_cert_tx_lot_tmp;

now when I run the SP in the following way it works fine:

VAR C1 REFCURSOR
EXECUTE SEODS01.get_cert_tx_lot_tmp ('004000000000000093108026740', 'Number of COLA account', '1',: C1);

PRINT C1

When I try to ignore this value by default setting, then it is throwing ' wrong number or types of arguments "error

VAR C1 REFCURSOR
EXECUTE SEODS01.get_cert_tx_lot_tmp ('004000000000000093108026740 ', ' 1',: C1);

PRINT C1

and when I tried to put this as null or "then it gives me no results. only way through which I can produce results of this procedure without giving the default parameter is the name of the column with the value of the parameter as follows:

VAR C1 REFCURSOR
RUN SEODS01.get_cert_tx_lot_tmp (acct_alt_id_in = > '004000000000000093108026740', ibd_id_in = > '1', qry_rslt_out = >: C1);

PRINT C1

but the condition is that we do not want our consumers to put names of columns when they do not pass the default value setting, I hope that there should be a way to do it. Could someone help me please on this issue.

Hello

If you want to use positional notation, then you can only omit parameters by default when they are at the end of the parameter list. In your case, this would mean

(acct_alt_id_in in VARCHAR2

ibd_id_in in FULL

qry_rslt_out ON sys_refcursor

acct_alt_id_cntx_cde_in IN VARCHAR2 default 'COLA account number')

Or you can put the procedure in a package and overload

PROCEDURE seods01.get_cert_tx_lot_tmp

(acct_alt_id_in in VARCHAR2

acct_alt_id_cntx_cde_in IN VARCHAR2

ibd_id_in in FULL

qry_rslt_out to sys_refcursor)

PROCEDURE seods01.get_cert_tx_lot_tmp

(acct_alt_id_in in VARCHAR2

ibd_id_in in FULL

qry_rslt_out to sys_refcursor)

In the procedure without the acct_alt_id_cntx_cde_in parameter, you can call the other version and provide the default value.

Concerning

Marcus

Tags: Database

Similar Questions

  • Issues related to the parental control

    When you try to view the content on Apple TV apps, you may consider some episodes. He said that you are not allowed to view this content. Set parental controls. We have not enabled our parental control; all restrictions are disabled. Any thoughts?

    Restart your Apple TV.

    To restart your Apple TV (4th generation), go to settings > system > restart.

    For Apple TV (3rd generation and earlier versions), go to settings > general > restart.

  • Folder pane issue related to the folders that I created, compared with the default Inbox, sent, junk, and trash

    I have a bunch of folders and subfolders, I created for various projects, but I don't always want to see them. (that is, I want to "collapse", while most of the time - I just see the Inbox, sent, spam and trash folders.)

    The only option I see is the equivalent of a power switch - that is to say, file view/page/component layout, or no record.

    If you uncheck the folders pane, you lose the Inbox, sent, spam and trash folders.

    If you check the option part of file, regain you your visibility of the Inbox, sent, junk mail and folders trash... but you also see the bunch of files again.

    Is there an option in-between - where I can see (again) the Inbox, sent, junk, and trash folders - but only see a collapse (as in 1 folder that says something like "folders") - without having to create such a file and paste the slew of my other folders in the folder manually created?

    The only suggestion that I would have to choose the name of the account, not the Inbox but the name of the main account.
    Right-click on the account name, and then select new folder.
    Name the project or something that makes sense to you.
    Now right-click in project and select new subfolder.
    The name of the subfolder.
    Repeat if necessary.
    There will be a pointer next to the projects folder where you can expand or collapse the tree of project files.
    This will only add an extra folder, projects, when the project tree is reduced.

  • Issues related to the market

    Anyone else having problems to download or update of the market?

    I get an orange exclamation point and it is said in class, but nothing else happens.

    johnnnyo1> there is a setting that denies the possibility to download from the market when the data only

    settings > battery Manager & data > data saver > turn it off (read the list of questions that will not happen with that active)

    search with other data settings too...

    other that that... many people do report problems with long expectations with market market so-called 3.1.3 3.1.5 is available

    nyse133> try an erasure of the data of the market, it should simply be using a google account setup in the phone itself

    Yes, Buffalo , it's a horrible update... a lot of people have a lot of problems with the slowness and the stability of the new market

  • Issues related to the cell property node: Position Active for a table control

    Hello

    What determines the Position of the Active cell in a table control property node? I have this in my code and display the value of an indicator on front panel. The displayed value is always set to 0,0. Help for the property node says it's "read - only" so what defines the Position of the Active cell in a table control value?

    Define you the active cell with a property node.  Once you select an active cell, you can do this cell and single cell-specific things, things like the background value color.

  • issues related to the multi media

    My PC for some reason any deleted my sound drives for my Media Player, where is the best site to download free one; s without registration.

    concerning
    Colin Preece

    Start with the website of the manufacturer of your PC. Looking for support/downloads etc. If your PC is unmarked (i.e. a custom build) start with the motherboard manufacturer's Web site or, if the sound is provided by a card, look at the website of the manufacturer of the card.

    If you get to this generic help you give us more generic information, i.e. brands and models of PC/motherboard and/or hardware. Using XP 32-bit or 64-bit? etc etc - see how to ask a question...

    http://support.Microsoft.com/kb/555375

    Tricky

  • Issue related to the creation of administrator user accounts

    I've recently set up a new password user admin account on my laptop. However my standard account still allows me to see the content without asking for the password. I'm doing something wrong?

    It depends on security context.  If you use a single account, but trying to access files stored on a user admin account, you will be prompted for a password.  If you don't want this, you can adjust the folder security permissions to give other access to the account.

  • Issues related to the format of mail in email

    A few days ago changed the way my e-mail address is shown. I used to click on mail and it would show a descriptive list of each messge. Now, the message is displayed. I want the mail format I had before with the list of the text messages. Help!

    Original title: A problem

    If you are using Windows Mail: reviews | Layout and uncheck the preview pane.
     
  • Issues related to the parental control EA6900

    I have my setup of parental control to block access from 22:00 to 09:00 however, it does not automatically access when the time changes to time 'unlocked '. Curiously, it still shows the message 'parental control block. I have to disable the parental control to allow access to devices after 9:00 and then it must reactivate at 22:00 to block access again.

    I've also updated the latest firmware (1.1.42.161129). It does not seem to be 2 versions (V1.0 or V1.1), however, these two seem to be the same file. I used the correct version for my router (V1.0).

    I want to stay with what you have for now and look to see if it works on some devices. Check that the clock on the router is configured correctly. See also if certain sites are blocked and others not. I think there's a bug where some sites using https:// is not to be blocked but http:// did. It worked correctly before the upgrade? Remember you of what was the old version? The cancellation is made by the interface of the router and there is a button to restore but still, if restore you an unwanted version which isn't good either. Better do small things first.

  • Disappearance of the hard drives and start issues related to the

    Sfcdetails.txt opens Notepad, but there's nothing in it.

    scannow translates:

    "Windows resource protection found corrupt files but was unable to fix some of them. Details are provided in the journal CBS.log windir\Logs\CBS\CBS.log for example C:\Windows\Logs\CBS\CBS.log

    I tried to go this this file manually, but access is denied when I try to open the files two notebook. The third file is bld

    Upgrades or repairs will remove anything from my computer? I am currently unable to burn anything to disc right now, and there are several elements that while on the two disks, I did not copies of DVD even. I just want to know if I have to worry about losing those.

    I have Norton Antivirus on this computer. I used Ad-Aware before as well (and removed from). I upgraded my Norton online, so if I remove it, I think I'm just screwed. : S

    I'll test the hard drive itself later today, dragging my other computer. I will also test the cable passing the cables connected to the readers (suggestion of Dell).

  • Basic functions and issues related to the Internet after virus removal

    I hope someone can help with my daughter's laptop.  I think this is the right forum.

    Back in March she got a rogue virus on his laptop computer. It has been removed successfully, but the programs on his personal user account have still some problems. She tries to open any program by double-clicking its icon, a screen will appear asking you to choose a program from a list to open it with. If instead, she clicks on the icon of the program and chooses to start, it opens fine (but is very painful to have to do so every time). In addition, some basic on this user account functions do not work (it does not receive some pop-up windows to the top when it should, the scroll bar on its mouse pad no longer works, programs configured to start at startup must be started manually, etc.). Finally, after being and deletion of another rogue virus a few weeks ago, the internet on his personal user account stopped working, only display a "Cannot display the Web page" page even if network connections show that it is connected to the internet. NOTE: None of these problems exist on the administrator account or if she is invited to log on as an administrator.

    A gifted friend computer has helped to ensure that the computer is free of any virus or malware but was not able to understand how to fix this user account.  It was suggested to delete this account and create a new user, but she doesn't want to have to do that, if possible, since she spent a lot of time customizing.

    The laptop is a HP Touchsmart PC with Windows Vista Edition Home Premium (x 64), AMD Turion X 2 Dual - Core Mobile RM-75.

    Thanks in advance!

    Ok.

    Here's a little advice for her on the copy of files on new accounts:

    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    Difficulty of a corrupted user profile

    After creating the profile, you can copy the files from the existing profile. You must have at least three user accounts on the computer to perform these operations, including the new account that you created.

    See you soon.

    Mick Murphy - Microsoft partner

  • Scaling of issues related to the HTML5 application tests the Ripple

    I'm doing my first application on WebWorks. I use ripple emulator to test. I'm just a simple doubt if I should scale is to say increase the size of the different HTML elements (such as buttons and text) or not, so that they are visible on the screen of a phone.

    I recommend using the BB10 Simulator (or ideally dev alpha) to test the scaling problems.

    Ripple frankly STINKS to test (not to mention than just general tests / making of course the app works at all). What looks good in waving may end up weird on a device real - or at least less than you expect.

  • Issues related to the delay in the launch of active emails

    My question is about having email open and then drop the screen in the bar of tasks for maybe an hour: when I bring e-mail back-up, it often takes about two or three minutes to become his fully active again. Can someone help me understand what's happen with this delayed reaction?

    I am running: windows 7, 32 bit, ram of 4 G, the Inspiron 1721.

    Thanks, GregCY

    You didn't mention what email program you use.

  • Some issues related to the Oracle OLAP features

    Hello!

    I have a few questions for which I'm not sure that it supports Oracle OLAP:

    1. several hierarchies of time?
    2 measure groups?
    3. visible values?

    Thank you!
    Best regards, Simon

    (1) oracle OLAP supports multiple hierarchies on any dimension, including the dimensions of time. But note this means something different from multiple hierarchies in Microsoft Analysis services.

    (2) oracle OLAP has multi-cube architecture, so you can easily combine several cubic measures in a single query. This allows to create the equivalent of a measure group. You can do this either by creating a new cube with calculated measures that point the cubes from the base, or at the SQL level by joining the views of cube. There are advantages to both approaches.

    (3) oracle OLAP has no native support for the visible values. To get the visible values, you need to run the part of aggregation in SQL.

  • Issues related to the control point.

    Hello

    I have a doubt, checkpoint,

    Writing database writes data to stop data to the control files.

    In my view, the database writer writes only stamps Sales (which are commited buffers) in the data files. Can someone delete this


    Thnks

    user10745179 wrote:
    Hello

    I have a doubt, checkpoint,

    Writing database writes data to stop data to the control files.

    In my view, the database writer writes only stamps Sales (which are commited buffers) in the data files. Can someone delete this

    Thnks

    Yes, database writes the uncommitted to the data files. In case you long uncommitted transaction, this would mean that you have a lot of data not validated in the database buffer cache. There might come a time where all the data of the dbc is not validated, if more data must be written in DCB, no own stamp will be available to write and the cause of crashing instance. In such a situation, the dirty unvalidated data are also flushed to the data files but is not accessible until the transaction is complete, once the changes take place and other users will get the changed data.
    Kind regards
    Blabla

Maybe you are looking for

  • Can I open pop-ups in a new tab instead of a separate window? How?

    I'm on the customer's Web site, and whenever I click on a 'link' to move to this file, the link opens in a new window (separate and single w/out of the address bar or whatever it is, IE, files and printing options). Just, I want to open in a new tab

  • battery HP pavilion 15-e016tu notes with book

    I have the hp Pavilion e016tu 15 notebook, & I bought before 3 weeks. problem is consumption about 5% to 8% battery after stopping power. Once I got close and start the day following consumption of this amount of battery power. Any ideas?

  • Readycloud migration and upgrade Firmware

    Hi guys,. I got the same email that others have had about the Readycloud account migration to a single account of Netgear. I stopped using Readycloud to access because of inconsistencies with connections and now do things via Filezila without any pro

  • can not start any other os that mac os install dvd

    I can not start any version of windows or ubuntu on my mac pro 1.1. Tried: Windows 98 Windows 2000 Professional Windows 2008 Server Windows XP home versions of Windows 7 Professional 32 & 64 Ubuntu 10.04 lts 32-bit Ubuntu 14.04 32-bit and 64-bit most

  • my cd player no longer works has received the error code19

    Windows cannot start this hardware device because its information of configuration (in the registry) is incomplete or damaged. (Code 19) Click on 'Search for solutions' to send data about this device to Microsoft and to see if there is a solution ava