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
Similar Messages
-
COULDN'T CONNECT SQLDEVELOPER AND ORACLE 10G
COULDN'T CONNECT SQLDEVELOPER AND ORACLE 10G
anyone can help this?
can see that error message here.
http://forums.adobe.com/thread/590462?tstart=0user12748850 wrote:
COULDN'T CONNECT SQLDEVELOPER AND ORACLE 10G
anyone can help this?
can see that error message here.
http://forums.adobe.com/thread/590462?tstart=0
I left my microscope at home. How bout telling what the error message was ... something like "ora-nnnnn". -
How to access MYSQL from Oracle 10g and vice versa
I will like to know how do I create a database link between Oracle 10g and MYSQL database on windows. I have been saddled with responsibility of ensuring the communications between the 2 databases and I have searched everywhere on google, I could not find anywhere where this is explain explicitly and made work.
THank youIn general Oracle offers 2 different products to connect from an Oracle database to a MS SQL Server. The first product is for free and it is called
As DG4ODBC is a generic connectivity based on ODBC it allows you to connect to many foreign databases as long as you have a suitable ODBC driver.It for example allows you to read from text files but also connect to foreign databases like MS SQL Server or IBM DB2. Due to this wide variety of foreign data sources tha capabilities of DG4ODBC are very limited. It only supports a few Oracle functions that it can directly map to foreign database equivalents. All other functions will be post processed. Post processing means that ALL records from the foreign table(s) will be fetched into the Oracle database and the result is then processed locally - so depending on the amount of data stored in the foreign database it might take a while.
To be complete here some notes to follow up:
This Oracle support note describes possible options you have to connect to a foreign database:
Document 233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases - For example - DB2, SQL*Server, Sybase, Informix, Teradata, MySQL
So you see, to connect from Oracle to MySQL you need to use the Database gateway for ODBC release 11.2 (HSODBC which was shipped with 10g was desupported in march 2008).
The Database Gateway for ODBC 11.2 (=DG4ODBC) license is included in the Oracle database license and it allows you to connect with a suitable 3rd party ODBC driver to a foreign database.
For your MySQL connection you only need to download and configure the MySQL ODBC driver from the MySQL web site. Once you can connect with the ODBC driver you could then download and configure DG4ODBC.
As you didn't post on which platform your Oracle database is installed, here 2 notes for common platforms:
How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle (Doc ID 561033.1)
How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on 64bit Windows Operating Systems to Connect to Non-Oracle Databases Post Install (Doc ID 1266572.1)
- Klaus -
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 -
How do I map Hitachi SAN LUNs to Solaris 10 and Oracle 10g ASM?
Hi all,
I am working on an Oracle 10g RAC and ASM installation with Sun E6900 servers attached to a Hitachi SAN for shared storage with Sun Solaris 10 as the server OS. We are using Oracle 10g Release 2 (10.2.0.3) RAC clusterware
for the clustering software and raw devices for shared storage and Veritas VxFs 4.1 filesystem.
My question is this:
How do I map the raw devices and LUNs on the Hitachi SAN to Solaris 10 OS and Oracle 10g RAC ASM?
I am aware that with an Oracle 10g RAC and ASM instance, one needs to configure the ASM instance initialization parameter file to set the asm_diskstring setting to recognize the LUNs that are presented to the host.
I know that Sun Solaris 10 uses /dev/rdsk/CwTxDySz naming convention at the OS level for disks. However, how would I map this to Oracle 10g ASM settings?
I cannot find this critical piece of information ANYWHERE!!!!
Thanks for your help!Yes that is correct however due to use of Solaris 10 MPxIO multipathing software that we are using with the Hitachi SAN it does present an extra layer of complexity and issues with ASM configuration. Which means that ASM may get confused when it attempts to find the new LUNs from the Hitachi SAN at the Solaris OS level. Oracle Metalink note 396015.1 states this issue.
So my question is this: how to configure the ASM instance initialization parameter asm_diskstring to recognize the new Hitachi LUNs presented to the Solaris 10 host?
Lets say that I have the following new LUNs:
/dev/rdsk/c7t1d1s6
/dev/rdsk/c7t1d2s6
/dev/rdsk/c7t1d3s6
/dev/rdsk/c7t1d4s6
Would I set the ASM initialization parameter for asm_diskstring to /dev/rdsk/c7t1d*s6
as correct setting so that the ASM instance recognizes my new Hitachi LUNs? Solaris needs to map these LUNs using pseudo devices in the Solaris OS for ASM to recognize the new disks.
How would I set this up in Solaris 10 with Sun multipathing (MPxIO) and Oracle 10g RAC ASM?
I want to get this right to avoid the dreaded ORA-15072 errors when creating a diskgroup with external redundancy for the Oracle 10g RAC ASM installation process. -
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 -
Need ACES attention - connection pooling in oracle 10g rel 1
I am using TOMCAT 5.0.19 Webserver and ORACLE 10g REL 1 as the database server. I have to restart the TOMCAT Webserver in order to establish connection atleast twice or thrice in a weak. Why I am unable to see the connection pooling in oracle 10g rel 1. How to revive or establish the setup. My objective is to have a centralised oracle 10g rel 1 database server and the applications of java are run thru centralised Webserver Tomcat 5.0.19.
Can anyone please help me out optimizing the design setup.
Regards
Vijay Kumarby putting 'Need ACES' in your post title, you might have actually reduced the number of people reading your post, in other words someone >who might have suggested Thanks John for your reply. I changed the subject of the thread after not getting any reply for past 10 days. Last two days I have been updating with plea for attention to my problem. Finally I thought pulling attention of ACES, then only I edited the subject.
Now, problem I am facing is not in oracle database but in application server. Actually we are running web applications thru Tomcat accessing Oracle 10g rel 1. I am often losing connection with web server. The users are unable to login in the web application. I was told to check oracle database server. I just checked alert log and found no errors. I just asked them to shutdown and restart the web server Tomcat 5.0. It then worked fine. This is temporary. I need to ensure where the problem is. Could you please guide me in checking various parameters or files to be checked to optimise connection pooling.
Regards
Vijay Kumar -
How to delete client from oracle 10g ASM
Hi,
I would like to know how to delete client from oracle 10g ASM, while configuring Dataguard in same windows os i have by mistake created the standby in ASM.
However later i have corrected the datafile destination. My Primary database is in ASM and the standby in disk.
Could anyone please tell me how do i delete the client from ASM. On view from asmcmd it shows db_unknown and from v$asm_client
GROUP_NUMBER INSTANCE_NAME
DB_NAME STATUS
SOFTWARE_VERSION
COMPATIBLE_VERSION
1 stby
stby CONNECTED
10.2.0.1.0
10.2.0.1.0
Thanks and regards,
shaanHi Deepak,
Pls see the result from the view, i wanted to delete stby
SQL> select * from v$asm_client;
GROUP_NUMBER INSTANCE_NAME
DB_NAME STATUS
SOFTWARE_VERSION
COMPATIBLE_VERSION
1 prim
prim CONNECTED
10.2.0.1.0
10.2.0.1.0
2 prim
prim CONNECTED
10.2.0.1.0
10.2.0.1.0
1 stby
stby CONNECTED
10.2.0.1.0
10.2.0.1.0
regards,
shaan -
Auditing in oracle 10g database and oracle 10g application server
Dear friends,
We have oracle 10g application server and oracle 10g database server in place.My criteria is to audit users connected using oracle application user credentials to the database.
Can you please tell me how can i do it.
Thanks & regards,Its the database connection you want to track. The session audit will show where it came from.
Auditing is turned using this command:
alter system set audit_trail = DB scope=spfile;
Note: The use of spfile will require a DB bounce before audit starts
To audit Sessions:
audit create session;
Query by Audit Type:
SELECT A.USERNAME,
OS_USERNAME,
A.TIMESTAMP,
A.RETURNCODE,
TERMINAL,
USERHOST
FROM DBA_AUDIT_SESSION A
WHERE USERHOST = <replace with iAS servername> ;
By User
SELECT USERNAME,OBJ_NAME,ACTION_NAME , TIMESTAMP
FROM DBA_AUDIT_TRAIL WHERE USERNAME = 'SCOTT';
Check for users sharing database accounts
select count(distinct(terminal)),username
from dba_audit_session
having count(distinct(terminal))>1
group by username;
Attempts to access the database at unusual hours
SELECT username, terminal, action_name, returncode,
TO_CHAR (TIMESTAMP, 'DD-MON-YYYY HH24:MI:SS'),
TO_CHAR (logoff_time, 'DD-MON-YYYY HH24:MI:SS')
FROM dba_audit_session
WHERE TO_DATE (TO_CHAR (TIMESTAMP, 'HH24:MI:SS'), 'HH24:MI:SS') <
TO_DATE ('08:00:00', 'HH24:MI:SS')
OR TO_DATE (TO_CHAR (TIMESTAMP, 'HH24:MI:SS'), 'HH24:MI:SS') >
TO_DATE ('19:30:00', 'HH24:MI:SS');
Attempts to access the database with non-existent users
SELECT username, terminal, TO_CHAR (TIMESTAMP, 'DD-MON-YYYY HH24:MI:SS')
FROM dba_audit_session
WHERE returncode <> 0
AND NOT EXISTS (SELECT 'x'
FROM dba_users
WHERE dba_users.username = dba_audit_session.username);
Other audits you might consider:
audit grant any object privilege;
audit alter user;
audit create user;
audit drop user;
audit drop tablespace;
audit grant any role;
audit grant any privilege;
audit alter system;
audit alter session;
audit delete on AUD$ by access;
audit insert on AUD$ by access;
audit update on AUD$ by access;
audit delete table;
audit create tablespace;
audit alter database;
audit create role;
audit create table;
audit alter any procedure;
audit create view;
audit drop any procedure;
audit drop profile;
audit alter profile;
audit alter any table;
audit create public database link;
Best Regards
mseberg -
Connect PostgreSQL to Oracle 10g through ODBC: can't read all_tables
Oracle 10g is not able to read the database table names (all_tables and all_objects, es. select * from all_tables@hspostgresodbc) from PostgreSQL using ODBC (v. 08.01.0200). This functionality is essential to be able to use Oracle Warehouse Builder and import external database definitions (heterogeneous services).
However, Oracle (SQL*Plus) is able to retrieve records when the table name is stated in the SQL query (es. select * from my_table).
The problem seems to be specifically with the PostgreSQL ODBC because Oracle is able to read schemes from other databases through ODBC. Ive done some tests with Access dbs just to be sure that the problem is not with my system (Windows XP SP2).
The problem appears both with ANSI and UNICODE PostgreSQL drivers.
Any suggestion of how workaround this problem?
thanks in advance,
RaoniDear all,
Ive tried different tracing levels with out success. The log file does not seem to be created by Oracle.
Looking closer to the debug and comm logs from the driver 8.01.0200, Ive found out that the problem was generated after a table wasnt found (the driver seems to search for the all_tables table, and just afterwards to query the scheme pg_catalog). In this case the all the following queries returned with the error ERROR: current transaction is aborted, commands ignored until end of transaction block. Maybe this problem is related with the bug [#1000641] http://pgfoundry.org/tracker/index.php?func=detail&aid=1000641&group_id=1000125&atid=538
Following the Postgres odbc developers suggestion, Ive installed the psqlODBC v 08.02.0002 and Ive got a completely different result.
As before, the simple query select * from my_table@hsodbc returns the result using SQL*Plus clearly faster than before.
Doing the query select * from all_tables@hsodbc the result is OK (the name of 56 tables) but the process is very slow and burdensome. The file paging memory in the machine running Oracle and the SQL*Plus jumps from the normal 700 MB to 1.7 GB, and the query takes about 20 minutes to complete.
Also the 1.7 GB remains allocated and the query process halted in PostGreSQL even after the on screen result of the query. The memory is freed and the process terminated after the logging out SQL*Plus.
Probably as result of this memory explosion, the system runs out of memory and Oracle Warehouse Builder selecting data base link -> schema, after some minutes get an error similar to: cant read from memory address XXXXX
All those test where done with PostGreSQL 8.0.1 (on Linux Suse 9.0) and Oracle 10g (Windows XP SP2).
To be sure that the problem was not related to the PostGreSQL version, we updated the server to the 8.1.3 (running in Linux Suse 9.0 with psqlODBC v 08.02.0002 ) and OWB couldnt see any table as before and doing Select * from all_tables@hsodbc weve got the message:
ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC]
ORA-02063: preceding 2 lines from HSPG
no rows selected
On the other hand, with the same configuration as before (Oracle 10g under Windows XP SP1, psqlODBC v 08.02.0002) but with PostGreSQL 8.1.3 under Windows XP SP1, OWB can read table names (same tables imported from Linux PostgreSQL) but not all_tables (a minor problem, because what is important for us is to make OWB work with PostgreSQL).
The encoding for all DBs is UTF8.
Any ideas of where could be the problem?
regards,
R. -
Using Clob with TopLink 9.0.4.5 and Oracle 10g RAC
I am trying to store an XML file in a Clob type field of a DB table using TopLink 9.0.4.5 and Oracle 10g RAC and need some guidance about how to do it. I got some directions to start it with the Tip "How-To: Map Large Objects (LOBs) to Oracle Databases with OracleAS TopLink" but still need some more helps.
When using the Oracle JDBC OCI driver, the tip gives the code block for a Clob field:
DirectToField scriptMapping = new DirectToField();
scriptMapping.setAttributeName("script");
scriptMapping.setFieldName("IMAGE.SCRIPT");
descriptor.addMapping(scriptMapping);
As I understand, TopLink creates instances of the Descriptor class at run time for each of the descriptor files and stores them in a database session, where is the proper place (in SessionEvent of TopLinkSessionEventHandler?) for me to get a reference to such an instance of my Descriptor class in Java code so that I can add the above mentioned additional Mapping? Are the above String values of "script" and "IMAGE.SCRIPT" predefined in TopLink API? Can I accomplish the same thing just using the TopLink Workbench tool instead? If yes, please advise the detailed steps to do so.
The tip also states to call the following code in case of using Clob:
DatabaseLogin login = session.getLogin();
login.useStringBinding();
Should the above 2 lines of code be called after the following lines of code?
SessionManager sessionManager = SessionManager.getManager();
Server serverSession = (Server)sessionManager.getSession("MY_SESSION_NAME");
Besides the above extra coding for the Session and Descriptor Mapping, is there any special handling in between Data model and DB table mapping? Can I map a Java String type to a DB Clob field using the Direct-to-field mapping?
Appreciate any help.Never mind ....... I had already figured it out .....
-
Integration b/w uccx7.0 and oracle 10g
hi,
currently i am doing integration b/w uccx7.0 and oracle 10g. i have installed the oracle client 10g . and i added the DSN in ODBC and also the test connection is succesful.. but when i mention the DSN in app admin page (Subsytem> Database). it is showing me error that some of the information is incorrect for the connection. and is not allowing me to add DSN in appadmin page of uccx 7.0.. even though i am using the same information in sqlplus to query the database from ipccx. Do i need to mention sth to make it work.
Regards
NarehHi there
A few things you have to watch out for.
Firstly if you have create the DSN and able to connect to it via the ODBC its more likely that the driver was not loaded correctly.
- Remove the Driver and DNS
- Install the driver again and create the DSN and test if it works
- Reload the whole windows <----- was working on a case for 3 hours UCCX just wasn't loading the new 10g drivers reload fixed this
Now create the database connection and test.
Should this not work you can try the following:
CSCtb80893 -
Help building an e-commerce site using DreamWeaver MX 2004 and Oracle 10G
I'm new to using Oracle 10G. After reviewing several rdms's I've picked Oracle 10G as my rdms. I'm trying to build an ecommerce site using DreamWeaver MX 2004 and Oracle 10G. The website will be selling hardware and software products. I have a choice in DreamWeaver to go for a .asp or .jsp setup. I have several questions, here goes:
1. Is there any book/tutorial/whitepaper out there that describes building an ecommerce site using Oracle 10G/9I/8I? Just some examples as how to make the datamodel regarding the shopping basket etc.
2. I prefer DreamWeaver as it let's me make nice looking css style based pages without throttling too much through the code. Are there Oracle tools which allow me to make an advanced nice looking ecommerce site?
I hope some of you can help me get started. Any effort is appreciated.
CheersI'm new to using Oracle 10G. After reviewing several rdms's I've picked Oracle 10G as my rdms. I'm trying to build an ecommerce site using DreamWeaver MX 2004 and Oracle 10G. The website will be selling hardware and software products. I have a choice in DreamWeaver to go for a .asp or .jsp setup. I have several questions, here goes:
1. Is there any book/tutorial/whitepaper out there that describes building an ecommerce site using Oracle 10G/9I/8I? Just some examples as how to make the datamodel regarding the shopping basket etc.
2. I prefer DreamWeaver as it let's me make nice looking css style based pages without throttling too much through the code. Are there Oracle tools which allow me to make an advanced nice looking ecommerce site?
I hope some of you can help me get started. Any effort is appreciated.
Cheers -
How to export AWM in Oracle 10g
Hi All,
Im doing export of my Analytical Workspace with option tables=AW$TEST, this command failed and thrown EXP-00055: CALLDETAIL_TEST.AW$TEST is marked not exportable, i checked NOEXP$ table and i can find my AW name in it, according to table definition i cann't perform export of those objects listed in NOEXP$ table right, I want to know from you pals how can i export AW and then import it ?
Need your feedback asap.
Thanking you pals in advance
Hassan khanAbhii wrote:
How to store image in Oracle 10g?
any example ?http://www.google.co.in/search?rlz=1C1GGLS_enIN321IN321&sourceid=chrome&ie=UTF-8&q=How+to+store+image+in+Oracle
HTH
Aman.... -
How to connect mysql database using xml
welcome to all,
here my doubt is how to connect mysql database using xml file, how to integrate xml file and jsp file and how to access data from dabase using jsp file. can any one help me
regardsShort answer: you wouldn't do any of those things. The first two are meaningless and the third is a bad practice. I have no idea what those ideas were supposed to achieve so I have no idea what tutorials I should suggest to you.
Maybe you are looking for
-
UCCX 9.0(2) - Holiday schedule for geographic regions
Hi Guys, I am hoping someone will be able to nudge me in the right direction. I am struggling to find a good way to script out a particular holiday check. I have a UCCX server that resides here in the states that will be serving some customers in Asi
-
Hi, i wanted to know if I can buy an unlocked iphone 5 in mac stores
Hi, i wanted to know if I can buy an unlocked iphone 5 in mac stores
-
How to switch to another user in oracle form10g
hi....... Iam nw to oracle forms. i wanted to know how i can switch to another user to get the records from tables of that user in run time.
-
I have CS3 and CS5 on my Mac, can I safely delete CS3 now that I am upgrading to CS6?
This may seem like a paranoid question, but better safe than sorry... I currently have both CS3 and CS5 (Production Premium) loaded on my Mac laptop. I just got the upgrade to CS6 today. I really don't need/use CS3 anymore, so I am wondering if it is
-
Can SAP MDM application act as a Webservice Client. I am not speaking about MDM Webserivces, where MDM acts as Webservice provider. I am speaking about MDM as WebService client, MDM should invoke a webService/EnterpriseService provided by third party