Using is prompted not displaying the results
Hi,
I have a situation here where i want to show all the live reports that are available and then by clicking on the report i will be able to to to adifferent report shows other details like the Dashboard and the Dashboard page.
I have created the report which has the report name display and then have done a "Value Interaction" -> Navigate under Column format and had mentioned the other report which shows the details of the reports.
Then created the Detailed report and have the Report name in the detailed report as "Is prompted".
But when i click on the report the details report could not fetch details of the report giving me the below error
No Results
The specified criteria didn't result in any data. This is often caused by applying filters that are too restrictive or that contain incorrect values. Please check your Request Filters and try again. The filters currently being applied are shown below.
Report Name New is equal to Entries
I figure out the problem is that if it uses equal to it is not able to fetch the data but if i choose "Contains All" from the filter in the details report it shows me the data.
But using "is prompted" does equal to. So how do i pass the report name to the Detailed report and use a SQL in the filter.
Rgds,
Amit
Hi David,
I did the trimboth, another problem which i am facing is that even after putting a filter saying "Dashboard Name not null" i am seeing blank rows in the Dashboard Name column.
I am having a reports with the below columns:
Report Name Dashboard Name Dashboard Page
Any idea why is the Dashboard Name coming blank when after putting TRIMBOTH and not null criteria.
Rgds
Amit
Similar Messages
-
SQL*plus not displaying the result of XMLELEMENT
HI,
I am using SQL*Plus: Release 10.1.0.4.2
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
When I run the following query in SQL*PLUS, I get nothing displayed. However when I run the same query connecting to the same database using SQL Developer then I get the result
SQL> select XMLELEMENT("form_id",form_id)
2 FROM collections;
XMLELEMENT("FORM_ID",FORM_ID)
In SQL developer
<form_id>101</form_id>
I set long and longchuncksize to 32K , and I change linesize, pages, but nothing helped
Is there any configuration that I have to do, so that SQL*plus display the result of “ select XMLELEMENT("form_id",form_id) query.
Appreciate you help, thanksFrom a fresh start ;) :
SQL*Plus: Release 10.1.0.4.2 - Production on Fri Feb 26 15:29:04 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> select xmlelement("value", a.object_name )
2 from all_objects a
3 where rownum <= 5;
XMLELEMENT("VALUE",A.OBJECT_NAME)
SQL> select xmlelement("value", (select b.object_name
2 from all_objects b
3 where b.object_name = a.object_name
4 )
5 )
6 from all_objects a
7 where rownum <= 5;
XMLELEMENT("VALUE",(SELECTB.OBJECT_NAMEFROMALL_OBJECTSBWHEREB.OBJECT_NAME=A.OBJE
<value>ICOL$</value>
<value>I_USER1</value>
<value>CON$</value>
<value>UNDO$</value>
<value>C_COBJ#</value>
SQL> show all
appinfo is OFF and set to "SQL*Plus"
arraysize 15
autocommit OFF
autoprint OFF
autorecovery OFF
autotrace OFF
blockterminator "." (hex 2e)
btitle OFF and is the first few characters of the next SELECT statement
cmdsep OFF
colsep " "
compatibility version NATIVE
concat "." (hex 2e)
copycommit 0
COPYTYPECHECK is ON
define "&" (hex 26)
describe DEPTH 1 LINENUM OFF INDENT ON
echo OFF
editfile "afiedt.buf"
embedded OFF
escape OFF
FEEDBACK ON for 6 or more rows
flagger OFF
flush ON
heading ON
headsep "|" (hex 7c)
instance "local"
linesize 80
lno 9
loboffset 1
logsource ""
long 80
longchunksize 80
markup HTML OFF HEAD "<style type='text/css'> body {font:10pt Arial,Helvetica,sans-serif; color:blac
newpage 1
null ""
numformat ""
numwidth 10
pagesize 14
PAUSE is OFF
pno 1
recsep WRAP
recsepchar " " (hex 20)
release 1002000300
repfooter OFF and is NULL
repheader OFF and is NULL
serveroutput OFF
shiftinout INVISIBLE
showmode OFF
spool OFF
sqlblanklines OFF
sqlcase MIXED
sqlcode 0
sqlcontinue "> "
sqlnumber ON
sqlpluscompatibility 10.1.0
sqlprefix "#" (hex 23)
sqlprompt "SQL> "
sqlterminator ";" (hex 3b)
suffix "sql"
tab ON
termout ON
timing OFF
trimout ON
trimspool OFF
ttitle OFF and is the first few characters of the next SELECT statement
underline "-" (hex 2d)
USER is "HR"
verify ON
wrap : lines will be wrapped
SQL>
{code} -
How to use outer join to display the results
I want to develop a report in which the column sequence will be as follows:
1)Item_code
2)Item_name
3)Stock
4)Pending
5)Re-order Level
6)Item_reorder_qty
I had written the query, but the problem is all the products does not get displayed. The products are more than 700. But after running the query, only 364 gets displayed.
How i can make use of outer join in the following statements :
AND ITEM_CODE = LCS_ITEM_CODE
AND ITEM_CODE = PI_ITEM_CODE
AND LCS_ITEM_CODE = PI_ITEM_CODE
in the below given query to solve this.
SELECT
ITEM_CODE,
ITEM_NAME,
((LCS_STK_QTY_BU + LCS_RCVD_QTY_BU - LCS_ISSD_QTY_BU- LCS_REJECT_QTY_BU)/IU_MAX_LOOSE_1)STK ,
SUM(TO_NUMBER(PI_QTY||'.'||PI_QTY_LS) - (PI_GI_QTY_BU/IU_CONV_FACTOR/IU_MAX_LOOSE_1))PNDG,
ITEM_RORD_LVL,
ITEM_RORD_QTY
FROM
OM_ITEM,
OM_ITEM_UOM,
OT_PO_HEAD,
OT_PO_ITEM,
OS_LOCN_CURR_STK
WHERE (ITEM_UOM_CODE = IU_UOM_CODE AND ITEM_CODE = IU_ITEM_CODE)
AND ITEM_CODE = LCS_ITEM_CODE
AND ITEM_CODE = PI_ITEM_CODE
AND LCS_ITEM_CODE = PI_ITEM_CODE
AND LCS_LOCN_CODE ='RM'
AND PI_PH_SYS_ID = PH_SYS_ID
GROUP BY ITEM_CODE,ITEM_NAME,LCS_STK_QTY_BU,LCS_RCVD_QTY_BU,LCS_ISSD_QTY_BU,LCS_REJECT_QTY_BU,IU_MAX_LOOSE_1,ITEM_RORD_LVL,ITEM_RORD_QTY
ORDER BY ITEM_CODE ASC
YogeshAs you have no table aliases I can't tell what columns relate to which tables on your join conditions.
Can you not just put (+) next to the outer joined columns you require on the where clause? Or perhaps consider using ANSI syntax for the joins such as <tableA> LEFT OUTER JOIN <tableB> ON (<join conditions>) -
OBIEE Answers does not display the result set of a report query
Hi,
We have a pivot table type of report in Oracle Business Intelligence Enterprise Edition v.10.1.3.3.2 Answers that has the following characteristics:
3 Pages
3 Sections , 4 Columns
18363 Rows in the result set
As per the NQQuery.log, the query for this report executes successfully resulting in 18363 rows. However, nothing comes up in the display on Answers. Moreover, no error is reported. The instanceconfig.xml file has the following setting:
<PivotView>
<CubeMaxRecords>30000</CubeMaxRecords>
<CubeMaxPopulatedCells>300000</CubeMaxPopulatedCells>
</PivotView>
Even with these settings, Answers just returns a blank page - nothing is displayed in the name of the result set of the report query. Has anyone encountered this problem scenario before?
Any help is much appreciated.
Thanks,
PiyushHi Fiston / Pradeep,
Thanks for your inputs. A few points to note:
-> I am actually not getting any error message in answers or the NQQuery log. Moreover I am not getting any errors related to "query governor limit exceeding in cube generation" also.
-> I have other pivot table type of reports in the same repository that work fine. In fact the report which has this issue even works sometimes - what actually is happening is that if I alter the number of sections from 3 to 4, then the result set changes from 14755 Rows to 18363 Rows and as per the NQQuery.log in both cases the query completes successfully. However, when the result set has 14755 rows, I get to see the output in Answers; however when the result set is 18636 rows, the Answers screen just goes blank and does not show any output or error. This makes me believe that there is some parameter in instanceconfig or the NQSconfig file - I have tried a lot of changes but nothing works !
Any help is much appreciated.
Best Regards,
Piyush -
When rownum used it is not displaying the rows
iam using the following query
select last_logged_in,user_name_code from (select last_logged_in, user_name_code,hc_pro_first_name,hc_pro_last_name,health_center_name center_of_work,locked_yn account_status,hc_pro_user_name.deleted_yn deleted_yn from (select pm_user_name_code from pm_role_assgmt where pm_user_name_code in (select user_name_code from hc_pro_user_name where user_type_code=(select user_type_code from user_type where user_type='PROGRAM MANAGER')) and user_type_code=(select user_type_code from user_type where user_type='CARE TAKER'))a,hc_professional,hc_pro_user_name,health_center where hc_professional.hc_pro_code=hc_pro_user_name.hc_pro_code and hc_professional.health_center_code=health_center.health_center_code(+) and (hc_pro_user_name.deleted_yn='N' OR hc_pro_user_name.deleted_yn='n') and user_name_code=a.pm_user_name_code and hc_professional.health_center_code in (select health_center_code from hc_professional,hc_pro_user_name where user_name='pmanager' and hc_professional.hc_pro_code=hc_pro_user_name.hc_pro_code) order by hc_pro_first_name)
it works fine and yeilds me with rows.
when i add rownum to the above query it returns no rows.
can any one help on thisi used rownum in the select query like
select last_logged_in,user_name_code,rownum rn from (select last_logged_in, user_name_code,hc_pro_first_name,hc_pro_last_name,health_center_name center_of_work,locked_yn account_status,hc_pro_user_name.deleted_yn deleted_yn from (select pm_user_name_code from pm_role_assgmt where pm_user_name_code in (select user_name_code from hc_pro_user_name where user_type_code=(select user_type_code from user_type where user_type='PROGRAM MANAGER')) and user_type_code=(select user_type_code from user_type where user_type='CARE TAKER'))a,hc_professional,hc_pro_user_name,health_center where hc_professional.hc_pro_code=hc_pro_user_name.hc_pro_code and hc_professional.health_center_code=health_center.health_center_code(+) and (hc_pro_user_name.deleted_yn='N' OR hc_pro_user_name.deleted_yn='n') and user_name_code=a.pm_user_name_code and hc_professional.health_center_code in (select health_center_code from hc_professional,hc_pro_user_name where user_name='pmanager' and hc_professional.hc_pro_code=hc_pro_user_name.hc_pro_code) order by hc_pro_first_name) -
I can not display the results of Signing onto this web site.
WHen I correctly fill this web page
connect.elanfinancialservices.com
I get directed to the following page, but screen is blank.
https://connect.elanfinancialservices.com/access/oblix/apps/webgate/bin/webgate.dll?/portal/loginSuccess.aspx.
I am apparently loged in. I spoke with Elan and they said that they thought that only IE would work.
Thanks.You purchased a phone that was most likely reported stolen or was replaced and then illegally re-sold.
If you purchased it directly from Apple, contact the Apple Store you purchased it at. Otherwise, go back to whoever you purchased it from. -
How do i type in tamil in microsoft office for mac? my previous tamil documents from my pc are not displaying the font correctly, nor am i able to use the inbuilt mac tamil font to write in microsoft office
You should probalby post your question on Microsoft's own forums for their Mac software since it's their stuff you're asking about:
http://answers.microsoft.com/en-us/mac -
Strange scenario,Oracle can not display the data in mysql correctly
I use Heterogeneous Service+ODBC to achieve "oracle access mysql"(any other method?),and now i find Oracle can not display the data in mysql correctly:
-------mysql------------
mysql> create table tst(id int,name varchar(10));
Query OK, 0 rows affected (0.00 sec)
mysql> insert into tst values(1,'a');
Query OK, 1 row affected (0.00 sec)
mysql> select * from tst;
------------+
| id | name |
------------+
| 1 | a |
------------+
1 row in set (0.00 sec)
mysql> show create table tst\G
*************************** 1. row ***************************
Table: tst
Create Table: CREATE TABLE `tst` (
`id` int(11) DEFAULT NULL,
`name` varchar(10) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8
1 row in set (0.00 sec)
-------------oracle ------------------
SQL> select count(*) from "tst"@mysql;
COUNT(*)
49
SQL> select * from "tst"@mysql;
id
1
SQL> desc "tst"@mysql;
Name Null? Type
id NUMBER(10)You can make the following query on the result page:
"select * from the_table where movietitle = ? and cinema = ?"
then you set movietitle and cinema to those which the user selected. If the resultset contains more than 0 rows, that means the movie is available.
Below is the sample code, it assumes you have a connection to the database:
PreparedStatement stat = myConnection.prepareStatement("select * from the_table where movietitle = ? and cinema = ?");
stat.setString(1, usersMovieTitleSelection);
stat.setString(2, usersCinemaSelection);
ResultSet res = stat.executeQuery();
if (res.next()) {
out.print("The movie is available");
} else {
out.print("The movie is not available");
}Now just add that to your JSP page. Enjoy ! =) -
Gorgeous Hello All,
Has anyone encountered the below-said show- stopper. Another BIG TIME help required, will help me in tremendous fashion.
Am using Adobe RoboHelp, Version 10 and IE version being 10.
In my local machine :
1.)I have completed my technical writing courtesy Design editor
2.)Generating chm File : View -> Pods –> Single Source Layouts -> Right Click on Microsoft HTML Help -> Tagged Set as Primary Layout
3.)Generating Primary Layout : File -> Generate -> Primary Layout (Microsoft HTML Help)…
4.)Viewing Primary Layout : File -> View -> Primary Layout
Everything works FANTASTICALLY till here with the required output (as Hide, Back, Refresh, Home, Print, Options, Contents, Index, Search, Glossary and with the data contents)
Show Stopper, At my Application Server :
5.)I copy the entire robohelp project folder from my local machine to my application Server path
6.)My Application has been developed in ASP .NET, Version 4.0.
7.)Help link has been created in this application wherein here the file name of < >.chm has been linked in the code to be read from the Server’s RoboHelp project folder\!SSL!\ Microsoft_HTML_Help\
8.)I login into my above-said application -> click on the Help page -> Displays the required structure /buttons as Hide, Back, Refresh, Home, Print, Options, Contents, Index, Search, Glossary
a.)Clicking on any of the Books or Topics appearing beneath Contents : The System prompts out with error cautionary message called “ Navigation to the webpage was cancelled. What you can try: Retype the address ”
*** This is a huge SHOW-STOPPER. I spent plenty of hours on this, but unable to deciper with a solution at all) ***
( Note : Am able to directly open and read the required data contents by Clicking on any of the Books or Topics appearing beneath Contents from Server’s RoboHelp project folder\!SSL!\ Microsoft_HTML_Help\ < >.chm )
Why is the RoboHelp not displaying the required data contents of <>.chm when linked as Help in my Application ?
Cheese – Vipin NambiarIf you looked at the error message and searched the forum, you should find the answer as this is a problem that started in 2005. You should not run CHM files from a server and cannot without editing the users registry. See the page below.
http://www.grainge.org/pages/authoring/chm_mspatch/896358.htm
All along your questions have been based on webhelp, why suddenly are we going go CHMs.
See Snippets on my site for the correct form of help to use in different scenarios.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
KE5Z - Actual Line Item report freezes before displaying the result
Hi,
We have a situation. We have a Z report in Finance. We have linked KE5Z to this Z report using the Report Painter along with 15 others. When we run the Z report it works fine and displays result. In the displayed result, if we futher drill down for the actual line items for a particular profit center, system freezes. It does not display any result even after a long wait.
We did our analysis and found that the program takes the profit center number range from the least available in the profit center group to highest available in the profit center group and starts checking for every line item in it. This happens when the profit center group has more than 50 profit centers in them. When we run KE5Z tcode individually, it runs fine.
We are not sure how to go about finding a way out of it.
Has anyone faced such issue? Do you know of any OSS note that can help us? or If anyone of you can think of a solution or a way to go about it?
Your help on this is much appriciated.
Regards,
Mukund SHi,
Any pointers to this will be appriciated...
Regards,
Mukund S -
Altavista will not display search results
altavista us will not display search results. altavista canada works fine. On us site results will display in no style page but not in basic page style. The page comes up blank. This may have been caused by delta search. I think I have rid my computer of delta? Reloaded firefox. I use norton 360 and have run registry clean up and virus scans. Also cleaned explorer. In explorer the u.s. altavista works ok that is why I think it something to do with firefox and delta search showed up at the same time unwanted and forced a change on my home page. Have cleared computer of what delta files I could find my have something in the registry but I would not know what to look for or to do with. I am running xp
In a round about way you solved my problem cor-el ! At the end of standard diagnostic there was mention of malware so I ran malwarebytes before running profile manager. malwarebytes found 21 items some in the registry. deleted these items and tried altavista us again and to my surprise it is working ok now.I thought norton 360 would catch such things but I guess it doesn't ! will keep and run a malware program from now on. thank you for your help.
-
Search button not displaying search results
I have created a page where you enter a string and click a search button and it will display the file that contains that string. It works on one page but not any of the other pages I have created. I went to dkubiceck page and copied the code for the search button there.
This is the code I used to run the query to bring up the document information:
select score(1) relevance, filename,transcript_id,
dbms_lob.getlength("trans_document") "trans_document"
from transcript_documents
where contains (trans_document, :P20_SEARCH, 1) > 0
order by 1 desc
I can run the script in sql workshop and it returns information but I can't get the page to display anything so I think it has something to do with the search button. Does it have something to do with the button request. I have the request as go which is what the Oracle Text for APEX tutorial indicates. I am at a loss as to why it is working in one place and not in another. HELP!!!!!!!I used the Using Oracle Application Express to Build
Oracle Text Web Applications An Oracle White Paper documentation to create this button. The instructions to create the button is below.
http://www.oracle.com/technology/products/database/application_express/pdf/apex_text_application_v1.6.pdf
To create a button to submit the search:
1. Under Buttons, click the create icon ().
2. For Region, select Search Terms(s).
3. For Task, select Create a button displayed among this region’s items.
4. For Button Name, enter P1_FIND.
5. For Label, enter Find.
6. For Button Style, select HTML Button.
Run your page using the run page icon () and your development username and password. Your page should look similar to the following figure.
This was the instructions to create the query region:
To create a query region:
1. Navigate back to the Page Definition for the Search page. You can do this by using the edit links at the bottom of the running page, Edit Page 1.
2. Under Regions, click the create icon ().
3. For Region Type, select Report.
4. For Report Implementation, select SQL Report.
5. For Title, enter Results.
Using Oracle Application Express to Build Oracle Text Web Applications Page 9
6. Enter the following SQL query:
select score(1) relevance, doc_title, doc_url
from htmldb_documentation
where CONTAINS (doc_url, :P1_SEARCH, 1) > 0
order by 1 desc
7. For Display Conditions, for Condition Type, select Value of Item in Expression 1 is NOT NULL.
8. For Expression 1, enter P1_SEARCH.
This condition specifies to only display the Results region if a term is entered as a search criterion.
Run the page and enter a search criterion for Term(s). Your results should look similar to the following figure.
Figure 2.0
The only thing I added to the query above is a dbms_doc.getlength statement to be able to open a link to the document.
The first 2 times I created this on a page it worked just fine. But now no matter what conputer or schema or application I create this button in it won't display the results. I can admit that I have no experience creating a button with a different request than what comes up in the wizard. And the documentation that I found on creating buttons was of no help.
I have not made any changes to anything in the wizard so can someone guide me as to how to create a button that will allow me to search a document using Oracle Text as described above -
When I ask for help finding bookmarks, the answer tells me to click on bookmarks as shown in the illustration, but there is no such line displayed on my computer.
'''''"Firefox does not display the basic menu line File Edit View etc."''''': That is the Menu Bar; see below.
'''<u>Menu Bar</u>''' (File, Edit, View, History, Bookmarks, Tools, Help)<br /> <u>Firefox 3.6.x versions allow the user to hide the Menu Bar.</u><br />
*Tap the ALT key or the F10 key, Menu Bar will display, click View, click Toolbars, click Menu Bar to place a check mark next to it, '''''OR'''''
*Press and hold the ALT key while pressing the letters VTM on your keyboard, then release the ALT key
*See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
'''<u>Other Toolbars</u>''', see: https://support.mozilla.com/en-US/kb/Back+and+forward+or+other+toolbar+items+are+missing<br />
'''<u>Status Bar</u>''': click View, click Status Bar to place a check mark<br />
'''<u>Full Screen Mode</u>''': If you have no Toolbars or Tab Bar: Press F11 (F11 is an on/off toggle). See: http://kb.mozillazine.org/Netbooks#Full_screen<br />
Also see: http://kb.mozillazine.org/Toolbar_customization_-_Firefox#Restoring_missing_menu_or_other_toolbars
<br />
<br />
'''Other items that need your attention'''
The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post. You can also see your plugins from the Firefox menu, Tools > Add-ons > Plugins.<br />
<br />
*Adobe PDF Plug-In For Firefox and Netscape
**Current versions are 9.4.2 and 10.0.1 (aka Reader X)
**More info about version 10 (aka Reader X)
***New Adobe Reader X (version 10) with Protected Mode was released 2010-11-19
***See: http://www.securityweek.com/adobe-releases-acrobat-reader-x-protected-mode
#'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
#*'''Note: plugin check page does not have information on all plugin versions'''
#'''Update Adobe Reader (PDF plugin):'''
#*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
#**Open the Adobe Reader program from your Programs list
#**Click Help > Check for Updates
#**Follow the prompts for updating
#**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
#*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
#**Use the links below to avoid getting the troublesome "getplus" Adobe Download Manager and other "extras" you may not want
#**Use Firefox to download and SAVE the installer to your hard drive from the appropriate link below
#**Click "Save to File"; save to your Desktop (so you can find it)
#**After download completes, close Firefox
#**Click the installer you just downloaded and allow the install to continue
#***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
#**'''<u>Download link</u>''': ftp://ftp.adobe.com/pub/adobe/reader/
#***Choose your OS
#***Choose the latest #.x version (example 9.x, for version 9)
#***Choose the highest number version listed
#****NOTE: 10.x is the new Adobe Reader X (Windows and Mac only as of this posting)
#***Choose your language
#***Download the file, SAVE it to your hard drive, when complete, close Firefox, click on the installer you just downloaded and let it install.
#***Windows: choose the .exe file; Mac: choose the .dmg file
#*Using either of the links below will force you to install the "getPlus" Adobe Download Manager. Also be sure to uncheck the McAfee Scanner if you do not want the link forcibly installed on your desktop
#**''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
#**Also see: https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox (do not use the link on this page for downloading; you may get the troublesome "getplus" Adobe Download Manager (Adobe DLM) and other "extras")
#*After the installation, start Firefox and check your version again. -
2.1 EA2 does not display query results, query works fine in sqlplus
2.1 EA2/Windows XP 32-bit
The following query does not show any results for Total(GB) and Free(GB) columns. The diskgroup name shows correctly.
SELECT
DG.name ,
ROUND(SUM(DSK.TOTAL_MB)/1024,2) "Total (GB)",
round(SUM(DSK.FREE_MB)/1024,2) "Free (GB)"
FROM
V$ASM_DISK DSK,
V$ASM_DISKGROUP DG
WHERE
DSK.GROUP_NUMBER=DG.GROUP_NUMBER
group by DG.name;
The query works fine when run from SQL*Plus:
SQL> SELECT
2 DG.name ,
3 ROUND(SUM(DSK.TOTAL_MB)/1024,2) "Total (GB)",
4 round(SUM(DSK.FREE_MB)/1024,2) "Free (GB)"
5 FROM
6 V$ASM_DISK DSK,
7 V$ASM_DISKGROUP DG
8 WHERE
9 DSK.GROUP_NUMBER=DG.GROUP_NUMBER
10 GROUP BY DG.name;
NAME Total (GB) Free (GB)
DG1 707.98 162.32
DG2 134.84 122.68
SQL>
This must be something unique to SQLDeveloper. I tested in 2.1 EA1 and 1.5.5.59.69 and the query does not show results for the Total (GB) and Free (GB) columns.I would like to update the problem. It seems like when SQLDeveloper is connected to ASM instance, it has trouble using the divide operator (/). For example, the following query works fine:
SELECT
name,
TOTAL_MB
FROM
V$ASM_DISKGROUP;
But if I try to divide the TOTAL_MB by any number, the column shows blank (the column is blank, not NULL). So, if I try to run the following query, the output will just display diskgroup names. The TOTAL_MB/1024 column shows blank.
SELECT
name,
TOTAL_MB/1024
FROM
V$ASM_DISKGROUP;
If I run the same query in SQL*Plus from the same desktop using the same TNS alias, it works just fine which tells me that it is a SQLDeveloper problem.
When I am connected to a regular database, then the problem does not show up and SQLDeveloper is able to display the results even when I am using the divide operator (/). -
How to Read the one Source Column data and Display the Results
Hi All,
I have one PR_ProjectType Column in my Mastertable,Based on that Column we need to reed the column data and Display the Results
Ex:
Pr_ProjectType
AD,AM
AD
AM
AD,AM,TS,CS.OT,TS
AD,AM
like that data will come now we need 1. Ad,AM then same we need 2. AD also same we need 3. AM also we need
4.AD,AM,TS,CS.OT,TS in this string we need AD,AM only.
this logic we need we have thousand of data in the table.Please help this is urgent issue
vasuHi Vasu,
Based on your description, you want to eliminate the substrings (eliminated by comma) that are not AD or AM in each value of the column. Personally, I don’t think this can be done by just using an expression in the Derived Column. To achieve your goal, here
are two approaches for your reference:
Method 1: On the query level. Replace the target substrings with different integer characters, and create a function to eliminate non-numeric characters, then replace the integer characters with the corresponding substrings. The statements
for the custom function is as follows:
CREATE FUNCTION dbo.udf_GetNumeric
(@strAlphaNumeric VARCHAR(256))
RETURNS VARCHAR(256)
AS
BEGIN
DECLARE @intAlpha INT
SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric)
BEGIN
WHILE @intAlpha > 0
BEGIN
SET @strAlphaNumeric = STUFF(@strAlphaNumeric, @intAlpha, 1, '' )
SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric )
END
END
RETURN ISNULL(@strAlphaNumeric,0)
END
GO
The SQL commands used in the OLE DB Source is like:
SELECT
ID, REPLACE(REPLACE(REPLACE(REPLACE(dbo.udf_GetNumeric(REPLACE(REPLACE(REPLACE(REPLACE([ProjectType],'AD,',1),'AM,',2),'AD',3),'AM',4)),4,'AM'),3,'AD'),2,'AM,'),1,'AD,')
FROM MyTable
Method 2: Using a Script Component. Add a Derived Column Transform to replace the target substrings as method 1, use Regex in script to remove all non-numeric characters from the string, add another Derived Column to replace the integer
characters to the corresponding substring. The script is as follows:
using System.Text.RegularExpressions;
Row.OutProjectType= Regex.Replace(Row.ProjectType, "[^.0-9]", "");
References:
http://blog.sqlauthority.com/2008/10/14/sql-server-get-numeric-value-from-alpha-numeric-string-udf-for-get-numeric-numbers-only/
http://labs.kaliko.com/2009/09/c-remove-all-non-numeric-characters.html
Regards,
Mike Yin
TechNet Community Support
Maybe you are looking for
-
On a Lenovo laptop, completed the download and restart and got the video which proceeds very slowly because this is Africa! I have learned never to watch videos here because it blows all my modem credit in a short time. Now I don't seem to have Firef
-
Serial Number. Production Order Confirmation. GR. UD. Sales Delivery
Hi Gurus, Please help on this issue to get any user exits ..... As part of Serial number management, we have a certain issues on serial number confirmation, goods receipt from production order and quality inspection with UD. Master data: Finished pro
-
Can't install Oracle VM Agent 3.3.1 on T3-1 w/ Solaris 11.2
Solaris and SPARC VM NOOB Alert!!! When attempting to run the installer (./install) as root for the Oracle VM Agent 3.3.1 for SPARC (from ovs-ldoms-3.3.1-b1065.tar.gz) I receive the following dependency errors. This is a fresh install of the OS (Sol
-
Deleted line item appears in BI report
Helllo Gurus, How can we take care of deleted line items or sales order in sap BI. One of teh user came up to me and said even though i delete the line item in ECC but i am able to see in BI report.I thought it has something to do with ROCANCEL Field
-
Is it possible to reinstall iMovie using the Mac AppStore?
Due to a problem, I had to have my HDD replaced. I reinstalled the system but now, I can't update iMovie. Can I delete it and reinstall it via the MAS?