Generate-Script generates only create package not create or replace package

Hello,
I try do work with the Oracle Developer Tools for Visual Studio 2010 to include my PL/SQL-code in TFS. I have include all my PL/SQL-code in a Oracle-Projekt and check it in. Than I'm working with Visual Studio to update my packages. I open a package from the Server-Explorer, debug and compile it. When finished, I want to check in the new code. For this I call Generate Create-Script in the Server-Explorer and save the code my project. This code starts with CREATE PACKAGE ...
If I start this script on our production-system I get the error ORA-00955: Es gibt bereits ein Objekt mit diesem Namen (There is a object with this name ...). So it would be better the Create-Script would start with CREATE OR REPLACE PACKAGE .... Is there a way to do this? When not, what is the recommended workflow for coding, debugging, compiling and checking in TFS?
Thanks
Peter

Same remark here...

Similar Messages

  • Create or replace

    Hi friends,
    I know timestamp column in the user objects will change when the parameters in the procedure changes.. But I would like to know will 'create or replace procedure' change the last_ddl_time in user_objects view? I ran 'create or replace procedure' last_ddl_time was updated in test database but not in the production database.. not sure why... any help please
    Thanks so much
    Edited by: newbiegal on Mar 11, 2013 7:01 AM

    Girish Sharma wrote:
    Only create or replace of a procedure do not updates last_ddl_time. Last_ddl_time is only updated on the compilation of procedure; so just try to execute the procedure and now check last_ddl_time.
    A good example at below link :
    http://oraclespin.wordpress.com/tag/last_ddl_time/
    Regards
    Girish SharmaYes, recompilation modify the last_ddl_time.
    Look my example:
    Create a new procedure:
    SQL> create or replace procedure test_new is
    begin
       dbms_output.put_line('Hello World!');
    end;
    Procedure created.
    SQL> select to_char(created,'dd/mm/yyyy hh24:mi:ss'), to_char(last_ddl_time,'dd/mm/yyyy hh24:mi:ss'), timestamp
    from dba_objects
    where owner='SYSTEM'
    and object_name='TEST_NEW';  2    3    4
    TO_CHAR(CREATED,'DD TO_CHAR(LAST_DDL_TI TIMESTAMP
    11/03/2013 15:31:08 11/03/2013 15:31:08 2013-03-11:15:31:08Perform a create or replace :
    SQL> create or replace procedure test_new is
    begin
       dbms_output.put_line('Hello World!');
    end;
    /  2    3    4    5
    Procedure created.
    SQL> select to_char(created,'dd/mm/yyyy hh24:mi:ss'), to_char(last_ddl_time,'dd/mm/yyyy hh24:mi:ss'), timestamp
    from dba_objects
    where owner='SYSTEM'
    and object_name='TEST_NEW';  2    3    4
    TO_CHAR(CREATED,'DD TO_CHAR(LAST_DDL_TI TIMESTAMP
    11/03/2013 15:31:08 11/03/2013 15:31:08 2013-03-11:15:31:08Date is not changed.
    Now perfom an alter:
    SQL> alter procedure TEST_NEW compile;
    Procedure altered.
    SQL> select to_char(created,'dd/mm/yyyy hh24:mi:ss'), to_char(last_ddl_time,'dd/mm/yyyy hh24:mi:ss'), timestamp
    from dba_objects
    where owner='SYSTEM'
    and object_name='TEST_NEW';  2    3    4
    TO_CHAR(CREATED,'DD TO_CHAR(LAST_DDL_TI TIMESTAMP
    11/03/2013 15:31:08 11/03/2013 15:39:35 2013-03-11:15:36:53last_ddl_time is changed.
    Edited by: Mr.D. on 11-mar-2013 7.42

  • Generate Script to Project doesn't  generate CREATE OR REPLACE objects

    Hi,
    I am using VS2008 SP1 with ODT. If I go to ServerExplorer to connected database and run Generate Script to Project the object (Package, package body , function ...) is always
    created to the project as CREATE function myfunction.
    I need to have it in this way CREATE OR REPLACE ... to run it against database.
    Is there any way to configure it somehow ?
    Thanks in advance
    Jörg

    Hi there is currently no way to automatically generate CREATE or REPLACE instead of just CREATE. You'll need to manually modify the file to add the "or REPLACE" to the stmt or add a DROP line just before the CREATE stmt.

  • Spool not generated when creating the TO from TR

    Hello,
    I am facing a issue while creating Transfer order. My scenario is like below:
    1) Create Goods issue MB1A with two items
    2) Create Transfer order from Material document
    3) TO is created with 2 items
    4) But spool is generated only for one item.
    As per my analysis, the TO line item with storage unit which starts with 3* gives a spool while the second item with storage unit which starts 9* does not generate a spool.
    But when I print the TO manually  in LT31, I am able to see the spool for both items.
    Please help me if you have any idea.
    Thanks & Regards,
    Sainath

    Hello,
    Please see the attached spool output when TO is printed manually LT31.
    However, when the TO is printed automatically, one spool will be displayed in SP02.
    Please let me know if you need any more clarifications.
    Thanks,
    Sainath

  • Change pointers are not generated when creating a material master

    Dear Experts,  
    Change pointers are not generated when creating a material master. 
    However, when a change is made to the already created material, the change pointers are created according the fields in BD52.  
    Am I missing any settings?
    I need to create change pointers immediately when I create the material master in MM01.  
    Please suggest. 
    Regards,
    Shetty

    did you follow the steps given in
    http://help.sap.com/saphelp_nw73/helpdata/en/4a/6dcbe9c95261a3e10000000a421937/frameset.htm

  • When I generate the "Create Process Manual" Report I'm not getting any links

    Hi
    I have a BPMN diagram in Oracle BPA 11.1.1.3. Many activities have links. When I generate the "Create Process Manual" report I don't get any links.
    Regards

    Thanks, HDMI does not appear to be option in either output or sound effects. Even when connect the RCA to the headphone jack. then and option appears in both output and sound effects, heaphones. Still not working.

  • SQL Developer 1.5.1 - warning messages generated by CREATE TABLE

    Hi,
    Have an issue with a CREATE TABLE statement - it works correctly, but generates a warning message when used in SQL Developer (1.2 or 1.5.1). Full test case below:
    Setup:
    drop table samplenames;
    drop table customers;
    drop table phones;
    drop table customers_phone;
    drop sequence primkey;
    create table samplenames
    (name VARCHAR2(10));
    insert into samplenames values ('dan');
    insert into samplenames values ('joe');
    insert into samplenames values ('bob');
    insert into samplenames values ('sam');
    insert into samplenames values ('weslington');
    insert into samplenames values ('sue');
    insert into samplenames values ('ann');
    insert into samplenames values ('mary');
    insert into samplenames values ('pam');
    insert into samplenames values ('lucy');
    create sequence primkey
    start with 1000000
    increment by 1;
    create table customers as
    select primkey.nextval as cust_id,
    tmp1.name || tmp2.name as first_name,
    tmp3.name || tmp4.name || tmp5.name as last_name
    from samplenames tmp1,
    samplenames tmp2,
    samplenames tmp3,
    samplenames tmp4,
    samplenames tmp5;
    CREATE TABLE PHONES AS
    SELECT cust_id, 'H' as phn_loc, trunc(dbms_random.value(100,999)) as area_cde,
    trunc(dbms_random.value(1000000,9999999)) as phn_num
    FROM customers;
    INSERT INTO PHONES
    SELECT cust_id, 'B' as phn_loc, trunc(dbms_random.value(100,999)) as area_cde,
    trunc(dbms_random.value(1000000,9999999)) as phn_num
    FROM customers;
    --randomly delete ~10% of records to make sure nulls are handled correctly.
    delete from phones
    where MOD(area_cde + phn_num, 10) = 0;
    create table statement (there are legacy reasons for why this is written the way it is):
    CREATE TABLE customers_phone NOLOGGING AS
    SELECT cst.*,
    piv.HOME_PHONE,
    piv.WORK_PHONE
    FROM (SELECT cust_id,
    MAX(decode(phn_loc, 'H', '(' || area_cde || ') ' ||
    substr(phn_num,1,3) || '-' || substr(phn_num,4,4), NULL)) AS HOME_PHONE,
    MAX(decode(phn_loc, 'B', '(' || area_cde || ') ' ||
    substr(phn_num,1,3) || '-' || substr(phn_num,4,4), NULL)) AS WORK_PHONE
    FROM phones phn
    WHERE phn_loc IN ('H', 'B')
    AND cust_id IS NOT NULL
    AND EXISTS (SELECT NULL
    FROM customers
    WHERE cust_id = phn.cust_id)
    GROUP BY cust_id) piv,
    customers cst
    WHERE cst.cust_id = piv.cust_id (+)
    Warning message output:
    "Error starting at line 1 in command:
    CREATE TABLE customers_phone NOLOGGING AS
    SELECT cst.*,
    piv.HOME_PHONE,
    piv.WORK_PHONE
    FROM (SELECT cust_id,
    MAX(decode(phn_loc, 'H', '(' || area_cde || ') ' || substr(phn_num,1,3) || '-' || substr(phn_num,4,4), NULL)) AS HOME_PHONE,
    MAX(decode(phn_loc, 'B', '(' || area_cde || ') ' || substr(phn_num,1,3) || '-' || substr(phn_num,4,4), NULL)) AS WORK_PHONE
    FROM phones phn
    WHERE phn_loc IN ('H', 'B')
    AND cust_id IS NOT NULL
    AND EXISTS (SELECT NULL
    FROM customers
    WHERE cust_id = phn.cust_id)
    GROUP BY cust_id) piv,
    customers cst
    WHERE cst.cust_id = piv.cust_id (+)
    Error report:
    SQL Command: CREATE TABLE
    Failed: Warning: execution completed with warning"
    I am on 10.2.0.3. The CREATE TABLE always completes successfully, but the warning bugs me, and I have had no success tracking it down since there is no associated numberr.
    Anyone have any ideas?

    Hi ,
    The Oracle JDBC driver is returning this warning so I will be logging an issue with them, but for the moment SQL Developer will continue to report the warning as is.
    The reason for the warning is not clear or documented as far as I can tell,
    but I have replicated the issue with a simpler testcase which makes it easier to have a guess about the issue :)
    ----START
    DROP TABLE sourcetable ;
    CREATE TABLE sourcetable(col1 char);
    INSERT INTO sourcetable VALUES('M');
    DROP TABLE customers_phone;
    CREATE TABLE customers_phone AS
    SELECT MAX(decode(col1, 'm','OK' , NULL)) COLALIAS
    FROM sourcetable;
    ----END
    The warning occurs in the above script in SQL Developer , but not in SQL*Plus.
    The warning disappears when we change 'm' to 'M'.
    The warning disappears when we change NULL to 'OK2'
    In all cases the table creates successfully and the appropriate values inserted.
    My gut feeling is ...
    During the definition of customers_phone, Oracle has to work out what the COLALIAS datatype is.
    When it sees NULL as the only alternative (as sourcetable.col1 = 'M' not 'm') it throws up a warning. It then has to rely on the 'OK' value to define the COLALIAS datatype, even though the 'OK' value wont be inserted as sourcetable.col1 = 'M' and not 'm'. So Oracle makes the correct decision to define the COLALIAS as VARCHAR2(2), but the warning is just to say it had to use the alternative value to define the column.
    Why SQL*Plus does not report it and JDBC does, I'm not sure. Either way it doesn't look like a real issue.
    Again, this is just a guess and not a fact.
    Just though an update was in order.
    Regards,
    Dermot.

  • Why can I only create 4 forms when I have purchased the entire package at 100+ dollars?

    Why can I only create 4 forms when I have purchased the entire package at 100+ dollars?

    FormsCentral can be used from anywhere, but to purchase a subscription you need a credit card with the mailing address in one of the countries supported for purcahse:
    http://forums.adobe.com/docs/DOC-1375
    The partner can purchase if they have access to a card in one of those countries.  Alternatively they do not need to purchase a subscription to edit forms that you've created, they do in order to create multiple forms of their own, but by your sharing forms with them at the "Co-author" level they have access to the editing.  Here are the instructions to share a form:
    http://forums.adobe.com/docs/DOC-2462
    Thanks,
    Josh

  • How to configure wokflow for MRP generated  & manually created PR

    Dear Gurus,
    I have to customize SAP workflow for releasing Purchase requisitions. I will be using enhancement M06B0001 for my own role resolution.
    I have some questions regarding workflow
    1)     How to configure workflow for MRP generated & manually created PR?What are the steps? what are the limitations in doing so?
    2)     Since we are facing the problem of insufficient user license ,How to send notifications to NON SAP users?(We have thought of creating a Z table for the same)
    Looking forward to your reply,
      Thanks in advance,
    Best regards
    Tushar
    SAP MM Consultant

    Dear Mike,
    Thanks for your reply, & sorry for not responding on time.
      Here are my constraints:
    1) Not a single component of HR module will be implemented.(Project management decision:-()
    2) Number of user licenses are less, considering the workflow users.(Hence we have thought of creating Z table for employee nos. & EMAIL IDs ,& this table will be accessed by using M06B0001 user exit.(It is still in development phase. Truely speaking, dont know whether it will work or not).If this works out ,then I believe, record from SU01 will not be used (Please correct me here).
    3)We have 2 instances on development server.(in short,2 separate installations on same server by creating additional instance). What are the implications of this particular system landscape on workflow? Whether workflow will work or not??:-(, :-(.
    The reason I asked you 3rd question is , As soon as 2 nd instance was created on development server, Short Dumps are coming while running transactions of Workflow builder.(SWDD & PFTC).It is giving error" Table is unknown or does not exist". Description of error says"The current program"SAPLSWF3 had to be terminated because one of the statements could not be executed."
    "An SAP Open SQL Statement contains a table that does not exist in the database or is not listed in the ABAP Data dictionary.The Table is "SWF_WFPDSC" or another table is accessed in the statement.
    Program=SAPLSWF3
    Include=LSWF3U05
    Row=22
    Module name=SWF_WFP_REPOSITORY_CONTENT_GET
    The same dump is coming while accessing SWF_WFPVW table from SE16.
    Request to Mike & all of you, help me in this regard.
      Thanks in Advance,
    Regards,
    Tushar

  • EEM script that generates only 1 email when a fxs port is offhook.

    Using the below config I am able to receive a email anytime my voice port is in any other state than ON HOOK. The problem I have is the script runs every 30 seconds and I receive an email every 30 seconds the line is in any other state than "ON-HOOK". 
    Is there a way to have only one email generated ONLY when the state changes from the previous state? 
    example : the line is on-hook, changes to off-hook or park or whatever- a email would be generated.  ( only One email). not one every 30 seconds...
                   The line goes from Off-Hook back to IDLE.  - A email would be generated to advise the line has been restored to a IDLE state. 
        I know what you're  thinking why? Well I was thinking of using the analog ports as kind of a poor man's slightly intelligent surveillance system. If port 1/0/0 goes off hook or shorted, then this is an alarm condition. A email would be generated. I just don't need a email every 30 seconds.  
    scheduler allocate 20000 1000
    event manager environment _email_from [email protected]
    event manager environment _email_to email [email protected]
    event manager environment _email_server smtp-server.isp.net
    event manager applet check_1/0/0_if_NOT_ONHOOK
     event timer watchdog time 30
     action 001 cli command "enable"
     action 002 cli command "show voice port summ | include 1/0/0"
     action 003 foreach line "$_cli_result" "\n"
     action 004  regexp "on-hook" "$line"
     action 005  if $_regexp_result eq "1"
     action 006   exit 0
     action 007  end
     action 008 end
     action 009 syslog msg "PORT_1_is_in_any_other_state_then_on-HooK!"
     action 1.0 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "$_event_pub_time:Test EEM port 1/0/0 is SHORTED ie IN ALARM" body "TEST Body"
    end
    Any ideas?

    Look at EEM context to save the value of a variable across policy runs.  So you could retrieve the value of the context and compare it to the current value, if they are different then send an email and if they are the same then no action.
    http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/command/eem-cr-book/eem-cr-a1.html#wp2399063000
    The first time your updated policy runs and executes the context retrieve there will not be a value since you have to do a context save first.   To get around this make a second policy that runs at reboot to do a context save of the "on-hook" state.

  • Install package generated with OSP does not wok on Linux

    Hi!
    I have generated an install package of my product using Oracle Software Packager 2.2.0.14.0. I have tested it on Windows and Linux systems. I have found that is works properly on Windows but on Linux the installer does not even copies the files to the machine. I have set to the filegroups in the OSP to be copied on all platforms.
    Why the installation does not work on Linux if the settings are correct?
    Can anyone give me a solution?
    Arpad

    Use
    . .bash_profile
    P.S. Where did you find the information to use
    .bash_profile. I would expect you to set the
    classpath in .bashrc, .profile or, to allow all to
    get the same environment, in /etc/bashrc .I tried . .bash_profile and got this answer:
    bash: CLASSPATH: command not foundAnd I don't recall how I decided to use .bash_profile, but .profile doesn't exist and I don't understand the syntax in .bashrc and it frightens me.

  • When pressing the "R" on the keyboard to record the following pop up - "Beta-only warning message-not to be localized Can't create record files please report" and then this "error occurred Result= -48"  What does this mean?

    When pressing the "R" key on the keyboard to record the following pops up - "Beta-only warning message-not to be localized.  Can't create record file, Please Report"  I press O.K. and this pops up - "Error occurred Result= -48".  Can't figure out why.  First time I have every had problems>  What's up with this?

    a -48 error is a duplicate filename.
    the first things i'd try are the oddball problems fixes:
    http://www.bulletsandbones.com/GB/GBFAQ.html#oddballprobs
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • EA3/EA2/EA1 - Script output when creating/altering objects

    Another picky post :)
    I noticed something odd with the script output when altering objects as part of running a script (F5). When running an alter command with more than a two separating characters (ie space, tab or new line) between any of the alter, object type or object name, the object name is not reported in the script output. However, when there is only a single separating character, the object name is reported in the script output. If I have three separating characters between the alter and the object type, the object type isn't reported in the script output either.
    For example:
    alter view  my_view compile;
    alter  view my_view compile;
    alter view my_view compile;
    alter   view my_view compile;Generates the following in script output:
    alter view  succeeded.
    alter  view succeeded.
    alter view my_view succeeded.
    alter   succeeded.When running the first three of these as a statement (F9), the status line shows "alter view Statement Processed". When running the last one, we only get "alter Statement Processed".

    Also noticed that there is a similar problem with create statements, for example:
    create or replace force view my_view as select * from dual;
    create  or replace force view my_view as select * from dual;
    create or  replace force view my_view as select * from dual;
    create or replace  force view my_view as select * from dual;
    create or replace force  view my_view as select * from dual;
    create or replace view my_view as select * from dual;
    create  or replace view my_view as select * from dual;
    create or  replace view my_view as select * from dual;
    create or replace  view my_view as select * from dual;Generates the following script output:
    create or replace force succeeded.
    create  succeeded.
    create or succeeded.
    create or replace  succeeded.
    create or replace force succeeded.
    create or replace view succeeded.
    create  succeeded.
    create or succeeded.
    create or replace  succeeded.Note that in this case the feedback on the status line when running each of these as a statement matches the script output (except succeeded is replaced by Statement Processed).

  • Ukelele generated custom keyboard layouts not working in Lion?

    I asked this question in the stackexchange site a few days ago.  Nothing I've tried has worked so far, except for creating a new account.  Because a fresh account works, it's got to be something with my preferences, right?
    http://apple.stackexchange.com/questions/21691/ukelele-generated-custom-keyboard -layouts-not-working-in-lion
    Here's the question from above:
    I created a custom keyboard layout with Ukelele (http://scripts.sil.org/ukelele) in Snow Leopard (idea is to generate scandinavian letters with Alt-key, otherwise have a pretty much standard U.S. layout). After the upgrade, the old installed (to ~/Library/Keyboard Layouts) layout wasn't working.
    Ukelele seems to work OK in Lion, but whether I put the generated keylayout in a bundle or single file, or save it "/Library/Keyboard Layouts" or "~/Library/Keyboard Layouts" doesn't seem to matter.
    Help?
    EDIT:
    @Sergio, I cannot choose the layout in Input Sources. One keylayout file I tried:http://semeai.org/~sjl/us-scands.keylayout
    [EDIT: Removed unrelated stuff]
    UPDATE 2011/08/15:
    @Tom:
    Copied your keylayout (it naturally ended up in my Junk folder):
    midgard (01:55) >ls -l ~/Library/Keyboard\ Layouts/MongolianQWERTY.keylayout-rw-r--r--@ 1 sjl  staff  44536 Mar 13  2008 /Users/sjl/Library/Keyboard Layouts/MongolianQWERTY.keylayout
    Logged out, logged in, isn't showing in Input sources (I'm looking very closely between "Maori" and "Myanmar - QWERTY").
    I've also uninstalled bunch of software and plugins giving suspicious messages to system.log, but hasn't helped.
    UPDATE 2011/08/16:
    I created a test account, and lo, the layout works perfectly for it. Also the bug in preferences doesn't show for that account. When trying this on my own account, there are no errors in Console logs with the suggested keywords (I can't seem to locate console.log file, though).
    UPDATE 2011/08/16 later:
    Nuking Library/Caches (and relogging) didn't help.
    UPDATE 2011/08/17:
    I did
    % find Library -name "*.plist" -exec mv {} {}.renamed \;
    and restarted, but it didn't help. I restored the situation with
    % for file in `find Library -name "*.plist.renamed"`; \  do mv "$file" "${file//.renamed/}"; done
    addendum: I also went through all the .plist files with plutil -s as described inhttp://www.askdavetaylor.com/can_i_check_my_plist_files_in_mac_os_x_for_problems .html. There was some brokennes, but in very unrelated applications.

    Tom,
    I think I love you.
    That absolutely did it! Thanks so much!
    If you'll answer with the same link in the stackexchange site, I'll mark the answer as correct, so you'll get the rep there.
    Thanks,
    Sami

  • Is table maintenance generator only for custom table?

    hi ,
    i have doubt is table maintenance generator only for custom table?

    hi swamya,
    Table Maintanance Generator is used to create/change/delete table entries in a particular table.
    In the production system, end-users will not be having access to transaction codes like SE11 and SE16. Developers will not be having access to many transaction codes including the above two.To view the contents of the database table, we will use SE16n in Production system. All these authorizations will be maintained by BASIS team, by creating access profiles.So in order to edit or create the contents of a database table, we should go for table maintenance generator. In real time, authorizations will be maintained in production system.
    The second reason is, we can edit or create multiple entries at a time, using tablemaintenance generator.
    Apart from that we have options like 'Enter conditions' in table maintenance screen SM30.
    hope this helps in clearing ur doubt.
    Regards
    Saurabh

Maybe you are looking for

  • How do I get steam games to run on my thunderbolt display instead of the macbook screen

    I can't get steam to run on my thunderbolt display, only the Macbook display...??

  • Cross company sales / Inter company sales ( STO ) in Is- retail

    Hi All, I need your help in understanding how sales occur between two different company codes in Is-retail. As far as retail is concern the sales doc OR is created automatically based on the POS inbound data. Please provide me input to understand how

  • I need help with my installation

    So I get the Disk for OS X 10.4. And installed it and everything has worked fine up to after the restart. Now it is asking for my serial number and yet when i enter it, it was it has expired or the server time is incorrect, yet i can't do anything ab

  • Firefox crashes Plug in

    Firefox has been continuously crashing and then stating that firefox plug-in has crashed. And, it still crashes on Firefox Safemode. Please Respond ASAP; It's unfortunately Exam Week.. bp-7f1efe33-6c8f-4aa2-a447-452de2140919 bp-7f1efe33-6c8f-4aa2-a44

  • Sudha_mp  HELP!!!!  sudha_mp

    I have seen your profile and i got to know that u r extremely intelligent gal. I really need ur assistance, so please help me some matters my personal mail id is [email protected] and m id on this forum is "Deepakar". My Problem is : I want to displa