DML/DDL/Forms

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

Similar Messages

  • 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 2

    It 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
    ;

  • Creating DML/DDL Handler

    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 :)

  • 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

  • Referencing Global Variable in Forms DDL (Form Personalization R12)

    Team,
    I'm saving a profile option in a Global variable GLOBAL.FLINV_PROFILE_VALUE when a form opens.
    Then I am clearing the variable using Forms DDL and calling FND_PROFILE.SAVE function.
    I need to then reset the profile option with a second call to FND_PROFILE.SAVE. I'm trying to use Forms DDL, i.e.
    DECLARE
    a BOOLEAN;
    BEGIN
    a := fnd_profile.SAVE ('PER_SECURITY_PROFILE_ID'
    , '''||:global.flinv_profile_value||'''
    , ''USER''
    , ''1110''
    , NULL
    , NULL
    END;
    but I'm not finding a proper way to pass that global variable. Is there a way to reference these variables in the DDL? Should I use 'Call a procedure' and format the call differently?
    Any ideas are welcome.
    Joe

    Not sure why your using an anonymous block. Personalization rules should look like the following in a *.ldt file.
    BEGIN FND_FORM_CUSTOM_RULES "314"
    FUNCTION_NAME = "INV_INVITSNU"
    DESCRIPTION = "Disable Query-Enter Mode"
    TRIGGER_EVENT = "WHEN-NEW-BLOCK-INSTANCE"
    TRIGGER_OBJECT = "MTL_SERIAL_NUMBERS"
    SEQUENCE = "20"
    CREATED_BY = "34307"
    CREATION_DATE = "2012/04/22"
    OWNER = "USER123"
    LAST_UPDATE_DATE = "2012/04/22"
    LAST_UPDATE_LOGIN = "145888118"
    ENABLED = "Y"
    FIRE_IN_ENTER_QUERY = "N"
    FORM_NAME = "INVITSNU"
    RULE_TYPE = "A"
    BEGIN FND_FORM_CUSTOM_ACTIONS "314" "314"
    SEQUENCE = "10"
    PROPERTY_VALUE = "5"
    ARGUMENT_TYPE = "B"
    CREATED_BY = "34307"
    CREATION_DATE = "2012/04/22"
    OWNER = "USER123"
    LAST_UPDATE_DATE = "2012/04/22"
    LAST_UPDATE_LOGIN = "145888118"
    TARGET_OBJECT = "MTL_SERIAL_NUMBERS"
    ACTION_TYPE = "P"
    ENABLED = "Y"
    OBJECT_TYPE = "BLOCK"
    MESSAGE_TYPE = "S"
    BUILTIN_TYPE = "C"
    LANGUAGE = "*"
    PROPERTY_NAME = "195"
    MENU_SEPERATOR = "N"
    END FND_FORM_CUSTOM_ACTIONS
    BEGIN FND_FORM_CUSTOM_SCOPES "314" "20" ""
    LAST_UPDATE_DATE = "2012/04/22"
    OWNER = "USER123"
    CREATION_DATE = "2012/04/22"
    CREATED_BY = "34307"
    LAST_UPDATE_LOGIN = "145888118"
    END FND_FORM_CUSTOM_SCOPES
    END FND_FORM_CUSTOM_RULES

  • 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 AUTOCOMMIT

    When 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 PM

    To 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

  • Last dml,ddl

    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

  • DDL  Forms

    Is there a way to do DDL operations such as alter a table with in forms .
    Thanks in advance

    Example 1
    ** Built-in: FORMS_DDL
    ** Example: The expression can be a string literal.
    BEGIN
    Forms_DDL('create table temp(n NUMBER)');
    IF NOT Form_Success THEN
    Message ('Table Creation Failed');
    ELSE
    Message ('Table Created');
    END IF;
    END;
    Example 2
    ** Built-in: FORMS_DDL
    ** Example: The string can be an expression or variable.
    ** Create a table with n Number columns.
    ** TEMP(COL1, COL2, ..., COLn).
    PROCEDURE Create_N_Column_Number_Table (n NUMBER) IS
    my_stmt VARCHAR2(2000);
    BEGIN
    my_stmt := 'create table tmp(COL1 NUMBER';
    FOR I in 2..N LOOP
    my_stmt := my_stmt||',COL'||TO_CHAR(i)||' NUMBER';
    END LOOP;
    my_stmt := my_stmt||')';
    ** Now, create the table...
    Forms_DDL(my_stmt);
    IF NOT Form_Success THEN
    Message ('Table Creation Failed');
    ELSE
    Message ('Table Created');
    END IF;
    END;
    Example 3:
    ** Built-in: FORMS_DDL
    ** Example: The statement parameter can be a block
    ** of dynamically created PL/SQL code.
    DECLARE
    procname VARCHAR2(30);
    BEGIN
    IF :global.flag = 'TRUE' THEN
    procname := 'Assign_New_Employer';
    ELSE
    procname := 'Update_New_Employer';
    END IF;
    Forms_DDL('Begin '|| procname ||'; End;');
    IF NOT Form_Success THEN
    Message ('Employee Maintenance Failed');
    ELSE
    Message ('Employee Maintenance Successful');
    END IF;
    END;
    Example 4:
    ** Built-in: FORMS_DDL
    ** Example: Issue the SQL statement passed in as an argument,
    ** and return a number representing the outcome of
    ** executing the SQL statement.
    ** A result of zero represents success.
    FUNCTION Do_Sql (stmt VARCHAR2, check_for_locks BOOLEAN := TRUE)
    RETURN NUMBER
    IS
    SQL_SUCCESS CONSTANT NUMBER := 0;
    BEGIN
    IF stmt IS NULL THEN
    Message ('DO_SQL: Passed a null statement.');
    RETURN SQL_SUCCESS;
    END IF;
    IF Check_For_Locks AND :System.Form_Status = 'CHANGED' THEN
    Message ('DO_SQL: Form has outstanding locks pending.');
    RETURN SQL_SUCCESS;
    END IF;
    Forms_DDL(stmt);
    IF Form_Success THEN
    RETURN SQL_SUCCESS;
    ELSE
    RETURN Dbms_Error_Code;
    END IF;
    END;

  • 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_id

    I 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

  • Printing document from FB03

    Hi We are on ECC 6.0.  After displaying a document in FB03, if i wish to print it, only the line items are passed for output (in spool) not the header data. If i go to Document - Print preview and then print, complete document is passed to output. Al

  • Sql loader Wizard  in Toad For Oracle

    when i use oracle xe i can load data using toad with sql loader wizard. But in xe i met some problems and i must to set up oracle 10 g db server and now when i'm using toad, nothing happened and didnt any error in sql loader wizard. Is it about unico

  • Transferring home movies from one computer to another

    What is the best way to do this? I have about 500 video clips that I want to move from one computer to another. I've tried using the export function in iPhoto but all I get upon transfer is a single frame of the movie. I keep the files on an external

  • PPT SD TOPICS ANYTHING RELATED TO SD TOPICS

    HI SAPIENS, CAN ANY ONE FORWARD ME SOME PPT RELATED TO SD TOPICS CONCEPTS & CHAPTERS, I WILL BE THANKFULL, AND POINTS WILL BE REWARDED. THANKX IN ADVANCE S.JOSHI

  • Startup volume damaged?

    I ran a utility called Onyx and it told me that my startup volume was damaged and needed to be repaired. I ran another utility app and it said the same thing! It advised starting from a OSx disk and using a utility. I am running 10.4, latest update.