HS connection to SQL2000
A few months ago with help of this forum I set up a connection so that from Oracle 8i I was able to select tables on a SQL2000 database (installed on a separate machine).
However I was forced to use the database link name HO.WORLD If I tried any other name for the db link I kept getting message that database link ANYNAME.WORLD connects to HO.WORLD.
At that time this did not bother me, so I just set my da link name to HO.WORLD and have been working fine ever since.
The problem is that now I need to connect to a different SQL2000 database and am getting same problem, only this time naming db link HO.WORLD although it works fine means that I have to erase previous connection as I cannot have two links with same name.
Any suggestions how can I solve this problem and maybe name db link something different.
James
I think you have GLOBAL_NAMES=TRUE (which is the default for Oracle 9). GLOBAL_NAMES means that the database link name MUST be the same as the database it connects to, but HS has no idea what the database is actually called.
CREATE DATABASE LINK custard CONNECT TO ...
SELECT * FROM all_tables@custard;
ORA-02085: database link CUSTARD.US.ORACLE.COM connects to HO.WORLD
In your HS initSID.ora, add the lines :-
HS_DB_NAME=CUSTARD
HS_DB_DOMAIN=US.ORACLE.COM
Takmeister
Similar Messages
-
Connection string without username and password
Hi,
I need to use DriverManager.getConnection() to connect to sql2000 use only dsn name; no user name and password allowed.
how do I do it?the main reason is we do not want to put password as clear text on the java code. the customer does not want to put the password at registry either.
Is there a way that we can store the password on the client side and just use the dsn name to connect to sql server?Still doesn't explain the problem.
As I already said, there are only two ways to connect to MS SQL Server, with a user/pwd or via windows authentication.
So if you must use the first then you must have a user/pwd somewhere. In that case it doesn't matter what the user wants unless they want to convince Microsoft to re-engineer MS SQL Server.
Windows authentication should solve the problem but you do need a windows user then. And you must use a driver that supports windows authentication.
If you must use the usr/pwd then the solution is to encrypt or other obfuscate the actual password. One way is to use an encrypted configuration file which contains the user and password. Then your application loads the file, decrypts it and extracts the values at run time. You will need to provide a separate encryption tool to create the file in the first place. -
Hi All,
I am using jdbc-odbc connection to connect to sql2000 server. I am able to read the data and polpulate the CachedRowset also. When i am using cachedrowset.next() its displaying all the rows but when i use while(cachedrowset.nextPage()){
while(cachredrowset.next()){ System.out.println(row);}
} its giving me following exception java.sql.SQLException: Populate data before calling
at com.sun.rowset.CachedRowSetImpl.nextPage(Unknown Source)
at CachedRowSetSampl.main(CachedRowSetSampl.java:88)When i try to use cachedrowset.populate(rs,10) its giving me following exception:
java.sql.SQLException: Result set type is TYPE_FORWARD_ONLY
at sun.jdbc.odbc.JdbcOdbcResultSet.absolute(JdbcOdbcResultSet.java:2434)I am totally new to CahcedRowSet use. I tried setting property cachedrowset.setType(ResultSet.TYPE_SCROLL_INSENSITIVE) but it didn't help. Please help me.You're probably more likely to find JDBC gurus on the JDBC forum - http://forum.java.sun.com/forum.jspa?forumID=48
-
Connect SQL2000 using weblogic 6.1
Hi,
I am a new to java.
Does anyone can tell me how to connect sql2000 using weblogic 6.1 ?
WilsonThanks !!
"Slava Imeshev" <[email protected]> wrote in message
news:[email protected]..
Hi Wilson,
You need to take path containing spaces into quotes i.e
"C:\Program Files\Microsoft SQL Server 2000 Driver for
JDBC\lib\msbase.jar";
Slava
"Wilson" <[email protected]> wrote in message
news:[email protected]..
I want to setup a connection pool using ms JDBC driver and what i done
are
I have set the class path in startWebLogic.cmd
set CLASSPATH=C:\Program Files\Microsoft SQL Server 2000 Driver for
JDBC\lib\msbase.jar;
C:\Program Files\Microsoft SQL Server 2000 Driver for
JDBC\lib\mssqlserver.jar;
C:\Program Files\Microsoft SQL Server 2000 Driver for
JDBC\lib\msutil.jar;
.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
and
<JDBCConnectionPool
Name="MyJDBC Connection Pool"
Targets="jdbctest"
URL="jdbc:microsoft:sqlserver://sqlsvr01:1433"
DriverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
InitialCapacity="1"
MaxCapacity="1"
CapacityIncrement="1"
Password=""
Properties="user=sa;server=qa75"
/>
but I get these error :
<2002/12/10 ??10?17?31?> <Error> <JDBC> <Cannot startup connection pool"My
JDBC Connection Pool" Cannot load driver class:
com.microsoft.jdbc.sqlserver.SQL
ServerDriver>
Thanks in advance.
Wilson
"Joseph Weinstein" <[email protected]> wrote in message
news:[email protected]..
Wilson wrote:
Hi,
I am a new to java.
Does anyone can tell me how to connect sql2000 using weblogic 6.1 ?
WilsonFrom what sort of code you you want to connect? Do read our onlinedocumentation
on connection pools. You can tell our pool system what JDBC driver youwant to use,
and the arguments it needs, and then we'll make a pool of connections
for
you. You should
start out with the simple JDBC driver examples.
Joe -
SQL2000 to Oracle 9i Migration - Connection refused
I am having trouble connecting to SQL Server through SQL Developer 1.2.1 Build 32.13.
I am on XP Profesional SP2, had downloaded and install jtds-1.2.2 and when i try to connect i am getting the error, 'Status Failure - Network Error IOException: Connection Refused: connect'
my default port is 1433
i have enabled the TCP/IP at the Sqlserver and also disabled the firewall
i don't have this problem in sql2005, but sql2000 send me this error..
Can anyone help me??Can you telnet to 1433 on machine 1433?
$ telnet servername 1433
Trying 10.169.123.125...
Connected to servername.ie.oracle.com.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
$ telnet servername 1432
Trying 10.169.123.125...
telnet: Unable to connect to remote host: Connection refused
$
Demonstrating on this network that servername is accepting some sort of connections on 1433
and not on 1432.
Depending on whether there is something accepting connections will help diagnose where the problem is.
-Turloch -
SQL2000 - Network error IOException: Connection refused: connect
I am having trouble connecting to SQL Server through SQL Developer 1.2.1 Build 32.13.
I am on XP Profesional SP2, had downloaded and install jtds-1.2.2 and when i try to connect i am getting the error, 'Status Failure - Network Error IOException: Connection Refused: connect'
my default port is 1433
i have enabled the TCP/IP at the Sqlserver and also disabled the firewall
i don't have this problem in sql2005, but sql2000 send me this error..
Can anyone help me??It probably isn't a sqldeveloper problem. Try to pin down the differences between your 2205 installation and your 2000 installation.
-
Not able to get the connection to mssql server thro native sql
Dear Experts,
I have created a database connection to mssql server thro DBCO t.code.Am not able to get the connection when i am executing Native SQl for geting connection of mssql server.
DATA: CON_NAME LIKE DBCON-CON_NAME VALUE 'BIW'.
EXEC SQL.
CONNECT TO :con_name AS 'C1'
ENDEXEC.
Am always getting sy-subrc = 4. The user name and password i have given in dbcon table having full authorization to access mssql database. I am working SAP ecc 5.0. Also both servers are running in windows.
could anyone hlep me on this issue.
Thanks in advance.Hello, the submitted error must be analyzed according to the Syntaxis and characteristics of the MSSQL database. See explanation of error.
http://doc.ddart.net/mssql/sql2000/html/trblsql/tr_reslsyserr_1_1o1i.htm
Error 156
Severity Level 15
Message Text
Incorrect syntax near the keyword '%.*ls'.
Explanation
This error indicates that the syntax of a Transact-SQL statement is incorrect and that the syntax error was detected near the keyword specified in the error message. The most frequent causes for syntax errors are misspellings of Transact-SQL keywords or operators, and specifying the syntax of a Transact-SQL statement in the wrong order.
One of the more complicated causes for this error may be a compatibility level mismatch for the current database. If the current database has a compatibility level other than 70, Microsoft® SQL Serveru2122 will not recognize any of the keywords that a database with a compatibility level of 70 would recognize.
Action
First, check the Transact-SQL statement syntax near the keyword specified in the error message. Because Transact-SQL language syntax can be very complex, SQL Server may incorrectly report the position of the syntax error as later in the Transact-SQL statement than it actually occurred. Second, reexamine the entire Transact-SQL statement that generated the error. Verify the syntax order of the statement.
Ensure that the database does not have a compatibility level of 65 and has a compatibility level of 70. -
Multiple connections in one app
Hi,
I have a web app and am using JDev 10.1.3.2 with ADFBC. Some of the data will come from SQL2000 while other info will come from Oracle 10g. My UI will require presentation of a mix. But I am only able (it appears) to use one db connection in one project. What's the best way to address using multiple datasources?
Thanks!
Ginnihi ginnim
Maybe this blog story by Steve Muench could be of some help:
"How Granular Should My Application Modules Be?"
http://radio.weblogs.com/0118231/stories/2005/05/27/howGranularShouldMyApplicationModulesBe.html
success
Jan Vervecken -
Cant create connection Pool for MS SQL Server 2000 with Microsoft Driver
i am using bea weblogic server 6.1, i cant create connection pool while using MS
SQL Server 2000. i have installed JDBC Driver SAP1 from microsoft website. when
i give the following class name for JDBC driver and the connection url and click
apply while selecting the available server, a number of exception appears in default
server (that is the connection pool cannot be created..... cannot load the driver
class).
URL= jdbc:Microsoft:sqlserver://127.0.0.1:1433;DatabaseName=MyDB
Driver= com.microsoft.jdbc.sqlserver.SQLServerDriver
when i use the above setting in a JDBC simple application in Jbuilder
7.0 the application runs successfully and fetches the data deom MS SQL database
but in at Bea connection Pool is not created with these settings. i do give appropriate
username and password in properties field in connection pool. Thankx for any help!khabbab wrote:
That was the original code part from "startweblogic" :
:runWebLogic
echo on
set PATH=.\bin;%PATH%
set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;
echo off
and i changed it to :
:runWebLogic
echo on
set PATH=.\bin;%PATH%
set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;D:\Program Files\Microsoft
SQL Server 2000 Driver for JDBC\lib\msbase.jar;D:\Program Files\Microsoft SQL
Server 2000 Driver for JDBC\lib\msutil.jar;D:\Program Files\Microsoft SQL Server
2000 Driver for JDBC\lib\mssqlserver.jar;I suggest moving or copying the three ms driver jars to a directory that has no blanks
in it so the classpath doesn't have blanks in it. Ie:
go to the "D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib"
directory and do this:
mkdir D:\microsoft_jdbc_driver
cp *.jar D:\microsoft_jdbc_driver
Then make the classpath include D:\microsoft_jdbc_driver\msbase.jar etc.
Joe
>
>
echo off
when i save and run the bat file, server appears then disappears.
Joseph Weinstein <[email protected]_this> wrote:
khabbab wrote:
The class path which is echoed at server startup does not include thepaths to
driver jar files. when i edited the "startweblogic.bat" file and includedthe
driver class paths to jar files, now the server doesnot even run. tellme what
to do now???Show me what change you made to the startweblogic file.
Joe
Joseph Weinstein <[email protected]_this> wrote:
khabbab wrote:
kindly tell me how can i check that the class paths for driver jarfiles are included
in that string? thanks. also tell me can not i use the jdriver forsql server
2000?.The startup script will echo what it's doing, including printing out
the classpath
it will use. Yes you can use the jDriver for MS SQL2000. It is sufficient
for
basic JDBC, but the MS drivfer is preferable in some ways.
Joe
Joseph Weinstein <[email protected]_this> wrote:
khabbab wrote:
i am using bea weblogic server 6.1, i cant create connection
pool
while
using MS
SQL Server 2000. i have installed JDBC Driver SAP1 from microsoft
website.
when
i give the following class name for JDBC driver and the connectionurl and click
apply while selecting the available server, a number of exception
appears
in default
server (that is the connection pool cannot be created..... cannot
load
the driver
class).The server startup script creates a string that will become the
classpath
for the server.
This string is part of the java call to start the server with a-classpath
argument. You need to
make sure the MS driver jars are part of that classpath string.
Joe
URL= jdbc:Microsoft:sqlserver://127.0.0.1:1433;DatabaseName=MyDB
Driver= com.microsoft.jdbc.sqlserver.SQLServerDriver
when i use the above setting in a JDBC simple applicationin Jbuilder
7.0 the application runs successfully and fetches the data deom
MS
SQL database
but in at Bea connection Pool is not created with these settings.
i
do give appropriate
username and password in properties field in connection pool.
Thankx
for any help!
khabbab wrote:
The class path which is echoed at server startup does not include thepaths to
driver jar files. when i edited the "startweblogic.bat" file and includedthe
driver class paths to jar files, now the server doesnot even run. tellme what
to do now???
Joseph Weinstein <[email protected]_this> wrote:
khabbab wrote:
kindly tell me how can i check that the class paths for driver jarfiles are included
in that string? thanks. also tell me can not i use the jdriver forsql server
2000?.The startup script will echo what it's doing, including printing out
the classpath
it will use. Yes you can use the jDriver for MS SQL2000. It is sufficient
for
basic JDBC, but the MS drivfer is preferable in some ways.
Joe
Joseph Weinstein <[email protected]_this> wrote:
khabbab wrote:
i am using bea weblogic server 6.1, i cant create connection
pool
while
using MS
SQL Server 2000. i have installed JDBC Driver SAP1 from microsoft
website.
when
i give the following class name for JDBC driver and the connectionurl and click
apply while selecting the available server, a number of exception
appears
in default
server (that is the connection pool cannot be created..... cannot
load
the driver
class).The server startup script creates a string that will become the
classpath
for the server.
This string is part of the java call to start the server with a-classpath
argument. You need to
make sure the MS driver jars are part of that classpath string.
Joe
URL= jdbc:Microsoft:sqlserver://127.0.0.1:1433;DatabaseName=MyDB
Driver= com.microsoft.jdbc.sqlserver.SQLServerDriver
when i use the above setting in a JDBC simple applicationin Jbuilder
7.0 the application runs successfully and fetches the data deom
MS
SQL database
but in at Bea connection Pool is not created with these settings.
i
do give appropriate
username and password in properties field in connection pool.
Thankx
for any help! -
Upgrade SBO-COMMOM SQL - unable to connect to database
Dear Experts,
I'm trying to upgarde from SAP 2007 A PL-42 to PL-49.
I have currently got SQL2000 (for legend system) running under the instance name SERVER and i have installed SQL2005 (SAP uses this) with the instance name SERVER\SQL2005, both running on the same machine called SERVER.
When i try to upgrade the SBO-COMMON database, it installs the DI and reaches a point where it asks for:-
Database Server:- (I input SERVER\SQL2005)
Database Name:- (SBO-COMMON)
User Name:- (sa)
Password:- (password)
When i click the NEXT button, i get the error "unable to connect to database; verify that database TCP/IP port serice is started."
I have verified that the TCP/IP ie enabled,and running on port 1433.
Addidtional Information:
During installation, it tries to access c:\windows\system32\sqljdbc_auth.dll file, when i click the NEXT button, just before i get the TCP/IP error.
Would highly appreciate the help.
Regards,
AsifDear Asif,
You may check these threads first:
Re: Unable to connect after migrating from SQL Server 2000 to SQL Server 2005
Re: Installing SBO 2007 Error Unable to connect to database
Thanks,
Gordon -
DB Connect Data featching problem
Hi all,
I connect Sql2000 to BW server and trying to make a report for this i have done all the things i mean to say make infosource , cube , update rule .
in sql data source i take 2 fields for data selection ID and Name when i make infopkg these two fields come into selection when i press F4 button for data checking in infopkg it gives dump thats why i am abel to upload data from Sql server to BW server .
But when i run T-code rsdbc for the same data source it shows data init.
i dont know what is the reason behind it ,is there any setting after making data source in rsdbc ????
please can anybody tell me how can i remove this error from so that i fillup my sql data into cube...
Thanks and regard
Ankit modiHi,
Check it..........
http://help.sap.com/saphelp_nw2004s/helpdata/en/42/fdccb72aa95277e10000000a1553f7/content.htm
http://www.google.co.uk/url?sa=t&ct=res&cd=6&url=http%3A%2F%2Fwww.geocities.com%2Fhandltech%2FDBConnecTst.pdf&ei=oH9HSI-fM5K2wQGqo8TcBA&usg=AFQjCNHlLYPcyjvEzo7R9NaW1MLDfFFyxg&sig2=nyQAUxjlug8ChOkV16o_ew
Hope this information helps u........
Assigning Points is the way of saying Thanks in SDN
Regards
Ramakrishna Kamurthy -
Hi all,
After connecting sql to BW server i am able to see the data in rsdbc t-code .Now i am trying to make BW report from that data source which i create in RSDBC-tcode , i have done all nessory(Cubes,infosource,update rules etc....) steps for pulling data from Sql2000 to BW server (all the steps which i have done same as R3 data pulling).
But stil i am not getting data in BW server from sql2000 ,
Can anybody tell me what is minimum patch level or system configuration level for performing this task.
Because i think i am lacking in Patch level thats why i am not getting data into my cube.
and finally i want to ask if data from sql2000 is shown in T-code RSDBC it means my BW server is OK or Not ??????
because data from sql2000 shown in rsdbc.
Thanks and regards
Ankit modiHi,
Check it..........
http://www.google.com/url?sa=t&ct=res&cd=6&url=http%3A%2F%2Fwww.geocities.com%2Fhandltech%2FDBConnecTst.pdf&ei=6s1HSLs6iLLqA5r60NcE&usg=AFQjCNHlLYPcyjvEzo7R9NaW1MLDfFFyxg&sig2=EOZHlcZbgIYBd51e3h0cFw
Hope this information helps u........
Assigning Points is the way of saying Thanks in SDN
Regards
Ramakrishna Kamurthy -
Changed DSN in connection object but reports still use value from old DSN
We're running BObj XIr2 SP4 and have both WEBI and DESKI reports. Most of our DESKI reports have two data providers, one from a universe (header/footer info) and one for free-hand SQL (report data). We are testing in preparation to upgrading all our databases to SQL2005 and have created a new DSN which points to a SQL2005 database to be used by our universe and free-hand SQL connections. We modified our existing connections to use the new DSN and to use the SQL2005 database engine. Our WEBI reports are working just fine and are returning data from the SQL2005 database, but on the DESKI reports the header/footer info from the universe is correct but the report data is coming from the "old" SQL2000 server. If we create a new DESKI report and export it, it retrieves data correctly from both data providers, but the existing DESKI reports, which use the same connections, have the same problem. The new DSN exists on the app server and points to the correct database.
We were hoping that, like the WEBI reports, the changes would be transparent to the reports, but that doesn't seem to be working. Is there something we must do to get the existing DESKI reports to recognize and use the new connection parameters?Interesting - So, please let me know if I understand this correctly: If I create a new shared connection using DESKI or Designer on my workstation, it is saved to the server and creates an entry in my local lsi file but doesn't impact the lsi file on the server? If I later modify that connection via DESKI or Designer on my workstation, my local lsi file is changed but the server lsi file is not changed, meaning that any report using that shared connection running through InfoView will not use the new connection parameters but will use the "old" parameters from the server lsi file. If someone then modifies the connection via DESKI or Designer on the server those changes are reflected in the server's lsi file, but if I run a report using that connection via DESKI on my workstation, it will use the parameters from my local lsi file. That would mean that someone could actually delete the connection on the server and I could still run the report in DESKI?
It also appears that the free-hand SQL reports can't use secured connections so I can't by-pass this issue by using secured connections...
I'm assuming that secured connections don't work this way since our Universe connections were modified on the workstation and saved and work correctly. -
Error connecting to Client Sys. DB
Hi
i am trying to create Datasource in my my localhost for the
client's database.
i am able to connect to through the SQL Server Enterprise
Manager, but when i am creating datasource i am getting following
error:
Connection verification failed for data source: dev1
java.sql.SQLException: [Macromedia][SQLServer JDBC
Driver][Macromedia][SQLServer JDBC Driver]The requested instance is
either invalid or not running.
The root cause was that: java.sql.SQLException:
[Macromedia][SQLServer JDBC Driver][Macromedia][SQLServer JDBC
Driver]The requested instance is either invalid or not
running.This assumes you have CFMX 7.01 and SQL Server 2000 installed
on Windows 2000/XP/2003
This may help:
• Install SQL2000 SP3 ( or latest patch)
• Create an ODBC DSN within the Microsoft ODBC Manager
to make certain the connections are working at this level.
• Create a new SQL2000 user with administrative
permissions, go to the user/admin properties and allow permissions
at all levels for the applicable database (not all dbs).
• Create the JDBC DSN in Coldfusion, use the server
name that is listed in the Enterprise Manager. -
Connecting Oracle DB with SQL server
I need to connect an Oracle Data Base to a SQL Server throught a BPEL process. Somebody knows about a TUTORIAL or maybe other guide.....pls this is urgent.
ThanksReading you post, I asssume you want to select data from an Oracle database and pass this information to a BPEL processs. This process will store the data into a SQL Server database.
Create BPEL process, with two partner links, using the DB adapater. One partner link is using the Oracle databas, the other one SQL Server.
Therefore you must add/change your oc4j-ra.xml, to add an Oracle DB connection and an SQL Server connection: The file can be found at
$ORACLE_HOME\j2ee\OC4J_BPEL\application-deployments\default\DbAdapter
<connector-factory location="eis/DB/SampleSQLServerConnection" connector-name="Database Adapter">
<config-property name="driverClassName" value="com.microsoft.jdbc.sqlserver.SQLServerDriver"/>
<config-property name="connectionString" value="jdbc:microsoft:sqlserver://localhost\\sql2000:1433;SelectMethod=cursor;databasename=NAME"/>
<config-property name="userName" value="NAME"/>
<config-property name="password" value="password"/>
<config-property name="minConnections" value="5"/>
<config-property name="maxConnections" value="5"/>
<config-property name="minReadConnections" value="1"/>
<config-property name="maxReadConnections" value="1"/>
<config-property name="usesExternalConnectionPooling" value="false"/>
<config-property name="dataSourceName" value=""/>
<config-property name="usesExternalTransactionController" value="false"/>
<config-property name="platformClassName" value="oracle.toplink.internal.databaseaccess.SQLServerPlatform"/>
<config-property name="usesNativeSequencing" value="true"/>
<config-property name="sequencePreallocationSize" value="50"/>
<config-property name="tableQualifier" value=""/>
<config-property name="defaultNChar" value="false"/>
<config-property name="usesBatchWriting" value="true"/>
</connector-factory>
Maybe you are looking for
-
How to include another partition in tape backup
Hi I use a shell script written by my sysadmin to take backup of our oracle system on tape. now i moved some datafiles on another partition and hence want to include that partition also in tape backup. for fs in $(cat /tmp/dailybkupfs | awk '{print $
-
How to set a parameter scope?
Hi, I am very new to java and having a problem with the request parameters. In my URL i have a request parameter http://localhost:8080/for/admin.jsp?companyID="12345" . The problem i have is when i click on a link in admin.jsp and navigate to another
-
Two portals connected to one BW system
Hello Do you have any experience or just some information on the solutions when two portals are connected to one BW system? I am just wondering, is it possible? Thanks in advance, Arelis
-
Errore di connessione nell'apertura di file URLLink
ho scaricato Adobe Digital Edition (con id adobe regolarmente registrata e convalidata), ma quando tento di aprire il file che scaricato dall'editore in formato "URLLink" pur trascinandolo all'interno della finestra di A.D.E. (come suggerito da istru
-
How to invoke we service with utl_dbws?
How do you call a web service from utl_dbws?