Migrate sybase to oracle 11G
Hello,
We have a customer that wants to migrate from sybase to Oracle 11g. I know you can migrate through SQL Developer but therefor you have to connect to the sybase database.
If you may not connect to the sybase database, due to security reasons, is there another solution to migrate?
For example take an export from sybase, get the dump file and import into Oracle? Or setup a replica sybase database and export/import the original sybase database and then migrate to Oracle?
Many thanks.
Yes there is. You can do an OFFLINE migration using SQL Developer.
The offline migration using SQL Developer is based on scripts (generated by the SQL developer) that export mandatory information from the Sybase database, put that info into flat files which SQL Developer will then read in to collect the foreign database information and finally to create with that information the Oracle model.
Same can be done for the data move which will then export all data from the tables you want to migrate and to import them using SQL*Loader.
So get SQL Developer and then click on Tools -> Migration -> Create Database Migration Scripts, then choose Sybase database and if the Sybase admin wants to export the Sybase database information from a Unix or Windows based client. The tool will now create scripts for you that you can pass to the Sybase admin. Let him run them which will create 2 directories with a couple of data files in it. Let the Sybase admin now zip them and pass them to you to start the Offline migration.
- Klaus
Similar Messages
-
Urjent help !!!Error during running script root.sh for oracle 11g migration
Dear All,
My databse is Oracle 9.2.8.0 and i am migrating it into oracle 11g.
During installation of oracle 11g (with software only option) , it asked me to run the script root.sh in another terminal,
During running i got the below error.
What i should do now. shall i continue with the error...............
Kindly help ? It's urjent....
Script Output :
[root@cmssbigt dbhome_1]# ./root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/product/11.2.0/dbhome_1
Enter the full pathname of the local bin directory: [usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
/bin/mkdir: cannot create directory `/opt/ORCLfmap': No such file or directory
/bin/mkdir: cannot create directory `/opt/ORCLfmap/prot1_32': No such file or directory
/bin/mkdir: cannot create directory `/opt/ORCLfmap/prot1_32/bin': No such file or directory
/bin/mkdir: cannot create directory `/opt/ORCLfmap/prot1_32/etc': No such file or directory
/bin/mkdir: cannot create directory `/opt/ORCLfmap/prot1_32/log': No such file or directory
/bin/cp: cannot create regular file `/opt/ORCLfmap/prot1_32/bin': No such file or directory
/bin/cp: cannot create regular file `/opt/ORCLfmap/prot1_32/bin': No such file or directory
/bin/chmod: cannot access `/opt/ORCLfmap/prot1_32/bin/fmputl': No such file or directory
/bin/chmod: cannot access `/opt/ORCLfmap/prot1_32/bin/fmputlhp': No such file or directory
/bin/cp: cannot create regular file `/opt/ORCLfmap/prot1_32/etc': No such file or directory
[root@cmssbigt dbhome_1]#
You have new mail in /var/spool/mail/rootBiswa wrote:
If u have any problem with urjent word then mention in the forum during regestration that , only who having 5 to 6 days of time can only post. Because the issues will be solved within this time interval.
Ok ..........No. It is NOT okay to claim that everyone else here that posted problems need to be ignored and your problem be given priority attention because you deem it to be urgent. You have not a single valid excuse for claiming your posting is more important on OTN that other postings.
It is not acceptable. Learn some basic etiquette please when posting online! -
Oracle 11g dg4odbc OpenLink postgres odbc driver for Linux... Integer issue
We were using scuccessfully the openlink driver for postgres odbc driver to connect oracle and postgres in solaris and oracle 10g hsodbc
we are migrating to Linux Oracle 11g and installed linux psotgres odbc driver and configured oracle 11g dg4odbc gateway.
We could connect from oracle and retrive the data from postgres.
Issue we have is
The integer data is not showing correctly…
For example in the postgres the value is 1 and in oracle its shown as 4294967297.
thanks,
Sirishathis is the trace when its working for
select * from "cognos_enrollmentdtl_s"@testag where "trial_id" = 39
and for 39 its returning 167503724583 thsi value in the result set.
Oracle Corporation --- THURSDAY SEP 30 2010 10:39:28.243
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- THURSDAY SEP 30 2010 10:39:28.243
Version 11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "4"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL32UTF8"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "testag"
Product-Info:
Port Rls/Upd:1/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:testag
Exiting hgogprd, rc=0
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=31
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=31
HOCXU_SEM_VER=112000
Entered hgolofn at 2010/09/30-10:39:28
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/OpenLink/lib/libodbc.so"
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLAllocHandle
symbol_peflctx=0xaab20640
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLBindCol
symbol_peflctx=0xaab18a10
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLBindParameter
symbol_peflctx=0xaab153d0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLCancel
symbol_peflctx=0xaab10200
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLDescribeParam
symbol_peflctx=0xaab080c0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLDisconnect
symbol_peflctx=0xaab05e00
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLEndTran
symbol_peflctx=0xaab1a360
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLExecute
symbol_peflctx=0xaab09440
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLFetch
symbol_peflctx=0xaab0a7a0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLFreeHandle
symbol_peflctx=0xaab1fbd0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLFreeStmt
symbol_peflctx=0xaab111d0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetData
symbol_peflctx=0xaab0a210
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetEnvAttr
symbol_peflctx=0xaab1f870
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetFunctions
symbol_peflctx=0xaab11f70
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLMoreResults
symbol_peflctx=0xaab09ce0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLNumResultCols
symbol_peflctx=0xaab17f70
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLParamData
symbol_peflctx=0xaab08a20
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLPutData
symbol_peflctx=0xaab08680
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLRowCount
symbol_peflctx=0xaab180b0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetEnvAttr
symbol_peflctx=0xaab1fa30
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetDescRec
symbol_peflctx=0xaab1bc10
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLColAttribute
symbol_peflctx=0xaab1b890
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLColumns
symbol_peflctx=0xaab007b0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLConnect
symbol_peflctx=0xaab05c50
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLDescribeCol
symbol_peflctx=0xaab17d50
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLDriverConnect
symbol_peflctx=0xaab07d30
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLExecDirect
symbol_peflctx=0xaab092e0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLForeignKeys
symbol_peflctx=0xaaaffc20
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetConnectAttr
symbol_peflctx=0xaab1d8a0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetDescField
symbol_peflctx=0xaab1cfe0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetDescRec
symbol_peflctx=0xaab1c3b0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetDiagField
symbol_peflctx=0xaab0ed30
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetDiagRec
symbol_peflctx=0xaab0d5a0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetInfo
symbol_peflctx=0xaab130a0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetStmtAttr
symbol_peflctx=0xaab1f6e0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetTypeInfo
symbol_peflctx=0xaaafd250
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLPrepare
symbol_peflctx=0xaab16560
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLPrimaryKeys
symbol_peflctx=0xaaafeed0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLProcedureColumns
symbol_peflctx=0xaaafe550
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLProcedures
symbol_peflctx=0xaaafdad0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetConnectAttr
symbol_peflctx=0xaab1df70
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetStmtAttr
symbol_peflctx=0xaab1f260
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetDescField
symbol_peflctx=0xaab1cb30
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLStatistics
symbol_peflctx=0xaaafb6f0
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Entered hgolofns at 2010/09/30-10:39:28
libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLTables
symbol_peflctx=0xaab01d70
hoaerr:0
Exiting hgolofns at 2010/09/30-10:39:28
Exiting hgolofn, rc=0 at 2010/09/30-10:39:28
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Exiting hgoinit, rc=0 at 2010/09/30-10:39:28
Entered hgolgon at 2010/09/30-10:39:28
reco:0, name:readonly, tflag:0
Entered hgosuec at 2010/09/30-10:39:28
Exiting hgosuec, rc=0 at 2010/09/30-10:39:28
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using readonly as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2010/09/30-10:39:28
HS_FDS_CONNECT_INFO = "testag"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2010/09/30-10:39:28
dsn:testag, name:readonly
optn:
Entered hgocip at 2010/09/30-10:39:28
dsn:testag
Exiting hgocip, rc=0 at 2010/09/30-10:39:28
##>Connect Parameters (len=40)<##
## DSN=testag;
#! UID=readonly;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2010/09/30-10:39:28
Entered hgolosf at 2010/09/30-10:39:28
ODBC Function-Available-Array 0xFFFE 0x01FF 0xFF00 0xFD7F 0x015F 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0xFA00 0x3F5F
Exiting hgolosf, rc=0 at 2010/09/30-10:39:28
DriverName:pgr7_mt_lt.so, DriverVer:06.01.0524 OpenLink PostgreSQL Lite Driver
DBMS Name:PostgreSQL, DBMS Version:07.02.0000
Exiting hgocont, rc=0 at 2010/09/30-10:39:28
SQLGetInfo returns Y for SQL_CATALOG_NAME
SQLGetInfo returns 32 for SQL_MAX_CATALOG_NAME_LEN
Exiting hgolgon, rc=0 at 2010/09/30-10:39:28
Entered hgoulcp at 2010/09/30-10:39:28
Entered hgowlst at 2010/09/30-10:39:28
Exiting hgowlst, rc=0 at 2010/09/30-10:39:28
SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
TXN Capable:2, Isolation Option:0xa
SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
SQLGetInfo returns 32 for SQL_MAX_TABLE_NAME_LEN
SQLGetInfo returns 32 for SQL_MAX_PROCEDURE_NAME_LEN
SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
SQLGetInfo returns N for SQL_COLUMN_ALIAS
5 instance capabilities will be uploaded
capno:1964, context:0x00000000, add-info: 0
capno:1989, context:0x00000000, add-info: 0
capno:1991, context:0x00000000, add-info: 0
capno:1992, context:0x0001ffff, add-info: 0
capno:3007, context:0x00000000, add-info: -3, translation:"36"
Exiting hgoulcp, rc=0 at 2010/09/30-10:39:28
Entered hgouldt at 2010/09/30-10:39:28
NO instance DD translations were uploaded
Exiting hgouldt, rc=0 at 2010/09/30-10:39:28
Entered hgobegn at 2010/09/30-10:39:28
tflag:0 , initial:1
hoi:0x2db07578, ttid (len 26) is ...
00: 4D4D4D41 54524958 2E623835 34333234 [testac.b854324]
10: 322E382E 31332E37 3936 [2.8.13.796]
tbid (len 23) is ...
00: 4D4D4D41 54524958 5B382E31 332E3739 [testac[8.13.79]
10: 365D5B31 2E345D [6][1.4]]
Exiting hgobegn, rc=0 at 2010/09/30-10:39:28
Entered hgodtab at 2010/09/30-10:39:28
count:1
table: cognos_enrollmentdtl_s
Allocate hoada[0] @ 0x5f38a60
Entered hgopcda at 2010/09/30-10:39:28
Column:1(trial_id): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:10
Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
Entered hgopcda at 2010/09/30-10:39:28
Column:2(trial_name): dtype:12 (VARCHAR), prc/scl:64/0, nullbl:1, octet:0, sign:1, radix:10
Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
Entered hgopcda at 2010/09/30-10:39:28
Column:3(subjcnt): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:10
Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
Entered hgopcda at 2010/09/30-10:39:28
Column:4(total_expected_enrollment): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:10
Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
Entered hgopcda at 2010/09/30-10:39:28
Column:5(site_name): dtype:12 (VARCHAR), prc/scl:256/0, nullbl:1, octet:0, sign:1, radix:10
Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
The hoada for table cognos_enrollmentdtl_s follows...
hgodtab, line 876: Printing hoada @ 0x5f38a60
MAX:5, ACTUAL:5, BRC:1, WHT=6 (TABLE_DESCRIBE)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
4 INTEGER Y 4 4 0/ 0 0 0 0 trial_id
12 VARCHAR Y 0 0 0/ 0 0 0 200 trial_name
4 INTEGER Y 4 4 0/ 0 0 0 0 subjcnt
4 INTEGER Y 4 4 0/ 0 0 0 0 total_expected_enrollment
12 VARCHAR Y 0 0 0/ 0 0 0 200 site_name
Exiting hgodtab, rc=0 at 2010/09/30-10:39:28
Entered hgodafr, cursor id 0 at 2010/09/30-10:39:28
Free hoada @ 0x5f38a60
Exiting hgodafr, rc=0 at 2010/09/30-10:39:28
Entered hgopars, cursor id 1 at 2010/09/30-10:39:28
type:0
SQL text from hgopars, id=1, len=151 ...
00: 53454C45 43542041 312E2274 7269616C [SELECT A1."trial]
10: 5F696422 2C41312E 22747269 616C5F6E [_id",A1."trial_n]
20: 616D6522 2C41312E 22737562 6A636E74 [ame",A1."subjcnt]
30: 222C4131 2E22746F 74616C5F 65787065 [",A1."total_expe]
40: 63746564 5F656E72 6F6C6C6D 656E7422 [cted_enrollment"]
50: 2C41312E 22736974 655F6E61 6D652220 [,A1."site_name" ]
60: 46524F4D 2022636F 676E6F73 5F656E72 [FROM "cognos_enr]
70: 6F6C6C6D 656E7464 746C5F73 22204131 [ollmentdtl_s" A1]
80: 20574845 52452041 312E2274 7269616C [ WHERE A1."trial]
90: 5F696422 3D3339 [_id"=39]
Exiting hgopars, rc=0 at 2010/09/30-10:39:28
Entered hgoopen, cursor id 1 at 2010/09/30-10:39:28
hgoopen, line 86: NO hoada to print
Deferred open until first fetch.
Exiting hgoopen, rc=0 at 2010/09/30-10:39:28
Entered hgodscr, cursor id 1 at 2010/09/30-10:39:28
Allocate hoada @ 0x5f38a60
Entered hgopcda at 2010/09/30-10:39:28
Column:1(trial_id): dtype:4 (INTEGER), prc/scl:10/0, nullbl:2, octet:0, sign:1, radix:0
Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
Entered hgopcda at 2010/09/30-10:39:28
Column:2(trial_name): dtype:12 (VARCHAR), prc/scl:64/0, nullbl:2, octet:64, sign:1, radix:0
Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
Entered hgopcda at 2010/09/30-10:39:28
Column:3(subjcnt): dtype:4 (INTEGER), prc/scl:10/0, nullbl:2, octet:64, sign:1, radix:0
Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
Entered hgopcda at 2010/09/30-10:39:28
Column:4(total_expected_enrollment): dtype:4 (INTEGER), prc/scl:10/0, nullbl:2, octet:64, sign:1, radix:0
Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
Entered hgopcda at 2010/09/30-10:39:28
Column:5(site_name): dtype:12 (VARCHAR), prc/scl:256/0, nullbl:2, octet:256, sign:1, radix:0
Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
hgodscr, line 880: Printing hoada @ 0x5f38a60
MAX:5, ACTUAL:5, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
4 INTEGER Y 4 4 0/ 0 0 0 0 trial_id
12 VARCHAR Y 64 64 0/ 0 0 0 200 trial_name
4 INTEGER Y 4 4 0/ 0 0 0 0 subjcnt
4 INTEGER Y 4 4 0/ 0 0 0 0 total_expected_enrollment
12 VARCHAR Y 256 256 0/ 0 0 0 200 site_name
Exiting hgodscr, rc=0 at 2010/09/30-10:39:28
Entered hgoftch, cursor id 1 at 2010/09/30-10:39:28
hgoftch, line 130: Printing hoada @ 0x5f38a60
MAX:5, ACTUAL:5, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
4 INTEGER Y 4 4 0/ 0 0 0 0 trial_id
12 VARCHAR Y 64 64 0/ 0 0 0 200 trial_name
4 INTEGER Y 4 4 0/ 0 0 0 0 subjcnt
4 INTEGER Y 4 4 0/ 0 0 0 0 total_expected_enrollment
12 VARCHAR Y 256 256 0/ 0 0 0 200 site_name
Performing delayed open.
SQLBindCol: column 1, cdatatype: -16, bflsz: 4
SQLBindCol: column 2, cdatatype: 1, bflsz: 65
SQLBindCol: column 3, cdatatype: -16, bflsz: 4
SQLBindCol: column 4, cdatatype: -16, bflsz: 4
SQLBindCol: column 5, cdatatype: 1, bflsz: 257
SQLFetch: row: 1, column 1, bflsz: 4, bflar: 8
SQLFetch: row: 1, column 1, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
SQLFetch: row: 1, column 2, bflsz: 65, bflar: 15
SQLFetch: row: 1, column 2, bflsz: 65, bflar: 15, (bfl: 64, mbl: 64)
SQLFetch: row: 1, column 3, bflsz: 4, bflar: 8
SQLFetch: row: 1, column 3, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
SQLFetch: row: 1, column 4, bflsz: 4, bflar: 8
SQLFetch: row: 1, column 4, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
SQLFetch: row: 1, column 5, bflsz: 257, bflar: 23
SQLFetch: row: 1, column 5, bflsz: 257, bflar: 23, (bfl: 256, mbl: 256)
SQLFetch: row: 2, column 1, bflsz: 4, bflar: 8
SQLFetch: row: 2, column 1, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
SQLFetch: row: 2, column 2, bflsz: 65, bflar: 15
SQLFetch: row: 2, column 2, bflsz: 65, bflar: 15, (bfl: 0, mbl: 64)
SQLFetch: row: 2, column 3, bflsz: 4, bflar: 8
SQLFetch: row: 2, column 3, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
SQLFetch: row: 2, column 4, bflsz: 4, bflar: 8
SQLFetch: row: 2, column 4, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
SQLFetch: row: 2, column 5, bflsz: 257, bflar: 35
SQLFetch: row: 2, column 5, bflsz: 257, bflar: 35, (bfl: 0, mbl: 256)
SQLFetch: row: 3, column 1, bflsz: 4, bflar: 8
SQLFetch: row: 3, column 1, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
SQLFetch: row: 3, column 2, bflsz: 65, bflar: 15
SQLFetch: row: 3, column 2, bflsz: 65, bflar: 15, (bfl: 0, mbl: 64)
SQLFetch: row: 3, column 3, bflsz: 4, bflar: 8
SQLFetch: row: 3, column 3, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
SQLFetch: row: 3, column 4, bflsz: 4, bflar: 8
SQLFetch: row: 3, column 4, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
i will paste the remaing trace in another reply..as the 30000 char exceeded
Edited by: Kodali.S on Sep 30, 2010 8:22 AM
Edited by: Kodali.S on Sep 30, 2010 8:25 AM -
Migrating Sybase code to Oracle 11g
Hi All,
We have to migrate Sybase code to Oracle 11g.
When we are doing a SELECT .. INTO in Sybase , even if the query is returning more than 1 row , sybase selects 1 of the rows and populates the variables.
But while migrating this code to oracle, we are getting TOO_MANY_ROWS Exception.
We need to migrate the code from SYBASE to ORACLE without disturbing the logic.
Can someone please tell me the logic applied by SYBASE to pick up the record?
And if someone has faced this issue, then what can be done to resolve this.
Regards,
Riddhisha KhamesraThe result 3 is the last entered record (not the amount of records..).
So the first approach to write a dummy procedure that will select all records in Oracle like:
CREATE OR REPLACE PROCEDURE last_record
v_arg1 OUT NUMBER
AS
BEGIN
SELECT col1
INTO v_arg1
FROM tt_tmp ;
END;
and hopefully returns only the last record will fail with:
SQL> variable outvar number
SQL> exec last_record (:outvar)
BEGIN last_record (:outvar); END;
ERROR at line 1:
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "SYSTEM.LAST_RECORD", line 9
ORA-06512: at line 1
One possible approach to get the last (and only the last) record that was entered into the table is to use rownum:
The select might look like "select col1 from (select col1, rownum from tt_tmp order by rownum desc) where rownum=1;"
So the procedure can be coded as:
CREATE OR REPLACE PROCEDURE last_record
v_arg1 OUT NUMBER
AS
BEGIN
SELECT col1
INTO v_arg1
from (select col1, rownum from tt_tmp order by rownum desc) where rownum=1;
END;
Now calling it in SQL*Plus:
SQL> variable outvar number
SQL> exec last_record (:outvar)
PL/SQL procedure successfully completed.
SQL> print :outvar
OUTVAR
7
The value 7 is the last record I've inserted into my tt_tmp table:
SQL> select * from tt_tmp;
COL1 COL2
1 1
2 2
8 8
7 7 -
Migrate peoplesoft sybase HR database to oracle 11g
Hi All,
We am looking to migrate from sybase 12 to Oracle 11g. We are not sure on which path to choose for this migration to be done. Ths sybase Database is around 55 GB. Below are few questions. Please let me know. The down time on this database can not be more than 2 days at the max.
1. What is the best and fastest way to do this, if there is one?
2. Any Documentation on steps involved in migration?
3. Do we have to use any 3rd party tools for this?
4. Can we achieve the data migration with sql loader, if yes is it the suggested way to do this and is there any documentation on this?
I tried sql developer to do the migration but it did not go well and finally found that it is not the way to migrate a Database with peoplesoft environment, below is the link to explain more about what I have done with sql developer.
If there is any other information required, below link has almost all the information.
Re: Migrate peoplesoft sybase HRMS database to oracle 11g
Thanks
Kranthi1) Build an Oracle Demo system patched to the same release level as the current production system.
2) Launch Application Designer and compare the production system to the demo system so you may capture the modifications.
3) Load a custom table with the tables listed in the MVPRDEXP.EXP in the production system. Run a script to create an export script for all PSRECDEFN where the RECTYPE is 0. This identifies all application data tables. You may want to dms export large tables in parallel.
4) DMS Import the exported data into the Oracle instance.
5) Reapply the modifications. -
Migrate peoplesoft sybase HRMS database to oracle 11g
Hi All,
I want to know if I can migrate a sybase peoplesoft HRMS database to oracle 11g using sql developer 3.0. I am trying to do this following the steps given in the link below but it is taking for ever for the convert step, I could see the messae saying building converted model.
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/sqldev/r30/SybaseMigration/SybaseMigration.htm
The sybase database is 55GB and the version is 12. There are around 20,000 tables in Sybase Database.
Please advise, if this is possible with SQL Developer??
If yes, how long this process might take(for each step in the above link), based on any past convertions of the same size database??
If this is not feasable with SQL Developer because of the complexity of the database, are there any other tools we can look into which might be faster/better than SQL Developer.
Please advise.
Thanks..Hi Dermot, Tanks for the reply.
"Do you know the number of views and procedures captured". Below is the ouput from some of the tables in migration repositary.
count from md_derivatives table, grouped by derived_type.
MD_CATALOGS 1
MD_USERS 1
MD_CONNECTIONS 2
MD_SCHEMAS 4
MD_TRIGGERS 40
MD_VIEWS 34316
MD_TABLES 48048
MD_INDEXES 55850
MD_INDEX_DETAILS 112043
MD_COLUMNS 766244
Count from md_views table 34316
Count from md_additional_properties table 110322
"Is there a chance the convert phase has hung, or does it refresh ever so ofter with details of another object being "migrated"?"
It is not hung. I can see the message 'Translating views' right now, and the View names change often but not fast roughly every minute. When I checked for what the session is doing, I could see the below two sql statements.
SELECT PROP_KEY, VALUE, PROPERTY_ORDER, CONNECTION_ID_FK
FROM MD_ADDITIONAL_PROPERTIES
WHERE REF_ID_FK = :1
ORDER BY PROPERTY_ORDER;
SELECT ID
FROM MD_TABLES -- Some times this is MD_VIEWS
WHERE SCHEMA_ID_FK = :1 AND UPPER (TABLE_NAME) = UPPER (:2)
"What is the current "Being migrated" information?"
Translating View xxx.
"Does the tablespaces your migration repository schema is based on have sufficient space?"
Yes, Since there is no data at this point, it is all done in one table space which is set to grow UNLIMITED. At this point the size of the table space is a little over 500M.
"Is SQL Developer being run on the same machine as the Oracle database containing the migration repository? (conversion can be alot quicker for procedure,view,trigger conversion if SQL Developer is on the same machine as the repository)"
NO. SQL developer is running on my machine but the migration repositary is in the database which is on HP-UX box. Below are some of the details of the server. Also, since the database in on HP-UX, I couldn't find SQL developer for UNIX. I also read in the release note of 3.0 that it is not supported with UNIX, Is that right? else is there a way I can install SQL developer on the Unix server and that might improve the performance!, if yes, please guide me with the steps to do this installation.
Server:
Processors: 4, CPU version: PA 8700 CPU module 3.1, clock Frequency: 750MHz, Hardware Model: 900/800/L3000-7x, Kernel width Support 64.
Physical Memory 8199.3 MB
Real Memory --> Active: 2990487.0 KB, Total: 3956471.8 KB
Virtual Memory --> Active: 5787735.5 KB, Total: 6864998.0 KB
Free Memory Pages: 127049 at 4 KB/page
Swap Space --> Avail: 4096 MB, Used: 4096 MB, Free: 0 MB
OS Identification: B.11.11 U
I see the below when I do a 'glance' on the server. Looks like it is using most of the memory and the Swap. These are the numbers from the server after the migration started, they stay consistent all time with very small variation.
CPU Util S SR RU U | 34% 31% 39%
Disk Util F F | 4% 4% 13%
Mem Util S SU UB B | 93% 93% 93%
Swap Util U UR R | 86% 86% 86%
PROCESS LIST Users= 1
User CPU Util Cum Disk Thd
Process Name PID PPID Pri Name ( 400% max) CPU IO Rate RSS Cnt
oraclefap 16560 1 178 oracle 97.9/98.3 132507 0.1/ 0.6 16.0mb 1
My Machine where SQL Developer is Running
Windows XP Professional SP3. 2GB Memoery. All this, time I was using around 1 Gb of memory while this process is running, Out of which SQL developer uses only 200 to 300 MB at any given point and the CPU is less than 5%.
"What version of Oracle database have you installed the migration repository in?"
Below is the Banner.
Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for HPUX: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
Also please let me know about this request I have popsted. https://apex.oracle.com/pls/apex/f?p=43135:7:2259365896228241::NO:RP,7:P7_ID:29361
I would greatly appreciate any help. Thanks again. -
Oracle Forms & Report Upgrade/Migrate from 6i to 11g
Hi All,
We are planning to upgrade/Migrate from Oracle Froms and Reports 6i to 11g. Can some one please give me an high level steps to upgrade and migrate from 6i to 11g version.
Many thanks in advance.
Kind Regards,
Mohanhi ,
use below steps for Eliminate this issue
To start the wizard version of the Forms Migration Assistant:
1. On Windows systems, set the environment variable FORMS_PATH:
SET FORMS_PATH=%ORACLE_HOME%\forms
On UNIX systems, set the variable FORMS_PATH as in the example below:
setenv FORMS_PATH $ORACLE_HOME/forms
2.
In Windows, from the Start menu, select ORACLE_HOME | Forms Developer |Oracle Forms Migration Assistant (GUI Mode), or at the command line, start the conversion utility by entering: frmplsqlconv.bat mode=wizard.
or
in UNIX, enter frmplsqlconv.sh mode=wizard.
The Conversion Wizard Welcome dialog displays.
Regards,
Babu -
Migrating from MySQL to Oracle 11g
can u tell me the steps to migrating database from MySQL to Oracle using SQL Developer?
I have installed Oracle 11g(11.1.0.6.0) in server and SQl Developer in my local system.
I connected to MySQL and Oracle in SQL Developer and tried to MIgrate everything in MySQL to Oracle using Quick Migrate option.
it took one and half day but didn't work at last...
is there any pre tasks that i need to do before migrating to oracle from MySQL?
and also when i export the MySQL data to Oracle using SQL Developer,it is giving data type mismatch errors like (date, boolean etc...).
please give a reply what i need to do and any refferences also very much appreciated.hi Turloch ,
I followed the steps mentioned above.
When I right click my MySQL server db Connection and click "Capture MySQL server", it just shows a dialog with "Close" enabled.
after clicking the close button, it gives following error messages.
oracle.dbtools.metadata.persistence.PersistableObject.doInsert(PersistableObject.java:238)
the same error is coming no of times.
Kindly help me in this regard. -
Oracle 11g Migration performance issue
Hello,
There a performance issue with Migration from Oracle 10g(10.2.0.5) to Oracle 11g(11.2.0.2).
Its very simple statement hanging for more than a day and later found that query plan is very very bad. Example of the query is given below:
INSERT INTO TABLE_XYZ
SELECT F1,F2,F3
FROM TABLE_AB, TABLE_BC
WHERE F1=F4;
While looking at cost in Explain plan :
on 10g --> 62567
0n 11g --> 9879652356776
Strange thing is that
Scenario 1: if I issue just query as shown below, will display rows immediately :
SELECT F1,F2,F3
FROM TABLE_AB, TABLE_BC
WHERE F1=F4;
Scenario 2: If I create a table as shown below, will work correctly.
CREATE TABLE TABLE_XYZ AS
SELECT F1,F2,F3
FROM TABLE_AB, TABLE_BC
WHERE F1=F4;
What could be the issue here with INSERT INTO <TAB> SELECT <COL> FROM <TAB1>?Table:
CREATE TABLE AVN_WRK_F_RENEWAL_TRANS_T
"PKSRCSYSTEMID" NUMBER(4,0) NOT NULL ENABLE,
"PKCOMPANYCODE" VARCHAR2(8 CHAR) NOT NULL ENABLE,
"PKBRANCHCODE" VARCHAR2(8 CHAR) NOT NULL ENABLE,
"PKLINEOFBUSINESS" NUMBER(4,0) NOT NULL ENABLE,
"PKPRODUCINGOFFICELIST" VARCHAR2(2 CHAR) NOT NULL ENABLE,
"PKPRODUCINGOFFICE" VARCHAR2(8 CHAR) NOT NULL ENABLE,
"PKEXPIRYYR" NUMBER(4,0) NOT NULL ENABLE,
"PKEXPIRYMTH" NUMBER(2,0) NOT NULL ENABLE,
"CURRENTEXPIRYCOUNT" NUMBER,
"CURRENTRENEWEDCOUNT" NUMBER,
"PREVIOUSEXPIRYCOUNT" NUMBER,
"PREVIOUSRENEWEDCOUNT" NUMBER
SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT
TABLESPACE "XYZ" ;
Explain Plan(With Insert Statement and Query):_
INSERT STATEMENT, GOAL = ALL_ROWS Cost=9110025395866 Cardinality=78120 Bytes=11952360
LOAD TABLE CONVENTIONAL Object owner=ODS Object name=AVN_WRK_F_RENEWAL_TRANS
NESTED LOOPS OUTER Cost=9110025395866 Cardinality=78120 Bytes=11952360
TABLE ACCESS FULL Object owner=ODS Object name=AVN_WRK_F_RENEWAL_TRANS_1ST Cost=115 Cardinality=78120 Bytes=2499840
VIEW PUSHED PREDICATE Object owner=ODS Cost=116615788 Cardinality=1 Bytes=121
SORT GROUP BY Cost=116615788 Cardinality=3594 Bytes=406122
VIEW Object owner=SYS Object name=VW_DAG_1 Cost=116615787 Cardinality=20168 Bytes=2278984
SORT GROUP BY Cost=116615787 Cardinality=20168 Bytes=4073936
NESTED LOOPS OUTER Cost=116614896 Cardinality=20168 Bytes=4073936
VIEW Object owner=SYS Cost=5722 Cardinality=20168 Bytes=2157976
NESTED LOOPS Cost=5722 Cardinality=20168 Bytes=2097472
HASH JOIN Cost=924 Cardinality=1199 Bytes=100716
NESTED LOOPS
NESTED LOOPS Cost=181 Cardinality=1199 Bytes=80333
TABLE ACCESS BY INDEX ROWID Object owner=ODS Object name=INWARDSPOLICYDETAILS Cost=159 Cardinality=1199 Bytes=39567
INDEX RANGE SCAN Object owner=ODS Object name=IX_INWPOLDTLS_SYSCOMPANYBRANCH Cost=7 Cardinality=1199
INDEX UNIQUE SCAN Object owner=ODS Object name=PK_AVN_D_MASTERPOLICYDETAILS Cost=0 Cardinality=1
TABLE ACCESS BY INDEX ROWID Object owner=ODS Object name=AVN_D_MASTERPOLICYDETAILS Cost=1 Cardinality=1 Bytes=34
TABLE ACCESS FULL Object owner=ODS Object name=INWARDSPOLICYLOBMAPPING Cost=741 Cardinality=288498 Bytes=4904466
VIEW PUSHED PREDICATE Object owner=ODS Cost=4 Cardinality=1 Bytes=20
FILTER
SORT AGGREGATE Cardinality=1 Bytes=21
TABLE ACCESS BY GLOBAL INDEX ROWID Object owner=ODS Object name=AVN_F_TRANSACTIONS Cost=4 Cardinality=1 Bytes=21
INDEX RANGE SCAN Object owner=ODS Object name=PK_AVN_F_TRANSACTIONS Cost=3 Cardinality=1
VIEW PUSHED PREDICATE Object owner=ODS Cost=5782 Cardinality=1 Bytes=95
SORT GROUP BY Cost=5782 Cardinality=2485 Bytes=216195
VIEW Object owner=SYS Object name=VW_DAG_0 Cost=5781 Cardinality=2485 Bytes=216195
SORT GROUP BY Cost=5781 Cardinality=2485 Bytes=278320
HASH JOIN Cost=5780 Cardinality=2485 Bytes=278320
VIEW Object owner=SYS Object name=VW_GBC_15 Cost=925 Cardinality=1199 Bytes=73139
SORT GROUP BY Cost=925 Cardinality=1199 Bytes=100716
HASH JOIN Cost=924 Cardinality=1199 Bytes=100716
NESTED LOOPS
NESTED LOOPS Cost=181 Cardinality=1199 Bytes=80333
TABLE ACCESS BY INDEX ROWID Object owner=ODS Object name=INWARDSPOLICYDETAILS Cost=159 Cardinality=1199 Bytes=39567
INDEX RANGE SCAN Object owner=ODS Object name=IX_INWPOLDTLS_SYSCOMPANYBRANCH Cost=7 Cardinality=1199
INDEX UNIQUE SCAN Object owner=ODS Object name=PK_AVN_D_MASTERPOLICYDETAILS Cost=0 Cardinality=1
TABLE ACCESS BY INDEX ROWID Object owner=ODS Object name=AVN_D_MASTERPOLICYDETAILS Cost=1 Cardinality=1 Bytes=34
TABLE ACCESS FULL Object owner=ODS Object name=INWARDSPOLICYLOBMAPPING Cost=741 Cardinality=288498 Bytes=4904466
VIEW Object owner=SYS Object name=VW_GBF_16 Cost=4854 Cardinality=75507 Bytes=3850857
SORT GROUP BY Cost=4854 Cardinality=75507 Bytes=2340717
VIEW Object owner=ODS Cost=4207 Cardinality=75507 Bytes=2340717
SORT GROUP BY Cost=4207 Cardinality=75507 Bytes=1585647
PARTITION HASH ALL Cost=3713 Cardinality=75936 Bytes=1594656
TABLE ACCESS FULL Object owner=ODS Object name=AVN_F_TRANSACTIONS Cost=3713 Cardinality=75936 Bytes=1594656
Explain Plan(Only Query):_
SELECT STATEMENT, GOAL = ALL_ROWS Cost=62783 Cardinality=89964 Bytes=17632944
HASH JOIN OUTER Cost=62783 Cardinality=89964 Bytes=17632944
TABLE ACCESS FULL Object owner=ODS Object name=AVN_WRK_F_RENEWAL_TRANS_1ST Cost=138 Cardinality=89964 Bytes=2878848
VIEW Object owner=ODS Cost=60556 Cardinality=227882 Bytes=37372648
HASH GROUP BY Cost=60556 Cardinality=227882 Bytes=26434312
VIEW Object owner=SYS Object name=VW_DAG_1 Cost=54600 Cardinality=227882 Bytes=26434312
HASH GROUP BY Cost=54600 Cardinality=227882 Bytes=36005356
HASH JOIN OUTER Cost=46664 Cardinality=227882 Bytes=36005356
VIEW Object owner=SYS Cost=18270 Cardinality=227882 Bytes=16635386
HASH JOIN Cost=18270 Cardinality=227882 Bytes=32587126
HASH JOIN Cost=12147 Cardinality=34667 Bytes=2912028
HASH JOIN Cost=10076 Cardinality=34667 Bytes=2322689
TABLE ACCESS FULL Object owner=ODS Object name=AVN_D_MASTERPOLICYDETAILS Cost=137 Cardinality=34667 Bytes=1178678
TABLE ACCESS FULL Object owner=ODS Object name=INWARDSPOLICYDETAILS Cost=9934 Cardinality=820724 Bytes=27083892
TABLE ACCESS FULL Object owner=ODS Object name=INWARDSPOLICYLOBMAPPING Cost=741 Cardinality=866377 Bytes=14728409
VIEW Object owner=ODS Cost=5195 Cardinality=227882 Bytes=13445038
HASH GROUP BY Cost=5195 Cardinality=227882 Bytes=4785522
PARTITION HASH ALL Cost=3717 Cardinality=227882 Bytes=4785522
TABLE ACCESS FULL Object owner=ODS Object name=AVN_F_TRANSACTIONS Cost=3717 Cardinality=227882 Bytes=4785522
VIEW Object owner=ODS Cost=26427 Cardinality=227882 Bytes=19369970
HASH GROUP BY Cost=26427 Cardinality=227882 Bytes=18686324
VIEW Object owner=SYS Object name=VW_DAG_0 Cost=26427 Cardinality=227882 Bytes=18686324
HASH GROUP BY Cost=26427 Cardinality=227882 Bytes=25294902
HASH JOIN Cost=20687 Cardinality=227882 Bytes=25294902
VIEW Object owner=SYS Object name=VW_GBC_15 Cost=12826 Cardinality=34667 Bytes=2080020
HASH GROUP BY Cost=12826 Cardinality=34667 Bytes=2912028
HASH JOIN Cost=12147 Cardinality=34667 Bytes=2912028
HASH JOIN Cost=10076 Cardinality=34667 Bytes=2322689
TABLE ACCESS FULL Object owner=ODS Object name=AVN_D_MASTERPOLICYDETAILS Cost=137 Cardinality=34667 Bytes=1178678
TABLE ACCESS FULL Object owner=ODS Object name=INWARDSPOLICYDETAILS Cost=9934 Cardinality=820724 Bytes=27083892
TABLE ACCESS FULL Object owner=ODS Object name=INWARDSPOLICYLOBMAPPING Cost=741 Cardinality=866377 Bytes=14728409
VIEW Object owner=SYS Object name=VW_GBF_16 Cost=7059 Cardinality=227882 Bytes=11621982
HASH GROUP BY Cost=7059 Cardinality=227882 Bytes=6836460
VIEW Object owner=ODS Cost=5195 Cardinality=227882 Bytes=6836460
HASH GROUP BY Cost=5195 Cardinality=227882 Bytes=4785522
PARTITION HASH ALL Cost=3717 Cardinality=227882 Bytes=4785522
TABLE ACCESS FULL Object owner=ODS Object name=AVN_F_TRANSACTIONS Cost=3717 Cardinality=227882 Bytes=4785522 -
How do I migrate views from MS SQL 2008 to Oracle 11g through SQL Developer
Is there any way to migrate the views from MS SQL 2008 to Oracle 11g through SQL Developer? Please give me some detail steps. Thanks for your help.
KevinHi Kevin,
user13531850 wrote:
Hi Turloch,
When I use migrate to oracle, I got a problem, the migrate tool create a new schema for me in my case (AZTECA_KSMMS), it migrates all the stuffs under that schema (AZTECA_KSMMS). However my application need the all the Oracle data under schema AZTECA instead of AZTECA_KSMMS. Is there any way to specify specific schema (AZTECA) for target oracle database? Schema remapping is available:
First Capture (separately) then during right click convert on the captured model there is a Specify the conversion options with a Object Naming tab where the schema (and other) name changes are editable.
I have not used this recently.
Also during the migration process, when I choose repository, there is a check box for truncate to reset repository to empty state, Do I need to check that truncate Check Box so the repository will be cleared from last migration?The repository can hold multple migration attempts. Check truncate to get rid of previous attempts information. This cleans up the repository - not the destination database.
There are also online database and offline database options during the migration process, what are the difference between these two choices? After I migrated to Oracle, all my views has a red cross icon next to it. Does that mean the view migration is failed or not? Please give me your comments. Thanks for your help.offline: for big (amount of data) databases with simple data types,
uses bcp + files + scripts + sqlldr.
online: for small (amount of data) databases (easier),
uses (Java) jdbc.
The view is likely to be broken - recompiling it may help.
The Oracle schema is created using a .sql file - see under generated in the directory you gave originally in the wizard. There is a .out file that contains the result of running this script including any errors. During conversion there are also likely to be warnings displayed on the UI.
There may be a single issue that is causing multiple issues - if viewa depends on functionb, and functionb is broken, viewa will also fail.
>
Kevin-Turloch
SQLDeveloper Team -
Migrating Sybase "timestamp" data type to Oracle DB
Hi,
We are migrating huge Application currently running on Sybase database
to Oracle 10.2.0.3 (500+ Tables and Stored Procedures).
Have following questions regarding this Migration.
1) Many of the Sybase Tables have column which is of Sybase data type "timestamp".
Do you have any recommendation what is the data type to be used in Oracle for
migrating "timestamp" data type in Sybase?
2) How should we migrate existing data and business logic residing in Sybase for
data columns of Sybase data type "timestamp" ?
Given below are details on how we use Sybase timestamp Column in our Application
and we are trying to arrive at the best Solution that is possible for migrating
all those Tables and related business logic to Oracle.
We have following Control Table in Sybase which has column of timestamp data type and
some other Business keys.
sp_help EQP_IES_CRE_TIMESTAMP (This is similar to desc <table> command in Oracle)
EQP_IES_CRE_TIMESTAMP,dbo,user table
default,Nov 14 2001 10:39AM
CRE_TIMESTAMP ,timestamp,8,,,0,,,,0
REF_NUM ,char,30,,,0,,,,0
REC_UPD_DT ,datetime,8,,,1,,,,0
EQP_IES_CRE_TIMESTAMPI1,clustered, unique located on default, CRE_TIMESTAMP, REF_NUM, REC_UPD_DT,0,0,0,
Following is the overall logic used in Sybase
-- Step 1: Based on Event, populate Control Table with new Row.
-- CRE_TIMESTAMP timestamp Column gets auto-populated by Sybase
insert EQP_IES_CRE_TIMESTAMP (REF_NUM, REC_UPD_DT)
values (@uuid_ref_num, @event_cre_dt)
Since CRE_TIMESTAMP is auto-populated, it does not appear in above INSERT statement.
-- Step 2: Store timestamp value populated by Sybase in previous step,
-- to variable @event_timestamp. This value would be referenced
-- later in other SQL statements
select @event_timestamp = CRE_TIMESTAMP
from EQP_IES_CRE_TIMESTAMP
where REF_NUM = @uuid_ref_num
and REC_UPD_DT = @event_cre_dt
-- Sample value for @event_timestamp could be '001c0000182f2089'
-- It is not very readable or understandable
-- Step 3: Delete Control Table entry made in Step 1
delete EQP_IES_CRE_TIMESTAMP from EQP_IES_CRE_TIMESTAMP
where CRE_TIMESTAMP = @event_timestamp
-- Step 4: Make use of saved timestamp value from Step 2 to trigger queries
-- against other Tables that have timestamp Columns
-- Some sample queries are as shown below
delete eqp_staging
where event_timestamp > @event_timestamp;
insert into eqp_movement values(@event_timestamp, ......other columns) ;
Any idea how above Table and logic could be migrated to Oracle DB
We would also like to know how data values that currently exist
in Sybase Tables should be populated in Oracle .
Any suggestions or tips would be greatly appreciated
Thanks
AuropremHi All,
Thanks for your responses.
We have decided on Solution to migrate "timestamp" Column from Sybase to Oracle, that is
specific to our Application needs.
Following is what we decided:
1) Create RAW Column in Oracle which would contain data Replicated from Sybase "timestamp" Column as is.
2) Create additional Column of INTEGER data type to store number equivalent of Sybase "timestamp" column
which would be more usable and consummable in Oracle as compared to RAW datatype.
3) Write Row-Level INSERT/UPDATE Trigger on migrated Oracle Table to populate INTEGER Column using
SQL Function TO_NUMBER(<raw_column_value>, 'xxxxxxxx').
4) Applications that access this Table, upon migration to Oracle, will now start referencing INTEGER Column
newly defined, and populated via Trigger.
Please let us know if you see any issues with this approach
Thanks
user641521 -
Oracle 10g reports migration to Oracle 11g migration
I have migrated oracle 10g reports to Oracle 11g reports and generated REP file. But when we execute REP file using RWRUN.EXE I am getting below error.
ERR REP-50125: rwbuilder.conf:java.lang.NullPointerException
ERR java.lang.NullPointerException
to avoid this I tried below work arround which was posted in "https://forums.oracle.com/forums/thread.jspa?threadID=2365028" URL. but not success.
1. Go to C:\Oracle\Middleware\asinst_1\config\FRComponent\frcommon\tools\admin
2. Make a backup of the file 'cauprefs.ora'
3. Open up the file in a text editor:
--In the file, look for:
Reports.PluggableDataSourceFactories =
("oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory",
"oracle.reports.plugin.datasource.jdbcpds.JDBCDataSourceFactory",
"oracle.reports.plugin.datasource.textpds.TextDataSourceFactory")
--Replace the value to: Reports.PluggableDataSourceFactories = ()
4. Save the file and try running Reports Builder again. Data Model should open up without crashing.
Could you please help me to resolve this issue.When I use rwrun.bat report is not invoking i use below command line. I am executing rwrun.bat from C:\Oracle\Middleware\asinst_1\config\reports\bin path.
rwrun.bat report="C:\Program Files\prnsrv\advices\01\bcacuchq.rep" userid=dbuserid/[email protected] desformat=pdf DESTYPE=file DESNAME="c:\temp\test.pdf" TRACEFILE="C:\TEMP\test.LOG" PRM_BRCH_CODE=781 PRM_PROD_CODE=BC PRM_PROD_REF_ID=BC11100142 PRM_ORDER_COL=DELIVERY_MODE PRM_CHQ_RPT=Y
and log is generating as below
===========================
LOG :
Report: C:\Program Files\prnsrv\advices\01\bcacuchq.rep
Logged onto server:
Username:
*** Starting up the JVM ***
JVM CLASSPATH variable is:
C:\Oracle\Middleware\Oracle_FRHome2\reports\jlib\rwbuilder.jar;C:\Oracle\Middleware\Oracle_FRHome2\reports\jlib\rwrun.jar;C:\Oracle\Middleware\Oracle_FRHome2\jlib\zrclient.jar
*** JVM started successfully ***
==================================== -
MS SQL Server system stored procedures can't be migrated into Oracle 11g
During database migration from MS SQL Server 2008 to Oracle 11g R2, if the application stored procedure invokes the MS SQL Server system stored procedures (for example: sp_getapplock, sp_releaseapplock ....), these SQL server system stored procedures can't be transferred. See following migrated Oracle application stored procedure for example:
create or replace
PROCEDURE spPwSysID_GetNextID
v_ID OUT NUMBER,
iv_SysType IN NVARCHAR2 DEFAULT NULL ,
iv_Cnt IN NUMBER DEFAULT NULL
AS
v_SysType NVARCHAR2(50) := iv_SysType;
v_Cnt NUMBER(10,0) := iv_Cnt;
v_result NUMBER(10,0);
BEGIN
--SQL Server BEGIN TRANSACTION;
utils.incrementTrancount;
v_Systype := UPPER(v_Systype) ;
IF v_Cnt < 1 THEN
v_Cnt := 1 ;
END IF;
v_result :=sp_getapplock(v_Resource => v_Systype,
v_LockMode => 'Exclusive') ;
IF v_result >= 0 THEN
BEGIN
SELECT ID
INTO v_ID
FROM PWSYSID
WHERE SysType = v_SysType;
IF SQL%ROWCOUNT = 1 THEN
UPDATE PwSysID
SET ID = ID + v_cnt
WHERE SysType = v_SysType;
ELSE
BEGIN
INSERT INTO PwSysID
( ID, SysType )
VALUES ( v_cnt + 1, v_SysType );
v_ID := 1 ;
END;
END IF;
v_result :=sp_releaseapplock(v_Resource => v_Systype) ;
END;
ELSE
BEGIN
raise_application_error( -20002, 'Lock failed to acquire to generate Cityworks Id.' );
END;
END IF;
utils.commit_transaction;
END;During database migration from MS SQL Server 2008 to Oracle 11g R2, if the application stored procedure invokes the MS SQL Server system stored procedures (for example: sp_getapplock, sp_releaseapplock ....), these SQL server system stored procedures can't be transferred. See following migrated Oracle application stored procedure for example:
create or replace
PROCEDURE spPwSysID_GetNextID
v_ID OUT NUMBER,
iv_SysType IN NVARCHAR2 DEFAULT NULL ,
iv_Cnt IN NUMBER DEFAULT NULL
AS
v_SysType NVARCHAR2(50) := iv_SysType;
v_Cnt NUMBER(10,0) := iv_Cnt;
v_result NUMBER(10,0);
BEGIN
--SQL Server BEGIN TRANSACTION;
utils.incrementTrancount;
v_Systype := UPPER(v_Systype) ;
IF v_Cnt < 1 THEN
v_Cnt := 1 ;
END IF;
v_result :=sp_getapplock(v_Resource => v_Systype,
v_LockMode => 'Exclusive') ;
IF v_result >= 0 THEN
BEGIN
SELECT ID
INTO v_ID
FROM PWSYSID
WHERE SysType = v_SysType;
IF SQL%ROWCOUNT = 1 THEN
UPDATE PwSysID
SET ID = ID + v_cnt
WHERE SysType = v_SysType;
ELSE
BEGIN
INSERT INTO PwSysID
( ID, SysType )
VALUES ( v_cnt + 1, v_SysType );
v_ID := 1 ;
END;
END IF;
v_result :=sp_releaseapplock(v_Resource => v_Systype) ;
END;
ELSE
BEGIN
raise_application_error( -20002, 'Lock failed to acquire to generate Cityworks Id.' );
END;
END IF;
utils.commit_transaction;
END; -
Link/checklist for migrating applications from Oracle 9i to Oracle 11g?Help
Hi all,
We need to perform an impact analysis on migratiing an application from Oracle 9i to Oracle 11g. Does any of you have a detailed checklist to follow, in terms of queries, PL/SQL statements, optimizer etc. etc., when attempting this migration. We require something more specific from the application point of view rather than a DBA point of view.
Additionally, we have queries written extensively with rule hints. Should there be a special consideration for the same since now we are moving to CBO in 11g
Even if any one has a link, that would help. Thank you so much!Hi Nikhil,
Thanks Xaheer,You're welcome :)
I'm going through the link: http://download.oracle.com/docs/cd/E11882_01/server.112/e10819/toc.htm
But it still mentions stuff from a DBA angle. I need from an application angle.
Do I need to change my queries taht are current written with RBO? Do I need to change Pl/SQL blocks ?Please refer tech below notes:
*1)TROUBLESHOOTING: Server Upgrade Results in Slow Query Performance -- 160089.1*
*2)TESTING SQL PERFORMANCE IMPACT OF AN ORACLE 9i TO ORACLE DATABASE 10g RELEASE 2 UPGRADE WITH SQL PERFORMANCE ANALYZER -- 562899.1*
Before upgrading your production database, please perform upgrade of test database and do complete testing.
Hope helps
Regards,
X A H E E R -
Vb6 ODBC - Syntax error or access violation in oracle 11g migration
Hi,
We have VB6 application with Oracle 10g and the same is working fine.
Now, we are migrating to Oracle 11g now and we have updated the odbc drivers too.
{ call M_FR(?, ?, ?, ?, ?, ?, ?, ?) }
L_ID = 890083
V_ID = 1
SUB_ID = 6955141
SUB_SEQ = 1
P_CODE = 1
L_SUP_TYPE = 1
L_REF_NO = 1
DELETE_REASON_CODE = 1
When calling the above sp in oracle 11g getting error: [Microsoft][ODBC driver for Oracle]Syntax error or access violation.
But user has all the right and no issue with access. Also no syntax error. In SQLplus the same is working fine.
Kindly help us to resolve this issue.
Regards,
SathiyaTry downloading the latest version of the 8.1.6 driver off OTN.
That sounds like a bug that was fixed a while ago.
Justin
Maybe you are looking for
-
Dynamic Link slow in After Effect CC 2014 (Version 13.0)
So been waiting & hoping for an update from Adobe on the 2014 versions of AE & PP that fixes this massive slowdown of AE comps in PP and nothing has happened in 2 months! So can anyone at Adobe tell me why AE now runs so slowly in PP when the previou
-
How would I know what is the required UNDO tbs space for a job to run successfully. I cannot view the code of the job. How can I calculate the UNDO tbs requirement for that particular job. Following is the error I am facing while running that job : *
-
Shrink while printing: what's the scale?
Hi, This morning I updated my Acrobat Pro (for windows) to version 10.1.3 (after my previous version kept on crashing). What I use Acrobat for the most is cropping a large pdf-page (text and images) to a detail of the original page, then printing the
-
Need help getting ready for print
I am running Photoshop CS5 on a Mac 10.8.4. I have basic photoshop experience. My designer has left me in the lurch at a daedline and I need to get some material to the printer ASAP. The design is finished. The printer wants all the text outlined an
-
Efax 7510 still won't work after turning off/on ePrint several times
I'm trying to send an eFax over and over after turning off and on the ePrint button under the webservices menu but without any success. The message keeps stating that it's not connected to a network. I am 100% sure that it is connected to my wireless