Problem in search example on MYSQL and ORacle
Hi
I have a sample application built on mysql 5.0 and ADF BC jdev 10.1.3.2. All the functionalities are working fine upto the expections. But the only problem is date format masking. When i run on mysql 5.0 date format is YYYY-MM-dd . Records can be searched when connected to mysql.
When i switch the application to oracle DB it results into
AND ( ( (CsRegn.CR_REGN_DT = '2008-05-05') ) )
ORA-01861: literal does not match format string
how to overcome this sort of problem
regards
Amit
any body help on this
Similar Messages
-
Problem with Linus Ubuntu 7.04 and Oracle-Xe debian package
Hi all,
Installed Oracle 10g XE on my Ubuntu 7.04 using universal Debian Package : oracle-xe-universal_10.2.0.1-1.0_i386.deb. No problem during the installation . After finished the installation, I configured the database to use port 6000 and its password (Listener port set to default).
But when I tried to access the database home page using "http://127.0.0.1:6000/apex", it cannot be accessed. Then I tried to verify my database server using /etc/init.d/oracle-xe status and here's the output:(before it, I make user the database was realy online by typing /etc/init.d/oracle-xe start)
###########################333###
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-AUG-2007 22:45:07
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=wks-082)(PORT=1521)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
Linux Error: 110: Connection timed out
then I tried to open the log in /usr/lib/oracle/xe/app/oracle/admin/xe/bdump/alert_XE.log and here is the output
Thu Aug 9 14:54:14 2007
Starting ORACLE instance (normal)
Cannot determine all dependent dynamic libraries for /proc/self/exe
Unable to find dynamic library libocr10.so in search paths
RPATH = /ade/aime1_build2101/oracle/has/lib/:/ade/aime1_build2101/oracle/lib/:/ade/aime1_build2101/oracle/has/lib/:
LD_LIBRARY_PATH is not set!
The default library directories are /lib and /usr/lib
Unable to find dynamic library libocrb10.so in search paths
Unable to find dynamic library libocrutl10.so in search paths
Unable to find dynamic library libocrutl10.so in search paths
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Shared memory segment for instance monitoring created
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =10
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Thu Aug 9 14:54:27 2007
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.1.0.
System parameters with non-default values:
sessions = 49
sga_target = 146800640
control_files = /usr/lib/oracle/xe/oradata/XE/control.dbf
compatible = 10.2.0.1.0
db_recovery_file_dest = /usr/lib/oracle/xe/app/oracle/flash_recovery_area
db_recovery_file_dest_size= 10737418240
undo_management = AUTO
undo_tablespace = UNDO
remote_login_passwordfile= EXCLUSIVE
dispatchers = (PROTOCOL=TCP) (SERVICE=XEXDB)
shared_servers = 4
job_queue_processes = 4
background_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/bdump
user_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/udump
core_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/cdump
audit_file_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/adump
db_name = XE
open_cursors = 300
os_authent_prefix =
pga_aggregate_target = 41943040
Thu Aug 9 14:54:33 2007
Errors in file /usr/lib/oracle/xe/app/oracle/admin/XE/udump/xe_ora_7532.trc:
ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
USER: terminating instance due to error 600
Instance terminated by USER, pid = 7532
Thu Aug 9 14:54:35 2007
Starting ORACLE instance (normal)
Cannot determine all dependent dynamic libraries for /proc/self/exe
Unable to find dynamic library libocr10.so in search paths
RPATH = /ade/aime1_build2101/oracle/has/lib/:/ade/aime1_build2101/oracle/lib/:/ade/aime1_build2101/oracle/has/lib/:
LD_LIBRARY_PATH is not set!
The default library directories are /lib and /usr/lib
Unable to find dynamic library libocrb10.so in search paths
Unable to find dynamic library libocrutl10.so in search paths
Unable to find dynamic library libocrutl10.so in search paths
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =10
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Thu Aug 9 14:54:46 2007
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.1.0.
System parameters with non-default values:
sessions = 49
sga_target = 146800640
control_files = /usr/lib/oracle/xe/oradata/XE/control.dbf
compatible = 10.2.0.1.0
db_recovery_file_dest = /usr/lib/oracle/xe/app/oracle/flash_recovery_area
db_recovery_file_dest_size= 10737418240
undo_management = AUTO
undo_tablespace = UNDO
remote_login_passwordfile= EXCLUSIVE
dispatchers = (PROTOCOL=TCP) (SERVICE=XEXDB)
background_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/bdump
user_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/udump
core_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/cdump
audit_file_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/adump
db_name = XE
open_cursors = 300
os_authent_prefix =
pga_aggregate_target = 41943040
Thu Aug 9 14:54:51 2007
Errors in file /usr/lib/oracle/xe/app/oracle/admin/XE/udump/xe_ora_7551.trc:
ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
USER: terminating instance due to error 600
Instance terminated by USER, pid = 7551
Thu Aug 9 14:54:53 2007
Are there anyone who can help me? I really have no idea since I'm a newbie here, both linux and oracle. Any hint are welcome, thanks in advance.
Regards,
Rudi SadriaThx for the help, I already verify the /etc/hosts and these are the output:
127.0.0.1 localhost
127.0.0.1 wks-082
127.0.0.1 localhost.localdomain localhost localhost.domain
127.0.0.1 hostname hostname.domain
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
I check the listener status and here's the output:
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 10-AUG-2007 15:14:45
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 10-AUG-2007 15:14:39
Uptime 0 days 0 hr. 0 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wks-082)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XE" has 1 instance(s).
Instance "XE", status BLOCKED, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "XE", status BLOCKED, has 1 handler(s) for this service...
The command completed successfully
and here's the alert_XE.log
Fri Aug 10 15:30:59 2007
Starting ORACLE instance (normal)
Cannot determine all dependent dynamic libraries for /proc/self/exe
Unable to find dynamic library libocr10.so in search paths
RPATH = /ade/aime1_build2101/oracle/has/lib/:/ade/aime1_build2101/oracle/lib/:/ade/aime1_build2101/oracle/has/lib/:
LD_LIBRARY_PATH is not set!
The default library directories are /lib and /usr/lib
Unable to find dynamic library libocrb10.so in search paths
Unable to find dynamic library libocrutl10.so in search paths
Unable to find dynamic library libocrutl10.so in search paths
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =10
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.1.0.
System parameters with non-default values:
sessions = 49
__shared_pool_size = 41943040
__large_pool_size = 0
sga_target = 146800640
control_files = /usr/lib/oracle/xe/oradata/XE/control.dbf
__db_cache_size = 96468992
compatible = 10.2.0.1.0
db_recovery_file_dest = /usr/lib/oracle/xe/app/oracle/flash_recovery_area
db_recovery_file_dest_size= 10737418240
undo_management = AUTO
undo_tablespace = UNDO
remote_login_passwordfile= EXCLUSIVE
dispatchers = (PROTOCOL=TCP) (SERVICE=XEXDB)
shared_servers = 4
job_queue_processes = 4
background_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/bdump
user_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/udump
core_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/cdump
audit_file_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/adump
db_name = XE
open_cursors = 300
os_authent_prefix =
pga_aggregate_target = 41943040
PMON started with pid=2, OS id=7328
PSP0 started with pid=3, OS id=7330
MMAN started with pid=4, OS id=7332
DBW0 started with pid=5, OS id=7334
LGWR started with pid=6, OS id=7336
CKPT started with pid=7, OS id=7338
SMON started with pid=8, OS id=7340
RECO started with pid=9, OS id=7342
CJQ0 started with pid=10, OS id=7344
MMON started with pid=11, OS id=7348
MMNL started with pid=12, OS id=7350
Fri Aug 10 15:31:00 2007
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
starting up 4 shared server(s) ...
Oracle Data Guard is not available in this edition of Oracle.
Fri Aug 10 15:31:01 2007
ALTER DATABASE MOUNT
Fri Aug 10 15:31:01 2007
ORA-00202: control file: '/usr/lib/oracle/xe/oradata/XE/control.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Fri Aug 10 15:31:01 2007
ORA-205 signalled during: ALTER DATABASE MOUNT...
and then I open the SQL* plus and type some command
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Aug 10 15:32:38 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn / as sysdba
Connected.
SQL> select status from v$instance
2 ;
STATUS
STARTED
But I'm still cannot accessed my "http://localhost:6000/apex". Are there any possibilities that my browser block it? or I need to change the port?
Thx a lot for your help
Regards,
Rudi Sadria -
How to connect mysql and oracle 10g by UTL_HTTP?
how to connect mysql 5.0 and oracle 10g r2 by UTL_HTTP?what to do for this url connection exactly?
cant i change anything to stup a link?
SQL> desc utl_http
PROCEDURE ADD_COOKIES
Argument Name Type In/Out Default?
COOKIES TABLE OF RECORD IN
FUNCTION BEGIN_REQUEST RETURNS RECORD
Argument Name Type In/Out Default?
URL VARCHAR2(32767) OUT
METHOD VARCHAR2(64) OUT
HTTP_VERSION VARCHAR2(64) OUT
PRIVATE_HNDL BINARY_INTEGER OUT
URL VARCHAR2 IN
METHOD VARCHAR2 IN DEFAULT
HTTP_VERSION VARCHAR2 IN DEFAULT
PROCEDURE CLEAR_COOKIES
PROCEDURE CLOSE_PERSISTENT_CONN
Argument Name Type In/Out Default?
CONN RECORD IN
HOST VARCHAR2(256) IN
PORT BINARY_INTEGER IN
PROXY_HOST VARCHAR2(256) IN
PROXY_PORT BINARY_INTEGER IN
SSL BOOLEAN IN
PROCEDURE CLOSE_PERSISTENT_CONNS
Argument Name Type In/Out Default?
HOST VARCHAR2 IN DEFAULT
PORT BINARY_INTEGER IN DEFAULT
PROXY_HOST VARCHAR2 IN DEFAULT
PROXY_PORT BINARY_INTEGER IN DEFAULT
SSL BOOLEAN IN DEFAULT
PROCEDURE END_REQUEST
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
PROCEDURE END_RESPONSE
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
PROCEDURE GET_AUTHENTICATION
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
SCHEME VARCHAR2 OUT
REALM VARCHAR2 OUT
FOR_PROXY BOOLEAN IN DEFAULT
PROCEDURE GET_BODY_CHARSET
Argument Name Type In/Out Default?
CHARSET VARCHAR2 OUT
FUNCTION GET_BODY_CHARSET RETURNS VARCHAR2
PROCEDURE GET_COOKIES
Argument Name Type In/Out Default?
COOKIES TABLE OF RECORD IN/OUT
FUNCTION GET_COOKIE_COUNT RETURNS BINARY_INTEGER
PROCEDURE GET_COOKIE_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN OUT
MAX_COOKIES BINARY_INTEGER OUT
MAX_COOKIES_PER_SITE BINARY_INTEGER OUT
PROCEDURE GET_DETAILED_EXCP_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN OUT
FUNCTION GET_DETAILED_SQLCODE RETURNS BINARY_INTEGER
FUNCTION GET_DETAILED_SQLERRM RETURNS VARCHAR2
PROCEDURE GET_FOLLOW_REDIRECT
Argument Name Type In/Out Default?
MAX_REDIRECTS BINARY_INTEGER OUT
PROCEDURE GET_HEADER
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
N BINARY_INTEGER IN
NAME VARCHAR2 OUT
VALUE VARCHAR2 OUT
PROCEDURE GET_HEADER_BY_NAME
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
NAME VARCHAR2 IN
VALUE VARCHAR2 OUT
N BINARY_INTEGER IN DEFAULT
FUNCTION GET_HEADER_COUNT RETURNS BINARY_INTEGER
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
PROCEDURE GET_PERSISTENT_CONNS
Argument Name Type In/Out Default?
CONNECTIONS TABLE OF RECORD IN/OUT
FUNCTION GET_PERSISTENT_CONN_COUNT RETURNS BINARY_INTEGER
PROCEDURE GET_PERSISTENT_CONN_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN OUT
MAX_CONNS BINARY_INTEGER OUT
PROCEDURE GET_PROXY
Argument Name Type In/Out Default?
PROXY VARCHAR2 OUT
NO_PROXY_DOMAINS VARCHAR2 OUT
FUNCTION GET_RESPONSE RETURNS RECORD
Argument Name Type In/Out Default?
STATUS_CODE BINARY_INTEGER OUT
REASON_PHRASE VARCHAR2(256) OUT
HTTP_VERSION VARCHAR2(64) OUT
PRIVATE_HNDL BINARY_INTEGER OUT
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
RETURN_INFO_RESPONSE BOOLEAN IN DEFAULT
PROCEDURE GET_RESPONSE_ERROR_CHECK
Argument Name Type In/Out Default?
ENABLE BOOLEAN OUT
PROCEDURE GET_TRANSFER_TIMEOUT
Argument Name Type In/Out Default?
TIMEOUT BINARY_INTEGER OUT
PROCEDURE READ_LINE
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA VARCHAR2 OUT
REMOVE_CRLF BOOLEAN IN DEFAULT
PROCEDURE READ_RAW
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA RAW OUT
LEN BINARY_INTEGER IN DEFAULT
PROCEDURE READ_TEXT
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA VARCHAR2 OUT
LEN BINARY_INTEGER IN DEFAULT
FUNCTION REQUEST RETURNS VARCHAR2
Argument Name Type In/Out Default?
URL VARCHAR2 IN
PROXY VARCHAR2 IN DEFAULT
WALLET_PATH VARCHAR2 IN DEFAULT
WALLET_PASSWORD VARCHAR2 IN DEFAULT
FUNCTION REQUEST_PIECES RETURNS TABLE OF VARCHAR2(2000)
Argument Name Type In/Out Default?
URL VARCHAR2 IN
MAX_PIECES BINARY_INTEGER IN DEFAULT
PROXY VARCHAR2 IN DEFAULT
WALLET_PATH VARCHAR2 IN DEFAULT
WALLET_PASSWORD VARCHAR2 IN DEFAULT
PROCEDURE SET_AUTHENTICATION
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
USERNAME VARCHAR2 IN
PASSWORD VARCHAR2 IN DEFAULT
SCHEME VARCHAR2 IN DEFAULT
FOR_PROXY BOOLEAN IN DEFAULT
PROCEDURE SET_BODY_CHARSET
Argument Name Type In/Out Default?
CHARSET VARCHAR2 IN DEFAULT
PROCEDURE SET_BODY_CHARSET
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
CHARSET VARCHAR2 IN DEFAULT
PROCEDURE SET_BODY_CHARSET
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
CHARSET VARCHAR2 IN DEFAULT
PROCEDURE SET_COOKIE_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN IN
MAX_COOKIES BINARY_INTEGER IN DEFAULT
MAX_COOKIES_PER_SITE BINARY_INTEGER IN DEFAULT
PROCEDURE SET_COOKIE_SUPPORT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
ENABLE BOOLEAN IN DEFAULT
PROCEDURE SET_DETAILED_EXCP_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN IN DEFAULT
PROCEDURE SET_FOLLOW_REDIRECT
Argument Name Type In/Out Default?
MAX_REDIRECTS BINARY_INTEGER IN DEFAULT
PROCEDURE SET_FOLLOW_REDIRECT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
MAX_REDIRECTS BINARY_INTEGER IN DEFAULT
PROCEDURE SET_HEADER
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
NAME VARCHAR2 IN
VALUE VARCHAR2 IN DEFAULT
PROCEDURE SET_PERSISTENT_CONN_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN IN
MAX_CONNS BINARY_INTEGER IN DEFAULT
PROCEDURE SET_PERSISTENT_CONN_SUPPORT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
ENABLE BOOLEAN IN DEFAULT
PROCEDURE SET_PROXY
Argument Name Type In/Out Default?
PROXY VARCHAR2 IN
NO_PROXY_DOMAINS VARCHAR2 IN DEFAULT
PROCEDURE SET_RESPONSE_ERROR_CHECK
Argument Name Type In/Out Default?
ENABLE BOOLEAN IN DEFAULT
PROCEDURE SET_TRANSFER_TIMEOUT
Argument Name Type In/Out Default?
TIMEOUT BINARY_INTEGER IN DEFAULT
PROCEDURE SET_TRANSFER_TIMEOUT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
TIMEOUT BINARY_INTEGER IN DEFAULT
PROCEDURE SET_WALLET
Argument Name Type In/Out Default?
PATH VARCHAR2 IN
PASSWORD VARCHAR2 IN DEFAULT
PROCEDURE WRITE_LINE
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA VARCHAR2 IN
PROCEDURE WRITE_RAW
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA RAW IN
PROCEDURE WRITE_TEXT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA VARCHAR2 IN -
Trying to connect MySQL and Oracle in RedHat
Hi all,
i´m tryng to create a dblink between Oracle 10.2.0 and MySQL,
when when i try using sqlplus i obtain this error:
SQL> SELECT "id" FROM issues@mysqldb;
ORA-28500: la conexion de ORACLE a un sistema no Oracle ha devuelto este mensaje:
[Generic Connectivity Using ODBC]DRV_InitTdp: DB_ODBC_INTERFACE (2082): ; [MySQL][ODBC 5.1 Driver]Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (SQL State: 08S01; SQL Code: 2002)
ORA-02063: 2 lines precediendo a MYSQLDB
This is my configuration:
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/initmysqldb.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
# HS init parameters
HS_FDS_CONNECT_INFO = hsqldb
HS_FDS_TRACE_LEVEL = DEBUG
HS_FDS_TRACE_FILE_NAME = mysqldb.trc
HS_OPEN_CURSORS=300
HS_AUTOREGISTER = TRUE
HS_FDS_SHAREABLE_NAME=/usr/lib/libmyodbc5.so
set ODBCINI=/usr/local/etc/odbc.ini
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = mysqldb)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = hsodbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = descordel01)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = descordel01)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
mysqldb =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = descordel01)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = mysqldb)
(HS = OK)
)Hi,
You don't say if your Redhat Linux is 32-bit or 64-bit because 10.2 HSODBC was never ported to Linux 64-bit.
Also, 10.2 HSODBC is now desupported and has been replaced by the 11g Database Gateway for ODBC (Dg4ODBC) so you should install and use that so you are on a fully supported version. The following notes in My Oracle Support have further information -
Note.466228.1 How to Setup DG4ODBC on Linux x86 32bit
Note.561033.1 How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX)
Note.1083703.1 Master Note for Oracle Gateway Products
If you are Linux 32-bit and want to continue with the HSODBC setup then please review this note -
Note.264567.1 How To Setup HSODBC on Linux
and make sure you have the setup correct.
For example, in the listener.ora entry you should have an entry for the ENV variable LD_LIBRARY_PATH to make sure the process spawned by the listener picks up the correct libraries -
(ENVS=LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib:<path to odbc_driver_directory>/lib)
such as -
(SID_DESC =
(SID_NAME = hsodbc)
(ORACLE_HOME = /home/oracle/server/10.2.0/)
(PROGRAM = hsodbc)
(ENVS=LD_LIBRARY_PATH=/home/oracle/server/10.2.0/lib:/home/odbc/dd/lib)
You need to stop and start the listener after making any changes.
If you still have problems then send the -
- odbc.ini
- odbcinst.ini - if being used
- full name and version of the ODBC driver being used
- full version of MySQL being accessed
- modified listener.ora
Regards,
Mike -
Problems of Slackware Linux 7.0 and Oracle 8iR2 8.1.6
Hi, everyone
I have a question for oracle DB on Slackware Linux system.
After I download the package of Oracle.
I try to install it. But I get following error messages:
***************** Start ********************
Exception java.lang.NullPointerException occurred..
java.lang.NullPointerException
at sun.awt.motif.MComponentPeer.setFont(MComponentPeer.java:192)
at sun.awt.motif.MComponentPeer.initialize(MComponentPeer.java:71)
at sun.awt.motif.MComponentPeer.init(MComponentPeer.java:99)
at sun.awt.motif.MFramePeer.<init>(MFramePeer.java:54)
at sun.awt.motif.MToolkit.createFrame(MToolkit.java:137)
at java.awt.Frame.addNotify(Frame.java:196)
at java.awt.Window.pack(Window.java:119)
at
oracle.sysman.oii.oiif.oiifm.OiifmMainFrame.addWizardDialog(OiifmMain
Frame.java:352)
at
oracle.sysman.oii.oiif.oiifw.OiifwWizDialog.<init>(OiifwWizDialog.jav
a:393)
at
oracle.sysman.oii.oiif.oiifm.OiifmMainFrame.<init>(OiifmMainFrame.jav
a:317)
at
oracle.sysman.oii.oiic.OiicInstaller.<init>(OiicInstaller.java:208)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:447)
********************* End ******************
My system is:
linux system: Slackware 7.0
kernel: 2.2.17
Java version: java -version
java version "1.2.2"
Classic VM (build Linux_JDK_1.2.2_RC4, native threads, sunwjit)
ps: I think it seems having no MOTIF lib.
so I install one 'lesstif 0.91'. But it
still can't work.
HOPE YUOR HELP, Thanks a lot.
Jack.Why dbassist doesn't woek on Slackware 7?
I succeded installing Oracle8i on Slackware 7, but dbassist crashed (in fact, dbassist keep running, but there are some Java exceptions, and there is no dbassist window).
Is this a jre problem(on Slackaware 7)?
null -
Problem with a example of "Developing and Using ADF Faces Skins"
Hi, I've tried the example "Developing and Using ADF Faces Skins", but when I run the sample.jspx page and choose the skin "MyCompany" in the select skin I obtain the next message:
java.lang.NullPointerException
at oracle.adfinternal.view.faces.ui.laf.simple.desktop.SideBarRenderer._getIconData(SideBarRenderer.java:393)
at oracle.adfinternal.view.faces.ui.laf.simple.desktop.SideBarRenderer.prerender(SideBarRenderer.java:83)
at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:79)
Could somebody help me?
Thanks a lot ;-)Hi there,
I had the same issue last friday.
It's probably because you are using JDeveloper 10.1.3.2 instead of 10.1.3.0 or 10.1.3.1 for which the example is made.
I haven't been able to fix this yet, other then by commenting out the this part of the css.
Luc Bors
Message was edited by:
lucbors -
Problem with character set with servlets and Oracle 9i AS
I am deploying a servlet with Jserv on a Sun machine.
My servlet is working but some special characters in text fields like "i", "h", "`" (French language) are replaced by "?" when refreshing the HTML pages.
Is that a Jserv or Oracle 9i AS settings problem or machine settings problem ?
Thanks for you help
LilianThe solution to this problem is described in MetaLink note #211920.1. But this note is published with LIMITED access as it involves using a hidden parameter.
You can get access to the note through Oracle Support only.
The problem itself is solved generically, if the source database is at least 10.1.0.3 and the target database is 10.2
-- Sergiusz -
Problem with Date - Text File Source and Oracle Target
Hi All,
I have a source data (text file) with date column in the format of 'MM/DD/YYYY'. My target is oracle. I am using the LKM FILE TO SQL and IKM SQL Control Append. When i execute this interface, i am getting an error as
7000 : null : com.sunopsis.jdbc.driver.file.b.i
com.sunopsis.jdbc.driver.file.b.i
at com.sunopsis.jdbc.driver.file.b.f.getColumnClassName(f.java)
at the Load Data step.
How to load date columns from text file to oracle tables? Please help me in resolving this...
Thanks in Advance,
Ram Mohan TThe worst solution is to define for your text file the date as a string and then to rebuild your date type in Oracle.
something like
convert(Substr(myfield,4,2)||Substr(myfield,1,2)||Substr(myfield,7,4) ,'MMDDYYYY')
this is maybe the worst solution but it should work.
Regards
Brice -
Problem with the examples of Transmitting and Receiving Custom RTP Payloads
I have tried the examples of this web:
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/CustomPayload.html
Transmitting and Receiving Custom RTP Payloads
I run the examples all right.
But I want to transmit the sound using my own format, so i want to change the file PcmPacketizer.java
and PcmDepacketizer.java
I think the sound data is in the byte[] inData ---- {byte[] inData = (byte[])inBuf.getData();}
so i change the data with my own function, so the inData have the diffrent length:
then i transmit the data with the packet header
public synchronized int process(Buffer inBuf, Buffer outBuf) {
int inLength = inBuf.getLength();
byte[] inData = (enbase((byte[])inBuf.getData()));
byte[] outData = (byte[])outBuf.getData();
if (outData == null || outData.length < PACKET_SIZE) {
outData = new byte[PACKET_SIZE];
outBuf.setData(outData);
// Generate the packet header.
int rate = (int)inFormat.getSampleRate();
int size = (int)inFormat.getSampleSizeInBits();
int channels = (int)inFormat.getChannels();
outData[0] = 0; // filler
outData[1] = (byte)((rate >> 16) & 0xff);
outData[2] = (byte)((rate >> 8) & 0xff);
outData[3] = (byte)(rate & 0xff);
outData[4] = (byte)inFormat.getSampleSizeInBits();
outData[5] = (byte)inFormat.getChannels();
outData[6] = (byte)inFormat.getEndian();
outData[7] = (byte)inFormat.getSigned();
int frameSize = inFormat.getSampleSizeInBits() * inFormat.getChannels();
// Recompute the output format if the input format has changed.
// The crucial info is the frame rate and size. These are used
// to compute the actual rate the data being sent.
if (rate != (int)outFormat.getFrameRate() ||
frameSize != outFormat.getFrameSizeInBits()) {
outFormat = new AudioFormat(CUSTOM_PCM,
AudioFormat.NOT_SPECIFIED, // rate
AudioFormat.NOT_SPECIFIED, // size
AudioFormat.NOT_SPECIFIED, // channel
AudioFormat.NOT_SPECIFIED, // endian
AudioFormat.NOT_SPECIFIED, // signed
size * channels, // frame size
rate, // frame rate
null);
if (inLength + historyLength >= DATA_SIZE) {
// Enough data for one packet.
int copyFromHistory = Math.min(historyLength, DATA_SIZE);
System.arraycopy(history, 0, outData, HDR_SIZE , copyFromHistory);
int remainingBytes = DATA_SIZE - copyFromHistory;
System.arraycopy(inData, inBuf.getOffset(),
outData, copyFromHistory + HDR_SIZE, remainingBytes);
historyLength -= copyFromHistory;
inBuf.setOffset( inBuf.getOffset() + remainingBytes);
inBuf.setLength( inLength - remainingBytes);
outBuf.setFormat(outFormat);
outBuf.setLength(PACKET_SIZE);
outBuf.setOffset(0);
return INPUT_BUFFER_NOT_CONSUMED ;
if (inBuf.isEOM()) { // last packet
System.arraycopy(history, 0, outData, HDR_SIZE, historyLength);
System.arraycopy(inData, inBuf.getOffset(),
outData, historyLength + HDR_SIZE, inLength);
outBuf.setFormat(outFormat);
outBuf.setLength(inLength + historyLength + HDR_SIZE);
outBuf.setOffset(0);
historyLength = 0;
return BUFFER_PROCESSED_OK;
// Not enough data for one packet. Save the remainder
// for next time.
System.arraycopy(inData, inBuf.getOffset(),
history, historyLength,inLength) ;
historyLength += inLength;
return OUTPUT_BUFFER_NOT_FILLED ;
I think I change the data use my own function debase(), so i should decode the data in the file:PcmDepacketizer.java
but int PcmDepacketizer.java the example is so simple that i don't know how to find and change the data.
there is only a few lines here:
Object outData = outBuf.getData();
outBuf.setData(inBuf.getData());
inBuf.setData(outData);
outBuf.setLength(inBuf.getLength() - HDR_SIZE);
outBuf.setOffset(inBuf.getOffset() + HDR_SIZE);
System.out.println("the outBuf length is "+inBuf.getLength());
I write a function : public static byte [] debase(byte[] str)
but i don't know where can i use it.
please tell me what should i do or where is wrong about my thought.the function in PcmPackettizer.java is
public static byte[] enbase(byte [] b) {
ByteArrayOutputStream os = new ByteArrayOutputStream();
//byte[] oo = new byte[(b.length + 2) / 3*4];
//for (int i = 0; i < (b.length + 2) / 3; i++) {
for (int i = 0; i < (b.length + 2) / 3; i++) {
short [] s = new short[3];
short [] t = new short[4];
for (int j = 0; j < 3; j++) {
if ((i * 3 + j) < b.length)
s[j] = (short) (b[i*3+j] & 0xFF);
else
s[j] = -1;
t[0] = (short) (s[0] >> 2);
if (s[1] == -1)
t[1] = (short) (((s[0] & 0x3) << 4));
else
t[1] = (short) (((s[0] & 0x3) << 4) + (s[1] >> 4));
if (s[1] == -1)
t[2] = t[3] = 64;
else if (s[2] == -1) {
t[2] = (short) (((s[1] & 0xF) << 2));
t[3] = 64;
else {
t[2] = (short) (((s[1] & 0xF) << 2) + (s[2] >> 6));
t[3] = (short) (s[2] & 0x3F);
for (int j = 0; j < 4; j++)
os.write(t[j]);
//os.write(t[j],(3*i+j),1);
//os.write(Base64.charAt(t[j]));
//return new String(os.toByteArray());
return os.toByteArray();
just like the base64 function -
Creating a DB link between mySQL and Oracle
How can I create a dblink in mySQL to view the data in an Oracle 10g table?
Thanks
RoaldRoald.vandenBerg wrote:
How can I create a dblink in mySQL to view the data in an Oracle 10g table?
Thanks
Roaldheterogeneous services; -
"Default " problem while migrating from mysql to oracle.
I'm migrating from mysql3.23 to oracle9i via the OMWB tool.While migrating i'm getting an error message "Failed to create default for the table <table>:ora00907 missing right parenthesis".This error is due to the difference in the syntax used for the keyword "default" in mysql and oracle.In mysql we have to give after the Not Null option whereas in oracle we have to give before Not Null.
The problem is i'm migrating via the OWMB tool.Is is possible to handle this error with the help of tool itself.
Thanks
Jai.MJai, I'm having Frank have a look at this for you to see if we can replicate it ans help solve this issue for you. are there any issues logged on the mysql site regarding saving blobs as file?
thanks
Barry -
Performance with MySQL and Database connectivity toolbox
Hi!
I'm having quite some problems with the performance of MySQL and Database connectivity toolbox. However, I'm very happy with the ease of using database connectivity toolbox. The background is:
I have 61 variables (ints and floats) which I would like to save in the MySQL-database. This is no problem, however, the loop time increases from 8ms to 50ms when using the database. I have concluded that it has to do with the DB Tools Insert Data.vi and I think that I have some kind of performance issue with this VI. The CPU never reach more the 15% of its maximum performance. I use a default setup and connect through ODBC.
My questions are:
1. I would like to save 61 variables each 8-10ms, is this impossible using this solution?
2. Is there any way of increasing the performance of the DB Tools Insert Data.vi or use any other VI?
3. Is there any way of adjusting the MySQL setup to achieve better performance?
Thank you very much for your time.
Regards,
MattiasFirst of all, thank you very much for your time. All of you have been really good support to me.
>> Is your database on a different computer? Does your loop execute 61 times?
Database is on the same computer as the MySQL server.
The loop saves 61 values at once to the database, in one SQL-statement.
I have now added the front panel and block diagram for my test-VI. I have implemented the queue system and separate loops for producer and consumer. However, since the queue is building up faster then the consumer loop consumes values, the queue is building up quite fast and the disc starts working.
The test database table that I add data to is created by a simple:
create table test(aa int, bb char(15));
...I'm sure that this can be improved in some way.
I always open and close the connection to the database "outside the loop". However, it still takes some 40-50 ms to save the data to the database table - so, unfortunatly no progress to far. I currently just want to save the data.
Any more advise will be gratefully accepted.
Regards,
Mattias
Message Edited by mattias@hv on 10-23-2007 07:50 AM
Attachments:
front panel 2.JPG 101 KB
block diagram.JPG 135 KB -
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. -
MySQL to Oracle Migration Issue - Unknown character set index for field.
Hi,
Looking for help..!!!
Migrating mySQL - version 4 database to Oracle 10g using oracle migration work bench. It went well until the last step. But, during the data migration, OMWB has given the following error:
+++++++++++
Unable to migrate data from source table gets.sales_order_01 to destination table gets_ora.sales_order_oracle10: gets_ora.sales_order_oracle10; Unknown character set index for filed "12596" received from ser.
+++++++++++
Log file shows:
java.sql.SQLException: Unknown character set index for field '12596' received from server.
at com.mysql.jdbc.Connection.getCharsetNameForIndex(Connection.java:1692)
at com.mysql.jdbc.Field.<init>(Field.java:161)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:510)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
I appreciate your help in this regards.
Regards,
KHi K,
Whats the default character set of you MySQL and Oracle Databases.
What version of JDBC driver are you using?
Is there any unicode characters used in your data?
Have you tried offline data move?
Thanks
Dermot.
Message was edited by:
dooneill -
Problems using Quick Migrate in SQL Developer 1.5 for MySQL to Oracle 10g
Hi all,
I am trying to use SQL Developer 1.5 migration tools (Quick Migrate) to perform online capture and build source model to migrate from MySQL 5.x to Oracle 10g on Windows platform. I get these errors and the Quick Migrate process fails:
oracle.dbtools.metadata.persistence.PersistableObject.doInsert(PersistableObject.java:238)
I did a search and used the sqldeveloper.cmd script but still fails. Then I created a new database and truncated the repository. I now get the above error plus two new ones listed below:
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
Error loading nls:OALL8 is in an inconsistent state
Error occurred during capture: Protocol violation
It fails during the capture process for MySQL 5.1 database
when it begins to capture the tables from MySQL.
Does anyone know how to resolve these issues when migrating from MySQL to Oracle 10g using Quick Migrate with SQL Developer 1.5 release?
Regards,
Ben Prusinski
Message was edited by:
benprusinski
Message was edited by:
benprusinskiHi all,
I put the following in my sqldeveloper.cmd file:
SET ORACLE_HOME=%CD%
What is very confusing is that with SQL Developer 1.5, there are several levels and several SQL Developer executables! I am really not sure which of these to use:
I created the SQLDeveloper 1.5 directory called SQLDeveloper1_5 on Windows:
1) cd C:\sqldeveloper1_5\sqldeveloper-5338
there exists a sqldeveloper.exe
2) cd c:\sqldeveloper1_5\sqldeveloper-5338\sqldeveloper\sqldeveloper.exe
3) cd c:\sqldeveloper1_5\sqldeveloper-5338\sqldeveloper\sqldeveloer\bin\sqldeveloper.exe
Which SQLDeveloper 1.5 executable should I be using and where should I place the
sqldeveloper.cmd file?
Also I did try to use a different database and schema for the repository with Quick Migrate but it appears a bug exists in SQL Developer 1.5 version that causes errors with Quick Migrate for MySQL to Oracle? Is this correct?
As an update, I ran the following commands:
cd to
c:\sqldeveloper1_5\sqldeveloper-5338\sqldeveloper\sqldeveloper\bin
sqldeveloper.cmd sqldeveloper.exe
Start sqldeveloper.exe
Perform standard capture for MySQL using the new mig2 schema as the new repository
It starts the capture but fails on the errors below:
Error loading nls:OALL8 is in an inconsistent state
UPDATE
============================
I tried this again and it worked with the exception of one error message listed below:
Here are the steps that I followed:
1. Create a Windows cmd script
Put the following entries in the script:
SET ORACLE_HOME=%CD%
save the command windows script as sqldeveloper.cmd
Copy this script to the base installation directory for SQLDeveloper
Example:
1. cd c:\SQLDeveloper1_5\sqldeveloper-5338\sqldeveloper
2. Start SQLDeveloper with the command script that you created earlier
Example:
Open a Windows shell prompt window and execute the following scripts:
a) sqldeveloper.cmd sqldeveloper.exe
b) sqldeveloper.exe
3) In SQL Developer 1.5
From the Migrate menu,
a) Delete current repository and create a new schema in Oracle target database call it mig2.
b) Then create a new repository in SQL Developer 1.5
c) Right mouse click on the MySQL 5.x database and choose capture
It worked with the exception of one error message:
o.jdbc.driver.OracleDriver
Error while registering Oracle JDBC Diagnosability MBean.
So it looks like something is screwed up with my JDBC drivers and configuration for MySQL. How do I diagnose the JDBC driver issue for MySQL?
Thanks!!!
Ben
Thanks
Ben
Maybe you are looking for
-
Issue with Upload wizard in APEX 4.2
Hi, We have APEX 4.2. We have a table with 70 columns. So to load data to that table we are using upload data wizard. Due to 50 columns limitation in APEX upload wizard, we have divided the upload file in two parts , file 1 with first 40 columns and
-
My iPad will mirror music through my Apple TV but not my keynote presentations
My iPad will only airplay music through my apple tv keynote will not mirror. I'm kind of confused because I just mirrored in our classroom at work Friday with no issues at all. Any suggestions.
-
Internet Explorer and Adobe home page.
I'm having a problem with the flash player in Internet Explorer. I've removed all older versions and installed version 9 (ActiveX). If I open Adobe's Home Page all I see in the box where the animations supposed to be is a black box. If I directly got
-
After I close Firefox and reopen, my app tabs are not found. Is this correct?
Firefox doesn't save my app tabs. Is this normal or is there a setting that I am missing.
-
Something weird happening in JSP
Hi guys I have a JSP based app made out of frames. There is a left navigation frame and a main frame int he center. When I click on a link in the left , the page will be displayes correctly on the main frame . At this time I can see the status bar go