473,405 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

importing into postgreSQL from oracle

37
Hi
Where can i get the import and export software for postgreSQL(Full version) and
in postgreSQL how can we write procedures and functions? and
please tell me , how to import the dump file from oracle into postgreSQL.(including procedures)

Thank you
Feb 15 '08 #1
15 13643
rski
700 Expert 512MB
Hi
Where can i get the import and export software for postgreSQL(Full version) and
in postgreSQL how can we write procedures and functions? and
please tell me , how to import the dump file from oracle into postgreSQL.(including procedures)

Thank you
I didn't hear about postgres trial or demo version, so what is postgres full version :)?
After installing postgres you receive the apps: pg_dump and pg_restore, which do buckups and restore database from backups.
Of course you can also install some graphic tools like pgadmin3, and operate on postgres via it.
I don't know oracle well so how do you create backups in oracle. What is buckup file format.
Importing oracle procedures may be hard i suppose, i'm not sure if oracle and postgres have the same syntax. If you write procedure in pl/sql it may not work under postgres.
Feb 15 '08 #2
san1014
37
I didn't hear about postgres trial or demo version, so what is postgres full version :)?
After installing postgres you receive the apps: pg_dump and pg_restore, which do buckups and restore database from backups.
Of course you can also install some graphic tools like pgadmin3, and operate on postgres via it.
I don't know oracle well so how do you create backups in oracle. What is buckup file format.
Importing oracle procedures may be hard i suppose, i'm not sure if oracle and postgres have the same syntax. If you write procedure in pl/sql it may not work under postgres.
Hi rski
thanks for your reply
I have installed postgres(postgreSQL 8.3) full version only.(In that i got command prompt,pg admin3,psql to postgres).But i didn't get that pg_dump and pg_restore.
Can u please give me the site where can i get all those and also tell me how to use that.
In oracle, to export the data we can use the command as
exp username/password@database file=filename full=y -----command prompt

i am very new to postgres please tell me indetail.

Thank you very much.
Feb 18 '08 #3
rski
700 Expert 512MB
Hi rski
thanks for your reply
I have installed postgres(postgreSQL 8.3) full version only.(In that i got command prompt,pg admin3,psql to postgres).But i didn't get that pg_dump and pg_restore.
Can u please give me the site where can i get all those and also tell me how to use that.
In oracle, to export the data we can use the command as
exp username/password@database file=filename full=y -----command prompt

i am very new to postgres please tell me indetail.

Thank you very much.
How did it happen you got psql but you haven't pg_dump and pg_restore (they're also command line tools). I'm not sure if they exist standalone, so you can download it. Did you download postgres from offical site postgresql.org?
At this site you find all information you need see here for example
http://www.postgresql.org/docs/8.3/s...pp-pgdump.html
Feb 18 '08 #4
san1014
37
How did it happen you got psql but you haven't pg_dump and pg_restore (they're also command line tools). I'm not sure if they exist standalone, so you can download it. Did you download postgres from offical site postgresql.org?
At this site you find all information you need see here for example
http://www.postgresql.org/docs/8.3/s...pp-pgdump.html
Ya I'm downloaded from
http://www.postgresql.org/ftp/binary/v8.3.0/win32/.

If i have the pg_dump and pg_restore by default after installation then how to see those.
or else
Please tell me the site where can i get pg_dump and pg_restore, which do buckups and restore database from backups.

Thank you
Feb 18 '08 #5
rski
700 Expert 512MB
Ya I'm downloaded from
http://www.postgresql.org/ftp/binary/v8.3.0/win32/.

If i have the pg_dump and pg_restore by default after installation then how to see those.
or else
Please tell me the site where can i get pg_dump and pg_restore, which do buckups and restore database from backups.

Thank you
pg_dump and pg_restorwe should be in the same directory where psql is. You can call it from command line. I didn't use postgres under windows for long time how do you use it, using Cygwin or something else?
Feb 18 '08 #6
san1014
37
pg_dump and pg_restorwe should be in the same directory where psql is. You can call it from command line. I didn't use postgres under windows for long time how do you use it, using Cygwin or something else?
Hello rski
I have re installed the postgreSQL.
Now i'm able to call the pg_dump and pg_restore in cmd, but after calling,when i entered the password it is giving the error
pg_dump: [archiver (db)] connection to database "sandeep" failed: FATAL: password authentication failed for user "sandeep"

When installation i have given password as databaseadministrator
and the superuser password as admin and
my system password is victory
if i type any one of those it is giving that error.
What was the exact password i have to give.
Please tell me

Thank you
Feb 19 '08 #7
debasisdas
8,127 Expert 4TB
Oracle creates crash dump file with the extension .DMP.

If that is the same in postgre then try to import.
Feb 19 '08 #8
rski
700 Expert 512MB
Hello rski
I have re installed the postgreSQL.
Now i'm able to call the pg_dump and pg_restore in cmd, but after calling,when i entered the password it is giving the error
pg_dump: [archiver (db)] connection to database "sandeep" failed: FATAL: password authentication failed for user "sandeep"

When installation i have given password as databaseadministrator
and the superuser password as admin and
my system password is victory
if i type any one of those it is giving that error.
What was the exact password i have to give.
Please tell me

Thank you
look for pg_hba.conf file and see what is authentication type. If you find password or md5 change it to trust, restart server and try again
Feb 19 '08 #9
foneman
15
pgAdmin III is a GUI frontend for postgres. You can do everything in it, you don't need the command line at all. You can backup and restore from the menu.
Mar 16 '08 #10
bibico
5
i am having the same problem on doing a backup of a database from one computer to another, from postgresql to prostgresql though and not oracle. I got the same problem about the password being asked when using the command prompt. i was able to backup and restore using pgadmin but types were not exported/restored - so some columns are missing. Also where can i find a tutorial on pgadmin and prosgresql where i could operate on dummy database? Thanks. I am going nuts for a week already looking for the way on how to completely backp/restore database and i must be able to do it by the next day... waaah! pls help
Jul 12 '08 #11
rski
700 Expert 512MB
i am having the same problem on doing a backup of a database from one computer to another, from postgresql to prostgresql though and not oracle. I got the same problem about the password being asked when using the command prompt. i was able to backup and restore using pgadmin but types were not exported/restored - so some columns are missing. Also where can i find a tutorial on pgadmin and prosgresql where i could operate on dummy database? Thanks. I am going nuts for a week already looking for the way on how to completely backp/restore database and i must be able to do it by the next day... waaah! pls help
Show here your pg_hb.conf file, put here only these lines without leading #.
pg_hba.conf file shoud be in the database cluster.
Jul 12 '08 #12
bibico
5
when i open pg_hba from File menu pf pgadmin - it opens a window explorer asking which file, if i click on cancel, nothing is written inside. If i open the pg_hba.conf file from data directory of postgresql installation, this is what i have, excluding those lines with #.
host all all 127.0.0.1/32 md5
i think this is just for local host. what i have been trying to do is backup/transfer the database from one computer to another. I used the backup option of pgadmin III packaged with postgresql 8.2 - save the backup file - xx.backup. I then went to the other computer where i want to restore the backu and use restore option from there - opening the xx.backup file from the source system. Only the public schema was restored and when i looked on the tables on the public schema - some columns are missing, and Types were not there. I cannot figure out how to insert image in this forum. i posted the pics in anorther pgadmin forum. Please take a look at it at this url: http://www.nabble.com/Types-not-exported-restored-to18395521.html
please please please help.Thank you....
Jul 13 '08 #13
rski
700 Expert 512MB
when i open pg_hba from File menu pf pgadmin - it opens a window explorer asking which file, if i click on cancel, nothing is written inside. If i open the pg_hba.conf file from data directory of postgresql installation, this is what i have, excluding those lines with #.
host all all 127.0.0.1/32 md5
i think this is just for local host. what i have been trying to do is backup/transfer the database from one computer to another. I used the backup option of pgadmin III packaged with postgresql 8.2 - save the backup file - xx.backup. I then went to the other computer where i want to restore the backu and use restore option from there - opening the xx.backup file from the source system. Only the public schema was restored and when i looked on the tables on the public schema - some columns are missing, and Types were not there. I cannot figure out how to insert image in this forum. i posted the pics in anorther pgadmin forum. Please take a look at it at this url: http://www.nabble.com/Types-not-expo...o18395521.html
please please please help.Thank you....
I'll look at it when i find some time, but if you do not want do be asked for password change the string md5 to trust and restart server.
If you want to connect from remote computer without password just add line
Expand|Select|Wrap|Line Numbers
  1. host  all all remote_ip/32 trust
  2.  
in pg_hba.conf and restart server.
Jul 13 '08 #14
bibico
5
thanks, Ü
is there any setting that i have to check on at pgadmin before using the backup utility and doing the restore so everything would be included? Or, maybe, is there anything wrong with the process i did?
Jul 13 '08 #15
bibico
5
I attached here the pics, maybe you could take a look at it :)
thanks :)
the left one is the source database and the right one is the database backup created in another computer but no Types exported and some columns are missing...
Attached Images
File Type: jpg db_source.jpg (26.7 KB, 781 views)
File Type: jpg db_restored.jpg (31.7 KB, 766 views)
Jul 16 '08 #16

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mateusz [PEYN] Adamus | last post by:
Hi I'm a developer currently wondering which DB choose for my next project. I looked on the net found ofcourse Oracle but also came up with PostgreSQL. I heard quite few things about it, all...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
0
by: Jean-Michel POURE | last post by:
Dear friends, I studying the possibility to port Compiere CRM from Oracle to PostgreSQL. As Compiere evolves nearly everyday in CVS, I would like to run the Oracle code without (too much)...
3
by: Neil Zanella | last post by:
Hello, I would like to ask the about the following... PostgreSQL allows tables resulting from subselects to be renamed with an optional AS keyword whereas Oracle 9 will report an error...
3
by: Bob.Henkel | last post by:
I write this to tell you why we won't use postgresql even though we wish we could at a large company. Don't get me wrong I love postgresql in many ways and for many reasons , but fact is fact. If...
10
by: Laimis K | last post by:
Hi, I'm oracle man. So, how about features in postgesql which exists in oracle db (order is casual) ? 1. Sequences 2. Packages 3. Functions/procedures 4. Full-text 5. Triggers
6
by: Devrim GUNDUZ | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, We were performing some tests on PostgreSQL and found that it fails on the following query: SELECT 512*18014398509481984 AS result;
2
by: Nadeem Bitar | last post by:
I've searched unsuccessfully on google and the archives for a technical comparison of Oracle and PostgreSQL. Is there any free and recent comparison that covers more than just the basic...
0
by: sergio311 | last post by:
Hi all, i'm a newbe of oracle, and i've installed oracle database server 10g on my fedora5 SO. I use PostgreSQL, but now i want migrate to oracle and, obviously, i've encountered some problem. My...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.