Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 357
  • Last Modified:

Sybase to Oracle data load.

Hi,

I would really appreciate it if someone would tell me how to load Oracle data(single table or an entire schema) to Sybase database.
Looking forward for an early reply.

Thanks,
Chakry
0
chakryreddy
Asked:
chakryreddy
1 Solution
 
chakryreddyAuthor Commented:
Sorry the title should be Oracle to Sybase data load.
0
 
gletiecqCommented:
Export the Oracle data to a text file.  Then use Sybase's bcp to load the data from that file.  I'm not an Oracle guy, so you may have to check your documentation in how to export like that, but I can't believe it's that hard.  You'll need to do this table-by-table.

Greg
0
 
HamdyHassanCommented:
Oracle's export is producing binary that is readable only by Oracle's import.

Idea is to use sqlplus to extract data to text file, with delimiter like "|" between fields, then import that using bcp in

Let me know
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
amitpagarwalCommented:
Oracle has no tools to export data out of its Databases (except in native format).

you can look at a commercial product
http://www.ispirer.com/products/
0
 
HamdyHassanCommented:
Example,

you want to extract oracle table mytable which contains f1,f2,f3

sqlplus -silent $DBID/$DBPW@$DBHOST  @extract_mytable.sql >/dev/null 2>&1

--------------------------------
content of extract_mytable.sql
--------------------------------
SET NEWPAGE 0
SET PAGESIZE 0
SET ECHO OFF
SET FEEDBACK OFF
SET HEADING OFF
SET TRIMSPOOL ON
spool mytable.txt
SELECT f1,"|",f2,"|",f3 FROM mytable
;
spool off
quit


Now, you will have a nice mytable.txt ready to bcp in using "|" as a delimiter
0
 
AchetonCommented:
If you are running ASA instead of AS* try using the  sa_migrate function. The other option is to set up a Remote server to the Oracle database and then suck the data across at will using SQL or the sa_migrate function.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now