SQL query alias names errors with dynamic lists
Hullo,
Problem:
- Made a query form book database. Have authors in separate table with unique ID's referring to them on book table.
- Query fetches author name in "Surname, Firstname initial.Secondfirstname initial" format, --> like "Bukowski, H.C" and giving that combo alias name in SQL like "AS 'author'"...
- Dynamic list works fine at start, but when ordered from detail table back to the mainlisting, it does make an error with SQL stating "unknown column 'author' in where clause"
That must be because the script looks for "author" column from the original table yeah, but how can I solve this? Any ideas? Does this mean that Alias names for columns are not possible or is there something i've missed?
Any ideas, suggestions?
Thanks,
KimmoK
Hi Kimmo,
ADDT´s dynamic lists can handle alias columns fine to my experience, but I reckon that you most probably applied the "CONCAT(...) AS author" query modification after having generated the list, and the list´s internal WHERE clause seems to have no clue of this alias column.
You can get an idea about using alias columns in Dynamic Lists in my tutorial "Dynamic Lists: exploring the Filter Conditions": http://www.guenter-schenk.com/tutorials/tutorial.php?id=6
Can you please post the list´s code on your server as text file (e.g. code.txt) and provide a link to this file ?
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver
Similar Messages
-
SQL query - Alias name (value) as parameter to an Oracle function
Hi,
I have a sql query something like
Select tbl1.valueA, tbl1.valueB, tbl2.valueX, MAX(CASE tbl2.valueY = 'XX' THEN tbl2.valueZ END) AS "ValueZ header", Function(tbl1.valueB, tbl2.valueX, "valueZ header")
FROM table1 tbl1
JOIN table2 tbl2 ON tbl1.id = tbl2.tbl1id
WHERE ...
my problem is that I need the value from MAX statement as parameter to the function and I have tried to use the alias name (valueZ header) but this is not working. I guess because of some syntax error. Can I use alias name as parameter into the function at all - if - how should I do this?Hi,
user8819407 wrote:
Hi,
I have a sql query something like
Select tbl1.valueA, tbl1.valueB, tbl2.valueX, MAX(CASE tbl2.valueY = 'XX' THEN tbl2.valueZ END) AS "ValueZ header", Function(tbl1.valueB, tbl2.valueX, "valueZ header")
FROM table1 tbl1
JOIN table2 tbl2 ON tbl1.id = tbl2.tbl1id
WHERE ...
my problem is that I need the value from MAX statement as parameter to the function and I have tried to use the alias name (valueZ header) but this is not working. I guess because of some syntax error. Can I use alias name as parameter into the function at all - if - how should I do this?You can use a column alias in the ORDER BY clause of the same query where it was defined, but that's the only place where you can use it in that query.
You could repeat the entire MAX (CASE ...) expression as the 3rd argumnet to your function, or you could compute it once in a sub-query, then reference the column alias as often as you like in the super-query, like this:
WITH got_valuez_header AS
Select tbl1.valueA
, tbl1.valueB
, tbl2.valueX
, MAX ( CASE
WEHN tbl2.valueY = 'XX' -- Don't forget the keyword WHEN
THEN tbl2.valueZ
END
) AS "ValueZ header"
FROM table1 tbl1
JOIN table2 tbl2 ON tbl1.id = tbl2.tbl1id
WHERE ...
GROUP BY ...
Select tbl1.valueA
, tbl1.valueB
, tbl2.valueX
, "ValueZ header"
, Function_x ( tbl1.valueB -- FUNCTION is not a good name for a function
, tbl2.valueX
, "ValueZ header" -- Case-sensitive
FROM got_valuez_header
; -
How to Use SQL Query having IN Clause With DB Adapter
Hi,
I am using 11.1.1.5 want to find out how to Use SQL Query having IN Clause With DB Adapter. I want to pass the IN values dynamically. Any ideas.
Thanksinvoke a stored procedure, it's safer than trying to put together an arbitrary SQL statement in the JCA adapter
-
I have allready bought the programs, but need to reinstall AE and PP due to an error with dynamic link.
Where do i find the program install?
And tips on how to reinstall without messing things up?
last question is, does my recent files and saves work after the reinstall?
Thank youkarianne wrote:
I have allready bought the programs, but need to reinstall AE and PP due to an error with dynamic link.
Where do i find the program install?
Which versions? Which operating system?
Try Download and Installation Help -
How to create sql query for item master with operator LIKE with variables?
hi all,
How to create sql query for item master with
operator LIKE(Contains,Start With,End With) with variables using query generator in SAP B1 ?
JeyakanthanHi Jeyakanthan,
here is an example (put the like statement into the where field)
SELECT T0.CardCode, T0.CardName FROM OITM T0 WHERE T0.CardName Like '%%test%%'
The %% sign is a wildcard. If you need start with write 'test%%' and otherwise ends with '%%test'. For contains you need '%%test%%'. You also could combinate this statements like 'test%%abc%%'. This means starts with test and contains abc.
Regards Steffen -
SQL Subscription field shows * only with Dynamic Text Label in SQL query
We are using Hyperion Analyzer 7.2.x for showing budget and actual data. I have to show this financial data based on the security e.g. person in IT can see only IT dept. data. Hence I want to use dynamic text label <<userid>> for the security based on the person logging in to Analyzer.
But when I use dynamic text label <<userid>> in the SQL query in SQL Spreadsheet, SQL Subscription field shows * only selection option. Does anyone have idea how to solve this problem?
Thanks in advance for your help.
-SVHi
Okay i know this is a bit crazy way.....but i think this is the solution for your issue.
Create a report without the where clause (<<useris>>) then add a filter (sql subscription) then you can find all the values that are there in the SQL field (try to increase the query limit it is set to 250 as default) then edit the spreadsheet and add the where clause (<<userid>>).
This will help you having the filter and the dynamic text label. I think there is an issue when you try to filter it with a where clause.
Hope it helps.
CK -
ORA-06502: PL/SQL: numeric or value error: character string buffer too small.
I have an HTMLDB report that errors with the above message. The query is over 7000 characters long so I'm guessing this is the cause. If I retrieve the query from a query table, replace the variables in the LONG query using PL/SQL and execute using dynamic SQL, are the HTMLDB reporting features the same as if I was using a simple SQL query? Is there a better way? I will need to 'drill-down' from this report so how do I create the links? The only HTMLDB PL/SQL package I can find mentioned in the User's Guide is HTMLDB_PLSQL_JOB.
Cheers, PaulHello All,
I have the same problem.
For me it started when i got about 500 rows in the table
on which the LOV is based.
With a lot of trying with substr I managed to find the size of the string which it still accepted, which was 51 characters.
So I thought it was some glitch in the APEX insides, and since I had no time to resolve it further, I went on working.
But I have to resolve it now, because the following mysterious behaviour is occurring:
Every few records added to the base table, the problem occurs again, and I can resolve it by cutting down the string
with one character.
I have now reached 39 characters !?
I am afraid that I will end up with 1 character or even null.
If I switch to Popup list based on LOV there's no problem, and the complete strings are shown.
The maximum length of the string in my basetable is 252, but the data in it now reaches 55 at most.
Any idea welcome!
I did already recreate the master-detail form from scratch, but there the same behaviour.
greetings,
Richard Kloostra -
Form on a SQL Query - doesn't work with SELECT * - bug or feature ?
When I do this,
Create Page -> Page with Component -> Form -> Form on a SQL Query -> SELECT * FROM EMP
I do not get any items displayed and it creates a simple HTML region / page. Do we have to necessarily specify the column names ?
Iam looking at a way to see if any addition of columns in the table does not involve IT intervention in recreating the form.
When we try to create with Form on a SQL Query, then shouldn't it be similar to the Report where the same thing works, if I give SELECT function_returning_columns() from DUAL even then the same thing happens where it creates an ITEM called functions_returning_columns() it creates HTML region
I asked a related question with no answer :-( in
Dynamic Creation of Items in Runtime through Application UIHi Marc,
Thanks. I just tried something like this. Taking the EMP table example, (it doesn't matter which table), I created a region based on a Pl/Sql function returning SQL query
( I selected the vertical report template including nulls to display it like a form ) :
DECLARE
v_sql VARCHAR2(3000) ;
mn_idx NUMBER := 1 ;
BEGIN
v_sql := 'SELECT ' ;
FOR recs IN (SELECT * FROM ALL_TAB_COLUMNS WHERE TABLE_NAME = 'EMP' ORDER BY COLUMN_ID)
LOOP
v_sql := v_sql || 'HTMLDB_ITEM.TEXT(' || mn_idx || ',' ||
recs.column_name || ') ' || recs.column_name || ', ' ;
mn_idx := mn_idx + 1 ;
END LOOP ;
v_sql := SUBSTR(v_sql, 1, LENGTH(v_sql) -2) ;
v_sql := v_sql || ' FROM EMP WHERE EMPNO = 7369 ORDER BY 1 ' ;
RETURN v_sql ;
END ;
This allowed me to do my updates etc.., Then I created a button called 'Apply' and a process called 'update_changes' on button click and defined this:
DECLARE
v_sql varchar2(1000) ;
mn_ctr NUMBER := 1 ;
BEGIN
v_sql := 'BEGIN UPDATE EMP SET ' ;
FOR recs IN (select COLUMN_ID, COLUMN_NAME, DATA_TYPE
from all_tab_columns where table_name = 'EMP'
ORDER BY COLUMN_ID) loop
-- Make changes here if required- this is assuming 9 columns --
v_sql := v_sql || recs.column_name || ' = HTMLDB_APPLICATION.G_F0' || mn_ctr || '(1),' ;
mn_ctr := mn_ctr + 1;
end loop ;
v_sql := substr(v_sql, 1, length(v_sql) - 1) ;
v_sql := v_sql || ' WHERE EMPNO = 7369; END ;' ;
execute immediate (v_sql) ;
END ;
Since this is for example, I didn't include code for Checksum and hardcoded empno = condition and have provision for 9 columns. I made some changes and tried saving it and I was able to do it.
I altered the table to add a column / drop a column and when I relogin, Iam able to see the changes.
Can you tell me if there could be any drawbacks in this approach ?. -
SQL query statement for stored procedure / function listing ...
Hi everyone,
Is there a SQL query to list all the stored procedures and functions of an user in an Oracle 8 database?
I have this idea:
select * from USER_SOURCE where TYPE = 'PROCEDURE' or TYPE = 'FUNCTION'
but I am not too sure whether this is correct.
Thanks in advance,
EricYeah
I agree with you Garcia , my above posting was a correction to the query mentioned in the question only.
you are correct
If you only want the name of the object,
SELECT Object_Name from User_Objects where object_type in ( 'PROCEDURE' ,'FUNCTION');
is much faster than Selecting (distinct) from User_Source. -
SQL query in powershell Errors on IIF
Hello,
I have put together a Powershell script from examples online to run a SQL query. The query came from Access and it seems Powershell has a problem with the syntax.
I'm pretty new to scripting and adding SQL to the equation isn't helping.
Powershell code
$SQLServer = "ServerName"
$SQLDBName = "DataBase"
$SqlQuery = 'MyQuery'
$SqlConnection = New-Object System.Data.SqlClient.SqlConnection
$SqlConnection.ConnectionString = "Server = $SQLServer; Database = $SQLDBName; Integrated Security = True"
$SqlCmd = New-Object System.Data.SqlClient.SqlCommand
$SqlCmd.CommandText = $SqlQuery
$SqlCmd.Connection = $SqlConnection
$SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
$SqlAdapter.SelectCommand = $SqlCmd
$DataSet = New-Object System.Data.DataSet
$SqlAdapter.Fill($DataSet)
$SqlConnection.Close()
$DataSet.Tables[0] | ft -AutoSize
SQL Query
SELECT swName AS Server, swRack AS Rack, swEnvironment AS Environment, IIf([dbo.SW_SERVICE_LVL].[swMonday]=1,"Mon") AS [RebootSchedule], dbo.SW_SERVICE_LVL.swMonBeginTime AS [RebootTime], 2 AS Expr
FROM dbo.SW_SERVICE_LVL INNER JOIN dbo.SW_SPECIALTY ON dbo.SW_SERVICE_LVL.swDiscount = dbo.SW_SPECIALTY.swSpecialtyId
WHERE (((IIf([dbo.SW_SERVICE_LVL].[swMonday]=1,"Mon")) Is Not Null) AND ((dbo.SW_SERVICE_LVL.swGrpResp)="IT Group Name") AND ((dbo.SW_SERVICE_LVL.swRootObjectType)="Server"));
Error given is
Exception calling "Fill" with "1" argument(s): "Incorrect syntax near ')'.
Incorrect syntax near 'IIf'."At line:16 char:1
+ $SqlAdapter.Fill($DataSet)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SqlExceptionThis might be considered a new question but now I got the powershell code to return data from the SQL database.
Now I am looking to output the table to a powershell Array then append the LastRebootTime into that Array. As far as I can tell, this requires a ForEach loop on each servername returned from the SQL query. And I'm stuck on getting that working.
Stop thinking like you know what that means.
Where are you getting lastreboottime? Why does it have to be appended. "Reboottime" is one of thefields in or query. You don't need it.
¯\_(ツ)_/¯
That is a bit strongly worded. Here's what I've got and this is still a work in progress. I've said this before, I am not a scripter. Now I am stuck on adding the LastBootUpTime column into the table returned from the SQL query.
$SQLServer = "ServerName"
$SQLDBName = "DataBase"
$SqlQuery = 'MyQuery'
$SqlConnection = New-Object System.Data.SqlClient.SqlConnection
$SqlConnection.ConnectionString = "Server = $SQLServer; Database = $SQLDBName; Integrated Security = True"
$SqlCmd = New-Object System.Data.SqlClient.SqlCommand
$SqlCmd.CommandText = $SqlQuery
$SqlCmd.Connection = $SqlConnection
$SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
$SqlAdapter.SelectCommand = $SqlCmd
$DataSet = New-Object System.Data.DataSet
$SqlAdapter.Fill($DataSet) | Out-Null
$arraydata = @($DataSet)
$SqlConnection.Close()
$servers = @($DataSet.Tables[0]) | select -ExpandProperty Server
Try{
foreach ($server in $servers)
$arraydata += @(GWMI -ComputerName $server -Class Win32_OperatingSystem -ErrorAction SilentlyContinue | select @{LABEL="Server";Expression={$_."csname"}}, @{LABEL='LastBootUpTime'
;EXPRESSION={$_.ConverttoDateTime($_.lastbootuptime)}})
}#end try
Catch{
"Can't work with $server"
$DataSet.Tables[0] | ft -AutoSize #Export-Csv -NoTypeInformation -Path c:\sunday.csv
$arraydata -
SQL query to retrieve families with only one generation from a family db
Hi,
I need to write an SQL query that would select families with only one generation ((which means a person - or a married couple - with kids) or (a person - or a married couple - with parents but no kids)) from a database containing families. The simplified db structure is:
person:
id - int, primary key
siblings:
id
parent_id
kid_id
marriage
id:
husband_id
wife_id
Could anyone please help me? I dont really have any idea how to accomplish that...Hi,
Welcome to the forum!
Assuming that siblings (despite its name) contains only parent-child relationships, and that the parent_id could be either the mother or the father:
WITH got_tree AS
SELECT CONNECT_BY_ROOT s.parent_id AS root_id
, LEVEL AS lvl
FROM siblings s
LEFT OUTER JOIN marriage m ON s.parent_id IN ( m.husband_id
, m.wife_id
START WITH parent_id NOT IN ( SELECT kid_id
FROM siblings
CONNECT BY s.parent_id IN ( PRIOR m.husband_id
, PRIOR m.wife_id
, PRIOR kid_id
SELECT root_id
FROM got_tree
GROUP BY root_id
HAVING MAX (lvl) <= 2
;This will get a list of parents who may or may not have children, but who do not have either parents or grandchildren.
To get their spouses and children (if any) you will have to join this result set to all the other tables. At that point, you can eliminate poeple who do not have ancestors themselves, but are married to people who have more than one generation of ancestors.
The details of how to do that depend on the details of your tables. If you'd like help, then post a little sample data (CREATE TABLE and INSERT statements for all tables) and the results you want from that data.
Edited by: Frank Kulash on Oct 14, 2009 4:05 PM
I'd need sample data in order to test this, of course. -
SQL Query Updateable Report Error on Submit
I'm using AppX version 2.0.0.00.49 and have modified a standard SQL report into an updateable report that modifies the value of a single column. When I submit the page, I receive this error:
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "A1C24045A4B826FBB8E8D7CB176F7B41", item checksum = "B31829463D576B930C07388D06AE91D8"., update "BNELSON"."TWP_REG_STU_ATT" set "REG_ATT_ID" = :b1
Error Unable to Process Absences
The table is being updated only - no create or delete, and the report elements of Tabular Form Element contain the info to point to this table and its primary key. The sql query does link to several related tables to display their related items.
Any pointers as to what I should look for as a cause?Chris,
I created a new page with a tabular form update using just the single table with all DML types (Add, Delete, Save), and for all fields.
Ran the page and tried modifying a field on one row and saved - result,
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01407: cannot update ("BNELSON"."TWP_REG_STU_ATT"."ATT_DT") to NULL, update "BNELSON"."TWP_REG_STU_ATT" set "REG_ATT_ID" = :b1, "STU_ID" = :b2, "ATT_DT" = :b3, "PERIOD" = :b4, "CLASS_DAY_TYP" = :b5, "TCHR_ATT_CD" = :b6, "TCHR_ID" = :b7, "CRSE_ID" = :b8, "CREATE_DT" = :b9, "CREATED_BY" = :b10, "UPDATE_DT" = :b11, "UPDATED_BY" = :b12, "SCH_ID" = :b13, "TCHR_UPDATE_DATE" = :b14 where "REG_ATT_ID" = :p_pk_col
Error Unable to process update.
OK
Tried adding a new row with the same results basically -
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01400: cannot insert NULL into ("BNELSON"."TWP_REG_STU_ATT"."ATT_DT"), insert into "BNELSON"."TWP_REG_STU_ATT" ( "REG_ATT_ID", "STU_ID", "ATT_DT", "PERIOD", "CLASS_DAY_TYP", "TCHR_ATT_CD", "TCHR_ID", "CRSE_ID", "CREATE_DT", "CREATED_BY", "UPDATE_DT", "UPDATED_BY", "SCH_ID", "TCHR_UPDATE_DATE") values ( :b1, :b2, :b3, :b4, :b5, :b6, :b7, :b8, :b9, :b10, :b11, :b12, :b13, :b14)
Error Unable to process update.
OK
Field ATT_DT had valid date values in both scenarios (12-DEC-06), so why would it be attempting to put a null in both update and insert modes? -
Wrong name: error with Tomcat
hello, I'm running Tomcat on Debian Sarge and I'm getting the following error:
java.lang.NoClassDefFoundError: com/bluewolf/BlueWolf (wrong name: BlueWolf)
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)
The name of my servlet is BlueWolf. I have defined my servlet in my web.xml like so:
<!-- servlet definitions -->
<servlet>
<servlet-name>BlueWolf</servlet-name>
<servlet-class>com.bluewolf.BlueWolf</servlet-class>
</servlet>
<!-- define mappings -->
<servlet-mapping>
<servlet-name>BlueWolf</servlet-name>
<url-pattern>/BlueWolf</url-pattern>
</servlet-mapping>
I've tried searching for this error but there were no fixes I found that helped my situation. Can anyone please help me out? If any more information is needed please let me know.
Thanks!Okay, I made a simpler web application. I have:
index.html
WEB-INF/
my WEF-INF directory looks like:
classes/
lib/
web.xml
my only servlet is WEB-INF/classes/com/servTest.class
I defined the servlet in my web.xml like this:
<!-- Name to Java class mapping -->
<servlet>
<servlet-name>servTest</servlet-name>
<servlet-class>com.servTest</servlet-class>
</servlet>
<!-- Name to URL mapping -->
<servlet-mapping>
<servlet-name>servTest</servlet-name>
<url-pattern>/servTest</url-pattern>
</servlet-mapping>
However, I still get the same error (NoClassDefFoundError .... wrong name: servTest blah blah)
I am trying to access the servlet by the url http://localhost:8080/servTest/servTest and I've also tried http://localhost:8080/servTest/com.servTest. I also tried linking to it in my index via a form with action="servTest". I've also tried action="com.servTest" however I still can't seem to get past this wrong name error. However, I can create servlets fine without trying to use packages (i.e. if i place .class files directly in WEB-INF/classes), but I would really like to have packages working. Can anyone see any potential errors? thanks! -
Console cluster reporting is not consistant with dynamic list
(We are using the 6.1 sp2 plug-in for Linux. Our web server - apache - is on Solaris
and our WL servers are on Linux Ret hat. 7.2 2.4.9-31smp)
Recently our production site experienced the following unfortunate scenario:
Here are the specifically the events that took place:
On Sept 6 @ 2:30 pm:
I observered that the Admin console was reporting that only 3 (servers #3, #5
and #6) out of the 6 servers were participating in the cluster. On the other
hand, From the access logs, I was still seeing activity on all 6 servers.
At the same time, our operations team did not report any T3 PING failures (Tivoli
automates the sending of T3 PING two each of the 6 servers in the cluster every
10 minutes) which indicated that none of the server where in a hung state. This
further verified that the all 6 servers were healthy.
Question: Why was the plugin still distributing traffic to all 6 servers despite
the fact (as reported by the admin server) that 3 of the 6 servers were no longer
participating in the cluster? Shouldn't the dynamic list have excluded these
3?
On Sept 6 @ 11:30 pm: The operation team reported that all 6 servers where no
longer responding to a ping (hung state). I then checked the admin console and
it was reporting that none of the servers were participating in the cluster.
Is there a bug with the 6.1 sp2 console?
Nael,
This is a known problem. Please contact support and reference CR075667 to obtain the
appropriate fix.
Regards,
Simon
Developer Relations Engineer
BEA Support
Nael Ramadan wrote:
> (We are using the 6.1 sp2 plug-in for Linux. Our web server - apache - is on Solaris
> and our WL servers are on Linux Ret hat. 7.2 2.4.9-31smp)
> Recently our production site experienced the following unfortunate scenario:
>
> Here are the specifically the events that took place:
>
> On Sept 6 @ 2:30 pm:
>
> I observered that the Admin console was reporting that only 3 (servers #3, #5
> and #6) out of the 6 servers were participating in the cluster. On the other
> hand, From the access logs, I was still seeing activity on all 6 servers.
> At the same time, our operations team did not report any T3 PING failures (Tivoli
> automates the sending of T3 PING two each of the 6 servers in the cluster every
> 10 minutes) which indicated that none of the server where in a hung state. This
> further verified that the all 6 servers were healthy.
> Question: Why was the plugin still distributing traffic to all 6 servers despite
> the fact (as reported by the admin server) that 3 of the 6 servers were no longer
> participating in the cluster? Shouldn't the dynamic list have excluded these
> 3?
>
> On Sept 6 @ 11:30 pm: The operation team reported that all 6 servers where no
> longer responding to a ping (hung state). I then checked the admin console and
> it was reporting that none of the servers were participating in the cluster.
>
> Is there a bug with the 6.1 sp2 console?
-
Oracle SQL Query from EXCEL 2007 with prompt
Hello,
I have many excel reports where I am pulling information from our Oracle 9 db through Excel using the following method:
http://blog.mclaughlinsoftware.com/microsoft-excel/how-to-query-oracle-from-excel-2007/
http://blog.mclaughlinsoftware.com/2009/11/30/sql-query-in-excel-2007/
However, I am having trouble when I try the following query due to the prompt:
SELECT
IM.ITEM_GROUP,
IM.ITEM,
IM.DESCRIPTION
FROM
LAWSON.ITEMMAST IM
WHERE
IM.ITEM = '&ITEM';
Does any one know how I can connect a prompt to an excel cell and then pass the query on to Oracle, or have a PL SQL prompt work from Excel?
Thanks,
BenThe 'prompt' as you call it is a sqlplus feature, so does not belong to the SQL language
You would need to write a stored procedure returning a resultset.
create or replace procedure foo(rc in out sys_refcursor, p_item) as
begin
open rc for
'SELECT
IM.ITEM_GROUP,
IM.ITEM,
IM.DESCRIPTION
FROM
LAWSON.ITEMMAST IM
WHERE
IM.ITEM = '||p_item;
end;
and call that using ODBC or asp.net
Obviously this is profusely documented.
Sybrand Bakker
Senior Oracle DBA
Maybe you are looking for
-
Itunes no longer compatible with 'show what i'm listening to' on msn?
Hiya, I upgraded to itunes 8, and after this noticed that on windows live messenger the songs I play are no longer shown as what I'm listening to. I wondered if anyone else had experienced this? I've upraded to itunes 8.01 now and still they aren't s
-
Want to use .mac instead of .me for email on iPhone, can't
Hi all - I recently had to delete my mail account on my phone and set it up again. After doing so, emails sent from the phone are now sent from .me, even though I set it up as .mac. I've used this address for years and it is attached to people I do b
-
RFC to SOAP parameters issue - Odd!
All, We have a RFC to SOAP scenario.. There is a table parameter with 4 fileds in it - OPERATION, ID, TYPE, VALUE. And in RFC we pass the following in the table, OPERATION - "CHECK" ID - 001 TYPE - MAT VALUE - 234567890 Somehow, the incoming XML does
-
Email rejected as spam because of "RCPT TO" ?
I'm attempting to use Mail and compare it to Entourage. Email sent to a friend is getting rejected as spam when sent from Mail, but not from Entourage. Both are using the same account. The returned email includes the message below with domains and ip
-
[solved] GTK3: Fonts not rendering smoothly
Here's GTK3 app and GTK2 app side by side: Fonts are not rendering correctly on any GTK3 app. I use Ubuntu's patched versions of freetype2, fontconfig and cairo from AUR: freetype2-ubuntu fontconfig-ubuntu cairo-ubuntu How can I get GTK3 apps to rend