Plz help to to transfer excel or acess data to Oracle 10g database
Plz help me to transfer excel or acess data to Oracle 10g database.
I have excel and acess sheet data here i wanna transfer it to oracle database. Plz guide me how to this
Message was edited by:
user582212
There are several ways, such as ODBC or migration workbench, which is also mentioned in the current article on sqldeveloper on OTN, here's the link. If you use this forum's search function, you should find several threads regarding this topic.
C.
Message was edited by:
cd
Similar Messages
-
Errors in impdp command on oracle 10g database-urget help needed
Hi,
could you plz help me to solve below errors which are coming while doing import with impdp command in oracle 10g 10.1.0.4.0 os: Red Hat Enterprise Linux ES release 4
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Job "DCA"."SYS_IMPORT_SCHEMA_01" stopped due to fatal error at 15:31
i tried to restart job but the following errors coming
UDI-00008: operation generated ORACLE error 39078
ORA-39078: unable to dequeue message for agent KUPC$A_1_20081111155728 from queue "KUPC$C_1_20081111155728"
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2356
ORA-06512: at "SYS.DBMS_DATAPUMP", line 3261
ORA-06512: at line 1
thanks in advanceCan you check Metalink Note 376022.1? Your STREAMS_POOL_SIZE parameter may be too small.
If you don't have Metalink access, try this :
sql> alter system set STREAMS_POOL_SIZE=100M scope=spfile;
sql> shutdown immediate
sql> startup
Note : the Portal Applications forum may not be the appropriate forum for this datapump issue. Try one of the database forums as you'll have a wider audience there. -
Need help, implementing streams between oracle 10g databases
Hello all.
Please help me, and give me instruction if any body implement streams between databases (Oracle 10g)
I have implemented streams between schema table on (10g) and result was success.
Firstly I want to know some thing, such as:
1) Is it possible make streams with conditions, (make only DML or DDL i know) but make DML and not DELETE operation, just INSERT and UPDATE operations on the table?
2) After changes was applied on target database, can I delete that records which copied (replicated) on source database?
I have 2 databases and one of them is for archive purpose (I want use it as target database for streams). Other one is PROD database, applications make DML operation.
I) record insert with null status
II) processing (status 1)
III) if success (status 2) unsuccess (status 3)
For now, I have cron script on (Linux host) and in this script has PLSQL anonymous block and it works couple times during the day. This script works as archive.
My task is: Make it via Oracle streams.
Thank you beforehand.For conditions on the type of operation (Insert) check in the doc after apply handler and you can associate what ever code and conditions you want. You can also choose to work with a subset rules but there are some restriction as no lobs :
[http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_rules.htm#insertedID7|http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_rules.htm#insertedID7]
For a complete list of the restrictions :
[http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/ap_restrictions.htm#i1012965|http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/ap_restrictions.htm#i1012965] -
Help on Migration from DB2 version 8.1 to Oracle 10g
Hi All
We have one requirement of migrating one Mainframe database to Oracle 10g. the DB version is DB2 8.1 on Z OS. We are thinking of using Oracle Migration workbench. Can someome help me know if this is supported by OMWB tool or not. I checked in oracle site, they have mentioned some details about V4R5. Could not conclude. Please confirm this. Also let me know if there is any tool that we can use or we have to go manually. Any pointrs would be highly appreciated.
Thanks,
PrashantOMWB nor its follow up product SQL Developer Migration workbench support DB2 z/OS migrations. You have to do them "manually".
For a manual migration you might use an Oracle Gateway which allows you to use an Oracle database link to the Db database and you can then use the gateway to copy the data from Db2 to Oracle. Another alternative would be to unload the DB2 data into an ascii file and to load it into the Oracle database using SQL*Loader. You might also use Golden Gate which is commonly used to replicate data between Oracle and DB2 - but it allows you also to use it as a migration utility.
There are also Oracle partners that can assist you with the migration - please have a look at:
http://www.oracle.com/technetwork/database/migration/index-084442.html -
Strange problem. PLZ help!! Servlet+Excel
Hello,
I have a problem downloading excel files, I generate a excel file in the server using jakarta, i download the file and when i open it, it tells me that "File error: file may have been lost", but i can open it .
My code:
res.setContentType("application/vnd.ms-excel");
res.addHeader("Content-Disposition",
"attachment;filename="+fileName+".xls");
ServletOutputStream out = res.getOutputStream();
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("sheet1");
HSSFRow headerRow = sheet.createRow((short) 0);
sheet.addMergedRegion(new Region(0, (short) 0, 2,
(short) 10));
HSSFCell headerCell =
headerRow.createCell((short) 0);
//add the date to the header cell
headerCell.setCellValue("The Bowling Score");
wb.write(out);
out.flush();
res.flushBuffer();
Anyone can help me?
ThanksI had a similar porblem....
I got some help from...http://www.javaworld.com/javaworld/jw-10-2006/jw-1019-xmlexcel.html?page=1...
This is my code in servlet...
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet spreadSheet = wb.createSheet("Users");
spreadSheet.setColumnWidth((short) 0, (short) (256 * 25));
spreadSheet.setColumnWidth((short) 1, (short) (256 * 25));
// Creating Rows
HSSFRow row = spreadSheet.createRow(0);
HSSFCell cell = row.createCell((short) 1);
cell.setCellValue("Year 2005");
cell = row.createCell((short) 2);
cell.setCellValue("Year 2004");
HSSFRow row1 = spreadSheet.createRow(1);
HSSFCellStyle cellStyle = wb.createCellStyle();
cellStyle.setBorderRight(HSSFCellStyle.BORDER_MEDIUM);
cellStyle.setBorderTop(HSSFCellStyle.BORDER_MEDIUM);
cellStyle.setBorderLeft(HSSFCellStyle.BORDER_MEDIUM);
cellStyle.setBorderBottom(HSSFCellStyle.BORDER_MEDIUM);
cell = row1.createCell((short) 0);
cell.setCellValue("Revenue ($)");
cell = row1.createCell((short) 1);
cell.setCellValue("25656");
cell = row1.createCell((short) 2);
cell.setCellValue("15457");
FileOutputStream output = new FileOutputStream(new File("/tmp/Users.xls"));
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "attachment;filename=Users.xls");
ServletOutputStream out = response.getOutputStream();
wb.write(output);
output.flush();
output.close();
forward = null;
In firefox i get the download dialog box but not able to open in from there,i need to save it and then open. In IE i dont get the dialog box instead the excell open inside the browser......Please help me to open a excel sheet onclick on a link "Export to excel" in jsp......
Thanks in advance... -
Help needed with variable - trying to get data from Oracle using linked svr
Sorry if I posted this in the wrong forum - I just didn't know where to post it.
I'm trying to write a simple stored procedure to get data from an oracle database via a linked server in SQL Enterprise manager. I have no idea how to pass a variable to oracle.
Here's how I would get the variable in SQL:
declare @maxkey INTEGER
select @maxkey= MAX(keyfield) from [server].Data_Warehouse.dbo.mytable
select * from [server].Data_Warehouse.dbo.mydetailtable where keyfield=@maxkey
the select statement I need to do in oracle would use that variable like this:
select * from OPENQUERY(OracleLinkedServer,'select
* from ORACLEDB.TABLE where keyfield > @maxkey')
and I get this message: OLE DB provider "OraOLEDB.Oracle" for linked server "OracleLinkedServer" returned message "ORA-00936: missing expression".
I realize that I can't pass the @maxkey variable to oracle - so how do I accomplish this?Please refer the example in this link which deals with Oracle date format.
You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804] -
Oracle 10g Database startup problem Please help
i am trying to start database but getting error;
SQL> startup
ORACLE instance started.
Total System Global Area 281018368 bytes
Fixed Size 788776 bytes
Variable Size 229373656 bytes
Database Buffers 50331648 bytes
Redo Buffers 524288 bytes
Database mounted.
ORA-16038: log 2 sequence# 44103 cannot be archived
ORA-19809: limit exceeded for recovery files
ORA-00312: online log 2 thread 1: 'D:\ORADATA\ASDB\REDO02.LOG'
Please guide and help
Thanks,
Waheed.The error stack is interpreted as follows:
ORA-16038: log string sequence# string cannot be archived
Cause: An attempt was made to archive the named file, but the file could not be archived. Examine the secondary error messages to determine the cause of the error.
Action: No action is required
ORA-19809: limit exceeded for recovery files
Cause: The limit for recovery files specified by the DB_RECOVERY_FILE_DEST_SIZE was exceeded.
Action: The error is accompanied by 19804. See message 19804 for further details.
ORA-19804: cannot reclaim string bytes disk space from string limit
Cause: Oracle cannot reclaim disk space of specified bytes from the DB_RECOVERY_FILE_DEST_SIZE limit.
Action: There are five possible solutions: 1) Take frequent backup of recovery area using RMAN. 2) Consider changing RMAN retention policy. 3) Consider changing RMAN archivelog deletion policy. 4) Add disk space and increase DB_RECOVERY_FILE_DEST_SIZE. 5) Delete files from recovery area using RMAN.
ORA-00312: online log string thread string: 'string'
Cause: This message reports the filename for details of another message.
Action: Other messages will accompany this message. See the associated messages for the appropriate action to take.
DB_RECOVERY_FILE_DEST_SIZE specifies (in bytes) the hard limit on the total space to be used by target database recovery files created in the flash recovery area. You should increase this value.
On the other hand, out from the context I guessed it is a 10gRx database, but you should specify this on your thread, as well as specify os details.
~ Madrid -
Plz help using ms access as database,i want to create a login page in java
hye frnz... plz help me m new to java
m using ms access as database and try to create a login page where user type username and pw
i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
now there is an error class not found exception sun:jdbc...... error
plz help me i had stuck frm 4 days */
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class Login extends JFrame
//Component Declarations
JLabel jlb1,jlb2;
JTextField jtf1;
JPasswordField jpf1;
JButton jb1,jb2;
//Constructor
Login()
//frame settings
setTitle("Login Dialog");
setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
Dimension d= Toolkit.getDefaultToolkit().getScreenSize();
setBounds(d.width/2-175,d.height/2-100,350,200);
gbc.insets=new Insets(7,7,7,7);
//adding components
jlb1=new JLabel("User ID");
gbc.gridx=0;
gbc.gridy=0;
add(jlb1,gbc);
jlb2=new JLabel("Password");
gbc.gridx=0;
gbc.gridy=1;
add(jlb2,gbc);
jtf1=new JTextField(10);
gbc.gridx=1;
gbc.gridy=0;
add(jtf1,gbc);
jpf1=new JPasswordField(10);
gbc.gridx=1;
gbc.gridy=1;
add(jpf1,gbc);
jb1=new JButton("Login");
gbc.gridx=0;
gbc.gridy=2;
add(jb1,gbc);
jb1.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
Connection conn=null;
Statement stmt=null;
boolean found=false;
try
Class.forName("sun.jdbc.driver.JdbcOdbcDriver");
String dataSourceName = "Inventory";
String dbURL = "jdbc:odbc:" + dataSourceName;
conn=DriverManager.getConnection(dbURL, "","");
stmt=conn.createStatement();
ResultSet rst=stmt.executeQuery("Select * from User");
System.out.println(jtf1.getText()+"/t"+jpf1.getPassword());
while(rst.next())
System.out.println( rst.getString(1) +"/t"+ rst.getString(2));
if(jtf1.getText().equals(rst.getString(1).trim()) && new String(jpf1.getPassword()).equals(rst.getString(2).trim()))
found=true;
rst.close();
dispose();
MainWindow mw= new MainWindow(); /*created min window object created to be opend after login but not working*/
break;
rst.close();
stmt.close();
conn.close();
catch(ClassNotFoundException e){System.out.print(e);}
catch(Exception e){System.out.print(e);}
if(found==false) /*this portion is executing and dialog box appears invalid name and pw with class not found exception sun:jdbc.......on console */
JOptionPane.showMessageDialog(null,"Invalid username or password",
"Error Message",JOptionPane.ERROR_MESSAGE);
jb2=new JButton("Clear");
gbc.gridx=1;
gbc.gridy=2;
add(jb2,gbc);
jb2.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
jtf1.setText("");
jpf1.setText("");
jtf1.requestFocus();
setSize(350,200);
setVisible(true);
jtf1.requestFocus();
public static void main(String args[])
Login l=new Login();
Edited by: 795772 on Sep 19, 2010 4:44 AM795772 wrote:
hye frnz... plz help me m new to java
m using ms access as database and try to create a login page where user type username and pw
i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
now there is an error class not found exception sun:jdbc...... error
plz help me i had stuck frm 4 days */
<snip>The subject of this forum is Oracle databases. How does your problem relate to that subject?
Two bits of advice:
1) Make sure you ask questions in a forum related to your problem.
2) If you want to be taken seriously as a professional, drop the MS IM Speak and use the language of the forum. In this forum it is English, which is successfully used by many people for whom English is far from their native language. -
Plz, Help me to Install IDES ECC5.0
Sorry, If this section is not relation Installation.
Plz, Help me to Install IDES ECC5.0
I install Oracle and Central database is successful
and after that I have error log like this.
Please Help me, How I have to do.
Thank you.
ERROR 2017-10-03 01:52:31
MSC-01015 Process finished with error(s), check log file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPAPPL1.log
ERROR 2017-10-03 01:52:31
MSC-01015 Process finished with error(s), check log file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPSSEXC.log
ERROR 2017-10-03 01:52:31
MSC-01015 Process finished with error(s), check log file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPAPPL0.log
ERROR 2017-10-03 01:53:01
MSC-01015 Process finished with error(s), check log file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPAPPL2.log
ERROR 2017-10-03 01:53:01
MSC-01015 Process finished with error(s), check log file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPSDIC.logI'm sorry. I forget post detail of log. But now I passed that error by reinstallation again. I think that because I hurry to finish and I observ the status of intallation is silent.
And now I have new problems please help me agian. plz see my detail log. thank you.
ERROR 2017-10-04 03:13:21
MSC-01015 Process finished with error(s), check log file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPCLUST.log
*------>
DbSl Trace: ORA-1403 when accessing table SAPUSER
(DB) INFO: connected to DB
(DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
(TSK) ERROR: file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPCLUST.TSK.bck already seems to exist
a previous run may not have been finished cleanly
file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPCLUST.TSK possibly corrupted
=================
ERROR 2017-10-04 03:15:21
MSC-01015 Process finished with error(s), check log file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPPOOL.log
DbSl Trace: ORA-1403 when accessing table SAPUSER
(DB) INFO: connected to DB
(DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
(TSK) ERROR: file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPPOOL.TSK.bck already seems to exist
a previous run may not have been finished cleanly
file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPPOOL.TSK possibly corrupted
=================
ERROR 2017-10-04 03:15:51
MSC-01015 Process finished with error(s), check log file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPSDIC.log
(DB) INFO: connected to DB
(DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
(TSK) ERROR: file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPSDIC.TSK.bck already seems to exist
a previous run may not have been finished cleanly
file C:Program Filessapinst_instdirECC04SR1WEBAS_ABAP_ORA_NUCDB/SAPSDIC.TSK possibly corrupted -
ALV codeing...plz help urgent
Hi Experts,
I am new to Abap.i hav a simple spec but i need to do it in ALV so plz help me.
Sales organization LIKP VKORG
Shipping point/receiving pt LIKP VSTEL
Delivery LIKP VBELN
Delivery date LIKP LFDAT
Delivery type LIKP LFART
Pland gds mvmnt date LIKP WADAT
Actual gds mvmet date LIKP WADAT_IST
Ship-to party LIKP KUNNR
Sold-to party LIKP KUNAG
Posting Status Customized fields ZCHK
If LIKP-WADAT = WADAT_IST, then print "OK", else " Posting Error"
this is a small requirment.plz help me in this it should be in ALV format.
correct answers will will given full points.
Thnaks & Regards
Sunita.
PLz Experts plz help me.Hi,
First get the a data into internal table first then fill the field catalog and give it to FM.
For futher reference <b>Goto to se80 and givepackage slis and see the programs in
slis.</b>type-pools: slis.
data:
i_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat LIKE LINE OF i_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'MATNR'.----
> internal-table fieldaname
wa_fieldcat-tabname = 'I_MARA'.-------> Internal table name
wa_fieldcat-reptext_ddic = 'Material no.'.
wa_fieldcat-outputlen = '18'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'ERSDA'.
wa_fieldcat-tabname = 'I_MARA'.
wa_fieldcat-reptext_ddic = 'Creation date'.
wa_fieldcat-outputlen = '10'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'ERNAM'.
wa_fieldcat-tabname = 'I_MARA'.
wa_fieldcat-reptext_ddic = 'Name of Person'.
wa_fieldcat-outputlen = '10'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'LAEDA'.
wa_fieldcat-tabname = 'I_MARA'.
wa_fieldcat-reptext_ddic = ' Last Change'.
wa_fieldcat-outputlen = '10'.
APPEND wa_fieldcat TO i_fieldcat.
ENDFORM. " prepare_fieldcatalog
*& Form display_alv
text
--> p1 text
<-- p2 text
FORM display_alv .
Call ABAP List Viewer (ALV)
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
it_fieldcat = i_fieldcat----->fieldcat name
tables
t_outtab = i_mara.------> internal table
ENDFORM. " display_alv
<b> plzzzz reward points if it is useful.</b> -
Oracle to Mysql character set conversion problem!!! PLZ HELP
Hi Experts,
I have created a database link from Oracle 10g to Mysql 5.
I have installed Oracle Gateway 11g for this purpose.
When i retreive the data from sql plus the text is displayed as question marks.
Oracle 10g Database character set is WE8MSWIN1252
Mysql character set --->latin1
Character set of ODBC connector for mysql is latin7
Character set in the parameter file of HS folder is WE8MSWIN1252When i retrieve data from sql developer the text is fine(as i think it directly takes the character set of target) but
when i login from sqlplus i get question marks!
Appreciate your help,
regardsthank you for replying damorgan,
my previous two threads in the "heterogeneous Connectivity" forum were for different issues, one was to enquire as to how i could connect from oracle to mysql(which i have marked as answered), the other is for error when i get when i tried accessing data(which i am still facing on my office machine ).
I followed the steps from these two threads and was able to successfully connect to mysql on my personal PC at home, but faced some problem with text not displayed so i created this thread.
I had created another thread similar to this in the globalisation support as i was facing issue with the character sets in a heterogenous setup, so wasen't clear as to which forum would be suitable for this issue.
My apologies to everyone if this has offended you. -
How to export oracle 10g data into parts (in excel or csv or txt)
is there any methods to export the data from oracle 10g in the form of excel or csc or txt. i already downloaded the sql developer tool but it only exports the data of upto one lakh rows ,but i have two tables of more than 3 lakh and 10 lakh rows respectively.for this i used where command to break the file through sql developer but that didnt work
plz help me out if any thing possible
i need to again import this data into microsoft sql if there is any direct method plz let me knowI wrote my own pl/sql tool to make csv upload/download tool, but the learning process is a bit painful and long, especially for beginner like me (end up using dynamic sql package because we pass in table name as parameter).
For your purpose, maybe the best way is to download a plug-in for Excel that can connect to your Oracle DB. There are many such products so you need to google around. For me, no need right now.
Another option is to use a commercial tool like Toad, or other products from same company. -
Oracle 10g ODBC driver with Windows 7 32 bit connecting to Excel
Hi Everyone,
I'm having an issue connecting to our oracle 10g database (64 bit system) from a 32 bit windows 7 installation running excel 2010/2007 using odbc drivers. Our excel spreadsheets worked without issue in windows xp.
In windows 7 I have been able to install the odbc driver via the following method:
1. Download the oracle 'basic' client and oracle 'odbc' client from www.oracle.com and extract the contents:
instantclient-basic-win32-10.2.0.3-20061115
instantclient-odbc-win32-10.2.0.3-20061115
2. Create a folder 'oracle' and place the instantclient_10_2 folder inside.
3. Ensure all the basic and odbc files reside in this folder.
4. Create a 'network' folder within instantclient_10_2
5. Create an 'admin' folder within 'network'
6. Create sqlnet.ora and tnsnames.ora files within the 'admin' folder:
7. Run 'obdc_install' within the instantclient_10_2 folder
8. Download and run the oracle odbc driver exe file from www.oracle.com (ORA10203.exe)
9. Go to Control Panel -> Administrative Tools -> Data Sources and create a new System DN
This allows excel spreadsheets connecting ONLY to oracle to function.
Unfortunately some of our spreadsheets connect to both a MySQL database as well as oracle. Spreadsheets connecting only to MySQL also function correctly, however, as soon as the vb associated with a spreadsheet includes a mysql call followed by an oracle call the spreadsheets fail. In Excel 2007 excel crashes completely everytime. In Excel 2010 the mysql data is generated, then when the script hits to oracle odbc connection there is a long pause, the oracle ODBC driver connect pops up requesting a username/password (this didn't happen in xp), then the data source selection pops up, then the username/password connect screen pops up again, and finally it fails with a runtime error '1004' General ODBC error.
If you look at the VB script it's failing at the Refresh BackgroundQuery statement in the ODBC connection block:
With Worksheets("Oracle1").QueryTables.Add(Connection:= _
"ODBC;DSN=Oracle_ODBC;UID=user;PWD=password;SERVER=ORACLE_LINUX;", _
Destination:=Worksheets("Oracle1").Range("A1"))
.CommandText = strSql
.Name = "Oracle1_data"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlOverwriteCells
.SavePassword = True
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.PreserveColumnInfo = True
.Refresh BackgroundQuery:=False
End With
Does anyone know how to get around this? It's very important!!
Also if you try to edit the oracle ODBC connections in Control Panels -> Administrative Tools -> Data Sources, ODBC crashes 95% of the time.
Advice greatly appreciated!!Well, here's what I'd check anyway..
1) get Process Explorer from http://sysinternals.com
2) make a mysql connection, get a list of dll's loaded (include the location and version columns in the lower pane output)
3) close that, then make an ora odbc connection, get a list of dlls.
4) close that, then make a mysql connection followed by an ora odbc connection, get a list of dlls
5) compare the lists of loaded dlls. In particular, the difference between #3 and #4, is there a dll dependency that gets loaded by oracle's odbc that comes from a different location when you've opened a mysql connection first?
May or may not help, but might turn up a difference to help point you in a direction.
Greg -
Instant Client Connection Problem - Excel 2007 to Oracle 10g
Dear users,
I would some help to connect Excel to Oracle.
I am using Excel 2007 (32-bit) on Windows Vista Enterprise 64-bit. I want to connect to an Oracle 10g database through our local network using ODBC. I need to fetch some data once into an excel sheet.
There are no firewall issues or connection issues between my current machine , as I can connect from my machine, using SQL developer as a local client to the Oracle Database which is on another machine on the network.
I tried to make an ODBC connection but Oracle is not listed as a driver.
I beleive ODBC is the best way to do this, but please correct me if I am wrong.
It is an Oracle 10G database.
I downloaded instantclient-basiclite-windows.x64-11.2.0.2.0.zip a
I also downloaded the extra ODBC components: *Instant Client Package - ODBC: Additional libraries for enabling ODBC applications.
I unzipped both in a folder called C:\instantclient_11_2
The system path included that. I checked after rebooting.
I placed my tnsnames.ora (which I copied from the server) in that folder.
I got ti from the server : D:\Oracle\Ora10gR2DB\network\admin\tnsnames.ora
I ran the exe "odbc_install" and It told me the ODBC was intalled successfully.
When I went the control panel, administrative tools, ODBC
In the user dsn tab
I added a new entry. I chose the Oracle driver (previously it was not in the list)
Used the following values
Data Source name: OracleL
Description 123
TNS Service NAme: I chose fro ma drop down menu our prod environment. (There are two entries with the production name, one in caps and the other in lowercase)
Userid: my username
I tried Test the connection and got this:
Unable to Connect
SQlState=S1000
[Oracle][ODBC][Ora]ORA-12545: Connect failed because target host or object does not exist
Any suggestions please.
Thnaks in advance.
A.
Thanks for all your help, in advance.
Akajohn.
Edited by: user12282521 on May 19, 2011 1:47 PMuser12282521 wrote:
I would some help to connect Excel to Oracle.
I am using Excel 2007 (32-bit)
I downloaded instantclient-basiclite-windows.x64-11.2.0.2.0.zip aIf Excel is 32-bit (2007 is) and Oracle client libraries are 64-bit, it won't work. 32-bit needs 32-bit.
You probably should remove current ic packages and get the 32-bit ones instead.
Start over.
When I went the control panel, administrative tools, ODBCOn Windows x64, to manage 32-bit ODBC DSNs/drivers one needs to run the tool from Windows\SysWoW64\odbcad32.exe. -
How to transfer database tables from sql server 2000 to oracle 10g
Hi,
I have a database and tables in sql server 2000. I have to transfer those data to Oracle 10g. I have installed Oracle warehouse Builder ETL Tool. Using this how can i transfer data. Any help is vary helpful for me.
Thanks in advance.you have to do it using ODBC HS.
1. Configure ODBC connection through gateway.
2. Create a initxxx.ora file with HS config.
restart gateway listener services
3. on target o/s add entries to your tnsnames.ora
4. On your target o/s create a db link
restart listener on target
cheeck this out.Non-Oracle connection through HS issue
Edited by: Darthvader-647181 on Jan 29, 2009 2:02 AM
Maybe you are looking for
-
Error while saving reports in Active Studio.
Hi, I have installed BAM software and I am creating Reports for External Database objects. I am able to create plan which is running fine. But when I create any Report and try to save it, I am getting the following error.. Exception Message: Length c
-
I am using N95-4 8gb, it already built in nokia map with version v1.2. i searched raound on internet, and i found that i am having old version. I tried to download the new version on the Nokia website, but i couldnt download it. It just appeared the
-
List of latest features / topics to learn/cover from SharePoint 2013 developer perspective
Hi, Looking out of a list of latest features / topics to learn/cover on SharePoint 2013 from developer perspective and for which are all things on SharePoint more job openings are there (latest). Kindly provide the same. Regards, developementsharepoi
-
NTDLL.DLL issue with HRBLOCK.EXE application
I am on Windows 7 64-bit and everything works fine. I recently downloaded the 2014 H&R Block Tax program on my new computer and ran the installation. Installed fine. Go to use it and it starts up but fails with a reference to NTDLL.DLL and H&R Blo
-
HR & FINANCE why we are not usning into LO
Hi All......... i have one doubt about LO. that is we are using all applications exept HR & FINANCE. why? can you please clarify this doubt. Thanks, Chal