Variable and column name
Hi all,
In an interface, I've got a column which has the same name as a variable.
When I execute it in ODI 10g all is fine.
With ODI 11g, it replace the column name by the variable one. If the variable has no value, I've got an SQLException.
I believe it comes from the colon.
In the execution code, I have
INSERT ... VALUES PROJECT.NAME instead of NAME.
I assume that ODI interprets the NAME with the variable name instead of the column name.
Has anyone experienced it ?
Thanks.
Hi,
I just tried to reproduce your issue, I didn't experience the case where ODI takes variable name instead of column name. ODI should be able to differentiate between column name and variable name with '#' Symbol prefixed to it. Any name prefixed with #, ODI thinks thats a variable and, it need to be declared in a package.
In your case, looks like issue is not with the NAME, its with variable having no value. May be that ODI 10g has a default value. However, if a variable has no value, its definitely going to fail the process.
Regards,
K
Similar Messages
-
Good day,
I searched through the forum and cant find anything.
I have around 300 published reports on SSRS and we are busy migrating to a new system.
They have already setup their tables on the new system and I need to provide them with a list of table names and column names that are being used currently to generate the 300 reports on SSRS.
We use various tables and databases to generate these reports, and will take me forever to go through each query to get this info.
Is it at all possible to write a query in SQL 2008 that will give me all the table names and columns being used?
Your assistance is greatly appreciated.
I thank you.
Andre.There's no straightforward method for that I guess. There are couple of things you can use to get these details
1. query the ReportServer.dbo.Catalog table
for getting details
you may use script below for that
http://gallery.technet.microsoft.com/scriptcenter/42440a6b-c5b1-4acc-9632-d608d1c40a5c
2. Another method is to run the reports and run sql profiler trace on background to retrieve queries used.
But in some of these cases the report might be using a procedure and you will get only procedure. Then its upto you to get the other details from procedure like tables used, columns etc
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
iam not able to insert data into datagrid corresponding to the column names..as iam inserting both data and column names programatically..ie iam not able to co relate the data with the column names.plzzz help me asap
A DataGrid is row-based rather than cell-based with each row
corresponding to an item in an underlying collection (specified in the
dataProvider property). In order to add data to a DataGrid you
manipulate the underlying collection, rather than the grid directly.
Based on the limited description of your problem I would imagine you
would need to create dynamic objects with property names that correspond
to the dataFields of your dynamically created datagrid columns.
So if you had created columns with dataFields "alpha", "beta" and
"gamma" on your datagrid, you could create an item in your grid by
adding the following object to your dataProvider:
var gridItem : Object = new Object();
gridItem.alpha = "alphaValue";
gridItem.beta = "betaValue";
gridItem.gamma = "gammaValue"; -
Case sensitive table names and column names in 8i or 9i databases
Hi everybody,
I've got a couple of business-side colleagues who insist that Oracle table and column names are case sensitive. That is, there is a setting in the set up of a database that lets you pick if table and column names are case sensitive. For example, this would mean that there could be a table named EMP in a given schema schema plus a table named emp in that same schema.
Can this be true? I'd be surprised of course, but I've been surprised before.
Thanks for any direction.
-- Bill LogginsYou can do it, but I would avoid it like the plague.
SQL> create table "a" (b date);
Table created.
SQL> create table "A" (b date);
Table created.
I think I would refuse to work on a database where this has been used ! -
Query to find out the table name and column name..
Hi Experts,
I have an Oracle DB in which has more than 50 tables and 100,000 records. I want to get the record which contains *"ITxtVarValue references a non existing text"* the text.
Is there any query there to find out the table name and column name of this particular record where it reside?
Please help. Any help will be rewarded.
Thanks,
GUsing this forum's search function, I found a thread that should give you an idea: How to find out a tablename
C. -
Check the table and column name in R12 web screen
Hello Friends
Please any body can tell me how can I find out the table name and column name in web based forms like supplier, customer in R12. In 11i I can find out the table name and column name from help menu by record history and diagnostic -> examine menu.
Thansk
MakshudHi,
Please see (Note: 741366.1 - How to get Supplier table information? How to get About this Page link in OA page in R12).
Thanks,
Hussein -
Special Characters and spaces in Tablenames and Column Names are allowed ?
Hi
I have created two tables in Oracle10g
as follows
SQL> create table test(columna number,columnb varchar2(20),primary key(columna));
Table created.
SQL> insert into test values(1,'test');
1 row created.
SQL> commit;
COMMIT är utfört.
SQL> create table "test quote"("#" number,abc number,primary key("#"));
Table created.
SQL> insert into "test quote" values(1,2);
1 row created.
SQL> commit;
COMMIT är utfört.
SQL> select * from "test quote";
# ABC
1 2
SQL> select * from test;
COLUMNA COLUMNB
1 test
Now I want to cache the tables and their data into TimesTen
The cache group for table test which is not having any spaces and special characters in table name and column names is created perfectly.
But when I create the cache group for table "test quote" which is having special characters and spaces it gives error :
Command>create readonly cache group w2 from testuser.test(columna number,columnb varchar2(20),primary key(columna));
Command>select * from test;
<1,test>
1 row found.
Command>create readonly cache group w3 from testuser."test quote"("#" number,abc number,primary key("#"));
5140: Could not find TESTUSER.TEST QUOTE in Oracle. May not have privileges.
Command Failed.
Now there is contradiction that why cache group for table test is created successfully and why it is not being created for table "test quote".
What I think is if special characters and spaces in column names and table names are possible in Oracle then it sould be possible in TimesTen.
Any possible solution.
Looking forward for your reply.
Please help I am stuck badly.
/AhmadHi
Problem Solved ....... Remeber only Capital letters work with special characters ......
/Ahmad -
Query to Find Table and Column Name by using a value
Dear Legends,
I hope and surfed in our forums and google to find the Table Name and Column Name by having a value(Number/String). And my where clauses are
where owner NOT IN ('SYS','SYSTEM') and
data_type IN ('CHAR','VARCHAR2','NUMBER')
May I have your help for building the query. and my query as follows
select a.owner, c.column_name, c.data_type, c.owner, c.table_name
from dba_objects a, all_tab_cols c
where a.owner NOT IN ('SYS','SYSTEM') and
where c.owner NOT IN ('SYS','SYSTEM') and
where c.data_type IN ('CHAR','VARCHAR2')
order by a.owner
Thanks,
KarthikYou can use
select * from user_tab_columns a, user_tables b
where a.table_name = b.table_name
and a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR');
Or if you want to user DBA_* tables, you can use.
select * from dba_tab_columns a, dba_tables b
where a.table_name = b.table_name
and a.owner = b.owner
and a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
and b.owner not in ('SYS', 'SYSTEM');
And now when I look a bit more closely, you don't need DBA_TABLES there. dba_tab_columns alone is sufficient. And requirement is still not clear yet. Why you need a group by there? If I get it right, you can use this.
select * from dba_tab_columns a
where a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
and a.owner not in ('SYS', 'SYSTEM');
Whether you use group by or not, the query will give you the same output.
Ishan -
Table names and column names defined by other languages, not English.
Hi, everyone.
I am wondering if there are any possible problems or any inconvenience
when I define table names and column names by Japanese, not English.
Currently, we are using SQL server 2000 as a db and windows as a operating
system. In the near future, we have the plan to change the database software
and operating system to "Oracle 10g" and "Linux O/S".
I have not experienced the oracle database, which has table names and column
names defined by other languages, not English.
Personally, I would like to use English as table names and column names.
In this case, I might have to provide appropriate reasons.
Are there any possible problems or any "inconvenience" in terms of
system maintenance, development, or something else ?
What could be pros and cons in this case?
Thanks in advance.
Have a nice day.
Best Regards.
Ho.First you need to make sure your database has character set that support Japanese.
Choosing a Character Set
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14225/ch2charset.htm#i1007681
The main "inconvenience" you will have is if the client doesn't support Japanese or unicode, it will have trouble to access the table.
And say in future after the application been developed, you want to implement the schema in some English environment, you will have hard time to do it.
My point is English tablename and column names doesn't prevent you use it in Japanese environment and save Japanese data but not vice-versa. Hope you understand. -
Toplink JPA forces database table and column names to UPPERCASE! Why?
I have recently experienced using Toplink JPA while using glassfish ... migrating an existing application to EJB 3.0 persistence. Toplink JPA, as implemented in glassfish, forces tablenames and column names from my code to be uppercase in select statements, etc. as then submitted to the database. Why? I cannot find anything in the EJB 3.0 specs on persistence that even suggests this.
This created a serious problem for me, in my application. For my code to work I had to change the names of the database tables to all uppercase, even though that meant other of my applications, already written using the original mixed case names of the databases, will no longer work unless I revise the code in those applications! (I am using mySQL as my database.)
In both Unix/Linux and Java, which are both case sensitive, If I wanted names of files or other items to be uppercase, I would have written them that way. I do not expect some middleware piece of software to muck around with the case of text I have put into my code.
I am hopeful this 'feature' of the reference implementation of the EJB Persistence API will be corrected in a subsequent version. [Maybe you can tell I am not happy!]
Thanks for listening to my rant.Robert,
I found that the name I specify in all of my @Table, @Column, ... annotations is used with the case as it is provided.
If TopLink determines the schema information through defaults then the names it comes up with are definitely upper cased by default.
Are you specifying the schema information that you want in annotations or XML?
Doug -
Location of variable and function names in SWF bytecode?
Ok, so I'm looking at the specification PDF for v10 of a SWF file.
Here is a link to it: http://www.adobe.com/devnet/swf/pdf/swf_file_format_spec_v10.pdf
I can't find anything in there about where or how a SWF stores variable and function names in the bytecode, though SWF decompilers can find them in any SWF file. So they must be in there somewhere.
Can any one help me on this one?Hi check the varaibles by giving ur tech.name of report input parameter to the below program,
RSRQ_QUERYDEFINITION
it will all the query details. So you can find ur varaibles where it is used exactly.
bhaskar -
Passing table name and columns name as parameters to procedure
i need a procedure that take table name and column names as parameters .
it should display all values in those columns
like
if i execute procedure p ( t1,c1,c2)
it should display c1,c2 values in t1 table
if i execute procedure p ( t1, c1,c2,c3)
it should display c1,c2,c3 values in t1 tables
no of column parameters changesSee if this helps...
First, read the manual on collections.
Second, define your expected results. You want to output the results to the screen? You cannot perform a 'select' in PL/SQL. You will have to select your output into another collection, then loop through that.
Finally, I am curious why this is necessary versus performing a regular query.
Take a look at this incomplete code.
create or replace
package dave_pac
IS
TYPE col_name_list IS VARRAY(20) OF VARCHAR2(30);
PROCEDURE SFA_TAB_COL1
(p_tname IN VARCHAR2
,p_cnames IN col_name_list);
END;
create or replace
package body dave_pac
IS
PROCEDURE SFA_TAB_COL1
(P_tname IN varchar2
,p_cnames in col_name_list)
IS
l_stmt long;
l_rc number;
begin
l_stmt :='select '||p_cnames(1);
for i in 2..p_cnames.count
loop
l_stmt :=l_stmt||' , '||p_cnames(i);
end loop;
l_stmt:= l_stmt||' from '|| p_tname ;
execute immediate l_stmt;
end ;
END dave_pac; -
Dict View name and column names
Hi,
Oracle 11.2.0.1
Windows XP
I wish to get the output of all the dictionary views with their name and column names something like this :
VIEW NAME
Name Null? Type
VIEW NAME
Name Null? Type
...Please tell me how do I get the above output for all the dict view from dict table.
Thanks.Step 1:
set serveroutput on;
set feed off;
set head off;
set pages 200;
spool dict.sql;
declare
tn varchar2(50);
cursor c is select table_name from dict order by table_name;
begin
open c;
loop
fetch c into tn;
dbms_output.put_line('begin');
dbms_output.put_line('dbms_output.put_line(' ||chr(39) || tn ||chr(39) ||');');
dbms_output.put_line('end;');
dbms_output.put_line('/');
dbms_output.put_line('desc ' || tn || ';');
exit when c%NOTFOUND;
end loop;
close c;
end;
Step 2:
Just edit dict.sql to remove top and bottom lines.
spool dictcols.txt
@dict.sql;
spool off;
But, this is not a good way to obtain your desired output. I am sure, other members can do it very smartly and efficiently.
Regards
Girish Sharma -
Get Recordcount and Column names
Hi,
Can any one help me out a way to get the recordcount for an sql query executed and the number of columns and there names that are returned by the query.
The same way we do in ASP/VB.
like rs.fields.name
Hope so somebody will help me out.
Thanks,
RajiHi,
Below is the sample code that i am using this code works fine.
I want to find the recordcount and the columnnames.
I have jdbc driver 1.0 how can i update to 2.0?
Can any body help me out as how to get the recordcount and column names?
I would appreciate if you can add the code to the following code below.
I am calling a beanDBConnect(input sql query;output recordset).
Help urgently needed as early as possible.
Thanks,
Reji
<HTML>
<HEAD>
<TITLE>
JSP/BEAN/JDBC Test
</TITLE>
</HEAD>
<BODY>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%
ResultSet rs;
String sSql = "SELECT * from employee";
jspproject.DBConnect oConnectDB = new jspproject.DBConnect();
oConnectDB.setsSql(sSql);
oConnectDB.setaResultSet();
rs = oConnectDB.getaResultSet();
while (rs.next())
out.println(rs.getObject("usertypeid").toString()+"<br>");
out.println(rs.getObject("description").toString()+"<br>");
rs.close();
%>
</BODY>
</HTML> -
How to retrieve DB links and column names details used in code
Hi All,
I am looking for code that will retrieve database links name, referenced object and column names used in source code within the schema.
It’s easy enough to find the link names using xxx_db_links / user_source, the trick part it to list the column names used within the code.
Any expert advice is much appreciate
Thanks
AaliThat wil not give me column names .
Thanks
Message was edited by:
aalishan
Maybe you are looking for
-
Video + audio recorded in Quicktime X is out of sync when used in iMovie
I have recorded video in Quicktime X. When I try to edit it in iMovie, the audio and video are out of sync. They are in sync if I play the video in Quicktime. I am using the latest version of iMovie '11. Anyone know how I can fix this?
-
Office 365 Reseller - Provision of new Office 365 business using API's?
Hi, I couldn't work out which category to put this into. We have built our own provisioning and billing portal which is currently used to provision phone services. We currently resell hosted exchange and are looking to resell Office 365. Are there an
-
WEATHER CHANNEL WIDGET ON FIOS NOT SHOWING UP ANYMORE?
Help
-
Data Triggering (and re-triggering)
Hello all, I'd like to start off that I'm new to Labview, so I may not understand some basic concepts. I am using an NI cDAQ-9172 system with a NI 9215 card installed. My experiment involves receiving two signals, one as a reference signal used as a
-
No sound after installing Media Player
My husband installed Adobe Media Player last Friday and now we have no sound from any application - all cables and speakers have been checked and re-seated multiple times :-) Device manager says devices are functioning correctly, but Directx Diagnost