Skip to Main Content
  • Questions
  • Dropped tables are not in the recycle bin, and Connection Type status

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Duong.

Asked: August 29, 2020 - 9:38 pm UTC

Last updated: September 04, 2020 - 12:51 am UTC

Version: Oracle Database 12c Release 1

Viewed 1000+ times

You Asked

Hello,

I temporarily use connection type: Local/Bequeath and Window 10.

1. I dropped some tables and used ALTER SESSION SET RECYCLEBIN=ON. Then, I tried to check USER_RECYCLEBIN view or RECYCLEBIN synonym by using Oracle SQL Developer, there is no these dropped tables in the recycle bin. By using SQL*Plus, when DROP TABLE statements execute, I can find dropped tables in USER_RECYCLEBIN or RECYCLEBIN. I don't know why there are 2 different results.

2. When I try with connection type: Basic with Hostname: localhost, Port: 1521, SID: xe, I receive an error message:
Status : Failure -Test failed: Listener refused the connection with the following error:ORA-12505, TNS:listener does not currently know of SID given in connect descriptor.

With connection type: TNS, I receive the following message:
Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection

Can you please help me explain the issues? And how can I fix them?

Thank you very much,
Duong.


and Connor said...

1) Sorry I can't reproduce that

SQLDEV_RECYCLE

Make sure you're on the most recent version, but I've never seen that behaviour on any version


2) You need to see what the listener is "offering" as a service. Try this from a command line:

lsnrctl status

You will see something like this

Service "db19" has 1 instance(s).
Instance "db19", status READY, has 1 handler(s) for this service...
Service "db19XDB" has 1 instance(s).
Instance "db19", status READY, has 1 handler(s) for this service...
Service "pdb1" has 1 instance(s).
Instance "db19", status READY, has 1 handler(s) for this service...
The command completed successfully


The *service* names are what you connect to. For 18c XE, it is probably XEPDB1

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Thanks for your response.

Duong, September 03, 2020 - 4:19 am UTC

Please disregard issue 1, it's working now. I try using *service* name as you show, the connection status is success.
Thank you.
Connor McDonald
September 04, 2020 - 12:51 am UTC

glad we could help

More to Explore

Administration

Need more information on Administration? Check out the Administrators guide for the Oracle Database