Issue of DB: error ORA-00333 & ORA-01589: must use RESETLOGS or NORESETLOGS

Hello

I have question DB Oracle 9.2.0.6.0 all start-up:

DB mount OK,

SQL > alter database open;
change the database open
*
ERROR on line 1:
ORA-00333: make the mistake of reading newspaper block 106498 County 8192


then I tried some recovery as below, but always error:
=================================
SQL > recover database until cancel;
ORA-00279: change 9228925192024 September at 2010-12-29 15:20:48 needed to screw 1
ORA-00289: suggestion: /ora/datafile/archive/1_250.dbf
ORA-00280: change 9228925192024 thread 1 is in sequence #250


Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}

ORA-00308: cannot open archived log ' / ora/datafile//archive/1_250.dbf'
ORA-27037: unable to get file status
Linux error: 2: no such file or directory
Additional information: 3


ORA-01547: WARNING: RECOVER succeeded but OPEN RESETLOGS would get below error
ORA-01194: file 1 needs a recovery more match
ORA-01110: data file 1: ' / ora/datafile/system01.dbf'

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

SQL > alter database open resetlogs;
ALTER database open resetlogs
*
ERROR on line 1:
ORA-01194: file 1 needs a recovery more match
ORA-01110: data file 1: ' / ora/datafile/system01.dbf'

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

SQL > alter database open;
change the database open
*
ERROR on line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option of database open
====================================================

Please guide to do this,

Thank you and best regards,
Vishnu

If the Redo Log file CURRENT (status in V$ LOG or reading the alert.log indicating that the switch in this journal of recovery has been done) is corrupt, the only recourse is to RESTORE the database from a previous backup and then BACK up to the previous to redo log / ArchivedLog.

See the documentation on the various scenarios:

http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14191/recoscen.htm#CACFFJFB

Hemant K Collette

Tags: Database

Similar Questions

  • ORA-12083: must use DROP MATERIALIZED VIEW to drop

    Hi all

    Oracle 10 g 2
    Solaris 10

    face below question... can't go below the user because of the MV... Please let me know how to delete user and MV...
    SQL > drop user cascade DW_USR;
    *
    ERROR on line 1:
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-12083: must use DROP MATERIALIZED VIEW to drop
    'DW_USR '. "" Dept_account_MV_M ".

    I tried as you said... .but no luck.
    .. is this a bug?

    I hope that's not a bug...

    I hope.. materialized view appears to be abandoned by the drop command but recreation fails because of some disctionary sys tables. the origin of the problem... it's suspicious only...

    check once... otherwise connect you SR with metalink...

  • ORA-24005: must use DBMS_AQADM. DROP_QUEUE_TABLE to drop queue tables

    When I drop the simple control panel drop I get this error.


    ORA-24005: must use DBMS_AQADM. DROP_QUEUE_TABLE to drop queue tables

    solution

    This error come when you deposit QUEUE_TABLE with normal drop table command.

    To remove the queue table, you should use DBMS_AQADM. DROP_QUEUE_TABLE procedure.

    BEGIN
    DBMS_AQADM. DROP_QUEUE_TABLE ("the queue table name", TRUE);
    END;
    /

  • Error ORA-01455 timsten using customer oracle11g conncting

    Hello


    We're uisng Oracle times ten version 11.2.1.8.0 IMDB

    My applications connecting as follows

    ProC/OIC apps-> customer (11.2.0.1.0) oracle-Timesten customer-(11.2.1.8.0)-> Timesten Server >

    sched_start is the column of type DATE in Timesten database and Oracle client


    When we ran, select the date type following error

    The oracle client

    sqlplus schemauserr/password@database;

    SQL * more: Production version 11.2.0.1.0 Thu Jun 30 07:20:19 2011

    Copyright (c) 1982, 2009, Oracle. All rights reserved.


    SQL > select sched_start in the PROCESS_INFO;
    ERROR:
    ORA-01455: converting column overflows the integer data type

    could help me on this issue


    Thank you
    -AK

    OIC in TimesTen is supported by a modified version of the Oracle Instant Client. It is the version that is installed with TimesTen in the /ttoracle_home directory. In the future, support for the OIC TimesTen will be merged into the main Oracle client code base, but that does not is it still. Yes, at the moment to use OCI (and so Pro * C, since the Pro * C uses OCI) with TimesTen, you are limited to only using the special moment Client supplied with TimesTen. This special moment customer is able to communicate with the two TimesTen and Oracle DB; It's a customer snapshot Oracle DB 11.1.0.7.0 standard with a few additions so that he could work with TimesTen.

    The way that support of the OIC is working in TimesTen is that you need to configure a special TNS (in tnsnames.ora) service for the DSN data store that you want to connect to (i.e. you must all the ODBC configuration normal configuration in sys.odbc.ini). In your BEAK (or pro * C) code you can connect to that service name. There is a special code in the BEAK / SQL * Net stack such that when he sees it connects to TimesTen instead of oracle takes a path of different code that loads the ODBC TimesTen driver and use it to talk to TimesTen. This is of cousre all transparent to the application. The application moves done what OIC calls as usual.

    All of this is detailed in the developer's Guide C TimesTen which is part of the defined TimesTen documentation as well as the various restrictions and limitations that apply to the use of Pro * C and OIC with TimesTen. One of the documented restriction is that althouth the customer Instant TT includes a binary sqlplus, that can be used with oracle databases. It is not working properly and is therefore not supported with, TimesTen.

    I hope that clarifies. For more information please see the Guide to the Developer TimesTen C.

    Chris

  • Error: ORA-02429 after using expdp/impdp

    Hi all
    I have a problem: when I save my 11g database and restore the database to another name I can't drop specific index.
    I get this error: ORA-02429: cannot delete the index used for the application of unique primary key.

    Note: I can easily delete this index before I run backup/restore procedures.
    Here are the steps.

    (1) creation of database D1
    (2) Save:
    expdp * schemas = D1 dumpfile = D1.dmp logfile = D1.log *.
    (3) create a new db user
    CREATE A USER IDENTIFIED BY D2 D2...
    (4) restoration of D1 to D2:
    Impdp D1/D1* remap_schema = D1: D2 dumpfile = D1.dmp *.
    (5) at this point, I'm getting another identical database D2. but for some reason, I can't drop some clues as described above.

    Any ideas what Miss me in the process. No impdp/expdp modifing my databes somehow?

    Thank you very much.

    Ok
    You can do the following

    1. disable all constraints.
    2 create a script to drop and re-create the index
    3 delete the index
    4 turn off the constraints of
    5 impdp CONTENT = DATA_ONLY
    6. run the script to create indexes
    7. activate the constraints
    8 activate triggers

    See this post
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14215/dp_import.htm#sthref273

  • SQL error: ORA-00947 while using INSERT INTO

    Hello

    I work with an INSERT INTO statement that returns ORA-00947.

    INSERT INTO prod (pId, a, b, c and d, e, f, g, h, i)
    VALUES (SEQ_PROD. NEXTVAL, 1,.
    (Select to_char (v.pdate, 'YYYY')
    to_char(v.pdate,'MM')
    d.prod
    , ROUND (sum (v.f) / 10)
    COUNT (*)
    Of...
    Group of to_char(v.pdate,'YYYY'), to_char(v.pdate,'MM'), d.prod
    )
    (0,0,0);

    10 fields are mapped in 10 fields. The data types match. The sub-select statement works very well.

    Any ideas?

    Sedso
    INSERT INTO prod (pId,a,b,c,d,e,f ,g,h,i)
    select  SEQ_PROD.NEXTVAL,1 a,b,c,d,e,f ,g,h,i FROM
    (select
       to_char(v.pdate,'YYYY') b, to_char(v.pdate,'MM') b, d.prod d, ROUND(sum(v.f)/10) e, COUNT(*) f,0 g,0 h,0 i
     from ...
    group by to_char(v.pdate,'YYYY'), to_char(v.pdate,'MM'), d.prod)
    

    Try this please

  • ORA-12032: cannot use column rowid

    Hello
    8.1.7 I have the following error:
    ORA-12032: cannot use the rowid column of materialized view log on 'chain '. "' string '.
    The solution is:
    Action: A full refresh is necessary before the next quick update. Add columns ROWID in the materialized view log, if necessary.


    How can I do a complete refresh before the next fast refresh or ROWID columns add? How do I know whether the ROWID columns add?
    Thank you.

    PS:
    my script is:
    ................
    ..............
    START WITH TO_DATE (July 6, 2010 17:57:48 "," dd-mon-yyyy hh24:mi:ss')
    NEXT SYSDATE + 1/24

    user522961 wrote:
    Hello
    8.1.7 I have the following error:
    ORA-12032: cannot use the rowid column of materialized view log on 'chain '. "' string '.
    The solution is:
    Action: A full refresh is necessary before the next quick update. Add columns ROWID in the materialized view log, if necessary.

    How can I do a complete refresh before the next fast refresh or ROWID columns add? How do I know whether the ROWID columns add?
    Thank you.

    run up

    EXECUTE DBMS_MVIEW.REFRESH('MV_NAME','C');
    
  • ORA-00998: must appoint this expression with a column alias

    Hi all

    Creates a table as below:

    create the table analytics_Sq.tmp_incalls_mar1 as
    SELECT TRUNC (transdate) AS hour, calltype c... result of the query.


    When will execute get error: ORA-00998: must appoint this expression with a column alias

    What should I do

    Hello

    AJAX name for these columns

    'PREP' ALIAS1, TRUNC (upddate) ALIAS2,SUM(CALLDURATION)   ALIAS3
    

    Kind regards
    Prazy

  • ORA-22992: cannot use LOB Locators selected from the remote tables...

    Oracle 10.2.1.0.4
    Solaris 10

    We try to access a table in another database via a db_link.

    The table we are trying to access has a LOB.

    We get the following error: ora-22992: cannot use LOB Locators selected from the remote tables.

    Is there a way to get around this? We need the data in the BLOB field.

    Thank you.

    See on metalink:

    ORA-22992 has a workaround solution in 10 gr 2
    DOC - ID: 436707.1

    Werner

  • ORA-29279: SMTP permanent error: 530 5.7.0 must issue a STARTTLS command fi

    Hello friend

    I changed my smtp server to send email, but now I get a different as error below

    ORA-29279: SMTP permanent error: 530 5.7.0 must issue a STARTTLS command first. 2sm141783tif.39

    I don't know what is the STARTTLS command.

    Pls help me.

    Thank you
    Uttam SIngh

    Uttam,

    Obviously the STARTTLS is a SMTP command.
    This is a forum on ORACLE.
    Of course, you can google STARTTLS!
    Could you PLEASE, PLEASE, PLEASE be a little more industrious and stop cluttering up this forum with irrelevant questions?

    THANKING YOU IN ADVANCE
    -----
    Sybrand Bakker
    Senior Oracle DBA

  • RMAN-04017: description of the startup error: ORA-32004: obsolete parameters or obsolete er (s) specified for the instance of RDBMS

    Dear all,

    While making the cloning of RMAN using the command duplicate in 11.2.0.3 database with ebs.

    We receive the error below

    connected to the auxiliary database (not started)

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of Db in dual at 03/07/2015 15:12:07

    RMAN-06403: could not get a fully authorized session

    RMAN-04006: auxiliary database error: ORA-24327: need explicit attach befor

    e a user authentication

    RMAN-03015: an error has occurred in the script stored memory Script

    RMAN-04014: failed to start: ORA-03113: end of file on communication channel

    RMAN-04017: description of the startup error: ORA-32004: outdated or obsolete parameters

    ER (s) specified for the instance of RDBMS

    Kind regards

    Villi Kumar

    Dear all,

    We have corrected the problems.

    Solution:

    To the bottom of the database

    Comment this parameter and re try

    =====================================

    oratest@ctsst $ grep-i local initerptest.ora

    #local_listener = erptest_LOCAL

    oratest@ctsst $

    Test the issue again.

    Concerning

    Villi Kumar

  • Download "error: ORA-01031: insufficient privileges" when try to add relief of database

    Hi all

    I get insufficient privileges error when I added a standby database to dg configuration. I read some blog and he said that dgmgrl does not support os authentication, which means that I need to connect with sys and password. But I found that if I keep standby and primary SIDs are the same, the error will not occur even if I don't provide a password. Anyone know the reason? And no workaround?

    The process as follows:

    main SID: orcl ensures sid: prxx

    connect to "dgmgrl / '.

    Run ' add the database ' prxx_stby "as an identifier of connection is"prxx_stby"

    Download:

    Error: ORA-01031: insufficient privileges

    Failed.

    But if sid main: orcl ensures sid: orcl

    connect to "dgmgrl / '.

    Run ' add the database ' orcl_stby "as an identifier of connection is"orcl_stby"

    Download:

    Database "orcl_stby" added

    Liz

    I think still you can connect as "dgmgrl /", but its recommended to use "dgmgrl sys / * '.

    As rchem has said, there can be question of password. It doesn't matter whether the SID is the same or not primary and standby so different locations. So the best practice is to connect to the database from the primary server before using Oracle net service and test whether you connect or not.

    Ex: Prim_host > sqlplus sys/***@stby as sysdba

    There are a lot of possible issues

    -Missing or invalid password file

    -Service name is not registered with earphone

    -service incorrect, mentioned in the tns names

    and so many things, overlaps with these things.

  • Error (21,100): PL/SQL: ORA-00997: illegal use of the LONG data type

    CREATE or REPLACE (name in varchar2) procedure Compress_tab_partition
    is
    last_mnth_var varchar2 (8);
    curr_mnth_var varchar2 (8);
    number of last_mnth;
    number of curr_mnth;
    last_partition varchar2 (8);
    high_val varchar2 (4000);
    Start

    Select to_char (add_months (trunc (sysdate, 'MM'),-1), 'YYYYMM') | ' 00' in the double last_mnth_var;
    Select to_char (sysdate, 'YYYY') | TO_CHAR (sysdate, 'mm') | ' 00' in the double curr_mnth_var;
    Select to_number (last_mnth_var) in the double last_mnth;
    Select to_number (curr_mnth_var) in the double curr_mnth;

    Dbms_output.put_line ('Compression of GOLDMGR Table scores.' | table-name |) "to go". ») ;
    Dbms_output.put_line(' ');

    / * Step 1 - identify the name of the partition of the specified table must be compressed * /.
    Select high_value from high_val from user_tab_partitions where table_name = table-name;
    Select nom_partition into last_partition from user_tab_partitions where table_name = table-name and high_value = rtrim (high_val);

    / * Step 2 - Alter partition table to compress * /.

    run immediately "ALTER TABLE GOLDMGR." | table_name | ' CHANGE THE PARTITION '. last_partition | "COMPRESS by low query";

    / * Step 3 - Index rebuild step * /.

    I'm in (select index_name in user_indexes where table_name = table-name)
    loop
    run immediately "ALTER INDEX GOLDMGR." | i.index_name |' REBUILD ";
    end loop;

    Dbms_output.put_line (' COMPLETED: compress the Table partitions change.) ") ;

    end;
    /

    I'm getting an error like: Error (21,100): PL/SQL: ORA-00997: illegal use of the LONG data type

    Please resolve.

    HIGH_VALUE datatype is LONG. You may not use for a long TIME in WHERE clause expressions. You need to loop through the partitions by selecting HIGH_VALUE and then comparing. Secondly, there is no need to select double to calculate expressions. For example:

    Select to_char (add_months (trunc (sysdate, 'MM'),-1), 'YYYYMM') | ' 00' in the double last_mnth_var;

    should be replaced by

    last_mnth_var: = to_char (add_months (trunc (sysdate, 'MM'),-1), 'YYYYMM') | ' 00'.

    and there is no need to add_months here:

    last_mnth_var: = to_char (trunc (sysdate, 'MM') - 1, "YYYYMM"). ' 00'.

    But the main question is simply ALTER TABLE MODIFY PARTITION COMPRESS allows compression but does not compress. You must issue ALTER TABLE MOVE PARTITION COMPRESS:

    SQL > create table tbl (n) partition by range (n)
    2 (partition p1 values less than (maxvalue))
    3. Select lpad('X',4000,'X') from dual connect by level<=>
    4.

    Table created.

    SQL > select bytes
    2 from WHERE user_segments
    3 where nom_segment = 'TBL '.
    4 and nom_partition = 'P1 '.
    5.

    BYTES
    ----------
    830472192

    SQL > alter table tbl
    2. change the partition p1 compress
    3.

    Modified table.

    SQL > select bytes
    2 from WHERE user_segments
    3 where nom_segment = 'TBL '.
    4 and nom_partition = 'P1 '.
    5.

    BYTES
    ----------
    830472192

    SQL > alter table tbl
    2. move the partition p1 compress
    3.

    Modified table.

    SQL > select bytes
    2 from WHERE user_segments
    3 where nom_segment = 'TBL '.
    4 and nom_partition = 'P1 '.
    5.

    BYTES
    ----------
    8388608

    SQL >

    SY.

  • RMAN Duplicate Database Error error ORA-00201

    Hello

    I tried to create the restore scenario backup in vmware. I have 2 similar server in Oracle Linux 6.2 (64-bit) where 11.2.0.4 has been installed. In my source server I orcl database and in the destination, there is no database. I took RMAN backup of database in the Source. Then I tried to Clone of Destination on Backup-based database without connection to the target and the catalog. Backup Destination and issued the command as follows:

    1 has created a pfile.ora with db_name = "orcl" only

    2. in the sqlplus command line: Startup nomount pfile = 'pfile.ora'

    Then

    started with RMAN, auxiliary

    Auxiliary RMAN.

    RMAN > duplicated to the backup location "orcl" database "/ home/Oracle/tmp";

    After some progress appears error ORA-00201 control file not compatible with 11.2.0.0.0 . Attempted to solve all day but failed. In trying so I even uninstalled and reinstalled several times oracle.

    Help, please

    Hasan Al Mamun

    Hello

    The problem is resolved. I added a line in the pfile.ora, i.e. * full = '11.2.0.4.0' then it's OK, Clone of database was complete.


  • PLSQL - listagg error ORA-01790

    Hello

    I have attached the code below.  The code works if I do not include the union, but the union generates error ORA-01790

    SELECT
      
      DOC.DOC_NO "Doc No",
      DOC.DOC_SHT_NO "Sht",
      DOC_REV_HIST.DRH_RSEQ_REV_NO "Rev",
      DOC.DOC_DESC "Title",
    doc.doc_prim_alt_ref "Alt Doc Name",
      DOC.DOC_DL_CD "WBS",
      DOC_TYPE.DCTP_CD "Type",
      DOC_SUB_TYPE.DST_SUB_TYPE_CD "Sub Type",
      PROJ_ORG.PORG_ORG_CD "Org",
      DISC.DISC_CD "Disc",
      DOC.DOC_SENDER_NAME "Senders Name",
      DOC.DOC_STAT_CD "Status",
      XMTL_HDR.THDR_ISS_DATE "Issued",
      xmtl_hdr.thdr_exp_co_date "Expected Completion Date",
      xmtl_hdr.thdr_act_co_date "Actual Completion Date",
      listagg(xmtl_hdr.thdr_tpur_xmtl_pfx||'-'||xmtl_hdr.thdr_xmtl_no,';') within group (order by doc.doc_no)
    
    
    
    FROM
      DOC,
      SUB_PROJ,
      DOC_REV_HIST,
      DOC_TYPE,
      DOC_SUB_TYPE,
      PROJ_ORG,
      DISC,
      XMTL_HDR,
      ORG_DISC,
      BO_XMTL_DOC_NONRA,
      xmtl_doc_li
    WHERE
    doc.doc_doc_seq_no = doc_rev_hist.drh_doc_doc_seq_no
    AND xmtl_doc_li.tli_thdr_seq_no = xmtl_hdr.thdr_seq_no
    AND xmtl_doc_li.tli_drh_rev_uid = doc_rev_hist.drh_rseq_rev_uid
    AND xmtl_doc_li.tli_drh_doc_seq_no = doc_rev_hist.drh_doc_doc_seq_no
    
      AND  ( XMTL_HDR.THDR_SEQ_NO(+)=BO_XMTL_DOC_NONRA.BXDN_THDR_SEQ_NO  )
      AND  ( BO_XMTL_DOC_NONRA.BXDN_DOC_DOC_SEQ_NO=DOC_REV_HIST.DRH_DOC_DOC_SEQ_NO(+) and
    
    
    DECODE(BO_XMTL_DOC_NONRA.BXDN_NEW_REV_UID,NULL,BO_XMTL_DOC_NONRA.BXDN_DRH_RSEQ_REV_UID,BO_XMTL_DOC_NONRA.BXDN_NEW_REV_UID)=DOC_REV_HIST.DRH_RSEQ_REV_UID(+)  )
      AND  ( DOC.DOC_ORGD_SEQ_NO=ORG_DISC.ORGD_SEQ_NO and DOC.DOC_SUBP_SUB_PROJ=ORG_DISC.ORGD_SUB_PROJ and DOC.DOC_SUBP_PROJ_NO=ORG_DISC.ORGD_PROJ_NO  )
      AND  ( DOC.DOC_SUBP_SUB_PROJ=SUB_PROJ.SUBP_SUB_PROJ and DOC.DOC_SUBP_PROJ_NO=SUB_PROJ.SUBP_PROJ_NO  )
      AND  ( DOC.DOC_DST_DCTP_CD=DOC_TYPE.DCTP_CD and DOC.DOC_DST_DCTP_DG_CD=DOC_TYPE.DCTP_DG_CD  )
      AND  ( ORG_DISC.ORGD_PORG_SEQ_NO=PROJ_ORG.PORG_SEQ_NO and ORG_DISC.ORGD_PROJ_NO=PROJ_ORG.PORG_PROJ_NO  )
      AND  ( DISC.DISC_CD=ORG_DISC.ORGD_DISC_CD  )
      AND  ( DOC.DOC_DST_DCTP_CD=DOC_SUB_TYPE.DST_DCTP_CD  and DOC.DOC_DST_DCTP_DG_CD=DOC_SUB_TYPE.DST_DCTP_DG_CD  and DOC.DOC_DST_SUB_TYPE_CD=DOC_SUB_TYPE.DST_sub_type_cd  and DOC.DOC_SUBP_PROJ_NO=DOC_SUB_TYPE.DST_proj_no  and DOC.DOC_SUBP_SUB_PROJ=DOC_SUB_TYPE.DST_SUB_proj   )
      AND  ( DOC.DOC_DST_DCTP_DG_CD='GEN'  )
      AND  ( DOC_REV_HIST.DRH_RSEQ_SEQ_NO=(select max(B.drh_rseq_seq_no) from doc_rev_hist B where b.drh_doc_doc_seq_no=doc_rev_hist.drh_doc_doc_seq_no and b.drh_bk_rev_status is NULL)  )
      AND  ( DOC.DOC_STAT_CD  =  'ACTV' 
      )
    group by doc.doc_no,doc.doc_sht_no,DOC_REV_HIST.DRH_RSEQ_REV_NO,DOC.DOC_DESC,doc.doc_prim_alt_ref,DOC.DOC_DL_CD,DOC_TYPE.DCTP_CD,
    DOC_SUB_TYPE.DST_SUB_TYPE_CD,PROJ_ORG.PORG_ORG_CD,DISC.DISC_CD,DOC.DOC_SENDER_NAME,DOC.DOC_STAT_CD,XMTL_HDR.THDR_ISS_DATE,xmtl_hdr.thdr_exp_co_date,
    xmtl_hdr.thdr_act_co_date
    
    
    UNION
    
    
    (SELECT
    
      DOC.DOC_NO,
      DOC.DOC_SHT_NO,
      DOC_REV_HIST.DRH_RSEQ_REV_NO,
      DOC.DOC_DESC,
    doc.doc_prim_alt_ref,
      DOC.DOC_DL_CD,
      DOC_TYPE.DCTP_CD,
      DOC_SUB_TYPE.DST_SUB_TYPE_CD,
      PROJ_ORG.PORG_ORG_CD,
      DISC.DISC_CD,
      DOC.DOC_SENDER_NAME,
      DOC.DOC_STAT_CD,
      null
      ,to_date(null)
      ,to_date(null)
      ,to_date(null)
    
    
    FROM
      DOC,
      SUB_PROJ,
      DOC_REV_HIST,
      DOC_TYPE,
      DOC_SUB_TYPE,
      PROJ_ORG,
      DISC,
      ORG_DISC
    WHERE
      ( DOC_REV_HIST.DRH_DOC_DOC_SEQ_NO=DOC.DOC_DOC_SEQ_NO  )
      AND  ( DOC.DOC_ORGD_SEQ_NO=ORG_DISC.ORGD_SEQ_NO and DOC.DOC_SUBP_SUB_PROJ=ORG_DISC.ORGD_SUB_PROJ and DOC.DOC_SUBP_PROJ_NO=ORG_DISC.ORGD_PROJ_NO  )
      AND  ( DOC.DOC_SUBP_SUB_PROJ=SUB_PROJ.SUBP_SUB_PROJ and DOC.DOC_SUBP_PROJ_NO=SUB_PROJ.SUBP_PROJ_NO  )
      AND  ( DOC.DOC_DST_DCTP_CD=DOC_TYPE.DCTP_CD and DOC.DOC_DST_DCTP_DG_CD=DOC_TYPE.DCTP_DG_CD  )
      AND  ( ORG_DISC.ORGD_PORG_SEQ_NO=PROJ_ORG.PORG_SEQ_NO and ORG_DISC.ORGD_PROJ_NO=PROJ_ORG.PORG_PROJ_NO  )
      AND  ( DISC.DISC_CD=ORG_DISC.ORGD_DISC_CD  )
      AND  ( DOC.DOC_DST_DCTP_CD=DOC_SUB_TYPE.DST_DCTP_CD  and DOC.DOC_DST_DCTP_DG_CD=DOC_SUB_TYPE.DST_DCTP_DG_CD  and DOC.DOC_DST_SUB_TYPE_CD=DOC_SUB_TYPE.DST_sub_type_cd  and DOC.DOC_SUBP_PROJ_NO=DOC_SUB_TYPE.DST_proj_no  and DOC.DOC_SUBP_SUB_PROJ=DOC_SUB_TYPE.DST_SUB_proj   )
      AND  ( DOC.DOC_DST_DCTP_DG_CD='GEN'  )
      AND  ( DOC_REV_HIST.DRH_RSEQ_SEQ_NO=(select max(B.drh_rseq_seq_no) from doc_rev_hist B where b.drh_doc_doc_seq_no=doc_rev_hist.drh_doc_doc_seq_no and b.drh_bk_rev_status is NULL)  )
      AND  ( DOC.DOC_STAT_CD  =  'ACTV')
      and  ( DOC.DOC_DOC_SEQ_NO||DOC_REV_HIST.DRH_RSEQ_REV_UID NOT IN (SELECT TLI_DRH_DOC_SEQ_NO||TLI_DRH_REV_UID FROM XMTL_DOC_LI))
      )
    
    FIRST SCREENING EVIL Perhaps =

    SELECT

    DOC. DOC_NO "No Doc",

    DOC. DOC_SHT_NO "leaves."

    DOC_REV_HIST.

    DRH_RSEQ_REV_NO "Rev."

    DOC. DOC_DESC "Title."

    doc.doc_prim_alt_ref 'Doc Alt name',

    DOC. DOC_DL_CD "SRT",.

    DOC_TYPE. DCTP_CD 'Type ',.

    DOC_SUB_TYPE.

    DST_SUB_TYPE_CD "Sub Type.

    PROJ_ORG. PORG_ORG_CD "Org."

    DISC. DISC_CD "Disc."

    DOC. DOC_SENDER_NAME "name of shippers."

    DOC. DOC_STAT_CD 'Status. "

    XMTL_HDR. "Issued," THDR_ISS_DATE

    xmtl_hdr.thdr_exp_co_date "expected completion Date."

    xmtl_hdr.thdr_act_co_date 'Effective completion Date. "

    listagg (xmtl_hdr.thdr_tpur_xmtl_pfx |) » -'|| xmtl_hdr.thdr_xmtl_no, ';') the Group (order by doc.doc_no)

    Of

    SELECT

    DOC. DOC_NO,

    DOC. DOC_SHT_NO,

    DOC_REV_HIST.

    DRH_RSEQ_REV_NO,

    DOC. DOC_DESC,

    doc.doc_prim_alt_ref,

    DOC. DOC_DL_CD,

    DOC_TYPE. DCTP_CD,

    DOC_SUB_TYPE.

    DST_SUB_TYPE_CD,

    PROJ_ORG. PORG_ORG_CD,

    DISC. DISC_CD,

    DOC. DOC_SENDER_NAME,

    DOC. DOC_STAT_CD,

    null

    to_date (null)

    to_date (null)

    to_date (null)

    Of

    SELECT

    DOC. DOC_NO,

    DOC. DOC_SHT_NO,

    DOC_REV_HIST.

    DRH_RSEQ_REV_NO,

    DOC. DOC_DESC,

    doc.doc_prim_alt_ref,

    DOC. DOC_DL_CD,

    DOC_TYPE. DCTP_CD,

    DOC_SUB_TYPE.

    DST_SUB_TYPE_CD,

    PROJ_ORG. PORG_ORG_CD,

    DISC. DISC_CD,

    DOC. DOC_SENDER_NAME,

    DOC. DOC_STAT_CD,

    to_date (null)

    to_date (null)

    to_date (null)

    null

    Of

    Concerning

    Etbin

Maybe you are looking for