Interbase to Oracle 8i
I am trying to export a Interbase database into Oracle 8i Perso.
I USE Borland Datapump which asks for the path to my Oracle base
desination
Which path is it?
Hi Shailesh,
This forum is for the Migration Workbench only. This tool is used for migrations from the following list of database servers to Oracle:
DB2\400 V3R5 and V4R5
DB2 UDB 6 and 7
Informix 7 and 9
MS Access 95 97 and 2000
MS SQL Server 6.5, 7 and 2000
Sybase 11 and 12
MySQL
You may need to post your question on another Discussion Forum to obtain a solution to your query.
Similar Messages
-
InterBase to Oracle conversion?
How to unpack Interbase to Oracle conversion tool (.z) files. I tried with gzip but I got a massage: Not a gzip file. This file is small, about 27K. That is strange.
Hello Tom,
Thanks for the response. I had given DOC as the extension
and the I am able to open the word document. Just that I
was quite surprised by the contents
IBASE_TAR.doc looks like as shown below in MS Word 97 with
lots of strange characters in between(which I cannot
paste here - dont know why...(:- )
intspsol_tar.doc was even more wilder. I could not read
anything from it.
Am I doing something wrong? How do I use both these word
files to convert my interbase to oracle? Does it need to
undergo some processing to use it??
Pls help
Thanks
Donny
IBASE_TAR.doc starts here
./convkit/ 775 535 1750 0 6325121327 5707 ./convkit/interbase/ 775 535 1750 0 6325121322 7656 ./convkit/interbase/data/ 775 535 1750 0 6324432272 10577 ./convkit/interbase/data/stripper 666 535 1750 757 6324432272 12452 cat $1 \
|grep -v connect \
|sed '/^$/d' \
|grep -v "set term" \
|grep -v "commit work" \
|grep -v "\^" \
|sed 's/ *|/|/g' \
|sed 's/<null>//g' \
|sed 's/| */|/g' \
|grep "|" \
jm.txt \cat jm.txt|nawk -F'|' 'BEGIN{} \
do { \
if (substr($1,1,1)== "=") \
break;\
else \
printf ("%s",$0); \
printf ("\n"); \
}while(getline > 0); \
printf("\n"); \
' > jm2.txt
cat jm2.txt| grep -v ' '|sed '/^$/d'
./convkit/interbase/data/select.sh 666 535 1750 1002 6324432272 12472 cat tbl_col.dat|nawk -F'|' 'BEGIN{} \
x = 0; \
printf ("select ") > x; \
x = $1; \
col = $2; \
printf ("%s,\"|\"", col ) > x; \
getline; \
do { \
y = $1; \
if (y > x){ \
printf (" from |%s|;\n", x) > x; \
close(x); \
printf("select ") > y; \
if (y==x) \
printf (",") > x; \
x = $1; \
col = $2; \
printf ("%s,\"|\"", col ) > x; \
}while(getline > 0 ); \
printf (" from |%s|;\n", y) > y; \
This is just the first page......
and it goes on like this for another 331 pages... -
PHP reads decimals with commas instead dots
I have a script that copies Oracle table to Firebird/Interbase.
Oracle database is set to:
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_LANGUAGE POLISH
NLS_TERRITORY POLAND
NLS_CURRENCY zl
NLS_ISO_CURRENCY POLAND
NLS_NUMERIC_CHARACTERS ,
I have a problem with decimals returned by Oracle. Query result has decimals with "," what causes conversion error on insert to Firebird.
Is there a way to configure conection parameters to receive numbers formated with "."
I could go through each row value to check if it's decimal and substitute "," to ".", whitch will add extra processing to the script
At the moment I supply INSERT statement values as shown bellow
For each
$row = oci_fetch_assoc($stmt)
I create array with parameters strings
$params[$k] = '$row[\''.$k.'\']';
and finally evaluate:
eval('ibase_execute($prep_query,'.join(',',$params).');');Isn't your NLS_NUMERIC_CHARACTERS asking for a comma to be used as the decimal separator? See page 240 of The Underground PHP and Oracle Manual
-
Synchronizing Oracle with Interbase
Hello Forum,
does anyone made any expieriences with synchronization of Oracle and Interbase databases? How does it work? Are there any tools for synchronizing? Are there any problems?
We want to use Interbase as a remote small footprint database (requirements: deployable on CD-ROM, M$ Windows envrionment, easy instalation without administrator rights, interaction with an delphi-application) and synchronize it than with a centrally located Oracle database.
All in all: is it feasible to do that with Interbase?
Thank you & kind regards,
Katharina Fuhruser533361 wrote:
The Oracle With can't be used with Update ? The query below can't be compiled, I don't know why.
Thanks.
WITH
tmp_table AS
SELECT
pno
FROM
odetails,
parts
WHERE
odetails.pno = parts.pno
AND
odetails.qty >= 3
UPDATE
parts
SET
qoh = 3 * qoh
WHERE
pno in (select tmp_table.pno from tmp_table)
Hi,
The syntax for subquery factoring is as follows.
WITH subquery_name AS (
SELECT ...
, another_subquery_name AS (
SELECT ...
SELECT ...
FROM subquery_name sq1
, another_subquery_name sq2
WHERE sq1... = sq2...
With other words, the comiler will protest when he find update instead select
HR: XE > with
2 tmp as
3 (select col1,col2
4 from test)
5 update
6 test
7 set
8 col2=33
9 where
10 col2 in(select col4 from test);
update
ERROR at line 5:
ORA-00928: missing SELECT keyword
The following statement are valid for your update expression but WITH tmp_table AS expression is no more necessary (only if your expression in the where clause is very complex) :
UPDATE
parts
SET
qoh = 3 * qoh
WHERE
pno in (WITH
tmp_table AS
SELECT
pno
FROM
odetails,
parts
WHERE
odetails.pno = parts.pno
AND
odetails.qty >= 3
)Regards,
Ion -
Migration from Interbase 7.0 to Oracle 9i
Hi,
Does anyone have any documents/tool on migration from interbase 7.0 to Oracle 9i.
Thanks,
DivyeshRichard,
To connect to an Informix Dynamic Server, you must copy the ifxjdbc.jar Informix Dynamic Server JDBC driver file to the %ORACLE_HOME%\Omwb\drivers directory before running the Migration Workbench. Otherwise, when you attempt to capture a Migration Workbench database, you receive the following error message:
No Suitable Driver Found.
If you receive this error message, copy the ifxjdbc.jar file to the %ORACLE_HOME%\Omwb\drivers directory, then restart the Migration Workbench.
If this ok and you still get the error message check paths in your %ORACLE_HOME%\Omwb\bin\omwb.bat.
I hope it helps you.
Mireille MEGE -
Interbase 5 to Oracle 9i Migration
Hi All
I need to find out the oracle supported method for migrating data from an Interbase 5.0 Database to Oracle 9i.
Any help will be greatfully appreciated.
KimThere is an interbase toolkit on the under
otn.oracle.com/tech/migration/toolkit
Which should help you. It is not supported, but all the scripts are there for you to modify if you come across an issue.
BArry -
Oracle 8i, selecting from Stored Procedudure
Hi
In InterBase it is possible to create a Stored Procedure with some input parameters and then select from it.
for example:
select * from my_stored_procedure (my_parameter);
Is it possile to do something similar in Oracle 8i?
Where to find examples on creating and using stored procedures like this?
I am new to Oracle and have been browsing documentation CD and otn.oracle.com websites, however is seemes like finding a needle in a haystack.
I would appreciate any samples or links.
Thanks,
RaigoAs far as I know, this is not possible directly the same way as in IB. You can resort to using REF CURSORs though:
create or replace package p
as
type t_rc is ref cursor; -- weak ref cursor
function f( cond in number ) return t_rc;
end;
create or replace package body p
as
function f ( cond in number ) return t_rc
is
rv t_rc;
begin
open rv for 'select * from some_table where id = :cond' using in cond;
-- just return open cursor
return rv;
end;
end;
then you can use it this way:
declare
c p.t_rc;
r some_table%rowtype;
begin
c := p.f(100);
loop
fetch c into r;
exit when c%notfound;
-- process row r here
end loop;
end;
You can also use SELECT FROM TABLE( CAST (function(...) AS collection_type)) syntax - browse Object-Relational Features guide, SQL Reference and Application Development - Fundamentals for more info and examples on this. -
Oracle stored ns and where clauses
Hello everybody,
I need to call an Oracle stored function and at the same time do a select on the result of the query, it works well except when I use a where clause. I am connecting to Oracle 8.1.7 through OLEDB using the Oracle provider for
OLEDB distributed with this Oracle version.
Here is the query I am doing:
select * from {call MC.SEC.QryTermbases(?, ?) where ID = ?}
If I remove the where clause it works well but I need to use the where. I know that I could pass the parameter to the procedure instead of doing that in the select but there are places where I can not do that since the SQL
query is generated dynamically. The code above is just a demo.
Thanks very much for your help,
José.Thanks for answering, it is actually possible to do a select on the return of a function, I have tested it with other than "select *" and it has worked well. What has not worked for me is using a "where" clause. That is "select" without "where" has worked but not with the "where".
I also suspect that it does not work but similar queries work well in MSSQL 2000 and Interbase 6.0 so I thought may be there was a way to do that with Oracle. That is in MSSQL I can treat the result of a function as a normal table and I can do the same thing with a stored procedure that returns a recordset in Interbase.
Thanks again for answering,
Jose. -
Oracle stored functions and where clauses
Hello everybody,
I need to call an Oracle stored function and at the same time do a select on
the result of the query, it works well except when I use a where clause. I
am connecting to Oracle 8.1.7 through OLEDB using the Oracle provider for
OLEDB distributed with this Oracle version.
Here is the query I am doing:
select * from {call MC.SEC.QryTermbases(?, ?) where ID = ?}
If I remove the where clause it works well but I need to use the where. I
know that I could pass the parameter to the procedure instead of doing that
in the select but there are places where I can not do that since the SQL
query is generated dynamically. The code above is just a demo.
Thanks very much for your help,
Jose.Thanks for answering, it is actually possible to do a select on the return of a function, I have tested it with other than "select *" and it has worked well. What has not worked for me is using a "where" clause. That is "select" without "where" has worked but not with the "where".
I also suspect that it does not work but similar queries work well in MSSQL 2000 and Interbase 6.0 so I thought may be there was a way to do that with Oracle. That is in MSSQL I can treat the result of a function as a normal table and I can do the same thing with a stored procedure that returns a recordset in Interbase.
Thanks again for answering,
Jose. -
Can anyone tell me WHY Oracle won't allow sub-queries in outer joins?
Hi,
I've recently been tasked with converting a series of InterBase dbs to Oracle.
Many of the queries in the InterBase dbs use sub-queries in outer joins. Oracle won't countenance this (01799 - a column may not be outer-joined to a subquery).
I can get around it using functions but WHY won't Oracle allow this?
SQL Server allows it, InterBase allows it (I don't know about ANSI SQL) but it seems to be a common enough technique...
I'm just curious (and also a little frustrated!).
Thanks in advance,,,Hi,
>>Oracle treat an empty string as a NULL
Well, you same answer your question. Because it is empty
SGMS@ORACLE10> create table tab (cod number, name varchar2(1));
Table created.
SGMS@ORACLE10> insert into tab values (1,'');
1 row created.
SGMS@ORACLE10> insert into tab values (2,' ');
1 row created.
SGMS@ORACLE10> commit;
SGMS@ORACLE10> select cod,dump(name) from tab;
COD DUMP(NAME)
1 NULL
2 Typ=1 Len=1: 32
SGMS@ORACLE10> select * from tab where name is null;
COD NAME
1Cheers
If you talking about language tools, for example PHP treat empty string <> of NULL values. e.g: functions like is_empty() and is_null()
Message was edited by:
Legatti -
Oracle or progress database?
Is there someone who can give me some objective comments why i should take oracle instead of progress Database?
many thanks
Frank<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by kkirk:
Oh my, Progress is still around?
What a religious question, you might have well asked why not use Informix or Interbase. grin.
Powers that Be's call - just point out Progress revenues declined by 30%+ last quarter.. that they are less than 3% of the size of Oracle.
Sure they may be cheaper... remember you usually get exactly what you pay for. ( caveat - I haven't looked at Progress in over 6 years )
Do you want to drive a Yugo, a Ford, or a Mercedes? Which one will have less problems? Which one will still be around in 20 years?
Haven't seen many Yugo's lately.
Cheers and Good Luck<HR></BLOCKQUOTE>
null -
Where should be the file of database if i use windows version of oracle
hello
where should be placed the file of database if i use windows version of oracle ?
will be there some special partion for dadtabase file ?
10xuser10860289 wrote:
i thin the database shoud has own file
in interbase this file is name_of_db.gdb
i seatch for such database file in oracle ? And why would you expect Oracle to have the same file(s) as some other product?
Oracle implements it's databases with multiple data files, not just one. And that's in addition to all of the various files that make up the software, apart from any databases.
You definately do not want to put the database files under ORACLE_HOME. If you have any choice at all, I wouldn't even want them on the same partition. A default installation and db creation may try to put them there simply because that is the one directory structure oracle can count on being there. But that is one default that is far from best practice.
The minimum partition configuration I'd want for a Windows server hosting an Oracle database is ....
c:\ - operating system only
d:\ - Oracle home, admin, and one set of all duplexed files (control, redo)
e:\ - all other database files
For the 'sandbox' setup on my personal laptop, where I only have a c: drive, I still break it out ...
c:\oracle\app\product\10.2.0 <-- Oracle Home
c:\ora1\mysid\ <--- some data files
c:\ora2\mysid\ <--- some data files
c:\ora3\mysid\ <--- some data files
Take a look at this: http://download.oracle.com/docs/html/A97297_01/appg_ofa.htm
It is out of the 9i docs, and is directed to unix, but if you will read and understand the principles it is a good guide even for Windows. You can also google "optimal flexible architecture" and get lot's of other docs.
I dare say that at this point It would be a good investment in your career to go to tahiti.oracle.com. Drill down to your product and version. There you will find the complete doc library.
You should spend a few minutes just getting familiar with what kind of documentation is available there by simply browsing the titles under the "Books" tab.
Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what kind of information is available there. Learning where to look things up in the documentation is time well spent on your career.
Read the 2-Day DBA manual cover to cover.
Notice the 'search' function at that site.
Then set yourself a plan to dig deeper.
- Read a chapter a day from the Concepts Manual.
- Look in your alert log and find all the non-default initialization parms listed at instance startup. Then read up on each one of them in the Reference Manual. Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files, then look up what you see there in the network administrators manual.
Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
Am I wrong ? -
Oracle Database Connection using JSP
I am attempting to create a simple web app using Oracle 9i and JSP. I am trying to create a connection to my database and do not seem to be having much luck. I have worked with ASP and can find my way around fairly well in that environment, however, JSP seems to be not as closely related as I initially thought. Can anyone point me to a good site that can give a beginner the basics on using this technology. I have been to several sites off of Oracle and Sun, but I seem to be more confused after reading them. With JSP, can I code as I would in ASP i.e JavaScript, etc? I have downloaded and installed the JDBC drivers from Oracle's website, but I receive errors when trying to establish a connection. If there is a site that can explain from the ground up how to set up a connection, I would be very greatful!
Hi,
This example uses Interbase, but hopefully you will find it useful anyway -
http://www.kpi.com.au/interbase/connect.jsp
Cheers,
Lars -
ORA-03114 not connected with Oracle when I execute Query
Hi!
I have a Problem with Oracle 9 but I don't know what wrong.
When I execute this query I get an error everytime:
select * from
perleist pl
left outer join leikat l on pl.lsnr = l.lsnr
where pl.von < sysdate
and
pl.id not in
select idperleist from rechaus
where buch_schl <> 'STRN'
It's not the complete select but the point is I use
"left outer join leikat l on pl.lsnr = l.lsnr"
( not the (+) - Opoerator) and a "not in" -Clausel.
Without the "not in" -Clausel the select runs fine.
Sorry for my bad english g
Thx for help :)
MichaelHi!
My Selection doesn't run :((
The Selection runs with (+) -Join and not with "left outer join" .
i need the "left outer join" couse the Application runs on Oracle
and Interbase with same Selections. Other Selections with "left outer Join"
are running under my Oracle 9.2 Database.
Here something I tested:
Selection runs with (+)- Join and count ():
select count(pl.id) anz
from perleist pl , leikat l
where
pl.lsnr = l.lsnr (+)
--left outer join leikat l on l.lsnr = pl.lsnr
and (pl.von <= to_date('30.09.2002', 'DD.MM.YYYY')) and (pl.bis >= to_date('01.09.2002', 'DD.MM.YYYY'))
and (l.RelAbr = 1)
and (pl.AufnNr = 13464)
and (pl.id not in (select idperleist from rechaus where ((BuchSchluessel <> 'STRN') or (BuchSchluessel is null)) and (StornoDat = to_date('30.12.1899', 'DD.MM.YYYY')) and (AbrJahr = 2002) and (AbrMonat = 9)))
Runs without count() and with "left outer join" :
select --count(pl.id) anz
from perleist pl
left outer join leikat l on pl.lsnr = l.lsnr
where (pl.von <= to_date('30.09.2002', 'DD.MM.YYYY')) and (pl.bis >= to_date('01.09.2002', 'DD.MM.YYYY'))
and (l.RelAbr = 1)
and (pl.AufnNr = 13464)
and (pl.id not in (select idperleist from rechaus where ((BuchSchluessel <> 'STRN') or (BuchSchluessel is null)) and (StornoDat = to_date('30.12.1899', 'DD.MM.YYYY')) and (AbrJahr = 2002) and (AbrMonat = 9)))
Error ORA-03114 when usinf count () and
"left outer join":
select count(pl.id) anz
from perleist pl
left outer join leikat l on l.lsnr = pl.lsnr
where
(pl.von <= to_date('30.09.2002', 'DD.MM.YYYY')) and (pl.bis >= to_date('01.09.2002', 'DD.MM.YYYY'))
and (l.RelAbr = 1)
and (pl.AufnNr = 13464)
and (pl.id not in (select idperleist from rechaus where ((BuchSchluessel <> 'STRN') or (BuchSchluessel is null)) and (StornoDat = to_date('30.12.1899', 'DD.MM.YYYY')) and (AbrJahr = 2002) and (AbrMonat = 9)))
Selection runs without "not in"
Selection runs without count()
Selection runs with (+) and not with
"left outer join"
Thx for help :)
MD -
Updating oracle tables from sqlserver
I wish to have replication from sqlserver 7.0 to oracle 8.1.7
database done in real time. Since tranparent gateway only goes
from oracle to sqlserver, I guess ODBC connectivity is the last
resort. Are there any other tools or methods that I can
accomplish this task.
Thx
DanielDaniel,
you can create snapshot for ms tables. Example:
CREATE SNAPSHOT "KISELYOV"."SH_SEMIINPUT"
PCTFREE 10 PCTUSED 40 MAXTRANS 255 STORAGE ( INITIAL 128K NEXT
128K MINEXTENTS 1 MAXEXTENTS 4096 PCTINCREASE 0 FREELISTS 1
FREELIST GROUPS 1)
TABLESPACE "USERS"
BUILD IMMEDIATE
REFRESH COMPLETE
ON DEMAND
AS
select * from [email protected]
where ho.world in my case is a database link for Interbase
Server via ODBC.
And you can refresh those snapshots when you need.
Dmitry.
Maybe you are looking for
-
2Hello! I've looked, but I didn't see any other discussions that address the particular issue that I am experiencing. I'm using Captivate 5 on a Mac and when I select "Save as" for my projects, I only have the option to save as a .cptl type file and
-
Masthead header logoff link not working
Hi, We created a theme for our masthead and assign it to our portal. However, when the logoff button is click it freeze and does not redirect the page back to the login page. Has anyone encountered this problem? Regards, Jin Bae
-
What is the best way to eliminate room hum in my video?
I have a room hum in my clips that I wish to eliminate. I downloaded Audacity and it worked fine, right up to the point where I exported it to FCE. In Timeline the sound file was out of sync and nothing I have tried will synchronize it with the video
-
Can I make the printed document writable?
Hi everyone, Is there a place in RH9 where I can set an option so that I can save the Word file using its original file name? I want to preview the printed document (Word) and make minor adjustments before I make a PDF. I have gone through the folder
-
select pernr dlart darbt subty into (loan-pernr , loan-ln_type,loan-ln_amt, loan-subty) from pa0045 where pernr = pernr-pernr and subty in ('Y001' , 'Y011' , 'Y010' , 'Z001' , 'Z005' , 'Z006')