How can you connect to MS SQL Server through Oracle 9i?
i.e. we want to connect through a stored procedure and NOT a form. Our live DB is still in 9i.
CKPT wrote:
user12240205 wrote:
i.e. we want to connect through a stored procedure and NOT a form. Our live DB is still in 9i.we want to connect through a stored procedure -- connect through stored procedire? i never heard. can you please post your views this information is not enough.CREATE PROCEDURE proc1 (p_sqlsever_credentials varchar2, p_status OUT boolean) IS
BEGIN
-- Connect to SQL Server using p_sqlsever_credentials
-- Execute Stored Procedure (SP) in the SQL Server DB passing paras to it.
-- If SP in SQL Server is successful then SP will COMMIT in SQL Server
-- If failure it will be rolled back there.
-- SP will return status
-- Pass the status to the calling program
END;
/
Similar Messages
-
How can i connect to a SQL Server 2000 database usgin JSP?
I need (URGENT) to connect to SQL Server 2000 databse using JSP. I do not know how to program using JSP, so if anyone has any code snippet please let me see it. What i need is to give my site some login/password security.
Anyone?
Thx.just create an ODBC of your database from control pannel -> administrative tools -> data sources (ODBC) ,double click it .....
go to the tab SYstem DSN , click on ADD button. select the driver for your connection. it will be the last one in the list "SQL Server".
click Next then give ur DSN name there, description and Server Name , on next give your username and password of SQL server. when it will be connected to the server celect your database from there and hence there will be an ODBC bridge same as in case of MS Access.
code for connecting to ODBC is
// DSN-NAME same as in System DSN.
// username and password are of your databse
try
url = "jdbc:odbc:DSN-NAME";
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
connect = DriverManager.getConnection( url,"username","password" );
catch ( ClassNotFoundException cnfex ) {
setErrorMsg( cnfex.getMessage() );
catch ( SQLException sqlex ) {
setErrorMsg( sqlex.getMessage() );
catch ( Exception ex ) {
setErrorMsg( ex.getMessage() );
Now you are connected to the SQL Server ..... use connect object for further processing ......... -
How to connect to a Sql server from Oracle using db link
Hi All,
Does anybody have any idea about how to connect to a sql server from oracle database using db link to syncronize the data? I need to pull the data from Sql server table to Oracle tables and relay messages back to the sql server.
Thank you,
Praveen.we have 2 products - DG4MSQL and DG4ODBC.
DG4ODBC is for free and requires a 3rd party ODBC driver and it can connect to any 3rd party database as long as you use a suitable ODBC driver
DG4MSQL is more powerfull as it is designed for MS SQL Server databases and it supports many functions it can directly map to SQL Server equivalents - it can also call remote procedures or participtae in distributed transactions. Please be aware DG4MSQL requires a license - it is not for free.
Check out Metalink and you'll find notes how to configure both products.
For a generic overview:
Note.233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases
And the setup notes:
DG4ODBC
Note.561033.1 How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX) :
Note.466225.1 How to Setup DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit RDBMS.HS-3-2 :
Note.109730.1 How to setup generic connectivity (HSODBC) for 32 bit Windows (Windows NT, Windows 2000, Windows XP, Windows 2003) V817:
Note.466228.1 How to Setup DG4ODBC on Linux x86 32bit
DG4MSQL
Note.466267.1 How to Setup DG4MSQL (Database Gateway for MS SQL Server) on Windows 32bit
Note.562509.1 How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) 64bit Unix OS (Linux, Solaris, AIX,HP-UX)
Note.437374.1 How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) Release 11 on Linux -
How can I connect to a UNIX server to execute a command?
How can I connect to a UNIX server and execute a command using PowerShell? My shell script is sitting on one server, while the UNIX box is on another.
also, I don't like the idea of hardcoding a username/password within the script file in order to do so.
-Nothing to see. Move along.You will need a library to handle SSH connections.
I'm using SSH.NET, you can find info on it here : http://www.powershelladmin.com/wiki/SSH_from_PowerShell_using_the_SSH.NET_library
It has a bit of a learning curve but the web site has some fairly good tutorials. -
How can I connect to a windows server from a mac book pro
How can I connect to a windows server from a mac book pre?
I have a Dell Power Edge T110 ii in the office that has files and software I need to access when away from the office, when I am on the road I use a mac book pro and an iPad.
I am sorry if I am being a bit vague but this is all new to me, I have tried 3 IT guys but they can not find a way.
Any help is greatly appeciated. -
I have a lenovo S410 Touch laptop -with windows 8.1 -Itunes 11.1.1 ,i am trying to connect my iphone 4s by USB cable but does not connect , it shows that it wants to connect , how can you connect this?
http://support.apple.com/kb/ts1538
-
How can you connect iPod touch or iPad to TV and watch it what kind of connection?
How can you connect iPod touch or iPad to your tv and watch it
Not really anything to do with Apple TV
If you want to connect an iPad or iPod
http://store.apple.com/us/product/MD098ZM/A/apple-digital-av-adapter
http://store.apple.com/us/product/MD826ZM/A/lightning-digital-av-adapter -
How can you connect your 4th gen ipod touch to a 3g network?
how can you connect your 4th gen ipod touch to a 3g network?
Yu need a device like the following:
- A MiFi or similar. They are credit-card size devices that act a wifi hotspot and then connect to a cellulare network
- Use a smart phone that can act as a wifi hotspot to share it s cellular connection. An iPhone will also do that via bluetooth. You need to purchase a tethering plan . -
Hello,
Can you replicate databases from SQL Server 2014 Enterprise Edition to SQL Server 2014 Standard edition?
Thanks.Yes, you can replicate from Enterprise edition to Standard edition. The only caveat is Peer-to-Peer Replication requires all nodes to be Enterprise Edition.
Brandon Williams (blog |
linkedin) -
How to replicate data from MS SQL Server to Oracle
Hi,
Can someone please help me on how to replicate data from MS SQL Server to Oracle 8i database.Dear,
I'm a student.
I do simple replication on Oracle 8.0.5 successfully. (one master site and one snapshot site). I only use the SQL*Plus and Schema Manager to do.
But when I do advance replication (multimaster replication) I meet many problem. So I don't get the result.
Do you show me the technology to do that ?
Thanks ! -
./mysqlshow: Can't connect to local MySQL server through socket '/tmp/mysql
hi all ,I install mysql on Solaris 10 at first it work fine , but after I restart my PC and go back again I got error on
./mysqlshow: Can't connect to local MySQL server through socket '/tmp/mysql
I google , but still not sure how to deal with it
Thank youI've just done a clean install of OSX Server and added the latest MYSQL packaged installer. Afterwards I found the lock file in /private/tmp/mysql.lock
The easiest way to solve this problem is to create a symbolic link so that the lock file appears to be in right place.
e.g.
cd /var
sudo mkdir mysql <== this assumes the directory is missing
cd mysql
sudo ln -s /private/tmp/mysql.sock mysql.sock
After this msql commands should work fine, and you've not fiddled with the security settings on users/groups.
HTH
Christian -
Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'
I'm using the pre-installed versions of php and mysql under Mac OS X Server 10.4.4 running on a G4 and am unable to get anything involving mysql to work.
I ssh to the server and enter various commands in Terminal:
on typing "mysql" I get
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
and on typing "mysqladmin version" I get
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/mysql/mysql.sock' exists!
On typing "sudo mysqld_safe" I get
Starting mysqld daemon with databases from /var/mysql
STOPPING server from pid file /var/mysql/MyServer.local.pid
070722 16:06:05 mysqld ended
/var/mysql/MyServer.local.err contains
070722 16:06:04 mysqld started
070722 16:06:04 [Warning] Setting lowercase_tablenames=2 because file system for /var/mysql/ is case insensitive
070722 16:06:04 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
070722 16:06:05 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 43634.
/var/mysql has permissions 775.
The line
mysql.default_socket = /var/mysql/mysql.sock
is in /etc/php.ini
whereis mysqladmin ->
/usr/bin/mysqladmin
whereis mysql ->
/usr/bin/mysql
ls /var/mysql ->
MyServer.local.err
ib_logfile1
mysql
ib_logfile0
ibdata1
test
Can't find my.cnf or my.ini anywhere
Can't find mysql.sock anywhere
I'm trying to get a bug database running (mantis) under Mac OS X Server 10.4.4 that I can access from local clients.
I'm trying to follow directions at http://www.mantisbugtracker.com/manual/manual.installation.php
without knowing anything about mysql or php and I'm stuck on step 3:
"Next we will create the necessary database tables and a basic configuration
file."
I get a message saying
"Does administrative user have access to the database? ( Lost connection to MySQL server during query )"
I don't even know if following the mantis directions has resulted in the creation of a database or not. Where would it be?
Thanks for any help.
Intel iMac Mac OS X (10.4.10)I've just done a clean install of OSX Server and added the latest MYSQL packaged installer. Afterwards I found the lock file in /private/tmp/mysql.lock
The easiest way to solve this problem is to create a symbolic link so that the lock file appears to be in right place.
e.g.
cd /var
sudo mkdir mysql <== this assumes the directory is missing
cd mysql
sudo ln -s /private/tmp/mysql.sock mysql.sock
After this msql commands should work fine, and you've not fiddled with the security settings on users/groups.
HTH
Christian -
"Can't connect to local MySQL server through socket '/tmp/mysql.sock'"
Data Services=3.1
Repository=12.2.2.0000
Red Hat Enterprise 5
Designer,Job Server,Job Engine=12.2.2.3
After an unscheduled server reboot with DS up and running when trying to start a job in either Data Services Management Console or DS Designer getting the following:
"Can't connect to local MySQL server through socket '/tmp/mysql.sock'"
The mysql.sock have never been in /tmp and on the production server it does not exist there and the production server is up and running correctly. If a link is created to mysql.sock(/home/user/boedge31/bobje/mysql) the job will start but return this message:
"Cannot retrieve <Version> from the repository. Additional database information: <SQL submitted to ODBC data source <localrepo> resulted in error <MySQL ODBC 3.51 Driver mysqld-5.0.46-enterprise No database selected>. The SQL submitted is <select VERSION, SECURITYKEY, GUID from AL_VERSION where NAME = 'Repository Version'"
I checked and AL_VERSION and the Version field exist.
Before the shut down DS was working correctly and had no issues. My best guess is a part of the repository was corrupted during the unscheduled shut down. It seems like DS has "forgotten" some of the settings.
Any suggestions on a possible solution?The issue has been solved.
There was a bad path in $LD_LIBRARY_PATH.
Removed the path and DS started working again. -
TS1373 how can i connect my iphone to computer through usb using windows 8?
how can i connect my iphone to computer through usb using windows 8?
If iTunes is installed, you just connect the iPhone to USB.
http://support.apple.com/kb/HT1386
You can also sync to iTunes using WiFi. -
Can JSP connect to Microsoft SQL server?
Hi, i'm having problem of looking for a tutorial or any information about how to link jsp to microsoft sql server. I hope that i can get some information on can i do this and how to do it. If possible, please to give some guide on where i can find the tutorial or some example.
Thank youIdeally if you are connecting to the database to pull data out for display, you should be using a servlet to do this. The servlet can be loaded via the JSP page to display the dynamic data.
You should really remove the Java from the JSP page as much as possible, by using a servlet to do the DB lookup etc you are achieving this quite effectively. The returned information an be in a HTML Table format that can be diplayed by the JSP page.
At the coreservlets site (http://archive.coreservlets.com/) chapter 18 has a few good examples withrespect to connection to a database and even provides a connection pooling discussion with examples. The book is pretty good for beginners looking to get a leg up in servlet/JSP development.
Here is a Servlet course that has DB connection included
http://developer.java.sun.com/developer/onlineTraining/Servlets/Fundamentals/contents.html
Here is a JSP course
http://developer.java.sun.com/developer/onlineTraining/JSPIntro/contents.html
Maybe you are looking for
-
Fault elt in web-services.xml NOT WORKING
We are trying to capture an invalid message coming into our service before our service actually processes it. Per WLS7 documentation, it provides the ability to add a <fault> elt under the <params> elt in web-services.xml to perform that. Here's how
-
XML file error while loading import manager
Hi all, I am new to MDM. I have archive repository(.a2a file),xsd files,import maps and export maps.I have unarchived the repository in console and I am trying to load import manager by selecting the file type as XML schema, client system as MDM, XMl
-
New MacBook and Old Hard Drive
I had a MacBook 2 and I have now bought a new MacBook 4. As I sold my old one instead of using transfer assistant I have simply swapped the hard drives. Everything seems to be fine except Time Machine won't recognize the old backups because the MAC a
-
Hi, How to find the size of the schema in a daabase. Thanks, Mahi
-
Trying to load server behaviour but problem with extension manager
I keep downloading the server behaviour extension from exchange which tells me that I need the latest version of the the extension manager. I have the latest version of extension downloaded through the cloud. But when I go to windows - manage ext