Importing Access Data into Oracle Forms through Forms 10g
Sirs,
How can i import the data of Access file into Oracle tables.
i have the tables in access of approx 10 how can it be imported in oracle with same data structure.
ThanX in advance
DECLARE
kAccess client_ole2.obj_type;
kdb client_ole2.obj_type;
ktables client_ole2.obj_type;
krec client_ole2.obj_type;
kcurr client_ole2.obj_type;
begin
kaccess:=client_ole2.create_obj('Access.application);
kdb:=client_ole2.invoke_obj(kaccess,'open','D:\acc.mdb');
ktables:=client_ole2.get_obj_property(kdb,'tables',1);
//then process teh data of the table which is at 1 using another
krec:=client_ole2.invoke_obj(ktables,'count');
for s in 1 .. krec
loop
/// code for sinserting the current records data into the oracle tables.
kcurr:=client_ole2.get_obj_type(ktables,'recordset',s);
// then access each filed in kcurr and then insert in oracle table
end loop;
end;
the above code is not tested your can alter any syntatical error if any.
Similar Messages
-
Error while importing java class into oracle forms 10g
Hi
I have generated a web service client using jdeveloper 10g. It consists of complex type methods. I am trying to import the class files using java importer in oracle form 10g. I am able import all of them successfully except one. That one is the main method. Please see the error and suggest me how to overcome this error.
Exception occurred: java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
Thanks in advanceDo you see oracle/jdeveloper listed in "Import Java Classes" when you try to import?
If not, make sure you add C:\DevSuiteHome_1\jdev\lib\jdev.jar to FORMS_BUILDER_CLASSPATH in registry
Also excetion indicates: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
If you typing it - type: oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub -
Error when using SQL Developer to IMPORT Access data into Oracle
Hello,
I am using SQL Develoepr to export Access mdb file into Oracle. When I try to use Tools ---? Migration---> Microsssfot access exported -->
I am getting an error message upon attaching the Access database file, the error states
"Error#40179 - XMLExporter - Methiod'AddFromFile' of object'_References failed. Export did not complete successfully.
What could be the reason for this error please advise.
ThanksHi,
Try searching for:Re: 30EA2 - No Available Databases in Capture step with MS Access Migration
Thread: 30EA2 - No Available Databases in Capture step with MS Access Migration
Posted: Dec 20, 2010 11:04 AM
Also note that copy to oracle - (for just table/column information) is available on right click.
-Turloch
SQLDeveloper team -
Importing excel data into oracle tables
Hello gurus,
Importing excel data into oracle tables..
I know this is the most common question on the thread ...First, i searched the forum, i found bunch of threads with loading data using sqlloader, converting excel into .Txt, tab delimited file, .csv file etc....
Finally i was totally confused in terms how to get this done....
Here is wat i have
- Excel file on local computer.
- i have laod data into dev environment tables(So no risk involved, but want to try something simple)
- Oracle version 11.1.0.7
- Sqlplus and toad (editors)
Here is wat i like to do ....i dont know if its possible
- Without going to unix server can i do everthing on local system by making use of oracle db and sqlplus or toad
SQLLOADER might be one option...but i dont want to go the unix server for placing files and logs and stuff.
Wat will be best and simplest option to do?? and wat format will best to convert from excel into csv, or txt or tab delimited etc.....
If you suggest sqlloader, any code example will be greatly appriciated.
Thank you so much!!!Hi,
user642297 wrote:
Imran,
This is increadible option in toad!!! It works absolutely sweet!! I have toad 9.7 version. IT works great. Thank you so much!!You are welcome :)
Well i have further discussion on this ....this option is great if you doing in staging or development area. What if your doing in prod?? If you automating the sqlloader then how do u do it?? I think we still need to stick with traditional approach of laoding data by making use of SQLLoader right ?? If m wrong please correct me.well, in our case, we do have access to a custom schema in prod where we create the staging table and load the data from datafiles.
try this:
load data
infile 'C:\dest.csv'
into table dest_table
fields terminated by "~" optionally enclosed by '"'
TRAILING NULLCOLS
(name,
owner_nm,
description_column,
UPDT_DT DATE 'MM/DD/YYYY')
{code}
you can get more info about sql loader and your error here:
http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch05.htm
http://www.allinterview.com/showanswers/53766.html
And one more quick question ...i found an example of control file , in that i see .dat format file. Is it a data file ?? can i try that option ?? But in excel i didnt see to convert the .dat format file.
Any thoughts ???
It is same as a delimiter text file.
steps to create a .dat file (from a excel file):
1. Insert a column between two columns and populate it with the delimiter (in our case, it is ~)
2. Save the file as unicode text.
3. Open the file in text editor and remove all the tabs (find an replace with blank)
4. Save the file as "DEST.dat". Select encoding as UTF-8 while saving.
5. Your .dat file is ready.
Regards
Imran
Edited by: Imran Soudagar on Apr 22, 2010 10:22 PM -
How to import csv data into Oracle using c#
Hello,
How to import csv data into Oracle using c #. Where data to be imported 3GB in size and number of rows 7512263. I've managed to import csv data into Oracle, but the time it takes about 1 hour. How to speed up the time it takes to import csv data into oracle. Thank you.
This is my code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Threading;
using System.Text.RegularExpressions;
using System.IO;
using FileHelpers;
using System.Data.OracleClient;
namespace sqlloader
class Program
static void Main(string[] args)
int jum;
int i;
bool isFirstLine = false;
FileHelperEngine engine = new FileHelperEngine(typeof(XL_XDR));
//Connect To Database
string constr = "Data Source=(DESCRIPTION=(ADDRESS_LIST="
+ "(ADDRESS=(PROTOCOL=TCP)(HOST= pt-9a84825594af )(PORT=1521 )))"
+ "(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=o11g)));"
+ "User Id=xl;Password=rahasia;";
OracleConnection con = new OracleConnection(constr);
con.Open();
// To Read Use:
XL_XDR[] res = engine.ReadFile("DataOut.csv") as XL_XDR[];
jum = CountLinesInFile("DataOut.csv");
FileInfo f2 = new FileInfo("DataOut.csv");
long s2 = f2.Length;
int jmlRecord = jum - 1;
for (i = 0; i < jum; i++)
ShowPercentProgress("Processing...", i, jum);
Thread.Sleep(100);
if (isFirstLine == false)
isFirstLine = true;
else
string sql = "INSERT INTO XL_XDR (XDR_ID, XDR_TYPE, SESSION_START_TIME, SESSION_END_TIME, SESSION_LAST_UPDATE_TIME, " +
"SESSION_FLAG, VERSION, CONNECTION_ROW_COUNT, ERROR_CODE, METHOD, HOST_LEN, HOST, URL_LEN, URL, CONNECTION_START_TIME, " +
"CONNECTION_LAST_UPDATE_TIME, CONNECTION_FLAG, CONNECTION_ID, TOTAL_EVENT_COUNT, TUNNEL_PAIR_ID, RESPONSIVENESS_TYPE, " +
"CLIENT_PORT, PAYLOAD_TYPE, VIRTUAL_TYPE, VID_CLIENT, VID_SERVER, CLIENT_ADDR, SERVER_ADDR, CLIENT_TUNNEL_ADDR, " +
"SERVER_TUNNEL_ADDR, ERROR_CODE_2, IPID, C2S_PKTS, C2S_OCTETS, S2C_PKTS, S2C_OCTETS, NUM_SUCC_TRANS, CONNECT_TIME, " +
"TOTAL_RESP, TIMEOUTS, RETRIES, RAI, TCP_SYNS, TCP_SYN_ACKS, TCP_SYN_RESETS, TCP_SYN_FINS, EVENT_TYPE, FLAGS, TIME_STAMP, " +
"EVENT_ID, EVENT_CODE) VALUES (" +
"'" + res.XDR_ID + "', '" + res[i].XDR_TYPE + "', '" + res[i].SESSION_START_TIME + "', '" + res[i].SESSION_END_TIME + "', " +
"'" + res[i].SESSION_LAST_UPDATE_TIME + "', '" + res[i].SESSION_FLAG + "', '" + res[i].VERSION + "', '" + res[i].CONNECTION_ROW_COUNT + "', " +
"'" + res[i].ERROR_CODE + "', '" + res[i].METHOD + "', '" + res[i].HOST_LEN + "', '" + res[i].HOST + "', " +
"'" + res[i].URL_LEN + "', '" + res[i].URL + "', '" + res[i].CONNECTION_START_TIME + "', '" + res[i].CONNECTION_LAST_UPDATE_TIME + "', " +
"'" + res[i].CONNECTION_FLAG + "', '" + res[i].CONNECTION_ID + "', '" + res[i].TOTAL_EVENT_COUNT + "', '" + res[i].TUNNEL_PAIR_ID + "', " +
"'" + res[i].RESPONSIVENESS_TYPE + "', '" + res[i].CLIENT_PORT + "', '" + res[i].PAYLOAD_TYPE + "', '" + res[i].VIRTUAL_TYPE + "', " +
"'" + res[i].VID_CLIENT + "', '" + res[i].VID_SERVER + "', '" + res[i].CLIENT_ADDR + "', '" + res[i].SERVER_ADDR + "', " +
"'" + res[i].CLIENT_TUNNEL_ADDR + "', '" + res[i].SERVER_TUNNEL_ADDR + "', '" + res[i].ERROR_CODE_2 + "', '" + res[i].IPID + "', " +
"'" + res[i].C2S_PKTS + "', '" + res[i].C2S_OCTETS + "', '" + res[i].S2C_PKTS + "', '" + res[i].S2C_OCTETS + "', " +
"'" + res[i].NUM_SUCC_TRANS + "', '" + res[i].CONNECT_TIME + "', '" + res[i].TOTAL_RESP + "', '" + res[i].TIMEOUTS + "', " +
"'" + res[i].RETRIES + "', '" + res[i].RAI + "', '" + res[i].TCP_SYNS + "', '" + res[i].TCP_SYN_ACKS + "', " +
"'" + res[i].TCP_SYN_RESETS + "', '" + res[i].TCP_SYN_FINS + "', '" + res[i].EVENT_TYPE + "', '" + res[i].FLAGS + "', " +
"'" + res[i].TIME_STAMP + "', '" + res[i].EVENT_ID + "', '" + res[i].EVENT_CODE + "')";
OracleCommand command = new OracleCommand(sql, con);
command.ExecuteNonQuery();
Console.WriteLine("Successfully Inserted");
Console.WriteLine();
Console.WriteLine("Number of Row Data: " + jmlRecord.ToString());
Console.WriteLine();
Console.WriteLine("The size of {0} is {1} bytes.", f2.Name, f2.Length);
con.Close();
static void ShowPercentProgress(string message, int currElementIndex, int totalElementCount)
if (currElementIndex < 0 || currElementIndex >= totalElementCount)
throw new InvalidOperationException("currElement out of range");
int percent = (100 * (currElementIndex + 1)) / totalElementCount;
Console.Write("\r{0}{1}% complete", message, percent);
if (currElementIndex == totalElementCount - 1)
Console.WriteLine(Environment.NewLine);
static int CountLinesInFile(string f)
int count = 0;
using (StreamReader r = new StreamReader(f))
string line;
while ((line = r.ReadLine()) != null)
count++;
return count;
[DelimitedRecord(",")]
public class XL_XDR
public string XDR_ID;
public string XDR_TYPE;
public string SESSION_START_TIME;
public string SESSION_END_TIME;
public string SESSION_LAST_UPDATE_TIME;
public string SESSION_FLAG;
public string VERSION;
public string CONNECTION_ROW_COUNT;
public string ERROR_CODE;
public string METHOD;
public string HOST_LEN;
public string HOST;
public string URL_LEN;
public string URL;
public string CONNECTION_START_TIME;
public string CONNECTION_LAST_UPDATE_TIME;
public string CONNECTION_FLAG;
public string CONNECTION_ID;
public string TOTAL_EVENT_COUNT;
public string TUNNEL_PAIR_ID;
public string RESPONSIVENESS_TYPE;
public string CLIENT_PORT;
public string PAYLOAD_TYPE;
public string VIRTUAL_TYPE;
public string VID_CLIENT;
public string VID_SERVER;
public string CLIENT_ADDR;
public string SERVER_ADDR;
public string CLIENT_TUNNEL_ADDR;
public string SERVER_TUNNEL_ADDR;
public string ERROR_CODE_2;
public string IPID;
public string C2S_PKTS;
public string C2S_OCTETS;
public string S2C_PKTS;
public string S2C_OCTETS;
public string NUM_SUCC_TRANS;
public string CONNECT_TIME;
public string TOTAL_RESP;
public string TIMEOUTS;
public string RETRIES;
public string RAI;
public string TCP_SYNS;
public string TCP_SYN_ACKS;
public string TCP_SYN_RESETS;
public string TCP_SYN_FINS;
public string EVENT_TYPE;
public string FLAGS;
public string TIME_STAMP;
public string EVENT_ID;
public string EVENT_CODE;
I hope someone can give me a solution. ThanksThe fastest way is to use external tables or sql loader (sqlldr). (If you use external tables or sql loader, you don't use C# at all).
-
Copy access data into oracle with form builder 9i
hello
i need to copy/import data and tables from an MS access database into oracle 9i database. the situation is each time i login to my forms applicatin i will need to do that. any idea pls...
the access db is frequently updated. so when i login into my forms application it needs to be reimport the data from access db. can any1 pls help me?To my opinion, there are 3 potential approaches :
1. rewrite the application, that data are stored directly in the oracle database
or the program writes flat files somewhere to the file system which are able getting
imported from the target instance on daily basis or job driven;
2. The "Access-driven approach" : link oracle tables into the MS-Access application
using an ODBC-connection and build a macro in Access which is exporting the stuff to
the target instance; in order to do so, the Oracle Client and ODBC-Drivers needs to
get installed on the PC where MS-Access is started to start the exportation process
(which is probably yours).
You may then create tables in the target instance and link them from within Access
using ODBC as the datasource
3. The "Oracle driven approach". explained in detail here, never tried it, but maybe
worth a look
http://www.orafaq.com/node/60
Basically, install the Oracle Software on a PC, configure an ODBC-Connection and start a
Listener there;
The target instance (which may no run on a UNIX system) is now able to commuincate
with the local running listener on your PC which itself is instantiating a connection to
the Access "Database" using the ODBC-Connection.
In this way, your PC acts as a database server from the Oracle Net point of view.
In theory, this could even work, depending on the ability to connect from the
instance server directly to the given IP of your PC (Security ?? Hmmmz) -
How to read a Value from Excel Cell into Oracle Forms 10g with Java
Did any one Implamented a Java PJC to integrate Excel on Oracle Forms 10g?
I Open Excel Applikation.
Open a File like c:\import_test.xls
read a number 05 from A:1 (i get it as return value).
Save a number in a variable in Forms 10g
Can any one help my please?
Thankswhy don't you use webutil.
it has package client_ole2 which allows you to have programmatic interface with excel application.
this is especially useful if the excel to be read is available in the client. -
Best way to migrate Access data into Oracle 10g?
what's the best and easiest way to migrate MS Access database into Oracle10g?
Thanksyou can check out this thread ms access db to oracle 10g
<p>also as neil mentioned you need an ODBC to established a database connection between ms access and oracle. be sure that the tables are existing in oracle so you move the data from ms access to oracle tables.</p> -
Web Cam add into oracle form 10g
My form version is -
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Gud evening all,
I want add webcam into my forms. I read that JMF is usefull and another option is PJB.
But i don't have any proper documentation for that.
Please help.. provide the any PJB..No. But you don't have to do everything on your own; you would just need a java implementation of the communication with a webcamand implement a Java Bean upon that. Just google for it, and you shall be enlightened; e.g.:
http://stackoverflow.com/questions/276292/capturing-image-from-webcam-in-java
Another option would be to invoke another program which takes a picture and stores it to somewhere with client_host and display it in your form with client_read_image_file. You'd need webutil for that.
cheers -
Importing Access Database Into Oracle
Hi all:
I have 6 Access 97 databases that I need to import into an Oracle 8i database. I've never done anything like this before. Can someone give me some ideas on how to go about doing this?
Thank you in advance.Hi.
You can select a table in the Access and chose File -> export ( i guess), you will see Export option some where on the menu.
Chose ODBC
give orace database username/pwd
Make sure you don't have same table in oracle database otherwise you will get an error.
Once you dump in database, you can either insert into other required table or keep as is or you can rename your table.
NOTE: In access you need to convert all the table columns to text, otherwise you might encounter errors. -
Import Informix data into Oracle
Hi. We have an Informix 7.25 SE database and we need to schedule daily imports of some of its tables into an Oracle 10g database on Solaris. The databases are on different machines. Thank you for your help.
You could export to a flat-file (e.g CSV) and then import to Oracle using sqlldr.
You could install Oracle Heterogenous Services and setup an Oracle database link to select directly from Informix. -
How to insert data into Oracle db from MySQL db through PHP?
Hi,
I want to insert my MySQL data into Oracle database through PHP.
I can access Mysql database using mysql_conect() & Oracle database using oci_connect() through PHP.
Now How can I insert my data which is in MySQL into Oracle table. Both table structure are exactly same.
So I can use
insert into Oracle_Table(Oracle_columns....) values(Select * from MySQL_Table);
But again problem is I can't open both connections at the same time.
So has anyone done this before or anyone having any other idea..
Plz guide me...You can do it if you setup a ODBC Gateway between MYSQL and Oracle DB. Then you can directly read from MySQL table using DB links and insert into Oracle table in one single SQL Statement.
Otherwise you need to fetch the data from MySQL Into variables in your PHP Program and then insert into Oracle after binding the variables to the insert statement for Oracle. Hope that is clear enough.
Regards
Prakash -
Error while importing data into Oracle 11gr2 with arcsde 9.3.1
I am getting error while importing the data into oracle 11g r2. We are using arcsde 9.3.1
It seems to be having some problem with spatial index creation.
kindly help
IMP-00017: following statement failed with ORACLE error 29855:
"CREATE INDEX "A3032_IX1" ON "DGN_POLYLINE_2D" ("SHAPE" ) INDEXTYPE IS "MDS"
"YS"."SPATIAL_INDEX""
IMP-00003: ORACLE error 29855 encountered
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13249: internal error in Spatial index: [mdidxrbd]
ORA-13249: Error in Spatial index: index build failed
ORA-13249: Error in spatial index: [mdrcrtxfergm]
ORA-13249: Error in spatial index: [mdpridxtxfergm]
ORA-13200: internal error [ROWID:AAAT5pAA9AACIy5AAQ] in spatial indexing.
ORA-13206: internal error [] while creating the spatial index
ORA-13033: Invalid data in the SDO_ELEM_INFO_ARRAY in SDO_GEOMETRY object
ORA-06512: at "MDSYSGuys,
I am also getting the same error and also my issue is like I am not even to analyze for which indexes I am getting error. It does not hve any indx name before error.
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/DOMAIN_INDEX/INDEX
ORA-39083: Object type INDEX failed to create with error:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13249: internal error in Spatial index: [mdidxrbd]
ORA-13249: Error in Spatial index: index build failed
ORA-13249: Error in spatial index: [mdrcrtxfergm]
ORA-13249: Error in spatial index: [mdpridxtxfer]
ORA-29400: data cartridge error
ORA-12801: error signaled in parallel query server P000
ORA-13249: Error in spatial index: [mdpridxtxfergm]
ORA-13200: internal error [ROWID:AA
ORA-39083: Object type INDEX failed to create with error:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13249: internal error in Spatial index: [mdidxrbd]
ORA-13249: Error in Spatial index: index build failed
ORA-13249: Error in spatial index: [mdrcrtxfergm]
ORA-13249: Error in spatial index: [mdpridxtxfer]
ORA-29400: data cartridge error
ORA-12801: error signaled in parallel query server P002
ORA-13249: Error in spatial index: [mdpridxtxfergm]
ORA-13200: internal error [ROWID:AA
ORA-39083: Object type INDEX failed to create with error:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13249: internal error in Spatial index: [mdidxrbd]
ORA-13249: Error in Spatial index: index build failed
ORA-13249: Error in spatial index: [mdrcrtxfergm]
ORA-13249: Error in spatial index: [mdpridxtxfer]
ORA-29400: data cartridge error
stack cnt....
How can I find for which indexes it is failing?
Thank you,
Myra -
Forms 4.5 Migration to Oracle Forms 10g
Hi All,
I want to know abt migration steps i.e. i 'm doing migration of Oracle Forms 4.5 to Oracle Forms 10g. Then existing forms is on Windows NT based environment and the database is Oracle 8.
What is the better way to approach this issue? Whether, directly open the existing Forms into Oracle Forms 10g or first open the form into Forms 6i and then after 10g?
Tell me the System Specification.... Database version.... Which Application Server is suitable.... And whether the Oracle 9i database possible for Forms 10g or not.
Pls Give me solution.
ThanksWhat is the better way to approach this issue?
Whether, directly open the existing Forms into Oracle
Forms 10g or first open the form into Forms 6i and
then after 10g?As Grant said:
4.5 to 10g (strictly speaking is not supported) but should work ok - Generally speaking you just open your Forms in the 10g builder and compile. You should check out otn.oracle.com/formsupgrade which gives you some good pointers including the Forms built-in procedures that have be desupported and removed from the product.
4.5 -> 6i -> 10g was the supported route (but even 6i is desupported now).
>
Tell me the System Specification.... Database
version.... Which Application Server is suitable....
And whether the Oracle 9i database possible for Forms
10g or not.OAS 10gR2, DB 9i is good. -
Migrate .inp formated form to oracle forms 10g
Hi All ,
How we can open .inp formated files into oracle forms 10g
Please help me
Thanks
Vikas
nullINP has to be migrated ->forms 6i->9i->10g
Check the forms upgradecenter
http://www.oracle.com/technology/products/forms/htdocs/upgrade/index.html
Also check this tool. Forms migrator plus
http://www.alexyscorp.com/MigratorPlus.pdf
Maybe you are looking for
-
Mailx command unable to send mail to internal email server
Hi, I am trying to send mail from my shell program registered as concurrent request in R12 its working fine for external server like (gmail,yahoo,hotmail etc) but when Im trying to send mail to internal mail within organization it fails. It does'nt e
-
[OO Concept] Make a parent class perform code after constructor calls?
Hello, I want to do something like this: class Parent { Parent(){ // do some parent stuff private void postConstruction(){ // parent and all subclasses have completed construction, now do some post-construction code // analyze
-
Hi, On some of my newer system eg Solution Manager with SPS 15 I have the ability to monitor MaxDB in RZ20 for various things but in our "not yet updated" systems running ERP 6.0 SPS 10 I only get an option under Database for "SAP DB" which is inacti
-
Two-sided print don't work.
My 2610 Photosmart I think it don't have a duplex feature, but in Windows XP worked with a two-sided printed. I can have it in 10.5 Leopard ? What can I do, because I use the setting two-sided printing and check print both sides, but nothing happens,
-
I have 3 JNLP files I need to make available through the app launcher window for students (restricted desktop). I can run the app if I go to the folder and double click the jnlp file, but when I try to launch it through the app launcher, it does not