ORA-22856: cannot add columns to object tables
Oracle 9i
==========
I tried to alter a table using a simple script.
ALTER TABLE tablename ADD col VARCHAR(50);
And it gave me the error: -
ORA-22856: cannot add columns to object tables
Can someone give me some direction on how to resolve this? The script executes fine on a test env.
Thanks in advance
Thanks for replying...
exit Null? Type
BUS NUMBER
REP VARCHAR2(60)
COS NUMBER
REP VARCHAR2(50)
ACC NUMBER
ADJ VARCHAR2(2000)
BAS NUMBER
BIL VARCHAR2(360)
BIL VARCHAR2(50)
BIL VARCHAR2(3)
BIL VARCHAR2(50)
BLP VARCHAR2(240)
BLP NUMBER
BOO DATE
COM NUMBER
COM NUMBER
COM NUMBER(15)
COM NUMBER(15)
COM VARCHAR2(4000)
COM VARCHAR2(30)
CUR NUMBER
CUS VARCHAR2(240)
DEA VARCHAR2(240)
EVE VARCHAR2(240)
HEA VARCHAR2(240)
HEA VARCHAR2(240)
HEA VARCHAR2(240)
HEA VARCHAR2(240)
INC VARCHAR2(30)
INV DATE
MAN VARCHAR2(360)
ORD NUMBER
ORD VARCHAR2(240)
PAY VARCHAR2(240)
PAY NUMBER
HEL NUMBER
PEO VARCHAR2(150)
PER NUMBER
PER VARCHAR2(30)
PER NUMBER(15)
PRO VARCHAR2(240)
PRO VARCHAR2(240)
QUA NUMBER(15)
QUO NUMBER
QUO DATE
QUO DATE
QUO VARCHAR2(80)
RED VARCHAR2(240)
REP VARCHAR2(360)
REP VARCHAR2(30)
REP VARCHAR2(30)
REP VARCHAR2(150)
REP VARCHAR2(3)
REP VARCHAR2(150)
REP VARCHAR2(50)
ROL VARCHAR2(60)
SHI VARCHAR2(360)
SPL VARCHAR2(240)
STA DATE
TER DATE
TOT VARCHAR2(240)
TRX NUMBER
TRX VARCHAR2(240)
TRX VARCHAR2(20)
TRX VARCHAR2(30)
WAI VARCHAR2(240)
YEA NUMBER
MAN VARCHAR2(30)
BUF NUMBER
BUF VARCHAR2(60)
EMC NUMBER
EMC VARCHAR2(60)
INT NUMBER
INT VARCHAR2(60)
SUP NUMBER
SUP VARCHAR2(60)
BRM NUMBER
BRM VARCHAR2(60)
SUP NUMBER
SUP VARCHAR2(60)
REP NUMBER
REP VARCHAR2(60)
DIV NUMBER
DIV VARCHAR2(60)
SUP NUMBER
SUP VARCHAR2(60)
REG NUMBER
REG VARCHAR2(60)
SUP NUMBER
SUP VARCHAR2(60)
ARE NUMBER
ARE VARCHAR2(60)
DIS NUMBER
DIS VARCHAR2(60)
ROL VARCHAR2(240)
ACC NUMBER
BON NUMBER
COM VARCHAR2(240)
COM VARCHAR2(240)
REP NUMBER
BIL NUMBER
BAS NUMBER
TOT NUMBER
TOT NUMBER
OVE NUMBER
BLP NUMBER
QUO VARCHAR2(30)
FN_ NUMBER
FN_ VARCHAR2(10)
SAL NUMBER
RES NUMBER
CRE NUMBER
MAN VARCHAR2(100)
PER NUMBER
PLA NUMBER
PLA NUMBER
REV VARCHAR2(30)
REP VARCHAR2(150)
OU_ NUMBER
OU_ NUMBER
EXC VARCHAR2(1)
MAN NUMBER
INV NUMBER
REP NUMBER
UPL VARCHAR2(1)
COM NUMBER
SEQ NUMBER
QUO NUMBER
PRO VARCHAR2(10)
PRO NUMBER
PRO NUMBER
BI_ NUMBER
CUR NUMBER
YTD NUMBER
PAY NUMBER
PAY DATE
PAY VARCHAR2(1000)
PAY VARCHAR2(80)
PAI VARCHAR2(1)
HOL VARCHAR2(1)
SRP NUMBER
WAI VARCHAR2(1)
WAI VARCHAR2(1)
GBK VARCHAR2(10)
TRX DATE
PAY NUMBER(15)
FIX NUMBER
TER DATE
ADJ VARCHAR2(240)
PAY NUMBER
PRO DATE
OIC DATE
OIC NUMBER
OIC VARCHAR2(30)
OIC NUMBER
HEL NUMBER
COM NUMBER
TRA NUMBER
HDR VARCHAR2(30)
LIN VARCHAR2(30)
LIN DATE
SRC DATE
EM_ DATE
EM_ DATE
ORD VARCHAR2(30)
REP VARCHAR2(150)
BIL VARCHAR2(300)
PER VARCHAR2(240)
Excuse the incomplete column names. All datatypes are basic ones and there are no constraints defined on any of the columns (dw env). The table is partitioned.
Similar Messages
-
Cannot add column to flexible table when ddl autocommit is off using Procedure
Hello All,
Through procedure I am trying to insert data into the target(EX_92) table(with schema flexibility)
Source table data
ID
PRODUCT_CODE
PRODUCT_NAME
PRICE
COLOR
TYPE
1
1
rugg
101.22
2
1
rugg
101.22
3
2
book
200.32
BLUE
Y
Target table QUERY
drop table EX_P2;
CREATE COLUMN TABLE EX_P2(
ID INTEGER PRIMARY KEY,
PRODUCT_CODE VARCHAR(3),
PRODUCT_NAME NVARCHAR(20),
PRICE DECIMAL(5,2)
) WITH SCHEMA FLEXIBILITY;
Procedure to insert above records with additional columns into the target table(EX_P2)
Procedure
drop procedure "DS_O1"."PROC";
create procedure "DS_O1"."PROC"(IN max_value INTEGER, IN schema_name varchar(40), IN table_name varchar(40), IN column_list varchar(400))
LANGUAGE SQLSCRIPT AS
BEGIN
DECLARE maxid integer :=0;
DECLARE INSERT_STR VARCHAR(1000) :='';
select max(ID) into maxid from "DS_O1"."EX_P2";
select :maxid from dummy;
INSERT_STR :='insert into "' || 'DS_O1' ||'"."EX_P2" ('||:column_list||') (select ' ||:column_list||'
FROM "'||:schema_name||'"."'||:table_name||'"' || ' where ID >' || :max_value || ')';
EXECUTE immediate(:INSERT_STR);
END;
Now while executing above procedure
CALL "DS_O1"."PROC" ( 0, 'DS_O1', 'TMP_EXL2','ID,PRODUCT_CODE,PRODUCT_NAME,PRICE,COLOR,STATUS,TYPE');
I am getting the following error
Could not execute 'CALL "DS_O1"."PROC" ( 0, 'DS_O1', 'TMP_EXL2','ID,PRODUCT_CODE,PRODUCT_NAME,PRICE,COLOR,STATUS,TYPE')' in 23 ms 564 µs .
SAP DBTech JDBC: [7]: feature not supported: [7] "DS_O1"."PROC": line 18 col 1 (at pos 779): [7] (range 3): feature not supported: cannot add column to flexible table when ddl autocommit is offHi Rajnish,
I had the same issue. For what it’s worth I was able to do a workaround basically creating all the columns when I create the table. The following code works for me to create the table which is just a matrix with one Integer column as the key and the rest as type Double.
It is not ideal in all scenarios because the table columns cannot be added dynamically via a procedure at a later point. This table has 27K columns now
Of course one of the advantages of a flex table would be programmatically adding columns dynamically. This works, but maybe there is still a way to add columns dynamically from a procedure, and someone else can advise.
Apparently dynamically adding columns via procedures may have some "minor" limitations due to the need to compile the procedure with knowledge of the flex table DDL. But again, hopefully someone knows another solution.
Best regards,
Mark
DROP PROCEDURE CREATE_MATRIX;
CREATE PROCEDURE CREATE_MATRIX(
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER
AS
/*********BEGIN PROCEDURE SCRIPT ************/
BEGIN
-- cursor over messages
declare cursor matrix_cursor for
select distinct TERM
from TERMS
order by term;
declare cnt INTEGER := 0;
declare temptxt NVARCHAR(500000) := 'CREATE COLUMN TABLE DOC_MATRIX ( CONTENT_ID INTEGER ';
for cur_matrix as matrix_cursor do
cnt:=:cnt + 1;
select temptxt || ', C' || cnt || ' DOUBLE' into temptxt from dummy;
end for;
temptxt:=temptxt || ' ) WITH SCHEMA FLEXIBILITY';
EXEC :temptxt;
select :temptxt from dummy;
END;
DROP TABLE DOC_MATRIX;
CALL CREATE_MATRIX(); -
OWB Issue|| ORA-12838: cannot read/modify an object after modifying it in
Hi
I am not able to enter the data into the staging table .
it is also not throwing any error ,only giving warnings.
so as a next step i just took the intermediate result generation and try to run it
but it is giving me an error in that
ORA-12838: cannot read/modify an object after modifying it in parallel
Can you please help me in tthis case.
ThanksHello,
The error ORA-12838 occurs if you try to issue SELECT/DML immediately after completing parallel DML, within one transaction - it's not permitted.
Start another transaction - issue Commit or Rollback first. -
IDM with SQL server Error: Cannot find columns for the table...
Hi all,
I am Configuring IDM with SQL Server repository and ran into this error.
'Cannot find columns for the table 'object'
.....jdbc...[SQL Server]Invalid object name 'object'
Can anybody please help me!!
GYes, permissions are very important. I ran into a similar problem because I didn't have the correct permissions. Make sure the user has the following permissions:
CREATE ANY TABLE
ALTER ANY TABLE
DROP ANY TABLE
CREATE ANY PROCEDURE
EXECUTE ANY PROCEDURE
DROP ANY PROCEDURE
Also, make sure there is enough space in the default tablespace of that user.
HTH
~Suvesh -
ORA-28336: cannot encrypt SYS owned objects
Hi ,I am getting the following error during impdp.
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
ORA-31693: Table data object "IDCFAPP"."ROBJECTOFSERVICE" failed to load/unload and is being skipped due to error:
ORA-28336: cannot encrypt SYS owned objects
any suggestions?ORA-31693: Table data object string failed to load/unload and is being skipped due to error: string
Cause: Table failed to load or unload due to some error.
Action: Check load/unload error, correct problem and retry command.
This error is most likely because the SQL statements were run from the SYS user account
~ Madrid -
ORA-12838: cannot read/modify an object after modifying it in parallel
I am getting the above error when i hit this part in my load ....
can somebody suggest me why it could be in this case ?
MERGE INTO PART1 H
USING (SELECT PA1, PART1, CON1, GEO1, COUN1, KIT1 FROM W1 ) WH ON
(H.PART1=WH.PART1) --on PK darshan 01-03-2006
WHEN MATCHED THEN
UPDATE SET H.CON1 =WH.CON1, H.GEO1 = FN_GETGEOCODE ( WH.GEO1 ), H.COUN1 =WH.COUN1, H.KIT1 =WH.KIT1, H.DT1 =TO_NUMBER(TO_CHAR(FN_GETGMTDATE(SYSDATE),'YYYYMMDD')), H.DT_LAST1 = FN_GETGMTDATE(SYSDATE)
WHEN NOT MATCHED THEN
INSERT (H.PART1, H.PART2, H.CON1, H.GEO1, H.COUN1, H.KITD1, H.DT1, H.DT_1, H.DT_LAST_1)
VALUES(CASE FN_MERGE_COUNTER(gpi_inserting)
WHEN 0 THEN WH.PART1 END, WH.PARTN1, WH.CON1, FN_GETGEOCODE ( WH.GEO1), WH.COUNT1, WH.KIT1,
TO_NUMBER(TO_CHAR(FN_GETGMTDATE(SYSDATE),'YYYYMMDD')), PKG_COMMONACTIVITIES.FN_GETGMTDATE(SYSDATE), PKG_COMMONACTIVITIES.FN_GETGMTDATE(SYSDATE)
);does this give you a clue?
SQL> CREATE TABLE t AS
2 SELECT owner, object_name FROM all_objects
3 WHERE 1=0;
Table created.
SQL> INSERT /*+ APPEND */ INTO t
2 SELECT owner, object_name
3 FROM all_objects;
8982 rows created.
SQL> SELECT * FROM t;
SELECT * FROM t
ERROR at line 1:
ORA-12838: cannot read/modify an object after modifying it in parallelI bet that you need a commit after loading w1.
John -
Ora-1276 cannot add controlfile - rman duplicate asm database
Hi,
I am trying to duplicate an asm database olddb -> asm database dup in the same diskgroup. somehow got error 0ra-1276 Cannot add file +DISK1/dup/controlfile/current.1669.754164181. File has an Oracle Managed Files file name.
There is nothing in the asm directory +DISK1/dup/controllfile before I run the rman.
in the initdup.ora
control_files=+DISK1,+DISK1 <--- just the disk group, not the file name
db_name='dup'
db_file_name_convert=+DISK1,+DISK1/dup
log_file_name_convert=+DISK1,+DISK1
Recovery Manager: Release 10.2.0.5.0 - Production on Sat Jun 18 20:58:06 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
RMAN> connect target sys/oracle@OLDDB
connect auconnected to target database: OLDDB (DBID=1142960293)
RMAN> xiliary /
connected to auxiliary database: DUP (not mounted)
RMAN> duplicate target database to dup
logfile group 1 ('+DISK1/dup') size 200k ,
group 2 ('+DISK1') size 200k;
2> 3>
Starting Duplicate Db at 2011/06/18 20:58:39
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=153 devtype=DISK
WARNING: DB_FILE_NAME_CONVERT resulted in invalid ASM names; names changed to diskgroup only.
contents of Memory Script:
set until scn 1613638;
set newname for datafile 1 to
"+DISK1";
set newname for datafile 2 to
"+DISK1";
set newname for datafile 3 to
"+DISK1";
set newname for datafile 4 to
"+DISK1";
set newname for datafile 6 to
"+DISK1";
restore
check readonly
clone database
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 2011/06/18 20:58:42
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to +DISK1
restoring datafile 00002 to +DISK1
restoring datafile 00003 to +DISK1
restoring datafile 00004 to +DISK1
restoring datafile 00006 to +DISK1
channel ORA_AUX_DISK_1: reading from backup piece +DISK1/OLDDB/backupset/2011_05_22/nnndf0_tag20110522t000530_0.1691.751766731
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=+DISK1/OLDDB/backupset/2011_05_22/nnndf0_tag20110522t000530_0.1691.751766731 tag=TAG20110522T000530
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:01:06
Finished restore at 2011/06/18 20:59:48
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "DUP" RESETLOGS ARCHIVELOG
MAXLOGFILES 192
MAXLOGMEMBERS 3
MAXDATAFILES 1024
MAXINSTANCES 32
MAXLOGHISTORY 292
LOGFILE
GROUP 1 ( '+DISK1/dup' ) SIZE 200 K ,
GROUP 2 ( '+DISK1' ) SIZE 200 K
DATAFILE
'+DISK1/dup/datafile/system.1674.754174727'
CHARACTER SET WE8ISO8859P1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 06/18/2011 20:59:48
RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE failed
ORA-01276: Cannot add file +DISK1/dup/controlfile/current.1669.754164181. File has an Oracle Managed Files file name.
RMAN>
thank you very much for your help.
thanks
andrewRMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE failed
ORA-01276: Cannot add file +DISK1/dup/controlfile/current.1669.754164181. File has an Oracle Managed Files file name.Are you sure is it running under pfile?
Ok, connect to auxiliary intance and post
show parameter db_create
show parameter control_filesIn your pfile, Have you mentioned single quotes?
If your database with OMF then if you give it as below. as there is some work around
Control_files='+DISK1/DUP/controlfile/control01.ctl','+DISK1/DUP/controlfile/control02.ctl'
Check this too *Ora-1276 Error Recreating The Controlfile When Using +Asm [ID 303187.1]* -
Cannot solve ORA-30756 "cannot create column or table of type that..."
Hi there!
I'm working on some excersises for the university but just can't get rid of this error.
First, here's my SQL:
[http://pastebin.com/f1266a668]
And here is what I get:
TYPE "LieferserviceTyp" Kompiliert.
TYPE "ArtikelTyp" Kompiliert.
TYPE "LebensmittelTyp" Kompiliert.
TYPE "HaushaltswarenTyp" Kompiliert.
TYPE "ArtikelInArtKombiTyp" Kompiliert.
TYPE "ArtikelKombiTyp" Kompiliert.
TYPE "ArtikelInKatalogTyp" Kompiliert.
TYPE "KatalogTyp" Kompiliert.
Fehler beim Start in Zeile 60 in Befehl:
CREATE TABLE "Artikel" OF "ArtikelTyp" (
PRIMARY KEY("artnr")
Fehler bei Befehlszeile:60 Spalte:0
Fehlerbericht:
SQL-Fehler: ORA-30756: Spalte oder Tabelle mit einem Objekttyp, der ein Supertyp-Attribut enthält, kann nicht erstellt werden
30756. 00000 - "cannot create column or table of type that contains a supertype attribute"
*Cause: The user tried to create a column or table of an object type that
contains a supertype attribute. This is not supported because
it leads to infinite recursion in our current storage model.
Note that creating a column of a type implies that we
create columns corresponding to all subtype attributes as well.
*Action: Change the type definition to contain a supertype REF attribute
instead of the supertype object attribute.
Fehler beim Start in Zeile 67 in Befehl:
CREATE TABLE "Kataloge" OF "KatalogTyp" (
PRIMARY KEY("katalog_id")
Fehler bei Befehlszeile:67 Spalte:0
Fehlerbericht:
SQL-Fehler: ORA-30756: Spalte oder Tabelle mit einem Objekttyp, der ein Supertyp-Attribut enthält, kann nicht erstellt werden
30756. 00000 - "cannot create column or table of type that contains a supertype attribute"
*Cause: The user tried to create a column or table of an object type that
contains a supertype attribute. This is not supported because
it leads to infinite recursion in our current storage model.
Note that creating a column of a type implies that we
create columns corresponding to all subtype attributes as well.
*Action: Change the type definition to contain a supertype REF attribute
instead of the supertype object attribute.
Fehler beim Start in Zeile 76 in Befehl:
DROP TABLE "Artikel"
Fehlerbericht:
SQL-Fehler: ORA-00942: Tabelle oder View nicht vorhanden
00942. 00000 - "table or view does not exist"
*Cause:
*Action:
Fehler beim Start in Zeile 77 in Befehl:
DROP TABLE "Kataloge"
Fehlerbericht:
SQL-Fehler: ORA-00942: Tabelle oder View nicht vorhanden
00942. 00000 - "table or view does not exist"
*Cause:
*Action:
DROP TYPE "KatalogTyp" erfolgreich.
DROP TYPE "ArtikelInKatalogTyp" erfolgreich.
DROP TYPE "ArtikelKombiTyp" erfolgreich.
DROP TYPE "ArtikelInArtKombiTyp" erfolgreich.
DROP TYPE "HaushaltswarenTyp" erfolgreich.
DROP TYPE "LebensmittelTyp" erfolgreich.
DROP TYPE "ArtikelTyp" erfolgreich.
DROP TYPE "LieferserviceTyp" erfolgreich.
The comments are in german but the structure should be clear I think.
Any help appreciated!Unfortunately it's a bad idea to store your code samples (or screenshots or whatever) on an external site, because not everybody can get access to such sites, especially if their workplace has limitations on websites that can be visited.
you're pastebin.com is one such site that I cannot access, so I can't see your code.
If you want to paste code and/or data on the forums remember to put the tag: {noformat}{noformat} before _and_ after it, so that the formatting is maintained and it's easier for us to read. -
How to add column to compressed table
Hi gurus,
Can any one help me how to add a column to compressed tables
Thanks in advanceThe only difference is if added column has default value. In that case:
SQL> create table tbl(id number,val varchar2(10))
2 /
Table created.
SQL> insert into tbl
2 select level,lpad('X',10,'X')
3 from dual
4 connect by level <= 100000
5 /
100000 rows created.
SQL> select bytes
2 from user_segments
3 where segment_name = 'TBL'
4 /
BYTES
3145728
SQL> alter table tbl move compress
2 /
Table altered.
SQL> select bytes
2 from user_segments
3 where segment_name = 'TBL'
4 /
BYTES
2097152
SQL> alter table tbl add name varchar2(5) default 'NONE'
2 /
alter table tbl add name varchar2(5) default 'NONE'
ERROR at line 1:
ORA-39726: unsupported add/drop column operation on compressed tables
SQL> alter table tbl add name varchar2(5)
2 /
Table altered.
SQL> update tbl set name = 'NONE'
2 /
100000 rows updated.
SQL> commit
2 /
Commit complete.
SQL> select bytes
2 from user_segments
3 where segment_name = 'TBL'
4 /
BYTES
7340032
SQL> select compression from user_tables where table_name = 'TBL'
2 /
COMPRESS
ENABLED
SQL> alter table tbl move compress
2 /
Table altered.
SQL> select bytes
2 from user_segments
3 where segment_name = 'TBL'
4 /
BYTES
2097152
SQL> SY. -
How to add columns for existing table dynamically?
Hi,
I created table structure only. I want to add columns for this existing table. Columns are not fixed, according to the user choice i need to write code.
Plz give me reply asap.
Thanks
ShirishaHi Shirisha,
I think the following code snippet will help you.
int l_no_cols = 0;
//Get the number of columns in this variable, something like the following
//l_no_cols = wdContext().currentContextElement().get<Context_attribute_name>;
IWDTable l_tab;
IWDTransparentContainer l_tbl_cont = (IWDTransparentContainer)view.getElement("TableDataCont");//ID of Container
l_tab = (IWDTable)view.getElement("TableData");//ID of Table
l_tab.setVisible(WDVisibility.VISIBLE);
l_tab.bindDataSource(wdContext.nodeTable_Data().getNodeInfo());
for(int a = 1; a <=l_no_cols; a++)
//Creating the column
IWDTableColumn l_tab_col = (IWDTableColumn)view.createElement(IWDTableColumn.class,"COL"+a);
//Creating Caption for Column Header
IWDCaption l_tab_cap = (IWDCaption)view.createElement(IWDCaption.class,"Caption"+a);
l_tab_cap.setText("Col"+i);
l_tab_col.setHeader(l_tab_cap);
//Creating Table Cell Editor for column
IWDInputField l_tab_cell = (IWDInputField)view.createElement(IWDInputField.class,"CellEditor"+a);
//creating context node attribute for the column dynamically
wdContext.nodeTable_Data().getNodeInfo().addAttribute("Col"+i,"com.sap.dictionary.String");
l_tab_cell.bindValue(wdContext.nodeTable_Data().getNodeInfo().getAttribute("Col"+i));
l_tab_col.setTableCellEditor(l_tab_cell);
l_tab.addColumn(l_tab_col);
l_tbl_cont.addChild(l_tab);
Regards,
Alka -
can someone tell me how can i add a column in a table somewhere in midle, i don't won't this column at the end of table. this table already have about 500 rows. the column i am adding it is null. can someone tell me how can i do that without losing any data.
i am using oracle 9.2.0.7
Thanksthe question is there is a way to do it instead of investagating why and so.... Well, it was for you to investigate actually to ponder on the question if it is worth it.
Anyway, I did provide you the way you would do it, if you do decide to do it.
Did you read till the end of the post? -
How i add Columns to my table ?
Guys, im not being able to add my columns to the table, can anyone help me ?
Thanks!
TableView<String> tv = new TableView<>();
tv.setVisible(true);
TableColumn firstNameCol = new TableColumn();
TableColumn lastNameCol = new TableColumn();
TableColumn emailCol = new TableColumn();
tv.getColumns().add(0,firstNameCol);Woah! Thanks man! it works greatly but.... Theres just 1 more issue!! i read all the javaDoc and asked help to a friend but we were unable to find a solution, also, im using the "Introduction to javaFX 2 book".
Im sorry to keep troubling you guys, but it seems javaFX isnt taking off here, and i sometimes think im one of the first in Brasil to starting learning it.
They teach java in my College, but i think javaFX is a way better "swing/interface" than the one in java. Anyway , the problem im having is : I need get the data from a db , no problem with that, but how can i insert that data? I tried several solutions but none worked.
Can you help me one more time :D ? Please!!
thanks a lot guys
Anyway, heres what the classes are :
Main Class :
package voosparaweb;
import java.util.logging.Level;
import java.util.logging.Logger;
* @author André Vinícius Lopes
public class Voos {
public static void main(String args[])
VoosParaWeb v1 = new VoosParaWeb();
v1.main(args);
//The Code Below doesnt work
v1.testingDataSetTable("1","13:00","Roma");
}voosParaWeb Class
package voosparaweb;
import javafx.application.Application;
import javafx.collections.ObservableList;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
* @author André
public class VoosParaWeb extends Application {
public TableView<Data> t1 = new TableView<Data>();
public static void main(String[] args) {
launch(args);
@Override
public void start(Stage primaryStage) {
Group root = new Group();
GridPane gp = new GridPane();
root.getChildren().add(gp);
Scene scene = new Scene(root, 640, 480);
t1 = tvset();
setDataTable();
t1.setVisible(true);
gp.add(t1, 1, 1);
//The Code Below work
// v1.testingDataSetTable("1","13:00","Roma");
primaryStage.setTitle("Terminals Panel");
primaryStage.setScene(scene);
primaryStage.show();
public TableView<Data> tvset()
String Person;
ObservableList<VoosParaWeb> data;
TableView<Data> tv = new TableView<Data>();
tv.setVisible(true);
TableColumn<Data, String> idTc = new TableColumn<Data, String>("ID#");
idTc.setCellValueFactory(new PropertyValueFactory("id"));
TableColumn<Data, String> timeTc = new TableColumn<Data, String>("Time");
timeTc.setCellValueFactory(new PropertyValueFactory("time"));
TableColumn<Data, String> destinyTc = new TableColumn<Data, String>("Destiny");
destinyTc.setCellValueFactory(new PropertyValueFactory("destiny"));
TableColumn flightTc = new TableColumn("Flight");
TableColumn counterTc = new TableColumn("Counter");
TableColumn boardingTc = new TableColumn("Boarding");
TableColumn gateTc = new TableColumn("Gate");
TableColumn statusTc = new TableColumn("Status");
tv.getColumns().add(idTc);
tv.getColumns().add(timeTc);
tv.getColumns().add(destinyTc);
tv.getColumns().add(flightTc);
tv.getColumns().add(counterTc);
tv.getColumns().add(boardingTc);
tv.getColumns().add(gateTc);
tv.getColumns().add(statusTc);
return tv;
public void setDataTable()
t1.getItems().add(new Data("1", "1:15", "Amsterdam"));
public void testingDataSetTable(String i,String time,String dest)
t1.getItems().add(new Data(i,time,dest));
t1.setVisible(true);
public static class Data {
private String id;
private String time;
private String destiny;
public Data()
public Data(String id, String time, String destiny) {
this.id = id;
this.time = time;
this.destiny = destiny;
public String getId() {
return id;
public String getTime() {
return time;
public String getDestiny() {
return destiny;
} -
CEWB - add Columns to standard Table control using enhancement
hi,
there is a table control in CEWB where i want to add a field from table STPO. Is this possible to add fields to standard tble control. If yes, what is the method? Enhncement or i read somewhere GUIXT. Whats that?
Any help will be really appreciated.
I hv got some list of BADIs, but none of them re triggering in the "Component assignment" screen:
EWB_SELECTION
CEWB_TSK_MENU_INTERN
CEWB_TSK_MENU_EXTERN
CEWB_OPR_MENU_INTERN
CEWB_OPR_MENU_EXTERN
CEWB_COM_MENU_INTERN
CEWB_COM_MENU_EXTERN
CEWB_CHA_MENU_INTERN
CEWB_CHA_MENU_EXTERN
CEWB_MST_MENU_INTERN
CEWB_MST_MENU_EXTERN
CEWB_GEN_MENU_INTERN
CEWB_TSK_UPDATE
CEWB_TSK_SCREENS
ags.
Edited by: ags on Jan 20, 2012 7:11 PMhi,
I am able to do this using SAP GUIXT scripts. But since I am new to this Script would like to get some advice on it like is it best practice to use this technique in such situations? Also how do i make this change universl, like how should i deliver this develoipment to the customer nd other users? what kind of settings need to be done.
Any hint will be really helpul.
Thanks in advance.
Ags. -
Add columns to a table with lob column
Hi,
Just a quick question: is there a performance penalty after adding columns to a table with a lob fied? the lob field is now the last column in the table and via via I was told that adding columns will impact badly the IO performance on the table if the lob field isn't anymore the last column. The table is on a Oracle 10.2.0.3 version.
thanks. regards
IvanHavent heard of performance degradation specifically due to a LOB column not being the last column in a table (although there are several issues with just having a LOB column in a table).
You may want to build a test database to test it out. It should be easy to run tests comparing one with the additional column and one the original to prove or refute it. The results would be interesting to learn - please post them up if you intend to test it out. -
ORA-30036 when modifying column in large table
Oracle version 10.2.0.4
Afternoon everyone!
I have a large table that I need to modify a column in - increasing from CHAR(3) to CHAR(6)
On altering the table I'm getting an ORA-30036: unable to extend segment but 8 in undo tablespace
Increasing undo tbs size isn't really an option, and I don't really want to go copying the table elsewhere either - again due to space limitations.
Is there a way to avoid this undo exhaustion? Will disabling logging for this table solve my issue? Or is there another way similar to the 'checkpoint' clause you can use when dropping columns?
Many thanks!
Adam MJust in case nothing better appears and you can't increase the UNDO ...
1. Create a new table with the correct datatype
2. Insert data from the old table to the new table, in batches if necessary. Divide the data by key values if possible or get a range of rowids to process or something
3. Make sure dependent objects are created for the new table
4. drop the old table
5. rename the old table to the new table
Maybe you are looking for
-
Why can't I transfer my purchased downloads from iTunes from my old laptop to new? The only option seems to be sync my iPod to the new playlist, and sacrifycing everything that's already stored on it.
-
Hi Experts, I have a requirement where I need to connect the existing BI system to the new proposed BI system. I am told about the open hub services. But i believe there could be a better way of doing. Can you help me how to connect existing BI sy
-
I don't know i'm doing this for my sister. She keeps uninstalling and reinstalling, and everytime she clicks on it, it says 'there was an error, please reinstall, error code 7, windows error code 998 ' or something like that. how do we stop this?
-
Database connecting problem using iPlanet Server
hi experts, i am new begi to iPlanet server. before that i was using JWS2.0. simple servlet is working fine in iPlanet. when coming to database connectivity, there is error shown as "SQLException java.sql.SQLException: [Microsoft][ODBC Driver Manager
-
How to mount database copy without specific datafiles
Hello all, I need to make a database copy without specific datafiles. This is due to, in the copy, I just need some, not all, datafiles. I tried the following command: startup mount alter tablespace mydata offlineBut it appears that the database must