DML DDL Message
Hello Expert,
In My application when users press the “Run” it is executing the DML or DDL statement. What I am looking for it is to display the message that’s come after executing this statement. I am want the same message which appear when you run the DML or DDL statement from SQL command prompt: For example
SQL> Create table xyx (a varchar2(1))
Table created. --- {color:#ff0000}"I want to display this message on my application"{color}
SQL> Drop table xyx
Table dropped. --- {color:#ff0000}"I want to display this message on my application"{color}
SQL> update tb_HR set firstname= 'SAGAR' where AGSNO = 2461059
0 row(s) updated. --- {color:#ff0000}"I want to display this message on my application"{color}
Hopefully my example will explain what I am looking for.
Sagar
Sagor,
Your submit process can use the success message to display whatever you want. Create hidden items or application level varaibles to hold the name of the object you are working with and form the message using them.
Keep Smiling,
Bob R
Similar Messages
-
I need to create dml/ddl handlers, i have searched a lot, but yet to find such materiel to learn. I need from beginner to advance level material with examples. Can any one help me. I have thousands of DEQUEUE MESSAGES to handle.
thank no error code work fine.
Mohd.hamza :) -
Anyone know of a good OLAP DML/DDL tutorial? (and NOT reference guide)
In addition to Analytic Workspace, I am trying to learn how to build cubes using just the OLAP DML / DDL language.
Oracle and others have published a great deal of reference material on the language of OLAP DML / DDL but I can't find any real tutorials that guide me logically thru the process of creating cubes and all that goes with it (defining dimensions, hierarchies, measures, calculations etc..) All the reference material is spread out in bits and pieces and difficult to efficiently learn from. Does anyone have any good OLAP DML / DDL tutorial links they could recommend? Thanks.John W wrote:
Oracle and others have published a great deal of reference material on the language of OLAP DML / DDL but I can't find any real tutorials that guide me logically thru the process of creating cubes and all that goes with it (defining dimensions, hierarchies, measures, calculations etc..) All the reference material is spread out in bits and pieces and difficult to efficiently learn from. Does anyone have any good OLAP DML / DDL tutorial links they could recommend? Thanks.This is a very difficult task. The OLAP DML/DDL only supports basic multidimensional variables, dimensions (very primitive), and relations. The externally visible cubes and dimensions are a construct of a lot of component objects (a dimension has many primitive dimensions and relations put together to create the higher level DIMENSION that goes with a cube; a cube has multiple variables and other pieces that get put together) in the AW, plus a bunch of metadata objects in the Oracle dictionary.
You really don't want to try to create your own and expect them to interact with the OLAPI interfaces. It is possible to construct your own version of things, but you'd also have to do your own view generation, etc. There are applications out there that are created from scratch, but they are completely from scratch (including whatever interactions they have via SQL). Whatever you create will not work with any of the Oracle-provided interfaces, nor the recently-announced Simba MDX package.
Jim -
Any issue if we writing DML,DDL and TCL commands in stored functions.
Hi,
Is there any issue if we writing DML,DDL and TCL commands in stored function with help of PRAGMA AUTONOMOUS_TRANSACTION.Hi,
Yes, Ofcourse. Using DML Statements Inside the function using PRAGMA AUTONOMOUS_TRANSACTION is not highly
recommended. It is recommended to use AUTONOMOUS TRANSACTION for error logging purposes only, and
when used in an disorganized way it may lead to dead locks and we will have problem when examining the
Trace Files.
Thanks,
Shankar -
Reg. Extracting DML/ DDL Stmnts.
hi ,
I dont have access to Db . So I apologise straight away for not trying out the code myself to interpret and scrutinise.
The code is to extract DML / DDL stmnts from all_procedures. and I have tried a sample (select stmnt) of it . Please let me know if its wrong or working fine.
create or replace procedure sp_identify_stmnts (i_table in varchar2)
is
i_text varchar2(32767);
begin
select REGEXP_SUBSTR(replace(text,chr(10)),'select+;$',1,1000,'i') into i_text from ALL_PROCEDURES where
PROCEDURE_NAME=i_table ;
dbms_output.put_line('text is ' || i_text);
end;
/Oracle 10g release 2It won't work, because ALL_PROCEDURES has no TEXT column with code.
I think you have to use something like this:
select text
from all_source
where type='PROCEDURE'
and owner=:proc_owner
and name=:proc_name
order by line -- code is splittet in multiple lines
; -
How to get DML error message to display
Hi -- I have a report/form combination. When the user creates a record in the form, or cancels, the app branches back to the report results, properly displaying the success or error message from the form page.
When the user updates or deletes a record in the form, a second form is branched to. This form (a dynamic form), allows the user to enter a comment for deleted or updated records, which are archived to a separate table. The success and error messages are set in this form to an app item called DML_RETURN_MSG. The page process that saves the archive comment sets the value of DML_RETURN_MSG properly: it is visible in the session state.
This form then branches back to the report results, but the DML_RETURN_MSG is not displayed. I've compared the definition of both forms very closely, and see nothing obvious that would be causing this.
Is the problem that the first form is a DML form, while the second is dynamic? How can I get the DML_RETURN_MSG to display?
Thanks,
CarolCarol,
How are you referencing the DML_RETURN_MSG item in the (success? or error?) message? This is done by enclosing the item name in ampersand and period:
This is a success message: &DML_RETURN_MSG.
However, I assume you already know that.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Tool to do syntax check on DML/DDL
Is there any tool in Toad or SQL Plus or any other IDE to do a syntax check on DDL/DML statements without executing them ?
In my Toad Verson 7.6, there is a built in formatter namely -> Formatter Plus v4.8.0. This will format any given SQL Statement/ PL/SQL Code.
Also if your statement is wrong syntactically, the formatter will throw an error.
You just have to type the code and right click -> Formatting Tools -> Format Code. Alas your code gets formatted neatly!!
Thanks,
Jithendra -
Undo tablespace/redo logs/ DML /DDL/ truncate/ delete
1st scenario:Delete
10 rows in a table
Delete 5 rows
5 rows in the table
savepoint sp1
Delete 3 rows
2 rows in the table
rollback to savepoint sp1
5 rows in the table
So all DML affected values are noted in the undotablespace and present in the undotablespace until a commit is issued.And also redo logs make note of DML statements.AM I RIGHT??????
2nd scenario-truncate
10 rows in table
savepoint sp1
truncate
0 rows in table
rollback to savepoint sp1 gives this error
ORA-01086: savepoint 'SP2' never established
So is truncate [are all DDL statements] noted in the undo tablespace and are they noted in the redologs????????
I KNOW THAT A DML IS NOT AUTOCOMMIT AND A DDL IS AN AUTOCOMMITWhen you issue a delete is the data really deleted ?WHen you issue a delete, there is a before image of the data recorded to the undo area. (And that undo information itself is forwarded to the redo.) Then the data is actually deleted from the 'current' block as represented in memory.
Therefore, the data is actually deleted, but can be recovered by rolling back until a commit occurs.
It can also be recovered using flashback techniques which simply rebuild from the undo.
When you issue a truncate is the data really deleted
or is the high water mark pointer for a datablock lost?The data is not deleted. Therefore there is no undo record of the data 'removal' to be rolled back.
The high water mark pointer is reset. It's old value is in the undo, but the truncate is a DDL command, and it is preceded and followed by an implicit commit, voiding any potential rollback request.
I mean you can always rollback a delete and not
rollback a truncate?Correct - using standard techniques, deletes can be rolled back and truncates can not. -
Best parameters setting for DML & DDL?
hi,
i am implementing the DDL & DML replication using OGG. i just wanted to know what should the best parameters for extract, data pump(source) & Replicate process(Target).
while my source and target having same structure.
& i have to replicate 277 tables.
thanks.
Regards,
AMSII
Edited by: AMSI on Apr 8, 2013 8:12 PMTo improve the bulk DML operation via goldengate replication:
Using BATCHSQL
In default mode the Replicat process will apply SQL to the target database, one statement at a time. This often causes a performance bottleneck where the Replicat process cannot apply the changes quickly enough, compared to the rate at which the Extract process delivers the data. Despite configuring additional Replicat processes, performance may still be a problem.
Configuration Options
GoldenGate has addressed this issue through the use of the BATCHSQL Replicat configuration parameter. As the name implies, BATCHSQL organizes similar SQLs into batches and applies them all at once. The batches are assembled into arrays in a memory queue on the target database server, ready to be applied.
Similar SQL statements would be those that perform a specific operation type (insert, update, or delete) against the same target table, having the same column list. For example, multiple inserts into table A would be in a different batch from inserts into table B, as would updates on table A or B. Furthermore, referential constraints are considered by GoldenGate where dependant transactions in different batches are executed first, depicting the order in which batches are executed. Despite the referential integrity constraints, BATCHSQL can increase Replicat performance significantly.
BATCHSQL BATCHESPERQUEUE 100, OPSPERBATCH 2000
Regards
Rajabaskar -
hi
Can I find the last time of dml or ddl of specıfıc table?desc dba_objects
Name Null? Type
OWNER VARCHAR2(30)
OBJECT_NAME VARCHAR2(128)
SUBOBJECT_NAME VARCHAR2(30)
OBJECT_ID NUMBER
DATA_OBJECT_ID NUMBER
OBJECT_TYPE VARCHAR2(18)
CREATED DATE
---> LAST_DDL_TIME DATE
TIMESTAMP VARCHAR2(19)
STATUS VARCHAR2(7)
TEMPORARY VARCHAR2(1)
GENERATED VARCHAR2(1)
SECONDARY VARCHAR2(1)
Is there any chance you will ever resolve any doc question on your own by not misusing this forum structurally as a free documentation lookup service?
Why can't you do anything on your own?
Why are you so lazy?
Sybrand Bakker
Senior Oracle DBA -
I was trying to do the latest update on my desktop for my Itunes. I got MSVCR80.dll is missing. I saw a post about deleting all the apple itunes programs, restarting and reinstalling. I tried that. As it was installing a message came up about "Service'Apple Mobile Device' failed to start. Verify that you have sufficient privileges to start systems services. I did a retry, got the same message, then hit ignore. It went on. Then a message popped up saying "Itunes not installed correctly" Error 7 (Windows error 126)
Now my Itunes program will not open at all. What gives? This is very frustrating and I am not very computer literate to begin with.Hi Iss9243,
Welcome to the Support Communities!
You've already tried some great troubleshooting steps, but the article below gives you quite a few more for this issue. Hope it helps ....
iTunes 11.1.4 for Windows: Unable to install or open
http://support.apple.com/kb/TS5376
Cheers,
- Judy -
1.Can any one write a select statement to generate sequencial number ?
2.How to print the duplicate records from a table ?
3.What is the difference between a WHERE Clause and HAVING Clause?
4.What is the difference between Key-Next Trigger and When-Validate Trigger?
5.What is a Transaction in Oracle?
6.What are Database triggers and Stored Procedures?
7. What is the difference between Function,Procedures,Packages?
Hope it is enough for the day..Will write more question upon receving answers for the above..
Guruprasad T.N.A 1 Check the Create Sequence
A 2 In Form When We Are In Detail Section
Can use Function Key F4 For Copying the Prev. record as it to the Next Record.
A 3 Where Clause Is used for the Resticting For the Single Row Funtions.
and Having is used for Group Functions
Q4 What is the difference between Key-Next Trigger and When-Validate Trigger..
Ans : Key Next Item can used for developer required Rotines ...While When -validate-trigger can be used for the Check the Validation of the Record.
I provid u the Answers but....The is important piece of work
Remaing Next Time.......
Regards.
M.Azam Rasheed
([email protected])
MCS,OCP
null -
Gg dml ddl 单线同步,replicat 进程lag出现长时间等待
如题,进而导致源端数据库上的更新无法及时同步到目标端
一下是目标端replicat 进程的状态信息
GGSCI (db02) 26> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT STOPPED DPE2 00:00:00 27:43:07
EXTRACT STOPPED EXT22 00:00:00 27:43:33
REPLICAT RUNNING REP1 03:12:01 09:18:47
GGSCI (db02) 27> info rep1
REPLICAT REP1 Last Started 2012-10-18 12:10 Status RUNNING
Checkpoint Lag 03:12:01 (updated 09:18:51 ago)
Log Read Checkpoint File /ggs/dirdat/rt000000
2012-10-19 03:31:33.930735 RBA 95309202
GGSCI (db02) 28> info rep1,detail
REPLICAT REP1 Last Started 2012-10-18 12:10 Status RUNNING
Checkpoint Lag 03:12:01 (updated 09:19:01 ago)
Log Read Checkpoint File /ggs/dirdat/rt000000
2012-10-19 03:31:33.930735 RBA 95309202
Extract Source Begin End
/ggs/dirdat/rt000000 * Initialized * 2012-10-19 03:31
/ggs/dirdat/rt000000 * Initialized * First Record
Current directory /ggs
Report file /ggs/dirrpt/REP1.rpt
Parameter file /ggs/dirprm/rep1.prm
Checkpoint file /ggs/dirchk/REP1.cpr
Checkpoint table ggs.checkpoint
Process file /ggs/dirpcs/REP1.pcr
Stdout file /ggs/dirout/REP1.out
Error log /ggs/ggserr.log
GGSCI (db02) 29> send rep1,status
Sending STATUS request to REPLICAT REP1 ...
Current status: Processing data
Sequence #: 0
RBA: 99742942
12489 records in current transaction
GGSCI (db02) 30> info rep1,showch
REPLICAT REP1 Last Started 2012-10-18 12:10 Status RUNNING
Checkpoint Lag 03:12:01 (updated 09:19:25 ago)
Log Read Checkpoint File /ggs/dirdat/rt000000
2012-10-19 03:31:33.930735 RBA 95309202
Current Checkpoint Detail:
Read Checkpoint #1
GGS Log Trail
Startup Checkpoint (starting position in the data source):
Sequence #: 0
RBA: 0
Timestamp: Not Available
Extract Trail: /ggs/dirdat/rt
Current Checkpoint (position of last record read in the data source):
Sequence #: 0
RBA: 95309202
Timestamp: 2012-10-19 03:31:33.930735
Extract Trail: /ggs/dirdat/rt
CSN state information:
CRC: F9-3C-30-92
Latest CSN: 216472052
Latest TXN: 10.25.1410526
Latest CSN of finished TXNs: 216472052
Completed TXNs: 10.25.1410526
Header:
Version = 2
Record Source = A
Type = 1
# Input Checkpoints = 1
# Output Checkpoints = 0
File Information:
Block Size = 2048
Max Blocks = 100
Record Length = 2048
Current Offset = 0
Configuration:
Data Source = 0
Transaction Integrity = -1
Task Type = 0
Database Checkpoint:
Checkpoint table = ggs.checkpoint
Key = 3326595731 (0xc647d293)
Create Time = 2012-10-18 11:55:42
Status:
Start Time = 2012-10-18 12:10:20
Last Update Time = 2012-10-19 06:43:35
Stop Status = A
Last Result = 0
SQL> select ADDR,STATUS,START_TIME,NAME,USED_UBLK from v$transaction;
ADDR STATUS START_TIME NAME USED_UBLK
000000052F0F7800 ACTIVE 10/19/12 06:43:35 319
SQL> select * from v$lock where addr='000000052F0F7800';
ADDR KADDR SID TYPE ID1 ID2 LMODE REQUEST CTIME BLOCK
000000052F0F7800 000000052F0F7838 1079 TX 655388 1286321 6 0 29768 0
SQL> select sid,sql_id,serial#,username from v$session;
SQL> select SQL_ID,SQL_TEXT from v$sqltext where sql_id='fwt1pvjtrqa56' order by piece;
SQL_ID SQL_TEXT
fwt1pvjtrqa56 UPDATE "TEST"."TEST_HISTORY" SET "COMMUNITY" = :a0,"S
============================================================================
GGSCI (db02) 31> info rep1
REPLICAT rep1 Last Started 2012-10-18 12:10 Status RUNNING
Checkpoint Lag 03:12:01 (updated 09:34:03 ago)
Log Read Checkpoint File /ggs/dirdat/rt000000
2012-10-19 03:31:33.930735 RBA 95309202
GGSCI (db02) 32> send rep1,status
Sending STATUS request to REPLICAT REP1 ...
Current status: Processing data
Sequence #: 0
RBA: 99859919
12817 records in current transaction
Logdump 233 >pos 99859919
Reading forward from RBA 99859919
Logdump 234 >
Logdump 234 >
Logdump 234 >
Logdump 234 >n
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 336 (x0150) IO Time : 2012/10/19 03:31:34.850.740
IOType : 115 (x73) OrigNode : 255 (xff)
TransInd : . (x01) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 0 AuditPos : 72232920
Continued : N (x00) RecCount : 1 (x01)
2012/10/19 03:31:34.850.740 GGSPKUpdate Len 336 RBA 99859919
Name: TEST.TEST_HISTORY
After Image: Partition 4 G m
00a7 0000 0004 ffff 0000 0001 000d 0000 0009 e6b0 | ....................
91e7 a791 e8b7 af00 0200 0700 0000 03e5 8f8c 0003 | ....................
0010 0000 000c 3e3d 327c 7c3c 3d31 3030 3030 0004 | ......>=2||<=10000..
000b 0000 0007 7368 676d 3034 3200 0500 1700 0000 | ......shgm042.......
13e5 9bbd e7be 8ee5 ae9d e5b1 b1e5 b882 e58c ba31 | ...................1
0006 0015 0000 3230 3132 2d31 302d 3139 3a30 333a | ......2012-10-19:03:
3332 3a30 3200 0700 0c00 0000 0832 3031 3231 3031 | 32:02........2012101
Before Image Len 169 (x000000a9)
Logdump 235 >n
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: B (x42)
RecLength : 172 (x00ac) IO Time : 2012/10/19 03:31:34.850.740
IOType : 15 (x0f) OrigNode : 255 (xff)
TransInd : . (x01) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 965 AuditPos : 72233360
Continued : N (x00) RecCount : 1 (x01)
2012/10/19 03:31:34.850.740 FieldComp Len 172 RBA 99860362
Name: TEST.TEST_HISTORY
Before Image: Partition 4 G m
0000 0004 ffff 0000 0001 0013 0000 000f e5ae 9de9 | ....................
92a2 e6b9 84e6 b5a6 e8b7 af00 0200 0700 0000 03e5 | ....................
8f8c 0003 0010 0000 000c 3e3d 327c 7c3c 3d31 3030 | ..........>=2||<=100
3030 0004 000b 0000 0007 7368 676d 3030 3200 0500 | 00........shgm002...
1600 0000 12e5 9bbd e7be 8ee5 ae9d e5b1 b1e8 bf91 | ....................
e983 8a00 0600 1500 0032 3031 322d 3130 2d31 393a | .........2012-10-19:
3033 3a33 323a 3032 0007 000c 0000 0008 3230 3132 | 03:32:02........2012
Column 0 (x0000), Len 4 (x0004)SQL> select ADDR,STATUS,START_TIME,NAME,USED_UBLK from v$transaction;
ADDR STATUS START_TIME NAME USED_UBLK
000000052F0F7800 ACTIVE 10/19/12 06:43:35 319
由于INFO的LAG是基于checkpoint的,所以如果出现大事务的情况Long Running Transactions (LRTs),事务可能长时间不提交COMMIT。 该事务可能变成一个最老而又最无聊的数据由于一直不COMMIT而无法写出。 这将造成EXTRACT/PUMP/REPLICAT实际处理这个大事务的时间点远落后于该大事务实际commit的时间点。 对于REPLICAT可以使用MAXTRANSOPS 参数来减少LAG。 -
ORA-38301: can not perform DDL/DML over objects in Recycle Bin
Oracle 10.2.0.4:
When performing DDL on a table I get the error "ORA-38301: can not perform DDL/DML over objects in Recycle Bin". I ran purge recyclebin but didn't help. I then ran following sql (below) and it returned whole bunch of rows for that user. Does it mean that purfe recyclebin didn't work? What should I do?
select r.obj#, r.original_name, u.username from recyclebin$ r, dba_users u where r.owner#=u.user_idI ran purge recyclebin but didn't helpis this a rac env?
check the metalink note performing DML/DDL operation over object in bin ORA-38301 - 578075.1
Bug 4760728 - ORA-38301 during DROP TABLE when already dropped from a different node 4760728.8 -
Create trigger before any DML or DDL operations on any schema objects
Dears,
I need to create a trigger on schema that fire before any DML or DDL operations on any object (table,view,. . . etc) in the schema.
Can i do this, like "BEFORE insert or update or delete or drop or truncate on SCHEMA" ?
Thanks & Regards,,Dear Peter,_
Please, i need to say one thing before reading my below simple answers . . .
You must deal with any issue from others seriously and read it carefully_
Sorry, you haven't explained anything about your actual problem, we are still left to guessing.Not right, I was clear as i said the below notes:
1 - I need to create a trigger on schema that fire before any DML or DDL operations on any object.
2 - We have another simple application is connected also to DB and we must have this application but DB password is must written clear in some files and these files must be shared for business requirements.
Since I still do not understand your problem, I can only guess of the most relevant:After all of the above clarification, still do not understand . . . How !!!
1.9 Sweeping privileges. This is always a good exercise
2.10 Audit and Analyse User access. Who connects as what from where (And later maybe why).
3.8 Restrict Access from Specific Nodes OnlyYou are right but not valid in my issue.
3.1 Remove the passwords from scriptsIt seems that you did not read my replies carefully as I said before that DB password is must be written clear in some files and these files must be shared for business requirements.
Why not spend just a day to get some feeling of the ideas, and find the best match(es) for your situation.I am investigating in my issue a month ago and tried a lot of solutions but found that i will have to apply this trigger solution.
If you are looking for a short answer in a public forum, I am afraid you won't find it.
(At least not until we understand what you are trying to do, and why)I know exactly what i need and why. Read again my replies carefully and you will know also.
Not at allSure, you still do not understand because you did not read my replies carefully !
Dear All_
I already created the trigger to prevent any DML or DDL on any schema objects for specific users.
If all the users now have the super password, i can permit specific users to do (DML & DDL) and the others will not be able at all.
As a Challenge, i can say the super password now to the public and they will not be able to do any (DML & DDL) . . . I can say now, "I succeeded" :)
Really, thanks All for greatest support . . . Already i was benefited a lot from your advises.
Regards,
Maybe you are looking for
-
Unable to deploy ADF application on weblogic 10.3
Hi, The steps followed for creating Fusion web application (ADF) in jdev and deployment are as follows: 1. Create a new application in jdev using the template for Fusion web application (ADF) app. 2. Created couple of .jspx's (JSF's) and navigational
-
How to reassign the notifications from the backend
Hi Friends, I am new to the workflow, I received one requirement from customer i.e When employee transferring from one organization to other organization whatever the notifications pending with him, Those notifications will be reassigned to the emplo
-
Adobe Acrobat Distiller XI pdf-help file
Hello, Thank you for answer to the Acrobat XI Pro pdf help file. I forgot to ask, if a similar file for Adobe Acrobat Distiller XI is available. Regards
-
What happened to "Songs you May Like" in my sidebar?
I used to play a song in Itunes and it would show songs like that song in my right hand sidebar. Now it's just got PING. I turned off ping. How do I get the genius sidebar back? I discovered a lot of good songs that way.
-
Hello, I am Preety new in the Enhancement area, i have to add a tabstrip for our custom fileds both for header and item data in va03. can any one help me on the same how to do that which BADI or Exits are suppose to be used. Thanks and regards, Gunja