sys_refcursor do not fetch any data, even if the query returns the value
I use sys_refcursor to return the columns and aid below the procedure to do. Although the data are there in table_1 and table_2.PROCEDURE test_pro (abc_date N, DATE,
cur_get_data ON sys_refcursor
)
OPEN cur_get_data
for
Select A.col1, B.col2
from table_1 A
where A.dis_date = abc_date
left outer join
table_2 B
on
A.dis_date = B.dis_date;
IF cur_get_data % rowcount = 0
then
raise e_error;
END if;
EXCEPTION
When e_error
then
-no_data_found;
while others
then
-(giving an error with the SQL error code);
END test_pro;
When running under sql in the sql pl/sql developer window pick
data
Select A.col1, B.col2
from table_1 A
where A.dis_date = abc_date
left outer join
table_2 B
on
A.dis_date = B.dis_date;
But while testing the test_pro in the test of the pl/sql Developer window, it is
do not fetch all data and raise e_error every time
is there a problem arising from the use IF cur_get_data % rowcount = 0 whenever that happens in the exception block.
so can someone please put a few ideas what cud be the reason for this?
PROCEDURE test_pro(abc_date IN DATE,
cur_get_data OUT sys_refcursor
) is
BEGIN
OPEN cur_get_data for select A.col1,B.col2
from table_1 A
where A.dis_date = abc_date
left outer join
table_2 B
on A.dis_date = B.dis_date;
/* while testing let exceptions just pop out
EXCEPTION
when no_data_found
then
------no_data_found;
when others
then
--------(giving SQL error with error code);
*/
END test_pro;
then you test as something like
declare
my_date date := to_date('20120621','yyyymmdd');
my_cursor sys_refcursor;
col1 ... ;
col2 ... ;
begin
test_pro(my_date,my_cursor);
loop
fetch my_cursor into col1,col2;
exit when my_cursor%notfound;
dbms_output.put_line(col1 || ' ~ ' || col2);
end loop;
end;
Concerning
Etbin
Tags: Database
Similar Questions
-
I do not use private browsing and the setting ist "remember history", but Firefox doesn't remember the stories. What can I do to let Firefox remember history again?
One possible cause is a problem with the places.sqlite file that stores the bookmarks and history.
See also:
- http://KB.mozillazine.org/Menu_differences
- Windows: Firefox (Tools) > Options
- Mac: Firefox > Preferences
- Linux: Edit > Preferences
-
Creative cloud does not start starting system even when the option to do so.
Creative cloud does not start starting system even when the option to do so.
This is an open forum, not Adobe support... Click below to contact Adobe staff for help
While the forums are open 24/7 you can't contact Adobe support at any time
Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
Don't forget to stay signed with your Adobe ID before accessing the link below
Creative cloud support (all creative cloud customer service problems)
-
original title: laptop BATTERY
My laptop does not work on battery even though the indicator said there is a 90% power disponiblesLorsque it is plugged in and charging. The battery would be dead even if she says she can still exist?
Hello
Check with support from the manufacturer of their books online and the drivers and their forums system
(as applicable) for known issues. Some manufacturer issued BIOS and other updates to help the battery
problems.Control Panel control - plan change Options - power plans - power - advanced settings
Parameters for the drainage and the use of parameters (this is how much to use and not how much or how)
long to load).In fact, what causes a lot of wear on a battery empties it too low on several occasions. With today
systems overload are not a problem.Here are some tips to help and troubleshoot battery issues.
Old battery? Unplug the power to the computer - remove the battery and clean the contacts with a pencil
eraser (do not use this, if your battery is fine slots - just clean up the edges of the knife which fit in)
them and be careful). Batteries are old, or it could be a problem with the computer.
Check with the support of the machine system, and many of them have on line forums.New Lithium-Ion type battery usually last longer if you do not unload then less than 30%
However on a laptop that not extend their life a lot. Best is to use the a/c adapter
When this is possible.I use the free version of BatteryBar to monitor my battery. Click on the green button on the
Yellow box on the right side of the page to download the latest stable version.BatteryBar - free version available
http://osirisdevelopment.com/BatteryBar/index.htmlAnother good program
Vista battery saver - free
http://www.codeplex.com/vistabatteryProblems with the lives of its use and the battery of power - Mr Fixit
http://support.Microsoft.com/GP/windows_battery_power_settingsYou can also check with the manufacturer of system and forums that many use their own
proprietary software to monitor the battery and they could be known problems with your battery.============================================================
Try this - to make a Restore Point
How to create a Vista System Restore Point
http://www.Vistax64.com/tutorials/76332-system-restore-point-create.htmlHow to make a Vista system restore
http://www.Vistax64.com/tutorials/76905-System-Restore-how.htmlThen Control Panel - Manager of devices - Batteries - Double click on each item - drivers - tab
Update the drivers (which can do nothing) - then do a right click and UNINSTALL each.
RESTART which will update the driver stacks.Problems with the lives of its use and the battery of power - Mr Fixit
http://support.Microsoft.com/GP/windows_battery_power_settingsI hope this helps.
-
specification does not match any newspaper archive in the recovery catalog
RMAN > delete archivelog until time = ' sysdate-15';
output channel: ORA_DISK_1
output channel: ORA_DISK_2
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid = 151 devtype = DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid = 143 devtype = DISK
specification does not match any newspaper archive in the recovery catalog
Database 10.2.0.3.0 on win2008 (VMWARE)
Thank youHoney says:
RMAN > delete archivelog until time = ' sysdate-15';output channel: ORA_DISK_1
output channel: ORA_DISK_2
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid = 151 devtype = DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid = 143 devtype = DISK
specification does not match any newspaper archive in the recovery catalogDatabase 10.2.0.3.0 on win2008 (VMWARE)
Thank youThere is no archived redo log file corressponding your query. There is no archived for 15 days ago redo log file
-
Pdf forms can always send the xml data (even if the pdf does not extend)?
Hello
My problem is the following. I have Acrobat Professional license, so I can create pdf forms.
I added a shipment through the mail button to my form and sent to the end user, who had only the acrobat reader software. He was able to complete the form and send its data via the e-mail button, and I got an xml with the data file.
Because I had not extended the document, I suppose it's always possible, so I can always receive the xml data in completed forms, I can't?
Then also extended the professional Acrobat document (Tools-> enable usage rights in Adobe Reader), because I need the final customer, be able to save the form. Now, I just sent this document extended by mail (do not use the tool Distribuite form in Acrobat), the user has clicked the button and again once I received my xml.
Now, I want to back my document to a maximum of 500 customers, I have no limitation?
I quote acrobat licenze agreement:
14.13.3 for any unique Document extended, you may only either (a) deploy this Document extended to an unlimited number of recipients unique but shall not extract information from more than five hundred 500 unique of this extensive Document instances or any representation of a paper copy of this Document extended with fields of form [...]
Since the function I described before (the xml data emailing) is granted even if the document is not extended, I think that this limitation does not apply to me. Am I wrong?
The limitation applies instead if I use the function 'Distribuite form' (forms-> Distribuite forms...) in acrobat professional. If I use this feature for distribuite the form, an email is automatically sent by acrobat (and not manually by me, as before) and pdf dataset is created. When the end customer cliks button, a pdf file (and not an xml) with the data are sent to me. If I double click on acrobat fills the dataset that was created with the data. It is the extraction of information to which the license relates?
This is my conclusion: a pdf form can still send data xml by the player, and if I Express with acrobat, the end-user can also record. The only restriction is to distribute the form using "Distribuite form", but if I use it not I have no limitation on the number of times where ever I can get xml data.
Can anyone confirm that my conclusion is just?
Thank you very much
Giuseppe Romeo
You can try the link "contact us".
-
script return do not store any data info
Hi everyone, I think I'm missing something simple but impossible to find the tail of it.
Here is a commonly used script that I've used in the past, but since I moved to another machine its not return don't not data store news.
My CSV is full of great info, but the column for the data store is empty. Thanks in advance.
$VCServerName = "myVcenter".$VC = to connect-VIServer $VCServerName$ExportFilePath = "c:\Export-VMInfo.csv".$Report = @)$VMs = get - VM$Datastores = get-Datastore. Select Name, Id$VMHosts = get-VMHost | Select Name, Parent{ForEach ($VM to $VMs)$VMView = $VM | Get-View$VMInfo = {} | Select VMName Powerstate, OS, file, IPAddress, ToolsStatus, host, Cluster, data store, NumCPU, MemMb, DiskGb, DiskFree, DiskUsed$VMInfo.VMName = $vm.name$VMInfo.Powerstate = $vm. PowerState$VMInfo.OS = $vm. Guest.OSFullName$VMInfo.IPAddress = $vm. Guest.IPAddress [0]$VMInfo.ToolsStatus = $VMView.Guest.ToolsStatus$VMInfo.Host = $vm.host.name$VMInfo.Cluster = $vm.host.Parent.Name$VMInfo.Datastore = ($Datastores | where {$_.}) ID-match (($vmview.)) Data store | Select - first 1) | Select the value). Value} | Select name). Name$VMInfo.NumCPU = $vm. NumCPU$VMInfo.MemMb = [math]: round (($vm.)) (MemoryMB), 2)$VMInfo.DiskGb = [math]: Round ((($vm.)) Hard drives | Measure-Object-CapacityKB property-sum). Summary * 1 k / 1 GB), 2)$VMInfo.DiskFree = [math]: Round ((($vm.)) Guest.Disks | Measure - Object - property FreeSpace-sum). Summary / 1 GB), 2)$VMInfo.DiskUsed = $VMInfo.DiskGb - $VMInfo.DiskFree$Report += $VMInfo}$Report = $Report | Sort-Object VMNameIF ($Report - don't ' ') {}$report | Export-Csv $ExportFilePath - NoTypeInformation}$VC = disconnect-VIServer-confirm: $FalseStrange, I just ran your script, and I get the info from the data store in the CSV file.
Error messages?
I guess that Get-Datastore returns all your data warehouse?
-
Other users have reported similar problems. My particular case: Running Firefox - date (42.0) - Windows 7 (as so far). Firefox has constantly watch the Adobe Acrobat Reader plug-in is not up-to-date. I tried to update and reinstalled Acrobat. I just had request Acrobat update which has been a success and also updated to Firefox. Firefox still has reports that Acrobat is obsolete. Firefox reports that the current add-on is 15.9.20069.28170, but clicking on update now button on the Add you check page contains links to a page of Adobe update with the version number 2015.009.20069. When I search (Google) for the latest version, I've reached a page that lists all versions, updates, etc.. The latest version is 2015.009.20069. According to the Panel, the version of Adobe Acrobat Reader is installed on the computer is 15.009.20077!
As far as I can tell it's working properly, updated regularly. I don't know where the 28170 number comes from or why page Add on reports that Acrobat is out of date, unless the version update of the Acrobat Reader software is not actually update the Add On from Firefox portion.
Any suggestion or comment?
My suggestion is to ignore the information from the website of checker plugin and use the built-in functionality of Adobe to check updates. In your DC of Adobe Reader or Adobe Acrobat DC:
Help menu > check for updates
While the site checker plugin uses data provided by Adobe, there seems to be some discrepancies between the program and the version number of plugin that have not yet been resolved.
-
Firefox 5 worked well. I installed Firefox 7, and when I ran, tabs just say «connecting to...» "and hang up. Rebooting did not help. Sites Web open correctly in IE and Chrome. Disabled all firewalls and antivirus, nothing helped. Uninstalled and reinstalled Firefox 5, everything has worked again. It was using Vista 64-bit.
Upgrading to Windows 7, uninstalled Firefox 5, installed Firefox 7, had the same problem. Uninstalled Firefox 7 completely (including profile information, I saved this information in another file), restarted the computer and installed Firefox 7 using a clean profile. Do not install add-ons, checked to make sure that all plug-ins were updated and updated plugins up-to-date.
Now when I run Firefox, I can load 3 or 4 or 5 tabs very well - after these first tabs bit are open, I can not open or refresh all other tabs - with about: config and the add-on Manager - I have to restart Firefox. The hangup does not appear to be associated with what websites I try to open, but it seems that the number is the problem. I ran through all the procedures of the FAQ, including changing the maximum number of connections to 48, and the problem does not seem to go away.
As a side note, I had this same problem when I tried to go from version 5 to version 6 more. Version 5 is the latest version which worked on my system.
The default value of the pref Network.http.Max - connections has been increased from 30 up to 256 in versions of Firefox 6 +.
Try to decrease the value of the pref Network.http.Max - connections from 255 to a setting like 30 such as used in versions of Firefox 3.
See also:
-
Can not put any desktop icon in the row of the bottom on my screen...
Windows 7 64 x
My the desktop resolution is 1920 x 108. I have my taskbar on the right and it's on auto-hide mode. I can remember, I have also put articles on the last row of my office (where the taskbar should normally be). But now, for some reason, I can't any more, or rather I can but it looks really boring like half of the image of the icon does not and therefore is not displayed just in his name. Help, please! : P(I tried spacing icon in the advanced settings, does not :/)
Hello
Thanks for posting this question in the Microsoft Community.
If I understand correctly, you are not able to arrange the icons on the bottom row of the display.
To help you to propose measures to solve the problem, I would appreciate if you could answer the following questions:
1. What is the brand and model of the computer?
2. Since when are you facing the issue?
3 are you aware of any changes made to the computer before the show?
You can try updating the video card drivers and check if it helps. Visit the manufacturer's Web site or use the link provided.
Here is a link with the right information on the desktop. You can also see the article for more information about the Office Customization.
Hope this information was helpful and let us know if you need more assistance. We will be happy to help you.
-
To update blackBerry Smartphones or not up to date - that is the question...
I'm really confused. I just got a replacement Tour from Verizon. On several occasions, when I am connected to Desktop Manager v5, a list of the updates appeared. However, I didn't do the updates at this time. Now, when I log in, I get the message that I don't need updates. The version on this phone is v4.7.1.40 (Platform 4.1.0.40). Should I update? If so, what is the best method to do so - since the Verizon site or the Blackberry site? I'm a bit wary since the last time I did the update of the os, I almost lost everything on my phone. So, I hope I have the last version/patch, etc...
Also, I have internet download manager, which includes my downloads. Is that going to be a problem - not updated must be done via the Desktop Manager software?
Thank you.
Liz aka tilly
Bifocals,
You have been very helpful once again. I does not level up to what Verizon offers it or I'm having a problem making do if necessary. Thanks for the useful JL-CMDR link - I'll upload that I do an upgrade my computer in the case.
I am a mental health professional and that you accept that Hamlet would be much better with the Blackberry - it's better than antidepressants.
Liz
-
Convert number do not show any error message on the tab out.
Hi Experts ADF,
JDEV 11.1.1.4.0
< af:inputText value = "#{row.bindings.BorrPdBeforeClosingAmt.inputValue} '"
label = "#{bindings." ClosingSectionAVO1.hints.BorrPdBeforeClosingAmt.label}.
required = "#{bindings." ClosingSectionAVO1.hints.BorrPdBeforeClosingAmt.mandatory}.
columns = "#{bindings." ClosingSectionAVO1.hints.BorrPdBeforeClosingAmt.displayWidth}.
maximumLength = "#{bindings." ClosingSectionAVO1.hints.BorrPdBeforeClosingAmt.precision}.
shortDesc = "#{bindings." ClosingSectionAVO1.hints.BorrPdBeforeClosingAmt.tooltip}.
ID = 'it8' autoSubmit = 'true '.
Validator = "#{ClosingTransactionMBean.validateNumber} '"
contentStyle = "width: 94px;" text-align: right; border: 0 none; background-image: none; »
inlineStyle = "#{row.bindings.BorrPdBeforeClosingAmt.inputValue.value > = 0 or row.bindings.BorrPdBeforeClosingAmt.inputValue.value == null?' color: black;': ' color: Red; '}" > "
< f: validator binding="#{row.bindings.BorrPdBeforeClosingAmt.validator}"/ >
< af:convertNumber groupingUsed = "false" type = "currency".
local = 'en-US' maxIntegerDigits = "16".
minFractionDigits = '2' maxFractionDigits = '2 '.
minIntegerDigits = '1' currencySymbol = "$".
/ >
< / af:inputText >
Please suggest possible solutions.
Thank you
Roy
It's because of the css, that the error is not displayed. You can see the content section of style.
contentStyle =' #{row.bindings.MtgMarketingPromoSkSeq.inputValue.value > = 0 or row.bindings.MtgMarketingPromoSkSeq.inputValue.value == null?'} border: 0 none; { background-image: none;': ' border: 1 red; "} Width: 94px; text-align: right; ' > yaar yeh css ke chalte ho raha hai.
-
The objects will not retain any color defined when the surrounding objects have their color changed
Just Illustrator CC 19.0.0 was downloaded to me. When I place a line and then set its color, close objects can also have their color changed. This includes the items in the file of until I added the line, not on the same map-art objects. It is not universal, nor is it compatible. Objects already in the file are perhaps there for months, but a change is close will change their.
The Illustrator files can still be an earlier version, and there were a number of illustrations that had black lines and text to white turned a few months back. As these illustrations are for a book, being unable to guarantee that the colors will stay together long enough to complete the illustration and export it tends to make unusable Illustrator for tasks of editions. I hope that InDesign and Photoshop do not have the same questions!
nwjh,
You must update to 19.1 (or 19.1.1 for Windows) or 19.2 (lattethe has some problems, then you can start with the former).
If 19.1 (or 19.2) does not appear, disconnect and then reconnect the creative cloud application. After that, the 19.1 update must be visible in the creative application of Cloud.
-
Mark the Date based on the value of the following line... Delivery very Urgent
Hello guys
I work as a Business Intelligenece Developer and one of my reports, I have a requirement where I have a Date column and the date should be in ascending order IE 1 - JAN - 09
2-JAN-09
1 - FEB - 09
If the date is not in ascending order, I need to mark the Date
Here are examples of data
Flag - Here if the Date is not in the order I have to report it Print N, i.e. If the date is growing Null we ignore and check the
Next Date sequence Vale line
10215 P02095
10220 P02095
P02095 10500 13 March 01
P02095 10600
P02095 30-Sep-10610 04
P02095 10960
P02095 N 10990 05 - Sep - 01
P02095 20015 1 May 02 N
P02095 20020 23 April 01 N
P02095 20030 23 April 01 N
P02095 50000
P02095 63500
P02095 64000
P02095 64100 18 December 06
P02095 64125
P02095 64400 16 March 07
P02095 64500 16 April 07
P02095 64550 17 April 07
P02095 70000 23 April 07
P02095 70100 27 April 07
P02095 80000 April 30 07
P02095 81050
P02095 81100
P02095 83000
P02095 84000
P02095 14-Sep-86000 07
86050 P02095
86230 P02095
Let me know if you have any questions I'll post it, thank youYou did not post the version of Oracle, so I'll assume that you're at least 10g. Then the MODEL would be the best solution:
with t as ( select 'P02095' col1,'10215' seq,null dt from dual union all select 'P02095','10220',null from dual union all select 'P02095','10500',to_date('13-Mar-01','dd-mon-rr') from dual union all select 'P02095','10600',null from dual union all select 'P02095','10610',to_date('30-Sep-04','dd-mon-rr') from dual union all select 'P02095','10960',null from dual union all select 'P02095','10990',to_date('05-Sep-01','dd-mon-rr') from dual union all select 'P02095','20015',to_date('01-May-02','dd-mon-rr') from dual union all select 'P02095','20020',to_date('23-Apr-01','dd-mon-rr') from dual union all select 'P02095','20030',to_date('23-Apr-01','dd-mon-rr') from dual union all select 'P02095','63500',null from dual union all select 'P02095','64000',null from dual union all select 'P02095','64100',to_date('18-Dec-06','dd-mon-rr') from dual union all select 'P02095','64125',null from dual union all select 'P02095','64400',to_date('16-Mar-07','dd-mon-rr') from dual union all select 'P02095','64500',to_date('16-Apr-07','dd-mon-rr') from dual union all select 'P02095','64550',to_date('17-Apr-07','dd-mon-rr') from dual union all select 'P02095','70000',to_date('23-Apr-07','dd-mon-rr') from dual union all select 'P02095','70100',to_date('27-Apr-07','dd-mon-rr') from dual union all select 'P02095','80000',to_date('30-Apr-07','dd-mon-rr') from dual union all select 'P02095','81050',null from dual union all select 'P02095','81100',null from dual union all select 'P02095','83000',null from dual union all select 'P02095','84000',null from dual union all select 'P02095','86000',to_date('14-Sep-07','dd-mon-rr') from dual union all select 'P02095','86050',null from dual union all select 'P02095','86230',null from dual ) select col1, seq, dt, indicator from t model dimension by(col1,row_number() over(partition by col1 order by seq) rn) measures(dt,seq,cast(null as varchar2(1)) indicator,min(dt) over(partition by col1) x) rules( x[any,rn > 1] order by rn = greatest(nvl(dt[cv(),cv()],x[cv(),cv() - 1]),x[cv(),cv() - 1]), indicator[any,any] = case when nvl(dt[cv(),cv()],x[cv(),cv()]) != x[cv(),cv()] then 'N' end ) / COL1 SEQ DT I ------ ----- --------- - P02095 10215 P02095 10220 P02095 10500 13-MAR-01 P02095 10600 P02095 10610 30-SEP-04 P02095 10960 P02095 10990 05-SEP-01 N P02095 20015 01-MAY-02 N P02095 20020 23-APR-01 N P02095 20030 23-APR-01 N P02095 63500 COL1 SEQ DT I ------ ----- --------- - P02095 64000 P02095 64100 18-DEC-06 P02095 64125 P02095 64400 16-MAR-07 P02095 64500 16-APR-07 P02095 64550 17-APR-07 P02095 70000 23-APR-07 P02095 70100 27-APR-07 P02095 80000 30-APR-07 P02095 81050 P02095 81100 COL1 SEQ DT I ------ ----- --------- - P02095 83000 P02095 84000 P02095 86000 14-SEP-07 P02095 86050 P02095 86230 27 rows selected. SQL>
SY.
Published by: Solomon Yakobson on January 23, 2010 10:31
-
Is there any use BlackBerry 10 the value of 'pushing the port'
I just got my first shoot through BIS, using an initiator to push House and a simple application of BlackBerry 10 (using the waterfalls). No real problem.
My question is what is the purpose of the port of 'push' appearing in my email Push Service assessment references under "push-enabled application (client application) Configuration Properties"
I have not used this value in any part of my code. -What for BBOS apps, or what situations BES10 or COMICS? Or is it now obsolete and they not only have it taken out of emails?
The port is used in applications BBOS, BB10 all port is managed 'behind the scenes', so you don't need to hardcode the values of any port.
Maybe you are looking for
-
C8180 don't align with the white paper
Hi just bought a used C8180. The test print shows empty for forj light scratches white and cyan, and cyan light magenta and magenta. I replaced all cartridges with new ones. I ran numerouse printhead cleaning and self-test of reports. Black print is
-
HP 6550 b: reset bios password
Hello! I HAVE A HP PROBOOK 6550 B AND I NEED TO RESET PASSWORD. CAN SOMEONE HELP ME? Thank you
-
I bought a HP 23 "Pavilion Touchsmart yesterday and everything set up with ease. I started to use the keyboard without wire supplied with the computer and the numbers on the right side does not work. I called the Office Depot where I bought the compu
-
HP C4780 will not void job after printing - prints again minutes later
After a print job, it remains in Quebec and prints on again minutes later.
-
Solution Center is necessary with officejet 8600?
Just replace an old model of printer officejet with the officejet pro 8600/premium printer. Installed HP Solution Center when I installed the officejet model age. What I still have to keep HP solution Center or can I uninstall it?