473,388 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

how to get colunms displacement for a table in Oracle?

5
How do I get columns displacement for a table or tables in Oracle? Is there a command for it?

I am thinking about to write a COBOL program to do this by read in the output of SQL/PLUS DESC TABLE-NAME and format its column length to get the displacement. But, I think some of you must have a better way to this. Please advise!

Thank you for you help!
--Hiep
Jul 28 '08 #1
7 2832
debasisdas
8,127 Expert 4TB
try to use dictionary object USER_TAB_COLS
Jul 29 '08 #2
h13p
5
Thank you Debasisdas!
I am looking to that.. if you have example of SQL statements that would be great..

Again thank you for your help.
--Hiep
Jul 29 '08 #3
debasisdas
8,127 Expert 4TB
what exactly you are trying to findout ?
Jul 30 '08 #4
h13p
5
Hi debasisdas,

I need to unload a table into a flat file and want to know the column name, length and the start position of each column.

I'll need these information on every table in the Oracle data base. I'm using 10g.

Again, thank you in advanced for your advise.
--Hiep
Jul 30 '08 #5
debasisdas
8,127 Expert 4TB
you can use this

select * from user_tab_cols

but since you want for number of tables better write a procedure for that.
Jul 30 '08 #6
h13p
5
you can use this

select * from user_tab_cols

but since you want for number of tables better write a procedure for that.

Thank you debasisdas!

Do you know the way to set the sql/plus to display the whole line without wrap around or trunkcated?

select * from user_tab_cols will display a long line and it warped around so it hard to read. I set wrap off then it truncated. I set linesize 132 but it still wrap around.

--h13p
Jul 30 '08 #7
debasisdas
8,127 Expert 4TB
you need to use

SET LINE SIZE 1500
PAGE SIZE 200
Jul 31 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Corrine | last post by:
Hi, I am creating a global temporary table that is session-specific. I insert a BLOB into this table, and then select the BLOB from this table into a ResultSet. The ResultSet sees this BLOB...
5
by: Jim Garrison | last post by:
Scenario: 1) Create a GLOBAL TEMPORARY table and populate it with one (1) row. 2) Join that table to another with about 1 million rows. The join condition selects a few hundred rows. ...
0
by: Alice Bag | last post by:
groovy feature request: I think comments on COLUMNs should be inherited from the "parent" table when the "child" table is created. If you make use of inheritance, this would be a big time...
5
by: premmehrotra | last post by:
I am using Microsoft Access 2000 and Oracle 9.2.0.5 on Windows 2000. When I export a table from Access to Oracle using ODBC I get error: ORA 972 identifier too long I think the error is because...
3
by: premmehrotra | last post by:
I am using Access 2000 and Oracle 9.2.0.x on a Windows 2000. I have setup Oracle 9.2 ODBC Driver (I have not yet figured how to set Microsoft's Oracle ODBC driver). I am exporting a table from...
9
by: AnandaSim | last post by:
Hi All, I've had Access 97, 2000 connections to the corporate Oracle database for a few years now - but seldom use it. When I did use it years ago, performance was not fast but the features were...
2
by: travhale | last post by:
in a new project using .net 2005, c#. getting err message "Update requires a valid UpdateCommand when passed DataRow collection with modified rows." source RDBMS is oracle 8i. I add a new...
1
by: Pascal | last post by:
hello. I seek a software (or a code) able to prevent the obliteration or the displacement of the files of the file server of my primary school( under Windows 98). This must let the folders...
12
by: muralikrishna1983 | last post by:
I want to know the macro or query to split the string in one single colunm and insert those into multiple colunms(that may be a sentence) like for example colunm1 contains: 1234 daily...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.