How to recompile invalid sequence !?

Hi to everyone.
For example I can do :
ALTER PACKAGE my_package COMPILE;
ALTER PACKAGE my_package COMPILE BODY;
ALTER PROCEDURE my_procedure COMPILE;
ALTER FUNCTION my_function COMPILE;
ALTER TRIGGER my_trigger COMPILE;
ALTER VIEW my_view COMPILE;but I can not do :
ALTER SEQUENCE my_sequence COMPILE;Is there a way to comile an invalid sequence with pl/sql !?

Even in toad you don't have the option to recompile sequences (at least not in the one I am working with (V9.6)). But you have the option to recreate the sequence ...
Compiling is probably only possible for objects wandering into all_source:
SQL>  select distinct type from all_source
TYPE       
PROCEDURE  
PACKAGE    
PACKAGE BODY
TYPE BODY  
TRIGGER    
FUNCTION   
JAVA SOURCE
TYPE 

Similar Messages

  • How to recompile the entire schema's INVALID objects in one go?

    Hi,
    How to recompile the entire schema's invalid database objects (such as package, function, procedure, trigger etc) in one go?
    Please advise.
    Thank you.

    I often use this SQL.
    select 'Alter ' || OBJECT_TYPE || ' ' || OBJECT_NAME || ' compile;' as DDL
      from user_objects
    where STATUS = 'INVALID';I sometimes use this SQL.
    declare
        WK_InvalidCount     pls_Integer :=0;
        WK_PrevInvalidCount pls_Integer :=0;
    begin
        loop
            for rec_work in (select a.object_type,a.object_name from user_objects a ,user_object_size b
                             where  a.status='INVALID' and a.object_name=b.name order by b.code_size
                            ) loop
                dbms_ddl.alter_compile(rec_work.object_type,user,rec_work.object_name);
                DBMS_Output.Put_Line(rec_work.object_name || 'is recompiles');
            end loop;
            select count(*) into WK_InvalidCount from user_objects where status='INVALID';
            if WK_InvalidCount=0 then
                DBMS_Output.Put_Line('InvalidObject none');
                exit;
            elsif WK_InvalidCount != WK_PrevInvalidCount then
                WK_PrevInvalidCount := WK_InvalidCount;
            else
                DBMS_Output.Put_Line('InvalidObjects remain' || to_char(WK_InvalidCount));
                exit;
            end if;
        end loop;
    end;
    /

  • How to recompile all invalid objects of APPS?

    Dear all:
    How to recompile all invalid objects of APPS? my environment is ORACLE 9.2.0.5 32bit.
    Regards
    Terry

    varun4dba wrote:
    hi Terry,
    did you tried adadmin?
    thanks.Do you mean:
    Compile/Reload Database Objects
    1. Compile APPS schema
    2. Compile menu information
    3. Recreate grants and synonyms for APPS schema
    4. Compile flexfield data in AOL tables
    5. Reload JAR files to database
    6. Return to Main Menu

  • Oracle Payables - APXIIMPT  - Invalid Sequence rejections

    Hello Guys:
    My Business users are complaining that they are getting lot of rejections while running APXIIMPT ( Payable Open Interface Report for Invoices) due to invalid sequence error. We logged a TAR with oracle and I am not getting any where after this. The support tech expects me to work with her as a functional consultant but I am not. I am pasting the response from the Support tech.
    Can any one give me more details on How to check this? I would really appreciate it.
    We are using Standard Invoice - STDINV
    The first statement says we need to check the document category code, but she never explains how to check this. I looked at the Oracle payables guide and it is completely text no diagrams.
    Regards,
    Bala
    UPDATE
    =======
    I gave you step by step on how to check the document catergory code that you are using for the invoice above.
    The rejection you are receiving is usually because you have not setup the document catergory code correctly
    Just replace the create with the name of the sequence you already have set up and
    check to see if it is setup as the above.
    For example:
    1. Application>Document>Define (query on sequence you are using for the invoice)
    A sequence can be Manual or Automatic.
    If it is Automatic an Oracle Sequence Object will be created starting
    at the designated beginning number and that sequence will be used to
    generate the document numbers. After a record in this form is
    saved, and type = Automatic, a Concurrent Process is submitted to create
    the Oracle Sequence.
    2. Examine Document Categories
    Application>Document> query on Categories assigned to sequence above
    There are numerous document categories already defined for Oracle Payables.
    The default category used in creating Voucher numbers for Payables Invoices
    in the Invoice Workbench is STD INV.
    If the Payables "Option Allow Document Category Override" in the
    Invoice region is checked, the Document Category can be changed to any category
    that has a Table Name of AP_INVOICES_ALL.
    3. Assign Document Sequence to a Category.
    Application>Document>query on Assign
    In the Documents Region, indicate the application, the document category,
    the set of books, and the method of entering the sequence number.
    The method is Automatic, Manual, or Null.
    THIS IS THE MOST COMMON SOURCE OF ERROR.
    The method is used to tell the system how the record is being created:
    a. Manual means that the record is being created by a form such
    as the Invoice Workbench.
    b. Automatic means the record is being created by a Concurrent
    Process such as Invoice Import.
    Setting the assignment as Automatic, will result in an error when
    trying to enter an invoice using the Invoice Workbench.

    For whatever it is worth....
    This is resolved by ledger set up--> Accounting Setups and adding the balancing segments for which the accounts relate to.

  • How to compile invalid objects parallel

    how to compile invalid objects parallelly in EBS 11i / 11g R2 DB in Linux

    SQL> alter package apps.AD_PA_SUBMIT_REQUEST compile body;
    Warning: Package Body altered with compilation errors.
    SQL> show error
    Errors for PACKAGE BODY APPS.AD_PA_SUBMIT_REQUEST:
    LINE/COL ERROR
    674/4 PL/SQL: Statement ignored
    674/16 PLS-00302: component 'SET_AGGREGATE_LIST' must be declared
    SQL> alter package AD_PA_SUBMIT_REQUEST compile;
    alter package AD_PA_SUBMIT_REQUEST compile
    ERROR at line 1:
    ORA-04043: object AD_PA_SUBMIT_REQUEST does not existPlease run adpasrb.pls and adpasrs.pls under $AD_TOP/patch/115/sql directory to recreate this package and see if you get the same error or not.
    SQL> alter package apps.AD_PA_INSERT_PACKAGE compile body;
    Warning: Package Body altered with compilation errors.
    SQL> show error
    Errors for PACKAGE BODY APPS.AD_PA_INSERT_PACKAGE:
    LINE/COL ERROR
    149/3 PL/SQL: SQL Statement ignored
    186/24 PL/SQL: ORA-02289: sequence does not exist
    SQL> show error
    Errors for PACKAGE BODY APPS.AD_PA_INSERT_PACKAGE:
    LINE/COL ERROR
    149/3 PL/SQL: SQL Statement ignored
    186/24 PL/SQL: ORA-02289: sequence does not existPlease run adpaipb.pls and adpaips.pls under $AD_TOP/patch/115/sql directory to recreate this package and see if you get the same error or not.
    SQL> alter package apps.CS_WF_ACTIVITIES_PKG compile body;
    Warning: Package Body altered with compilation errors.
    SQL> show error
    Errors for PACKAGE BODY APPS.CS_WF_ACTIVITIES_PKG:
    LINE/COL ERROR
    611/9 PL/SQL: SQL Statement ignored
    624/35 PL/SQL: ORA-00918: column ambiguously definedPlease see these docs.
    CS_WF_ACTIVITIES_PKG Invalid Package With "ORA-00918: column ambiguously defined" [ID 464633.1]
    Invalid Package CS_WF_ACTIVITIES_PKG [ID 375355.1]
    Thanks,
    Hussein

  • How to recompile SYS.DBMS_REPCAT_FLA

    Hi all,
    I found of this only invalid object in database, I dont know how to recompile this 'SYS.DBMS_REPCAT_FLA', can anyone please help
    object: SYS.DBMS_REPCAT_FLA
    10:23:25 SQL> sho errors
    Errors for PACKAGE BODY SYS.DBMS_REPCAT_FLA:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    1/14 PLS-00201: identifier 'DBMS_REPCAT_FLA' must be declared
    1/14 PLS-00304: cannot compile body of 'DBMS_REPCAT_FLA' without its
    specification
    10:23:31 SQL> SYS.DBMS_REPCAT_FLA

    Hi Anantha
    Thanks for the reply, I guess since we are not using the replication, we can drop this package, I was so worried since this is the only object that is not compiling in our database,
    thanks everybody for the co operation
    :)

  • How to get selected sequence in a file

    Hello,
        I can get the selected sequence file by accessing the RunState.InitialiSelection.SelectedFile property. However, if i want to get the name of the sequence that was selected in this sequence file, then how can i get that?
    Thanks,
    Regards,
    Aparna

    Hello,
       Sorry, i saw this thread a little late. My question is still the same. The solution that you gave actually gives me the display name of the sequence file. But i wanted the name of the sequence that was opened withtin the sequence file. Here is what i have.
    A sequence file named TestExport.seq has two sequences  - MainSequence and SecondSequence. I open up the sequence file and open the SecondSequence in that file. But i dont know how to get this information about the sequence that is selected within the file. I have an external dll, in which i am passing the sequence file name as RunState.InitialSelection.SelectedFile. But i do not know how to get the sequence name that was actually opened in that file. Because i actually want to get the sequence context of the sequence within the file. The code that i have looks like this:
    public ExportDlg(SequenceFile seqFile)
                InitializeComponent();
                SequenceContext seqContext = seqFile.NewEditContext();
                engine = seqContext.Engine;
                object outParam = System.Type.Missing;
                this.seqContext = engine.NewEditContext(seqFile.GetSequence(0).AsPropertyObject(),System.Type.Missing,out outParam);
    seqFile.GetSequence(0) - gives me the context of the first sequence which is MainSequence. But if i have opened the SecondSequence, i need the context for that. And to get this, i need the sequence name "SecondSequence" somehow.
    RunState.InitialState.SelectedSequences is an array of containers. Although i can see the sequence name during executing, i do not know how to get the name of the container my external dll .
    Please help,
    Thanks,
    Regards,
    Aparna

  • I'd like to know how to play a sequence of podcasts. Does anybody know?

    I'd like to know how to play a sequence of podcasts?
    Finishing to hear a podcast, it comes back to main menu! Why can it play all the contents in sequence, like music?

    Hold down the mute button on the steering wheel until you hear,"Ready" and then say "Voice". That will bring up Siri.

  • How to create a SEQUENCE in MSSQL2005

    Hi
    I am also having a similar problem which opened the thread
    Actually i am using a Repositery which is created in MSSQL2005.
    Now i want to create a SEQUENCE similar to Oracle and populate My surrogate Key Column.
    Can u tell me how to create a SEQUENCE in MSSQL2005?
    Does anyone is having the sql syntax?
    Thanks
    Gourisankar

    Hi Gourisankar,
    There is no sequence concept in MS SQL Server rather it has IDENTITY.
    In MS SQL Server if you declare a column type as a Identity it will be auto increment when a new record inserts.
    So in you underlying table create a column as ID and type as "Identity" and in your mapping leave that field un mapped.
    Have a look and google more on "identity in ms sql server" ;)
    http://www.sqlteam.com/article/autonumbering-identity-columns
    http://www.craigsmullins.com/ssu_0599.htm
    Thanks,
    G

  • Error in mail sender channel : invalid sequence number

    Hello all,
    I'm having the following issue.
    I'm using the mail adapter to get messages from a mail server, which are attached to the mail.
    This interface is already productive, and is working fine most of the time.
    Only frequently I get the following error, which can be found in the java log.
    exception caught during processing mail message[630];
    java.io.IOException: the specified message not found: -ERR invalid sequence
    number
    This error seems only to appear when there are a lot of mails to be fetched.
    All the mail is read into PI and processed succesfully, only I also get a lot these errors.
    Does anyone know what causes this error?
    I also don't know where this sequence number is coming from, and what's the meaning of this.
    Is it possible it's trying to read the same mail more then once?
    The settings in the mail sender channel are:
    - transport protocol : POP3
    - message protocol : XIPAYLOAD
    - Use mail package : enabled
    - content encoding : none
    - Keep attachments : enabled
    - QOS : exactly once
    - Set adapter specific message attibutes : enabled
    The PI version is 7.01
    Thanks a lot in advance for the replies on this question.
    Kind regards,
    Marco van Iersel

    Hi
    Well we have used it with POP3 and it is working in the way as it should be.
    This feature is recommended  by sap when the number of emails to be read is large.
    You can set this additional parameter to restrict the number of mails fetched by sender mail adapter in one polling interval.
    Sometimes the mailbox configured for the sender mail adapter contains large number of unread mails, which exceeds the average expected number of mails in one polling interval. In such a case, processing of all the unread mails in the same polling interval by sender mail adapter degrades the system performance. To avoid this, set value of this parameter to the maximum number of mails to be fetched and processed in one polling interval. The remaining mails exceeding the limit would be processed in the next polling interval.
    That's why I have asked you to give it a try.

  • How to display a sequence in item?

    hi! well, i don´t know how to display a sequence in item. i created a sequence in sqlworkshop. now i want what the sequence will display in item(for example :P8_COD_SERVICES). I HOPE ANSWER. BYE
    (AH! I TRYNG IN ITEM.DEFAULT VALUES BUT NOTHING)

    Alvaro,
    Maybe the item source type could be SQL Query and the query would be: select seq.nextval from dual. Or you could have a before-header page computation do the same thing for the item.
    scott

  • How to setup the sequence order's of PO's vision instance

    I need to create PO's in a sequential order in vision instance. How should I do that?
    Thanbks
    regards,

    Hi,
    We have already mentioned how to create PO sequence in earlier post in this thread...
    You need to follow below steps:
    1) Login to Purchasing Super user
    2) Open "Purchasing Options" form.. (Setup --> Organizations --> Purchasing Options)
    3) In Document numbering section, do mention the details of PO Number, like PO Entry (Manual/Automatic), PO Number type (Numberic/Alphanumeric), Next number (e.g. 10000)
    For your case use Next Number : 100000 (6 digits)
    4) Save
    5) Return to PO creation page and start creating POs.
    Hope this will help.
    Kind Regards,
    S.P DASH

  • How to Create Test Sequence Document in HTML using command line

    How to Create Test Sequence Document  in HTML using command line
    I have lot of sequences and I want to create Test Sequence Documentation in HTML format using Command Line automatically, is there a way to automate this task using .bat file or using   C#  .Net

    If you aren't able to figure out how to call a C++ DLL in .net then there may be another option.  Unfortunately I don't know how to do this off the top of my head and I don't have an example.
    The other option would be to change docgen.seq a little bit to the dialog doesn't display and you just hardcode the options.  Then you can use a command line to call testexec.exe: http://zone.ni.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/startup_opt/
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to create a Sequence;

    Hi All,
    I have a master block and child block;
    I need to create sequence number in child block like 1 2 3 4
    Line #
    1....date1.....12......
    2....date2.....xxx....
    3....xxx........xxx....
    4..........
    When i create new customer and its detail it should start with new sequence
    and some one query the records and open it then this should continue the sequence.
    Thx.
    Message was edited by:
    J.Harsha

    Jan, I have created the multi records it is fine,
    This is about how to get the sequence numbers,
    Lets say some one open one record and it have 5 detail records.
    if he is in second detail record and try to insert a new record i want to show
    Line id 6
    I was trying with
    SELECT nvl(MAX(LINE_PERIOD)+1,0) INTO l_LINE_PERIOD FROM XX_RATE_LINE RL
    WHERE RL.CUSTOMER_ID=:MSF_V.CUSTOMER_ID;
    if l_line_period>4 then -- we gave default 4 records
    bk_id := Find_Block('MSF_LINE');
    --last_record;
    :line_period := Get_Block_Property( bk_id, MAX_RECORDS_FETCHED)+1;
    --CURRENT_RECORD);
    --MAX_RECORDS_FETCHED
    end if;
    CURRENT_RECORD is good if some one navigating properly always into the last record.
    Message was edited by:
    J.Harsha

  • How to Create a Sequence Number from BI Publisher Layout editor?

    How to Create a Sequence Number (1,2,3,4,......,etc) from BI Publisher Layout editor

    Thank you for your replay, but <?position()?> we can used it in template builder only not from BI layout editor
    I found a solution in this case we can used the following query.
    SELECT
    ROW_NUMBER() OVER(order by item_status) as Row,

Maybe you are looking for

  • Oracle 8i & JNDI Problem

    I am trying to connect to a remote instance of Oracle 8i. The DataSource object is bound, but when I do a lookup I get a null pointer exception. Here's the source code so far: public class ConnectionManager { private static ConnectionManager instance

  • Menu does not display unless I hit play??

    I built a simple DVD. STILL image menu with one button. The MENU is set as "first play" When I test with Simulate- everything is fine. The Menu shows up. The button starts the program. Once I burn and try to play back the disc- My dvd player on mac c

  • How do I get my contacts off of my old BB and onto my new iPhone?

    Alright I have a new iPhone finally. I have an old BB curve that has all my contacts. These contacts are not saved to the sim card. I was told you can do something with outlook or something else that will take all of my contacts names, numbers emails

  • Songs are cutting out before the end

    I have a number of songs that cut off before the end.  a couple are over 30 sec short.What is causing this?

  • Huge swf problem, exams tomorrow.

    i have embed a swf into my webpage, html5, in dreamweaver. i used the insert>media>swf function. The SWF is not showing in liveview, and it wont show when i try to test it locally. (white box) I have tried to change the settings for flash in system p