How to load oracle data into SQL SERVER 2000?
how to load oracle data into SQL SERVER 2000.
IS THERE ANY UTILITY AVAILABLE?
Not a concern for an Oracle forum.
Als no need for SHOUTING.
Conventional solutions are
- dump the data to a csv file and load it in Mickeysoft SQL server
- use Oracle Heterogeneous services
- use Mickeysoft DTS
Whatever you prefer.
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
Does SSIS guarantee that it loads the data into SQL Server in the same order as it is in Excel
Hi,
We are trying to load several Excel files into SQL Server SSIS and we need to save the data in the database in the same order as it is in Excel..
My question is, Does SSIS guarantee that it loads the data into SQL Server in the same order as it is in Excel. If so, we will add a sequence to ensure we have the order.
Please advise.
Thanks & Regards,
DhanumjayThanks for your response.
If it is one file then we can add an index column, but we have to load hundreds of files.
How adding an index/key column to the table works unless SSIS picks and loads the data in the table in the same order as it is in Excel?
Just to explain my question better,
If excel has three rows {a,b},{c,d},{e,f}, does SSIS ensure it loads the data in the same order in a table.
Thanks. -
How to compare 2 dates in SQL Server 2000 DB using Java?
How do you compare 2 dates in SQL Server 2000 DB using Java?
Let's say we have two fields: Date Reported and Target Finish Date.
Date Reported is 09-10-2004 09:55:55: PM
Target Finish Date is 09-12-2004 11:59:59: PM
What i want to happen is i want to convert both dates to days and get the difference of the two.
can SQL Server 2000 DB do this?it doesnt wrk.
ok here's what i did:
iv tested a simple code for this case.
I created a table name tblDate which has 3 columns namely date_ID, date_From (datatype datetime), date_To (datatype datetime).
I inserted 1 row: date_ID has the value 1, date_From has the value 10/22/2004, and date_To has the value 10/24/2004.
i run the java code below:
int days = 0;
String query = "SELECT date_From, date_To cast(date_From-date_To AS int) AS Diff FROM tblZoo WHERE date_ID = '1'";
try
DBConnect db = new DBConnect();
db.openCon();
ResultSet rs = db.execute(query);
while(rs.next())
days = rs.getInt("Diff");
db.closeCon();
catch (Exception ex)
System.out.println("Error on Execution: " + ex);
return days;___________
an error occurred: Error on Execution: java.lang.nullpointerexception -
Putting resultset Data into sql server 2000
hello,
I have some trouble with putting my Date into the sql server. I'm very confused about this and gives me a lot of headage!
This is my code:
public void GenerateAlarms(StringBuffer alarmsLeft) throws Exception
try
statement = conn.createStatement();
rsGenerate = statement.executeQuery("SELECT event_it, oplcl_id, host_id, app_id, sev_id, alarm_id,desc_id, prodef_id, alert_id, date_time FROM ScenarioFive");
int saveCheck;
sqlInsert.setInt(1, 1);
sqlInsert.setDate(2, rsGenerate.getDate(10));
sqlInsert.setInt(3, 1);
sqlInsert.setInt(4, 1);
sqlInsert.setInt(5, 2);
sqlInsert.setInt(6, 0);
sqlInsert.setInt(7, 2);
sqlInsert.setInt(8, 1);
sqlInsert.setInt(9, 2);
sqlInsert.setInt(10, 4);
saveCheck = sqlInsert.executeUpdate();
if (saveCheck == 0)
conn.rollback();
System.out.println("Alarms not Updated in new Database");
else
conn.commit();
rs.deleteRow();
catch (Exception e)
System.err.println("Got an exception! ");
System.err.println(e.getMessage());
System.out.println("Foult at insert alarms");
The error is Got an exception!
[Microsoft][ODBC Driver Manager] Invalid cursor state
OF course i have a Connection function to the database, I will give this just in case (this one is oke I think)
public void connection()throws Exception
String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
String url = "jdbc:odbc:MSSQL-Storm1";
String username = "sqldemo";
String password = "sqldemo";
Class.forName(driver);
//Establish the conCection to the database.
conn = DriverManager.getConnection(url, password, username);
System.out.println("We are got Connected to STORM: Sql Server Port:1433");
statement = conn.createStatement();
conn.setAutoCommit(false);
Thanks a lot!!Not a concern for an Oracle forum.
Als no need for SHOUTING.
Conventional solutions are
- dump the data to a csv file and load it in Mickeysoft SQL server
- use Oracle Heterogeneous services
- use Mickeysoft DTS
Whatever you prefer.
Sybrand Bakker
Senior Oracle DBA -
HOW TO INSERT DATA INTO SQL SERVER FROM MS ACCESS TABLE??
NEED TO INSERT DATA INTO SQL SERVER FROM MS ACCESS TABLE.
this is another method
http://www.mssqltips.com/sqlservertip/2484/import-data-from-microsoft-access-to-sql-server/
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Data Import from Oracle Dump to SQL Server(2000/2005)
Hi Friends,
I'm using Oracle 10g.
I've a scenario.
I've Oracle Dump file. Now i would like import in SQL Server(2000/2005).
Can any one suggest me how to do this?
Any idea,clue will be highly appreciated.I think you will need to import the data into SQL Server from an ASCII flat file using SQL Server DTS if avialable. You can use SQL Plus to extract the data outof Oracle into comma delimited flat files and then use SQL Server DTS load into the SQL Server database.
-
How to load image data into cube?? Is it possible??
How to load image data into cube?? Is it possible??
Any sugession??Hi Andre,
Document will be of ASCII characters right?? but image data will be in binary format. as per database concept it is stored as binary large object. But in datawarehousing the back end is also going to be some database such as Oracle or other DBs.
which can take blob's. so it would be possible to store the binary data.
If any one has faced this situation can reply.to this ques.
can post the step to load image(jpg/bmp or any image format) data in to info cube??
hi andre if u have done loading image data as you say.pls reply me if you have the steps with you.
thanks Andre -
Step- by- Step on How to Load Excel data into Crystal Reports?
Hi Friends,
Can anyone send me a Step- by- Step on How to Load Excel data into Crystal Reports? Pls help me. Thanks in Advance.
VijayIt's also important to 'prep' the excel file prior to connecting to it.
Give the data tab a meaningful name
Make sure the column headers are unique and that every column has a header
Delete any blank tabs
If you have trouble with Excel changing the data type of a field (say, a social security number you want to be a string value rather than a number so you don't lose leading zero) an alternative would be to save the spreadsheet file as a CSV, create a schema.ini to specify the data types for each column (example below) and use the same steps to connect except instead of choosing Excel 8.0, scroll to the bottom and choose Text. You have to make sure the CSV file is in the same folder as the schema.ini file that defines the columns.
Schema.ini example:
200912PUSD.csv
ColNameHeader=True
Format=CSVDelimited
MaxScanRows=25
CharacterSet=OEM
Col1=SSN Char Width 9
Col2=LAST_NM Char Width 25
Col3=FIRST_NM Char Width 25
Col4=DOB Date
Col5=STDNT_ID Char Width 10
Col6=SORTKEY Char Width 10
Col7=SCHOOL_NM Char Width 30
Col8=OTHER_ID Integer
Col9=GRADE Char Width 2
The filename in the first line needs to have the [] brackets around it, but I couldn't get it to display in this forum correctly.
Edited by: Eric Petersen on Jan 27, 2010 9:40 AM -
Importing Data into Sql Server 2012 from Excel Data
Hi,
I got errors like this when i am doing import data into sql server from excel Data. Can you please help us?
- Executing (Error)
Messages
Error 0xc020901c: Data Flow Task 1: There was an error with Source - demotable$.Outputs[Excel Source Output].Columns[Comment] on Source - demotable$.Outputs[Excel Source Output]. The column status returned was: "Text was truncated or one
or more characters had no match in the target code page.".
(SQL Server Import and Export Wizard)
Error 0xc020902a: Data Flow Task 1: The "Source - demotable$.Outputs[Excel Source Output].Columns[Comment]" failed because truncation occurred, and the truncation row disposition on "Source - demotable$.Outputs[Excel Source Output].Columns[Comment]"
specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
(SQL Server Import and Export Wizard)
Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Source - demotable$ returned error code 0xC020902A. The component returned a failure code when the pipeline engine called PrimeOutput().
The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)Are you attempting to import into a newly made table or into an existing table? It looks like it's trying to insert data where it cannot be inserted (invalid column or lack of data size in your column).
Try the following:
1). In your excel sheet, highlight the whole sheet and make sure the cells are in 'text' form and try re-importing
2). save the document as ms dos TEXT and import as a text document.
3). double check your columns are correct for the data, for example if you have a column that has a string of 100 characters and your column is 'NvarChar(90)' - that might cause the error? Or just correct data type in your column
3). If that doesn't work and you're inserting into a new table, try importing it as string first and writing a query to insert columns that should be float/integer or whatever. You may want to convert float texts to a 'bigint' first rather than string
> float as that can cause problems if I remember correctly. -
Reg. Migrating data from SQL Server 2000 to Oracle
Hi All,
I need to migrate a same data from SQL Server 2000 to Oracle 9i.In sql server Export option is there, but the problem is some 30 tables have More than one LONG datatype column in a table. That's why oracle not allow to import.
Could you guys find any tool for the same.
Please do the needful.
Thanks & Regards,
Prathaphi dermot,
it's very urgent now. Can you please give any solution for this.
and also i tried the SQL developer tool. But i got an below error,
Error starting at line 2 in command:
CREATE USER dbo_testdatalatest IDENTIFIED BY dbo_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
Error at Command Line:2 Column:45
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 3 in command:
GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO dbo_testdatalatest
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 4 in command:
CREATE USER epm_testdatalatest IDENTIFIED BY epm_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
Error at Command Line:4 Column:45
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 5 in command:
GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO epm_testdatalatest
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 6 in command:
CREATE USER lportal_testdatalatest IDENTIFIED BY lportal_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
Error at Command Line:6 Column:49
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 7 in command:
GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO lportal_testdatalatest
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 8 in command:
connect dbo_testdatalatest/dbo_testdatalatest;
Error report:
Connection Failed
Commit
Regards,
Prathap.R -
How to save image files into SQL Server?
Hello, All:
Does anyone know how to save image files into SQL Server? Does the file type have to be changed first?? Please help me! Thank you!You need a BLOB field (usually)... Then you can check this tutorial out:
http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/exercises/BLOBPut/
There are other exercises on that site, including one on reading the images back. -
Can anyone point me to a good source that can explain the advantages of using Oracle 8i vs SQL Server 2000 for Data Warehousing and business intelligence as well as for running a ebusiness ?
We have a client who is interested in SQL sever and we are an Oracle shop.
Thanks in advance.Hi,
I have the same question. But I am searching on the net for a council or vendor who gives the services for comparing different products. It is available for CRM, but i am not sure about databases.
Another I think If we can ask the client about why he has chosed sql server then we will be clear.
I see the only advantage of sql server 2000 is to have the olap, dts in built with the sql server product.
Any let me also know please. Thanks. -
Migrating Oracle Databases to SQL Server 2000
Hi friends,
I wanna to Migrating Oracle Databases to SQL Server 2000.
But i don have idea abt that.
could u plz help how to start and procced.
Neeraj GoelHi Neeraj,
This forum is dedicated to Migrating from SQLServer and other third party databases to Oracle.
Not the other way round.
The Oracle Migration Workbench facilitates migrations to Oracle.
Regards,
Dermot. -
Junk arabic details while transfer arabic data from sql server 2000 to orac
We are facing problems to view arabic details in oracle which is transfered from sql server 2000 .
In oracle database we are using charecterset is UTF8.
NLS_CHARACTERSET :UTF8 and NLS_NCHAR_CHARACTERSET:UTF8
Sqlr server collation is SQL_Latin1_General_CP1256_CI_AS.
we are using stored procedure for transfering data from sql server 2000 to oracle.
And i am able to view some arbic details which is not transfered from sql server 2000.
I thing some configuration i need to change in sql server.
Can any one help me out from this issue?I know that this is not the correct forum to ask this question.
If someone knows this issue please help me.
We were using to import from another intermediate sqlserver and it was successfull.
And more over i cannot change anything in oracle database which is live.
The issue is we are using one intermediate sqlserver for transfering the data to oracle apart from main sqlserver.
now we want to stop the intermediate and need to transfer from main sqlserver to oracle Db.
i guess , i need to change some configuration in main sql server.
Main sql server and intermediate have the same collation.
Could you please help me out from this problem? -
How to use OEM to moniter sql server 2000
Hi,
I need to learn How to use OEM to moniter sql server 2000.
Can anyone help me and give me some website or documents
to read?
So I can learn to do this job.
Thanks.See Note 115302.1 in Metalink.oracle.com
in how to use OEM Diagnostic pack addon for SQL Server
Or search for
oem "user events"
to build your own monitor script.
Maybe you are looking for
-
No. of tables in Oracle Databsae
how many number of tables to be created in the oracle database? and how many rows to be created in one table?
-
BPEL JMS Adpater to publish message to B2B Internal Delivery Channel
We are planning to use the JMS adapter in BPEL to publish message to B2B Internal Delivery channels. But during the JMS Adapter configuration it doesnt list the B2B Internal queues (IP_OUT_QUEUE and IP_IN_QUEUE) in the list of queues. However for AQ
-
Problem on converting between different variable types
I have a Basket Class and a Customer Class The following is the way I declare the variable "basketID" in the type of Basket. How to initialise this variable in this case? public class Customer{ private Basket basketID; public Customer() basketID =
-
When NYTimes come ups, I cannot click into the Log On feature. But it happens with other sites. Also, once I have read down to any point in an article, I cannot go back up. there is a certain amount of "frozenness" about my current version of Firefox
-
Delay Designer Presets Missing
I was going to play around with the Delay Designer Effect and saw that i have no presets. Anyone know where and how I can get them?