Oracle SQL Developer 3.1 Migration Third Party Databases Issues

Hi,
i had following issues with migrating from db2 v8 to oracle 11.2.
Online:
Due to missing privileges and roles for user db user migrations some steps have failed (CREATE USER -> ORA-01031 ...).
After correcting this like described in "Creating a Database User for the Migration Repository" in sqldev online help this has worked.
The problems are:
a) on the overview page at the end of the migration assistent all steps (CAPTURE, CONVERT, GENERATE, DATAMOVE) are shown as complete, even if nothing has done
b) on page 6/9 into migration assistant all changes for datatype convertion are ignored, for example CHAR to VARCHAR2
c) generated files are not visible, even if you mark refresh on file view
d) after restarting sqldev, generarted files are visible in file view, but when you add generated files to svn error message "svn: File: xxx has inconsitent newlines" is shown
e) after sucessful migration on opened migration project pane "data quality" sourcenumrows are NULL, even if they always NOT NULL and count(*) on any table on both sites are equal
Offline:
Generated skripts contains errors:
./startDump.sh: line 157: syntax error near unexpected token `done'
'/startDump.sh: line 157: `done < "schemas.dat"
Can anybody help?
Thanks in advance
André

Hi kgronau,
thanks for your fast answer.
Today i have found 2 new issue.
When you have opened a migration project from repository, on pane "data quality" sourcenumrows are always null
and
sourcename and targetname shows always databse object names from the database on the first migration project in repository independently of extra section in drop down box model and source.
kgronau wrote:
André,
I used SQL Dev 3.1 and I captured a DB2 database. Then I've changed the rule to map char to varchar2 and started the migration.
When I now check out my custom tables all all of them that had in the source model a char column are now using varchar2.I have tried to changed dataype for target database in place over the drop down box, not the edit rule button. It's a little bit confusing to have this option, when it doesn't works.
After using the edit rule button, all works fine. Just the summary page 9/9 doesn't report changed datatype assignment.
>
Could you please explain what you mean with your option c and d?c)
Yes i'm meaning View -> Files. Sorry but on german windows i have just german menu items. That is sometimes tricky to retranslate for support questions and also not helpful when using the online help where all menu items referenced in english :-(
(Do you have an ideo how can i configure sqldev with english menu aon german windows?)
I think, this problemn is special for output folders under subversion control.
d)
Generated Files after the end of the migration are just visible in output folders under subversion control after restarting sqldev
>
Edited by: kgronau on Mar 7, 2012 12:30 PM
Are you talking about Opening a File viewer window (View -> Files)? In my case I have chosen d:\temp\DB2 as output and monitored it during the migration. It isn't refreshed until I manually click on the refresh button - but once the migration has finished and written the output and when I then click on the refresh button I'll see all the directories and the files included.
Edited by: kgronau on Mar 7, 2012 12:39 PM
When a migration has finished then SQL Developer 3.1 now creates in the top directory an unload_script.sh file which calls the other unload scripts.That's right, all scripts are generated.
Also the data unload scripts were created - I need to find a DB2 on Unix to check the script - a quick check of the windows scripts worked correctly.
Edited by: kgronau on Mar 7, 2012 1:22 PM
These unload shell scripts to unload the data out of a DB2 database are also working.
Unfortunately I'm not able to test the shell script used for a source model unload as my UDB is running on Windows.
Didn't the online source model collection work? For me it looks like it did as you mentioned you changed the char data types to varchar2 and this requires already a connection to the source database - except you used the scripts that were generated using the startDump.sh which has failed. Yes, online source model collection did work. Just the unix shell script produces an error on the source unix system with db2. Please see below th generated script.
So please provide here some more details../startDump.sh was startet for testing purposes without any arguments
./startDump.sh: line 157: syntax error near unexpected token `done'
'/startDump.sh: line 157: `done < "
if [[ $# != 3 ]]; then
echo "Usage: startDump <database> <user> <password>";
exit 1;
fi
ROWTAG="'<row>'";
ENDROWTAG="'</row>'";
COLTAG="'<col><![CDATA['";
ENDCOLTAG="']]></col>'";
# Clear any other dat files
echo "Clearing older data files"
rm -f *.dat
echo "Connnecting to $1 as $2";
db2 -r connect.dat "connect to $1 user $2 using $3";
if [[ $? != 0 ]]; then
echo "Connection failed.";
exit 20;
fi
# GET SCHEMA QUERY.
echo "Get all schemas";
db2 +o -x -r schemas.dat "select SCHEMANAME SCHEMA_NAME from SYSCAT.SCHEMATA WHERE DEFINER <> 'SYSIBM' AND
SCHEMANAME <> 'NULLID' AND SCHEMANAME <> 'SQLJ'
AND SCHEMANAME <> 'SYSTOOLS'";
if [[ $? != 0 ]]; then
echo "Get schemas failed.";
exit 30;
fi
# Loop through file containing schema names and extract db objects for each of them
while read SCHEMA_NAME
do
# Create schema directory
rm -rf "${SCHEMA_NAME}";
mkdir "${SCHEMA_NAME}";
if [[ $? != 0 ]]; then
echo "Could not create schema directory ${SCHEMA_NAME}.";
exit 40;
fi
echo "Get all tables for schema $SCHEMA_NAME";
tablesFile="${SCHEMA_NAME}/""tables.dat";
# GET TABLES QUERY. */
db2 -x +o -r $tablesFile "select "$ROWTAG", "$COLTAG"||COLUMNS.TABSCHEMA||"$ENDCOLTAG", "$COLTAG"||COLUMNS.TABNAME||"$ENDCOLTAG",
"$COLTAG"||COLUMNS.COLNAME||"$ENDCOLTAG", "$COLTAG"||(CASE WHEN (COLUMNS.CODEPAGE = 0 and (COLUMNS.TYPENAME = 'VARCHAR' OR COLUMNS.TYPENAME = 'CHAR'
OR COLUMNS.TYPENAME = 'LONG VARCHAR' OR COLUMNS.TYPENAME = 'CHARACTER')) THEN COLUMNS.TYPENAME || ' FOR BIT DATA'
ELSE COLUMNS.TYPENAME END)||"$ENDCOLTAG", "$COLTAG"||CHAR(COLUMNS.LENGTH)||"$ENDCOLTAG",
"$COLTAG"||CHAR(COLUMNS.SCALE)||"$ENDCOLTAG", "$COLTAG"||COLUMNS.NULLS||"$ENDCOLTAG",
"$COLTAG"||COALESCE(COLUMNS.DEFAULT, '')||"$ENDCOLTAG", "$ENDROWTAG" from
SYSCAT.COLUMNS COLUMNS, SYSCAT.TABLES TABLES WHERE
COLUMNS.TABSCHEMA = '${SCHEMA_NAME}' AND
COLUMNS.TABNAME = TABLES.TABNAME AND
COLUMNS.TABSCHEMA = TABLES.TABSCHEMA AND
TABLES.TYPE = 'T'
ORDER BY COLUMNS.TABNAME, COLUMNS.COLNO";
if [[ $? != 0 ]]; then
echo "No tables found.";
fi
# GET SYNONYMS QUERY. */
echo "Get all synonyms for schema $SCHEMA_NAME";
synonymsFile="${SCHEMA_NAME}/""synonyms.dat";
db2 -x +o -r $synonymsFile "select "$ROWTAG", "$COLTAG"||TABNAME||"$ENDCOLTAG", "$COLTAG"||BASE_TABSCHEMA||"$ENDCOLTAG",
"$COLTAG"||BASE_TABNAME||"$ENDCOLTAG", "$ENDROWTAG" from syscat.tables
where tabschema = '${SCHEMA_NAME}' and type = 'A'";
if [[ $? != 0 ]]; then
echo "No synonyms found.";
fi
# GET VIEW QUERY. */
echo "Get all views for schema $SCHEMA_NAME";
viewsFile="${SCHEMA_NAME}/""views.dat";
db2 -x +o -r $viewsFile "select "$ROWTAG", "$COLTAG"||VIEWSCHEMA||"$ENDCOLTAG", "$COLTAG"||VIEWNAME||"$ENDCOLTAG",
"$COLTAG"||COALESCE(TEXT, '')||"$ENDCOLTAG",
"$COLTAG"||DEFINER||"$ENDCOLTAG", "$COLTAG"||READONLY||"$ENDCOLTAG", "$COLTAG"||VALID||"$ENDCOLTAG", "$ENDROWTAG"
from syscat.views
WHERE VIEWSCHEMA = '${SCHEMA_NAME}'
ORDER BY VIEWNAME";
if [[ $? != 0 ]]; then
echo "No views found.";
fi
# GET INDEXES QUERY. */
echo "Get all indexes for schema $SCHEMA_NAME";
indexesFile="${SCHEMA_NAME}/""indexes.dat";
db2 -x +o -r $indexesFile "select "$ROWTAG", "$COLTAG"||INDSCHEMA||"$ENDCOLTAG", "$COLTAG"||INDNAME||"$ENDCOLTAG",
"$COLTAG"||TABSCHEMA||"$ENDCOLTAG", "$COLTAG"||TABNAME||"$ENDCOLTAG", "$COLTAG"||INDEXTYPE||"$ENDCOLTAG",
"$COLTAG"||UNIQUERULE||"$ENDCOLTAG", "$ENDROWTAG" from SYSCAT.INDEXES
WHERE INDSCHEMA = '${SCHEMA_NAME}' AND UNIQUERULE <> 'P'
ORDER BY TABNAME, INDNAME";
if [[ $? != 0 ]]; then
echo "No indexes found.";
fi
# GET INDEX DETAILS QUERY. */
echo "Get all index details for schema $SCHEMA_NAME";
indexeDetailsFile="${SCHEMA_NAME}/""indexDetails.dat";
db2 -x +o -r $indexeDetailsFile "select "$ROWTAG", "$COLTAG"||INDSCHEMA||"$ENDCOLTAG", "$COLTAG"||INDNAME||"$ENDCOLTAG",
"$COLTAG"||COLNAME||"$ENDCOLTAG", "$COLTAG"||CHAR(COLSEQ)||"$ENDCOLTAG", "$ENDROWTAG" from SYSCAT.INDEXCOLUSE
WHERE INDSCHEMA = '${SCHEMA_NAME}'";
if [[ $? != 0 ]]; then
echo "No index details found.";
fi
# GET TRIGGERS QUERY. */
echo "Get all triggers for schema $SCHEMA_NAME";
triggersFile="${SCHEMA_NAME}/""triggers.dat";
db2 -x +o -r $triggersFile "select "$ROWTAG", "$COLTAG"||TRIGSCHEMA||"$ENDCOLTAG",
"$COLTAG"||TRIGNAME||"$ENDCOLTAG", "$COLTAG"||DEFINER||"$ENDCOLTAG", "$COLTAG"||TABSCHEMA||"$ENDCOLTAG",
"$COLTAG"||TABNAME||"$ENDCOLTAG", "$COLTAG"||TRIGEVENT||"$ENDCOLTAG", "$COLTAG"||VALID||"$ENDCOLTAG",
"$COLTAG"||COALESCE(TEXT, '')||"$ENDCOLTAG",
"$COLTAG"||COALESCE(REMARKS, '')||"$ENDCOLTAG", "$ENDROWTAG"
from SYSCAT.TRIGGERS
WHERE TRIGSCHEMA = '${SCHEMA_NAME}'";
if [[ $? != 0 ]]; then
echo "No triggers found.";
fi
# The for GET Promary Key CONSTRAINT QUERY. */
echo "Get all primary keys for schema $SCHEMA_NAME";
primarykeysFile="${SCHEMA_NAME}/""primarykeys.dat";
db2 -x +o -r $primarykeysFile "select "$ROWTAG", "$COLTAG"||X.CONSTNAME||"$ENDCOLTAG", "$COLTAG"||X.TYPE||"$ENDCOLTAG",
"$COLTAG"||X.TABSCHEMA||"$ENDCOLTAG", "$COLTAG"||X.TABNAME||"$ENDCOLTAG", "$COLTAG"||Z.COLNAME||"$ENDCOLTAG",
"$COLTAG"||CHAR(Z.COLSEQ)||"$ENDCOLTAG", "$COLTAG"||COALESCE(X.REMARKS, '')||"$ENDCOLTAG", "$ENDROWTAG" from
(select CONSTNAME, TYPE, TABSCHEMA, TABNAME, REMARKS from SYSCAT.TABCONST where (type = 'P' OR type = 'U')) X
FULL OUTER JOIN
(select COLNAME, COLSEQ, CONSTNAME, TABSCHEMA, TABNAME from SYSCAT.KEYCOLUSE) Z
on
(X.CONSTNAME = Z.CONSTNAME and X.TABSCHEMA = Z.TABSCHEMA and X.TABNAME = Z.TABNAME)
WHERE X.TABSCHEMA='${SCHEMA_NAME}'
ORDER BY X.CONSTNAME";
if [[ $? != 0 ]]; then
echo "No primary keys found.";
fi
# The for GET Check constraints QUERY. */
echo "Get all Check constraints for schema $SCHEMA_NAME";
constraintsFile="${SCHEMA_NAME}/""checkConstraints.dat";
db2 -x +o -r $constraintsFile "SELECT "$ROWTAG", "$COLTAG"||A.CONSTNAME||"$ENDCOLTAG", "$COLTAG"|| COALESCE(TEXT, '') ||"$ENDCOLTAG", "$COLTAG"|| A.TABSCHEMA||"$ENDCOLTAG", "$COLTAG"|| A.TABNAME ||"$ENDCOLTAG", "$COLTAG"|| COLNAME ||"$ENDCOLTAG", "$ENDROWTAG" FROM SYSCAT.CHECKS A , SYSCAT.COLCHECKS B
WHERE A.CONSTNAME = B.CONSTNAME AND A.TABSCHEMA = B.TABSCHEMA AND A.TABNAME=B.TABNAME AND A.TABSCHEMA = '${SCHEMA_NAME}'";
if [[ $? != 0 ]]; then
echo "No check constraints found.";
fi
done < "schemas.dat"
# GET PROCEDURES QUERY. */
. getProcedures.sh schemas.dat
# The for GET Foreign Key CONSTRAINT QUERY. */
. getForeignKeys.sh schemas.dat

Similar Messages

  • Can SQL Developer connect to ANY third party database

    As of my investigations, SQL Developer can currently connect only to Oracle, MSSQL, MySQL and Access.
    What about connecting to any database using JDBC? Is this possible / planned? I'm currently interested in PostgreSQL.
    Thanks, Viliam

    In the next release users will be able to connect to Sybase. We do have plans to extend to further third-party databases, but this is not scheduled for the short term. Are you looking for a migration solution? The Migration Technology center has a lot of detail and support we provide for third party database support. http://www.oracle.com/technology/tech/migration/index.html
    Regards
    Sue

  • Failed when migrating third-party database, need your help

    hi,
    I use the quick migration function of SQL Developer,
    the step 4 could not passed, in this step 8 items checked, and the second(locate source plugin) item failed.
    I want find the detail reason, but I have no idea with the item.
    So If anyone know about this item(locate source plugin), help me.
    Thank you very much.
    wait on line.

    See the homepage for Setting up the Environment (Getting Started) and other relative stuff.
    Have fun,
    K.

  • How to create databse in oracle sql developer

    Hi am using oracle sql developer but while connecting to the database i am getting error of network adapter
    if any buddy has a solution then fill free to post
    Thanx and Regards
    Umesh

    Can you be a little more specific with the error? The "network adapter" errors I've seen myself have been because SqlDeveloper can't connect to the database, either because the wrong host/port was given, or because a firewall was blocking the port.

  • Third Party Database Support in SQL Developer

    As a rule I don't (blatantly) advertise my blog on this forum, but I have just had feedback from my recent posting which made realize you might not have stumbled on this new functionality. i.e. Third Party Database Support in SQL Developer. <br>
    <p>In the Evaluation Release 3 (1.1.0.22.71) you can connect to and browse MySQL and SQL Server databases. The Getting Started document on OTN, does mention where to get the jdbc drivers and briefly, how to set it up in SQL Developer. This blog entry takes that a step further.
    <p>If you have access to either of these databases, please take a whirl and see what you think. For production you will also be able to connect to an MS Access database.
    <p>Regards<br>
    Sue

    The great thing, as you see from Donal's reply, is that other teams can take advantage of SQL Developer's framework, so we have a few teams working on extensions to SQL Developer and the product benefits from the work they do.
    From the SQL Developer team's side, we have logged and fixed bugs for 8i support in 1.1. since the last evaluation drop, so when you get the next drop for SQL Developer, you should be able to browse more objects using 8i. Also I have logged further 8i bugs and will continue to have more fixed. This is an ongoing project. We also have a number of features that need to be added to support current releases and try to give these a high priority. So the team is focused on addressing as many requests as we can for supported features.
    We know we have many customers on unsupported databases and would like to support them too, having said that, we have run a poll on this forum for ages and have had 7.5% (22) responses for databases lower than 9.x. It's a small poll, but based on all our feedback we believe we have the right focus.
    Regards
    Sue

  • Reg Migration in Oracle SQl Developer

    Hi
    I have an access database which i want to copy to oracle database and automate the process . Copied the tables using ODBC (first time ) .
    Access database will be updated daily by other application.
    Now I have to refresh my oracle database once a week from this access database and i want to automate this process with out any user intervention .
    Can anyone give some inputs about the best method to automate this job ?
    any other tool is there?
    thanks in advance.
    Regards,
    P.Parthasarathi

    Hi,
    I updated a related Re: Automate migration from access to oracle with two suggested solutions to your query - see below:
    Based upon the information you've given, I believe that you've got two options here, with my preference being option 1:
    Option 1: Migrate your MS Access database to Oracle, using Oracle SQL Developer Migration Workbench. Then update your MS Access database, replacing the original tables with ODBC linked tables to the newly migrated Oracle tables. This would mean that you can retain the use of your MS Access front-end, if necessary, and any data inserted via the MS Access front-end is stored in your tables in Oracle. You'd have no worry about putting a process in place, as the data is being saved in Oracle.
    Option 2: Migrate your MS Access database to Oracle, using Oracle SQL Developer Migration Workbench. Then use the Migration > Migrate Data menu item in SQL Developer to migrate your data into the new Oracle schema. In order to do this on a weekly basis, you would need to retain your Migration Repository, and simply use the same menu item to migrate the data to your Oracle database.
    I recommend that you review the Oracle SQL Developer Migration Workbench OTN page, and its accompanying documentation, to gain a better understanding of how to use the tool - http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html.
    Have you tried either of these solutions? If so, and you experienced some issues, or require additional information, please let me know.
    Regards,
    Hilary

  • Oracle SQL Developer vs Oracle SQL Developer Migration Workbench

    Gurus,
    Can anybody let me know what's the difference between Oracle SQL Developer vs Oracle SQL Developer Migration Workbench tools.
    I am in the process of Migrating MS-Access Application to APEX. So the example says me to use Oracle SQL Developer Migration Workbench. Is this part of Oracle SQL Developer? If yes, I know SQL Developer is free.
    If not is Oracle SQL Developer Migration Workbench if free?
    Thanks and Regards

    Thank Oracle ;)
    (well, it's the least they can do after you paid big $$$ for the database)
    Regards,
    K.

  • Error after update Oracle SQL Developer Migration Tools

    Hi,
    I'm receiving a error after the update of Oracle SQL Developer (v.1.1.3.27.66) to work with mySQL migration tool.
    This error appear when it´s restarting:
    Exception Stack Trace:
    java.lang.IllegalAccessError: tried to access class oracle.ide.net.IdeURLStreamHandler from class oracle.ide.net.URLFileSystem$1
         at oracle.ide.net.URLFileSystem$1.createURLStreamHandler(URLFileSystem.java:87)
         at oracle.ide.boot.URLStreamHandlerFactoryQueue.createURLStreamHandler(URLStreamHandlerFactoryQueue.java:119)
         at java.net.URL.getURLStreamHandler(URL.java:1106)
         at java.net.URL.<init>(URL.java:393)
         at java.net.URL.<init>(URL.java:283)
         at oracle.ide.net.URLFactory.newURL(URLFactory.java:636)
         at oracle.ide.layout.URL2String.toURL(URL2String.java:104)
         at oracle.ideimpl.editor.EditorUtil.getURL(EditorUtil.java:150)
         at oracle.ideimpl.editor.EditorUtil.getNode(EditorUtil.java:122)
         at oracle.ideimpl.editor.EditorUtil.loadContext(EditorUtil.java:91)
         at oracle.ideimpl.editor.TabGroupState.loadStateInfo(TabGroupState.java:950)
         at oracle.ideimpl.editor.TabGroup.loadLayout(TabGroup.java:1751)
         at oracle.ideimpl.editor.TabGroupXMLLayoutPersistence.loadComponent(TabGroupXMLLayoutPersistence.java:31)
         at oracle.ideimpl.controls.dockLayout.DockLayoutInfoLeaf.loadLayout(DockLayoutInfoLeaf.java:123)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:631)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:628)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:614)
         at oracle.ideimpl.controls.dockLayout.DockLayout.loadLayout(DockLayout.java:302)
         at oracle.ideimpl.controls.dockLayout.DockLayoutPanel.loadLayout(DockLayoutPanel.java:128)
         at oracle.ideimpl.editor.Desktop.loadLayout(Desktop.java:356)
         at oracle.ideimpl.editor.EditorManagerImpl.init(EditorManagerImpl.java:1879)
         at oracle.ide.layout.Layouts.activate(Layouts.java:784)
         at oracle.ide.layout.Layouts.activateLayout(Layouts.java:186)
         at oracle.ideimpl.MainWindowImpl$6.runImpl(MainWindowImpl.java:734)
         at oracle.javatools.util.SwingClosure$1Closure.run(SwingClosure.java:50)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Anyone knows why that is happining?
    Thanks in advance,
    Felipe.
    Message was edited by:
    felipe.b

    Hello,
    I get the same error after updating through Help->Check for Updates. I am at version 1.1.2.25 and the update does not change the version number of Oracle SQL Developer (Help->About), it remains at 1.1.2.25 (although if I look in extensions tab, it says: oracle.sqldeveloper 1.1.3.27.66 Loaded, possible bug in displaying version number?). These are the updates applied:
    Upgraded Extensions
    Oracle Microsoft Access Browser version 1.1.3.27.66
    Oracle SQL Developer - Snippet version 10.1.3.27.66
    Oracle SQL Developer version 1.1.3.27.66
    Oracle SQL Developer - Reports version 10.1.3.27.66
    Oracle SQL Server Browser version 1.1.3.27.66
    Oracle MySQL Browser version 1.1.3.27.66
    Oracle SQL Developer - Worksheet version 10.1.3.27.66
    Oracle SQL Developer - Extras version 1.1.3.27.66
    Oracle SQL Developer - SearchBar version 10.1.3.27.66
    Oracle SQL Developer - Object Viewer version 10.1.3.27.66
    I ran the update several times and was able to reproduce the error under a specific condition. If I am connected to a database at the time of the update I get the error. If I am not conneceted at the time of the update I do not get the error.
    As stated, by Donal, sql developer seems to get over the problem after restarting itself twice.
    Mark

  • Issue during migrating from Sybase to Oracle using Oracle SQL Developer

    I am using SQL Developer v 3.2.20.09 to migrate from Sybase to Oracle Pl/SQL 12c
    While migrating the stored procedure the following block did not convert. I got NULL instead of object_id:
    Sybase Block:
    IF OBJECT_ID(‘dbo.CheckEst’) IS NOT NULL
    BEGIN
    DROP PROCEDURE dbo.CheckEst
    IF OBJECT_ID(‘dbo.CheckEst’) IS NOT NULL
    PRINT ‘<<>>’
    ELSE
    PRINT ‘<<>>’
    END
    Oracle Block after conversion:
    BEGIN
    IF NULL/*TODO:OBJECT_ID(‘dbo.CheckEst’)*/ IS NOT NULL THEN
    BEGIN
    DROP PROCEDURE CheckEst;
    IF NULL/*TODO:OBJECT_ID(‘dbo.CheckEst’)*/ IS NOT NULL THEN
    DBMS_OUTPUT.PUT_LINE(‘<<>>’);
    ELSE
    DBMS_OUTPUT.PUT_LINE(‘<<>>’);
    END IF;
    END;
    END IF;
    END;
    Lines 1 & 4 got converted to NULL. I have many places where such code is written.
    Is there any quick way to overcome such an issue? or what needs to be done in such case?

    Hi,
      You are using an older version of SQL*Developer.  Could you download the latest 4.0.2 version available from here -
    Oracle SQL Developer
    and check if you still have the problem ?
    Regards,
    Mike

  • SQL Server database (read-only mode) in Oracle SQL Developer

    Hello,
    I connected SQL server database with Oracle SQL Developer 3.2.10.09, everything looks good except i can only browse data, i cannot change data in tables cannot insert new or delete rows. Query is also disabled (i got message: Query Builder is not supported for this connection type.) I used Third Party JDBC Drivers - jtds-1.2.6.jar as my connection to SQL server. Is there a way to change data in tables?
    Thank you.

    AFAIK editing table data in the grid is only possible with an Oracle database. On MS SQL you'll have to use update statements in the worksheet.
    Hope that helps,
    dhalek

  • Oracle SQL Developer does not browse Sybase's objects

    I had installed and configured jtds-1.2.5.jar in Oracle SQL Developer for Sysbase connection. Oracle SQL Developer does not browse any objects. Why? Can you please provide a solution?

    Hi,
    Can you provide some more information into what you are experiencing.
    What version of SQL Developer are you using?
    Did you install the jtds jar under the
    Tools > Preferences > Database > Third Party JDBC Driver
    Is the Sybase tab available in the new connection dialog?
    Did you select the default database in the connection dialog?
    Can you run a query against the Sybase database from the SQL Developer worksheet?
    Note that JTDS 1.2 is the only supported version. There maybe issues with other versions.
    Regards,
    Dermot.
    SQL Developer Team

  • Bug in Oracle SQL Developer

    I had Oracle SQL Developer 1.5.0.53 and when I did a "Check for Update" it said no updates found, even though SQL Developer 1.5.1 was released on June 9, 2008. So obviously this is a bug you need to fix.
    OK - So I downloaded the latest Oracle SQL Developer and installed it and when I opened it up, all my connections were gone!!!
    That's another bug you need to fix.

    See Does check for updates install 1.5.1 for some suggestions for Check for Update.
    For installing 1.5.1 and then losing your connections, did you install in a new directory or over the top of 1.5.0? If yes, then reinstall again into a new directory. If not, did migrate your settings from 1.5.0? Without doing that 1.5.1 won't find your existing connections.
    theFurryOne

  • How i found listener o tsnames in oracle sql developer

    Jelou, i have some troubles with the Oracle SQL Developer, i have a server with Oracle 11g, but the client (sql developer) dont connect to the server, they give me a error, the oracle error i try to search in the search pages, but they dont have a answer.
    I try to search the listener and the tsnames files, but i dont found the files, i working in Windows 7 in 32bits,
    The Oracle error is ORA-12518.
    I put a picture about error,
    [http://picasaweb.google.com/lh/photo/2dpHUn5kEIfxMDqPFM9DxpmLdaXzuCybZLuf45HwREU?feat=directlink]
    Thanks for the help,
    Edited by: user13373417 on 07-Jul-2010 08:50

    user13373417 wrote:
    Your answer is about the function to database, or for the client, because i have the trouble with the client, i used Oracle sql Developer (the last version put in oracle) in windows 7
    ok, but how i found the listener o the tsnames, because i searching in all disk (c) but i dont found them, or how i can turn on the listener o whe is the directory when i put the files, because the installation dont have the /network/adm for put the files
    Edited by: user13373417 on 07-Jul-2010 09:06It appears you don't have a very clear understanding of how the client and the server are configured to communicate with one another.
    ============
    A couple of important points.
    First, the listener is a server side only process. It's entire purpose in life is to receive requests for connections to databases and set up those connections. Once the connection is established, the listener is out of the picture. It creates the connection. It doesn't sustain the connection. One listener, running from one oracle home, listening on a single port, will serve multiple database instances of multiple versions running from multiple homes. It is an unnecessary complexity to try to have multiple listeners. That would be like the telephone company building a separate switchboard for each customer.
    Second, the tnsnames.ora file is a client side issue. It's purpose is for address resolution - the tns equivalent of the 'hosts' file further down the network stack. The only reason it exists on a host machine is because that machine can also run client processes.
    Assume you have the following in your tnsnames.ora:
    larry =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = curley)
      )Now, when you issue a connect, say like this:
    $> sqlplus scott/tiger@larrytns will look in your tnsnames.ora for an entry called 'larry'. Next, tns sends a request to (PORT = 1521) on (HOST = myhost) using (PROTOCOL = TCP), asking for a connection to (SERVICE_NAME = curley).
    Where is (HOST = myhost) on the network? When the request gets passed from tns to the next layer in the network stack, the name 'myhost' will get resolved to an IP address, either via a local 'hosts' file, via DNS, or possibly other less used mechanisms. You can also hard-code the ip address (HOST = 123.456.789.101) in the tnsnames.ora.
    Next, the request arrives at port 1521 on myhost. Hopefully, there is a listener on myhost configured to listen on port 1521, and that listener knows about SERVICE_NAME = curley. If so, you'll be connected.
    What can go wrong?
    First, there may not be an entry for 'larry' in your tnsnames. In that case you get "ORA-12154: TNS:could not resolve the connect identifier specified" No need to go looking for a problem on the host, with the listener, etc. If you can't place a telephone call because you don't know the number (can't find your telephone directory (tnsnames.ora) or can't find the party you are looking for listed in it (no entry for larry)) you don't look for problems at the telephone switchboard.
    Maybe the entry for larry was found, but myhost couldn't be resolved to an IP address (say there was no entry for myhost in the local hosts file). This will result in "ORA-12545: Connect failed because target host or object does not exist"
    Maybe there was an entry for myserver in the local hosts file, but it specified a bad IP address. This will result in "ORA-12545: Connect failed because target host or object does not exist"
    Maybe the IP was good, but there is no listener running: "ORA-12541: TNS:no listener"
    Maybe the IP was good, there is a listener at myhost, but it is listening on a different port. "ORA-12560: TNS:protocol adapter error"
    Maybe the IP was good, there is a listener at myhost, it is listening on the specified port, but doesn't know about SERVICE_NAME = curley. "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor"

  • Data Transformation Service (DTS) available in Oracle SQL Developer?

    Hi All,
    Sorry to bother you again. Is Data Transformation Service (DTS) available in Oracle SQL Developer? So far I cannot find it. For example, i want merge First Name, Last Name column from Access,excel or cvs to migrate as Full Name in Oracle or Full name in Access,Xls or cvs split into First name & last name column in Oracle. What method or service should I use.
    Regards,
    Tun Tun

    On wikipedia, I see that's a SQL Server component, so I don't think it's possible to use it in any other program.
    But you can always tweak columns through normal queries, and even create a new table based on that, like
    CREATE TABLE Table_New AS
    SELECT First_Name || Last_Name FROM Table_OldHope that helps,
    K.

  • Copying SQL Script from Oracle SQL Developer into Excel with formatting

    I need to copy a SQL Script into Excel in order to develop some VBA code. Is there any nice way that I can copy SQL Script from Oracle SQL Developer into Excel and retain its formatting? I am a stickler for having legible, readable SQL and like to have all my columns lined up and aliases lined up. When we used to use SQL Navigator, the tab formatting seemed to copy and paste just fine. Now that we have migrated to Oracle SQL Developer, the formatting seems to get all messed up.
    And suggestions are greatly appreciated and Thanks in advance for your review and am hopeful for an answer.
    Thanks.
    PSULionRP

    I suppose you want a real tabulator instead of spaces. You can configure this in the preferences (SQL Formatter - Oracle). You have to apply it then to your existing code (e.g. CTRL-F7), but new code should get it right from the start.
    Hope that helps,
    K.

Maybe you are looking for

  • Move Assets from one device to another.

    I need to move all of the assets in "Library" to "Media". Is there a simple way to do this and have all of the meta data point to "Media" instead of "Library"?

  • Accessing back-ups on external hard-drive with Time Machine.

    Hi guys, I hope someone can help me with this problem. I am a novice at this so please be patient and forgive my ignorance. I backed up the internal hard-drive of my '06 iMac onto an external Iomega 500GB hard-drive using Time Machine. A couple of we

  • Can't Restore Mini

    I've had my mini for about 2 years now and have never had a problem until the drive that had my music on it crashed and I lost all my music. Now that it's fixed, I just downloaded iTunes 7.2. It took a while, but I was able to get to the Summary and

  • Freezing iTunes HELP!

    I use Windows Vista. I recently synced a new iTunes library onto my nano and it worked fine, but later all my songs got randomly deleted off my iPod for some reason. Now everytime i plug my iPod into my computer, it opens iTunes but immediently freez

  • If no SD card in phone...Having problems...

    Just got my Droid by Motorola. Activated it yesterday. Can you still download apps? Im not sure what the SD card is used for. I have one on order but Im wanting to know if not having one is the reason my Market is saying its not installed on my phone