Sybase - Oracle: Editing triggers/procedures clears them

Migrating from Sybase 11.0 to Oracle 8.1 I get of course
parsing errors. If I want to fix them by editing the text
of the stored procedures/views/triggers in the repository
(i.e. clicking on the window and entering text, commenting
out etc.) leads to
parsing errors ... EOF
Looking at the repository, the captured source text is now
empty. Since I have no chance to capture single procs, I have
to capture all 400+ procs, triggers, views again, which takes
long time.
Please fix this behaviour or at least allow to capture single
objects.
Regards,
Jwrg Thwnnes
null

Hi Jorg,
This is a bug and it has been fixed.You can get the fix in the
next beta release.Pls check with the Product manager on the next
release.
Thanks,
Hari
Jwrg Thwnnes (guest) wrote:
: Migrating from Sybase 11.0 to Oracle 8.1 I get of course
: parsing errors. If I want to fix them by editing the text
: of the stored procedures/views/triggers in the repository
: (i.e. clicking on the window and entering text, commenting
: out etc.) leads to
: parsing errors ... EOF
: Looking at the repository, the captured source text is now
: empty. Since I have no chance to capture single procs, I have
: to capture all 400+ procs, triggers, views again, which takes
: long time.
: Please fix this behaviour or at least allow to capture single
: objects.
: Regards,
: Jwrg Thwnnes
Oracle Technology Network
http://technet.oracle.com
null

Similar Messages

  • Calling Oracle function and Procedure using OCCI with in C++ code

    Could any body send me the sample code to create and execute Oracle function and Procedure using OCCI concept in C++?.
    Edited by: 788634 on Aug 16, 2010 4:09 AM

    Hi Vishnu,
    Yes, sure, you can create a PL/SQL procedure, function, package, package body, etc. from within an OCCI application. I would say that, generally, this is not the sort of activity a typical client application would perform unless there is some initialization/installation processes that need to happen. In any case, here is a simple demo showing how to create a stand alone procedure (in a real application I would use a package and body) that returns a ref cursor. The ref cursor is just a simple select of two columns in the hr.countries sample table. Of course, there is no error handling, object orientation, etc. in this demo - I wanted to keep the code as short and as simple as possible to illustrate the concept.
    Regards,
    Mark
    #include <occi.h>
    #include <iostream>
    using namespace std;
    using namespace oracle::occi;
    int main(void)
      // occi variables
      Environment *env;
      Connection  *con;
      Statement   *stmt;
      ResultSet   *rs;
      // database connection information
      string user = "hr";
      string passwd = "hr";
      string db = "orademo";
      // sql to create the procedure which returns a ref cursor as out parameter
      // should be run as hr sample user or in a schema that has select privilege
      // on the hr.countries table and a synonym (countries) that points to the
      // hr.countries table
      string sqlCreate =
        "create or replace procedure get_countries(p_rc out sys_refcursor) as "
        "begin"
        " open p_rc for"
        " select country_id, country_name from countries order by country_name; "
        "end;";
      // pl/sql anonymous block to call the procedure
      string sqlCall = "begin get_countries(:1); end;";
      // create a default environment for this demo
      env = Environment::createEnvironment(Environment::DEFAULT);
      cout << endl;
      // open the connection to the database
      con = env->createConnection(user, passwd, db);
      // display database version
      cout << con->getServerVersion() << endl << endl;
      // create statement object for creating procedure
      stmt = con->createStatement(sqlCreate);
      // create the procedure
      stmt->executeUpdate();
      // terminate the statement object
      con->terminateStatement(stmt);
      // now create new statement object to call procedure
      stmt = con->createStatement(sqlCall);
      // need to register the ref cursor output parameter
      stmt->registerOutParam(1, OCCICURSOR);
      // call the procedure through the anonymous block
      stmt->executeUpdate();
      // get the ref cursor as an occi resultset
      rs = stmt->getCursor(1);
      // loop through the result set
      // and write the values to the console
      while (rs->next())
        cout << rs->getString(1) << ": " << rs->getString(2) << endl;
      // close the result set after looping
      stmt->closeResultSet(rs);
      // terminate the statement object
      con->terminateStatement(stmt);
      // terminate the connection to the database
      env->terminateConnection(con);
      // terminate the environment
      Environment::terminateEnvironment(env);
      // use this as a prompt to keep the console window from
      // closing when run interactively from the IDE
      cout << endl << "ENTER to continue...";
      cin.get();
      return 0;
    }

  • I tried to create a new google calendar in ical, but they did not show up, I tried this several times. Now when I sync my iPad via iTunes all these failed attempts are showing up under the ical sync list in iTunes, how can i clear them from this list?

    I tried to create a new google calendar in ical, but they did not show up, I tried this several times.
    Now when I sync my iPad via iTunes all these failed attempts are showing up under the ical sync list in iTunes, how can I clear them from this list?

    See https://bugs.downthemall.net/ticket/2147
    Google Search Bug
    Reported by: openid:nathan wride Owned by:
    Priority: major Milestone:
    Component: Polish/Usability Version: 2.0.10
    Keywords: Google search instant save bug Cc:
    Operating System: Windows
    Description
    Hi Guys
    I have found a bug/annoying thing that occurs frequently on google. When searching, DTA trys to download the search...
    I'll try to attach a screenshot.
    Attachments
    [https://bugs.downthemall.net/attachment/ticket/2147/Screenshot.png Screenshot.png] Download (113.0 KB) - added by openid:nathan wride 4 weeks ago.
    The screenshot that shows the bug.

  • How to Insert date in 'DD/MM/YYYY' format in oracle using stored procedure?

    Hi
    How to Insert date in 'DD/MM/YYYY' format in oracle using stored procedure?
    This is my Input data.
    11/25/2007.
    By using below query, it is inserted into database.
    sql>Insert into tblname values(to_date('11/25/2007','MM/DD/YYYY'));
    But using stored procedure, the same query is not running.
    It shows error like
    ORA-01843: not a valid month ORA-06512: at line 1
    Procedure:
    create or replace procedure Date_Test(datejoin in DATE) is
    begin
    insert into datetest values(to_date(datejoin,'MM/DD/YYYY'));
    end Date_Test;
    I had used 'nls_date_language = american' also.
    Prcodeure is created but not worked in jsp. The same error is thrown.
    Pls provide a solution

    This might help you....
    SQL> Create Table DateTest(col1 Date);
    Table created.
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in DATE) is
    2 begin
    3 insert into datetest values(to_date(datejoin,'MM/DD/YYYY'));
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test('11/25/2007');
    BEGIN Date_Test('11/25/2007'); END;
    ERROR at line 1:
    ORA-01843: not a valid month
    ORA-06512: at line 1
    Elapsed: 00:00:00.00
    SQL> exec Date_Test(To_Date('11/25/2007','mm/dd/yyyy'));
    BEGIN Date_Test(To_Date('11/25/2007','mm/dd/yyyy')); END;
    ERROR at line 1:
    ORA-01843: not a valid month
    ORA-06512: at "CTBATCH.DATE_TEST", line 3
    ORA-06512: at line 1
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in DATE) is
    2 begin
    3 insert into datetest values(datejoin);
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test(To_Date('11/25/2007','mm/dd/yyyy'));
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> Select * from DateTest;
    COL1
    25-NOV-07
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in VarChar2) is
    2 begin
    3 insert into datetest values(to_date(datejoin,'mm/dd/yyyy'));
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test('11/25/2007');
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> select * from DateTest;
    COL1
    25-NOV-07
    25-NOV-07
    Elapsed: 00:00:00.00
    SQL>

  • PL/SQL ..Oracle.. Procedural Option

    I installed oracle 8i personal on my PC.
    going through the Introduction to SQL PL/SQL course. The SELECT Statement is working fine. But When I reach to write programs/scripts with ACCEPT, TTITLE, BTITLE.
    I am getting THe following Error message:
    "You can use PL/SQL only if you have ORACLE with the procedural option".
    I don't know from where I can get the procedural option.
    Please tell me what to do.
    Thanks
    Malik.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by malik riman ([email protected]):
    I installed oracle 8i personal on my PC.
    going through the Introduction to SQL PL/SQL course. The SELECT Statement is working fine. But When I reach to write programs/scripts with ACCEPT, TTITLE, BTITLE.
    I am getting THe following Error message:
    "You can use PL/SQL only if you have ORACLE with the procedural option".
    I don't know from where I can get the procedural option.
    Please tell me know what to do.
    Thanks
    Malik.<HR></BLOCKQUOTE>
    null

  • How to edit #TEMPLATE_CSS# of a theme in APEX 4.2?

    Dear Experts,
    How to edit #TEMPLATE_CSS# of a theme in APEX 4.2?
    Best Regards
    Mahmoud

    Mahmoud_Rabie wrote:
    Dear Paul,
    To be more specific, I have the following
    <link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_22/css/theme_4_0.css" type="text/css" />in my page template.
    As I know, #TEMPLATE_CSS# is substituted by content of the above file.No, it is not.
    As described above, <tt>#TEMPLATE_CSS#</tt> is replaced by the contents of the template's File URLs and Inline CSS properties. This feature enables template-level customization of the CSS included in the page. Try it: change <tt>#TEMPLATE_CSS#</tt> in the template to:
    <!-- TEMPLATE_CSS STARTS -->
    #TEMPLATE_CSS#
    <!-- TEMPLATE_CSS ENDS -->Now add a style to the Inline CSS property:
    body { background: black !important; }Run the page. View the page source in the browser and see what's happened to <tt>#TEMPLATE_CSS#</tt>...
    The question is, can I (through APEX 4.2) update this content directly to do tasks like adding or updating classes of the CSS?
    Not in the way you mean.
    File URLs and Inline are empty (by default) and ready to be used to totally replace the content of #TEMPLATE_CSS#Yes, <tt>#TEMPLATE_CSS#</tt> is replaced by the contents of the File URLs and Inline template properties. This does not affect the inclusion of any other CSS information, whether using new CSS substitution strings, <tt>&lt;link rel="stylesheet" ...&gt;</tt> elements, or embedded <tt>&lt;style&gt;</tt> declarations.
    Is the only solution to update/edit the CSS of a theme, to download the CSS then paste it in Inline field (under CSS section of the template)?No. If you want a custom theme the best way is:
    1. Copy the theme CSS to an accessible location in the file system (the best way) or APEX repository (if you don't have file system access).
    2. Create a new theme as a copy in APEX.
    3. Change the <tt>&lt;link rel="stylesheet" ...&gt;</tt> theme references in the new theme page templates to point to the new CSS location.
    4. Customize the CSS (tools like Coda that allow local and remote files to be modified are very helpful).

  • How do I clear apps after I've updated them. They show open, I just can't figure out how to clear them...

    Updated to ios7, but now I can't clear them out of the apps file.

    Currently, there is no way to remove them from the App Updates tab of the App Store. It seems that this is normal and expected behavior in iOS 7 now.

  • Transferring data from MS SQL Server to Oracle through Oracle's Stroed Procedure

    Hi,
    I need to access 3 tables of MS SQL Server database through oracle's Stroed procedure.
    Is It possible? if yes how to do?
    is there any way of accomplishing this?

    Yes. Using Attunity Connect native drivers for Oracle. Attunity Connect drivers are also licensed and resold by Oracle under the name "Oracle Transparent Gateways" or "Oracle Eterogeneous Services".
    The OEM Oracle driver are "light" ones. The Attunity drivers are more complete. Consult www.attunity.com

  • Which Oracle Edition installed

    Hi,
    how can i easy determine which Oracle Database Edition ist installed (Enterprise, Standard or Standard One)?
    Thanks in advance.
    Regards
    Martin

    There is no specific command that directly shows whether an installation is an Enterprise Edition or a Standard Edition.
    However, there are multiple places that can be checked for the actually installed Oracle Edition. e.g.
    1) The SQL*Plus banner
    2) From the installation logs created while installation of the software
    Location: $ORACLE_HOME/cfgtoollogs/oui
    installActions<timestamp>.log file also shows the installed Oracle Edition in several places.
    The 'Summary Page' shows what type of installation have been selected,
    i.e. Standard for SE, Enterprise or Custom for EE
    3) invoke the OUI GUI and check the installed products (should show the type of installation)

  • How to compile Oracle java strored procedure in Putty

    I have created a java strored procedure , which would be invoked by oracle function.
    This java stored procedure is get compiled via SQL plus. While compiling by the use of putty , it shows lots of compilation error .
    How to compile Oracle java strored procedure in Putty??

    You'll need to add the j2ee.jar to your classpath. Usually you'll have to add some jars from your app server to your classpath as well.
    For example (using weblogic):
    javac -classpath c:\java\j2ee\j2ee1.3.1\lib\j2ee.jar;c:\tools\appserver\weblogic\wl7.1\lib\weblogic.jar
    HelloServlet.java

  • How to edit stored procedure from sqlplus ?

    Hi,
    Can anyone advise how to edit stored procedure from sqlplus ?
    Many thanks.

    You can get the source for an object from SQL*Plus by querying the user_source table, i.e.
    SQL> create procedure foo
      2  as
      3  begin
      4    dbms_output.put_line( 'foo' );
      5  end;
      6  /
    Procedure created.
    SQL> select text
      2    from user_source
      3   where name = 'FOO'
      4   order by line;
    TEXT
    procedure foo
    as
    begin
      dbms_output.put_line( 'foo' );
    end;Most commonly, though, if you are using SQL*Plus and a text editor to develop stored procedures, you will have all your stored procedures in .sql files that you edit and just use SQL*Plus to create (or recreate) the stored procedures.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Creating a Oracle 10g stored procedure as a datasource for  crystal 9 repor

    Can someone direct me to instructions or information on how to create a Oracle 10g stored procedure as a datasource for  my Crystal  Reports 9.0  report?

    i've found this example for you
    http://www.pdssoftware.com/newsletter/mar07/page6.htm
    and you could be able to get the guides from the SAP guide website for the products
    http://help.sap.com/businessobject/product_guides/
    hope this was helpful
    good luck
    Amr

  • How to view list of all constraints,triggers,procedures ...etc

    hi,
    how to view a list of all the available constraints, triggers, procedures, functions, packages in a database.And how to view its definition ?

    user12222356 wrote:
    And how to view its definition ?If by definition you mean DDL to create it, use DBMS_METADATA:
    SELECT  DBMS_METADATA.GET_DDL(object_type,object_name,owner)
      FROM  DBA_OBJECTS
      WHERE OBJECT_TYPE IN ('TRIGGER','PROCEDURE','FUNCTION' )
    /For example:
    SET LONG 10000
    SELECT  DBMS_METADATA.GET_DDL(object_type,object_name,owner)
      FROM  DBA_OBJECTS
      WHERE OBJECT_TYPE IN ('TRIGGER','PROCEDURE','FUNCTION' )
    DBMS_METADATA.GET_DDL(OBJECT_TYPE,OBJECT_NAME,OWNER)
      CREATE OR REPLACE PROCEDURE "SYS"."SUBPTXT2" (name varchar2, subname varchar2,
    usr varchar2,
                                 dbname varchar2, dbowner varchar2,
                                 txt in out varchar2) is
    status diutil.ub4;
    begin -- main
        diutil.subptxt(name, subname, usr, dbname, dbowner, txt, status);
        if (status <> diutil.s_ok) then
            if (status = diutil.s_subpNotFound) then
    DBMS_METADATA.GET_DDL(OBJECT_TYPE,OBJECT_NAME,OWNER)
                txt := '$$$ s_subpNotFound';
            elsif (status = diutil.s_stubTooLong) then
                txt := '$$$ s_stubTooLong';
            elsif (status = diutil.s_logic) then
                txt := '$$$ s_logic';
            elsif (status = diutil.s_notInPackage) then
                txt := '$$$ s_notInPackage';
            else txt := '$$$ s_other';
            end if;
        end if;
    end subptxt2;
    DBMS_METADATA.GET_DDL(OBJECT_TYPE,OBJECT_NAME,OWNER)
    SQL> SY.

  • I had a trial version of Pages for 30 days and then purchased the actual software without removing the trial. Now when I try to edit documents and save them it wont because it tells me I am using a trial version.... How can I remove the trial version?

    I had a trial version of Pages for 30 days and then purchased the actual software without removing the trial. Now when I try to edit documents and save them it sometimes wont because it tells me I am using a trial version.... But sometimes it lets me!! How can I remove the trial version? I cannot tell which one I am using when I open it....

    Question asked and answered quite once a week.
    Go to my iDisk (address below)
    and download :
    For_iWork:iWork '09:uninstall iWork '09.zip
    Run it then reinstall the purchased software.
    Yvan KOENIG (VALLAURIS, France)  vendredi 2 janvier 2011 16:21:41
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please :
    Search for questions similar to your own
    before submitting them to the community

  • HT3951 I have several tv episodes stuck in my downloads on my iPad. I receive an error, unable to download when I try to resume downloading. I can't clear them out of the download queue. How do I get rid of these from download?

    I have several tv episodes stuck in my downloads on my iPad. I receive an error, unable to download when I try to resume downloading. I can't clear them out of the download queue. How do I get rid of these from download?

    You can always finish the downloads in iTunes on your computer and then the TV Shows to the iPad. Launch iTunes and go to Store>Check for available downloads. Finish the downloads and then sync the iPad.
    As far as trying to finish the downloads on the iPad .....
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>Store>Sign in and then try to download again.

Maybe you are looking for

  • How can i load file into database from client-side to server-side

    i want to upload file from client-side to server-side, i use the following code to load blob into database. if the file is in the server-side, it can work, but if it in the client-side, it said that the system cannot find the file. i think it only wi

  • Links - How to reorder links within a folder. Also, how to make folders open in a tree view?

    I'm working on a portal in Sharepoint 2007. It appears that I can only have one set of "Links" on a page, so I am grouping my related links into folders. I'm having two issues with this... #1. I need to change the order of the links within a folder.

  • Check Number after F110

    After I run F110 (Automatic Payment Program), the check number of the payment document doesnot get populated in the Assignment field of the Vendor Balance display? This would lead to problems in BRS. Kindly advice how to get the check num bers in the

  • Problems synchronizing photos in photostream

    My photo stream reached the limit of 1000. Therefore it stopped loading. After deleting some, the newest photos still do not appear in the stream. Does this mean photo stream does not recognize them as new? How to get them in photo stream?

  • Help! install jdk in redhat 7.1 linux

    I installed jdk1.3.1-02 in redhat7.1 ,and changed profile ,but when I type java -version it shows Kaffe Virtual Machine Copyright (c) 1996-2000 Transvirtual Techologies ,Inc ,All rights reserved Engine:Just-in time v3 Version:1.0.6 Java Version :1.1