DDL Statement

Is there any view that displays the DDL statements that have been executed in a schema?
I queried sql_fulltext of v$sql view but couldnt find any ddl statement.
Any kind of answer will be highly appreciated.
Regards

<Font face='Arial' size=2>
Is there any view that displays the DDL statements
that have been executed in a schema?This may help
by joining v$sqlarea and v$session
select sesion.sid,
       sesion.username,
          sesion.machine,
           sesion.program,
       sql_text
  from <font color="#261d5c">v$sqlarea sqlarea</font>, <font color="#800040">v$session sesion</font>
where sesion.sql_hash_value = sqlarea.hash_value
   and sesion.sql_address    = sqlarea.address
   and sesion.username =<font color="#400000">upper('&USER_NAME')</font>
   -SK
  </font>

Similar Messages

  • DDL statements and dynamic  sql  in stored procedure

    I created a stored procedure to create and drop tables, using dynamic sql.
    When I try to do the inserts using dynamic sql, i.e
    v_string := 'INSERT statement';
    EXECUTE IMMEDIATE v_string;
    I get the following error message:
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at line 63
    Line 63 happens to be the line that the EXECUTE IMMEDIATE v_string; statement is in.
    I am able to describe the table that the inserts are being made into, so I know that the table exists.
    Any idea why I'm getting this error message would be appreciated.

    Yes I do and I have been able to create other tables using dynamic sql.
    The table that I am having problems with SELECTs data from another table to get its column values; within the SELECT statement, the CAST function is used:
    ie. CAST(CASE SUBSTR(CAST(E_MOD AS VARCHAR(7)),2,3)
    WHEN 'AAA' THEN 'A55'
    ELSE ............
    I get the following error message:
    ERROR at line 18: (this line starts the CAST statement)
    ORA-06550: line 18, column 13:
    PLS-00103: Encountered the symbol "AAA" when expecting one of the following:
    . ( * @ % & = - + ; < / > at in is mod not rem return
    returning <an exponent (**)> <> or != or ~= >= <= <> and or
    like between into using || bulk
    When I remove the quotes or add another single quote, the same error cascades to 'A55'.
    After doing the same for the next error, I get the error message below:
    ERROR at line 1: (this line has the EXECUTE IMMEDIATE statement)
    ORA-00936: missing expression
    ORA-06512: at line 6
    Any idea what the problem could be?
    Also is there another way to have DDL statements as stored procedures other than using dynamic sql or the DBMS_SQL package?

  • ABAP Import Phase DDL Statement Error

    Hi Experts!
    I am installing SAP Netweaver PI 7.3 EHP1 and encountered an error in the ABAP import phase.
    I checked the import monitor logs and found a clue about SAPVIEW.log.
    I have checked the SAPVIEW.log and found out the following:
    ERROR: DDL statement failed
    ( DROP VIEW "APPL_MODS" )
    dsql_exec_immediate returned DS_DBOBJECTUNKNOWN
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    (DB) ERROR: DDL statement failed
    ( CREATE VIEW "APPL_MODS" ( "NAME", "TYP", "MEMBER", "DEVCLASS" ) AS SELECT T0001."NAME", T0001."TYP", T0001."MEMBER", T0002."DEVCLASS" FROM "MODSAP" T0001, "MODSAPA" T0002 WHERE T0001."NAME" = T0002."NAME" AND T0002."MIGRATED" <> 'X' )
    dsql_exec_immediate returned DS_DBOBJECTUNKNOWN
    (DB) INFO: disconnected from DB
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: job finished with 1 error(s)
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: END OF LOG:
    Please help!
    Also please let me know if any further detail is required.
    Regards,
    Ayan

    Gaurav,
    Please find the below pasted trace from SAPVIEW.log
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: START OF LOG: 20140823014048
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: sccsid @(#) $Id: //bas/721_REL/src/R3ld/R3load/R3ldmain.c#8 $ SAP
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: version R7.20/V1.6 [UNICODE]
    Compiled Dec  4 2013 12:54:08
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load -ctf I /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DATA/SAPVIEW.STR /tmp/sapinst_instdir/NW731/DB6/INSTALL/STD/AS/DDLDB6.TPL SAPVIEW.TSK DB6 -l SAPVIEW.log
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: job completed
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: END OF LOG: 20140823014048
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: START OF LOG: 20140823014048
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: sccsid @(#) $Id: //bas/721_REL/src/R3ld/R3load/R3ldmain.c#8 $ SAP
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: version R7.20/V1.6 [UNICODE]
    Compiled Dec  4 2013 12:54:08
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load -i SAPVIEW.cmd -dbcodepage 4102 -l SAPVIEW.log -stop_on_error -loadprocedure fast LOAD:DEF_CRT
    (DB) INFO: connected to DB
    (SQL) INFO: Searching for SQL file SQLFiles.LST
    (SQL) INFO: SQLFiles.LST not found
    (SQL) INFO: Searching for SQL file /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/SQLFiles.LST
    (SQL) INFO: /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/SQLFiles.LST not found
    (SQL) INFO: Searching for SQL file .SQL
    (SQL) INFO: .SQL not found
    (SQL) INFO: Searching for SQL file /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/DB6/.SQL
    (SQL) INFO: /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/DB6/.SQL not found
    (DB) INFO: /BI0/MHIER_VERS created #20140823014054
    (DB) INFO: /BI0/RALEAFNODCH created #20140823014054
    (DB) INFO: /BI0/RALEAFNODSP created #20140823014054
    (DB) INFO: /BI0/RBUCKET created #20140823014054
    (DB) INFO: /BI0/RCALMONTH created #20140823014054
    (DB) INFO: /BI0/RCALMONTH2 created #20140823014054
    (DB) INFO: /BI0/RCALQUART1 created #20140823014054
    (DB) INFO: /BI0/RCALQUARTER created #20140823014054
    (DB) INFO: /BI0/RCALWEEK created #20140823014054
    (DB) INFO: /BI0/RCALYEAR created #20140823014054
    (DB) INFO: /BI0/RCHNGID created #20140823014054
    (DB) INFO: /BI0/RCURRENCY created #20140823014054
    (DB) INFO: /BI0/RDATE created #20140823014054
    (DB) INFO: /BI0/RFISCPER created #20140823014054
    (DB) INFO: /BI0/RFISCPER3 created #20140823014054
    (DB) INFO: /BI0/RFISCVARNT created #20140823014054
    (DB) INFO: /BI0/RFISCYEAR created #20140823014054
    (DB) INFO: /BI0/RHALFYEAR1 created #20140823014054
    (DB) INFO: /BI0/RHIENM created #20140823014054
    (DB) INFO: /BI0/RHIER_HIEID created #20140823014054
    (DB) INFO: /BI0/RHIER_NODE created #20140823014054
    (DB) INFO: /BI0/RHIER_VERS created #20140823014054
    (DB) INFO: /BI0/RINFOPROV created #20140823014054
    (DB) INFO: /BI0/RIOBJNM created #20140823014054
    (DB) INFO: /BI0/RLANGU created #20140823014054
    (DB) INFO: /BI0/RLOGSYS created #20140823014054
    (DB) INFO: /BI0/RNODEPOSIT created #20140823014054
    (DB) INFO: /BI0/RNORESTNODE created #20140823014054
    (DB) INFO: /BI0/RRATE_TYPE created #20140823014054
    (DB) INFO: /BI0/RRECORDMODE created #20140823014054
    (DB) INFO: /BI0/RRECORDTP created #20140823014054
    (DB) INFO: /BI0/RREQUID created #20140823014054
    (DB) INFO: /BI0/RSIGNCH created #20140823014054
    (DB) INFO: /BI0/RSOURSYSTEM created #20140823014054
    (DB) INFO: /BI0/RTIME created #20140823014054
    (DB) INFO: /BI0/RTXTLG created #20140823014054
    (DB) INFO: /BI0/RTXTMD created #20140823014054
    (DB) INFO: /BI0/RTXTSH created #20140823014054
    (DB) INFO: /BI0/RUNIT created #20140823014054
    (DB) INFO: /BI0/RWEEKDAY1 created #20140823014054
    (DB) INFO: /BI0/ZBUCKET created #20140823014054
    (DB) INFO: /BI0/ZCALMONTH created #20140823014054
    (DB) INFO: /BI0/ZCALMONTH2 created #20140823014054
    (DB) INFO: /BI0/ZDATE created #20140823014054
    (DB) INFO: /BI0/ZFISCPER created #20140823014055
    (DB) INFO: /BI0/ZHALFYEAR1 created #20140823014055
    (DB) INFO: /BI0/ZINFOPROV created #20140823014055
    (DB) INFO: /BI0/ZIOBJNM created #20140823014055
    (DB) INFO: /GC1/VXXX created #20140823014055
    (DB) INFO: /OSP/V_RAUI_CHRD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_CMVD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_CPVD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_CSED created #20140823014055
    (DB) INFO: /OSP/V_RAUI_DCDB created #20140823014055
    (DB) INFO: /OSP/V_RAUI_GRPD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_MTD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_MVDB created #20140823014055
    (DB) INFO: /OSP/V_RAUI_PBDB created #20140823014055
    (DB) INFO: /OSP/V_RAUI_RDDB created #20140823014055
    (DB) INFO: /OSP/V_RAUI_RFCD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_RMTD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_RTDB created #20140823014055
    (DB) INFO: /OSP/V_RAUI_SCD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_SCHD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_SELD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_TMVD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_TPBD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_TPDB created #20140823014055
    (DB) INFO: /OSP/V_RAUI_TPRD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_TRGD created #20140823014055
    (DB) INFO: /OSP/V_RAUI_VARD created #20140823014055
    (DB) INFO: /SAPAPO/GEWICHT created #20140823014055
    (DB) INFO: /SAPAPO/TRENDAM created #20140823014055
    (DB) INFO: /SAPAPO/VWALPROF created #20140823014055
    (DB) INFO: /SAPPO/FULL_HINT created #20140823014055
    (DB) INFO: /SAPPO/V_PPOCMPL created #20140823014055
    (DB) INFO: /SAPPO/V_PPO_UPD created #20140823014055
    (DB) INFO: /SAPTRX/A_CONDF4 created #20140823014055
    (DB) INFO: /SAPTRX/EE_FLDS created #20140823014055
    (DB) INFO: /SAPTRX/MSG_PARA created #20140823014055
    (DB) INFO: /SAPTRX/MSG_PTAB created #20140823014055
    (DB) INFO: /SAPTRX/STR_FLDS created #20140823014055
    (DB) INFO: /SAPTRX/VDASFEV created #20140823014055
    (DB) INFO: /SAPTRX/VDASFPAR created #20140823014055
    (DB) INFO: /SAPTRX/VD_AOMIL created #20140823014055
    (DB) INFO: /SAPTRX/VD_AOPAC created #20140823014055
    (DB) INFO: /SAPTRX/VD_AOPAE created #20140823014055
    (DB) INFO: /SAPTRX/VD_AOPAI created #20140823014055
    (DB) INFO: /SAPTRX/VD_AOPAR created #20140823014055
    (DB) INFO: /SAPTRX/VD_AOTD1 created #20140823014055
    (DB) INFO: /SAPTRX/VD_AOTD2 created #20140823014055
    (DB) INFO: /SAPTRX/VD_AOTDD created #20140823014055
    (DB) INFO: /SAPTRX/VD_AOTYP created #20140823014055
    (DB) INFO: /SAPTRX/VD_ASPAR created #20140823014055
    (DB) INFO: /SAPTRX/VD_CONDL created #20140823014055
    (DB) INFO: /SAPTRX/VD_EVTD1 created #20140823014055
    (DB) INFO: /SAPTRX/VD_EVTD2 created #20140823014055
    (DB) INFO: /SAPTRX/VD_EVTD3 created #20140823014055
    (DB) INFO: /SAPTRX/VD_EVTD4 created #20140823014055
    (DB) INFO: /SAPTRX/V_AODD02 created #20140823014055
    (DB) INFO: /SAPTRX/V_DD03 created #20140823014055
    (DB) INFO: /SAPTRX/V_DD03X created #20140823014055
    (DB) INFO: /SDF/CMO_OBJ_TR created #20140823014055
    (DB) INFO: /SDF/CMO_SMDCMP created #20140823014056
    (DB) INFO: /SDF/CMO_SMDDVC created #20140823014056
    (DB) INFO: /SDF/CMO_UMDCMP created #20140823014056
    (DB) INFO: /SDF/SMODICOMP created #20140823014056
    (DB) INFO: /SDF/SMODIDEVC created #20140823014056
    (DB) INFO: /SDF/UMOD_COMP created #20140823014056
    (DB) INFO: AKB_TRHD_DETAIL created #20140823014056
    (DB) INFO: ALTEXTHIST created #20140823014056
    (DB) INFO: APPL_DEVC created #20140823014056
    (DB) INFO: APPL_DIAL created #20140823014056
    (DB) INFO: APPL_DOMA created #20140823014056
    (DB) INFO: APPL_DTEL created #20140823014056
    (DB) INFO: APPL_ENQU created #20140823014056
    (DB) INFO: APPL_FUGR created #20140823014056
    (DB) INFO: APPL_FUGRG created #20140823014056
    (DB) INFO: APPL_FUNC created #20140823014056
    (DB) INFO: APPL_INDX created #20140823014056
    (DB) INFO: APPL_MCOB created #20140823014056
    (DB) INFO: APPL_MENU created #20140823014056
    (DB) ERROR: DDL statement failed
    ( CREATE VIEW "APPL_MODS" ( "NAME", "TYP", "MEMBER", "DEVCLASS" ) AS SELECT T0001."NAME", T0001."TYP", T0001."MEMBER", T0002."DEVCLASS" FROM "MODSAP" T0001, "MODSAPA" T0002 WHERE T0001."NAME" = T0002."NAME" AND T0002."MIGRATED" <> 'X' )
    dsql_exec_immediate returned DS_DBOBJECTUNKNOWN
    (DB) INFO: disconnected from DB
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: job finished with 1 error(s)
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: END OF LOG: 20140823014056
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: START OF LOG: 20140823014312
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: sccsid @(#) $Id: //bas/721_REL/src/R3ld/R3load/R3ldmain.c#8 $ SAP
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: version R7.20/V1.6 [UNICODE]
    Compiled Dec  4 2013 12:54:08
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load -i SAPVIEW.cmd -dbcodepage 4102 -l SAPVIEW.log -stop_on_error -loadprocedure fast LOAD:DEF_CRT
    (DB) INFO: connected to DB
    (SQL) INFO: Searching for SQL file SQLFiles.LST
    (SQL) INFO: SQLFiles.LST not found
    (SQL) INFO: Searching for SQL file /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/SQLFiles.LST
    (SQL) INFO: /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/SQLFiles.LST not found
    (SQL) INFO: Searching for SQL file .SQL
    (SQL) INFO: .SQL not found
    (SQL) INFO: Searching for SQL file /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/DB6/.SQL
    (SQL) INFO: /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/DB6/.SQL not found
    (DB) ERROR: DDL statement failed
    ( DROP VIEW "APPL_MODS" )
    dsql_exec_immediate returned DS_DBOBJECTUNKNOWN
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    (DB) ERROR: DDL statement failed
    ( CREATE VIEW "APPL_MODS" ( "NAME", "TYP", "MEMBER", "DEVCLASS" ) AS SELECT T0001."NAME", T0001."TYP", T0001."MEMBER", T0002."DEVCLASS" FROM "MODSAP" T0001, "MODSAPA" T0002 WHERE T0001."NAME" = T0002."NAME" AND T0002."MIGRATED" <> 'X' )
    dsql_exec_immediate returned DS_DBOBJECTUNKNOWN
    (DB) INFO: disconnected from DB
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: job finished with 1 error(s)
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: END OF LOG: 20140823014318
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: START OF LOG: 20140823015246
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: sccsid @(#) $Id: //bas/721_REL/src/R3ld/R3load/R3ldmain.c#8 $ SAP
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: version R7.20/V1.6 [UNICODE]
    Compiled Dec  4 2013 12:54:08
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load -i SAPVIEW.cmd -dbcodepage 4102 -l SAPVIEW.log -stop_on_error -loadprocedure fast LOAD:DEF_CRT
    (DB) INFO: connected to DB
    (SQL) INFO: Searching for SQL file SQLFiles.LST
    (SQL) INFO: SQLFiles.LST not found
    (SQL) INFO: Searching for SQL file /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/SQLFiles.LST
    (SQL) INFO: /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/SQLFiles.LST not found
    (SQL) INFO: Searching for SQL file .SQL
    (SQL) INFO: .SQL not found
    (SQL) INFO: Searching for SQL file /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/DB6/.SQL
    (SQL) INFO: /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/DB6/.SQL not found
    (DB) ERROR: DDL statement failed
    ( DROP VIEW "APPL_MODS" )
    dsql_exec_immediate returned DS_DBOBJECTUNKNOWN
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    (DB) ERROR: DDL statement failed
    ( CREATE VIEW "APPL_MODS" ( "NAME", "TYP", "MEMBER", "DEVCLASS" ) AS SELECT T0001."NAME", T0001."TYP", T0001."MEMBER", T0002."DEVCLASS" FROM "MODSAP" T0001, "MODSAPA" T0002 WHERE T0001."NAME" = T0002."NAME" AND T0002."MIGRATED" <> 'X' )
    dsql_exec_immediate returned DS_DBOBJECTUNKNOWN
    (DB) INFO: disconnected from DB
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: job finished with 1 error(s)
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: END OF LOG: 20140823015250
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: START OF LOG: 20140825011924
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: sccsid @(#) $Id: //bas/721_REL/src/R3ld/R3load/R3ldmain.c#8 $ SAP
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: version R7.20/V1.6 [UNICODE]
    Compiled Dec  4 2013 12:54:08
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load -i SAPVIEW.cmd -dbcodepage 4102 -l SAPVIEW.log -stop_on_error -loadprocedure fast LOAD:DEF_CRT
    (DB) INFO: connected to DB
    (SQL) INFO: Searching for SQL file SQLFiles.LST
    (SQL) INFO: SQLFiles.LST not found
    (SQL) INFO: Searching for SQL file /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/SQLFiles.LST
    (SQL) INFO: /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/SQLFiles.LST not found
    (SQL) INFO: Searching for SQL file .SQL
    (SQL) INFO: .SQL not found
    (SQL) INFO: Searching for SQL file /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/DB6/.SQL
    (SQL) INFO: /backup/NW7.3_EHP1/ABAP_Inst_EXP/51043228/DATA_UNITS/EXP3/DB/DB6/.SQL not found
    (DB) ERROR: DDL statement failed
    ( DROP VIEW "APPL_MODS" )
    dsql_exec_immediate returned DS_DBOBJECTUNKNOWN
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    (DB) ERROR: DDL statement failed
    ( CREATE VIEW "APPL_MODS" ( "NAME", "TYP", "MEMBER", "DEVCLASS" ) AS SELECT T0001."NAME", T0001."TYP", T0001."MEMBER", T0002."DEVCLASS" FROM "MODSAP" T0001, "MODSAPA" T0002 WHERE T0001."NAME" = T0002."NAME" AND T0002."MIGRATED" <> 'X' )
    dsql_exec_immediate returned DS_DBOBJECTUNKNOWN
    (DB) INFO: disconnected from DB
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: job finished with 1 error(s)
    /usr/sap/PID/SYS/exe/uc/rs6000_64/R3load: END OF LOG: 20140825011937
    Please look into this..
    Regards,
    Ayan

  • Difference B/w all DDL statements in Oracle 8i and 9i

    Where can i get the difference between all the DDL statements between oracle 8i and 9i.If anyone has this pls ..post it..

    What is your national character set? What is NLS_LENGTH_SEMANTICS set to?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Executing multiple DDL statements with OracleCommand

    hi..
    im having trouble executing multiple ddl statements with the the oracle command object. i have tried to enclose them within Begin.. End; block but with no use.
    this problem seems to occur only with DDL statements,.. as my DML like update, delete and Inserts seem to work fine when enclosed within the PL /SQL block.
    single DDL statements also seem to work fine. so im guessing this has nothing to do with priviledges. any ideas?
    my code as follows
    OracleCommand command = new OracleCommand();
    command.CommandType = CommandType.Text;
    command.CommandText = string.Format(@"{0}",script);
    conn.Open();
    command.Connection = conn;
    command.ExecuteNonQuery();
    the script is read from a file, and looks like this. (note : i have removed any line breaks or any other characters)
    BEGIN ALTER TABLE SYSTEMUSER DISABLE CONSTRAINT FK_USER_CLIENT; ALTER TRIGGER SET_SUBSCRIPTION_SUB_I DISABLE; END;
    this is the error i get.
    Oracle.DataAccess.Client.OracleException: ORA-06550: line 1, column 7:
    PLS-00103: Encountered the symbol "ALTER" when expecting one of the following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe.

    If I'm not mistaken, we're not allowed to issue DDL inside anonymoue block (or stored procedure) since DDL has implicit commit in it. But you still can execute DDL using EXECUTE IMMEDIATE or using DBMS_SQL package. Try changing your CommandText like this,
    BEGIN
       EXECUTE IMMEDIATE 'ALTER TABLE SYSTEMUSER DISABLE CONSTRAINT FK_USER_CLIENT';
       EXECUTE IMMEDIATE 'ALTER TRIGGER SET_SUBSCRIPTION_SUB_I DISABLE';
    END;Hope this helps,
    [Nur Hidayat|http://nur-hidayat.net/]

  • DDL statements in Graphic builder 6i

    Hi.
    Is there possibility to perform DDL statements in Graphic builder 6i? Something like FORM_DDL in Forms and SRW.DO_SQL in Reports.
    I want to set role. Report has own statement SET_ROLE.
    Our application use classic security model: User has granted only LOGIN privilege by default. After login application sets roles for reading, writing, deleting to DB. Same Reports do. But in Graphic builder I can't.

    May I can use OG library and OG.Interpret command. :o)

  • Execution of ddl statement  in post-insert trigger

    hi,
    I'm working on headstart 6.5. I wants to execute a DDL statement in post-insert-trigger.The problem is this trigger is executed in between pre-commit and post-forms-commit.In pre-commit the transaction is opened with a insert statement that is inserting "open" in field status which is having a deffered check constraint QMS_NEED_TO_CLOSE_TRANSACTION.In post-forms-commit it will check whether the transaction is open if yes will check the business rule will delete the data that was inserted into qms_transaction in pre-commit trigger and will close the transaction .
         In between if i execute a DDl statement a commit will be performed on the insert statement written in pre-commit trigger.This will violate the check-constraint and we will get the error qms_need_to_close_transaction violated.
         My business logic wants this statement to be executed at the post-insert trigger on the block.Is this possible??
         Does anyone have face the same problem?Whts the workaround for the same?

    Hello,
    You could use the execute_query after the commit_form called, by exeample in a KEY-COMMIT trigger.
    KEY-COMMIT trigger
      Commit_Form ;
      Go_block( 'master_block' ) ;
      Execute_Query ;Francois

  • Executing a DDL statement from java code

    Hi all,
    this is code from jdev11.1.1.3 version. I am trying to execute a DDL statement in oracle db from java code, but "ORA-00900: invalid SQL statement" error is coming.
    I am trying to create a table in same schema in same db by using 'Copy' command.
    Same DDL command is executing from sql command prompt & table is being created. Plz help me , as how to do from java?
            public String cmb_action() {
            // Add event code here...
            try {
                //getting source db connection
                InitialContext initialContext = new InitialContext();
                DataSource ds = (DataSource) initialContext.lookup("java:comp/env/jdbc/SourceConnDS");
                Connection sourceconn = ds.getConnection();
                sourceconn.setAutoCommit(false);
                String sql = "Copy from myschema/mypass@DB insert t_dept using select * from dept;"                       
                Statement stat = sourceconn.createStatement();
                stat.executeUpdate(sql);
                sourceconn.commit();
                System.out.println("done");
              catch (Exception ne) {
                // TODO: Add catch code
                ne.printStackTrace();
            return null;
        }

    I have a requirement to transfer data from one db to another db from Java Application Layer.Maybe, maye not. We get all sorts of weird "requirements" - which are nothing but thoughts or proposed solutions.
    But,
    Did the "requirement" mention whether the table existed already or not in the target database? - If not, did it tell you to create it - drop/create it?
    Did the "requirement" deliver some explanation to why this copying was neeeded? - Are we talking replication? - Or a one time cloning?
    Etc, etc,
    Personally I would always argue against a "reuirement" like that. - It just isn't the way to do it. Period.
    Regards
    Peter
    P.S: If you are satisfied with what COPY does, then you could let Java make an OS call and do it from there?

  • How to Generate DDL Statement for PSAPROLL Tablespace on Oracle9i-HP_UX

    Hi,
    I am having SAP R3 46C installed with Oracle 9i on HP_UX 11i system.
    I want to generate required DDL statements for PSAPROLL Tablespace/Rollback Segments as Backup/recovery purpose, before converting it into PSAPUNDO.
    Its easy to find & store required DDL statements using OEM. But, I am not able to locate oemapp  (under $ORACLE_HOME/bin directory) application in the installation.
    The current patch level of installed oracle is
    I want to start OEM in HP_UX system, if it is possible.
    otherwise,
    I want to know the other alternatives to generate the required DDL statements.
    Thanks in advance.
    Regards,
    Bhavik G. Shroff

    Hi Stefan,
    On windows Platform it is very easy to get DDL info for any object of database.
    But, I was not able to start OEM in HP_UX system.
    I have done my job complete using this good package of Oracle9i, in this way.
    SQL> SET heading off
    SQL> SET long 10000
    SQL> SET pages 100
    SQL> SELECT dbms_metadata.get_ddl(u2019TABLESPACEu2019,'PSAPROLLu2019)
    FROM DBA_TABLESPACES;
    O/P:
    CREATE TABLESPACE "PSAPROLL" DATAFILE
    '/oracle/RQ1/sapdata1/roll_1/roll.data1' SIZE 681574400 REUSE ,
    '/oracle/RQ1/sapdata1/roll_2/roll.data2' SIZE 3145719808 REUSE
    LOGGING ONLINE PERMANENT BLOCKSIZE 8192
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1048576 SEGMENT SPACE MANAGEMENT MANUAL
    SQL> SELECT dbms_metadata.get_ddl(u2019ROLLBACK_SEGMENTu2019,'PRS_0u2019)
    FROM DBA_SEGMENTS;
    CREATE ROLLBACK SEGMENT "PRS_0" TABLESPACE "PSAPROLL"
    STORAGE(INITIAL 10485760 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 32765
    Also follow this useful links:
    [DDL Generation--Oracle's Answer to Save You Time and Money|http://www.dbasupport.com/oracle/ora9i/DDLgen2.shtml]
    [DDL Generation--Oracle's Answer to Save You Time and Money|http://www.dbasupport.com/oracle/ora9i/DDLgen3.shtml]
    Good.
    Thanks a lot.

  • "DDL statement failed" in Database load faze

    Hello,
    I have an problem when installing DB2 on Solaris platform.
    During the installation, in Database load Faze, i get the error:
    MSC-01015  Process finished with error(s), check log file /tmp/sapinst_instdir/R3E47X2/SYSTEM/ABAP/DB6/NUC/DB/SAPVIEW.log
    I check the log & it has a whole bunch on tables that are created & at the end of it i get this message:
    DB) ERROR: DDL statement failed
    (CREATE VIEW "D010TINF" ( "PROG", "R3STATE", "LANGUAGE", "UNAM", "UDAT", "UTIME", "DATALG" ) AS SELECT T0001."PROGNAME"
    , T0001."R3STATE", T0001."LANGUAGE", T0001."UNAM", T0001."UDAT",  T0001."UTIME", T0001."DATALG" FROM "REPOTEXT" T0001)
    DbSlExecute: rc = 103
      (SQL error -204)
      error message returned by DbSl:
    SQL0204N  "SAPS47.REPOTEXT"; is an undefined name.  SQLSTATE=42704
    (DB) INFO: disconnected from DB
    /sapmnt/S47/exe/R3load: job finished with 1 error(s)
    /sapmnt/S47/exe/R3load: END OF LOG: 20080810125355
    /sapmnt/S47/exe/R3load: START OF LOG: 20080810130455
    /sapmnt/S47/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#4 $ SAP
    /sapmnt/S47/exe/R3load: version R6.40/V1.4
    /sapmnt/S47/exe/R3load -dbcodepage 1100 -i /tmp/sapinst_instdir/R3E47X2/SYSTEM/ABAP/DB6/NUC/DB/SAPVIEW.cmd -l /tmp/sapin
    st_instdir/R3E47X2/SYSTEM/ABAP/DB6/NUC/DB/SAPVIEW.log -c 300 -merge_bck -stop_on_error
    (DB) INFO: connected to DB
    (DB) ERROR: DDL statement failed
    (DROP VIEW "D010TINF")
    DbSlExecute: rc = 103
      (SQL error -204)
      error message returned by DbSl:
    SQL0204N  "SAPS47.D010TINF"; is an undefined name.  SQLSTATE=42704
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    (DB) ERROR: DDL statement failed
    (CREATE VIEW "D010TINF" ( "PROG", "R3STATE", "LANGUAGE", "UNAM", "UDAT", "UTIME", "DATALG" ) AS SELECT T0001."PROGNAME"
    , T0001."R3STATE", T0001."LANGUAGE", T0001."UNAM", T0001."UDAT",  T0001."UTIME", T0001."DATALG" FROM "REPOTEXT" T0001)
    DbSlExecute: rc = 103
      (SQL error -204)
      error message returned by DbSl:
    SQL0204N  "SAPS47.REPOTEXT"; is an undefined name.  SQLSTATE=42704
    (DB) INFO: disconnected from DB
    /sapmnt/S47/exe/R3load: job finished with 1 error(s)
    /sapmnt/S47/exe/R3load: END OF LOG: 20080810130457
    /sapmnt/S47/exe/R3load: START OF LOG: 20080810140953
    /sapmnt/S47/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#4 $ SAP
    /sapmnt/S47/exe/R3load: version R6.40/V1.4
    /sapmnt/S47/exe/R3load -dbcodepage 1100 -i /tmp/sapinst_instdir/R3E47X2/SYSTEM/ABAP/DB6/NUC/DB/SAPVIEW.cmd -l /tmp/sapin
    st_instdir/R3E47X2/SYSTEM/ABAP/DB6/NUC/DB/SAPVIEW.log -c 300 -merge_bck -stop_on_error
    (DB) INFO: connected to DB
    (DB) ERROR: DDL statement failed
    (DROP VIEW "D010TINF")
    DbSlExecute: rc = 103
      (SQL error -204)
      error message returned by DbSl:
    SQL0204N  "SAPS47.D010TINF"; is an undefined name.  SQLSTATE=42704
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    (DB) ERROR: DDL statement failed
    (CREATE VIEW "D010TINF" ( "PROG", "R3STATE", "LANGUAGE", "UNAM", "UDAT", "UTIME", "DATALG" ) AS SELECT T0001."PROGNAME"
    , T0001."R3STATE", T0001."LANGUAGE", T0001."UNAM", T0001."UDAT",  T0001."UTIME", T0001."DATALG" FROM "REPOTEXT" T0001)
    DbSlExecute: rc = 103
      (SQL error -204)
      error message returned by DbSl:
    SQL0204N  "SAPS47.REPOTEXT"; is an undefined name.  SQLSTATE=42704
    (DB) INFO: disconnected from DB
    /sapmnt/S47/exe/R3load: job finished with 1 error(s)
    /sapmnt/S47/exe/R3load: END OF LOG: 20080810140954
    Please lend me some of your wisdom
    Regards,
    Yoav Zilberman

    Hi Yoav,
    your import failed already before the SAPVIEW package was processed. You should check the other packages too for errors or for packages which are not imported. But the errors show that at lease the tables REPOTEXT and D010TINF are missing. I'm not sure, but I think they are in SAPDDIC package. You should run the package again before running SAPVIEW. For a functioning system you need both, tables and views.
    Regards
    Ralph

  • ERROR exec_ddl_stmt: (DB) ERROR: DDL statement failed during migration.

    Hello Experts ,
    We are in process of migration and after 90% of migration we are getting the following error as mentioned in MIGRATE_DT_XXXXX_IMP.log.:
    ERROR exec_ddl_stmt: (DB) ERROR: DDL statement failed
    (  ALTER TABLE "EDID4" ADD PRIMARY KEY(       "MANDT"       , "DOCNUM"       , "COUNTER"       , "SEGNUM"       ))
    DbSlExecute: rc = 99
      (SQL error -10108)
      error message returned by DbSl:
    ERROR exec_ddl_stmt: (DB) ERROR: DDL statement failed
    (                                           ALTER TABLE "EDID4" enable persistent merge )
    DbSlExecute: rc = 99
      (SQL error 131)
      error message returned by DbSl:
    transaction rolled back by lock wait timeout: Lock timeout occurs while waiting TABLE_LOCK of mode EXCLUSIVE(TRANSACTION_ID=14, UPDATE_TRANSACTION_ID=1442668)
    (DB) INFO: disconnected from DB
    I ran r3tans -d too to check the connection but it shows "Disconnected from DB".
    Can someone please let me know what went wrong.
    Environment Details :
    SOurce : ECC 6 Ehp5 NW702 Oracle10
    Target : ECC 6 Ehp7 NW740 HANA 1.0 Rev85
    Tool : SUM 1.0 SP12 PL04
    Phase Name :
    MAIN_SWITCH/SUBMOD_MIG_SWITCH/SUBMOD_MIG_DOWNTIME_RUN/EU_CLONE_MIG_DT_RUN
    Thanks
    Dev

    Hi, Check the Blog - DMO: optimizing system downtime ...
    we already had a discussion about in another request.
    Best Regards Roland

  • DDL Statements in a Stored Procedure

    Is there some technique which can be used to execute DDL statements in a stored procedure? I want to drop and recreate a table and a number of indexes. Is there a way for me to do this within a stored procedure?
    Thanks in advance for your assistance!!!

    BEGIN
       EXECUTE IMMEDIATE 'CREATE TABLE bonus (id NUMBER, amt NUMBER)';
    END;http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/13_elems18.htm#33889

  • DDL statement/s in stored procedures (FUNCTION)

    Hello all,
    I was trying to create a small function that tests keywords on the basis of successful/failed table creation. If a table can be created with a keyword as identifier, it is a non-reserved keyword, if table creation fails, it is a reserved keyword:
    CREATE OR REPLACE FUNCTION createTableForKeyword (keyword VARCHAR) RETURN BOOLEAN IS
    BEGIN
    CREATE TABLE keyword (x NUMBER);
    -- if no exception occurred, table creation succeeded
    DROP TABLE keyword; drop it
    RETURN FALSE; -- FALSE means non-reserved
    EXCEPTION
    WHEN OTHERS THEN
    -- if exception occurred, table creation failed
    RETURN TRUE; -- TRUE means reserved
    END createTableForKeyword;
    This would have been my first PL/SQL program, but I get the following error:
    PLS-00103: Found symbol "CREATE" when expecting one of:
    begin case declare exit ................
    .............. merge pipe
    I had to translate the error message from German, but it should suffice. Obviously DDL statements in functions are not allowed. How do I solve my problem then, given a table that has one column containing the keyword?:
    CREATE TABLE Keywords (keyword VARCHAR(30));
    I was looking too call this function from a loop, but how would I do this without a function? How do I capture table creation fails without exceptions in functions?
    TIA
    Karsten

    To run DDL inside stored procedure you must use Dynamic SQL. Use EXECUTE IMMEDIATE
    To see if a word is a reserved word just query V$RESERVED_WORDS
    Thanks,
    Karthick.

  • How to know which user has executed which ddl statement

    Hi All,
    Last week i faced some problem, like some one has truncated the table , so luckily i have the schema backup so i restored it till the last backup taken.
    but i want to know who has executed this ddl statement.
    i know there are some utilities are avaible with oracle, so please describe me the easiest and quickest way to get this.
    Regards
    Asif

    In order of descending simplicity
    - Use the principle of least privilege to restrict the privileges users have in the database to ensure that they cannot do things like truncating a table
    - Enable auditing of potentially problematic statements. This has to be done before the damage is done, though
    - Create a DDL trigger that logs when users issue DDL. This also must be done before the damage is done.
    - Use LogMiner to go through the archived log files that were generated at the time the table was truncated. This assumes that the database is in ARCHIVELOG mode and that you have the archived logs from last week. Using LogMiner to track down the culprit is also likely to be relatively time-intensive
    Justin

  • Errors when executing DDL statements against MaxDB

    Hi guys,
    We are experiencing problems with DDL execution against MaxDB. I have installed version 7.8.00.17 on my 32-bit Windows XP XP3 machine. I got the following errors:
    1. MaxDB complained that the "VARCHAR(8008)" data type has invalid length.
    2. When fixing this, I got the problem, that a unique constraint has too long name.
    3. After shortening this name, now I get the following:
      u2190[4;35;1mSQL (0.0ms)u2190[0m   u2190[0mActiveRecord::JDBCError: SAP DBTech JDBC: [-4006] (at 25): Unknown domain name:PRIMARY_KEY: CREATE TABLE photos (id primary_key, title varchar(8008), created_at timestamp, updated_at timestamp) u2190[0m
    rake aborted!
    All these DDL statements, are generated as part of a rake task execution (we are testing a simple Rails application, that uses persistence), and they execute fine on MySQL for instance. But on MaxDB it seems that there are more severe limitations about name lengths, data types, etc.
    Could you please advice about this problem ?
    Thanks and Kindest Regards,
    Krum.

    Hmm... what's wrong with the internet on your side, that you don't have access to the MaxDB documentation?
    ad 1. You are using a UNICODE varchar, aren't you? check [here|http://maxdb.sap.com/doc/7_7/45/33337d9faf2b34e10000000a1553f7/frameset.htm] why it fails.
    ad 2. Unique constraints don't get names in MaxDB [see here|http://maxdb.sap.com/doc/7_7/45/50fa4272c31796e10000000a1553f6/frameset.htm]
    ad 3. You're simply using the wrong DDL format. "PRIMARY_KEY" is not even a MaxDB keyword.
    I'm pretty sure you'll find the correct syntax for primary key definition yourself, by simply browsing the documentation, so I leave this to you now.
    regards,
    Lars

  • Best way to parallelize ddl statements

    The short story:
    We have a file of ddl statements (output from datapump metadata_only) that we want to run in parallel as fast as possible. We have paresh working pretty well, but for large files, it goes rather slow. We have been working on a procedure to read the file in as an external table with really good results.
    What we have now is the external table with some additional columns that identify the ddl (owner, object_name, statement type, an order id based on statement type, a unique statement id). The idea is that we want to do all the Primary Keys first, then normal indexes, followed by foreign keys and index/table stats. Right now, I grab the next statement and mark all statements for that object_name so that no other worker processes can work on that object (reduces contention). Unfortunately, we have introduced contention on the external table (doing a select .. for update). I can think of a couple ideas to try, but wondering if any experts out there had a slick way of accomplishing this.
    Feel free to ask questions. I do not think it matters, but we are working with an export from 10.2.0.2, import into 10.2.0.3.
    Here is a snippet of the current code:
       -- c2 Fetches the next sql statement to be worked on. To reduce contention,
       -- we avoid working on objects that are currently INPROGRESS. The objects
       -- are also ordered such that we work on Primary keys first, then normal indexes,
       -- with foreign keys and statistics last.
       -- The "FOR UPDATE" will keep the records locked until the transaction is committed,
       -- thereby guaranteeing that we are only working on one object at a time.
       CURSOR c2 is
        SELECT p1.STMNT_ID, p1.object_name
          FROM ORACLE.PARESH_SQL_STMNT p1
          WHERE p1.STATUS ='READY'
           and p1.ORDER_PREF > 0
           -- and p1.object_type is not null
           and p1.STMNT_ID||p1.object_name = (
             SELECT max(STMNT_ID||object_name) keep (dense_rank first order by order_pref, stmnt_id)
               FROM ORACLE.PARESH_SQL_STMNT
               WHERE STATUS ='READY'
                and ORDER_PREF > 0
                -- and object_type is not null
        for update of p1.object_name;
    BEGIN
      i_status:='';
      open c2;
      -- fetch only one row (highest order_pref)
      fetch c2 into l_stmnt_id, l_object_name;
      -- Set the status INPROGRESS so no other statements for this object are run
      update oracle.paresh_sql_stmnt
      set status='INPROGRESS'
      where object_name=l_object_name
      and status='READY';
      close c2;
      commit;

    I would look at an o/s based solution and not PL/SQL (but SQL*Plus).
    I would make it generic as the basic idea is to give a process a table-to-go and have it do the end-to-end steps for you.. and then run multiple of these in parallel.
    The process can be a shell script (Linux/bash - sorry, I am very biased ;-) ). It uses the data dictionary to determine the indexes, constraints and triggers and what not that needs to be DDL'ed. It runs DBMS_METADATA via a SQL*Plus script to create the DDLs.
    It only applies the create DDL to the destination. Next it creates a FIFO pipe. It starts SQL*Loader (parallel/direct/whatever options being fancied) on this pipe as a background process.
    With SQL*Loader hungrily waiting for data, the process fires up SQL*Plus again, set array size large, etc - and run a SELECT on the source table. It does not use SQL*Plus' spool feature. It has SQL*Plus writing the data it is fetching direct to STDOUT.
    However, when the process started SQL*Plus, it redirected STDOUT to the FIFO pipe.
    A block is written by SQL*Plus into the pipe. That same block is then read by SQL*Loader and loaded into the destination database.
    Reading and writing essentially are thus basically done in parallel - and not serial. Once the SQL*Plus completed unloading the data into the pipe, the rest of the DDLs are applied - indexes created, etc. (constraints created as disabled of course - these will need to be enabled all over the destination database after all the load processes have completed)
    And as mentioned, I will have multiple of the scripts running, one per table to process.
    Many years ago, I did exactly this. Only a tad more complex. Went something like this. Process unloads data into a pipe. Compression process read that pipe and write compress/zipped data into a "compression" pipe. FTP process reads that pipe, sends the compressed data across the network, where the FTP server writes in into yet another pipe. There a decompression process reads the ftp pipe, unzips the data, and write the decompressed data into a "decompression" pipe. Where SQL*Loader does the rest - reading the now unzipped data and chucking it into the database.
    It work pretty well. And fast. Faster than any commercial ELT tool that 3rd party vendors tried to sell me to "do the job". :-)

Maybe you are looking for

  • Recovery from System Image without 8.1 Installation Medium possible?

    Hi guys, I have Windows 8.1 installed as an upgrade from Windows 8 Pro (64-bit). Now my hard drive crashed, all data is lost. Fortunately I have a recent system image of the 8.1 installation on a backup drive. However, I did not make a System Rescue

  • Context-Sensitive Help in RoboHelp 9

    Hi -- I recently upgraded from RoboHelp 5 to RoboHelp 9.  My first WebHelp project that I created using RoboHelp 9 is giving me problems with Context-Sensitive Help.  When a user clicks on a Help link that is supposed to bring him/her to a specific t

  • Download and run binary files

    When downloading an exe file firefox only gives choice of saving file and not a choice to 'run' file without saving it.

  • Differences between EBS BIP and BIP EE

    Hi Folks, IHAC who currently runs EBS 11.5.10.x and use BIP embedded within the product. They would like to get a document that outlines the capability differences between what they currently own and BI Publisher Enterprise Edition. Besides the fact

  • JWS hangs after method remotely called - RMI

    Does anyone else have problems with bugs that only appear when running under Java WebStart and doesn't throw any exception, just hangs and you end up with nothing but a grey screen on the application and the console? I have a swing application and it