Must I declare and place my first private methods and attributes?

Hello

Just a general question about programming style, as I'm a bit unsure what is the best practice...

I wrote an Application made up of 11 classes as part of an assignment and I am it will soon... However, I started noticing that my classes are involved with public and private methods and began to wonder if there is no consensus, just if it is best to declare and place all private at the beginning of the trace class methods of those public or vice versa, and is at its best to declare and set instance variables and attributes at the beginning or end of the class , or maybe even, just before the method where they serve first?

Would be grateful and advice or suggestions so that i can keep my code tidy and neat as possible...

Many ways

Patrick

Published by: 839854 on February 25, 2011 07:23

839854 wrote:
.. If there is no consensus about whether it is better to declare and place all private at the beginning of the class methods will be followed by the public...

That's what I tend to do. It is also one of the options provided in Eclipse 'code' cleaning options.

and at its best to declare and set instance variables and attributes at the beginning

Again, this is what I do; but that's probably because I come from a background of language of proceedings.

or end of the class

I tend to find that a little confusing.

or perhaps even, just before the method where they serve first?

A lot of people who prefer, and I can understand the arguments for it.

Would be grateful and advice or suggestions so that i can keep my code tidy and neat as possible...

Certain order is mandated by the DG JLS, especially when it comes to static members, but the rest is largely "in the eye of the beholder." Indentation practices and documentation (learn how to use the Javadoc) can also help a lot.

But, in my opinion, the more important to make readable programs part is design them well.
As Einstein said (paraphrasing): "as simple as possible, but not simpler."
It is amazing how many programmers forget that old chestnut.

But it is good to know that you are worried about it. Here there were more like you around.

Winston

Tags: Java

Similar Questions

  • List: error record must be entered and deleted everything first

    Hi all
    I created a form in this form, I used the data block.
    in this data block, I chose option multiple records.
    It shows several text fields, its ok
    and I created a new block of data to a button
    This button, I wrote a code pl/sql trigger when click
    Here is code
    declare
         cursor test is 
              select location_id,street_address from locations where country_id ='US'; 
      begin
          for i in test loop
                :LOCATIONS.LOCATION_ID:=i.location_id;
             :LOCATIONS.STREET_ADDRESS:=i.street_address;
               next_record;
          end loop;
              end;
    This code works very well with the trigger a time new form instance

    but when-click of the mouse, it gives an erros
    Record must be seized and remove the first
    how to solve?

    Set your where condition for the datablock in the db--> Property Palette block-> Where Clause

    or set programmatically using Set_Block_Property (, DEFAULT_WHERE,) in your motion trigger.

  • Support for Microsofts and printer is not recognized and said that it must be declared

    Original title: Declare the printer in vb

    Hello

    Follow-up

    HOW to: Trigger and control Visual Basic print dialog boxes

    Support Microsofts and printer is not recognized and said that it must be declared. I tried their code for the example and it still says that this printer is not declared

    Thank you

    Dan

    Hi Daniel,.

    Thanks for posting your query in Microsoft Community.

    I appreciate the effort you have taken to solve this problem yourself.

    This problem is better suited in the MSDN forum. We have a dedicated team with advanced tools and permission to help with this issue. Then I suggest you to report the same query in MSDN forum.

    https://social.msdn.Microsoft.com/forums/vstudio/en-us/home?Forum=vbgeneral

    Thank you.

  • Component 'ACTION' must be declared

    Hi all

    Oracle version: 12 c.

    I am trying to create a trigger on a history table.

    Here is the description of the tables,

    Main table:

    create table CASES

    (

    case_id NUMBER (14) not null,

    case_number VARCHAR2 (50) not null,

    judgement_date DATE,

    account_ID NUMBER (14) not null,

    case_status_reason_id NUMBER (14) not null,

    case_status_id NUMBER (14) not null,

    evidence_pkg_file_name VARCHAR2 (200),

    evidence_pkg_generation_date DATE,

    hearing_date DATE not null,

    record_version NUMBER (9) default 0,

    created_by VARCHAR2 (50) by default of the USER.

    Date_Created DATE default SYSDATE,

    Modified_By VARCHAR2 (50) by default of the USER.

    Date_Modified DATE default SYSDATE,

    POSTED VARCHAR2 (200),

    vehicle_owner_id NUMBER (14).

    hearing_loc_id NUMBER (6).

    evidence_pkg_location_path VARCHAR2 (250)

    )

    History table:

    create the table CASES_H

    (

    case_id NUMBER (14) not null,

    case_number VARCHAR2 (50) not null,

    judgement_date DATE,

    account_ID NUMBER (14) not null,

    case_status_reason_id NUMBER (14) not null,

    case_status_id NUMBER (14) not null,

    evidence_pkg_file_name VARCHAR2 (200),

    evidence_pkg_generation_date DATE,

    hearing_date DATE not null,

    revision_number NUMBER (14) not null,

    record_version NUMBER (9) default 0,

    created_by VARCHAR2 (50) by default of the USER.

    Date_Created DATE default SYSDATE,

    Modified_By VARCHAR2 (50) by default of the USER.

    Date_Modified DATE default SYSDATE,

    POSTED VARCHAR2 (200),

    vehicle_owner_id NUMBER (14).

    hearing_loc_id NUMBER (6).

    evidence_pkg_location_path VARCHAR2 (250)

    )

    Trigger code:

    CREATE OR REPLACE TRIGGER CASE$ H

    AFTER INSERT, DELETE OR UPDATE ON TAG_OWNER. CASE

    REFERENCING OLD AS OLD AGAIN AS NEW

    FOR EACH LINE

    DECLARE

    L_OLD_REV CASES_H.REVISION_NUMBER%TYPE;

    L_CH CASES_H % ROWTYPE;

    L_NEW BOOLEAN;

    BEGIN

    IF DBMS_REPUTIL. FROM_REMOTE = TRUE THEN

    -TRIGGER'S ALREADY SHOT WITH A REMOTE DATABASE

    RETURN; -RELEASE OF THE TRIGGER

    END IF;

    BEGIN

    SELECT MAX (REVISION_NUMBER)

    IN L_OLD_REV

    OF CASES_H

    WHERE CASE_ID = COALESCE(:OLD.) CASE_ID,: NEW. CASE_ID);

    L_OLD_REV: = NVL (L_OLD_REV, 0);

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    L_OLD_REV: = 0;

    END;

    CASE

    WHEN INSERTING CAN

    L_CH. ACTION: = "INSERT."

    L_NEW: = TRUE;

    UPDATE THEN

    L_CH. ACTION: = "UPDATE";

    L_NEW: = TRUE;

    ON THE OTHER

    L_CH. ACTION: = "DELETE";

    L_NEW: = FALSE;

    END CASE;

    IF L_NEW THEN

    L_CH. CASE_ID: =: NEW. CASE_ID;

    L_CH. CASE_NUMBER: =: NEW. CASE_NUMBER;

    L_CH. JUDGEMENT_DATE: =: NEW. JUDGEMENT_DATE;

    L_CH. ACCOUNT_ID: =: NEW. ACCOUNT_ID;

    L_CH. CASE_STATUS_REASON_ID: =: NEW. CASE_STATUS_REASON_ID;

    L_CH. CASE_STATUS_ID: =: NEW. CASE_STATUS_ID;

    L_CH. EVIDENCE_PKG_FILE_NAME: =: NEW. EVIDENCE_PKG_FILE_NAME;

    L_CH. EVIDENCE_PKG_GENERATION_DATE: =: NEW. EVIDENCE_PKG_GENERATION_DATE;

    L_CH. HEARING_DATE: =: NEW. HEARING_DATE;

    L_CH. REVISION_NUMBER: = L_OLD_REV;

    L_CH. RECORD_VERSION: =: NEW. RECORD_VERSION;

    L_CH. CREATED_BY: = NVL(:NEW.) CREATED_BY, USER);

    L_CH. DATE_CREATED: = NVL(:NEW.) DATE_CREATED, SYSDATE);

    L_CH. MODIFIED_BY: = NVL(:NEW.) MODIFIED_BY, USER);

    L_CH. DATE_DE_MODIFICATION: = NVL(:NEW.) DATE_MODIFIED, SYSDATE);

    L_CH. POSTED: =: NEW. POSTED;

    L_CH. VEHICLE_OWNER_ID: =: NEW. VEHICLE_OWNER_ID;

    L_CH. HEARING_LOC_ID: =: NEW. HEARING_LOC_ID;

    L_CH. EVIDENCE_PKG_LOCATION_PATH: =: NEW. EVIDENCE_PKG_LOCATION_PATH;

    ON THE OTHER

    L_CH. CASE_ID: =: OLD. CASE_ID;

    L_CH. CASE_NUMBER: =: OLD. CASE_NUMBER;

    L_CH. JUDGEMENT_DATE: =: OLD. JUDGEMENT_DATE;

    L_CH. ACCOUNT_ID: =: OLD. ACCOUNT_ID;

    L_CH. CASE_STATUS_REASON_ID: =: OLD. CASE_STATUS_REASON_ID;

    L_CH. CASE_STATUS_ID: =: OLD. CASE_STATUS_ID;

    L_CH. EVIDENCE_PKG_FILE_NAME: =: OLD. EVIDENCE_PKG_FILE_NAME;

    L_CH. EVIDENCE_PKG_GENERATION_DATE: =: OLD. EVIDENCE_PKG_GENERATION_DATE;

    L_CH. HEARING_DATE: =: OLD. HEARING_DATE;

    L_CH. REVISION_NUMBER: = L_OLD_REV;

    L_CH. RECORD_VERSION: =: OLD. RECORD_VERSION;

    L_CH. CREATED_BY: = NVL(:OLD.) CREATED_BY, USER);

    L_CH. DATE_CREATED: = NVL(:OLD.) DATE_CREATED, SYSDATE);

    L_CH. MODIFIED_BY: = NVL(:OLD.) MODIFIED_BY, USER);

    L_CH. DATE_DE_MODIFICATION: = NVL(:OLD.) DATE_MODIFIED, SYSDATE);

    L_CH. POSTED: =: OLD. POSTED;

    L_CH. VEHICLE_OWNER_ID: =: OLD. VEHICLE_OWNER_ID;

    L_CH. HEARING_LOC_ID: =: OLD. HEARING_LOC_ID;

    L_CH. EVIDENCE_PKG_LOCATION_PATH: =: OLD. EVIDENCE_PKG_LOCATION_PATH;

    END IF;

    L_CH. REVISION_NUMBER: = L_OLD_REV + 1;

    -Insert in the history table

    INSERT INTO L_CH VALUES CASES_H;

    END CASE$ H;

    I get the error below

    Component 'ACTION' must be declared

    Component 'ACTION' must be declared

    Component 'ACTION' must be declared

    Try to find what exactly could be the problem but hard of luck so far.

    Ask for help.

    THX

    Shan!

    You define l_ch as cases_h % rowtype. The cases_h table doesn't have a column 'action', yet in three places, that you try to give a value to l_ch.action. l_ch.action is not defined, as the compiler points out.

    So either use a different flag (similar to what you are doing with l_new), or change your historical table and add a column of action.

  • PLS-00201: identifier 'NVL2' must be declared.

    I came across a scenario where I saw that NVL2 is a PL/SQL function, but when I tried to use this function directly with plsql variable it gives me error. Although it is find a job within SQL.

    Here is the example I'm writing his strange behavior I see.

    I'm under banner PL/SQL Release 11.2.0.4.0 - Production

    SQL> --See when we use NVL2 within SQL it works fine
    SQL> select nvl2('IamNotNull', 'IamForNotNull', 'IamForNull') for_not_null
      2            ,nvl2(null, 'IamForNotNull', 'IamForNull') for_null
      3  from dual;
    
    
    FOR_NOT_NULL  FOR_NULL
    ------------- ----------
    IamForNotNull IamForNull
    
    
    SQL> --Problem occurs when we assign the resultant directly into variable in anonymous block
    SQL> declare
      2      for_not_null varchar2(200);
      3  begin
      4      for_not_null :=NVL2('IamNotNull', 'IamForNotNull', 'IamForNull');
      5  end;
      6  /
        for_not_null :=NVL2('IamNotNull', 'IamForNotNull', 'IamForNull');
                       *
    ERROR at line 4:
    ORA-06550: line 4, column 20:
    PLS-00201: identifier 'NVL2' must be declared
    ORA-06550: line 4, column 5:
    PL/SQL: Statement ignored
    
    
    
    
    SQL>
    

    Spear says:

    But I had look at Oracle self-documenting and it was not clear that NVL2 is SQL fucntion.

    Weird, because I just searched documentation, and the first that says NVL2 in the context of the PL/SQL language was all NVL2 hits were either programming language SQL or OLAP expression reference: http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/fundamentals.htm#LNPLS00212

    which clearly states that the NVL2 is not available in PL/SQL.

  • PLS-00201: identifier 'i' must be declared when using BULK COLLECT with FORALL to insert data in 2 tables?

    iHi.

    Declare
       cursor c_1
       is
        select col1,col2,col3,col4
        from table1
    
    
       type t_type is table of c_1%rowtype index by binary_integer;
       v_data t_type;
    BEGIN
       OPEN c_1;
       LOOP
          FETCH c_1 BULK COLLECT INTO v_data LIMIT 200;
          EXIT WHEN v_data.COUNT = 0;
          FORALL i IN v_data.FIRST .. v_data.LAST
             INSERT INTO xxc_table
               (col1,
                col3,
                col4
               )
                SELECT v_data (i).col1,
                       v_data (i).col3,
                       v_data (i).col4
                  FROM DUAL
                 WHERE NOT EXISTS
                              (SELECT 1
                                 FROM xxc_table a
                                WHERE col1=col1
                                      .....
                              );
                         --commit;
             INSERT INTO xxc_table1
               (col1,
               col2,
              col3,
              col4
               )
                SELECT v_data (i).col1,
                       v_data (i).col2,
                       v_data (i).col3,
                       'Y'
                  FROM DUAL
                 WHERE NOT EXISTS
                              (SELECT 1
                                 FROM xxc_table1 a
                                WHERE col1=col1
          .....
         );
    
    
           --exit when c_1%notfound;
       END LOOP;
       CLOSE c_1;
       commit;
    END;
    
    
    
    
    
    
    
    

    I get 40/28-PLS-00201: identifier 'I' must be declared what the problem in the above code please help me and I have lakhs of data

    Thank you

    Post edited by: Rajesh123 I changed IDX

    Post edited by: Rajesh123 changed t_type c_1 in Fetch

    But by using a SET of INSERT to insert into two tables at once in the same query would do the job without any collection of bulk of PL and avoid to query two times too.

    for example, as a single INSERT...

    SQL > create table table1 as
    2. Select 1 as col1, col2 of 1, 1 as col3, 1 as col4 Union double all the
    3 select 2,2,2,2 of all the double union
    4 Select 3,3,3,3 Union double all the
    5 Select 4,4,4,4 of all the double union
    6 select 5,5,5,5 of all the double union
    7 select 6,6,6,6 of all the double union
    8 select 7,7,7,7 of all the double union
    9 select 8,8,8,8 of all the double union
    10. Select 9,9,9,9 to the Union double all the
    11. Select double 10,10,10,10
    12.

    Table created.

    SQL > create table xxc_table like
    2. Select 1 as col1, col3 2, 3 as col4 Union double all the
    3. Select the 3, 4, 5 Union double all the
    4. Select the 5, 6, 7 double
    5.

    Table created.

    SQL > create table xxc_table1 like
    2. Select 3 as col1, col2, col3, 5 4 "n" as col4 Union double all the
    3. Select the 6, 7, 8, double "n"
    4.

    Table created.

    SQL > insert all
    2 when the xt_insert is null then
    3 in xxc_table (col1, col3, col4)
    4 values (col1, col3, col4)
    5 when the xt1_insert is null then
    6 in xxc_table1 (col1, col2, col3, col4)
    7 values (col1, col2, col3, 'Y')
    8. Select t1.col1 t1.col2, t1.col3, t1.col4
    9, xt.col1 as xt_insert
    10, xt1.col1 as xt1_insert
    11 from table1 t1
    12 left join external xxc_table xt (t1.col1 = xt.col1)
    13 left xt1 xxc_table1 outer join (t1.col1 = xt1.col1)
    14.

    15 rows created.

    SQL > select * from xxc_table by 1.
    COL1 COL3 COL4
    ---------- ---------- ----------
    1          2          3
    2          2          2
    3          4          5
    4          4          4
    5          6          7
    6          6          6
    7          7          7
    8          8          8
    9          9          9
    10-10-10

    10 selected lines.

    SQL > select * from xxc_table1 by 1.

    COL1 COL2 COL3 C
    ---------- ---------- ---------- -
    1          1          1 Y
    2          2          2 Y
    3          4          5 N
    4          4          4 Y
    5          5          5 Y
    6          7          8 N
    7          7          7 Y
    8          8          8 Y
    9          9          9 Y
    10-10-10

    10 selected lines.

    SQL >

  • Cursor of return of (nested) function - PLS-00201: identifier of the CURSOR must be declared

    Hello

    I have a function in which I use nested functions (because I don't want to create objects explicit / external, it is a requirement that I don't have any effect on / I don't want to change).

    In my external function, I use cursor by declaring them in IS-section and then open using the loop for instruction.

    In my inner function / nested, I also want to use a cursor.

    There I also said one like I did in an external function within the section IS of the nested function.

    SQL Developer complains about syntax error (';: wait ").

    When you try to compile the whole process I get the following error:

    "Error (97,14): PLS-00201: identifier 'CURSOR' must be declared '.

    It's my external function starts as:

    CREATE OR REPLACE FUNCTION FN_GENERATE_QUERY_PMT (instance_id_in IN NUMBER, language_in IN VARCHAR2)
    RETURN CLOB
    IS
         CURSOR c_outer IS
          SELECT * FROM BLA;
    

    When it comes to my internal function with the section IS of the external function and stands (inner functions should be at the end of the Section IS to stand behind the statements of variable and cursor, otherwise there will be an error):

    FUNCTION nfn_get_value (num_in IN NUMBER)
          RETURN SYS_REFCURSOR
        IS
          SYS_REFCURSOR c_inner IS
          SELECT *
          FROM BLUB;
        BEGIN
          RETURN c_where_in;
        END;
    

    After that there will be another nested function, then the BEGIN section will appear.

    When looking for 'function returns cursor' I can only find solutions where the cursor is declared in section IS (sometimes its an AS-section o_O * worried *) but wihtoug select, just declare type.

    The cursor focus is added in the Begin block to the way open for instruction. But I don't want to open it yet. I want to open the cursor using the loop statement. I am able to reopen? used can it be two sliders while one will not be closed properly?

    How to fix to return a cursor that I can use in my external function.

    Advice would be appreciated.

    Thanks in advance.

    Maybe I got the soultion
    First of all, I found this thread:

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:5241391331097

    said the following:

    2) a ref cursor is just a cursor.  a ref cursor is just a cursor.  a ref cursor is just a cursor.... (keep saying it over and over
    

    But fortuneately I also found this post:
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:14188501024541

    where thankfully someone shared her knowledge with others:

    In view of this block of code - you may see more "prominent" unlike - any

    How many times you run this block - cursor C will always be select * twice.  The ref

    cursor is not guaranteed.

    Another difference is that a ref cursor can be returned to a client.  a plsql 'cursor cursor.

    cannot be returned to a client.

    Another difference is a cursor can be global - a ref cursor cannot (you cannot set

    them outside a procedure / function)

    Another difference is a ref cursor can be passed to the subroutine - a subroutine

    cursor cannot be.

    This explains why the samples seem always fair with open (Ref) cursor within the section to START.

    I expeceted this (as I wrote in the first post) and ask if the course of opening will be sent back twice or just redirect. I suppose it it reassigns who were just a little in performance.

    But I can't yet find this good explanation of this type anywhere within the documentation and of course I didn't read it all. Shame on me, but I'm always engaged by internet download.

    I would be grateful if someone could say my last statement and leave a comment on double-distribution of the refcursors has reopened.

    Thanks in advance.

  • "' DMBS_MVIEW. '. ' R ' must be declared '?

    Hello

    Anyone can shed some light on this particular issue?

    We have about 20 materialized views in Oracle 10g database which refresh via cron/sqlplus every night.

    These have been very well so far, but last night we noticed that three of them began to spit the following errors:

    ----

    BEGIN dmbs_mview.refresh ('ENGINE_DATA'); END;

    *
    ERROR on line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier ' DMBS_MVIEW. R ' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored


    BEGIN dmbs_mview.refresh ('ENGINE_DATA_REF'); END;

    *
    ERROR on line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier ' DMBS_MVIEW. R ' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored


    BEGIN dmbs_mview.refresh ('ENGINE_LANG'); END;

    *
    ERROR on line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier ' DMBS_MVIEW. R ' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    ----

    I'm completely confused as to what is wrong and no amount of Googling seems to throw a possible cause.

    The only particular difference to these materialized views compared to the others is that they were created with 'ON TABLE PRÉCONSTRUITS' like they had to be updated when the additional fields have been added to the table. All the others were created at the same time, that the tables were made.

    I am executing the update as a user schema so I don't think that it's permissions and they worked before.

    I am at a total loss. Can anyone all light or point me in the right direction?

    user12365907 wrote:
    Hello

    Anyone can shed some light on this particular issue?

    We have about 20 materialized views in Oracle 10g database which refresh via cron/sqlplus every night.

    These have been very well so far, but last night we noticed that three of them began to spit the following errors:

    ----

    BEGIN dmbs_mview.refresh ('ENGINE_DATA'); END;

    *
    ERROR on line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier ' DMBS_MVIEW. R ' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    BEGIN dmbs_mview.refresh ('ENGINE_DATA_REF'); END;

    *
    ERROR on line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier ' DMBS_MVIEW. R ' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    BEGIN dmbs_mview.refresh ('ENGINE_LANG'); END;

    *
    ERROR on line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier ' DMBS_MVIEW. R ' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    ----

    Its DBMS_MVIEW and not DMBS_MVIEW

    I'm completely confused as to what is wrong and no amount of Googling seems to throw a possible cause.

    I don't think this part. Simply type DMBS_MVIEW in google and the first thing, he said is "do you mean: DBMS_MVIEW.

  • PLS-00302: component must be declared.

    Hi all

    As a user MEXX, I created the following procedure... I can able to execute the procedure... When I give debugging, run on this proc to user test1 prov... get the error:

    PLS-00302: component '. D_COMMAND' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    the user test1 has all the necessary rights on the tables EIM_EXECUTED_COMMANDS, EIM_COMMAND_RECORD and the sequence spc_trans... I created synonyms private for all that it opposes in the test1 schema...
    CREATE OR REPLACE PROCEDURE MEXX.D_COMMANDS AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    CURSOR CR_MJI_SIN IS
    SELECT sno, cno, iumber  FROM TEST1.m_mca;
      C_SUBNO VARCHAR2 (20);
      C_CARDNO VARCHAR2 (12);
      C_IMSI_NUMBER VARCHAR2 (30);
      TRANSNO1 NUMBER (8);
        BEGIN
      OPEN CR_SMS_SUB;
      LOOP
        FETCH CR_SMS_SUB INTO C_SUBNO,C_CARDNO,C_IMSI_NUMBER;
        EXIT WHEN CR_SMS_SUB%notfound;
       SELECT  spc_trans.NEXTVAL INTO TRANSNO1 FROM DUAL;
       INSERT INTO EIM_COMMAND_RECORD ( SUBSCR_TYPE, AREA, SUBNO, SERORDNO, TRANSNO, EXC, EXCSYSTEM,
                  PORTNO, SPC_FUNCTION, APPDATE, NXTROUTINE, RETRANSMIT, TRANSSTATUS, EQUIPID, SOTYPE, CARDNO, CARD_TYPE)
            VALUES ( 'G', '0', C_SUBNO, NULL , TRANSNO1, 'GSM1', 'GSM1', '1', 'SERI', sysdate, 'SPC001', 'Y', 10, 'MCA' , 66, C_CARDNO, 'PLI');
       INSERT INTO EIM_EXECUTED_COMMANDS ( TRANSNO, CMDNO, COMMAND, TIMEOUT)
            VALUES (TRANSNO1, 1, 'ADD MCA FOR '||C_SUBNO||' USING (IMSINO='||C_IMSI_NUMBER||')', 30);
      END LOOP;
      CLOSE CR_SMS_SUB;
      COMMIT;
    EXCEPTION
    WHEN OTHERS THEN
          raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    END;
    /
    Thank you
    Kai

    Hi Kai,

    That's true, then, that you have an object in the schema TEST1 called MEXX?

    If so, I guess you can

    Drop that
    or
    Rename that
    or
    Create synonm private TEST1. D_COMMAND for MEXX. D_COMMAND
    or (my favorite)
    declare D_COMMAND within a packet, instead

    Concerning
    Peter

  • PLS00201: identify 'OWA_UTIL' must be declared by mistake

    One of the oracle "WSGL" package is in an INVALID state in our database. All trying to compile, it says "PLS-00201: identify 'OWA_UTIL' must be declared '. Exactly this error occurs on a line (owa_util.get_cgi_env ('SERVER_SOFTWARE')) LayoutData. OWA_UTIL package is available and valid in our database and its schema SYS on. Public synonym also created for owa_util. But I have no idea about this error

    Please help me solve this problem...

    Thanks in advance...

    Beginner of PL/SQL.

    It is also granted to the appellant?

    HTH

  • REGISTER_BINARYXML must be declared

    Hello, everyone.

    I can't try to create a binary storageschema.

    I use the procedure dbms_xmlschema.registerschema as below:

    () dbms_xmlschema.registerschema

    schemaurl = > ' http://www.ESBR.com.br/aneelbmp.v1.xsd '

    , schemadoc = > doc

    local = > true

    , genTypes = > false

    , genbean = > false

    , genTables = > false

    , force = > false

    , owner = > "

    , enableHierarchy = > dbms_xmlschema. ENABLE_HIERARCHY_NONE

    options = > 0

    );

    The ""doc ' variable is an xmltype that constains xml schema. "

    It running, I get the following error:

    ORA-06550: line 80, column 31:

    PLS-00302: component 'REGISTER_BINARYXML' must be declared.

    ORA-06550: line 70, column 3:

    PL/SQL: Statement ignored

    06550 00000 - "line %s, column % s:\n%s".

    * Cause: Usually a PL/SQL compilation error.

    * Action:

    It that I do not specify that option, I can create the schema without problem. In fact, I have already created the whole scenario with CLOB storage types and object / relational . And everything works fine. But I really want to use Binary , since after you create the xml document, I have zero handling and just a couple of xml queries to do some cross-validation.

    For what I read, it seems like a bug. Does anyone know something?

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi

    PL/SQL Release 10.2.0.4.0 - Production

    "CORE 10.2.0.4.0 Production."

    ...

    ... Storage XML binary did not exist in version 10.2 of the database and was introduced as a new storage option in version 11.1 of the database

    ...

    HTH

    (strongly advise you to upgrade to a version of basic support anyway, aware, a good option would be version 11.2.0.3/4 or 12.1.0.2)

  • PLS-00201: identifier 'DBMS_SODA_ADMIN. LIST_COLLECTIONS' must be declared.

    Any attempt of a "dryrun" of ADR. More or less get it now work in 12.1.0.2 but hit a barrier after trying

    http://localhost: 8080/ADR/marco/dbjson/latest /.

    (where "marco" is my database schema "MARCO")

    Error messages in JSON format

    {'type' ": 'http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1',' status': 500,"title":" ORA-06550: 2 Regel, kolom 3:\nPLS-00201: identifier 'DBMS_SODA_ADMIN. LIST_COLLECTIONS' must be stated. "} \nORA-06550: 2 regel, kolom 3:\nPL/SQL: statement ignored.\n","details":"begin\n. DBMS_SODA_ADMIN LIST_COLLECTIONS (\n P_START_NAME = >?, \n P_RESULTS = >?); ------nEND; {', "o: errorCode": "SQL-06550"}

    Aka

    INFO: Request of race GET JSON/REST

    Dec 15, 2014 13:48:14 oracle.soda.rdbms.impl.OracleDatabaseImpl getMaxLengths

    SEVERE: java.sql.SQLException: ORA-06550: 2 Regel, kolom 3:

    PLS-00201: identifier 'DBMS_SODA_ADMIN GET_PARAMETERS' must be declared.

    ORA-06550: Regel 2, kolom 3:

    PL/SQL: Statement ignored.

    Dec 15, 2014 13:48:14 oracle.soda.rdbms.impl.OracleDatabaseImpl callListCollec

    tions

    SEVERE: java.sql.SQLException: ORA-06550: 2 Regel, kolom 3:

    PLS-00201: identifier 'DBMS_SODA_ADMIN. LIST_COLLECTIONS' must be declared.

    ORA-06550: Regel 2, kolom 3:

    PL/SQL: Statement ignored.

    Dec 15, 2014 13:48:14 oracle.json.rest.SodaRestHandler runRequest

    GRAVE: oracle.soda.rdbms.impl.OracleRDBMSException

    Dec 15, 2014 13:48:14 oracle.json.web.RestRequest sendError

    INFO: Sending of error code 500

    Any idea of what was not yet installed (speculation on my part)? Package DBMS_SODA_ADMIN is not installed in the database.

    Marco

    Hi Marco,.

    This error usually means that MLR bundle 20080249 patch is not installed.  If you have not installed yet, go to support.oracle.com, look for "20080249" and follow the installation instructions.  Once the hotfix has been installed, it should start to work (you don't need to reinstall ADR).

    Note that the patch was released initially with step 6 missing in the instructions.  This problem has been fixed recently.

    Thank you

    Josh

  • Bogged down with PLS-00201: identifier 'P_ERR_MESSAGE1' must be declared

    I'm trying to capture an error message in the exception block, and then move it to the calling procedure. I'm getting bogged down with an error "PLS-00201: identifier 'P_ERR_MESSAGE1' must be declared '. How can I fix this or how I can pass the error message in the main proceedings.

    The situation is the following:

    -Local variable

    CRLF VARCHAR2 (2) CONSTANT: = CHR (13) | CHR (10);

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

    -FORWARD DECLARATIONS

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

    PROCEDURE p_sendmail (p_sender_email IN VARCHAR2,

    P_FROM IN VARCHAR2,

    p_to IN VARCHAR2,

    msg_subject IN VARCHAR2 DEFAULT NULL,

    p_msg_body IN LONG DEFAULT NULL,

    p_err_message1 OUT VARCHAR2);

    PROCEDURE p_sendmail (p_sender_email IN VARCHAR2,

    P_FROM IN VARCHAR2,

    p_to IN VARCHAR2,

    msg_subject IN VARCHAR2 DEFAULT NULL,

    p_msg_body IN LONG DEFAULT NULL,

    p_err_message1 OUT VARCHAR2) is

    LONG v_to_list;

    LONG v_cc_list;

    LONG v_bcc_list;

    T_DATE VARCHAR2 (255) DEFAULT TO_CHAR(SYSDATE, 'DD MON YYYY HH24:MI:SS PM');

    g_mail_conn UTL_SMTP. CONNECTION;

    SMTP_HOST CONSTANT VARCHAR2 (256): = ' smtp - abc.defg.ca';

    SMTP_PORT CONSTANT PLS_INTEGER: = 25;

    BEGIN

    g_mail_conn: = UTL_SMTP. OPEN_CONNECTION (SMTP_HOST, SMTP_PORT);

    UTL_SMTP. HELO (g_mail_conn, SMTP_HOST);

    UTL_SMTP.mail (g_mail_conn, p_sender_email);

    UTL_SMTP. RCPT (g_mail_conn, p_to);

    UTL_SMTP.open_data (g_mail_conn);

    UTL_SMTP.write_data (g_mail_conn, "|) CRLF);

    UTL_SMTP.write_data (g_mail_conn, p_msg_body);

    UTL_SMTP.close_data (g_mail_conn);

    UTL_SMTP. Quit (g_mail_conn);

    EXCEPTION

    WHEN utl_smtp.transient_error THEN

    RAISE_APPLICATION_ERROR (SQLCODE, SQLERRM);

    -DBMS_OUTPUT.put_line ('TransientError: Invalid Operation have service may not be available.');

    WHEN utl_smtp.permanent_error THEN

    RAISE_APPLICATION_ERROR (SQLCODE, SQLERRM);

    -DBMS_OUTPUT.put_line ('Permanent Error: The email id entered is either invalid or recepients mail box is full.');

    -p_errmessage: = SQLERRM;

    WHILE others THEN

    RAISE_APPLICATION_ERROR (SQLCODE, SQLERRM);

    -DBMS_OUTPUT.put_line ('Unable to send year email.');

    -p_errmessage: = SQLERRM;

    IF SQLERRM IS NOT NULL THEN

    p_err_message1: = SQLERRM;

    ON THE OTHER

    p_err_message1: = NULL;

    END IF;

    END p_sendmail;

    -Call the procedure below:

    p_sendmail (p_sender_email = > ' [email protected]'-, send an E-mail to the donor )

    p_from = > ' ADS < [email protected] > ',

    p_to = > v_store_email_address,

    p_msg_subject = > 'anonymous user ',.

    p_msg_body = > 'thank you ' |

    CRLF.

    "Email confirms that we have received your promise |

    CRLF.

    CRLF.

    ' Name:         ' || v_full_name |

    CRLF.

    ' Temporary ID: ' | v_azbwccp_id |

    CRLF.

    "Reference number: ' |" MTID |

    CRLF.

    "Amount: ' | '. TO_NUMBER (campaign_desg_amt1) |

    CRLF.

    "Campaign: ' | '. campaign |

    CRLF.

    ' Description: ' | '. adbdesg_rec.adbdesg_name |

    CRLF.

    ' Type: ' | atvpldg_rec.atvpldg_desc |

    CRLF.

    ' Duration: ' | '. atvpdur_rec.atvpdur_desc |

    CRLF.

    "Frequency: ' | '. atvfreq_rec.atvfreq_desc |

    CRLF.

    "Start date: ' | '. bill_date2 |

    CRLF.

    CRLF.

    'Your commitment is processed.' |

    CRLF.

    "At the same time, if you want to change this transaction, please contact us.

    CRLF.

    CRLF.

    "Thank you for your support." |

    CRLF.

    CRLF.

    CRLF.

    CRLF.

    ' * This is an automated message system. Please, do not respond to this email. *** ',

    p_err_message1);

    Now when I compile it, I am getting bogged down with an error message called: PLS-00201: identifier 'P_ERR_MESSAGE1' must be declared

    Where do I feel bad? When I google, talk, or the variable is not set (which is not the case) or on the privileges (which is not the case that I compiled the same procedure with fewer parameters the week last in my schema). Any idea?

    I have attached a screenshot as well. Thanks in advance.


    Yes, I was not able to copy and paste the package specifications and the whole body, because its too too big. Hope you understand.

    ScreenHunter_22 Dec. 02 10.49.jpg

    The problem is that you had declared him an OUT parameter p_err_message1. This setting is valid only inside the procedure. However, you tried to use it outdoors (during the call to the procedure). Declare and use a different variable to solve the problem.

    ...

    p_sendmail (p_sender_email => ' [email protected]'-, send an E-mail to the donor)

    ...

    CRLF.

    ' * This is an automated message system. Please, do not respond to this email. *** ',

    ( p_err_message1) ;

    To identify the problem in a quick way and constitent, generally it allows to watch the line numbers. Or use sql developer. There, you can jump directly to the error line.

  • If I buy adobe Elements 10 or later what software should I make the DVD to mov files, the files are large and I know they must be compressed and I don't want to lose quality... I know that adobe pro you still need software, but will still work with el

    If I buy adobe Elements 10 or later what software should I make the DVD to mov files, the files are large and I know they must be compressed and I don't want to lose quality... I know that adobe pro you still need software, but will still work with the elements and may itself make the compression... I know it can burn DVDs...

    vidog

    If you burn to a DVD disc in first items 10 and later versions, some choices are

    a. DVD-VIDEO standard screen or 4:3 16:9 on DVD disc

    Both will have the frame size of 720 x 480 pixels. But the big screen comes with a 16:9 flag that extends approximately 856/480 16:9 display video after encoding. The screening is not adjustable by the user... and you end up with the DVD-VIDEO format @ 29.97 images per second interlaced.

    b. format of the AVCHD on DVD

    Here is the video display 1920 x 1080. And, depending on the version, can be 29.97 images interlaced per second, or 23.976 progressive frames per second (if not just 29.97 images per second interlaced). Although you can generate some AVCHD DVD with a regular DVD burner, DVD AVCHD is in need of a blu - ray player that supports supported AVCHD DVD or one of these drives multimedia multi which is also.

    c. If the player allows... you can export your Timeline file saved on a USB Flash drive and then insert this USB Flash drive in the drive to get the reading of the file. On this route, you can set the Premiere Elements avancΘs to customize your choice of export preset.

    Please consult the bulletin and consider then, let us know if we have targeted your question. If this isn't the case, please give more details in the areas where we do not have.

    Thank you.

    RTA

  • How to solve this error change Assistant? -all agents must be running and sending impulses for applications...

    I have a problem with the wizard to change and could not find a solution for it.

    When I go and you try to view the environment it is said that "all agents are running and sending impulses... before the beginning of change Assistant".

    Here are the steps I followed:

    -Configuration of the Agent EM: hubURL = http:// < localhost >: 80/PSEMHUB/hub agentport = 5283

    -Configuration of the Hub EM: hubURL = http:// < localhost >: 80/PSEMHUB/hub agentport = 5283

    -Bring the PIA first without any problems.

    -Bring EM Agent and get this error:

    Main EMF_CATEGORY of error - error reading cookies.xml cookiesrules.xml

    but he sends impulses anyway.

    -Configuration of the load change Wizard and ping to the host. OK, but the button results display gives this error "all agents must be running and sending impulses... before the beginning of change Assistant".

    Someone knows how to fix this?

    Thank you

    I had this happen a few times.  I work around this problem, but don't remember how (probably to do the cleaning agent and hub or maybe it was CA).  I think that once, I didn't have the time to screw with it, so I worked around it by pointing to a different HUB that already existed.

Maybe you are looking for

  • Webcam and internal microphone stopped working Satellite C660 - 1-7

    Hello I've had my laptop for several months and everything was fine until yesterday when the internal microphone no longer works so today I come to use the webcam, and it is said that he didn't and must be restarted (I did several times). I tried to

  • The bootable CD BIOS update

    Hello world!This is probably a stupid question, but I want to become less stupid in him asking: How to create a bootable cd for upgrade of the BIOS with the files provided in the field of management of this site?precisely with this file here...http:/

  • Mute, cd/dvd, play, stop etc buttons do not work on my laptop satellite

    Hope you can help. For some reason the buttons that control the mute, play, stop, fast Fwd and rewind, not the light upwards and not not work?I can't work out how to get them working againAny ideas? Thank you

  • Satellite A100-998 PAAS: Uninstallation of Vista

    I just brought a PAAS Toshiba A100-998 with support xp (Vista capable). I broughtVista (32-bit) upgrading at the time, but am debating whether to install ornot. If I do install and have problems I can uninstall it later? Is the Xp OS and the function

  • When Microsoft will fix curfew in Windows parental control?

    I see several long discussions relating to problems with the parental curfew of Windows.  But no solution to the problem.  I am running the latest version ( 15.4.3555.308). I activated the parental control. I uninstalled and reinstalled the program.