Stored Procs not migrating to Oracle.

I am using Oracle 8.1.5 work bench version 2.0.2.0.0. using SQLSERVER plug-in.
I am able to successfully capture the source database from SQLSERVER. After creating the Oracle Model the Oracle Model tab is not showing all the user objects (tables, proc etc). But when I generate the Oracle database I see all the tables/indexes and data. The problem is it did not create my stored procedures.
Can we use the work bench to migrate Stored procedures from SQLSERVER to Oracle ?
Stored Procedures are not migrating to ORacle.
Help is appreciated.
-Ramesh.

Are you seeing any errors.
The Workbench will migrate stored procedures usually they are migrated to the 'sa' user in Oracle.
Please contact [email protected] if you have any more issues.
Regards
John

Similar Messages

  • Schedule Java Stored Proc in DBMS_JOB in Oracle 9.2

    Is it possible to schedule a Java Stored Proc in DBMS_JOB?
    If so, any example would be helpful.
    Thanks
    Siva

    Hi,
    There seems to be a good example here
    http://oraclegeek.net/joomla/content/view/16/32/1/2/
    Hope this helps,
    Ravi.

  • Create a stored proc, not replace it

    We have a number of stored procedures that our clients can customize. We would like to develop a general method of scripting this procs such that if the stored procedure is not present, it will create it but if it is not present, it will leave it alone. We really want to be able to do this without the users seeing any error messages.

    I misstated my question. Let me try again: We have a number of stored procedures that our clients can customize. We would like to develop a general method of scripting this procs such that if the stored procedure is not present, it will create it but if it is present, it will leave it alone. We really want to be able to do this without the users seeing any error messages.

  • Can't run stored proc after migration to Active Directory

    I just moved our company's SQL server 2000 server from our
    old NT domain to our new Active Directory. After makign this
    switch, i noticed one thing that won't work right.
    it is a coldfusion page that calls a stored procedure on the
    SQL server using the followign code:L
    <cfstoredproc procedure="dbo.erehabDTS_import"
    datasource="#Application.DSN#"
    returncode="yes">
    the stored procedure then calls a DTS package which imports
    data from a text file (uploaded by the CF page) into a SQL server
    table. It all worked before moving to active directory, but now
    when i run the CF page, i get the following error:
    Error Executing Database Query.
    [Macromedia][SQLServer JDBC Driver][SQLServer]xpsql.cpp:
    Error 1788 from LogonUserW on line 620
    Error Code: HY000
    NativeErrorCode: 50001
    can someone please help?

    If you are not already using the latest JDBC drivers (ver
    3.5), upgrade to them. The new microsoft sql driver has updated
    code for doing NTAuthentication logins. Test with it.
    Get the
    Technote
    and download the zip. Apply both files as indicated. There are
    instructions for using NTAuth in the technote. Make sure to follow
    those. If you are using ntauth., make sure the ColdFusionMX
    application service is running as that user in the services
    applet.

  • Perl and stored proc question

    Hello,
    I have used ASP w/ many SQL Server stored procs before and many Oracle stored procs with Java before, but I have yet to embark on calling stored procs from Perl.
    My current insert has been like this:
    my $dbh = DBIConnect->connect;     
    my $query1;
    $query1 = "INSERT into DEFAULT_PROJECT (NAME, EMAIL, LOCATION,PHONE,MGRNAME,MGREMAIL,"
        ."PROJNAME,PROJ_LOC,SPON_DEPT,SPON_BUS,PROJ_TYPE)
    ."values (?,?,?,?,?,?,?,?,?,?,?);"But am looking to replicate an equivalent call to an SP. ok, I've created my multi-table insert in SQL Plus, in PL/SQL, and it's just fine, no errors.
    Now I need to make the call.
    I've seen a few different things, including the use of DBIx like
    DBIx::ProcedureCall qw(sysdate);
    I've also seen something like
      $csr =  $dbh->prepare(q{
        BEGIN
          DEFPROJ_FORM_INSERTION;
        END;
       $csr->execute;I'm a bit confused having tried to shake down the CPAN board for a while with little luck.
    Anyone out there know how that call might look or go, given the supplied parameters and stored proc. name?
    I'd assume I'd be assigning the parameterized values much like I am now.
    Can any Perl/Oracle users out there shed any light on this?
    Thanks!

    alright, so I could not get that to work, but just to validate the insert statement I tried to alter it from an SP to a normal dynamic insert SQL statement.
    I get an Oracle error citing
    errERROR: Could not execute SQL! Error: ORA-00911: invalid character (DBD ERROR: OCIStmtExecute)
    DBI ERROR: ORA-00911: invalid character (DBD ERROR: OCIStmtExecute),Maybe I'm overlooking something simple. Anyone see anything out of place that pertains to the SQL statement?
    I think I have input it in a rather manageable, and easy to read block below:
    INSERT ALL
    INTO DEFAULT_PROJECT_USER
    (DEFPROJ_ID,DEFPROJ_ID_LTR,NAME,EMAIL,LOCATION,PHONE,MGRNAME,MGREMAIL,PROJNAME,PROJ_LOC, SPON_DEPT,SPON_BUS,PROJ_TYPE,REG_LEGAL,NETCRED_LOSS, EXPENSE_REDUC_CKB, STRAT_GOALS,AUDIT_COMPL,REV_GEN,CACS,CUSTOMIT,CUST_IMPACT,CALL_MGT,CALL_TRACK,
    CITILINK,DESKTOP,DIALER,DRI,ENGINEER,IMAGING,IPDT,MAINFR,MISC_OTHER,MORTSERV,MORTWEB,NON_MORTSERV,ORIG_PLAT,QUAL_MAP,DATAWARE_REPTS,SERV_APP_VDR,SOUTHBEND,WEB_SVCG,PROBLEM_RESOLVE,EXIST_PROC,BUS_OBJECTIVE,
    PENDING_PROJ,IMPACT_AREAS,REGULATORY_COMPLY,COMPLY_DEADLINE,SUB_DATE,EXPENSE_REDUCTION_TEXT,PRIORITY_RATING,ADDL_COMMENTS,PROJ_TYPE_OTHER,OTHER_EXPL_IT)
    values (defproj_user_seq.nextval,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,to_date(?,'YYYY-MM-DD HH:MI:SS'),SYSDATE,?,?,?,?,?)
    INTO DEFAULT_PROJECT_PROJMGR
    (DEFPROJ_ID,PROJ_MGR,STATUS,IT_PROJ_TYPE,IT_PROJNUMBER,FUNC_SPECS,FUNC_SPECS_DT,FUNC_SPECS_APPR_DT,BRD_APPROVED,BRD_APPROVED_DT,UAT_STARTDT,UAT_ENDDT,TESTER,RELEASE_DT, TARGETED_RELEASE_DT,BENEFIT_AMT,BENEFIT_CMTS,IT_LEVEL,IT_HOURS,FTES_SAVED,NUM_FTES,PROJQUE1,PROJQUE2,ACTUALCBA)
    VALUES (defproj_user_seq.nextval,NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL,NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL,NULL,NULL)
    INTO DEFAULT_PROJECT_QA
    (DEFPROJ_ID,TERM,DEFINITION,BUS_NEED,CUST_IMPACT,CONTACT_NAME,IMPACT,IMPACT_PROCESS,IMPACT_DESC,PROCESS_LOC,PROJ_SCHED,PROJ_JUSTIF,IMPL_DATE,PROJ_EXPL,
    PROJ_TYPE,PROJ_JUST_MIT,PROJ_OWNER,PROJ_DATE_STATUS)
    VALUES (defproj_user_seq.nextval,NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL,NULL, NULL,NULL,NULL)
    SELECT object_name AS DEFPROJ_ID_LTR FROM all_objects where rownum <= 1;what could be leading to an invalid character? The error doesn't show which line.
    Thanks, but NEVER MIND...I found it - it's stupid perl! As opposed to a good language (Java).
    It balks at the extra semicolon, unlike Java would.
    Oh, and why am I using Perl you ask? Other than the "yeah, good question response", it's a long story, but suffice to say they don't allow for our UNIX server to be used with Java, just Perl. : (
    I do use Java a good amount here, but sometimes we're bound to crap on another planet where it just isn't an option for the server on which we use Java!
    Maybe someday! : )
    Message was edited by:
    user515689

  • Sql server stored procs migration to oracle

    Can't I migrate only the stored procedures alone of sql server db to Oracle using sql developer? How to load the .ocp files with the stored procs I have?

    Hi,
    I don't know how to manually update the generated captured files (bat, ocp) with other information or even if it is possible, as the bat files extract data from the SQL*Server data dictionary information to populate the files for the load. If the stored procedures have already been created in the SQL*Server database then they will added to the generated OCP information. If you want to manually change the files then you'll have to work it out for yourself, I'm afraid.
    If they are not in the SQL*Server database and exist only as the create statements in text files then you have 2 options, as far as I can see -
    - either run the scripts to create the stored procedures in the database before running the migration
    - use the translation scratch editor and put the procedure create SQL into that to convert to Oracle format -
    Tools > Migration >Translation Scratch Editor
    You need to be aware that translation of stored procedures isn't always automatically 100% completed and manual intervention is sometimes needed, depending on the complexity of the procedure and how it is written.
    Regards,
    Mike

  • Oracle 11g stored procs: SELECT ALL_ARGUMENTS not returning certain values in certain cases

    I'm doing a select on the ALL_ARGUMENTS like:
    SELECT count(*) FROM all_arguments WHERE owner LIKE 'MySchema' ESCAPE '/' AND object_name LIKE 'MyStoredProc' ESCAPE '/' AND package_name LIKE 'MyPackage' ESCAPE '/';
    Sometimes, after connecting to the DB after a certain period of time, I get a result = 0, althought the Stored Procedure is there. Immediatelly after that I retry, and I get result = 2.
    Why is that? Does the SELECT recompile the stored proc?

    I'm surprised that you get anything if you use that query.
    Oracle considers object names to be uppercase unless the name is enclosed in double quotes. So there would be no schemas with a name 'MySchema' since the name would actually be 'MYSCHEMA'.

  • Error committing transaction in Stored Proc call - prev solns not working

    Hi All,
    Our process invokes a DB adapter to fetch the response from the table for our request via Stored Procedure call but facing the below issue. Its a synchronous process. Stored Procedure is present inside the Package and we are calling the Stored procedure using that Package.
    What we did is created a DB datasource of XA type and tried to call the Stored Proc but it was giving a problem “ORA-24777: use of non-migratable database link not allowed” and hence according to this thread Using DB links in Stored proc call in DB adapter 11G SOA we have modified the datasource as non-XA type.
    While we do that, we could see that Stored Proc is called and the response is present in the reply payload inside the flow trace. But the instance is getting faulted and the error is “Error committing transaction:; nested exception is: javax.transaction.xa.XAException: JDBC driver does not support XA, hence cannot be a participant in two-phase commit. To force this participation, set the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source.”
    We have tried the properties of global transaction support as one phase commit, emulate two phase commit and logging last resource but error remains the same.
    Database from which we are getting the response is of version "Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production". Will the database link error arises even if we connect to Oracle Database?
    Please could you advise me solutions to resolve this issue.
    Thanks in advance.

    You are using Non-XA because it means (among all others) that the commit issue can be handle by the DB as well.
    The Emulate Two Phase property imitating the XA transaction in that way, that it allows you to manage a local db transaction.
    You can stay with XA connection, but then you will have to use "AUTONOMOUS_TRANSACTION pragma" in your procedure.
    Enter the following link to find good explanation about all of your questions:
    http://docs.oracle.com/cd/E15523_01/integration.1111/e10231/adptr_db.htm#BGBIHCIJ
    Arik

  • Calling DB2 Stored Proc from Oracle DB

    Hi,
    I am having two different database running (One is oracle on solaris while the other one is db2 on os/390 mainframe) i want to pass the data realtime. Is there any way I can call a DB2 stored procedure from oracle directly. If anyboy can help in this will be really helpful.
    thanks,
    Kishor

    odi version we have is  ODI_11.1.1.6.0, it is not migrated and 'Always Execute' option is checked already.
    tried using variables in capital format but did not worked,
    begin
    schema_name.proc_name(#LV_TABLE_NAME,#LV_SCHEMA_NAME,#LV_START_DATE,#LV_END_DATE);
    end;
    odi is giving error if it finds any bug in stored proc but after fixing its completing successfully without errors in operator but i am not able to see the result.
    Please advise.

  • Error while debugging the Oracle Stored Proc Body

    I am trying to debug a standalone Oracle Stored Proc. I keep a break point on the Package body, and JDeveloper doesn't seem to pick it up at all. I have made sure that are the prerequisites are met and all the instructions have been followed diligently, but still i keep getting this error message:
    Unable to set breakpoint (C:\Program Files\JDeveloper\jdev\mywork\ADReports\ADReportsProject\packagebody staging.staging_reports.sql 57), unable to resolve Java package.
    The Debugger doesn't seem to stop at the specified break point in the package body. Though it does connect to the DB, and shows all the data values inside the procs, and other stuff as mentioned in the debug tutorial/manual.
    Some replied to my previous post saying that it was a bug with the JDeveloper itself and it has been fixed, so if this is the case, can someone point me to the right place where we can download the bug free version.
    Thanks in advance

    Hi,
    Please see:
    PL/SQL Debugging does not stop on breakpoint
    - Mark

  • "Object reference not set to an instance of an object" on stored proc.

    So, I use VS 2005 with Oracle 11 rel. 11.1.06.0.
    I installed ODP for .net (ODAC 11.10621).
    but, when I call some stored proc wich was working previously, when calling stored proc:
    oProcAppendWebFolder2.Parameters("p_siteid").Value = vSiteID
    oProcAppendWebFolder2.Parameters("p_webfoldername").Value = vWebFolderName
    oProcAppendWebFolder2.Parameters("p_includestartpage").Value = IIf(vIncludeStartPage, "Y", "N")
    oProcAppendWebFolder2.ExecuteNonQuery()
    I often got message:
    Object reference not set to an instance of an object. (I got this message when calling ExecuteNonQuery)
    proc is simple:
    FUNCTION AppendWebFolder(p_SiteID IN NUMBER, p_WebFolderName IN VARCHAR2, p_includeStartPage IN char) RETURN NUMBER AS
    v_errcode               PLS_INTEGER :=0;
    v_retval                PLS_INTEGER :=0;
    BEGIN
    UPDATE DBSEQUENCES SET VALUE=NVL(VALUE,0)+1
         WHERE seqid=4
         RETURNING VALUE INTO v_retval;
    INSERT INTO WEBFOLDERS(webfolderid, siteid, webfoldername, include_startpage)
         VALUES (v_retval, p_siteid, p_webfoldername, p_includestartpage);
         RETURN (v_retval);
    EXCEPTION
    WHEN OTHERS THEN
    v_errcode := SQLCODE;
         g_errm := SUBSTR(SQLERRM,1,LONG_VARCHAR);
         Appenderror(g_errm, 0, class_name, 'AppendWebFolder', 'siteid: ' || p_siteid || ' webfoldername: ' || p_webfoldername,0);                                              
    RETURN (v_errcode);
    END AppendWebFolder;
    procedure call declaratiion in .net is:
              oProcAppendWebFolder2 = New OracleCommand("appendwebfolder", oConn)
              oProcAppendWebFolder2.CommandType = CommandType.StoredProcedure
              oProcAppendWebFolder2.Parameters.Add("retval", OracleDbType.Int32, ParameterDirection.ReturnValue)
              oProcAppendWebFolder2.Parameters.Add("p_siteid", OracleDbType.Int32, ParameterDirection.Input)
              oProcAppendWebFolder2.Parameters.Add("p_webfoldername", OracleDbType.Varchar2, ParameterDirection.Input)
              oProcAppendWebFolder2.Parameters.Add("p_includestartpage", OracleDbType.Char, 1, "", ParameterDirection.Input)
              oProcAppendWebFolder2.Prepare()
    note that such error was not appearing when I used oracle XE
    Edited by: user465054 on Dec 17, 2008 9:47 AM

    If it is a web application, I would suggest using HTTP sessions to store the ReportDocument object.
    See this KB for reference code on how to use session.
    http://search.sap.com/ui/notes?id=0001985571&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031393835353731&ssocompatible
    If that does not resolve the issue, provide below info.
    - Version of CR with patch level.
    - Version of VS
    - Win or web app?
    - What happens when you refresh the report in viewer using refresh button?
    Thanks,
    Bhushan

  • XML Parsing in Java Stored Proc--Oracle XML Support Installation?

    I am working with a third party product that is having difficulty running a java stored proc that is parsing a supplied XML file. The proc basically looks like:
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.xml.sax.SAXException;
    InputStream is = getXMLAsInputStream(xml);
    try {
    DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.parse( is );
    ... parse the document ....
    catch (FactoryConfigurationError e) {
    // unable to get a document builder factory
    We are running on 9.2.0.6, HP-UX 64-bit. At first, when we would attempt to run the proc, a database hang would occur; now after attempting to install using loadjava jars for xerces2.6: ORA-29532: Java call terminated by uncaught Java exception:
    javax.xml.parsers.FactoryConfigurationError: Provider
    org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found)
    The vendor says that the errors we are getting when running are not due to any dependency on xerces or jre1.4, and that we need to "install Oracle XML support", but I'm not certain what this means (I cannot find any documentation on what to install). I believe that there are jars that need to be loaded into the database to support the XML parsing, as jre1.3 does not include built-in XML support, and Oracle 9.2.0.6 uses jre1.3.
    So...does anyone have any thoughts as to how to resolve the missing references? Is there a way to "install Oracle XML support", or is it to install the necessary jars?
    Thanks,
    Candi

    Candi,
    The following resources should be of help:
    Oracle9i Database Release 2 (9.2) Documentation Library
    In particular, check out the following:
    Java Developer's Guide
    Java Stored Procedures Developer's Guide
    XML API Reference - XDK and Oracle XML DB
    XML Database Developer's Guide - Oracle XML DB
    XML Developer's Kits Guide - XDK
    If that doesn't help, then try the following:
    OracleJVM and Java Stored Procedures
    XML Technology Center
    Good Luck,
    Avi.

  • Java Stored Proc and Oracle 8.0.6.20?

    Hi,
    I have a customer using Oracle 8.0.6 (on multi-platforms). We'll need to implement a pl/sql which needs to execute an external script.
    My understanding is there are only 2 ways to achieve this: (a) use Java stored procedure, (b) use C/C++ library
    Question 1: Is Java Stored Proc available in 8.0.6?
    Question 2: Is there anywhere I can download Oracle 8.0.6 (Windows, or Tru64, Linux)?
    - Will

    java in the database was introduced from Oracle8i onwards. this version of Oracle does not support java virtual machine in the database.
    You would need to use C/C++ external procedures.

  • Java Stored Proc, passing BLOB, not stored in a table.

    I have checked this article, and found it will not suit my needs.
    http://otn.oracle.com/sample_code/tech/java/codesnippet/jdbc/lob/LobToSP.html
    I have even looked at the 4 articles on the "JSP How-To Documents" page.
    I need to pass in a BLOB to my Java Stored proc, but not store it in the DB - My java code manipulates the LOB and it should never go into the DB. I know I could do the normal store, get an id and pass to my JSP... but that is a poor way to implement this. Are there any code samples on how to do this please ?
    D

    WOW! That seems like a very bad design.
    Is it just the compiler that has the problem or is the PL/SQL code inside the stored procedure also affected? For example, if I'm doing an
    EXECUTE IMMEDIATE 'insert ... INTO OtherSchema.tblTest';
    Is this going to be a problem?
    The problem with granting the access explicitly is the Archive Schema, which has the stored procedure that is failing, might not exist at the time when the other schemas are created. Therefore, there is no user to grant permissions to. I solved this by granting permissions to the role and when the archive user is created it is assigned that role.
    This seems like the proper way to solve this problem.

  • Call EJB From Oracle Stored proc or Database loaded Java?

    Are there any examples of calling an EJB, residing in the OC4J on a machine separate from the DB server,
    from an Oracle PL/SQL stored proc.
    The Stored proc can call java loaded into the DB. That java makes the intial bean context. Or another way if suggested.
    The reason is that I need to use some drivers that I have so far been unable to load directly into the DB using
    loadjava util. I plan on using the driver in the EJB, located on a different machine. But I'd like so know if its possible to
    make the IntialContext call to the EJB container from PL/SQL. Are the OC4J drivers loadable to be
    able to be called from a database loaded java class? ( I might be a little off on my terminology)
    Bob
    [email protected]

    Hi Bob,
    Your question has been previously asked on this forum many times already.
    You can probably find the relevant postings by doing a search of the
    forum archives.
    To summarize those posts, as I understand it, the latest version of OC4J
    (version 9.0.3) contains a "oc4jclient.jar" file (I think that's the name
    of the file), that can be loaded into the Oracle database (using the
    "loadjava" utility), and which allows a java stored procedure to invoke
    methods on an EJB residing in OC4J.
    Please note that I have not tried any of the above -- I am only summarizing
    for you what has already been posted. And like I said before, a search
    of the forum archives will probably give you more details.
    Good Luck,
    Avi.

Maybe you are looking for

  • How to Publish old iweb blog saved in pages?

    I have a series of blogs created in an early version of iweb. I saved them to my desktop in a folder in a Pages format. If I want to export them to iweb 09 to eventually publish them to machighway (since mobileme is "dying").  There are two choices f

  • PDF's opening in HP Imagezone instead of Adobe? Need to fix any ieads?

    When I go to open a PDF it attempts to open the file in HP image zone instead oh Adobe Acrobat. Is there a way to correct this. Please help!! Thanks Mllbook

  • Camera Raw installing images

    I have just started shooting in Camera raw, problem I have is that when I save the files, it says there are no images to save,only way that i can save my images is to open Photoshop, go to file, open search for the card reader and open it to show the

  • Cant Install Lr 5 from Creative Cloud.

    I am trying to install LR5 from CC with no succes. I recive Error 7 only. i cant find the Exe files in the temp dri? i am installing on windows 7 pro with all updates and servicepacks up to date. i cant find any lightroom files on my system not downl

  • 2-wire modems don't work with Apple?

    Never had an Internet problem until I moved 3 weeks ago.  Since then my 12 mbps signal drops constantly.  AT&T Uverse have been to my new house 20 days straight trying to fix it (their monitoring shows the signal drops [goes away] sometimes every 2 o