Thanks buat andy02 yang telah memberi inspirasi…
—————————————-
Sebenarnya banyak oracle client yang menyediakan menu untuk mengexport data di Oracle, seperti TOAD, PL/SQL Developer, Aqua Data studio, OEM, dsb, hanya saja kadang-kadang kita menemui error yang kita tidak tahu apa masalahnya. Jadi export melalui cmd adalah salah satu solusinya. Adapun langkah-langkahnya adalah sebagai berikut:
1. Tulis exp pada cmd yang telah dibuka.
C:\Documents and Settings\purna>exp
maka akan keluar hasilnya seperti berikut:
Export: Release 10.2.0.1.0 – Production on Thu Jun 29 22:08:55 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
2. Kemudian ketikkan username dan password user yang datanya akan di-export.
Username: purna
Password:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 – Production
With the Partitioning, OLAP and Data Mining options
3. Pada langkah berikutnya cukup tekan enter untuk nilai default pada besarnya buffer untuk melakukan peng-copy-an dalam bytes.
Enter array fetch buffer size: 4096 >
4. Beri nama file beserta tempatnya, misalnya D:\coba.dmp. Jika tempat file tidak ditulis maka file akan berada di directory yang sama dengan tempat menulis command di cmd, pada contoh berikut file akan berada di C:\Documents and Settings\purna.
Export file: EXPDAT.DMP > coba
5. Langkah selanjutnya cukup tekan enter, untuk nilai default. Nilai default yang digunakan terdapat diantara tanda [:] dan [>].
(2)U(sers), or (3)T(ables): (2)U >
Export grants (yes/no): yes >
Export table data (yes/no): yes >
Compress extents (yes/no): yes >
maka akan terlihat hasilnya seperti berikut:
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user PURNA
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user PURNA
About to export PURNA’s objects …
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export PURNA’s tables via Conventional Path …
. . exporting table MAHASISWA 187 rows exported
. . exporting table DOSEN 27 rows exported
. . exporting table MATAKULIAH 57 rows exported
. . exporting table FRS 558 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.