Help to create a table
Hi
I want to create a table that I will use to write on.
Its 2 columns but 6 rows. On the 1st, 3rd and 5th I want headers.
How do I create the headers as everytime I add one it adds it under the top header.
Thanks
if you open inspector (top right. blue circle w/ white lower case 'i') and navigate to the table inspector (third from the right. tiny image of a table). select the cells that you want to become the header by either clicking and dragging or shift/command clicking on each cell. once the cells are selected, in inspector click the 'Cell Background' dropdown and choose 'color fill'
that should do it. if not, respond and ill see what i can do!
Similar Messages
-
Need help in creating multivalued table
hi all,
please i need help how to create a table with a column that require to have many cells in each cell of each record.
plz help me with the datatype and the sql syntax.
thanksyou mean nested tables?
Examples are here
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7002.htm#i2139603
Sybrand Bakker
Senior Oracle DBA -
Need help in Creating External Tables
Hi All,
I have a flat file containing numberic data, CLOB data, and also date columns data. I have to load this flat file data into staging server table using External tables. I have to write a stored procedure in such way creating exteranl tables dynamically. My question or need help from you people is that how to define the external table to load the CLOB data from flat file.
Thanks,
SankarThe LOCATION clause of an external table specifies the file or files to be read when the table is queried. You can change it to refer to different files without dropping and recreating the table and invalidating all dependent code.
Regarding DBMS_SQL, yes you can do it the hard way if you prefer.
Good point about CLOB columns in external tables. Quite possibly they are not supported, but I would have to check the manuals and try some examples. -
Need help to create export table procedure
Hi,
I have created a procedure, which may use to do following things:
1. first create a duplicate table of sys.aud$ records
2. export that duplicate table
here I am enclosing my code:
1. create or replace procedure crt_tab
2. is
3. sqlstring varchar2(100);
4. tablename varchar2(100);
5. sys_date varchar2(100);
6. h1 number;
7. begin
8. select to_char(sysdate,'DDMMYYYY_HH12MISSAM') into sys_date from dual;
9. tablename :='AUDIT_RECORD_'||sys_date;
10. sqlstring := 'create table ' || tablename|| ' as select * from sys.aud$';
11. execute immediate sqlstring;
12. h1 := dbms_datapump.open(operation=>'EXPORT',job_mode=>'TABLE',job_name=>NULL,version=>'COMPATIBLE');
13. dbms_datapump.add_file(handle =>h1, filename =>tablename||'.dmp',directory =>'AUDIT_RECORD', filetype =>1);
14. dbms_datapump.add_file(handle =>h1,filename =>tablename||'.log',directory =>'AUDIT_RECORD',filetype =>3);
15. dbms_datapump.metadata_filter(h1,'NAME_LIST','(''tablename'')');
16. dbms_datapump.start_job(h1);
17. dbms_output.put_line('Data Pump job started successfully');
18. end;
Well, in line number 15. I am passing a variable tablename as a parameter to dbms_datapump.metadata_filter but it exporting an empty dump. Could you please let me know how to pass a variable value in this.
looking forward to your early response.
Regards,
M.A.Bamboat
[email protected]SQL> ed
Wrote file afiedt.buf
1 DECLARE
2 l_dp_handle NUMBER;
3 l_last_job_state VARCHAR2(30) := 'UNDEFINED';
4 l_job_state VARCHAR2(30) := 'UNDEFINED';
5 l_logfilename VARCHAR2(20) := to_char(sysdate, 'DDMMRRRR') || '.log';
6 l_expfilename VARCHAR2(20) := to_char(sysdate, 'DDMMRRRR') || '.dmp';
7 l_tbl_name VARCHAR2(30) :='EMP';
8 BEGIN
9 l_dp_handle := DBMS_DATAPUMP.OPEN(operation => 'EXPORT',
10 job_mode => 'TABLE',
11 remote_link => NULL,
12 job_name => 'SAUBHIK_EXPORT',
13 version => 'COMPATIBLE');
14 DBMS_DATAPUMP.ADD_FILE(handle => l_dp_handle,
15 filename => l_expfilename,
16 directory => 'SAUBHIK',
17 filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_DUMP_FILE);
18 DBMS_DATAPUMP.ADD_FILE(handle => l_dp_handle,
19 filename => l_logfilename,
20 directory => 'SAUBHIK',
21 filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
22 dbms_datapump.metadata_filter(handle => l_dp_handle,
23 name => 'NAME_EXPR',
24 value =>'= '||''''||l_tbl_name||'''');
25 dbms_datapump.start_job(l_dp_handle);
26 dbms_datapump.detach(l_dp_handle);
27 EXCEPTION
28 WHEN OTHERS THEN
29 dbms_datapump.stop_job(l_dp_handle);
30 RAISE;
31* END;
SQL> /
PL/SQL procedure successfully completed.
SQL> SELECT * FROM user_datapump_jobs;
JOB_NAME OPERATION JOB_MODE STATE DEGREE ATTACHED_SESSIONS DATAPUMP_SESSIONS
SAUBHIK_EXPORT EXPORT TABLE EXECUTING 1 0 2
SQL> /
JOB_NAME OPERATION JOB_MODE STATE DEGREE ATTACHED_SESSIONS DATAPUMP_SESSIONS
SAUBHIK_EXPORT EXPORT TABLE NOT RUNNING 0 0 0
SQL> /
no rows selected
SQL>
oracle@ubuntu-desktop:~/Documents$ pwd
/home/oracle/Documents
oracle@ubuntu-desktop:~/Documents$ ls -l 05092011*
-rw-r----- 1 oracle oinstall 98304 2011-09-05 15:07 05092011.dmp
-rw-r--r-- 1 oracle oinstall 928 2011-09-05 15:07 05092011.log
oracle@ubuntu-desktop:~/Documents$ -
Not able to create a table with more than 64 fields in dictionary
Hi,
I have created a java dictionary in Netweaver Developer studio. I have to create a table with more than 64 fields in it. I was able to create the table in dictionary, but when i tried to build it, I am getting an error message as "more than 64 fields are not allowed". If i create the table with 64 fields or below 64 fields, i can build the dictionary and deploy it.
That is, when i create a table with more than 64 fieds, I am not able to compile the dictionary, But if i reduce the fields to 64 or below, i can compile the dictionary.
Kindly help me to solve the problem.
Regards,
SudheeshHi,
Sudheesh,as far as I am aware creating of fields in the table actually depends on the total width of table that can be used for various Vendors.
So I actually tried out creating a table with too many fields,and I am reproducing the errors which I have obtained -
<i>Error Dictionary Generation: <b>DB2:checkWidth TMP_1: total width of table (198198 bytes) greater than allowed maximum (32696 bytes)</b> TMP_1.dtdbtable TestDictionary/src/packages
Error Dictionary Generation: <b>DB4:Table TMP_1: fixed length: 198366 (32767).</b> TMP_1.dtdbtable TestDictionary/src/packages
Error Dictionary Generation: <b>DB6:checkWidth TMP_1: total width of table (297200) including row overhead is greater than the allowed maximum for 16K tablespaces .</b> TMP_1.dtdbtable TestDictionary/src/packages
Error Dictionary Generation: <b>MSSQL:checkWidth TMP_1: total width(198215) greater than allowed maximum (8060)</b> TMP_1.dtdbtable TestDictionary/src/packages
Error Dictionary Generation: <b>SAPDB:checkWidth TMP_1: total width(198297) greater than allowed maximum (8088)</b> TMP_1.dtdbtable TestDictionary/src/packages
Error Dictionary Generation: Table TMP_1 is not generated TMP_1.dtdbtable TestDictionary/src/packages </i>
I hope you can understand what the errors state.I am trying to create a table whose total width(sum of width all columns) is greater than the maximum allowed for various Vendors,such as DB2,MSSQL,SAPDB etc.
I hope this answer helps you create your table suitably
Regards,
Harish
(Please award points if this answer has been usefull) -
Need help with creating table that automatically inserts rows depending on the amount of data
Hi there,
I'm trying to create a table for supervisors to enter in their subordinates information and will automatically insert rows for supervisors with multiple subordinates. This form will not be connected to a data source, the supervisors will simply fill in the form and print out. I want it to kind of look like this:
Name
Position #
Classification
Hours
I really appreciate any help. Thanks!Hi Niall,
You figured it out! I didn't have javascript turned on. Now it is working perfectly. I think this will help me tremendously. Thanks so much for your help!!!!!
Laura -
Plese Help...i have to create a table dynamically using JSP
Hi all,
Depending upon what user fills as year & month I have to create a table dynamically.The table should look like this...
DAY S M T W
DATE 1 2 3 4
Name1 - - - -
Name2 - - - -
I know how to get total no available days of any month so i'll use for loop to create <tr>
The info i need is-
How to get the first day of the month ,the user entered using calendar because the first row should start with it.
and the second thing is...
How to keep incrementing it in the loop..like after sun-->mon-->tue....sat-->sun....
& also..sat & sun cols should be of different colors than other weekdays
Please help me.Sounds like you already knows about the Calendar class. You should use that class to get the first day of the month.
Kaj -
Need help in creating table in crystal report for visual studio 2010
Since there is no table support in crystal report,how can I create a table in crystal report for visual studio 2010?
I have a datatable and I need to show that in crystal report in table structure.
I have tried using lines and boxes to generate the table but it is not working perfectly.
How can I export the report in excel format in read/write mode saving all the formatting in the reportHi,
Check sample codes from following:
http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
You can download the [Developer's Guide|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm] & [API Guide|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm]
Thanks,
Saurabh -
HELP ME! Creating a table from a data file
Hi
I'm writing an application for data visualization. The user can press the "open file" button and a FileChooser window will come up where the user can select any data file. I would like to take that data file and display it as a table with rows and columns. The user needs to be able to select the coliumns to create a graph. I have tried many ways to create a table, but nothing seems to work! Can anyone help me?! I just want to read from the data file and create a spreadsheet type table... I won't know how many rows and columns I'll need in advance, so the table needs to be dynamic!
If you have ANY tips, I'd REALLY appreciated.....I won't know how many rows and columns I'll need in advance, so the table needs to be dynamic!You may use a List (ArrayList, LinkedList or Vector) for that.
Lists allow you (dynamically) add elements. -
HELP!! just finished a 20pages report and when trying to create the table of contest I lost EVERYTHING... there is nothing left of my work. WHY????
Hi Peter,
Yes I'am in 5.2, I did mention it right after.
This is wonderful Peter, great advice. I got to have my latest version before I created my table of contents.
In Pages > Menu > File > Revert
and see what you get.
Peter
Thank you so much!!
Have a wonderful day -
NEED HELP... Creating dynamic table from data file...
Hi
I'm writing an application for data visualization. The user can press the "open file" button and a FileChooser window will come up where the user can select any data file. I would like to take that data file and display it as a table with rows and columns. The user needs to be able to select the coliumns to create a graph. I have tried many ways to create a table, but nothing seems to work! Can anyone help me?! I just want to read from the data file and create a spreadsheet type table... I won't know how many rows and columns I'll need in advance, so the table needs to be dynamic!
If you have ANY tips, I'd REALLY appreciated.....Thank you for your help. I tried to use some of the code in the examples... I'm really new at this, so I'm not sure how to set it up. I added the code, but when I open a file, nothing happens. Here's the code I have so far...
package awt;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import java.text.*;
import javax.swing.border.*;
import javax.swing.table.*;
* @author
public class Main {
public static void main(String[] args) {
JFrame frame = new ScatterPlotApp();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.show();
class ScatterPlotApp extends JFrame implements ActionListener{
private JButton openButton, exitButton, scatButton, refreshButton;
private JMenuBar menuBar;
private JMenuItem openItem, exitItem;
private JFileChooser chooser;
private JMenu fileMenu;
private JTextPane pane;
private JTable table;
private DefaultTableModel model;
private JScrollPane scrollPane;
private Container contentPane;
/** Creates a new instance of ScatterPlotApp */
public ScatterPlotApp() {
setTitle("Data Visualizer");
Toolkit tk = Toolkit.getDefaultToolkit();
Dimension d = tk.getScreenSize();
int width = 867;
int height = 800;
setBounds((d.width - width)/2, (d.height - height)/2, width, height);
contentPane = getContentPane();
JPanel panel = new JPanel();
//pane = new JTextPane();
panel.setLayout(new FlowLayout(FlowLayout.CENTER));
contentPane.add(panel, BorderLayout.SOUTH);
//contentPane.add(pane, BorderLayout.NORTH);
scatButton = new JButton("Create ScatterPlot");
scatButton.addActionListener(this);
openButton= new JButton ("Open File");
openButton.addActionListener(this);
exitButton = new JButton ("Exit");
exitButton.addActionListener(this);
refreshButton = new JButton ("Reload Data");
refreshButton.addActionListener(this);
panel.add(openButton);
panel.add(scatButton);
panel.add(refreshButton);
panel.add(exitButton);
fileMenu = new JMenu("File");
openItem = fileMenu.add(new JMenuItem ("Open", 'O'));
openItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, Event.CTRL_MASK));
openItem.addActionListener(this);
exitItem = fileMenu.add(new JMenuItem ("Exit", 'X'));
exitItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, Event.CTRL_MASK));
exitItem.addActionListener(this);
JMenuBar menuBar = new JMenuBar();
fileMenu.setMnemonic('F');
menuBar.add(fileMenu);
setJMenuBar(menuBar);
public void actionPerformed(ActionEvent e){
Vector columnNames = new Vector();
Vector data = new Vector();
try{
Object source = e.getSource();
if (source == openButton || e.getActionCommand().equals("Open")){
chooser = new JFileChooser(".");
int status =chooser.showOpenDialog(this);
if (status ==JFileChooser.APPROVE_OPTION)
File file = chooser.getSelectedFile();
FileInputStream fin = new FileInputStream(file);
BufferedReader br = new BufferedReader(new InputStreamReader(fin));
String line;
//StringBuffer bf = new StringBuffer();
StringTokenizer st1 = new StringTokenizer(br.readLine(), ";");
while( st1.hasMoreTokens() )
columnNames.addElement(st1.nextToken());
// extract data
while ((line = br.readLine()) != null)
StringTokenizer st2 = new StringTokenizer(line, ";");
Vector row = new Vector();
while(st2.hasMoreTokens())
row.addElement(st2.nextToken());
data.addElement( row );
br.close();
model = new DefaultTableModel(data, columnNames);
table = new JTable(model);
scrollPane = new JScrollPane( table );
getContentPane().add( scrollPane, BorderLayout.NORTH );
while((line=br.readLine())!=null)
bf.append(line+"\n");
pane.setText(bf.toString());
//pane.setText(bf.toString());
else if (source == scatButton){
else if (source == exitButton || e.getActionCommand().equals("Exit")){
System.exit(0);
else if (source == refreshButton){
catch (Exception ex){
ex.printStackTrace();
} -
Pivot table problem. Please help me create this report
Hi friends..I'm new to OBIEE. We can create the grand total column in pivot table. I need grand total as well as Grand average. How can I create a new column in pivot table that is same as grand total but calculates average.
My table structure is like this.
Facility......Date........totaldays
A..........01/01/08......210
B..........01/01/08......215
C..........01/01/08......917
A..........02/01/08......211
B..........02/01/08......211
C..........02/01/08......911
A..........03/01/08......210
B..........03/01/08......215
C..........03/01/08......917
I need the report like this..
Facility.....01/01/08......02/01/08....03/01/08...Total....AVG
A...............210.............211............210.....631......210.3
B...............215.............211............215.....641.....213.6
C...............917.............911............917.....2745....915
For this report..I created pivot table but I'm not able to calculate the average..
Can you please help..I'm new to OBIEE...
Thanks in advancePlease change your username....
Here is what you need to do...
1) In the Pivot Table View, click on the Measures column and select New Calculated Item.
2) In the pop-up window complete as follows:
Name: type "Total Average"
Function: Select "Average" from the drop-down window.
Click on the values in the right pane that you wish OBI to calculate the average for.
3) Click "OK."
You now have another column that is the average of the values in each row. -
Error while creating temporary table
Hi All,
I am trying to integrate ODI and BAM . I have followed all the steps given in the guide.While creating interface i am getting the error while LKM is working.
I am using LKM SQL to SQL and IKM Oracle BAM Insert ( as the inserted data should be captured after inserting).
http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/bam_odi.htm
Please use this link for clarification.For me drop work table and create work table failed (C$ -work table). Anyone have any idea about this could you help me?
Thanks in advance,
GnanaprakasamIt seems the table(MMMORDERFILE_C$_REQUEST ) already exist in the work schema,so cant able to create and throw an error. can you tell me which KM you are using?
-
Error while creating new table
Hi
First I had deleted one custom table. Then I try to create the same table with different fields. Now I am gettinh the errors.
1. ZLV_COMP_TABLE: Inconsistency DD <-> DB (check table with analysis tool)
2. A table called ZLV_COMP_TABLE exists in the database
3. No active nametab exists for ZLV_COMP_TABLE
4. Termination due to inconsistencies
5. Table ZLV_COMP_TABLE (Statements could not be generated)
6. Error number in DD_DECIDE (9)
Please help me ... how can I create a table with same name.
thanks
SubhankarHello,
goto SE14 -- Give the table name
use Tables Radio button
click on Edit
check the Delete Data Radio button
click on ACTIVATE AND ADJUST DATABASE.
Now check the table in SE11.
If it still exits you can change the same table or Delete it again & create a new table with Same Name.
This might help your query.
Anil. -
Error while creating external table
Hi i tried to create external table. The table is created but while selecting that table it is throwing below errors
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file Countries1.txt in EXT_TABLES not found
ORA-06512: at "SYS.ORACLE_LOADER", line 19I've created temp directory in window under oracle directory " C:\oracle\product\10.2.0\temp"
In the temp directory i've a text file countries1.txt
the text file has the below information
ENG,England,English
SCO,Scotland,English
IRE,Ireland,English
WAL,Wales,WelshI've connected to system user and created one directory and granted the read and write permissions to user SCOTT.
SQL> create or replace directory ext_tables as 'C:\oracle\product\10.2.0\temp\';
Directory created.
SQL> grant read,write on directory ext_tables to scott;
Grant succeeded.The creation of external table query is
CREATE TABLE countries_ext (
country_code VARCHAR2(5),
country_name VARCHAR2(50),
country_language VARCHAR2(50)
ORGANIZATION EXTERNAL (
TYPE ORACLE_LOADER
DEFAULT DIRECTORY ext_tables
ACCESS PARAMETERS (
RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY ','
MISSING FIELD VALUES ARE NULL
country_code CHAR(5),
country_name CHAR(50),
country_language CHAR(50)
LOCATION ('Countries1.txt')
PARALLEL 5
REJECT LIMIT UNLIMITED;And the error is
SQL> select *from countries_ext;
select *from countries_ext
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file Countries1.txt in EXT_TABLES not found
ORA-06512: at "SYS.ORACLE_LOADER", line 19
SQL> Please help me in thisYou are missing something. Most probably the file does not exists in your specified path. This is working in my 10.2.0.3
Step1: Check the file is actually there.
C:\oracle\product\10.2.0>mkdir temp
C:\oracle\product\10.2.0>cd temp
C:\oracle\product\10.2.0\temp>dir
Volume in drive C is C_Drive
Volume Serial Number is 8A93-1441
Directory of C:\oracle\product\10.2.0\temp
07/30/2011 12:00 PM <DIR> .
07/30/2011 12:00 PM <DIR> ..
07/30/2011 12:00 PM 79 countries1.txt
1 File(s) 79 bytes
2 Dir(s) 50,110,582,784 bytes free
C:\oracle\product\10.2.0\temp>type countries1.txt
ENG,England,English
SCO,Scotland,English
IRE,Ireland,English
WAL,Wales,Welsh
C:\oracle\product\10.2.0\temp>Step 2: Creating the directory object.
SQL> show user
USER is "SYS"
SQL> SELECT * FROM v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
SQL> create or replace directory ext_tables as 'C:\oracle\product\10.2.0\temp';
Directory created.
SQL> grant read,write on directory ext_tables to scott;
Grant succeeded.
SQL>Step 3: Table definition.
C:\>sqlplus scott@orclsb/tiger
SQL*Plus: Release 10.1.0.4.2 - Production on Sat Jul 30 12:04:24 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> CREATE TABLE countries_ext (
2 country_code VARCHAR2(5),
3 country_name VARCHAR2(50),
4 country_language VARCHAR2(50)
5 )
6 ORGANIZATION EXTERNAL (
7 TYPE ORACLE_LOADER
8 DEFAULT DIRECTORY ext_tables
9 ACCESS PARAMETERS (
10 RECORDS DELIMITED BY NEWLINE
11 FIELDS TERMINATED BY ','
12 MISSING FIELD VALUES ARE NULL
13 (
14 country_code CHAR(5),
15 country_name CHAR(50),
16 country_language CHAR(50)
17 )
18 )
19 LOCATION ('Countries1.txt')
20 )
21 PARALLEL 5
22 REJECT LIMIT UNLIMITED;
Table created.
SQL> SELECT * FROM countries_ext;
COUNT COUNTRY_NAME
COUNTRY_LANGUAGE
ENG England
English
SCO Scotland
English
IRE Ireland
English
COUNT COUNTRY_NAME
COUNTRY_LANGUAGE
WAL Wales
Welsh
Maybe you are looking for
-
30GB 5G iPod Video Problems.
Hey, all. I just got a new fifth generation 30GB iPod Video and am having trouble getting the video on it. I've got all my songs on it, but iTunes won't seem to let me add videos into the library. I followed the instructions in the manual at apple.co
-
How to delete book in FB2 reader after upgrading ipad to ios7?
Aaster upgrating to iOS7 not able to delete book in FB2 reader. Please advice.
-
I recently tried to factory restore my wife's macbook pro. I did the restore using the snow leapord disks that came with it. Shorty after my wife and i got Lion for both of our macbook pros. Hers unfortunately is still having problems. My question wo
-
Subcontract PO's in PPV report
Hi, I have a question in SAP ECC Product Costing PPV reports. Question is how to identify subcontract PO's in PPV report. Thanks in advance for your valuable response. Regards, Maahi.
-
Hey i live in jamaica and i have a curve 8520, in jamaica u pay a certain amout of money to get ur data plan for a month and i already did that but the money that i have on my phone for talking is starting to come off so i contacted my customer care