drop table - made waterfall-for related objects

If I drop the database table, then everything related to this table will be dropped/deleted?
I mean table constraints disappears from system tables, wil ogical grants be revoked or removed patterns that agree on this table and so on?

Yes,
remove the table directly, but take care of dependencies!

If you are not 100% sure, you can rename the table:

alter tabletodrop rename to ifwheredropped;

and check all invalid objects:

select * from all_objects where status!='VALID'

and recompile the... and check if you still have dependencies (errors)

Tags: Database

Similar Questions

  • Audit Table and triggers for the object table 10g

    Hello

    I am trying to create an audit table and related triggers based on a table of objects.

    I have a table called payruns.

    created by this statement:

    CREATE TABLE payruns to payrun_o;

    I intend on creating a table of audit created by statement payruns_audit

    CREATE TABLE payruns_audit)
    payrun_old PAYRUN_O NOT NULL,
    action VARCHAR2 (1).
    default user user_resp VARCHAR2 (32) NOT NULL,
    action_date date default sysdate NOT NULL);

    A trigger is needed to maintain the tabel of audit update

    The trigger code would be something like:

    CREATE OR REPLACE TRIGGER payruns_br_ud
    FRONT
    INSERT OR UPDATE ON payruns FOR EACH ROW
    DECLARE

    lv_old_payrun payrun_o;
    lv_action VARCHAR2 (1);

    BEGIN

    If the insertion
    lv_action: = 'I ';
    on the other
    lv_action: = 'U ';
    end if;

    SELECT: old.value (pr)
    IN lv_old_payrun
    OF payruns pr
    WHERE pr.pr_id =: old.pr_id;

    INSERT INTO payruns_audit (payrun_old,
    action,
    user_resp,
    action_date)
    VALUES (lv_old_payrun,
    lv_action,
    user,
    SYSDATE);

    END;

    However: old.value does not work.

    Could you tell me about the correct syntax.

    Thank you!

    Hi Alistair - try to use OBJECT_VALUE.

    CREATE TABLE payruns_audit)
    payrun_old PAYRUN_O NOT NULL,
    payrun_new PAYRUN_O NOT NULL,
    action VARCHAR2 (1).
    default user user_resp VARCHAR2 (32) NOT NULL,
    action_date date default sysdate NOT NULL);

    CREATE OR REPLACE TRIGGER payruns_after_ud
    AFTER the update on payruns
    FOR EACH LINE
    DECLARE
    lv_action VARCHAR2 (1);
    BEGIN
    IF the insertion and THEN lv_action: = 'I ';
    ANOTHER lv_action: = 'U ';
    END IF;

    INSERT INTO payruns_audit (payrun_old, payrun_new, action, user_resp, action_date)
    VALUES (: OLD.) OBJECT_VALUE,: NEW. OBJECT_VALUE, lv_action, USER, SYSDATE);
    END payruns_after_ud;

    Cheers, Shane.

  • See the recyclebin not shown anything once drop table

    currently test flashback table, but I wonder why recycle bin does not show anything after release? I check the parameter and the value is enabled. now it has me thinking there at - it a link between re-use locker, retention of undo and undo SCT size?

    If so why it does not work on a undo_retention = 900, cancellation of TBS size = 100MB and the table that I dropped consisting of 1 single column and type of 3 lines data number, which is particularly small. is there something that I need to put more?

    DB version is 10.2.0.1.0

    Thank you!

    mitchykoi wrote:
    It is also possible that all SYS objects can be stored or seen in a recyclebin?

    Only if the user Sys is store in a tablespace nonsystem as below,

    SQL> conn / as sysdba
    Connected.
    SQL> create table test_rbin2(a char) tablespace users;
    
    Table created.
    
    SQL> select table_name, tablespace_name
      2  from user_tables where table_name='TEST_RBIN2';
    
    TABLE_NAME                     TABLESPACE_NAME
    ------------------------------ ------------------------------
    TEST_RBIN2                     USERS
    
    SQL> show recyclebin
    SQL> drop table test_rbin2
      2  ;
    
    Table dropped.
    
    SQL> show recyclebin
    ORIGINAL NAME    RECYCLEBIN NAME                OBJECT TYPE  DROP TIME
    ---------------- ------------------------------ ------------ -------------------TEST_RBIN2       BIN$l/0nppCwhObgQL4KFEMjfA==$0 TABLE        2010-12-22:09:12:39SQL>
    

    You can see that the table is now in the recyclbin. Its actually the tablespace that would govern this thing. System tablespace is special and its objects are special treaties as well. The Sys user is supposed to be the owner of the system default tablespace (it's too) so by default, any drop table made here would not go to recyclebin.

    as a recyclebin for system objects only?

    No, there is no such thing.

    Also, what are the importance of the following: buffer_pool_recycle, db_recycle_cache_size for the garbage?

    Db_recycle_cache_size actually has Nothing to do with the Recyclebin except that it shares a common word with the latest. Buffer_pool_recycle also has nothing to do with the Recyclebin and actually, it has nothing to do at all of 10.1, because it is an obsolete parameter and is replaced by, guess what, db_recycle_cache_size .

    HTH
    Aman...

  • Can you record for an object of TYPE input COLLECTION and use it as a table?

    My PL/SQL stored procedure creates a list of employee number and phone record numbers. I don't want to store them in a table. I will pass this list from one procedure to another in my package.

    I created the type (folder) and type of collection (table) using this statement.
    CREATE TYPE obj_emp_phone_rec AS OBJECT
      (
         emp_number   NUMBER,
         emp_phone    VARCHAR2(100)
      )
    /
    
    CREATE TYPE obj_emp_phone_recs_table AS TABLE OF obj_emp_phone_rec
    /
    Thing is, can I use the obj_emp_phone_recs_table 'table type' as an array?

    I.e. can I insert records that in the procedure of package and pass reference to him in called secondary procedures.

    that is something like that
    PACKAGE BODY abc IS
    
      PROCEDURE kdkddk IS
      BEGIN
        -- Insert records to the  obj_emp_phone_recs_table 
        obj_emp_phone_recs_table(1).emp_number := '1';
        obj_emp_phone_recs_table(1).emp_phone   := '0774949494';
    
        obj_emp_phone_recs_table(2).emp_number := '234';
        obj_emp_phone_recs_table(2).emp_phone   := '285494';
    
        -- Pass the table to the sub procedure
        xyx(obj_emp_phone_recs_table);
    
        ........
        ......    
       
      END kdkddk;
    
    END abc;
    If yes how to insert the obj_emp_phone_recs_table?

    Nothing on the net. In the Net I found only where u set normal column of a table as an object type and then insert records him.

    Any help would be greatly appreciated.

    Published by: user12240205 on October 6, 2011 02:08
    mhouri > drop type obj_emp_phone_recs_table;
    
    Type dropped.
    
    mhouri > drop type obj_emp_phone_rec ;
    
    Type dropped.
    
    mhouri > CREATE TYPE obj_emp_phone_rec AS OBJECT
      2    (
      3       emp_number   NUMBER,
      4       emp_phone    VARCHAR2(100)
      5    )
      6  /
    
    Type created.
    
    mhouri > CREATE TYPE obj_emp_phone_recs_table AS TABLE OF obj_emp_phone_rec
      2  /
    
    Type created.
    
    mhouri > create or replace procedure p1(pin_tab IN obj_emp_phone_recs_table)
      2  is
      3   begin
      4     for j in 1..pin_tab.count
      5     loop
      6      dbms_output.put_line('record number '||j ||'-- emp number --'||pin_tab(j).emp_number);
      7     end loop;
      8
      9  end p1;
     10  /
    
    Procedure created.
    
    mhouri > create or replace procedure p2
      2  is
      3  lin_tab  obj_emp_phone_recs_table := obj_emp_phone_recs_table();
      4  begin
      5  FOR i IN 1 .. 5
      6     LOOP
      7        lin_tab.extend;
      8        lin_tab(i) := obj_emp_phone_rec(i, 'i-i-i');
      9     END LOOP;
     10
     11    p1(lin_tab);
     12
     13  end p2;
     14  /
    
    Procedure created.
    
    mhouri > set serveroutput on
    mhouri > exec p2
    record number 1-- emp number -- 1
    record number 2-- emp number --2
    record number 3-- emp number --3
    record number 4-- emp number --4
    record number 5-- emp number --5                                                                                                                                                                                                                          
    
    PL/SQL procedure successfully completed.
    

    Best regards

    Mohamed Houri

  • Drop table for a user, where the table has special characters.

    I have to delete tables starting with BIN. How can I do? This is Oracle database 11g.

    SQL > select * from tab;

    TNOM TABTYPE CLUSTERID
    ------------------------------ ------- ----------
    BIN$ 7J51dMFbQ36/jjLPLdzXeg == $0 TABLE
    BIN$ CaCh7QhdRDqlyJo9JETBaA == $0 TABLE
    BIN$ J + 4ibk96QZ + PZCDGGNx8Tw == $0 TABLE
    BIN$ NvnXFcd4QBW4uYMqOu8H6A == $0 TABLE
    BIN$ RaCaPOaTSXyKDlZZG2ua7Q == $0 TABLE
    BIN$ aGKXrnwlQRe + e0IH6tEBPQ == $0 TABLE
    BIN$ fA5I + 2xsQy66mF7koOoYkA == $0 TABLE
    BIN$ lLxLZF3BQ0eum9Ia4rtqYA == $0 TABLE
    BIN$ nKZ5hquHRRWHa9daNsa5XQ == $0 TABLE
    BONUS BOARD
    DEPT TABLE

    TNOM TABTYPE CLUSTERID
    ------------------------------ ------- ----------
    EMP TABLE
    SALGRADE TABLE

    13 selected lines.

    I tried to drop one of them and it gave an error saying that table_name is a special character;

    SQL > drop table BIN$ nKZ5hquHRRWHa9daNsa5XQ == $0;
    drop table BIN$ nKZ5hquHRRWHa9daNsa5XQ == $0
    *
    ERROR on line 1:
    ORA-00933: SQL not correctly completed command.


    Please suggest. Thanks in advance.

    10 g recyclebin default is on, and whenever there is drop table statement it goes to recyclebin. To avoid this fall of the table must be with the keyword to purge as,.
    SQL > drop table t is serving;
    Otherwise, you can change db setting to turn off recyclebin and the object will not go to recyclebin after that. See http://www.orafaq.com/forum/t/72161/2/

    Kind regards
    Julien

  • 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

  • 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

  • drop-down list dataProvider and an object of value

    I am filling a dropdown menu with values that are stored in an object of value.   I'm pulling the values from the table of a database vai SQLite the SQLResult object and they come as an array of objects of value. This is exaclty what I want, so I refer to those within a property of my object model and shipping and the event carrying this table.   I place the array of objects of value in a collection of table as follows:

    var dropDownListValues:ArrayCollection = new ArrayCollection(event.foodCategoryList);
    

    Try to access it via a drop-down list lists dataProvider property as follows:

    foodCategory.FoodCategory_DropDown.dataProvider = dropDownListValues;
    

    My drop-down list then displays

    [object Object]
    [object Object]
    [object Object]
    [object Object]
    [object Object]
    [object Object]
    

    My dropDownListValues object has the following table:

    [0]
         Foodcatagory = "Grains"
         FoodCatagory_ID = 1
    
    [1]
         Foodcatagory = "Vegetables"
         FoodCatagory_ID = 2
    
    
    
    
    etc. all the way up to index 5
    
    
    

    How can I get the drop-down list to display only the Grains, vegetables... etc.?

    Thank you

    I had to search around for a few hours today on the same subject.

    Basically just set the labelField of the drop-down list the name of the field for its values

    foodCategory.FoodCategory_DropDown.labelField = "Foodcatagory";
    
  • Drop Table vi in database connectivity decreases not database file size?

    Hello

    I created a database access for use in my project to record data.

    So I was simulating a month of a data value to see how big the db file would get in a month - so don't run out of space on my cRIO-, and it got to 6 MB.  After I did, I used the vi Drop Table to remove all tables... However, the file size decreases at all?

    Now it worries me because I'm not sure what will happen in the field.  Why is the file still so great without data in it (apparently)?

    I'm doing something wrong?

    Any help will be appreciated.

    Concerning

    Mark

    Dropping or deletion of the table of a database MS Access does not automatically release the space used by this table.

    The only way I know to reduce the size of an Access MDB file should open with MS Access and run tools-> Database Utilities-> Compact and repair database...

    You need exclusive access to the MDB file when you do...

  • open cursor and drop table

    Hello

    How does this work?

    Session 1: Session 2:


    SQL > create table t (x number);

    Table created.

    SQL > insert into t values (1);

    1 line of creation.

    SQL > insert into t values (2);

    1 line of creation.

    SQL > commit;

    Validation complete.

    SQL > start

    2 for f in (select * from t) loop

    3 dbms_output.put_line(sysdate||) e '|| f.x);

    4 dbms_lock.sleep (60);

    5 end of loop;

    6 end;

    7.


    SQL > drop table t;

    Deleted table.

    SQL > select sysdate to double;

    13:58:45

    13:58:34 1

    13:59:34 2


    The table has been deleted, but the line is always returned once the table is deleted. With the help of OPEN and FETCH has the same


    declare
    cursor c is select * from t;
    r t % rowtype;
    Start
    Open c;
    extract the c in r;
    dbms_output.put_line(sysdate||) e '|| r.x);
    DBMS_LOCK. Sleep (60);
    extract the c in r;
    dbms_output.put_line(sysdate||) e '|| r.x);
    end;
    /

    Is this a bug? I could even reproduce it with 1 million rows. Shouldn't this ORA-01001 invalid cursor return?


    Start
    for f in (select * from t) loop
    If f.x in (1,10,100,1000,10000,100000,1000000) then

    dbms_output.put_line(sysdate||) e '|| f.x);

    DBMS_LOCK. Sleep (5);

    end if;
    end loop;
    end;
    /

    Thank you

    Laurent

    PS: It boils down to having no consistency to the DICTIONARY level... which is ugly

    Huh? The dictionary makes perfect sense.

    Any query cursor / who uses the data dictionary will get the correct results.

    If the cursor that you use should the data dictionary, it will get the correct results - he'll notice the table disappeared and will throw an exception.

    Your 'problem' manifests only for a SELECT query. Change the cursor in UPDATES and you can't delete the table.

    SQL > drop table t;

    drop table t

    *

    ERROR on line 1:

    ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired

    Even if you remove a line in this loop.

    https://docs.Oracle.com/CD/B28359_01/server.111/b28318/consist.htm#i8841

    As a request enters the implementation phase, change current system (SNA) number is determined. Figure 13-1, this system change number is 10023. As data blocks are read in the name of the query, only the blocks that are written with the observed SNA are used.

    When the cursor is opened that the SNA is determined, the data file header is read and Oracle knows where the first measure.

    The cursor can read this measure without the need of the data dictionary. So if you drop the table in another session your cursor can continue to read this measure.

    It is ONLY when the next measurement is necessary that Oracle uses the dictionary of data and notice that the table has been deleted.

    https://docs.Oracle.com/CD/B28359_01/server.111/b28318/logical.htm

    A scope is a number of blocks of contiguous data allocated for storing a specific type of information.

    The cursor can keep accessing the measure, and all these "contiguous data blocks" because he knows where the measurement begins and how many blocks there.

    So if 'million' lines fits into this extent (s) the query will keep trucking.

    It may take even more to see the missing table if a path to the index is used as the index blocks are pointers to the previous index block. These pointers can span extensions - you can read an entire table once it has been abandoned if the cursor is using the index to find all data or all the blocks table as long as the extensions/blocks being read have not been replaced or reallocated.

    It is therefore a problem for SOME ONLY.

  • Define a map or ORDER method for the object type

    Hi gurus

    I created an object and then its type and then I use this object and type based on line, see below:

    Create the object

    CREATE OR REPLACE

    TYPE test_object

    IS

    OBJECT

    (

    next_appearance_dt DATE, - next_appearance_dt

    youth_adult VARCHAR2 (5) - youth_adult

    ) ;


    /

    Create the object Type

    CREATE or REPLACE TYPE t_docket_object IS TABLE OF THE test_object;

    /

    Create function Pipeline

    FUNCTION to CREATE or REPLACE f_report (p_dt date, p_c_cd VARCHAR2)
    return t_test_object pipeline
    IS
    BEGIN
    FOR J IN)
    Select distinct test_object)
    next_appearance_dt,--862,
    'YOUTH '.
    ) AS test_object
    Jen.next_appearance base
    WHERE 1 = 1
    AND (base.next_appearance_dt = p_dt)
    AND (base.circuit_point_cd = p_c_cd)
    - and cse.information_id = 322
    -ORDER 15 - alias_name
    )

    loop
    PIPE ROW (J.test_object);
    END loop;
    END;

    /

    Run function

    SELECT * FROM TABLE (F_REPORT (TO_DATE('25-sep-2015','dd-mon-yyyy'),'1 '))

    Error

    ORA-22950: cannot ORDER objects without map or ORDER method

    ORA-06512: at "F_REPORT", line 5

    22950 00000 - "cannot ORDER objects without map or ORDER method.

    * Cause: an object type must have a defined for map or ORDER method

    all comparisons other than equality and inequality comparisons.

    * Action: Define a map or ORDER method for the object type

    I know the reason of this error and the reason is that I use the clause separate in my pipeline service, but do not know how to get rid of this error...

    Confuse you the type of table with the object type. He forge

    Select test_object (next_appearance_dt) test_object

    Not:

    Select t_test_object (next_appearance_dt) test_object

    Then:

    SQL > CREATE OR REPLACE
    FUNCTION f_report (DATE p_dt 2,
    3 P_C_CD VARCHAR2
    4                   )
    5 t_test_object of RETURN
    6 IN PIPELINE
    7 EAST
    BEGIN 8
    9 FOR (IN) v_rec
    10 WITH () DID
    11. SELECT TO_DATE('01-jan-2015','dd-mon-yyyy') NEXT_APPEARANCE_DT
    the double 12
    13                                  )
    14 select test_object (next_appearance_dt) test_object
    15                          from  t
    16                      ) LOOP
    PIPE 17 ROW (v_rec.test_object);
    18 END OF LOOP;
    END 19;
    20.

    The function is created.

    SY.

  • drop table through procedure

    How to remove the table by using the procedure, I get the error message:

    Code

    CREATE OR REPLACE PROCEDURE drop_table IS

    BEGIN

    drop table test;

    end;

    Hello

    Shuumail wrote:

    How to remove the table by using the procedure, I get the error message:

    Code

    CREATE OR REPLACE PROCEDURE drop_table IS

    BEGIN

    drop table test;

    end;

    DROP TABLE is not a PL/SQL command; It's only a SQL command.

    To run a command SQL, PL/SQL, you can use dynamic SQL, like this:

    CREATE OR REPLACE PROCEDURE drop_table IS

    BEGIN

    EXECUTE IMMEDIATE 'drop table test;

    END;

    Why do you do this?  Using PL/SQL to create and drop objects, it is often the best 3rd or 4th way to meet certain requirements.  If you can tell which is your requirement, so someone can help you find a good way to do it in Oracle.

  • Related objects move the position when impaired in the original software?

    In our business we must place the Illustrator works on empty packaging photographed to show our clients what she will look like before packing real impression with our designs.

    So I'm looking for in the related objects in Photoshop, so I will not distort the images of the work, every time, and it will look the same every time.

    But when an object in Photoshop is changed in Illustrator and I will return to the psb Photoshop created (by double clicking the object bound to the Photoshop file), the complete works move its position.

    I'm doing something wrong?

    I think that the option you mentioned is to Page, which is what you want, but you want to change the dropdown to the right the second choice:

  • Select dbms_metadata.get_dependent_ddl fails with ORA-31604 still exist for the object

    Hello

    In the DEPENDENCIES of DBA, I can see that I have (seen here) according to some a table objects:

    -SQL > select type, name

    -2 from dba_dependencies where REFERENCED_OWNER = upper ('stuff')

    --3 and REFERENCED_name = upper ('st_tab') and type = "VIEW";

    -NAME OF THE OWNER TYPE

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

    -VIEW STUFF STTAB_4MV_VW

    -VIEW STUFF STTAB_VW

    But trying to recover these definitions 2 times I get an error:

    -SQL > select dbms_metadata.get_dependent_ddl ('VIEW', 'ST_TAB', 'STUFF') def double;

    -ERROR:

    -ORA-31604: NAME parameter invalid "BASE_OBJECT_NAME" for the type of VIEW object in the function SET_FILTER

    -ORA-06512: at "SYS." DBMS_SYS_ERROR', line 116

    -ORA-06512: at "SYS." DBMS_METADATA_INT', line 4705

    -ORA-06512: at "SYS." DBMS_METADATA_INT', line 8582

    -ORA-06512: at "SYS." Dbms_metadata", line 2882

    For some objects, it works (triggers, index), but for others (views, procedures, packages), it still fails with ORA 31604.

    If I make a direct call on dbms_metadata.get_ddl ('DISPLAY', 'STTAB_4MV_VW', 'STUFF'), it works fine.

    Everyone has seen this behavior before? (tried this code on 10g and 11g)

    Thank you very much.

    Kind regards

    SEB

    For some objects, it works (triggers, index), but for others (views, procedures, packages), it still fails with ORA 31604.

    Exactly! That's what he should do. Dependent on DOF is for objects that are actually part of the table.

    If I make a direct call on dbms_metadata.get_ddl ('DISPLAY', 'STTAB_4MV_VW', 'STUFF'), it works fine.

    Exactly! That's how you get the DDL for views and other types of distinct objects. Provide you with the type of object as the first parameter.

    Everyone has seen this behavior before? (tried this code on 10g and 11g)

    Sure! This is a normal behavior.

    See chapter doc DBMS_METADATA packages and Types

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28419/d_metada.htm#i1019414

    Notes on use

    • These functions allow you to extract metadata for objects with a single call. They encapsulate calls to OPEN , SET_FILTER , and so on. The function you use depends on the characteristics of the type of object and if you want the DDL or XML.
      • GET_xxxis used to fetch named objects, especially schema objects (tables, views).

      • GET_DEPENDENT_xxxis used to extract dependent objects (audits, grants of the object).
      • GET_GRANTED_xxxis used to retrieve issued objects (System of subsidies, scholarships of role).
    • For certain types of objects, you can use more than one function. For example, you can use GET_xxx to fetch a name index, or GET_DEPENDENT_xxx to fetch the same index by specifying the table on which it is defined.

    See also table 74-11 in this doc for a table showing the types of objects.

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28419/d_metada.htm#BGBIEDIA

  • Is there a liquid tag for related products?

    It doesn't seem to be liquid tag for related products. I am now using {tag_relatedproducts}.

    I would use {{relatedproducts}} because I would use Reiunnaitre = "true" to get rid of the default table.

    Am I missing something or is there no liquid tags for related products? It would be useful to have a.

    If she is not there, is there another way to use a list instead of a table for related products?

    Thank you.

    That's what said Liam...

    For related products as a liquid, use a collection on your {tag_relatedproducts}:

    {tag_relatedproducts, 4, true model = "" collection "relatedProducts" = "}

    {% If relatedProducts.items-%}

    {% for article on relatedProducts.items-%}


    {{ item | json }}

    {% endfor}
    {endif %}

    NB: Please take note of the specific command model = "" before = "yourVariableName" in this case. " Trust me, you exchange these autour, in some cases, product related collection will be empty. I can't emphasize this point enough.

    Hope this helps

    -Stephen

Maybe you are looking for