Oracle | Unable to exlude database link while export of a schema - oracle

can you please advise how to exclude DB links when exporting DB schema by:
exp userid=USER/PASS#server File=/export/schema_20170605.dmp
I do not need them in the dump but need to keep them on the server 11g.
When trying to export it as is getting error:
. exporting database links EXP-00106: Invalid Database Link Passwords
EXP-00000: Export terminated unsuccessfully
I have tried also expdp which could works but it requires dedicated folder directly on the DB server.
Thanks, Reddy

I had the same problem using exp version 10.2.0.1.0 against server version 11.2.0.4.0.
Using newer exp version 11.2.0.2.0 fixed it for me.

Related

What do I have to do to enable the DML replication in the Oracle 18c EE?

I have installed the Oracle DB 18c EE. I have installed the Oracle GoldenGate.
My test replication is good.
Then: I have modified the EXTRACT to DDL replication.
But logs say me: You have to prepare the Oracle DB.
The log message:
2019-08-02 17:29:05 ERROR OGG-00529 DDL Replication is enabled but table dima.GGS_DDL_HIST is not found. Please check DDL installation in the database.
There is No Scripts like in the article for the Oracle DB 12 (marker_table, and etc.) in my deployment (18c). DML replication works.
What Do I have to do in a Oracle 18c EE installation to enable the DDL in the DB?
If You are using the SQLPlus in the $ORACLE_HOME/bin path You will be using a full path to scripts. All scripts are placed in the Golden Gate root directory.
Use a cd:
export PATH=$PATH:$ORACLE_HOME/bin
cd /home/oracle/ggs/
sqlplus / as sysdba
The Full Guide is : DDL Guide

Oracle 12c Import LRM error

I have 2 different Oracle servers. And I will do migration from 11g to 12c. I am doing prova now. These 2 servers has a network mapped connection on folder.
I got full export from 11g to this shared folder successfully but when I trying to import I am getting below error. What to do and how to fix this issue?
LRM-00109: could not open parameter file '/Backup/impdp_full_parfile.par'
LRM-00113: error when processing file '/Backup/impdp_full_parfile.par'

Oracle database connectivity issue

I have a oracle database instance on my local machine , which i try to connect to .
Using SQL Developer , i can connect to it . But when i use sqlplus i cannot connect to the instance.
The error message i get is
ORA-28547:connection to server failed,probable oracle net admin error.
I tried restarting my TNS service but still the issue persists.
And i need to connect to sqlplus because i need to import the dumps using
impdp system/***** schemas=abcd dumpfile=DUMP_500.dmp
Please let me know what other information is needed , so that i can post
Thanks
Are you using the same tnsnames.ora file for your SQL*Plus that your SQL Developer is using?
Also try adding SQL_AUTHENTICATION_SERVICES = (NONE) to your sqlnet.ora file.
i added SQL_AUTHENTICATION_SERVICES = (NONE) to my sqlnet.ora file and it worked

Export from Oracle 10g database with 11g client - detailed

Database Version : 10g Enterprise Edition Release 10.2.0.4.0
Client Version: 11g Enterprise Edition Release 11.2.0.1.0 (windows 7 64bit)
When I try to export (exp) a table from database:
exp usr/pass#remote_db file=f.dmp tables=table
I get the following error:
EXP-00008: ORACLE error 904 encountered
ORA-00904: "POLTYP": invalid
identifier EXP-00000: Export terminated unsuccessfully
I know this question was answered earlier (the answer is "install 10g client to use its exp utility"), but I still didn't understand correctly:
Is Oracle 10g client 10.2.0.4 is ok for this? Do I need to setup TNS etc?
If I use the previous command to export the DB will the system automatically use the Ora10g client exp tool?
1) Yes, the 10.2.0.4 client would be OK. Yes, assuming that you use a tnsnames.ora file to connect to the database, you would need to configure a tnsnames.ora file in the Oracle Home for the newly installed 10.2.0.4 client or set the TNS_ADMIN environment variable to point at a single tnsnames.ora file for all Oracle Homes on the server. If you don't use a tnsnames.ora file to connect to the database, you would not need to configure one.
2) The command you posted will use the operating system's name resolution logic to determine which executable to invoke. Generally, that will be the executable in whichever Oracle Home is first in the operating system's PATH environment variable. Of course, you could specify an explicit path or change the current directory to the %Oracle Home%\bin of the 10.2.0.4 Oracle Home if that home was not first in the path.

Error importing oracle dump

I am trying to import a dump into two schema in the same oracle DB.Following a workaround to do this.
I am trying to run the imp command with the INDEXFILE option to be able to modify the tablespace names in the sql. This is what I get :
E:\oracle_10_2\BIN>imp atlantis/atlantis#orcl file=ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp indexfile=index.sql full=y log=imp.log
Import: Release 10.2.0.1.0 - Production on Thu Mar 12 15:31:44 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc
tion
With the Partitioning, OLAP and Data Mining options
IMP-00002: failed to open ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp for read
Import file: EXPDAT.DMP >
Looked like a file permission issue to me so I tried changing it.
E:\oracle_10_2\BIN>cacls E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp /p atlantis:F
Are you sure (Y/N)?y
processed file: E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp
E:\oracle_10_2\BIN>cacls E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp
E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp CORP\atlantis:F
But the problem persists.
If you are using Oracle 10g consider using new export/import tool Oracle Data Pump in which you can use REMAP_TABLESPACE parameter.
Anyway, you missed the path of the exportfile (bassed on the commands fo give permissions). Then You wrote:
file=ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp
instead of
file=E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp
Then, the result export command to work is:
imp atlantis/atlantis#orcl file=E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp indexfile=index.sql full=y log=imp.log
Open window command line as administrator
imp user/pass#databasename(listenername) file='DMP path'
log=indexfile.log full=y;
Don't forget to add your database or listener name.

Resources