Oracle's data import and export must be created in two locations for the same user to be fully imported (local import of new databases requires Rebuild permissions). So the import will have to follow the following steps:
Assume that the server-side user is Puser
Server-side export can do this:
Export DATA: Exp puser/[email protected] file=c:\bb.dmp full=y
The local database can do this:
1. Delete users: Drop user puser cascade;
2. Creating users: Create user puser identified by padmin
3. Assign permissions: Grant Connect,resource to Puser
4. Grant Dba:grant DBA to Puser (can not do)
5. Import data: Imp puser/[email protected] file=c:\bb.dmp ignore=y full=y
Note: PNXD is the established network service name
If the database has a field such as CLOB, you must establish a tablespace, you can do this:
CREATE tablespace p2p_nxd
LOGGING
DataFile ' D:\app\Stephen\product\11.2.0\dbhome_1\P2PNXD. DBF '
SIZE 32M
Autoextend on
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;
DataFile is the path of the Oracle installation
Oracle Data Import and Export (original)