Trigger system Oracle fired twice on the drop table

Hi all

I'm using the Oracle 11 g on windows server 2003 R2 standard edition service pack 2. I am creating a trigger in a scheme called 'stock' by logging in as the owner of the schema. Here is my code for the same thing:
 create or replace TRIGGER AUDIT_SYS_TR_TEST
   AFTER  ALTER OR DROP ON DATABASE
  BEGIN
    IF(ora_sysevent = 'DROP' AND UPPER(ora_login_user) not in ('SYS','SYSTEM')) THEN
     DBMS_OUTPUT.PUT_LINE(ora_sysevent);
    ELSIF(ora_sysevent = 'ALTER' AND UPPER(ora_login_user) not in ('SYS','SYSTEM')) THEN
     DBMS_OUTPUT.PUT_LINE(ora_sysevent);
    END IF;
  END; 
The goal is to activate whenever change or fall occurs on a database object (IE any object database). So I created a table called trigtest like this in the same schema as the trigger:

CREATE TABLE TRIGTEST(COL1 VARCHAR(20));
Then I tried to drop the table:
DROP TABLE TRIGTEST;
That's what I got as serveroutput after the drop statement:

ALTER
DROP

Can someone please shed some light as to why the events the alter and drop are being triggered when only the drop statement is called?

894302 wrote:
I activated recyclebin... same problem exists...

Yep, that's precisely the 'problem '... Check the test script I posted.

If the recyclebin is enabled as part of the move action, Oracle renames the table to a system generated name.

Use the drop-DOWN list with PURGE option if you want to:

SQL> DROP TABLE TRIGTEST purge;
DROP TABLE TRIGTEST purge
DROP

Table dropped.

Edited by: odie_63 nov 1. 2011 19:36

Tags: Database

Similar Questions

  • Join the ApEx Oracle's Collections at the real Tables

    Hoping that someone can help, but within Oracle ApEx is it possible to join a real table in your schema with a Collection of Oracle ApEx, I can't do?

    Basically, I have the following scenario:

    Select c001,-employee id for collection
    C002,
    C003 - used dept no collection
    to apex_collections,
    EMP
    where collection = "MY_COOLECTION."
    and emp.id = c001
    and emp.deptno = c003;

    Is the highest possible, or I missed something?

    Thank you.

    Published by: Tony F. on July 18, 2011 01:05

    I suppose that you have created the data in the collection using create_collection_From_query().

    Let me know if you still experience the problem.

    Thank you
    Sukarna

  • Update of several rows of the same table using trigger

    Hello

    I have the following table

    ---------------------------------------------------------------------------------------------------------

    CREATE TABLE ATT_PERMISSIONS
    (
    DATE OF PRMONTHYR,
    EMPIDNUMBER (10)DEFAULT VALUE 0,
    FROMDATETIMEDATE,
    TODMTFDATETIMEDATE,
    NUMBER OF PERMMINS (3),

    SSLINASTRETCH NUMBER (3).

    PERMATTINELIGIBLENUMBER (1)DEFAULT VALUE 0
    );

    ------------------------------------------------------------------------------------------------------

    I want to update the column PERMATTINELIGIBLE in the same table when each line is inserted.

    I created following trigger for that

    CREATE OR REPLACE TRIGGER SSL_AFTER_UPDATE AFTER UPDATE ON ATT_PERMISSIONS

    FOR EACH LINE

    BEGIN

    Update ATT_PERMISSIONS set PERMATTINELIGIBLE =

    (

    SELECT THE CHECK BOX

    WHEN PERMMINS < = 60

    or

    (

    PERMMINS < = SSLINASTRETCH

    AND

    COUNT (CASE WHEN PERMMINS = 0 THEN NULL OTHERWISE 1 END)

    COURSES (PARTITION BY empid, prmonthyr) < = 1

    )

    THEN 1

    0 OTHERWISE

    END

    FROM ATT_PERMISSIONS where prmonthyr =:new.prmonthyr, empid =:new.empid

    ) where prmonthyr =:new.prmonthyr, empid =:new.empid;

    END;

    ---------------------------------------------------------------------------------------------------

    That is to say.

    When a row is inserted the PERMATTINELIGIBLE of all records for this employee for the month is recalculated.

    There would be only two or three records for an employee for a month.

    PERMMINS is the number of minutes to use as short leave.

    If it is less than 60 is eligible for the bonus to attendance for this employee.

    If this isn't normally the date is not eligible for the attendance for this employee premium.

    but an exception is that if a short leaves of DISP employee allowed a month (IE. ( SSLINASTRETCH ) in a straight line, IE. one day, that day is eligible for the bonus of presence.

    That is to say. Why the number of short leaves in a month is taken. If it's one and done minutes use is lower to SSLINASTRETCH, then the day is eligible for the attendance bonus.

    But when I try to create the trigger I get error, PL/SQL: ORA-00907: missing a right parenthesis.

    Help, please

    I use oracle 10g

    I want to update the column PERMATTINELIGIBLE in the same table, when each row is inserted.

    No - you do NOT want to do in a trigger.

    You cannot query the same table that the trigger is activated on. -C' is a MUTANT and you will get an exception.

    When a row is inserted is recalculated to the PERMATTINELIGIBLE of all the records for that employee for that month.

    There would be only two or three records for an employee for a month.

    PERMMINS is the number of minutes to use as short leave.

    If it is less than 60 is eligible for the bonus to attendance for this employee.

    If is not normally the day is not eligible for the premium of attendance for this employee.

    but an exception is that if a short leaves of DISP employee allowed a month (IE. SSLINASTRETCH) in a straight line, IE. one day, that day is eligible for the bonus of presence.

    That is to say. Why the number of short leaves in a month is taken. If it's one and done minutes use is less than SSLINASTRETCH, then the day is eligible for the bonus of presence.

    But when I try to create the trigger I get error, PL/SQL: ORA-00907: missing a right parenthesis.

    You can not do in a trigger. Even if correct you this error of syntax, you will get the exception that I mentioned above.

    Oracle is a multi-user system. Other users can modify the same table that you use.

    So even if you could try to interview "all the records for this employee" some of them may be locked if other users access them. Also, an insert statement could try to insert two rows for an employee and the trigger could not have seen the other lines still.

    If you want to work with data SETS (all records for an employee), you must write the PL/SQL code that LOCKS all lines updated to prevent others to interfere.

    Then you make your operations but NOT in a trigger. Perform inserts and then use an UPDATE query to set this value.

    Then VALIDATE to unlock the lines.

  • Dropped the curiously named table in the schema table sheets

    I use Oracle XE and I'm not logged as an administrator. Just as a user called 'hr '.

    I dropped an empty table called "Date_tine_demo" (sic) to help

    DROP TABLE date_tine_demo;
    

    But when I checked the tables in my diagram to help

    SELECT * FROM tab;
    

    the 'date_tine_demo' table was missing, but there was a table with a really weird name

    Before:

    TNAME                          TABTYPE  CLUSTERID                               
    ------------------------------ ------- ----------                                                                        
    COUNTRIES                      TABLE 
    DATE_TINE_DEMO           TABLE                                          
    DEPARTMENTS                TABLE                                            
    EMPLOYEES                    TABLE                                            
    EMP_DETAILS_VIEW       VIEW                                             
    JOBS                                 TABLE                                            
    JOB_HISTORY                  TABLE                                            
    LOCATIONS                      TABLE                                            
    PROMOTIONS                  TABLE                                            
    REGIONS                         TABLE  
    

    After:

    TNAME                          TABTYPE  CLUSTERID                               
    ------------------------------ ------- ----------                               
    BIN$zP+eIjJ7ShCOnQb4EGVHig==$0 TABLE                                            
    COUNTRIES                                             TABLE                                            
    DEPARTMENTS                                       TABLE                                            
    EMPLOYEES                                             TABLE                                            
    EMP_DETAILS_VIEW                                VIEW                                             
    JOBS                                                            TABLE                                            
    JOB_HISTORY                                          TABLE                                            
    LOCATIONS                                             TABLE                                            
    PROMOTIONS                                         TABLE                                            
    REGIONS                                                  TABLE                              
    

    If anyone can offer advice on what this table is and how to get rid of, I would be grateful

    What is in the garbage?

    And if you don't want table to go to the basket when you drop, either disable the trash with ALTER SESSION/SYSTEM SET RECYCLEBIN = OFF or use DROP TABLE table_name PURGE. And to get rid of what is currently used to recycle bin PURGE RECYCLEBIN.

    SY.

  • DROP TABLE performance

    Hello

    could someone share advice on improving the execution time of the abandonment of the tables?

    I have a blank table with more than 200 columns and it takes 23-25 s to drop. Smaller tables take something around 0.1 s of course. Problem is I have let fall from thousands of these tables and then re-create them. The recreate itself takes not more than one second.

    What is the origin of more time? Is it because of an implicit validation in the drop table command?

    I tried this with almost identical times noarchivelog mode. I also tried different settings and commit_logging optimizer_mode, none showed any usable results, but I'm still at the experimental stage. The goal is to minimize the execution time once I need to run the entire batch, perhaps in the course of running several sessions can work to be faster (while times are maybe longer), don't know yet.

    Here is an example of output:
    SQL> CREATE TABLE "SYSADM"."DRIVERTEST"
      2    (
      3      "PROCESS_INSTANCE"   NUMBER(10,0) NOT NULL ENABLE,
      4      "INTFC_ID"           NUMBER(*,0) NOT NULL ENABLE,
      5      "INTFC_LINE_NUM"     NUMBER(*,0) NOT NULL ENABLE,
      6      "TRANS_TYPE_BI"      VARCHAR2(4 CHAR) NOT NULL ENABLE,
      7      "TRANS_TYPE_BI_SEQ"  NUMBER(*,0) NOT NULL ENABLE,
      8      "HDR_FIELDS_KEY"     VARCHAR2(30 CHAR) NOT NULL ENABLE,
      9      "HDR_FIELDS_BILL_BY" VARCHAR2(1 CHAR) NOT NULL ENABLE,
     10      "ADJ_TRANS_TYPE"     VARCHAR2(5 CHAR) NOT NULL ENABLE,
     11      "CREATE_NEW_BILL"    VARCHAR2(1 CHAR) NOT NULL ENABLE,
     12      "TMP_BILL_FLG"       VARCHAR2(1 CHAR) NOT NULL ENABLE,
     13      "ENTRY_TYPE"         VARCHAR2(5 CHAR) NOT NULL ENABLE,
     14      "ENTRY_REASON"       VARCHAR2(5 CHAR) NOT NULL ENABLE,
     15      "ENTRY_EVENT"        VARCHAR2(10 CHAR) NOT NULL ENABLE,
     16      "LOAD_STATUS_BI"     VARCHAR2(3 CHAR) NOT NULL ENABLE,
     17      "ERROR_STATUS_BI"    VARCHAR2(4 CHAR) NOT NULL ENABLE,
     18      "BUSINESS_UNIT"      VARCHAR2(5 CHAR) NOT NULL ENABLE,
     19      "BUSINESS_UNIT_GL"   VARCHAR2(5 CHAR) NOT NULL ENABLE,
     20      "BILL_TO_CUST_ID"    VARCHAR2(15 CHAR) NOT NULL ENABLE,
     21      "ADDRESS_SEQ_NUM"    NUMBER(*,0) NOT NULL ENABLE,
     22      "BILL_TO_COPIES"     NUMBER(*,0) NOT NULL ENABLE,
     23      "CNTCT_SEQ_NUM"      NUMBER(*,0) NOT NULL ENABLE,
     24      "NAME1"              VARCHAR2(40 CHAR) NOT NULL ENABLE,
     25      "INTERUNIT_FLG"      VARCHAR2(1 CHAR) NOT NULL ENABLE,
     26      "BUSINESS_UNIT_TO"   VARCHAR2(5 CHAR) NOT NULL ENABLE,
     27      "DIRECT_INVOICING"   VARCHAR2(1 CHAR) NOT NULL ENABLE,
     28      "RANGE_SELECTION_ID" VARCHAR2(30 CHAR) NOT NULL ENABLE,
     29      "BILL_SOURCE_ID"     VARCHAR2(10 CHAR) NOT NULL ENABLE,
     30      "BILL_TYPE_ID"       VARCHAR2(3 CHAR) NOT NULL ENABLE,
     31      "BILL_CYCLE_ID"      VARCHAR2(10 CHAR) NOT NULL ENABLE,
     32      "BILL_BY_ID"         VARCHAR2(10 CHAR) NOT NULL ENABLE,
     33      "PAYMENT_METHOD"     VARCHAR2(3 CHAR) NOT NULL ENABLE,
     34      "PYMNT_TERMS_CD"     VARCHAR2(5 CHAR) NOT NULL ENABLE,
     35      "BANK_CD"            VARCHAR2(5 CHAR) NOT NULL ENABLE,
     36      "BANK_ACCT_KEY"      VARCHAR2(4 CHAR) NOT NULL ENABLE,
     37      "BI_CURRENCY_CD"     VARCHAR2(3 CHAR) NOT NULL ENABLE,
     38      "BASE_CURRENCY"      VARCHAR2(3 CHAR) NOT NULL ENABLE,
     39      "CUR_RT_TYPE"        VARCHAR2(5 CHAR) NOT NULL ENABLE,
     40      "RATE_MULT"          NUMBER(15,8) NOT NULL ENABLE,
     41      "RATE_DIV"           NUMBER(15,8) NOT NULL ENABLE,
     42      "CUR_RT_SOURCE"      VARCHAR2(1 CHAR) NOT NULL ENABLE,
     43      "INVOICE_DT" DATE,
     44      "ACCOUNTING_DT" DATE,
     45      "ACCRUE_UNBILLED"    VARCHAR2(1 CHAR) NOT NULL ENABLE,
     46      "TARGET_INVOICE"     VARCHAR2(22 CHAR) NOT NULL ENABLE,
     47      "INVOICE"            VARCHAR2(22 CHAR) NOT NULL ENABLE,
     48      "DOC_TYPE"           VARCHAR2(8 CHAR) NOT NULL ENABLE,
     49      "CONSOL_SETID"       VARCHAR2(5 CHAR) NOT NULL ENABLE,
     50      "CONSOL_CUST_ID"     VARCHAR2(15 CHAR) NOT NULL ENABLE,
     51      "CONSOL_KEY"         VARCHAR2(22 CHAR) NOT NULL ENABLE,
     52      "INVOICE_TO_ADJ"     VARCHAR2(22 CHAR) NOT NULL ENABLE,
     53      "ADJ_DELTA_ACTION"   VARCHAR2(3 CHAR) NOT NULL ENABLE,
     54      "LINE_SEQ_TO_ADJ"    NUMBER(*,0) NOT NULL ENABLE,
     55      "LINE_SEQ_NUM"       NUMBER(*,0) NOT NULL ENABLE,
     56      "LINE_DST_SEQ_NUM"   NUMBER(*,0) NOT NULL ENABLE,
     57      "LINE_DFR_SEQ_NUM"   NUMBER(*,0) NOT NULL ENABLE,
     58      "LINE_UAR_SEQ_NUM"   NUMBER(*,0) NOT NULL ENABLE,
     59      "LAST_NOTE_SEQ_NUM"  NUMBER(*,0) NOT NULL ENABLE,
     60      "NOTES_SEQ_NUM"      NUMBER(*,0) NOT NULL ENABLE,
     61      "LINE_TYPE"          VARCHAR2(4 CHAR) NOT NULL ENABLE,
     62      "IDENTIFIER"         VARCHAR2(18 CHAR) NOT NULL ENABLE,
     63      "DESCR"              VARCHAR2(30 CHAR) NOT NULL ENABLE,
     64      "UNIT_OF_MEASURE"    VARCHAR2(3 CHAR) NOT NULL ENABLE,
     65      "QTY"                NUMBER(15,4) NOT NULL ENABLE,
     66      "ORIG_QTY"           NUMBER(15,4) NOT NULL ENABLE,
     67      "UNIT_AMT"           NUMBER(15,4) NOT NULL ENABLE,
     68      "LIST_PRICE"         NUMBER(15,4) NOT NULL ENABLE,
     69      "PPRC_PROMO_CD"      VARCHAR2(20 CHAR) NOT NULL ENABLE,
     70      "MERCH_TYPE"         VARCHAR2(10 CHAR) NOT NULL ENABLE,
     71      "TAX_CD"             VARCHAR2(8 CHAR) NOT NULL ENABLE,
     72      "TAX_EXEMPT_CERT"    VARCHAR2(30 CHAR) NOT NULL ENABLE,
     73      "TAX_EXEMPT_FLG"     VARCHAR2(1 CHAR) NOT NULL ENABLE,
     74      "TAX_EXEMPT_RC"      VARCHAR2(2 CHAR) NOT NULL ENABLE,
     75      "TAX_JOB_NUM"        VARCHAR2(10 CHAR) NOT NULL ENABLE,
     76      "BI_TAX_TIMING"      VARCHAR2(1 CHAR) NOT NULL ENABLE,
     77      "CUSTOMER_GROUP"     VARCHAR2(10 CHAR) NOT NULL ENABLE,
     78      "VAT_TXN_TYPE_CD"    VARCHAR2(4 CHAR) NOT NULL ENABLE,
     79      "TAX_CD_VAT"         VARCHAR2(8 CHAR) NOT NULL ENABLE,
     80      "VAT_APPLICABILITY"  VARCHAR2(1 CHAR) NOT NULL ENABLE,
     81      "VAT_PRODUCT_GROUP"  VARCHAR2(10 CHAR) NOT NULL ENABLE,
     82      "PROD_GRP_SETID"     VARCHAR2(5 CHAR) NOT NULL ENABLE,
     83      "IST_TXN_FLG"        VARCHAR2(1 CHAR) NOT NULL ENABLE,
     84      "IDENTIFIER_TBL"     VARCHAR2(3 CHAR) NOT NULL ENABLE,
     85      "SHIP_FROM_LOC"      VARCHAR2(10 CHAR) NOT NULL ENABLE,
     86      "ORD_ACCEPT_LOC"     VARCHAR2(10 CHAR) NOT NULL ENABLE,
     87      "ORD_ORIGIN_LOC"     VARCHAR2(10 CHAR) NOT NULL ENABLE,
     88      "STORE_LOC"          VARCHAR2(10 CHAR) NOT NULL ENABLE,
     89      "TITLE_PASSAGE"      VARCHAR2(1 CHAR) NOT NULL ENABLE,
     90      "TAX_GROUP"          VARCHAR2(10 CHAR) NOT NULL ENABLE,
     91      "TAX_USER_AREA"      VARCHAR2(25 CHAR) NOT NULL ENABLE,
     92      "TAX_TRANS_TYPE"     VARCHAR2(1 CHAR) NOT NULL ENABLE,
     93      "TAX_TRANS_SUB_TYPE" VARCHAR2(1 CHAR) NOT NULL ENABLE,
     94      "NET_EXTENDED_AMT"   NUMBER(26,3) NOT NULL ENABLE,
     95      "GROSS_EXTENDED_AMT" NUMBER(26,3) NOT NULL ENABLE,
     96      "REV_RECOG_BASIS"    VARCHAR2(3 CHAR) NOT NULL ENABLE,
     97      "PROJECT_ID"         VARCHAR2(15 CHAR) NOT NULL ENABLE,
     98      "BUSINESS_UNIT_OM"   VARCHAR2(5 CHAR) NOT NULL ENABLE,
     99      "ORDER_NO"           VARCHAR2(10 CHAR) NOT NULL ENABLE,
    100      "ORDER_INT_LINE_NO"  NUMBER(*,0) NOT NULL ENABLE,
    101      "SCHED_LINE_NBR"     NUMBER(*,0) NOT NULL ENABLE,
    102      "DEMAND_SOURCE"      VARCHAR2(2 CHAR) NOT NULL ENABLE,
    103      "DEMAND_LINE_NO"     NUMBER(*,0) NOT NULL ENABLE,
    104      "BUSINESS_UNIT_RMA"  VARCHAR2(5 CHAR) NOT NULL ENABLE,
    105      "RMA_ID"             VARCHAR2(10 CHAR) NOT NULL ENABLE,
    106      "RMA_LINE_NBR"       NUMBER(*,0) NOT NULL ENABLE,
    107      "PRODUCT_ID"         VARCHAR2(18 CHAR) NOT NULL ENABLE,
    108      "ORDER_DATE" DATE,
    109      "PO_REF"       VARCHAR2(30 CHAR) NOT NULL ENABLE,
    110      "PO_LINE"      NUMBER(*,0) NOT NULL ENABLE,
    111      "CONTRACT_NUM" VARCHAR2(25 CHAR) NOT NULL ENABLE,
    112      "CONTRACT_DT" DATE,
    113      "CONTRACT_TYPE"     VARCHAR2(15 CHAR) NOT NULL ENABLE,
    114      "CONTRACT_LINE_NUM" NUMBER(*,0) NOT NULL ENABLE,
    115      "FREIGHT_TERMS"     VARCHAR2(10 CHAR) NOT NULL ENABLE,
    116      "BILL_OF_LADING"    VARCHAR2(30 CHAR) NOT NULL ENABLE,
    117      "COUNTRY_SHIP_FROM" VARCHAR2(3 CHAR) NOT NULL ENABLE,
    118      "COUNTRY_SHIP_TO"   VARCHAR2(3 CHAR) NOT NULL ENABLE,
    119      "SHIP_TO_CUST_ID"   VARCHAR2(15 CHAR) NOT NULL ENABLE,
    120      "SHIP_TO_ADDR_NUM"  NUMBER(*,0) NOT NULL ENABLE,
    121      "SHIP_ID"           VARCHAR2(10 CHAR) NOT NULL ENABLE,
    122      "SHIP_TYPE_ID"      VARCHAR2(10 CHAR) NOT NULL ENABLE,
    123      "SHIP_FROM_BU"      VARCHAR2(5 CHAR) NOT NULL ENABLE,
    124      "SHIP_DATE" DATE,
    125      "SHIP_TIME" TIMESTAMP (6),
    126      "PACKSLIP_NO"      VARCHAR2(22 CHAR) NOT NULL ENABLE,
    127      "LC_ID"            VARCHAR2(12 CHAR) NOT NULL ENABLE,
    128      "LOC_DOC_ID"       VARCHAR2(15 CHAR) NOT NULL ENABLE,
    129      "SEQUENCE_NBR"     NUMBER(*,0) NOT NULL ENABLE,
    130      "SOLD_TO_CUST_ID"  VARCHAR2(15 CHAR) NOT NULL ENABLE,
    131      "SOLD_TO_ADDR_NUM" NUMBER(*,0) NOT NULL ENABLE,
    132      "BUSINESS_UNIT_PC" VARCHAR2(5 CHAR) NOT NULL ENABLE,
    133      "BUSINESS_UNIT_CA" VARCHAR2(5 CHAR) NOT NULL ENABLE,
    134      "RT_EFFDT" DATE,
    135      "BILL_PLAN_ID"      VARCHAR2(10 CHAR) NOT NULL ENABLE,
    136      "PC_DISTRIB_STATUS" VARCHAR2(1 CHAR) NOT NULL ENABLE,
    137      "BPLAN_LN_NBR"      NUMBER(*,0) NOT NULL ENABLE,
    138      "EVENT_OCCURRENCE"  NUMBER(*,0) NOT NULL ENABLE,
    139      "XREF_SEQ_NUM"      NUMBER(*,0) NOT NULL ENABLE,
    140      "CONTRACT_PPD_SEQ"  NUMBER(*,0) NOT NULL ENABLE,
    141      "ANALYSIS_TYPE"     VARCHAR2(3 CHAR) NOT NULL ENABLE,
    142      "RESOURCE_ID"       VARCHAR2(40 CHAR) NOT NULL ENABLE,
    143      "RESOURCE_TYPE"     VARCHAR2(5 CHAR) NOT NULL ENABLE,
    144      "RESOURCE_CATEGORY" VARCHAR2(5 CHAR) NOT NULL ENABLE,
    145      "RESOURCE_SUB_CAT"  VARCHAR2(5 CHAR) NOT NULL ENABLE,
    146      "ACTIVITY_ID"       VARCHAR2(15 CHAR) NOT NULL ENABLE,
    147      "ACTIVITY_TYPE"     VARCHAR2(5 CHAR) NOT NULL ENABLE,
    148      "DIST_CFG_FLAG"     VARCHAR2(1 CHAR) NOT NULL ENABLE,
    149      "PRODUCT_KIT_ID"    VARCHAR2(18 CHAR) NOT NULL ENABLE,
    150      "SYSTEM_SOURCE"     VARCHAR2(3 CHAR) NOT NULL ENABLE,
    151      "EMPLID"            VARCHAR2(11 CHAR) NOT NULL ENABLE,
    152      "EMPL_RCD"          NUMBER(*,0) NOT NULL ENABLE,
    153      "START_DT" DATE,
    154      "END_DT" DATE,
    155      "FROM_DT" DATE,
    156      "TO_DT" DATE,
    157      "SERVICE_CUST_ID"    VARCHAR2(15 CHAR) NOT NULL ENABLE,
    158      "SERVICE_ADDR_NUM"   NUMBER(*,0) NOT NULL ENABLE,
    159      "NOTE_TYPE"          VARCHAR2(10 CHAR) NOT NULL ENABLE,
    160      "STD_NOTE_FLAG"      VARCHAR2(1 CHAR) NOT NULL ENABLE,
    161      "INTERNAL_FLAG"      VARCHAR2(1 CHAR) NOT NULL ENABLE,
    162      "HDR_OR_LINE_NOTE"   VARCHAR2(1 CHAR) NOT NULL ENABLE,
    163      "AR_LVL"             VARCHAR2(1 CHAR) NOT NULL ENABLE,
    164      "AR_DST_OPT"         VARCHAR2(1 CHAR) NOT NULL ENABLE,
    165      "GL_LVL"             VARCHAR2(1 CHAR) NOT NULL ENABLE,
    166      "ENABLE_DFR_REV_FLG" VARCHAR2(1 CHAR) NOT NULL ENABLE,
    167      "BILLING_SPECIALIST" VARCHAR2(8 CHAR) NOT NULL ENABLE,
    168      "BILLING_AUTHORITY"  VARCHAR2(8 CHAR) NOT NULL ENABLE,
    169      "BILLING_FREQUENCY"  VARCHAR2(3 CHAR) NOT NULL ENABLE,
    170      "BILL_INQUIRY_PHONE" VARCHAR2(24 CHAR) NOT NULL ENABLE,
    171      "SALES_PERSON"       VARCHAR2(8 CHAR) NOT NULL ENABLE,
    172      "COLLECTOR"          VARCHAR2(8 CHAR) NOT NULL ENABLE,
    173      "CR_ANALYST"         VARCHAR2(8 CHAR) NOT NULL ENABLE,
    174      "INVOICE_FORM_ID"    VARCHAR2(10 CHAR) NOT NULL ENABLE,
    175      "STD_NOTE_CD"        VARCHAR2(10 CHAR) NOT NULL ENABLE,
    176      "TOT_LINE_DST_AMT"   NUMBER(26,3) NOT NULL ENABLE,
    177      "TOT_LINE_DST_PCT"   NUMBER(5,2) NOT NULL ENABLE,
    178      "TOT_LINE_DFR_PCT"   NUMBER(5,2) NOT NULL ENABLE,
    179      "TOT_LINE_DFR_AMT"   NUMBER(26,3) NOT NULL ENABLE,
    180      "TOT_LINE_UAR_AMT"   NUMBER(26,3) NOT NULL ENABLE,
    181      "TOT_LINE_UAR_PCT"   NUMBER(5,2) NOT NULL ENABLE,
    182      "SSN"                VARCHAR2(9 CHAR) NOT NULL ENABLE,
    183      "CHARGE_FROM_DT" DATE,
    184      "CHARGE_TO_DT" DATE,
    185      "SUBCUST_QUAL1"      VARCHAR2(15 CHAR) NOT NULL ENABLE,
    186      "SUBCUST_QUAL2"      VARCHAR2(15 CHAR) NOT NULL ENABLE,
    187      "REIMB_AGREEMENT"    VARCHAR2(25 CHAR) NOT NULL ENABLE,
    188      "TOT_DISCOUNT_AMT"   NUMBER(26,3) NOT NULL ENABLE,
    189      "TOT_SURCHARGE_AMT"  NUMBER(26,3) NOT NULL ENABLE,
    190      "ACCUMULATE"         VARCHAR2(1 CHAR) NOT NULL ENABLE,
    191      "VAT_TREATMENT_GRP"  VARCHAR2(4 CHAR) NOT NULL ENABLE,
    192      "COUNTRY_VAT_BILLFR" VARCHAR2(3 CHAR) NOT NULL ENABLE,
    193      "COUNTRY_VAT_BILLTO" VARCHAR2(3 CHAR) NOT NULL ENABLE,
    194      "VAT_TREATMENT"      VARCHAR2(4 CHAR) NOT NULL ENABLE,
    195      "PHYSICAL_NATURE"    VARCHAR2(1 CHAR) NOT NULL ENABLE,
    196      "COUNTRY_LOC_BUYER"  VARCHAR2(3 CHAR) NOT NULL ENABLE,
    197      "STATE_LOC_BUYER"    VARCHAR2(6 CHAR) NOT NULL ENABLE,
    198      "COUNTRY_LOC_SELLER" VARCHAR2(3 CHAR) NOT NULL ENABLE,
    199      "STATE_LOC_SELLER"   VARCHAR2(6 CHAR) NOT NULL ENABLE,
    200      "VAT_SVC_SUPPLY_FLG" VARCHAR2(1 CHAR) NOT NULL ENABLE,
    201      "VAT_SERVICE_TYPE"   VARCHAR2(1 CHAR) NOT NULL ENABLE,
    202      "COUNTRY_VAT_PERFRM" VARCHAR2(3 CHAR) NOT NULL ENABLE,
    203      "STATE_VAT_PERFRM"   VARCHAR2(6 CHAR) NOT NULL ENABLE,
    204      "COUNTRY_VAT_SUPPLY" VARCHAR2(3 CHAR) NOT NULL ENABLE,
    205      "STATE_VAT_SUPPLY"   VARCHAR2(6 CHAR) NOT NULL ENABLE,
    206      "STATE_SHIP_FROM"    VARCHAR2(6 CHAR) NOT NULL ENABLE,
    207      "STATE_SHIP_TO"      VARCHAR2(6 CHAR) NOT NULL ENABLE,
    208      "MAST_CONTR_ID"      VARCHAR2(25 CHAR) NOT NULL ENABLE,
    209      "TAX_CUST_ID"        VARCHAR2(15 CHAR) NOT NULL ENABLE,
    210      "BUSINESS_UNIT_AM"   VARCHAR2(5 CHAR) NOT NULL ENABLE,
    211      "BUSINESS_UNIT_AMTO" VARCHAR2(5 CHAR) NOT NULL ENABLE,
    212      "ASSET_ID"           VARCHAR2(12 CHAR) NOT NULL ENABLE,
    213      "PROFILE_ID"         VARCHAR2(10 CHAR) NOT NULL ENABLE,
    214      "COST_TYPE"          VARCHAR2(1 CHAR) NOT NULL ENABLE,
    215      "STATE_VAT_DEFAULT"  VARCHAR2(6 CHAR) NOT NULL ENABLE,
    216      "SO_ID"              VARCHAR2(15 CHAR) NOT NULL ENABLE,
    217      "BUSINESS_UNIT_RF"   VARCHAR2(5 CHAR) NOT NULL ENABLE,
    218      "SOURCE_REF_TYPE"    VARCHAR2(3 CHAR) NOT NULL ENABLE,
    219      "SOURCE_REF_NO"      VARCHAR2(35 CHAR) NOT NULL ENABLE,
    220      "SOURCE_REF_KEY"     VARCHAR2(5 CHAR) NOT NULL ENABLE,
    221      "USER_AMT1"          NUMBER(26,3) NOT NULL ENABLE,
    222      "USER_AMT2"          NUMBER(26,3) NOT NULL ENABLE,
    223      "USER_DT1" DATE,
    224      "USER_DT2" DATE,
    225      "USER1" VARCHAR2(1 CHAR) NOT NULL ENABLE,
    226      "USER2" VARCHAR2(1 CHAR) NOT NULL ENABLE,
    227      "USER3" VARCHAR2(1 CHAR) NOT NULL ENABLE,
    228      "USER4" VARCHAR2(1 CHAR) NOT NULL ENABLE,
    229      "USER5" VARCHAR2(1 CHAR) NOT NULL ENABLE,
    230      "USER6" VARCHAR2(1 CHAR) NOT NULL ENABLE,
    231      "USER7" VARCHAR2(1 CHAR) NOT NULL ENABLE,
    232      "USER8" VARCHAR2(1 CHAR) NOT NULL ENABLE,
    233      "USER9" VARCHAR2(1 CHAR) NOT NULL ENABLE,
    234      "SETID" VARCHAR2(5 CHAR) NOT NULL ENABLE,
    235      "ADD_DTTM" TIMESTAMP (6),
    236      "LAST_UPDATE_DTTM" TIMESTAMP (6),
    237      "DELETE_ROWS" VARCHAR2(1 CHAR) NOT NULL ENABLE,
    238      "BOOK"        VARCHAR2(10 CHAR) NOT NULL ENABLE,
    239      "DTTM_STAMP" TIMESTAMP (6),
    240      "VAT_RVRSE_CHG_GDS"  VARCHAR2(1 CHAR) NOT NULL ENABLE,
    241      "TAX_CD_VAT_RVC"     VARCHAR2(8 CHAR) NOT NULL ENABLE,
    242      "TAX_CD_VAT_RVC_PCT" NUMBER(7,4) NOT NULL ENABLE,
    243      "VAT_AMT_RVC"        NUMBER(26,3) NOT NULL ENABLE,
    244      "VAT_AMT_RVC_BSE"    NUMBER(26,3) NOT NULL ENABLE,
    245      "VAT_AMT"            NUMBER(26,3) NOT NULL ENABLE,
    246      "VAT_AMT_BSE"        NUMBER(26,3) NOT NULL ENABLE,
    247      "TAX_CD_VAT_PCT"     NUMBER(7,4) NOT NULL ENABLE
    248    )
    249    SEGMENT CREATION DEFERRED PCTFREE 10 PCTUSED 80 INITRANS 1 MAXTRANS 255 N
    OCOMPRESS LOGGING STORAGE
    250    (
    251      INITIAL 16384 NEXT 16384 MAXEXTENTS 2147483645 PCTINCREASE 0
    252    )
    253    TABLESPACE "AMAPP" ;
    
    Table created.
    
    Elapsed: 00:00:00.76
    SQL> CREATE UNIQUE INDEX "SYSADM"."DRIVERTEST1" ON "SYSADM"."DRIVERTEST"
      2    (
      3      "PROCESS_INSTANCE", "INTFC_ID", "INTFC_LINE_NUM", "TRANS_TYPE_BI", "TRA
    NS_TYPE_BI_SEQ"
      4    )
      5    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
      6    (
      7      INITIAL 16384 NEXT 106496 MAXEXTENTS 2147483645 PCTINCREASE 0
      8    )
      9    TABLESPACE "PSINDEX" ;
    
    Index created.
    
    Elapsed: 00:00:00.04
    SQL>
    SQL> drop table DRIVERTEST;
    
    Table dropped.
    
    Elapsed: 00:00:24.90
    This is company Oracle 11.2.0.3 on 64-bit Windows.

    Thanks for any input.

    Mika wrote:
    >
    user as a result of the drop statement

    Let fall the waterfall DRIVERTEST table purge constraints;
    >

    Translates into a decline of almost immediate table, why is this? Does this mean that the longest execution time has been only because the table has been preserved in the trash?

    If correctly, I assume you're on Peoplesoft, you should try turn off the recyclebin before running the script generated by the application Designer, or purge the first recyclebin which could be huge because of the mechanism of migration of Peoplesoft.
    Or probably better, in the configuration settings, tab "Alter", check "Alter in place" instead of "Alter by changing the Table name". "." The first will modify the table, to create a temporary table (fill in the former), drop the old, then rename the temporary table.

    And don't forget to add crazy missing "when sqlerror exit" at the beginning of the script, otherwise you could have a very sad surprise.

    Nicolas.

    Comment added to configuration settings
    Published by: Gasparotto N on April 12, 2013 13:07

  • OfficeJet Pro 8600 appears twice in the selection of drop down menu printer with each of the different names.

    Hello!

    I recently acquired an Officejet Pro 8600 and immediately connected to my network wireless as stated in the manual. No other type of connection has been used beforehand and the operating system is Windows 7 64 bit.

    After that the installation of the printer driver appears twice each time that a program asks me to select a printer from the drop of the printing devices in the typical menu of preparation of printing.

    There is an entry for "Officejet Pro 8600 (network)" and something in the sense of 'HP95CDN' (Officejet Pro 8600). I can't remember the exact names off the top of my head, but it is the name of the printer with the 'network' in brackets in one case and a kind of shortcut ID printer with full name in parentheses in the other case.

    According to the program, one of the options gives the desired impression while the other simply causes a queue of indelible impression for the name of the unit in question that is stuck to a few KB of data transmission.

    Usually printing works with the device with the identification of the printer in its name, but I recently had a case where with LibreOffice printing only works with the other choice.

    Can someone explain to me exactly means?

    See you soon,.

    Pete

    Direct entry Wireless will be visible under menu so direct wireless is on... However, since you are able to print another icon (not the network icon) I assume direct wireless is off coz you will not be able to print from wireless directly on the printer if you are connected to the router.

    I believe that the icon of the printer (not the network icon) has a port WSD assigned and is automatically detected by the operating system and installed.

    Go to service window and check if you have any input that says function Discovery Provider Host and see if it is started. Try to stop the service, and remove the icon of the printer (not the network icon) in the print server properties.

    Restart the PC and check if the icon comes back or try to uninstall and reinstall

    Let us know the result

  • C5180: C5180 change to the previous version of the operating system in the drop-down dialog box

    I tried to fix the parse error: 4, [(0,12,80004005), (2,7,80040007), (3,7,0) error of scanning hp] and stumbled upon a fix in support of HP that says if the scanning functions work properly before an upgrade of the operating system to try to use the previous version. I upgraded from Windows XP to Windows 7 when it is released, but just recently started having problems with scanning. Now, I can't find the setting with the dialog box with the drop down box that allowed me to make this change and I need to reset Windows 7 on XP.  Where should I go to my settings of the computer to find this setting?

    Hi pfeif25,

    You are welcome!

    The video was an example, how to get to this screen. So what you want to do is the same procedure indicated in this video with your HP Solution Center, or any other program you want to use compatibility mode with...

    I hope this clears up things!

  • EMP 11.1.2.3 System Installer fails to install the Oracle DB, 32-bit and 64-bit Client

    Hello

    We are trying to do a fresh install of Oracle Hyperion EPM 11.1.2.3 on Windows 2008 Server R2.

    Its a standard deployment with a Foundation Server and an Essbase server.

    When you try to install on the server of the Foundation, the EPM System Installer fails to install Oracle database customers.

    The first Question we have is, we have decided using Microsoft SQL Server for the repository of Shared Services and therefore would like to know if it is safe to ignore this error and move on.

    The second question is, if we need the error pending, we want to know why the installation system fails. Looking at the newspaper, ORACLE_HOME is on something that is not valid or is longer than 128 characters.

    The Diagnostics show the below error message:

    NEWS: Will copy both pre and post copy copy files C:\Users\SA-ESS~1\AppData\Local\Temp\2\OraInstall2013-11-11_04-16-01PM/oracle.client_Administrator.properties

    INFO: Install Properties filename: C:\Users\SA-ESS~1\AppData\Local\Temp\2\OraInstall2013-11-11_04-16-01PM/oracle.client_Administrator.properties

    INFO: Value oracle.install.customdeinstallcommand %ORACLE_HOME%/deinstall/deinstall

    INFO: Oracle.install.customizedeinstall set to true

    INFO: The value oracle.installer.ORACLE_BASEvar ORACLE_BASE

    INFO: The value oracle.installer.LibPerms 0755

    INFO: Value oracle.installer.summary_expand_nodes NewLangs, Global, space, Langs

    INFO: The value oracle.installer.LibExtns .sl,.sl.11.1, .so,.so.11.1,.sl.1.0,.so.1.0

    INFO: oracle.installer.mandatorySetup set to true

    INFO: oracle.installer.useORACLE_BASE set to true

    INFO: Oracle.installer.removeallfiles set to true

    INFO: Oracle.installer.additionaltool_continue_onerror set to true

    INFO:

    Specify Home Details Page *.

    INFO: Setting the property "OracleHome (ORACLE_HOME)' ' D:\Oracle\Middleware\EPMSystem11R1\... \dbclient32'." Has received the value of the command line.

    INFO: Setting the property ' OracleHomeName (ORACLE_HOME_NAME)' to 'OraClient11g32_sa-essbaseapp '. Has received the value of the command line.

    INFO: Definition of the 'OracleBase (ORACLE_BASE)' property ' D:\Oracle\Middleware\EPMSystem11R1\...------'. Has received the value of the command line.

    GRAVE: The Oracle Home name is not valid. Oracle Home names must be 128 characters or less and contain only alphanumeric characters and underscores.

    INFO: The attention of unregistered Manager, using the features of the Super class

    INFO: The attention of unregistered Manager, using the features of the Super class

    INFO: User selected: Yes/OK

    INFO: Closing OUISetupDriver.JobExecutorThread

    GRAVE: [FATAL] [INS-10008] Session initialization failed

    CAUSE: An unexpected error occurred during initialization of the session.

    ACTION: Contact Oracle Support Services or view logs

    SUMMARY:

    - .

    See associated stacktrace #oracle.install.commons.util.exception.DefaultErrorAdvisor:1096

    INFO: Tips are ABORT

    GRAVE: Unconditional exit

    INFO: Add ExitStatus FAILURE to exit status set

    INFO: Find the status of output more suitable for the current application

    INFO: Exit status is - 1

    NEWS: Stop Oracle Client install

    I got my answer in the newspaper.

    The ORACLE_HOME_NAME is the question.

    Our deployment account has a hyphen -, and so the Yes program is unable to initialize.

  • In the SYSTEM tablespace, we can recover the object dropped?

    Hello everyone;

    Hello!

    In the SYSTEM tablespace, we can recover interrupted object?

    Try to find items dropped in the system tablespace

    SQL > conn virtue sysdba

    Connected.

    SQL > create table test (no number, name varchar2 (100));

    Table created.

    SQL > insert into values (100, 'TEST VALUE') test;

    1 line of creation.

    SQL > commit;

    Validation complete.

    SQL > drop table test;

    Deleted table.

    SQL > select object_name, original_name, type, can_undrop as "UND" can_purge as "PURE", droptime

    2 of recyclebin;

    no selected line

    8f953842-815B-4D8C-833d-f2a3dd51e602 wrote:

    If you're talking about using FLASHBACK TABLE on system tables.

    -Yes. I created a table in the tabalespace system.

    so, we cannot retrieve any object in the system table space. (if we have abandoned).

    My 2nd Question:

    SQL > select can_undrop 'UND', can_purge as 'PURE' droptime, original_name, type object_name in recyclebin;

    OBJECT_NAME ORIGINAL_NAME TYPE UND PURE DROP TIMES

    ------------------------------ -------------------------------- ------------------------- --- --- ---- ---------------

    BIN$ 4cFLWJwTnjjgQAB / AQB + SA TABLE of EXAMPLE $0 == YES YES 2013-07 - 18:08:22:00

    BIN$ 4cFZTBK0p + TgQAB/AQB + rQ == $0 TEST TABLE YES YES 2013-07 - 18:08:25:54

    how find the SNA No. using drop time ? : Please see above marked red.

    Thank you for rp.

    You need to look for the answer? View DBA_RECYCLEBIN has the answer you are looking for,

    DBA_RECYCLEBIN

    Aman...

  • The DDL extract fail with ORA-30511: invalid operation of DDL TRIGGER system

    Hello

    When I tried to do all DDL operation I can see the following trace in ggs_ddl_trace.log with the trace level 2.
    It does not insert record in the GGS_DDL_HIST table.
    everything seems only when ddl_status.sql has been run...
    DDL replication is not the case.
    Help, please.

    SESS 30445-2012-04-12 11:16:09: DDL: start YVERT found [1147628]
    SESS 30445-2012-04-12 11:16:09: DDL: object ID is [74635]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE1: before: point in execution = [4]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE1: insertToMarker: inString =]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE1:
    [SESS 30445-2012-04-12 11:16:09: DDLTRACE1:], type = target [0] = [1]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE2: insertToMarker: optype marker = [0], current_fragment = [0]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE2: insertToMarker: added the fragment part * 1 *]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE2:
    [[SESS 30445-2012-04-12 11:16:09: DDLTRACE2:], new current fragment [], new length of it]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE1: itemHeader: MD_TAB_DDLSTATEMENT (key1 = key2 [] = []) = [change the 'GGUSER' table. ["' Adds YASEEN" (column2 VARCHAR2 (30))], itemMode = [0]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE2: escape_string: retVal = ['alter table 'GGUSER'.] ["" YASEEN ' add\ (VARCHAR2\ (30\)------) of Column2 ']
    SESS 30445-2012-04-12 11:16:09: DDLTRACE2: itemHeader: retVal = [, G1 =' alter table 'GGUSER'.] ["" YASEEN ' add\ (VARCHAR2\ (30\)------) of Column2 ',]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE1: insertToMarker: inString =]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE1:, G1 =' alter table 'GGUSER '. "" YASEEN ' add\ (column2 VARCHAR2\ (30\)------) ',
    [SESS 30445-2012-04-12 11:16:09: DDLTRACE1:], type = target [4] = [1]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE2: insertToMarker: optype marker = [4], current_fragment = [0]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE2: insertToMarker: added the fragment part * 2 *]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE2:, G1 =' alter table 'GGUSER '. "" YASEEN ' add\ (column2 VARCHAR2\ (30\)------) ',
    [SESS 30445-2012-04-12 11:16:09: DDLTRACE2:], new ongoing fragment [, G1 =' alter table 'GGUSER'.] ["" YASEEN ' add\ (VARCHAR2\ (30\)------) of Column2 ',], new length of it [66]
    [SESS 30445-2012-04-12 11:16:09: DDLTRACE1: insertToMarker: total_fragments =]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE1: insertToMarker: total_fragments (in a loop) = [1]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE1: insertToMarker: fragment # = [1] fragment = [, G1 =' alter table 'GGUSER'.] ["" YASEEN ' add\ (VARCHAR2\ (30\)------) of Column2 ',]
    SESS 30445-2012-04-12 11:16:09: DDLTRACE1: insertToMarker: insertion in the history, objid [74635]
    SESS 30445-2012-04-12 11:16:09: DDL: insertToMarker: ORA-30511: invalid DDL operation in the system triggers
    SESS 30445-2012-04-12 11:16:09: DDL: getTableInfo: ORA-30511: invalid DDL operation in the system triggers
    * SESS 30445-2012-04-12 11:16:09: DDL: trigger sys. GGS_DDL_TRIGGER_BEFORE: processing error DDL operation [change the 'GGUSER' table. ["' Adds to the YASEEN" (VARCHAR2 (30)) Column2], error ORA-30511: invalid DDL operation in the system triggers, stack error: ORA-06512: at 'GGUSER '. DDLREPLICATION', line 2486 *.
    ORA-06512: at line 833 level

    SESS 30445-2012-04-12 11:16:09: DDL: cleaning sequence marker [17]
    SESS 30445-2012-04-12 11:16:09: DDL: cleaned [2] marker table rows
    SESS 30445-2012-04-12 11:16:09: DDL: cleaning sequence DDL [17]
    SESS 30445-2012-04-12 11:16:09: DDL: cleaned [0] lines of the DDL table

    Hello

    The recyclebin database is empty. Otherwise please purge the recyclebin and then try to make the changes.

    Thank you
    Kamal.

  • How to draw the drop command in the oracle database.

    Dear all,


    A DBA how can we draw the cammand drop in the database to find out who droped, removed tables or deleted data from tables or droped dba_directories directory.

    Thank you

    OK, you enabled the audit, but does not say what to check

    SQL > drop table audit on owner.table_name by session;

    Edit: my bad, can't remember the right syntax, but that's what documentation exists for

    Published by: Balazs Papp on June 23, 2011 11:11

  • Non riesco a generare I trigger by the journal tables

    Buonasera,

    utilizzavo tables version 4.1.1 di Data model e riuscivo a generare I trigger by the newspaper, pero utilizzava sempre he nome di table "emp2."

    Nelle note della versione 4.1.2 release it era scritto che he bug era stato solved, pero adesso non riesco più a generare I trigger by the journal tables.

    You can help?

    Grazie

    Davide

    Hello Davide,.

    you are able to run the generation of 'test' as he explained here Oracle SQL Developer Data Modeler 4.1 user - defined DDL generation using transformation scripts

    Do you have a location in "preferences > Data Modeler"-"types of default system directory" - If there is a defined directory it can DM puts the script from that directory - scripts are in the file - dr_custom_scripts.xml. "»

    If you have not changed the scripts distributed with Data Modeler (or add new ones) so you can copy this file in the directory datamodeler\datamodeler\types of DM 4.1.2 installation to the directory defined in the preferences.

    In fact the problem in 4.1.1 DM was in the script itself always putting this 'EMP2' name in the definition of the trigger - line 66 should be modified in order to obtain valid results:

    old line 66:

    "WE DELETE emp2 for each line \n" +

    new line 66:

    "WE DELETE" + lname + ' for each line \n"+"

    Philippe

  • It does not work when you use the trigger to check the data of the other table.

    Please help me with this, I put a trigger on a table, but it can not work as I expect.

    case study: a class has many students, one of them is going to match.
    The purpose of this trigger is to check when to choose a student going to match, this student has in his class where it belongs to.
    Oracle version is 10.2.0.1.0.
    --table:
    DROP TABLE STU;
    DROP TABLE CLASS;
    
    create table CLASS(
    CID     VARCHAR2(5)   PRIMARY KEY,
    CNAME   VARCHAR2(20)  NOT NULL,
    SCHOSEN VARCHAR2(5));
     
    create table STU(
    SID     VARCHAR2(5)   PRIMARY KEY,
    SNAME   VARCHAR2(20)  NOT NULL,
    CID     VARCHAR2(5)   NOT NULL REFERENCES CLASS(CID) ON DELETE CASCADE);
    
    --data:
    --CLASS
    INSERT INTO CLASS(CID,CNAME) VALUES(1,'SUN');
    INSERT INTO CLASS(CID,CNAME) VALUES(2,'MOON');
    INSERT INTO CLASS(CID,CNAME) VALUES(3,'EARTH');
    --STU
    INSERT INTO STU VALUES(1,'JACK',1);
    INSERT INTO STU VALUES(2,'TOM',1);
    INSERT INTO STU VALUES(3,'LILY',2);
    INSERT INTO STU VALUES(4,'DUSTIN',3);
    
    --TRIGGER
    CREATE OR REPLACE TRIGGER CHECK_SCHOSEN
    BEFORE INSERT OR UPDATE OF SCHOSEN ON CLASS
    FOR EACH ROW WHEN (NEW.SCHOSEN IS NOT NULL)
    
    DECLARE
    DUMMY INTEGER;
    INVALID_STU EXCEPTION;
    VALID_STU EXCEPTION;
    MUTATING_TABLE EXCEPTION;
    PRAGMA EXCEPTION_INIT(MUTATING_TABLE, -4091);
    
    CURSOR DUMMY_CURSOR (ST VARCHAR2, CL VARCHAR2) IS
      SELECT SID FROM STU, CLASS
      WHERE STU.SID=ST AND STU.CID=CLASS.CID AND CLASS.CID=CL
        FOR UPDATE OF CLASS.SCHOSEN;
    
    BEGIN
      OPEN DUMMY_CURSOR(:NEW.SCHOSEN, :NEW.CID);
      FETCH DUMMY_CURSOR INTO DUMMY;
      IF DUMMY_CURSOR%NOTFOUND THEN
        RAISE INVALID_STU;
      ELSE
        RAISE VALID_STU;
      END IF;
      CLOSE DUMMY_CURSOR;
    EXCEPTION
      WHEN INVALID_STU THEN
        CLOSE DUMMY_CURSOR;
        DBMS_OUTPUT.PUT_LINE('PLEASE RE-ENTER CLASS ID AND STUDENT ID AS CLASS OR STUDENT IS NOT VALID.');
      WHEN VALID_STU THEN
        CLOSE DUMMY_CURSOR;
        DBMS_OUTPUT.PUT_LINE('STUDENT CHOOSE SUCCEFULLY!');
      WHEN MUTATING_TABLE THEN
        NULL;
    END;
    /
    Just copy and paste on it and try to run next:
    UPDATE CLASS
    SET SCHOSEN = 3
    WHERE CID = 1;
    Clearly, you can't student who is 3 as to Member of class 1. Please help me. Thank you.

    Published by: 991096 on March 1st, 2013 02:36

    Published by: 991096 on March 1st, 2013 03:03

    Published by: 991096 on March 1st, 2013 03:11

    Hello

    991096 wrote:
    1. the purpose of this trigger is to check when to choose a student going to match, this student has in his class where it belongs to. Then, when I try to choose 3 student-member of correspondence of class 1, should give me "PLEASE RE-ENTER ID AND STUDENT ID AS CLASS or STUDENT not IS NOT VALID."

    Then do something like this:

    CREATE OR REPLACE TRIGGER CHECK_SCHOSEN
    BEFORE INSERT OR UPDATE OF SCHOSEN ON CLASS
    FOR EACH ROW WHEN (NEW.SCHOSEN IS NOT NULL)
    DECLARE
        sid_found     stu.sid%TYPE;
    BEGIN
        dbms_output.put_line (:NEW.schosen || ' = schosen entering check_schosen');             SELECT  sid
             INTO    sid_found
         FROM      stu
         WHERE     sid     = :NEW.schosen
         AND     cid     = :NEW.cid
         AND     ROWNUM     = 1     -- to avoid TOO_MANY_ROWS
         ;
    EXCEPTION
        WHEN  NO_DATA_FOUND
        THEN
         RAISE_APPLICATION_ERROR ( -20000
                        , 'Please re-enter class id and student id as class ('
                          || :NEW.cid
                          || ') or student ('
                          || :NEW.schosen
                          || ') is not valid.'
                        );
    end;
    /
    

    DBMS_OUTPUT creates only a message. The message may not be displayed, and if this is the case, then the user cannot see it. The DML will still take place.
    I used instead, RAISE_APPLICATION_ERROR to keep the DML does not happen. It displays a message like

    ORA-20000: Please re-enter class id and student id as class (1) or student (3) is not valid.
    

    ' 2 ' game ' means ' an official competition in which two several people or teams competing.

    What individuals or teams are competing in this case?
    In any case, the question wasn't 'that 'game' means', but

    Frank Kulash wrote:
    What do you mean when you say "going to match?

    I think that now you're saying that the new values of (class.cid, class.schosen) must be equal to (or "fit") some existing (stu.cid, stu.sid).

    3. thanks for your tip, I learned how to use '{code} '.

    4. it's really goes with the exception of MUTATING_TABLE. So, how do to fix the trigger to show me INVALID_STU EXCEPTION when I try to choose a student does not belong
    a class?

    Don't refer to the table of class in the trigger, and the error table mutation occur. All the information you need are in the stu table, so there is no need to query the table of class, anyway.

  • parameters of the system does not move on the eve of the database

    Platform: IBM AIX 7.1
    Oracle: 11.2.0.3
    Product: DG w/FSFO (dgbroker)
    ========================

    Question is why some initialization parameters go to the backup database and others not?
    How can I determine which is transferred and which do not?

    Example: change the system '_optim_peek_user_binds' setting is false scope = both;. < == dynamic parameter

    and: change processes control system = 1000 scope = spfile; < == require restart



    On the same topic, when I rebuild my standby database using the current database.

    The RMAN command reference: duplicate target database for the eve of the active database

    Also, it does not transfer parameters initialization as "sessions", "processes" and in our case, a hidden parameter ("_optim_peek_user_binds" = false).

    How can I determine what will transfer and what will not transfer?
    This little us twice in the last week when we switched to standby and then "turned" on our rebuilt on primary eve.

    Thanks in advance for any suggestions you may have.

    Yes, instance settings are instance/session (dynamic) specific.
    Suppose that little of the example, of course, there isn't a good example also. Still to convince ;-)

    If you have 2 tie, with shared SPFILE unique, if you tell the parameter SGA_TARGET if you have to load in a server support more or less in another node in database, if you decode to increase only on node 1, you can then change in node 1 without changing the setting globally as

    SQL > alter system set SGA_TARGET = 12000 m scope = the two sid = "prod1".
    SQL > alter system set SGA_TARGET = 8000 m scope = "prod2".

    So you can have multiple values for two instances... Here is therefore the parameters are specific instance. Do you agree?

    Refer also to extract all the parameters http://hemantoracledba.blogspot.in/2011/05/getting-all-instance-parameters.html?m=1

  • Dropped tables of user account appears not not in the recyclebin

    I found another thread with a similar problem, but from a sys account, but this isn't the case for me. For starters I have a student just learning Oracle so have the limits of knowledge.
    First, I installed Oracle Express 11 on XP in a virtual machine. I use SQL developer to access. I created a user with my name and allocated a similar name tablespace.

    CREATE TABLE PROVINCE_ID (ID NUMBER (10), VARCHAR2 (30)) OF THE PROVINCE;
    DROP TABLE PROVINCE_ID;
    FLASHBACK TABLE PROVINCE_ID FROM BEFORE THE FALL.

    The create and drop work fine, but the return of flame fails because of "no such table in the recyclebin" this is confirmed by selecting the trash and verification.
    Due to some further research, I tried:

    See THE recyclebin parameter;

    and confirmed the value is ONE

    Also using a
    See THE recyclebin;
    nets no results as expected because nothing is in it.

    Now I try one
    ALTER SESSION recyclebin = ON; (This command Alter system version fails)
    just to make sure it's on no effect.

    Any ideas on why the recyclebin is not grabbing my deleted tables?

    Edited by: 914271 February 13, 2012 21:11

    Flashback is not supported and is disabled on XE.

    Check the availability of a feature table 1-1 for editions of Oracle database

    in the doc of the licenses of database information

    http://docs.Oracle.com/CD/B28359_01/license.111/b28287/editions.htm

Maybe you are looking for