Need to know schema and table name
Hi folks,
I need to know the schema name and the table name associated with a column. Though jdbc has the api to getTableName and getSchemaName, some database vendor like oracle does return empty upon call of mentioned methods. I found that oracle driver does not support that ��
Can any one give me the solution? It is urgent. Or do you suggest any third pary jdbc driver which can provide those?
Thanks
Angelina
hi,
does not work for me.
more pls
--thanks
Similar Messages
-
How to know columns and table name whose column size are modified
Hi guys
I want to know which all columns in the tables are modify
i.e. list of columns and table name whose column size are modified
Step1 :
CREATE TABLE employees
( employee_number number(5) ,
employee_name varchar2(50) ,
department_id number(10)
CREATE TABLE Supplier
( Supplier_number number(5) ,
Supplier_name varchar2(50) ,
CREATE TABLE customers
( customer_id number(10) not null,
customer_name varchar2(50),
address varchar2(50),
city varchar2(50),
state varchar2(25),
zip_code varchar2(10),
Step2 :
Alter table employees
MODIFY employee_number number(10)
ALTER TABLE supplier
MODIFY supplier_name varchar2(100)
step3
query to dispaly
columnname table name
employee_number employees
supplier_name supplier
How to know columns and table name whose column size are modified
could you please provide query
Thanks in Advance09:35:50 SQL> desc dba_objects
Name Null? Type
OWNER VARCHAR2(30)
OBJECT_NAME VARCHAR2(128)
SUBOBJECT_NAME VARCHAR2(30)
OBJECT_ID NUMBER
DATA_OBJECT_ID NUMBER
OBJECT_TYPE VARCHAR2(19)
CREATED DATE
LAST_DDL_TIME DATE
TIMESTAMP VARCHAR2(19)
STATUS VARCHAR2(7)
TEMPORARY VARCHAR2(1)
GENERATED VARCHAR2(1)
SECONDARY VARCHAR2(1)
NAMESPACE NUMBER
EDITION_NAME VARCHAR2(30)LAST_DDL_TIME can be utilized -
JDBC Schema and Table Names Reversed
Hi,
We're currently evaluating CR4E but are unable to successfully run/preview any reports.
We have successfully created a JDBC connection using the generic JDBC driver. We are connecting to an Ingres database. The connection is successful and we can browse databases/schemas/tables with no problem. The problem is with the SQL that the reporting engine is generating.
A simple example:
SELECT "currency"."description" FROM "currency"."john" "currency"
In this statement, "currency" is actually the table and "john" is the schema name.
The query should read:
SELECT "currency"."description" FROM "john"."currency" "currency"
Help would be appreciated as we're completely stuck.
Many thanks,
Darran SmithHi Tej,
Thanks for clarifying the issue on the JRC.
Executing:
SELECT "price_type"."currency", "price_type"."description" FROM "price_type"."john" "price_type"
against the DB results in "Table 'john' does not exist or is not owned by you" as expected.
Executing
SELECT "price_type"."currency", "price_type"."description" FROM "john"."price_type" "price_type"
against the DB works just fine.
I amended my code to simply call:
CRJavaHelper.changeDataSource(reportClientDocument, userName, password, connectString, driverName, JNDIName);
and changed the CRJavaHelper.java file around line 145 that originally reads:
newTable.setQualifiedName (origTable.getAlias ());
I tried setting the qualified name to various different things:
"price_type"
"john.price_type"
"otherSchema.price_type"
None of these worked, but they did produce different things in the JDBC trace log. I've uploaded the JDBC log file to showing what happens with either "price_type" or "john.price_type":
[http://www.romofabrics.com/iijdbc.txt|http://www.romofabrics.com/iijdbc.txt]
As you can see, everything looks OK (including the schema and table name) until the very final select statement is created.
When you say that generic JDBC is supported, is that what I'm effectively using?
Cheers,
Darran -
New User Database schema and table name
When i create a new user in Oracle Webcenter Spaces 11g, I am not able to get the name of the database schema and table, where it is stored. Any insight on this will be very helpful.
WebCenter (and WebCenter spaces) uses an 'identity store' instead of database schema for storing user information - in an 'out of the box' installation, users are maintained through an embedded WebLogic LDAP store.
See the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter, p. 34-2.
At the end of section 34.4.1:
WebCenter Spaces supports self-registration. When new WebCenter users
self-register, they create their own login and password and a new user account is
created in the identity store. See also, Section 34.4, "Allowing Self-Registration".
user9097357 wrote:
When i create a new user in Oracle Webcenter Spaces 11g, I am not able to get the name of the database schema and table, where it is stored. Any insight on this will be very helpful. -
Export/Import utility: unusual schema and table names
Hi, I am working on the correct TABLE, SCHEMA.TABLE and SCHEMA names validation.
Unfortunately, I didn't find good examples in documentation and therefore turn to the forum.
Example: I have "My User" schema and "My Table" table and SCOTT with "scott table".
Export:
If I connect as My User (using client 10), I have to write
TABLES=('"my table"', 'SCOTT."scott table"')
If I connect as My User, (client 9 and older?) I have to write
TABLES=('"My Table"', '"SCOTT.scott table"')
Am I wright? It seems to work.
==The first question:
Does the quoting method depends on the client version?
I mean, '"SCOTT.scott table"' works on 9 but 'SCOTT."scott table"' works on 10.
==
Further, If I connect as SCOTT, (client 10), I write
TABLES=('"My User"."My Table"', 'SCOTT."scott table"')
It seems to work.
If I connect as SCOTT, (client 9 and older?), neither
TABLES=('"My User"."My Table"', 'SCOTT."scott table"')
nor
TABLES=('"My User.My Table"', '"SCOTT.scott table"')
doesn't work!
== The second question:
How should I write "My User"."My Table" on the 9 client?
Import:
I don't know how to make import to "My User".
FULL=Y
TOUSER='"my user"'
# and
#TOUSER="my user"
doesn't work. The same with USER mode and TABLE mode import.
Thanks to everyone who can help.I'm not sure how you would have been able to create a user with the user name 'my user' since gaps in the username are not allowed.
Generally, Oracle isn't case sensitive, so the fact that 'my user' gets converted to 'MY USER' isn't a problem - infact, oracle will always present usernames in UPPER CASE unless you explicitly use the LOWER() function when selecting them from the dba_users table.
So anyway, I think that the steps you need are:
(from SQL*Plus, logged in a as a DBA user e.g. sys or system)
create user MY_USER
identified by apassword;
grant connect, resource to my_user;
Then, from the operating system command line:
imp my_user/apassword@connect_string file=dump_filename.dmp FROMUSER=scott TOUSER=my_user;
that should work.....
R -
To know schema using table name
Can I know the schema using the table name.
I have a handy if probably overcomplicated script for this:
SQL> @which v$session
Objects matching 'v$session':
Name Type OWNER Granted? Synonym
V$SESSION SYNONYM PUBLIC
SYS.V_$SESSION (VIEW)
SQL> @which dual
Objects matching 'dual':
Name Type OWNER Granted? Synonym
DUAL SYNONYM PUBLIC
TABLE SYS Yes DUAL
SYS.DUAL (TABLE)
www.williamrobertson.net/scripts/which.sql -
Need the file extensions database table name
Hi,
I need to know the Database table name for file extensions in WCC.
Please check the image for reference .Hi 2790552
Please look at file doc_config.htm in the location <middleware_home>/Oracle_ECM1/ucm/idc/resources/core/tables/doc_config.htm
This is the file which helps in building the applet view.
I do belive that revisions and documents table might be used for validation and other specific things, but thats more in the context of document processing and from component IBR at runtime. But administration sake, i thing it works from the these config files since database doesn't have any table to hold this info. -
What does a BI Developer need to know about SAP tables and why?
Hi,
i.
As a BI Developer, to what extent do you need to know about SAP tables?
e.g. if you work mainly in the functional areas LO and FI
ii.
For example, I know that in Finance, GL relates to the tables BSEG and BKPF.
And if it is important to know about them, then which other tables need to be known and for what reasons?
e.g. do I need to know all these tables: http://www.erpgenie.com/sap/abap/tables_fi.htm
iii.
I thought as a BI Developer, knowing that a particular datasource, e.g. 0FI_GL_4 contains line items is enough and you replicate it to BW and work with it. Why is there the need to know the tables from which this datasource gets is data?
iv. What is the main difference between the FI datasources and the LO datasource?
Thanks.Hi,
i. As a BI Developer, to what extent do you need to know about SAP tables?
e.g. if you work mainly in the functional areas LO and FI
Not required, but today business demands so you required this Knowelgde.
ii.
For example, I know that in Finance, GL relates to the tables BSEG and BKPF.
And if it is important to know about them, then which other tables need to be known and for what reasons?
e.g. do I need to know all these tables: http://www.erpgenie.com/sap/abap/tables_fi.htm
We can't say yes or No, so based on your requirement you need to sit with Functional COnsultanst and the understand the Business Requirements and develop the OBjetcs.
iii.
I thought as a BI Developer, knowing that a particular datasource, e.g. 0FI_GL_4 contains line items is enough and you replicate it to BW and work with it. Why is there the need to know the tables from which this datasource gets is data?
If you want to know the data flow and reconsilization then you need to know it else not required
iv. What is the main difference between the FI datasources and the LO datasource?
Yes, one main difference is There is no setup table concept for FI DataSource*
Note: If you want to become a good BW consulatnt you must know about Tables for normal BW consultant it is not required.
Thanks
Reddy -
Hi All,
I got some output values from the legacy system with me but need to know whats the actual field name and table name to which i need to transfer these values. How can i do it, since which theres is not field name or despcription given for the data.
Is there any way i can do it.
Points will be rewarded for all useful answers.
Regards
ABif you know the transaction code you use to post the uploaded data in SAP, you just need to do BDC recording in using transation SM35. Record the whole process and create a program from the recording... and you wont even need to know the tables and field names-- almost everything will be done for you....
All you need to do is replace record data with upload data.
You can also try to look for a standard Function Module / BAPI which can do the processing for you and provide it with a table containing the upload data ...
Reward points if useful -
Cost Component structure field and table names
Hey all,
i need to code a BADI to push value of one column in cost component structure to another column in ccs for only order settlements..
any idea how to do this??
i am very new to abap please take it easy on ur answer..
i coulndt even find in which table and fields these values are stored...
thank youI have an OSS note, it tells you step by step how to config the badi u need.. but does not mention about the logic u ll use.. it is up to you....
so i need to find the field names and tell take these and post them to these columns...
i dont know if i make any sence, but this is all i need to do...
so i have the body i have the logic but i dunno the import and export fields...
i believe the table is ckmlkeph.... and field that populate the columns are kst0XX, but i cannot see the field name and table name if i select a line in the column and F1 ???? -
Reg:field and table name
Hi Guys,
I am developing one report for knowing the recognised amount ,but i am not able to get the field and table name .In system it is showing that VBRAV51HD:RVAMT_REAL_G.But this is a structure,how to get a field name for recognised amount.Please help.
Thanks & Regards,
Sash.Hi sash,
I think u need to some R n D upon it. First take the structure and open it in SE11. Then try to find out what all tables does the structure comprises of. Then try finding the relevant fieldname of the table( which is also existent in the structure) getting accessed when the field is triggered. That may solve your problem. try finding the objective of your structure being shown.
Abhijit -
I NEED TO KNOW ABOUT DRIVING TABLE...PLEASE
Well, My name is Adan. I am from Panama.. my english is not
good. But I'll try. I need to know about driving tables and how
have to choose a driving table and how optimizer proccess an sql
statment.
Example:
Employees have (1,000,000 rows),
dept have (100 rows)
Category have (100 rows)...
I need retrieved all employees with category and dept name for
those employee with salary > 100000
Well, What is the driving table and where i have to put this one
in the from clause ? What about order in the where predicate...
First ?
Select E.name, C.category, D.Departement
from Employees e, dept d, category c
where
and d.cat = c.cat
and e.deptno = d.deptno
and e.salary > 100000
Last ?
Select E.name,C.category, D.Departement
from dept d, category c ,Employees e
where
and d.cat = c.cat
and e.deptno = d.deptno
and e.salary > 100000
I apreciate your help....Thanks and sorry for my english....
Bye..Adam,
If you set your optimizer = choose and analyze the tables and
indexes to generate statistics, then your system can use the
Cost Based Optimizer (CBO) and, like David said, it will
automatically choose the best access path, and the order of
things will not matter.
If your optimizer is not set to choose or if there are no
statistics, then it will use the Rule Based Optimizer (RBO), in
which case, the only thing that matters is the order of the
tables in the from clause. When using RBO, the driving table
should be at the end of the from clause, in the right-most
position. The driving table is the one such that, after the
restrictions have been applied, returns the smallest number of
rows. You would have to compare the number of rows in the
employees table where salary > 100000 to the number of rows in
the dept table (100) and the number of rows in the category
table (100).
In RBO, if there are more than 100 rows in the employees table
where salary > 100000, then your from clause would be:
FROM employees e, dept d, category c
In RBO, if there are less than 100 rows in the employees table
where salary > 100000, then your from clause would be:
FROM category c, dept d, employees e
This is all that applies to the example you have given, however
there are other things that can apply in other situations. For
example, if there is an outer join to a table, the table that
has the (+) cannot be used as the driving table.
Barbara -
How to get the column name and table name with value
Hi All
I have one difficult requirement
I have some column values and they have given some alias column names but i need to find the correct column name and table name from the database.
For example value is "SRI" and i dont know the table and exact column name so is there any possibilities to find the column name and table name for the given value
Thanks & Regards
Srikkanth.MSearching all the database for a word...
Courtesy of michaels...
michaels> var val varchar2(5)
michaels> exec :val := 'as'
PL/SQL procedure successfully completed.
michaels> select distinct substr (:val, 1, 11) "Searchword",
substr (table_name, 1, 14) "Table",
substr (t.column_value.getstringval (), 1, 50) "Column/Value"
from cols,
table
(xmlsequence
(dbms_xmlgen.getxmltype ('select ' || column_name
|| ' from ' || table_name
|| ' where upper('
|| column_name
|| ') like upper(''%' || :val
|| '%'')'
).extract ('ROWSET/ROW/*')
) t
-- where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
order by "Table"or
11g upwards
SQL> select table_name,
column_name,
:search_string search_string,
result
from (select column_name,
table_name,
'ora:view("' || table_name || '")/ROW/' || column_name || '[ora:contains(text(),"%' || :search_string || '%") > 0]' str
from cols
where table_name in ('EMP', 'DEPT')),
xmltable (str columns result varchar2(10) path '.')
TABLE_NAME COLUMN_NAME SEARCH_STRING RESULT
DEPT DNAME es RESEARCH
EMP ENAME es JAMES
EMP JOB es SALESMAN
EMP JOB es SALESMAN
4 rows selected. -
Obtaining qualifier and table name in describe
Determining qualifier and table name in describe
Is there a way in OCIParamGet() on a statement handle/OCIAttrGet() sequence to determine the qualifier and table name?
Otherwise, how can I get this information?
When doing a join and listing the columns, we would like to be able to list qual.table name, followed by the columns associated with that table.If not with the parameter attributes (whic I haven't checked) you can always use the DescribeAny() to get the information.
If you need I can get you a fairly complete sample for DescribeAny() which demonstrates describing just about every type of schema item.
Drop me a line if you want it [email protected] -
Schema and Table .. Few doubts.
Hi ,
Can you please help me out on following questions.
1. How to physicalizing the Logical Model into database Schema AND Tables
2. How to create a Schema and table in oracle 11g. Let me know if scripts are available.
3. How to create a read only user with different restricted access.
4. How to deploying the Schema, Tables (and potential scripts) into Exadata.
Please provide the aboce details.
Thanks in advance.
Regards,
ParagYou need a Database Designer and a Database Administrator.
1. With experience of having done so earlier or having learned as an understudy to someone with expertise
2. Look up the Oracle 11g database SQL documentation. See http://www.oracle.com/pls/db112/homepage
3. See the Oracle 11g database Administrator's Guide and Security Guide (from the above URL)
4. Through a proper Change Control procedure. Each organisation has it's own methods of source code control and deployment.
Hemant K Chitale
Maybe you are looking for
-
Clicks and pops with flex time and fades
I am getting clicks and pops on tracks using flex time and fades. Any suggestions? Thanks
-
How to delete handling units for a delivery
While deleting delivery note there are hundreds of handling units. please help me how to delete handling units Thanks for the help Rajendra Prasad
-
Can't see SAP- Application Servers in Visual Studio 2003 Server Explorer
Hi Experts I installed SAP .NET Connector 2 in Visual Studion 2003. I can add SAP Connector Proxy to the project but I can't see SAP->Application Servers in Server Explorer window in Visual Studio. So I can't add a new SAP application server. Refresh
-
No Sound in Quicktime or iTunes
I just finished restoring my system from Time Machine and now for some reason I get no sound when playing Quicktime files or MP3s. Please help.
-
Où sont les champs de fusion dans Pages 5.0 ?
Tout mon travail depuis 2005 s'en trouve bouleversé! Est-ce qu'Apple ont l'intention de remettre la fonction "Champs de fusion" dans Pages 5.0 ?