Using the stored procedure: Source does not have a target executable

I'm a guy from MS - SQL, so I'm fairly familiar with T - SQL syntax, but feels a heck of a time trying to take the code I wrote for SQL and turn this works with Oracle.

in any case, I'm using Oracle SQL Developer, and I have a stored procedure that calls the Alter Table statement and adds a column. Just trying to get this one to work before moving on to the other that I have. I get the message that source does not have a target executable when I try to run this command.

create or replace PROCEDURE rta_conv_addcolumn (rtatablename1 in varchar (20),)
rtatablename2 in varchar (20),
rtacolumnname in varchar (256),
rtacolumninfo in varchar (256))
AS
DECLARE rtasql VARCHAR (4000);
BEGIN
IF EXISTS (SELECT * from user_tables WHERE table_name = rtatablename1)
AND NOT EXISTS (SELECT * from user_tab_columns WHERE column_name = rtacolumnname)
AND table_name = rtatablename1)
AND NOT EXISTS (SELECT * from user_tab_columns WHERE column_name = rtacolumnname)
AND table_name = rtatablename2)
Then rtasql: = ' ALTER TABLE ["+ rtatablename2 +"] ADD "+ rtacolumnname +" "+ rtacolumninfo;
Run (rtasql);
END rta_conv_addcolumn;

If I try to compile I get the following messages, which make no sense, since the syntax I use to declare the input variables seems to be good.

Error (1.54): PLS-00103: encountered the symbol "(" quand attend une deles de valeurs suivantes:: =.), @ default % of the characters of the symbol ': = ' has been replaced by "(" pour continuer.)
Error (2.29): PLS-00103: encountered the symbol "(" quand attend une deles de valeurs suivantes:: =.), @ default % of the characters of the symbol ': = ' has been replaced by "(" pour continuer.)
Error (3.29): PLS-00103: encountered the symbol "(" quand attend une deles de valeurs suivantes:: =.), @ default % of the characters of the symbol ': = ' has been replaced by "(" pour continuer.)
Error (4.29): PLS-00103: encountered the symbol "(" quand attend une deles de valeurs suivantes:: =.), @ default % of the characters of the symbol ': = ' has been replaced by "(" pour continuer.)
Error (6.1): PLS-00103: encountered the symbol "DECLARE" when expecting one of the following: begin function package pragma procedure < an ID > subtype type use < a between double quote delimited identifiers of > form current cursor external language the symbol 'start' is substituted for 'SAID' continue.
Error (15.5): PLS-00103: encountered the symbol "RTA_CONV_ADDCOLUMN" when expects it one of the following values: If

Adds the column to the table specified in rtatablename1, if there is neither rtatablename1 nor rtatablename2.

NOT TESTED

create or replace PROCEDURE rta_conv_addcolumn(rtatablename1 in varchar,
rtatablename2 in varchar,
rtacolumnname in varchar,
rtacolumninfo in varchar)
AS
rtasql VARCHAR(4000);
count1 number;
count2 number;
count3 number;
BEGIN
  SELECT count(*) into count1 FROM user_tables WHERE table_name = rtatablename1;
  SELECT count(*) into count2 FROM user_tab_columns WHERE column_name = rtacolumnname AND table_name = rtatablename1;
  SELECT count(*) into count3 FROM user_tab_columns WHERE column_name = rtacolumnname AND table_name = rtatablename2;
  IF count1>0 AND count2 = 0 AND count3=0 Then
    rtasql:= 'ALTER TABLE '|| rtatablename1 ||'ADD ' || rtacolumnname || ' ' || rtacolumninfo;
    Execute immediate rtasql;
  END IF;
END rta_conv_addcolumn;
/

Max

Published by: Massimo Ruocchio, December 12, 2009 02:15
Missing AND

Tags: Database

Similar Questions

  • Source does not have a target executable.

    Can anyone of you help me please with this long stored procedure that gives me "Source doesn't have a target executable."

    Thanks for all the help in advance.

    Kind regards


    -Code
    CREATE OR REPLACE PROCEDURE SP_CHANGE_NAMES AS
    BEGIN
    DECLARE
    A_moalternatename TANK (32 BYTES);
    NUMBER OF A_BASE_LEVEL_RC;
    A_base_level_rc_type VARCHAR2 (10 BYTE);
    A_NEW_NAME VARCHAR2 (64 BYTE);
    A_OLD_NAME VARCHAR2 (64 BYTE);
    NUMBER OF A_VALID;
    DATE OF A_PROCESS_DATE;
    A_NEW_NAME1 VARCHAR2 (64 BYTE): = 'A ';
    A_OLD_NAME1 VARCHAR2 (64 BYTE): = 'A ';
    A_EQUIPMENT_DESCR_OLD VARCHAR (255): = 'A ';
    A_EQUIPMENT_DESCR_NEW VARCHAR (255): = 'A ';
    A_EQUIPMENT_RC1 (240 BYTES) VARCHAR2: = 'A ';
    A_EQUIPMENT_RC (240 BYTES) VARCHAR2: = 'A ';
    A_AREA_PROCESS_CLASS VARCHAR2 (240 BYTES).
    A_AREA_PROCESS_SHORT_FORM VARCHAR2 (4);
    A_AREA_OBJECT_SHORT_FORM VARCHAR2 (4);
    A_EQUIP_TYPE VARCHAR2 (50 BYTES): = 'A ';



    CURSOR CUR_CHANGE_HIER_NAME
    IS
    SELECT / * + PARALLEL(XXNF_CSI_RC_HIERARCHY,4) * /.
    moalternatename,
    BASE_LEVEL_RC,
    BASE_LEVEL_RC_TYPE,
    NEW_NAME,
    VALID,
    PROCESS_DATE
    OF TBL_CHANGE_HIER_NAMES
    WHERE VALID = 1 AND BASE_LEVEL_RC = 154391
    UPDATE;

    CURSOR CUR_TBL_AREA_PROCESS_CLASS
    IS
    SELECT AREA_PROCESS_CLASS,
    AREA_OBJECT_CLASS,
    AREA_PROCESS_CLASS_SHORT_FORM,
    AREA_OBJECT_CLASS_SHORT_FORM
    OF TBL_AREA_PROCESS_CLASS;
    BEGIN


    CUR_CHANGE_HIER_NAME OPEN;

    LOOP
    EXTRACTION CUR_CHANGE_HIER_NAME
    IN
    A_moalternatename,
    A_BASE_LEVEL_RC,
    A_BASE_LEVEL_RC_TYPE,
    A_NEW_NAME,
    A_VALID,
    A_PROCESS_DATE;

    WHEN THE OUTPUT CUR_CHANGE_HIER_NAME % NOTFOUND;

    DBMS_OUTPUT. Put_line ('A_moalternatename: ' |) A_moalternatename |
    ', A_BASE_LEVEL_RC: ' | A_BASE_LEVEL_RC |
    ', A_BASE_LEVEL_RC_TYPE: ' | A_BASE_LEVEL_RC_TYPE |
    ', A_NEW_NAME: ' | A_NEW_NAME |
    ', A_VALID: ' | A_VALID |
    ', A_PROCESS_DATE: ' | A_PROCESS_DATE);
    IF UPPER (TRIM (A_base_level_rc_type)) = 'CAVITY' Then
    BEGIN
    A_OLD_NAME1: = ' * ' | TRIM (UPPER (A_OLD_NAME)). "BUNIT;
    A_NEW_NAME1: = ' * ' | TRIM (UPPER (A_NEW_NAME)). "BUNIT;
    DBMS_OUTPUT. PUT_LINE ('A_OLD_NAME1: ' |) A_OLD_NAME1 | ' A_NEW_NAME1: ' | A_NEW_NAME1);
    SETTING A DAY MODEL SET MODELNAME = A_NEW_NAME1,
    MODELDESCRIPTION = A_NEW_NAME1 | ' ('| to_char (A_BASE_LEVEL_RC) |) ') '
    WHERE UPPER (TRIM (MODELNAME)) = TRIM (UPPER (A_OLD_NAME1) AND TRIM (MODELTYPE) = TRIM (A_moalternatename) AND upper (Trim (MODELDESCRIPTION)) = upper (Trim (A_OLD_NAME1) | ' ('|| TO_CHAR (A_BASE_LEVEL_RC) | ') ';

    SETTING A DAY MO SET MONAME = UPPER (A_NEW_NAME1) WHERE MOALTERNATENAME = A_MOALTERNATENAME AND UPPER (TRIM (MONAME)) = TRIM (UPPER (A_OLD_NAME1));
    END;
    ELSIF UPPER (TRIM (A_base_level_rc_type)) = "TEAM" then
    BEGIN
    A_OLD_NAME1: = TRIM (UPPER (A_OLD_NAME)). "THE TEAM."
    A_NEW_NAME1: = TRIM (UPPER (A_NEW_NAME)). "THE TEAM."
    DBMS_OUTPUT. PUT_LINE ('A_OLD_NAME1: ' |) A_OLD_NAME1 | ' A_NEW_NAME1: ' | A_NEW_NAME1);
    SETTING A DAY MODEL SET MODELNAME = A_NEW_NAME1,
    MODELDESCRIPTION = TRIM (UPPER (A_NEW_NAME1)). ' ('|| TO_CHAR (A_BASE_LEVEL_RC) | ') '
    WHERE UPPER (TRIM (MODELNAME)) = TRIM (UPPER (A_OLD_NAME1) AND TRIM (MODELTYPE) = TRIM (A_moalternatename) AND upper (Trim (MODELDESCRIPTION)) = upper (Trim (A_OLD_NAME1) | ' ('|| TO_CHAR (A_BASE_LEVEL_RC) | ') ';

    SETTING A DAY MO SET MONAME = UPPER (A_NEW_NAME1) WHERE MOALTERNATENAME = A_MOALTERNATENAME AND UPPER (TRIM (MONAME)) = TRIM (UPPER (A_OLD_NAME1));
    END;
    ELSIF UPPER (TRIM (A_base_level_rc_type)) = 'SPACE' and then
    BEGIN
    A_OLD_NAME1: = TRIM (UPPER (A_OLD_NAME)). "_AREA ';
    A_NEW_NAME1: = TRIM (UPPER (A_NEW_NAME)). "_AREA ';
    DBMS_OUTPUT. PUT_LINE ('A_OLD_NAME1: ' |) A_OLD_NAME1 | ' A_NEW_NAME1: ' | A_NEW_NAME1);
    SETTING A DAY MODEL SET MODELNAME = A_NEW_NAME1,
    MODELDESCRIPTION = TRIM (UPPER (A_NEW_NAME1)). ' ('|| TO_CHAR (A_BASE_LEVEL_RC) | ') '
    WHERE UPPER (TRIM (MODELNAME)) = TRIM (UPPER (A_OLD_NAME1) AND TRIM (MODELTYPE) = TRIM (A_moalternatename) AND upper (Trim (MODELDESCRIPTION)) = upper (Trim (A_OLD_NAME1) | ' ('|| TO_CHAR (A_BASE_LEVEL_RC) | ') ';

    SETTING A DAY MO SET MONAME = UPPER (A_NEW_NAME1) WHERE TRIM (MOALTERNATENAME) = TRIM (A_MOALTERNATENAME) AND UPPER (TRIM (MONAME)) = TRIM (UPPER (A_OLD_NAME1));

    -----------------
    OPEN CUR_TBL_AREA_PROCESS_CLASS.

    LOOP
    EXTRACTION CUR_TBL_AREA_PROCESS_CLASS
    IN
    A_AREA_PROCESS_CLASS, A_EQUIP_TYPE, A_AREA_PROCESS_SHORT_FORM, A_AREA_OBJECT_SHORT_FORM;

    WHEN THE OUTPUT CUR_TBL_AREA_PROCESS_CLASS % NOTFOUND;

    -INITIAL VARIABLES
    A_EQUIPMENT_DESCR_OLD: = Trim (upper (A_OLD_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_DESCR_NEW: = Trim (upper (A_NEW_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_RC: = TO_CHAR (A_BASE_LEVEL_RC) | A_AREA_OBJECT_SHORT_FORM;
    DBMS_OUTPUT. PUT_LINE ('A_EQUIPMENT_DESCR_OLD: ' |) A_EQUIPMENT_DESCR_OLD | ' A_EQUIPMENT_DESCR_NEW: ' | A_EQUIPMENT_DESCR_NEW | ' A_EQUIPMENT_RC: ' | A_EQUIPMENT_RC);


    Setting a DAY MO SET MONAME = UPPER (A_EQUIPMENT_DESCR_NEW) WHERE TRIM (MOALTERNATENAME) = TRIM (A_EQUIPMENT_RC) AND UPPER (TRIM (MONAME)) = trim (UPPER (A_EQUIPMENT_DESCR_OLD));

    A_EQUIPMENT_DESCR_OLD: = TRIM (UPPER (A_OLD_NAME1)). '_' || A_AREA_PROCESS_CLASS;
    A_EQUIPMENT_DESCR_NEW: = Trim (UPPER (A_NEW_NAME1)). '_' || A_AREA_PROCESS_CLASS;
    A_EQUIPMENT_RC1: = TO_CHAR (A_BASE_LEVEL_RC) | A_AREA_PROCESS_SHORT_FORM;
    DBMS_OUTPUT. PUT_LINE ('A_EQUIPMENT_DESCR_OLD: ' |) A_EQUIPMENT_DESCR_OLD | ' A_EQUIPMENT_DESCR_NEW: ' | A_EQUIPMENT_DESCR_NEW | ' A_EQUIPMENT_RC1: ' | A_EQUIPMENT_RC1);

    SETTING A DAY MO SET MONAME = UPPER (A_EQUIPMENT_DESCR_NEW) WHERE TRIM (MOALTERNATENAME) = TRIM (A_EQUIPMENT_RC1) AND UPPER (TRIM (MONAME)) = UPPER (A_EQUIPMENT_DESCR_OLD);
    END LOOP;

    CLOSE CUR_TBL_AREA_PROCESS_CLASS;

    A_OLD_NAME1: = TRIM (UPPER (A_OLD_NAME1)). '_DF ';
    A_NEW_NAME1: = TRIM (UPPER (A_NEW_NAME1)). "DF".

    UPDATE MO SET MONAME = UPPER (A_NEW_NAME1) WHERE TRIM (MOALTERNATENAME) = TO_CHAR (TRIM (A_MOALTERNATENAME)). "DF" AND UPPER (TRIM (MONAME)) = TRIM (UPPER (A_OLD_NAME1));

    -----------------
    END;
    ELSIF UPPER (TRIM (A_base_level_rc_type)) = "CSI_FLD" then
    BEGIN
    A_OLD_NAME1: = TRIM (UPPER (A_OLD_NAME1)). "CHP";
    A_NEW_NAME1: = TRIM (UPPER (A_NEW_NAME1)). "CHP";
    DBMS_OUTPUT. PUT_LINE ('A_OLD_NAME1: ' |) A_OLD_NAME1 | ' A_NEW_NAME1: ' | A_NEW_NAME1);
    SETTING A DAY MODEL SET MODELNAME = A_NEW_NAME1,
    MODELDESCRIPTION = A_NEW_NAME1 | ' ('|| TO_CHAR (A_BASE_LEVEL_RC) | ') '
    WHERE UPPER (TRIM (MODELNAME)) = TRIM (UPPER (A_OLD_NAME1) AND TRIM (MODELTYPE) = TRIM (A_moalternatename) AND upper (Trim (MODELDESCRIPTION)) = upper (Trim (A_OLD_NAME1) | ' ('|| TO_CHAR (A_BASE_LEVEL_RC) | ') ';

    SETTING A DAY MO SET MONAME = UPPER (A_NEW_NAME1) WHERE TRIM (MOALTERNATENAME) = TRIM (A_MOALTERNATENAME) AND UPPER (TRIM (MONAME)) = TRIM (UPPER (A_OLD_NAME1));
    -Update of objects of process and equipment
    A_EQUIP_TYPE: = "air";
    A_AREA_OBJECT_SHORT_FORM: = 'PV ';
    A_EQUIPMENT_DESCR_OLD: = Trim (upper (A_OLD_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_DESCR_NEW: = Trim (upper (A_NEW_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_RC: = TO_CHAR (A_BASE_LEVEL_RC) | A_AREA_OBJECT_SHORT_FORM;
    DBMS_OUTPUT. PUT_LINE ('A_EQUIPMENT_DESCR_OLD: ' |) A_EQUIPMENT_DESCR_OLD | ' A_EQUIPMENT_DESCR_NEW: ' | A_EQUIPMENT_DESCR_NEW | ' A_EQUIPMENT_RC: ' | A_EQUIPMENT_RC);

    SETTING A DAY MO SET MONAME = UPPER (A_EQUIPMENT_DESCR_NEW) WHERE TRIM (MOALTERNATENAME) = TRIM (A_EQUIPMENT_RC) AND UPPER (TRIM (MONAME)) = UPPER (A_EQUIPMENT_DESCR_OLD);
    A_EQUIP_TYPE: = 'evacuation process. "
    A_AREA_PROCESS_SHORT_FORM: = 'EV ';
    A_EQUIPMENT_DESCR_OLD: = Trim (upper (A_OLD_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_DESCR_NEW: = Trim (upper (A_NEW_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_RC1: = TO_CHAR (A_BASE_LEVEL_RC) | A_AREA_PROCESS_SHORT_FORM;
    DBMS_OUTPUT. PUT_LINE ('A_EQUIPMENT_DESCR_OLD: ' |) A_EQUIPMENT_DESCR_OLD | ' A_EQUIPMENT_DESCR_NEW: ' | A_EQUIPMENT_DESCR_NEW | ' A_EQUIPMENT_RC1: ' | A_EQUIPMENT_RC1);

    SETTING A DAY MO SET MONAME = UPPER (A_EQUIPMENT_DESCR_NEW) WHERE TRIM (MOALTERNATENAME) = TRIM (A_EQUIPMENT_RC1) AND UPPER (TRIM (MONAME)) = UPPER (A_EQUIPMENT_DESCR_OLD);
    -----------------
    END;

    ELSIF (TRIM (A_base_level_rc_type)) = "FACL" UPPER then
    BEGIN
    A_OLD_NAME1: = TRIM (UPPER (A_OLD_NAME)). "FACL";
    A_NEW_NAME1: = TRIM (UPPER (A_NEW_NAME)). "FACL";
    DBMS_OUTPUT. PUT_LINE ('A_OLD_NAME1: ' |) A_OLD_NAME1 | ' A_NEW_NAME1: ' | A_NEW_NAME1);
    SETTING A DAY MODEL SET MODELNAME = A_NEW_NAME1,
    MODELDESCRIPTION = A_NEW_NAME1 | ' ('|| TO_CHAR (A_BASE_LEVEL_RC) | ') '
    WHERE UPPER (TRIM (MODELNAME)) = TRIM (UPPER (A_OLD_NAME1) AND TRIM (MODELTYPE) = TRIM (A_moalternatename) AND upper (Trim (MODELDESCRIPTION)) = upper (Trim (A_OLD_NAME1) | ' ('|| TO_CHAR (A_BASE_LEVEL_RC) | ') ';

    SETTING A DAY MO SET MONAME = UPPER (A_NEW_NAME1) WHERE TRIM (MOALTERNATENAME) = TRIM (A_MOALTERNATENAME) AND UPPER (TRIM (MONAME)) = TRIM (UPPER (A_OLD_NAME1));
    -Update of objects of process and equipment
    A_EQUIP_TYPE: = "air";
    A_AREA_OBJECT_SHORT_FORM: = 'PV ';
    A_EQUIPMENT_DESCR_OLD: = Trim (upper (A_OLD_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_DESCR_NEW: = Trim (upper (A_NEW_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_RC: = TO_CHAR (A_BASE_LEVEL_RC) | A_AREA_OBJECT_SHORT_FORM;
    DBMS_OUTPUT. PUT_LINE ('A_EQUIPMENT_DESCR_OLD: ' |) A_EQUIPMENT_DESCR_OLD | ' A_EQUIPMENT_DESCR_NEW: ' | A_EQUIPMENT_DESCR_NEW | ' A_EQUIPMENT_RC: ' | A_EQUIPMENT_RC);

    SETTING A DAY MO SET MONAME = UPPER (A_EQUIPMENT_DESCR_NEW) WHERE TRIM (MOALTERNATENAME) = TRIM (A_EQUIPMENT_RC) AND UPPER (TRIM (MONAME)) = UPPER (A_EQUIPMENT_DESCR_OLD);
    A_EQUIP_TYPE: = 'evacuation process. "
    A_AREA_PROCESS_SHORT_FORM: = 'EV ';
    A_EQUIPMENT_DESCR_OLD: = Trim (upper (A_OLD_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_DESCR_NEW: = Trim (upper (A_NEW_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_RC1: = TO_CHAR (A_BASE_LEVEL_RC) | A_AREA_PROCESS_SHORT_FORM;
    DBMS_OUTPUT. PUT_LINE ('A_EQUIPMENT_DESCR_OLD: ' |) A_EQUIPMENT_DESCR_OLD | ' A_EQUIPMENT_DESCR_NEW: ' | A_EQUIPMENT_DESCR_NEW | ' A_EQUIPMENT_RC1: ' | A_EQUIPMENT_RC1);

    SETTING A DAY MO SET MONAME = UPPER (A_EQUIPMENT_DESCR_NEW) WHERE TRIM (MOALTERNATENAME) = TRIM (A_EQUIPMENT_RC1) AND UPPER (TRIM (MONAME)) = UPPER (A_EQUIPMENT_DESCR_OLD);

    A_EQUIP_TYPE: = 'TruckLoading ';
    A_AREA_OBJECT_SHORT_FORM: = 'ETL ';
    A_EQUIPMENT_DESCR_OLD: = Trim (upper (A_OLD_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_DESCR_NEW: = Trim (upper (A_NEW_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_RC: = TO_CHAR (A_BASE_LEVEL_RC) | A_AREA_OBJECT_SHORT_FORM;
    DBMS_OUTPUT. PUT_LINE ('A_EQUIPMENT_DESCR_OLD: ' |) A_EQUIPMENT_DESCR_OLD | ' A_EQUIPMENT_DESCR_NEW: ' | A_EQUIPMENT_DESCR_NEW | ' A_EQUIPMENT_RC: ' | A_EQUIPMENT_RC);

    SETTING A DAY MO SET MONAME = UPPER (A_EQUIPMENT_DESCR_NEW) WHERE TRIM (MOALTERNATENAME) = TRIM (A_EQUIPMENT_RC) AND UPPER (TRIM (MONAME)) = UPPER (A_EQUIPMENT_DESCR_OLD);
    A_EQUIP_TYPE: = 'process of loading - AP-42;
    A_AREA_PROCESS_SHORT_FORM: = 'PTL ';
    A_EQUIPMENT_DESCR_OLD: = Trim (upper (A_OLD_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_DESCR_NEW: = Trim (upper (A_NEW_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_RC1: = TO_CHAR (A_BASE_LEVEL_RC) | A_AREA_PROCESS_SHORT_FORM;
    DBMS_OUTPUT. PUT_LINE ('A_EQUIPMENT_DESCR_OLD: ' |) A_EQUIPMENT_DESCR_OLD | ' A_EQUIPMENT_DESCR_NEW: ' | A_EQUIPMENT_DESCR_NEW | ' A_EQUIPMENT_RC1: ' | A_EQUIPMENT_RC1);

    SETTING A DAY MO SET MONAME = UPPER (A_EQUIPMENT_DESCR_NEW) WHERE TRIM (MOALTERNATENAME) = TRIM (A_EQUIPMENT_RC1) AND UPPER (TRIM (MONAME)) = UPPER (A_EQUIPMENT_DESCR_OLD);
    END;
    ELSIF UPPER (TRIM (A_base_level_rc_type)) = "GOOD" then
    BEGIN
    A_OLD_NAME1: = TRIM (UPPER (A_OLD_NAME)). 'GOOD '.
    A_NEW_NAME1: = TRIM (UPPER (A_NEW_NAME)). 'GOOD '.
    DBMS_OUTPUT. PUT_LINE ('A_OLD_NAME1: ' |) A_OLD_NAME1 | ' A_NEW_NAME1: ' | A_NEW_NAME1);
    SETTING A DAY MODEL SET MODELNAME = A_NEW_NAME1,
    MODELDESCRIPTION = A_NEW_NAME1 | ' ('|| TO_CHAR (A_BASE_LEVEL_RC) | ') '
    WHERE UPPER (TRIM (MODELNAME)) = TRIM (UPPER (A_OLD_NAME1) AND TRIM (MODELTYPE) = TRIM (A_moalternatename) AND upper (Trim (MODELDESCRIPTION)) = upper (Trim (A_OLD_NAME1) | ' ('|| TO_CHAR (A_BASE_LEVEL_RC) | ') ';

    SETTING A DAY MO SET MONAME = UPPER (A_NEW_NAME1) WHERE TRIM (MOALTERNATENAME) = TRIM (A_MOALTERNATENAME) AND UPPER (TRIM (MONAME)) = TRIM (UPPER (A_OLD_NAME1));
    -Update of objects of process and equipment
    A_EQUIP_TYPE: = "air";
    A_AREA_OBJECT_SHORT_FORM: = 'PV ';
    A_EQUIPMENT_DESCR_OLD: = Trim (upper (A_OLD_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_DESCR_NEW: = Trim (upper (A_NEW_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_RC: = TO_CHAR (A_BASE_LEVEL_RC) | A_AREA_OBJECT_SHORT_FORM;
    DBMS_OUTPUT. PUT_LINE ('A_EQUIPMENT_DESCR_OLD: ' |) A_EQUIPMENT_DESCR_OLD | ' A_EQUIPMENT_DESCR_NEW: ' | A_EQUIPMENT_DESCR_NEW | ' A_EQUIPMENT_RC: ' | A_EQUIPMENT_RC);

    SETTING A DAY MO SET MONAME = UPPER (A_EQUIPMENT_DESCR_NEW) WHERE TRIM (MOALTERNATENAME) = TRIM (A_EQUIPMENT_RC) AND UPPER (TRIM (MONAME)) = UPPER (A_EQUIPMENT_DESCR_OLD);
    A_EQUIP_TYPE: = 'evacuation process. "
    A_AREA_PROCESS_SHORT_FORM: = 'EV ';
    A_EQUIPMENT_DESCR_OLD: = Trim (upper (A_OLD_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_DESCR_NEW: = Trim (upper (A_NEW_NAME1)). '_' || A_EQUIP_TYPE;
    A_EQUIPMENT_RC1: = TO_CHAR (A_BASE_LEVEL_RC) | A_AREA_PROCESS_SHORT_FORM;
    DBMS_OUTPUT. PUT_LINE ('A_EQUIPMENT_DESCR_OLD: ' |) A_EQUIPMENT_DESCR_OLD | ' A_EQUIPMENT_DESCR_NEW: ' | A_EQUIPMENT_DESCR_NEW | ' A_EQUIPMENT_RC1: ' | A_EQUIPMENT_RC1);

    SETTING A DAY MO SET MONAME = UPPER (A_EQUIPMENT_DESCR_NEW) WHERE TRIM (MOALTERNATENAME) = TRIM (A_EQUIPMENT_RC1) AND UPPER (TRIM (MONAME)) = UPPER (A_EQUIPMENT_DESCR_OLD);

    END;
    OF ANOTHER DBMS_OUTPUT. PUT_LINE ("' NO UPDATES DUE TO NO CHANGE");
    -----------------
    END IF;
    TBL_CHANGE_HIER_NAMES UPDATE THE VALID VALUE = 0,.
    PROCESS_DATE = SYSDATE
    WHERE CURRENT OF CUR_CHANGE_HIER_NAME;

    END LOOP;
    CLOSE CUR_CHANGE_HIER_NAME;

    END;
    END SP_CHANGE_NAMES;

    What tool do you use?
    SQL Developer? Instead of using 'RUN' use 'compile '.

  • I need to compress files large pdf (size 40-55 MB) to something closer to 12-15 MB. Using the Save-as-others does not make them not quite "light". Can I customize the setting of MB?

    I need to compress files large pdf (size 40-55 MB) to something closer to 12-15 MB. Using the Save-as-others does not make them not quite "light". Can I customize the setting of MB?

    1. First make a backup copy of
    2. Next go to save as another
    3. Choose optimized PDF
    4. Then when the window opens click the tab fonts
    5. Delete all the duplicate font styles (example if you have 5 copies of Helvetica Bold delete f our copies.)
    6. Then choose the Images tab
    7. Now reduce the quality of the graphics at no 250 DPI except black and white not higher than 100 dpi

    Now click OK and then save the file under a new name.

    If what that will be used to make the quality of the business meeting so do not this, using a Cloud service and send a link to the people.

    If your planning to use online or send in email this will be enough.

  • Having hard time you sign in to one account on my computer. "The group policy service does not have log on." Access denied. "

    Trying to connect to one of the accounts on my computer and the message telling me "the group policy service does not have the journal on.»  Access denied. "  Can someone help me with this?

    Hello

    1. is the computer connected to a network domain?

    2 are you facing this problem into account administrator? Do you have other administrator accounts enabled in the computer?

    3 did you changes to the computer before the show?

     
     
    Method 1:

    Check if you are able to start the computer in safe mode.
     
    Step 1: Safe Mode

    Start your computer in safe mode and check the number.

    To start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

     
    If you are unable to boot into safe mode, please let us know.

    Step 2:

    You run the system restore in Windows recovery environment?

    If this isn't the case, I would say you can do a system restore to the Windows recovery environment. Follow the steps in the section provided.

    http://support.Microsoft.com/kb/940765/en-us


     
    I hope this helps!
  • Use the stored procedure to create the data model for the bi publisher report

    Hi all

    Can we use stored procedure to create the data model for BI Publisher reports? I did find an example by using the stored procedure to complete the data model in the bi publisher report.

    Thank you

    Virat

    Check out these links

    BI publisher to use the stored procedure
    Re: Stored procedures and dynamic columns
    Re: Is it possible to use stored procedures in BI Publisher GUI?
    Re: PL/SQL stored w / model XML?

    If brand pls help

  • Using the stored procedure

    We use the procedure attached to within an ASP application obfuscation of the password database. I am able to use the same procedure in CF without modification? Right now, I have tried with cfstoredproc but'm "Procedure 'dt_External_Encrypt' expects parameter '@Encrypted', which was not supplied."



    You do not use the ODBC driver.

    Most likely, there is a typing error in the code or the stored procedure is not also displayed (or a copy).

    Change procedure = "dt_External_Encrypt" to procedure = "dbo.dt_External_Encrypt" "

    Open Query Analyzer, 'Edit' code stored procedure and make sure that it is really such displayed.

    Finally, try changing returnCode 'no '.

    If all else fails, join the code exact CF code and code from Query Analyzer.

  • I have CS4 and updated my OS x 7.5 in Yosemite 10.5 - applications are still there but will not open. He said that I had to restart the computer after which he said that there is an error 6. I have the license key but does not have a place to insert it.

    I have CS4 and updated to OS x 7.5 to 10.5 Yosemite. Applications are still there, but can not be opened. After the restart, the application displays error 6. I have the

    Original key, but does not have a place to enter.

    We recommend that you reinstall the applications. You can use the Cleanup tool to remove the applications and products CS4 download from here.

  • Cross-Schema insert by using the stored procedure

    Hi all.

    I am currently migrating 11.2.0.1 to 11.2.0.3,
    and I have to deal with an unexpected privileges error "ORA-13199: insufficient privilege for the table in the application of the xxx model."

    While inserting triplets in the table in the application of the model
    using a stored procedure which is
    owned by the owner of model table and app,
    but called by another issued user.

    There has never been a problem 10.2.0.4 or 11.2.0.1.
    It seems that something has really changed, (perhaps an authid pragma or something like this in the code internal SDO_RDF_TRIPLE?)
    The two users are needed on my system for security policy reasons.



    Here's a simplified script to reproduce the success on 1.2.0.1 and error on 11.2.0.3.
    Users are: ADMWAT = model, USEWAT = calling application


    SQL > connect SYS/xxxxx@DB_*11201*.world as sysdba
    Connected.
    SQL > select value of MDSYS. RDF_PARAMETER where namespace = "MDSYS" and the attribute = "SEM_VERSION";

    VALUE
    --------------------------------------------------------------------------------
    * 112 *.

    SQL >
    SQL > connect ADMWAT/xxxxx@DB_11201.world
    Connected.
    SQL > CREATE TABLE family_rdf_data (id NUMBER, triple SDO_RDF_TRIPLE_S);

    Table created.

    SQL >
    SQL > exec SEM_APIS.create_rdf_model ('family', 'family_rdf_data', 'three');

    PL/SQL procedure successfully completed.

    SQL >
    SQL > GRANT INSERT ON family_rdf_data in MDSYS.

    Grant succeeded.

    SQL >
    SQL > create or replace PROCEDURE NEW_TRIPLE IS
    BEGIN 2
    3 INSERT INTO family_rdf_data VALUES (1,
    4 SDO_RDF_TRIPLE_S ('family',
    5 "http://www.example.org/family/John."
    6 "http://www.example.org/family/fatherOf."
    7 'http://www.example.org/family/Suzie'));
    8 END;
    9.

    Created procedure.

    SQL >
    SQL > GRANT EXECUTE ON NEW_TRIPLE to USEWAT;

    Grant succeeded.

    SQL >
    SQL > connect ADMWAT/xxxxx@DB_11201.world
    Connected.
    SQL > exec ADMWAT. NEW_TRIPLE();

    PL/SQL procedure successfully completed.

    SQL > rollback;

    Complete restoration.

    SQL >
    SQL > connect USEWAT/xxxxx@DB_11201.world
    Connected.
    SQL > exec ADMWAT. NEW_TRIPLE();

    PL/SQL procedure successfully complete.

    SQL >
    SQL >
    SQL >

    ************************************************************************************************************
    ************************************************************************************************************
    ************************************************************************************************************

    SQL > connect SYS/xxxxx@DB_*11203*.world as sysdba
    Connected.
    SQL > select value of MDSYS. RDF_PARAMETER where namespace = "MDSYS" and the attribute = "SEM_VERSION";

    VALUE
    --------------------------------------------------------------------------------
    * 11203 *.

    SQL >
    SQL > connect ADMWAT/xxxxx@DB_11203.world
    Connected.
    SQL >
    SQL > CREATE TABLE family_rdf_data (id NUMBER, triple SDO_RDF_TRIPLE_S);

    Table created.

    SQL >
    SQL > exec SEM_APIS.create_rdf_model ('family', 'family_rdf_data', 'three');

    PL/SQL procedure successfully completed.

    SQL >
    SQL > GRANT INSERT ON family_rdf_data in MDSYS.

    Grant succeeded.

    SQL >
    SQL > create or replace PROCEDURE NEW_TRIPLE IS
    BEGIN 2
    3 INSERT INTO family_rdf_data VALUES (1,
    4 SDO_RDF_TRIPLE_S ('family',
    5 "http://www.example.org/family/John."
    6 "http://www.example.org/family/fatherOf."
    7 'http://www.example.org/family/Suzie'));
    8 END;
    9.

    Created procedure.

    SQL >
    SQL > GRANT EXECUTE ON NEW_TRIPLE to USEWAT;
    Grant succeeded.

    SQL >
    SQL > connect ADMWAT/xxxxx@DB_11203.world
    Connected.
    SQL > exec ADMWAT. NEW_TRIPLE();

    PL/SQL procedure successfully completed.

    SQL > rollback;

    Complete restoration.

    SQL >
    SQL > connect USEWAT/xxxxx@DB_11203.world
    Connected.
    SQL > exec ADMWAT. NEW_TRIPLE();
    BEGIN ADMWAT. NEW_TRIPLE(); END;

    *
    ERROR on line 1:
    ORA-55303: SDO_RDF_TRIPLE_S constructor failed:

    SQLERRM = ORA-13199: insufficient privilege for the application of the model family table [
    ORA-06512: at the 'MDSYS. MD", line 1723
    ORA-06512: at the 'MDSYS. MDERR", line 17
    ORA-06512: at the 'MDSYS. SDO_RDF_TRIPLE_S', line 41
    ]
    ORA-06512: at the 'MDSYS. MD", line 1723
    ORA-06512: at the 'MDSYS. MDERR", line 17
    ORA-06512: at the 'MDSYS. SDO_RDF_TRIPLE_S', line 68
    ORA-06512: at "ADMWAT. NEW_TRIPLE', line 3
    ORA-06512: at line 1


    SQL >

    Published by: damien.claveau on March 26, 2012 02:02

    Damien,

    Please submit a Service request for this issue in Support of Oracle.

    Meanwhile, until a patch will be available, another possible solution, you could consider to use is to grant the DBA role to ADMWAT.

    If you want, please contact me directly by email: souripriya das at oracle dot com dot

    Thank you
    -Smiled.

  • the button new folder does not have System File Checker says no breach of integrity

    Mem of Windows 7 64 bit, Sony VAIO, 8 GB, the latest journals to install checked no found error. Keyboard shortcut for the new folder does not work, but good ciick new-folder is there and works. Said it was problem-no hard drive problems, File Checker said no violations. Did usual defrg, reg cleaner, virus scans, etc. New folder button Windows Explorer stopped working after I upgraded my backup of instant backup software Memeo Memeo Backup Premium. When I return at the moment (the button) works when I uninstall Instant, it works, but when I insall Premium button no longer works. Explore premium a integration of windows and instant does not work. I say that the problem is because of this, but of coarse Memeo said it's a hard drive issue or microsofts problem. No hard drive problem, it's almost all scanned and new directions. The registry is scanned. I played in windows since 3.0.Granted I'm not a programmer, but I put togeather computers (all Windows Basic) since the 1980s. Did do a little programming for timex sinclair Boy I'm giving my age :) away  I solved just a poblem resolved not technicians at Sony. They told me that my only option was to restore my computer to factory State and again UGH!  Found the problem of sony, a former .exe file which does not have ugraded when needed, the deleted files and the sony program now works fine!  If the ideas on my "new folder button?

    Found the answer! It was just like I thought Memeo Backup Premium has a subprogramme called backup that he mixes with the Explorer of Windows 7, uninstalled this (backup) and the new record button works again. Memeo people had me uninstall the rest of the software and gave me a link to download the software less backup. Now, I'm trying to find out if I will return my money or a fixed copy. No answer yet! But I don't think they work on Friday, so I'll have to wait beyond Monday to see if they're going to answer me. I tracked their problem they should pay me ;)

  • selection of lines by using the stored procedure

    All the

    At the risk of asking something obvious, I would like to know if it is possible to wrap a selection within a stored procedure.

    Create the abc as procedure

    Start

    date of b;

    Select sysdate into double b;

    end;

    /

    Question: I have a select complex which should be called from JAVA. I don't want to create a VIEW since at the request of the view, indeed I will do so: SELECT * FROM (my original query) which leads to performance.

    I would like to be able to:

    exec has;

    This should give me the result of

    SELECT

    x, z, c

    Of

    one

    ;

    How can I make this possible a stored procedure?

    Thank you

    Well, yes there are ways to do it, but first of all, you are mistaken in thinking that select * from , would lead to a performance overhead.  The optimizer based on CSSTidy will optimize the request to provide results without worrying so there is no noticeable performance difference.

    Java, you probably want to use a ref cursor and get java to retrieve the results back.

    Example of refcursor function (demonstrated SQL * more I don't have Java)...

    SQL > create or replace function test RETURN as sys_refcursor
    cur_o 2 sys_refcursor;
    3. start
    4. open cur_o to select empno, ename from emp;
    5 return cur_o;
    6 end;
    7.

    The function is created.

    SQL > var r refcursor;
    SQL > exec: r: = test();

    PL/SQL procedure successfully completed.

    SQL > print r;

    EMPNO, ENAME
    ---------- ----------
    7369 SMITH
    7499 ALLEN
    7521 WARD
    7566 JONES
    7654 MARTIN
    7698 BLAKE
    7782 CLARK
    7788 SCOTT
    KING 7839
    7844 TURNER
    7876 ADAMS
    JAMES 7900
    7902 FORD
    7934 MILLER

    14 selected lines.

  • use the stored procedure VARIABLE in an ODI procedure

    Hello

    I have a stored procedure that takes custId as an input parameter and returns the age as output parameter.

    custId is a varaible ODI that we spend during execution.

    I want to insert the age value in a table.

    declare
    cust_age customer_details.age%type;
    Start
    FETCH_CUSTOMER_DATA(#Customer.CustomerID,cust_age);
    end;

    INSERT INTO CUSTOMER_AGE VALUES(#customerid,*cust_age*)

    Thank you.

    Hello

    Just use the insert in an ODI procedure in an anonymous pl/sql block.

    I mean:

    declare

    cust_age customer_details.age%type;

    Start

    FETCH_CUSTOMER_DATA(#Customer.CustomerID,cust_age);

    INSERT INTO CUSTOMER_AGE VALUES(#customerid,*cust_age*);

    end;

    Ok?

    Cezar Santos
    http://odiexperts.com

  • by using the stored procedure in sql statement?

    I have the following sample tables:

    project id project name
    ====== ===============
    1 project one
    2 two project
    3 three of the project


    employee_id fname lname
    =========== =============     =====
    Amy 100a
    Better B 200
    Carrie 300 C


    project number
    ===========     ===========
    1,200 people
    2 300
    of 3 100

    There's a getFullname (empployee_id) of the procedure in place that combines the fname lname full name

    what I need to accomplish is the following.

    project is created by employee
    ==============================
    project a is created by better b
    two project is created by carrie C
    three project is created by amy A

    but the rule is: you need to call the getFullName (employee_id) procedure to perform the above task and do not use join tables to get the employee full name

    I suspect that you want something along the lines of

    SELECT 'Project ' || p.project_name || ' was created by ' || get_full_name( pe.employee_id )
      FROM project p,
           project_employee pe
     WHERE p.project_id = pe.project_id
    

    If you need other attributes in the employee table, you can join at the table of the employees as well.

    Justin

  • Favicons repeat through tabs, behind the label text when you switch between tabs. 37.0.1 sometimes the Green scroll bar does not have too

    Please mention the attached JPEGS. When I switch between tabs, favicon image repeated behind the text. In some cases, the image of the vertical scrollbar is messed up, it cleared up when I click on it. -Does not appear to affect performance, simply annoying. Thank you!

    Please temporarily disable your Avast extension to see if it has to do with it.

    Try Firefox Mode without failure:

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • The iPhone Mail uses the smtp server that does not exist

    My iphone SE mail constantly uses an smtp server that is not listed anywhere, but has been used there are 2 iphones.

    I deleted the account and smtp servers several times.

    There is only one main smtp server... not supplements

    I try to send an email whenever I get: user name and password smtp:mail06xxxxxxxx@authsmtp. Vodafone.nl is incorrect.

    vodafone is not my provider and I use the smtp server of vodafone.

    Anyone has an idea on how to address this problem?

    Have you tried to manually create the email account using the selection 'other '?

    What your email account provider?

  • After update my iPad iOS 9.2.1 to 9.3 live 2 I can't connect to the activation server and does not have the latest version of iTunes to activate

    I downloaded the update to iOS over-the-air 9.3 and installed. Setup cannot connect to the server to activate the ipad2. The message is to try again in a few minutes or connect to iTunes to activate. Yes, I have the most recent and current iTunes version, so this isn't the issue. iTunes recognizes the iPad as my ipad2, but cannot do what he done to be able to use iTunes to activate it. I have 2 iPads. iPad 2 and iPad 4th generation. iPad 4th generation downloaded on-line and updated and active and install without problem. IPad2 updated and not can not connect to the server to activate and I connect to iTunes to activate as the message says, but iTunes cannot activate because it sees my ipad2 and that's all that. Of course, I'll try again once activate WiFi tomorrow but any suggestions would be greatly appreciated.

    Thand you

    same problem with you jerryenea. This seems to happen ipad 2 only? my itunes cannot check my ipad

Maybe you are looking for

  • How to rename items in the data model?

    I'm new to BICS and tries to rename an existing view, fact or dimensions. I am able to rename the entire data model, but not the individual items. This feature is available?

  • I bought several images, when I try then the downloaded on my computer, he tries to charge me again! Any ideas? I bought a lot of images before without any problem.

    I bought several images, when I try then the downloaded on my computer, he tries to charge me again! Any ideas? I bought a lot of images before without any problem.

  • vRealize Automation 6.2 licenses

    I'm referring URL nowBuy VMware vRealize Automation, software of automation of Cloud | United StatesIt is said Automation vRealize is included in vCloud Suite or vRealize Suite . vRealize Automation is also available on individually, the price per sy

  • Monitor lun...

    Hi guysI've been looking for a tool to monitor and send - email - alerts when storage LUN o use for example exceeds 90%.is it true that Veam monitors the free edition can do this?operating system is there another to monitor and alert?Thank you very m

  • Locate an API error

    Hello I create the record in the categories of items by using the API, here is the code. / * Formatted on 17/01/2012 12:16:27 (PS5 v5.115.810.9015) * /.DECLAREl_category_rec inv_item_category_pub.category_rec_type;l_return_status VARCHAR2 (80);l_erro