Home » RDBMS Server » Server Administration » How to IMPDP to PDB? (DB 19.3, RHEL)
|
|
|
|
Re: How to IMPDP to PDB? [message #683447 is a reply to message #683446] |
Thu, 14 January 2021 11:30   |
 |
Michel Cadot
Messages: 68757 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Most of us can't (policy limitation) or don't want to download stuff from the web.
As all of this is text, you can post it inside your post, don't forget to use tags as explained in How to use [code] tags and make your code easier to read.
Note that you didn't answer the first points of my posts, from the point you issued the impdp and sqlplus commands:
- Make sure that "TNSNAMES" is listed as one of the values of the
NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
(SQLNET.ORA)
- Verify that a TNSNAMES.ORA file exists and is in the proper
directory and is accessible.
- Check that the net service name used as the connect identifier
exists in the TNSNAMES.ORA file.
- Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
file. Look for unmatched parentheses or stray characters. Errors
in a TNSNAMES.ORA file may make it unusable.
So at this point, issue (and post the result in text in your answer):
env | egrep -i '(oracle|path|tns)'
tnsping PDB01
cat $ORACLE_HOME/network/admin/sqlnet.ora
cat $ORACLE_HOME/network/admin/tnsnames.ora
# If you use TNS_ADMIN
cat $TNS_ADMIN/sqlnet.ora
cat $TNS_ADMIN/tnsnames.ora
sqlplus system/<pwd>@PDB01
[Updated on: Thu, 14 January 2021 11:31] Report message to a moderator
|
|
|
Re: How to IMPDP to PDB? [message #683449 is a reply to message #683447] |
Fri, 15 January 2021 10:01   |
 |
noob2021
Messages: 5 Registered: January 2021
|
Junior Member |
|
|
Hello Michel,
Sorry for the late reply - have been trying to resolve the issues.
Good news is the issue is resolved for now. To answer your question, TNS entries are correct. TNSNAMES is also listed in SQLNET.ORA.
All I did was set TNS_ADMIN environment on the putty session as of your recent suggestions. That seems to fix the issue.
But, I'm not quite sure what's going on.
Can you please explain what happened? Why wasn't it picking up the TNSNAMES.ora until I set the variable to $ORACLE_HOME/network/admin? Is that an alternate way of connecting? Also, should I include TNS_ADMIN variable in the bash_profile?
Thank you
[Updated on: Fri, 15 January 2021 10:03] Report message to a moderator
|
|
|
|
|
Re: How to IMPDP to PDB? [message #683573 is a reply to message #683452] |
Mon, 01 February 2021 10:50   |
 |
noob2021
Messages: 5 Registered: January 2021
|
Junior Member |
|
|
Thank you Michel and EdStevens for viewing and responding.
For my future memory / if it helps anyone:
Setting TNS_ADMIN in bash_profile sort of fixed the issues for the user.
To fix for all users, set in oraenv as SU for each PDBs running on the server.
That's how I fixed it anyway.
Edit: Not sure how to mark this as solved. Admin can mark this as solved / close the thread, if necessary.
[Updated on: Mon, 01 February 2021 10:53] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sat May 03 14:48:43 CDT 2025
|