Need Help:Oracle Portal get LOB value
i'm new to use LOB data types, i don't know how to insert or select it. I'm using Oracle10G and Oracle Portal 9.0.4.
is anyone there can help me ?
Hi,
One other question.
The tns entry you posted looks like this -
*MOF_Test =
* (DESCRIPTION=*
* (ADDRESS=*
* (PROTOCOL=TCP)(HOST=10.62.108.84)(PORT=1521))*
* (CONNECT_DATA=*
* (SID=dg4odbc)*
* (HS=OK)*
Do the asterisks represent spaces or line ends ?
The format of the entry should be that the first line starts at the beginning of the line and there should be at least one space at the beginning of the other lines, so it should look like -
MOF_Test =
<space> (DESCRIPTION=
<space> (ADDRESS=
<space> (PROTOCOL=TCP)(HOST=10.62.108.84)(PORT=1521))
<space> (CONNECT_DATA=
<space> (SID=dg4odbc)
<space> )
<space> (HS=OK)
<space>)
Regards,
Mike
Similar Messages
-
Hi, I have this green mark (with pointing arrow looks like a link) on some words show on my window screen when I open a web page, I wonder if it is a virus link or such. Need help how to get rid of it. Here's the example:
WING
GAMES
MAJORITY
ThanksIf the third link you posted (the link containing the word "majority") does not look like the following then you inadvertently installed adware.
That particular page should resemble the following:
The word "majority" in the third paragraph should not be a link and should not have the green icon associated with it.
To learn how this may have occurred, and how to prevent it from occurring in the future, read How to install adware
Most so-called "news" websites are nothing more than entertainment outlets that cater to prurient interests, and contain advertisements that leave the user about three clicks away from installing junk. If you decide to frequent those websites, Safari's "Reader" feature helps minimize that exposure.
Try it: -
Need help with the session state value items.
I need help with the session state value items.
Trigger is created (on After delete, insert action) on table A.
When insert in table B at least one row, then trigger update value to 'Y'
in table A.
When delete all rows from a table B,, then trigger update value to 'N'
in table A.
In detail report changes are visible, but the trigger replacement value is not set in session value.
How can I implement this?You'll have to create a process which runs after your database update process that does a query and loads the result into your page item.
For example
SELECT YN_COLUMN
FROM My_TABLE
INTO My_Page_Item
WHERE Key_value = My_Page_Item_Holding_Key_ValueThe DML process will only return key values after updating, such as an ID primary key updated by a sequence in a trigger.
If the value is showing in a report, make sure the report refreshes on reload of the page.
Edited by: Bob37 on Dec 6, 2011 10:36 AM -
Need help with Portal Themes -- Please help
I need help with Portal Themes. I have read every document I can find but I am having no luck. All I want to do is change the colors for the Exceptions on one of my queries. I have created my own Portal Theme where I have changed the colors but I do not know how to assign my newly-created Portal Theme to my query. Can someone please give me the detailed steps on how to do this? Please help because this is driving me crazy.
Thanks.
RyanHi,
Refer
Exceptions - How to change the colors
This may help.
Thanks,
JituK -
Need Help with Portal security
Hi All,
I'm using the Oracle Portal builder to post some links (Dsicoverer reports links) on a portal. Is there any way where only a certain group of people have access to those reports on the portal? Please need help.
Thanksthinkingeye wrote:
Thanks Roberto
Is there any way i can do that at the report level? Create a password and give it to them, so that whent they click on the link they will be asked the password and once they enter the password they can view the report.If you wish to do it for discoverer portlets or reports, you may also use private connections and the access and editing controls that come with discoverer reports on discoverer portlet provider.
thx,
AMN -
I need help trying to get my email address
I need my email address to my skype name brittany.cifers1. I havent logged in a long time so i dont remember any of it
Hi, Brittany_Cifers, and welcome to the Community,
We here in the Community do not have access to Skype account records; only Skype Customer Service does. Therefore, if you cannot access your account to re-set your password and change your registered e-mail address, as strange as it may seem, you will need to create a new account in order to contact them.
Skype offers help and support through ... :
Email and Live chat (for eligible customers)
To get help with the issue you’re experiencing:
Go to the Support request page.
Select the topic you need help with and the problem you’re experiencing. Some information that might help with your problem is displayed.
If you still feel that the information doesn’t help, click the Continue support request button at the bottom of the screen.
Select your contact method. We recommend that you check our Support Network first.
If you chose email, enter your details, describe your problem, and then click Send support request. We'll get back to you as soon as we can.
We don’t currently provide telephone support.
Regards,
Elaine
Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often! -
What version of JDeveloper I need for Oracle Portal portlets
What version of JDeveloper I need for building Portlets who work
on Oracle Portal????
ThanksAparently only up to 10.1.2 is supported. :(
-
What version of JDeveloper I need for Oracle Portal portals
What version of JDeveloper I need for building Portlets who work
on Oracle Portal????
ThanksAparently only up to 10.1.2 is supported. :(
-
Need help installing keep getting error message when i install program
i download the beta version on my android epic phone by sprint and when i go to install the program it shows a screen installing then an error message pops up almost immediately and say that application was not installed how do i fix this i have tried to re-download it and install it again but it gives the same error message every time now i have also allowed outside markets apps to download on my phone and i still get this error message or what do i need to do to get it installed on my phone?
Firefox might not be able to run on your mobile . See [https://wiki.mozilla.org/Mobile/Platforms/Android#System_Requirements System requirements for Android mobile] and [https://wiki.mozilla.org/Mobile/Platforms/Android#Known_Issues Known issues for mobiles]
-
Seriously need help but cant get through via phone
I am seriously needing help spend almost all week chatting with verizon via my verizon however nobody could come up with an answer for my problem it seems that I have been locked out of using the online payment option and the lady says it does not show that on her end I need this addressed asap but the lines have been down for days according to the store I just spoke with. is there someone in finance or billing that could call me? I have several things I am trying to do 1. add an account manager 2. make a payment arrangement for a week out ( I normally do this as my payday falls odd) 3. gain access to online payments
Take each of the following steps that you haven't already tried. If the problem isn't solved, ask for further instructions.
1. Are the current date (including the year) and time shown on your system clock? If not, correct them and test.
2. Disable any third-party firewall, "security" software, or network filter.
3. In some versions of OS X, Parental Controls has a bug that prevents loading of secure websites. Turn it off.
4. The process by which OS X checks the validity of root SSL certificates doesn't work behind the authenticating SOCKS proxies used on some enterprise networks. If applicable, contact your network administrator. The proxy server may need to have its settings changed. -
HT1212 I NEED HELP HOW CAN GET IT
i need help my iphone is lock
You didn't really specify your issue but I'll assume you need this help article here:
iOS: Forgotten passcode or device disabled after entering wrong passcode
http://support.apple.com/kb/ht1212 -
Need HELP :: Oracle 10g for Windows 7 Professional 64bit
I am trying to install Oracle 10g for my Laptop (Windows 7 64bit)and i am getting error message: ERROR Starting Database Control.
Here are last few lines from emconfig.log file ---
Jan 4, 2012 2:47:59 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Enter Enterprise Manager Root Password :
******** **** Certificate was added to keystore
Certificate reply was installed in keystore
Jan 4, 2012 2:47:59 PM oracle.sysman.emcp.util.FileUtil printFileToLog
CONFIG: Printing file(After Secure DBConsole): C:\oracle\product\10.2.0\db_1\oc4j\j2ee\OC4J_DBConsole_NCI-01874908-L.nci.nih.gov_ORA10G\config\http-web-site.xml
<?xml version = '1.0' standalone = 'yes'?>
<!DOCTYPE web-site PUBLIC "OracleAS XML Web-site" "http://xmlns.oracle.com/ias/dtds/web-site-9_04.dtd">
<web-site port="1158" display-name="OC4J Java HTTP Web Site" secure="TRUE">
<!-- The default web-app for this site, bound to the root -->
<default-web-app application="default" name="defaultWebApp"/>
<web-app application="default" name="dms0" root="/dms0"/>
<web-app application="default" name="dms" root="/dmsoc4j"/>
<web-app application="em" name="em" load-on-startup="true" root="/em" shared="true" />
<!-- Access Log, where requests are logged to -->
<access-log path="../log/http-web-access.log"/>
<!-- Uncomment this if you want to use ODL logging capabilities
<odl-access-log path="../log/http-web-access" max-file-size="1000" max-directory-size="10000"/>
-->
<ssl-config needs-client-auth="false" keystore="C:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_NCI-01874908-L.nci.nih.gov_ORA10G/config/server/keystore.test" keystore-password="FE7337F1A5D238357C9C6819AFC4F812" />
</web-site>
Jan 4, 2012 2:47:59 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Jan 4, 2012 2:47:59 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
CONFIG: Securing Database Control completed successfully .
Jan 4, 2012 2:47:59 PM oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
Jan 4, 2012 2:47:59 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Jan 4, 2012 2:47:59 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: cmdType: 0
Jan 4, 2012 2:47:59 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Starting Windows service...OracleDBConsoleORA10G
Jan 4, 2012 2:47:59 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:48:09 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:48:19 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:48:29 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:48:39 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:48:49 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:48:59 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:49:09 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:49:19 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:49:29 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:49:39 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:49:49 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:49:59 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:50:09 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:50:19 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:50:29 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:50:39 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:50:49 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:50:59 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:51:09 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:51:19 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:51:29 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:51:39 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:51:49 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:51:59 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:52:09 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:52:19 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:52:29 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:52:39 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:52:49 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:52:59 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:53:09 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:53:19 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:53:29 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:53:39 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:53:49 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:53:59 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:54:09 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:54:19 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:54:29 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:54:39 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:54:49 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:54:59 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:55:09 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:55:19 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:55:29 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:55:39 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:55:49 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:55:59 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:56:09 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:56:19 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Waiting for service 'OracleDBConsoleORA10G' to fully start
Jan 4, 2012 2:56:19 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
CONFIG: Initialization failure for service during start
Jan 4, 2012 2:56:19 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Error starting Database Control
Refer to the log file at C:\oracle\product\10.2.0\db_1\cfgtoollogs\dbca\ORA10G\emConfig.log for more details.
Jan 4, 2012 2:56:19 PM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:646)
at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:224)
at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:193)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:184)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:436)
at java.lang.Thread.run(Thread.java:595)Pl identify which exact version of 10g is being installed.
Only 10.2.0.5 is supported/certified. The install steps are here - http://docs.oracle.com/cd/B19306_01/relnotes.102/b15680/toc.htm#BABEBBJF
MOS Doc 1222603.1 (Enterprise Manager Database Control Configuration - Recovering From Errors Due to CA Expiry on Oracle Database 10.2.0.4 or 10.2.0.5 [Video]) may be relevant
HTH
Srini -
Need help in clearing an invalid value entered in an inputLOV popup.
Hi
I am using the JDeveloper Studio Edition Version 11.1.1.1.0
Our application uses the Springs Framework with ADF. We used an af:inputListOfValues component coupled with a disabled af:inputText component to make it like a name-value pair. As soon as you enter a valid value in the inputLOV component and tab out, the description corresponding to it will be populated(partial trigger) in the disabled inputText component. There is an inputListOfValues model object in our backing bean which feeds the list of values to choose from.
When we enter an invalid value in the lov and tab out, the popup with all the possible values comes up, which is correct and expected. Now, when the user clicks on "Cancel" in the popup, we are supposed to clear the invalid value entered in the lov component. We tried all possible approaches known to use including AOP(Aspect Oriented Programming) to intercept the call when the user clicks on the "Cancel" button but we just could not make it work.
Does anyone know if a way to clear the entered value upon clicking cancel?
Please let me know if more details are required about our implementation to answer my question.
Thanks,
ManojGodwin wrote:
when ever the Schema is updated the table should not get affected.. Is there a way to solve my problem.. If you change the XML schema associated with the table, then old data won't be valid anymore : how do you want to deal with that?
Besides, you chose to create the table with Object-Relational storage, you have to understand how it works.
When you register the schema with genTypes = true, Oracle creates a set of object types that map the XML structure to SQL.
In this case, old data will not only be invalid but also won't fit in the new structure.
Do you just need a table for storing valid XML documents according to the current schema?
If that is so, maybe unstructured CLOB storage is best suited here, with a trigger to validate new rows inserted.
See this thread for an overview of schema validation : {thread:id=416458}
And of course, Oracle documentation :
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb05sto.htm#ADXDB0600
For specific questions about XML DB (schema validation, types of storage etc.), you can post here : {forum:id=34} -
Need Help in Portal Application Project
I am developing a Portal Application Project where i need to use AJAX to show database values in the main JSP.
Now while doing an AJAX call (the open method) i need to pass a server pages' URL.
I have a second jsp file in my application(pagelet/second.jsp) which will do all the database functions and writes the values to stream.
Now i am confused how to call this second jsp from my first jsp.
Please help !!!
SAP WAS 7.0I have a second jsp file in my application(pagelet/second.jsp) which will do all the database functions and writes the values to stream.
May I ask why you are using a JSP page for this? The answer written back will include some standard SAP Portal HTML code that you don't need in the AJAX response (like: <html>...)
I'm using portal components as AJAX "receiver" and not JSP pages, simply because it gives me greater control over the response::
<component name="Ajax">
<component-config>
<property name="ClassName" value="xyz.Ajax"/>
</component-config>
<component-profile/>
</component>
And in the Java class:
public class Ajax extends AbstractPortalComponent {
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response) {
br,
Tobias -
Oracle Procedure- Get aggrigate value based on comparing two columns
Hi All,
I have written a Procedure which accepts one input parameter and returns one refcursor.
The logic used in the procedure is:
The procedure is used to display summary as well as detail report. When the input parameter have more than one comma saperated values then it will act as a summary report and when there will be just one value as the input then it will act as a detail report.
The input parameter is like 'AA12345,BB45434,HJ89736' the first two character is Brand_id and the rest of the 5 character is the propery_id.
The aggrigation aggrigation query is :
Select Month_name,Year,sum(REVPAR),Sum(ADR) from FIS_KPI_TREND where
Brand_id='AA' and SIte_id='12345' group by Month_name,Year;
The above query will worke fine for the Detail report when there will be just one value for the input as 'AA12345'.
The problem is comming for the Summary report when I need to get the aggrigated value for all the brand and site which came in the input parameter.
So i changed the query as:
Select Month_name,Year,sum(REVPAR),Sum(ADR) from FIS_KPI_TREND where
Brand_id||SIte_id in ('AA12345','BB45434','HJ89736') group by Month_name,Year;
(I'm using parser function to parse comma saperated values.)
By doing this i'm getting the desired result but the performance has decrised as the Index is based on Brand_id and Site_id but i'm Using Brand_ID||Site_id for my search.
Can any one suggest any other way to rewrite this query so that it can take the index as well as give me the sesired output.
Database used : Oracle 10g
Thanks in advance.
Sumit Narayan
Edited by: Sumit Narayan on Apr 11, 2010 10:00 PMI'd be inclined to do something like this to parse the comma separated list, which would allow you to join without concatenating columns like you're doing now.
ME_XE?select
substr(column_value, 1, 2) as brand_id,
substr(column_value, 3, length(column_value)) as site_id
from table(sys.ODCIVARCHAR2LIST('AA12345','BB45434','HJ89736'));
2 3 4
BRAND_ID SITE_ID
AA 12345
BB 45434
HJ 89736
3 rows selected.
Elapsed: 00:00:00.20
ME_XE?
ME_XE?select * from v$version;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
5 rows selected.
Elapsed: 00:00:00.39
ME_XE?So for your case ...
Select
f.Month_name,
f.Year,
sum(f.REVPAR),
Sum(f.ADR)
from FIS_KPI_TREND f, table(sys.ODCIVARCHAR2LIST('AA12345','BB45434','HJ89736')) t
where f.Brand_id = t.brand_id
and f.SIte_id = t.site_id
group by f.Month_name, f.Year;Edited by: Tubby on Apr 11, 2010 10:12 PM
Maybe you are looking for
-
I am unable to complete Synching with my IPhone 4S as it tells me reason is that Apps are unable to be determined on my phone however all of them Purchased from I Tunes. Can someone assist me with a Solution
-
Error While Trying to open any version of Jdeveloper 10 or 11
While trying to open any version of Jdeveloper Either 10 or 11 this message Appear Unable to create an instance of Java Virtual Machine Located at path : D:\program files\java\jdk 1.6.0_01\jre\bin\client\jvm.dll although from two days jdeveloper was
-
Add button to the transaction SM30
HI Whether it is possible to add a buton to application tool bar in the transaction SM30. help reg this.
-
Function module for offline vendor creation.
Hi Xperts, I have searched all threads but i didn't find it, plz help me its urgent, Is there a Function Module or BAPI for vendor creation. The BAPI_VENDOR_CREATE works online. I am looking out for an offline. This is for avoiding the use of BDC tha
-
i can't save as png in photoshop cs6?